diff --git a/AccessApproval/src/V1/Client/AccessApprovalClient.php b/AccessApproval/src/V1/Client/AccessApprovalClient.php index 49b9332329d6..626d76c7bb23 100644 --- a/AccessApproval/src/V1/Client/AccessApprovalClient.php +++ b/AccessApproval/src/V1/Client/AccessApprovalClient.php @@ -90,15 +90,15 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface approveApprovalRequestAsync(ApproveApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessApprovalSettingsAsync(DeleteAccessApprovalSettingsMessage $request, array $optionalArgs = []) - * @method PromiseInterface dismissApprovalRequestAsync(DismissApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface getAccessApprovalServiceAccountAsync(GetAccessApprovalServiceAccountMessage $request, array $optionalArgs = []) - * @method PromiseInterface getAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage $request, array $optionalArgs = []) - * @method PromiseInterface getApprovalRequestAsync(GetApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface invalidateApprovalRequestAsync(InvalidateApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface listApprovalRequestsAsync(ListApprovalRequestsMessage $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage $request, array $optionalArgs = []) + * @method PromiseInterface approveApprovalRequestAsync(ApproveApprovalRequestMessage $request, array $optionalArgs = []) + * @method PromiseInterface deleteAccessApprovalSettingsAsync(DeleteAccessApprovalSettingsMessage $request, array $optionalArgs = []) + * @method PromiseInterface dismissApprovalRequestAsync(DismissApprovalRequestMessage $request, array $optionalArgs = []) + * @method PromiseInterface getAccessApprovalServiceAccountAsync(GetAccessApprovalServiceAccountMessage $request, array $optionalArgs = []) + * @method PromiseInterface getAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage $request, array $optionalArgs = []) + * @method PromiseInterface getApprovalRequestAsync(GetApprovalRequestMessage $request, array $optionalArgs = []) + * @method PromiseInterface invalidateApprovalRequestAsync(InvalidateApprovalRequestMessage $request, array $optionalArgs = []) + * @method PromiseInterface listApprovalRequestsAsync(ListApprovalRequestsMessage $request, array $optionalArgs = []) + * @method PromiseInterface updateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage $request, array $optionalArgs = []) */ final class AccessApprovalClient { diff --git a/AdsAdManager/metadata/V1/AdUnitEnums.php b/AdsAdManager/metadata/V1/AdUnitEnums.php index 25564e2ab81e..ae0af4b8f3e2 100644 Binary files a/AdsAdManager/metadata/V1/AdUnitEnums.php and b/AdsAdManager/metadata/V1/AdUnitEnums.php differ diff --git a/AdsAdManager/metadata/V1/AdUnitMessages.php b/AdsAdManager/metadata/V1/AdUnitMessages.php index 0bd0922863bd..4d03c22520c4 100644 Binary files a/AdsAdManager/metadata/V1/AdUnitMessages.php and b/AdsAdManager/metadata/V1/AdUnitMessages.php differ diff --git a/AdsAdManager/metadata/V1/AdUnitService.php b/AdsAdManager/metadata/V1/AdUnitService.php index b5bac945497d..65811309fe0c 100644 --- a/AdsAdManager/metadata/V1/AdUnitService.php +++ b/AdsAdManager/metadata/V1/AdUnitService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + -google/ads/admanager/v1/ad_unit_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"I GetAdUnitRequest5 name ( B\'AA! @@ -57,8 +57,8 @@ public static function initOnce() { AdUnitService GetAdUnit).google.ads.admanager.v1.GetAdUnitRequest.google.ads.admanager.v1.AdUnit".Aname!/v1/{name=networks/*/adUnits/*} ListAdUnits+.google.ads.admanager.v1.ListAdUnitsRequest,.google.ads.admanager.v1.ListAdUnitsResponse"0Aparent!/v1/{parent=networks/*}/adUnits -ListAdUnitSizes/.google.ads.admanager.v1.ListAdUnitSizesRequest0.google.ads.admanager.v1.ListAdUnitSizesResponse"4Aparent%#/v1/{parent=networks/*}/adUnitSizesAadmanager.googleapis.comB -com.google.ads.admanager.v1BAdUnitServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +ListAdUnitSizes/.google.ads.admanager.v1.ListAdUnitSizesRequest0.google.ads.admanager.v1.ListAdUnitSizesResponse"4Aparent%#/v1/{parent=networks/*}/adUnitSizesAadmanager.googleapis.comB +com.google.ads.admanager.v1BAdUnitServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/AdmanagerError.php b/AdsAdManager/metadata/V1/AdmanagerError.php index 8fc32636626a..a49f1ebb2779 100644 --- a/AdsAdManager/metadata/V1/AdmanagerError.php +++ b/AdsAdManager/metadata/V1/AdmanagerError.php @@ -17,7 +17,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Any::initOnce(); $pool->internalAddGeneratedFile( ' - + -google/ads/admanager/v1/admanager_error.protogoogle.ads.admanager.v1" AdManagerError @@ -27,8 +27,8 @@ public static function initOnce() { field_path (  trigger (  stack_trace ( % -details ( 2.google.protobuf.AnyB -com.google.ads.admanager.v1BAdManagerErrorProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +details ( 2.google.protobuf.AnyB +com.google.ads.admanager.v1BAdManagerErrorProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/AppliedLabel.php b/AdsAdManager/metadata/V1/AppliedLabel.php index ccf44e94926e..e23e5d79d3f6 100644 --- a/AdsAdManager/metadata/V1/AppliedLabel.php +++ b/AdsAdManager/metadata/V1/AppliedLabel.php @@ -18,13 +18,13 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + +google/ads/admanager/v1/applied_label.protogoogle.ads.admanager.v1google/api/resource.proto"V AppliedLabel5 label ( B&AA admanager.googleapis.com/Label -negated (B -com.google.ads.admanager.v1BAppliedLabelProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +negated (B +com.google.ads.admanager.v1BAppliedLabelProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/CompanyCreditStatusEnum.php b/AdsAdManager/metadata/V1/CompanyCreditStatusEnum.php index da04aa2a013a..0966edc17e86 100644 Binary files a/AdsAdManager/metadata/V1/CompanyCreditStatusEnum.php and b/AdsAdManager/metadata/V1/CompanyCreditStatusEnum.php differ diff --git a/AdsAdManager/metadata/V1/CompanyMessages.php b/AdsAdManager/metadata/V1/CompanyMessages.php index f7cf662871bc..f2e4b4978852 100644 Binary files a/AdsAdManager/metadata/V1/CompanyMessages.php and b/AdsAdManager/metadata/V1/CompanyMessages.php differ diff --git a/AdsAdManager/metadata/V1/CompanyService.php b/AdsAdManager/metadata/V1/CompanyService.php index f8993ba708f7..777ffbe512d6 100644 --- a/AdsAdManager/metadata/V1/CompanyService.php +++ b/AdsAdManager/metadata/V1/CompanyService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + -google/ads/admanager/v1/company_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K GetCompanyRequest6 name ( B(AA" @@ -43,8 +43,8 @@ public static function initOnce() { CompanyService GetCompany*.google.ads.admanager.v1.GetCompanyRequest .google.ads.admanager.v1.Company"0Aname#!/v1/{name=networks/*/companies/*} - ListCompanies-.google.ads.admanager.v1.ListCompaniesRequest..google.ads.admanager.v1.ListCompaniesResponse"2Aparent#!/v1/{parent=networks/*}/companiesAadmanager.googleapis.comB -com.google.ads.admanager.v1BCompanyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + ListCompanies-.google.ads.admanager.v1.ListCompaniesRequest..google.ads.admanager.v1.ListCompaniesResponse"2Aparent#!/v1/{parent=networks/*}/companiesAadmanager.googleapis.comB +com.google.ads.admanager.v1BCompanyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/CompanyTypeEnum.php b/AdsAdManager/metadata/V1/CompanyTypeEnum.php index b212272e79bd..59881231d866 100644 Binary files a/AdsAdManager/metadata/V1/CompanyTypeEnum.php and b/AdsAdManager/metadata/V1/CompanyTypeEnum.php differ diff --git a/AdsAdManager/metadata/V1/ContactMessages.php b/AdsAdManager/metadata/V1/ContactMessages.php index 54aed933eb50..fc6351c12d7c 100644 --- a/AdsAdManager/metadata/V1/ContactMessages.php +++ b/AdsAdManager/metadata/V1/ContactMessages.php @@ -18,14 +18,14 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + .google/ads/admanager/v1/contact_messages.protogoogle.ads.admanager.v1google/api/resource.proto" Contact name ( BA contact_id (BA:dAa - admanager.googleapis.com/Contact*networks/{network_code}/contacts/{contact}*contacts2contactB -com.google.ads.admanager.v1BContactMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + admanager.googleapis.com/Contact*networks/{network_code}/contacts/{contact}*contacts2contactB +com.google.ads.admanager.v1BContactMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/CustomFieldEnums.php b/AdsAdManager/metadata/V1/CustomFieldEnums.php index 8ea7ee7cff7c..81c470c90343 100644 Binary files a/AdsAdManager/metadata/V1/CustomFieldEnums.php and b/AdsAdManager/metadata/V1/CustomFieldEnums.php differ diff --git a/AdsAdManager/metadata/V1/CustomFieldMessages.php b/AdsAdManager/metadata/V1/CustomFieldMessages.php index 6e2776c20d37..aadb94caf293 100644 --- a/AdsAdManager/metadata/V1/CustomFieldMessages.php +++ b/AdsAdManager/metadata/V1/CustomFieldMessages.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + 3google/ads/admanager/v1/custom_field_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" CustomField name ( BA @@ -36,8 +36,8 @@ public static function initOnce() { $admanager.googleapis.com/CustomField3networks/{network_code}/customFields/{custom_field}* customFields2 customField"S CustomFieldOption# custom_field_option_id (BA - display_name ( BAB -com.google.ads.admanager.v1BCustomFieldMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + display_name ( BAB +com.google.ads.admanager.v1BCustomFieldMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/CustomFieldService.php b/AdsAdManager/metadata/V1/CustomFieldService.php index 6960a5365982..dfd14cb20de3 100644 --- a/AdsAdManager/metadata/V1/CustomFieldService.php +++ b/AdsAdManager/metadata/V1/CustomFieldService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + 2google/ads/admanager/v1/custom_field_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"S GetCustomFieldRequest: name ( B,AA& @@ -42,8 +42,8 @@ public static function initOnce() { total_size (2 CustomFieldService GetCustomField..google.ads.admanager.v1.GetCustomFieldRequest$.google.ads.admanager.v1.CustomField"3Aname&$/v1/{name=networks/*/customFields/*} -ListCustomFields0.google.ads.admanager.v1.ListCustomFieldsRequest1.google.ads.admanager.v1.ListCustomFieldsResponse"5Aparent&$/v1/{parent=networks/*}/customFieldsAadmanager.googleapis.comB -com.google.ads.admanager.v1BCustomFieldServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +ListCustomFields0.google.ads.admanager.v1.ListCustomFieldsRequest1.google.ads.admanager.v1.ListCustomFieldsResponse"5Aparent&$/v1/{parent=networks/*}/customFieldsAadmanager.googleapis.comB +com.google.ads.admanager.v1BCustomFieldServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/CustomFieldValue.php b/AdsAdManager/metadata/V1/CustomFieldValue.php index 6111d1bcb161..303f1617d72f 100644 Binary files a/AdsAdManager/metadata/V1/CustomFieldValue.php and b/AdsAdManager/metadata/V1/CustomFieldValue.php differ diff --git a/AdsAdManager/metadata/V1/CustomTargetingKeyEnums.php b/AdsAdManager/metadata/V1/CustomTargetingKeyEnums.php index 72d02dc89138..d23e53e3e6f9 100644 Binary files a/AdsAdManager/metadata/V1/CustomTargetingKeyEnums.php and b/AdsAdManager/metadata/V1/CustomTargetingKeyEnums.php differ diff --git a/AdsAdManager/metadata/V1/CustomTargetingKeyMessages.php b/AdsAdManager/metadata/V1/CustomTargetingKeyMessages.php index d8f35616f16f..ea6106a350c7 100644 --- a/AdsAdManager/metadata/V1/CustomTargetingKeyMessages.php +++ b/AdsAdManager/metadata/V1/CustomTargetingKeyMessages.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + ;google/ads/admanager/v1/custom_targeting_key_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" CustomTargetingKey name ( BA$ @@ -29,8 +29,8 @@ public static function initOnce() { type (2J.google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyTypeBAc status (2N.google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatusBA| reportable_type (2^.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableTypeBA:A -+admanager.googleapis.com/CustomTargetingKeyBnetworks/{network_code}/customTargetingKeys/{custom_targeting_key}*customTargetingKeys2customTargetingKeyB -com.google.ads.admanager.v1BCustomTargetingKeyMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' ++admanager.googleapis.com/CustomTargetingKeyBnetworks/{network_code}/customTargetingKeys/{custom_targeting_key}*customTargetingKeys2customTargetingKeyB +com.google.ads.admanager.v1BCustomTargetingKeyMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/CustomTargetingKeyService.php b/AdsAdManager/metadata/V1/CustomTargetingKeyService.php index c8b81f388c75..0bce5ecf47e8 100644 --- a/AdsAdManager/metadata/V1/CustomTargetingKeyService.php +++ b/AdsAdManager/metadata/V1/CustomTargetingKeyService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + :google/ads/admanager/v1/custom_targeting_key_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"a GetCustomTargetingKeyRequestA @@ -43,8 +43,8 @@ public static function initOnce() { total_size (2 CustomTargetingKeyService GetCustomTargetingKey5.google.ads.admanager.v1.GetCustomTargetingKeyRequest+.google.ads.admanager.v1.CustomTargetingKey":Aname-+/v1/{name=networks/*/customTargetingKeys/*} -ListCustomTargetingKeys7.google.ads.admanager.v1.ListCustomTargetingKeysRequest8.google.ads.admanager.v1.ListCustomTargetingKeysResponse"internalAddGeneratedFile( ' - + =google/ads/admanager/v1/custom_targeting_value_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" CustomTargetingValue name ( BA @@ -28,8 +28,8 @@ public static function initOnce() { match_type (2X.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchTypeBAAg status (2R.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatusBA:A --admanager.googleapis.com/CustomTargetingValueqnetworks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}*customTargetingValues2customTargetingValueB -com.google.ads.admanager.v1B!CustomTargetingValueMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +-admanager.googleapis.com/CustomTargetingValueqnetworks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}*customTargetingValues2customTargetingValueB +com.google.ads.admanager.v1B!CustomTargetingValueMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/CustomTargetingValueService.php b/AdsAdManager/metadata/V1/CustomTargetingValueService.php index 8de715a70ffa..298a449dba63 100644 --- a/AdsAdManager/metadata/V1/CustomTargetingValueService.php +++ b/AdsAdManager/metadata/V1/CustomTargetingValueService.php @@ -21,8 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - - + internalAddGeneratedFile( ' - + "9/v1/{parent=networks/*}/entitySignalsMappings:batchCreate:* - BatchUpdateEntitySignalsMappings@.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse"VAparent,requests>"9/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate:*Aadmanager.googleapis.comB -com.google.ads.admanager.v1B EntitySignalsMappingServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + BatchUpdateEntitySignalsMappings@.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse"VAparent,requests>"9/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate:*Aadmanager.googleapis.comB +com.google.ads.admanager.v1B EntitySignalsMappingServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/EnvironmentTypeEnum.php b/AdsAdManager/metadata/V1/EnvironmentTypeEnum.php index 629c52c2bd78..8ad405f1742b 100644 Binary files a/AdsAdManager/metadata/V1/EnvironmentTypeEnum.php and b/AdsAdManager/metadata/V1/EnvironmentTypeEnum.php differ diff --git a/AdsAdManager/metadata/V1/FrequencyCap.php b/AdsAdManager/metadata/V1/FrequencyCap.php index 2d8f433f4630..336237dec42d 100644 Binary files a/AdsAdManager/metadata/V1/FrequencyCap.php and b/AdsAdManager/metadata/V1/FrequencyCap.php differ diff --git a/AdsAdManager/metadata/V1/LabelMessages.php b/AdsAdManager/metadata/V1/LabelMessages.php index cff18e627525..cb39f1d87bde 100644 --- a/AdsAdManager/metadata/V1/LabelMessages.php +++ b/AdsAdManager/metadata/V1/LabelMessages.php @@ -18,12 +18,12 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + ,google/ads/admanager/v1/label_messages.protogoogle.ads.admanager.v1google/api/resource.proto"v Label name ( BA:ZAW -admanager.googleapis.com/Label&networks/{network_code}/labels/{label}*labels2labelB -com.google.ads.admanager.v1BLabelMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +admanager.googleapis.com/Label&networks/{network_code}/labels/{label}*labels2labelB +com.google.ads.admanager.v1BLabelMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/NetworkMessages.php b/AdsAdManager/metadata/V1/NetworkMessages.php index a56a18beed04..b1077ac9a1e9 100644 --- a/AdsAdManager/metadata/V1/NetworkMessages.php +++ b/AdsAdManager/metadata/V1/NetworkMessages.php @@ -18,7 +18,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + .google/ads/admanager/v1/network_messages.protogoogle.ads.admanager.v1google/api/resource.proto" Network name ( BA @@ -34,8 +34,8 @@ public static function initOnce() { (BA network_id (BA:QAN - admanager.googleapis.com/Networknetworks/{network_code}*networks2networkB -com.google.ads.admanager.v1BNetworkMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + admanager.googleapis.com/Networknetworks/{network_code}*networks2networkB +com.google.ads.admanager.v1BNetworkMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/NetworkService.php b/AdsAdManager/metadata/V1/NetworkService.php index a78ae63f7332..e0016c7a91a0 100644 --- a/AdsAdManager/metadata/V1/NetworkService.php +++ b/AdsAdManager/metadata/V1/NetworkService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + -google/ads/admanager/v1/network_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K GetNetworkRequest6 name ( B(AA" @@ -32,8 +32,8 @@ public static function initOnce() { NetworkService GetNetwork*.google.ads.admanager.v1.GetNetworkRequest .google.ads.admanager.v1.Network"$Aname/v1/{name=networks/*} - ListNetworks,.google.ads.admanager.v1.ListNetworksRequest-.google.ads.admanager.v1.ListNetworksResponse" /v1/networksAadmanager.googleapis.comB -com.google.ads.admanager.v1BNetworkServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + ListNetworks,.google.ads.admanager.v1.ListNetworksRequest-.google.ads.admanager.v1.ListNetworksResponse" /v1/networksAadmanager.googleapis.comB +com.google.ads.admanager.v1BNetworkServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/OrderEnums.php b/AdsAdManager/metadata/V1/OrderEnums.php index 50e78befe4b0..cf531acbdb7d 100644 Binary files a/AdsAdManager/metadata/V1/OrderEnums.php and b/AdsAdManager/metadata/V1/OrderEnums.php differ diff --git a/AdsAdManager/metadata/V1/OrderMessages.php b/AdsAdManager/metadata/V1/OrderMessages.php index fd26aa927f01..ecf66e125c8f 100644 --- a/AdsAdManager/metadata/V1/OrderMessages.php +++ b/AdsAdManager/metadata/V1/OrderMessages.php @@ -22,7 +22,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( ' - + ,google/ads/admanager/v1/order_messages.protogoogle.ads.admanager.v10google/ads/admanager/v1/custom_field_value.proto)google/ads/admanager/v1/order_enums.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/timestamp.proto" Order name ( BA @@ -69,8 +69,8 @@ public static function initOnce() { applied_labels ( 2%.google.ads.admanager.v1.AppliedLabelBAL effective_applied_labels ( 2%.google.ads.admanager.v1.AppliedLabelBAK custom_field_values& ( 2).google.ads.admanager.v1.CustomFieldValueBA:ZAW -admanager.googleapis.com/Order&networks/{network_code}/orders/{order}*orders2orderB -com.google.ads.admanager.v1BOrderMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +admanager.googleapis.com/Order&networks/{network_code}/orders/{order}*orders2orderB +com.google.ads.admanager.v1BOrderMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/OrderService.php b/AdsAdManager/metadata/V1/OrderService.php index 71b9f7757efc..669e34b78ab6 100644 --- a/AdsAdManager/metadata/V1/OrderService.php +++ b/AdsAdManager/metadata/V1/OrderService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + +google/ads/admanager/v1/order_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"G GetOrderRequest4 name ( B&AA @@ -43,8 +43,8 @@ public static function initOnce() { OrderService GetOrder(.google.ads.admanager.v1.GetOrderRequest.google.ads.admanager.v1.Order"-Aname /v1/{name=networks/*/orders/*} -ListOrders*.google.ads.admanager.v1.ListOrdersRequest+.google.ads.admanager.v1.ListOrdersResponse"/Aparent /v1/{parent=networks/*}/ordersAadmanager.googleapis.comB -com.google.ads.admanager.v1BOrderServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +ListOrders*.google.ads.admanager.v1.ListOrdersRequest+.google.ads.admanager.v1.ListOrdersResponse"/Aparent /v1/{parent=networks/*}/ordersAadmanager.googleapis.comB +com.google.ads.admanager.v1BOrderServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/PlacementEnums.php b/AdsAdManager/metadata/V1/PlacementEnums.php index 8eccdd7c4121..f4f8dbe8af72 100644 Binary files a/AdsAdManager/metadata/V1/PlacementEnums.php and b/AdsAdManager/metadata/V1/PlacementEnums.php differ diff --git a/AdsAdManager/metadata/V1/PlacementMessages.php b/AdsAdManager/metadata/V1/PlacementMessages.php index 79247877a5fd..8125e821161b 100644 --- a/AdsAdManager/metadata/V1/PlacementMessages.php +++ b/AdsAdManager/metadata/V1/PlacementMessages.php @@ -20,7 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( ' - + 0google/ads/admanager/v1/placement_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/timestamp.proto" Placement name ( BA @@ -33,8 +33,8 @@ public static function initOnce() { admanager.googleapis.com/AdUnit4 update_time ( 2.google.protobuf.TimestampBA:nAk "admanager.googleapis.com/Placement.networks/{network_code}/placements/{placement}* -placements2 placementB -com.google.ads.admanager.v1BPlacementMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +placements2 placementB +com.google.ads.admanager.v1BPlacementMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/PlacementService.php b/AdsAdManager/metadata/V1/PlacementService.php index 2512b3925512..df9341ed0666 100644 --- a/AdsAdManager/metadata/V1/PlacementService.php +++ b/AdsAdManager/metadata/V1/PlacementService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + /google/ads/admanager/v1/placement_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"O GetPlacementRequest8 name ( B*AA$ @@ -43,8 +43,8 @@ public static function initOnce() { total_size (2 PlacementService GetPlacement,.google.ads.admanager.v1.GetPlacementRequest".google.ads.admanager.v1.Placement"1Aname$"/v1/{name=networks/*/placements/*} -ListPlacements..google.ads.admanager.v1.ListPlacementsRequest/.google.ads.admanager.v1.ListPlacementsResponse"3Aparent$"/v1/{parent=networks/*}/placementsAadmanager.googleapis.comB -com.google.ads.admanager.v1BPlacementServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +ListPlacements..google.ads.admanager.v1.ListPlacementsRequest/.google.ads.admanager.v1.ListPlacementsResponse"3Aparent$"/v1/{parent=networks/*}/placementsAadmanager.googleapis.comB +com.google.ads.admanager.v1BPlacementServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/ReportService.php b/AdsAdManager/metadata/V1/ReportService.php index 128aacca11e6..a2e593f7314c 100644 Binary files a/AdsAdManager/metadata/V1/ReportService.php and b/AdsAdManager/metadata/V1/ReportService.php differ diff --git a/AdsAdManager/metadata/V1/RoleEnums.php b/AdsAdManager/metadata/V1/RoleEnums.php index 39f8c01d5c9d..11570a1ec162 100644 Binary files a/AdsAdManager/metadata/V1/RoleEnums.php and b/AdsAdManager/metadata/V1/RoleEnums.php differ diff --git a/AdsAdManager/metadata/V1/RoleMessages.php b/AdsAdManager/metadata/V1/RoleMessages.php index be6641a6d1b4..c93340745892 100644 --- a/AdsAdManager/metadata/V1/RoleMessages.php +++ b/AdsAdManager/metadata/V1/RoleMessages.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + +google/ads/admanager/v1/role_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" Role name ( BA @@ -28,8 +28,8 @@ public static function initOnce() { description ( BA built_in (BAG status (22.google.ads.admanager.v1.RoleStatusEnum.RoleStatusBA:UAR -admanager.googleapis.com/Role$networks/{network_code}/roles/{role}*roles2roleB -com.google.ads.admanager.v1BRoleMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +admanager.googleapis.com/Role$networks/{network_code}/roles/{role}*roles2roleB +com.google.ads.admanager.v1BRoleMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/RoleService.php b/AdsAdManager/metadata/V1/RoleService.php index d3021bd5ff87..60fc57879f0a 100644 --- a/AdsAdManager/metadata/V1/RoleService.php +++ b/AdsAdManager/metadata/V1/RoleService.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + *google/ads/admanager/v1/role_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E GetRoleRequest3 name ( B%AA @@ -42,8 +42,8 @@ public static function initOnce() { total_size (2 RoleService GetRole\'.google.ads.admanager.v1.GetRoleRequest.google.ads.admanager.v1.Role",Aname/v1/{name=networks/*/roles/*} - ListRoles).google.ads.admanager.v1.ListRolesRequest*.google.ads.admanager.v1.ListRolesResponse".Aparent/v1/{parent=networks/*}/rolesAadmanager.googleapis.comB -com.google.ads.admanager.v1BRoleServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + ListRoles).google.ads.admanager.v1.ListRolesRequest*.google.ads.admanager.v1.ListRolesResponse".Aparent/v1/{parent=networks/*}/rolesAadmanager.googleapis.comB +com.google.ads.admanager.v1BRoleServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/Size.php b/AdsAdManager/metadata/V1/Size.php index f1880c9571c6..7a1dbd7371ad 100644 --- a/AdsAdManager/metadata/V1/Size.php +++ b/AdsAdManager/metadata/V1/Size.php @@ -18,13 +18,13 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); $pool->internalAddGeneratedFile( ' - + "google/ads/admanager/v1/size.protogoogle.ads.admanager.v1google/api/field_behavior.proto"w Size width (BA height (BAF - size_type (2..google.ads.admanager.v1.SizeTypeEnum.SizeTypeBAB -com.google.ads.admanager.v1B SizeProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' + size_type (2..google.ads.admanager.v1.SizeTypeEnum.SizeTypeBAB +com.google.ads.admanager.v1B SizeProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/SizeTypeEnum.php b/AdsAdManager/metadata/V1/SizeTypeEnum.php index 3e89b84e3c03..5d1476b3ca03 100644 Binary files a/AdsAdManager/metadata/V1/SizeTypeEnum.php and b/AdsAdManager/metadata/V1/SizeTypeEnum.php differ diff --git a/AdsAdManager/metadata/V1/TaxonomyCategoryMessages.php b/AdsAdManager/metadata/V1/TaxonomyCategoryMessages.php index 10a791d6c682..cf1430b9cbfe 100644 --- a/AdsAdManager/metadata/V1/TaxonomyCategoryMessages.php +++ b/AdsAdManager/metadata/V1/TaxonomyCategoryMessages.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + 8google/ads/admanager/v1/taxonomy_category_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" TaxonomyCategory name ( BA! @@ -30,8 +30,8 @@ public static function initOnce() { taxonomy_type (26.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyTypeBA ancestor_names ( BA+ ancestor_taxonomy_category_ids (BA:A -)admanager.googleapis.com/TaxonomyCategory>networks/{network_code}/taxonomyCategories/{taxonomy_category}*taxonomyCategories2taxonomyCategoryB -com.google.ads.admanager.v1BTaxonomyCategoryMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +)admanager.googleapis.com/TaxonomyCategory>networks/{network_code}/taxonomyCategories/{taxonomy_category}*taxonomyCategories2taxonomyCategoryB +com.google.ads.admanager.v1BTaxonomyCategoryMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/TaxonomyCategoryService.php b/AdsAdManager/metadata/V1/TaxonomyCategoryService.php index e0d958fa9808..a66abbdece9d 100644 --- a/AdsAdManager/metadata/V1/TaxonomyCategoryService.php +++ b/AdsAdManager/metadata/V1/TaxonomyCategoryService.php @@ -21,7 +21,8 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + + 7google/ads/admanager/v1/taxonomy_category_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"] GetTaxonomyCategoryRequest? name ( B1AA+ @@ -42,8 +43,8 @@ public static function initOnce() { total_size (2 TaxonomyCategoryService GetTaxonomyCategory3.google.ads.admanager.v1.GetTaxonomyCategoryRequest).google.ads.admanager.v1.TaxonomyCategory"9Aname,*/v1/{name=networks/*/taxonomyCategories/*} -ListTaxonomyCategories6.google.ads.admanager.v1.ListTaxonomyCategoriesRequest7.google.ads.admanager.v1.ListTaxonomyCategoriesResponse";Aparent,*/v1/{parent=networks/*}/taxonomyCategoriesAadmanager.googleapis.comB -com.google.ads.admanager.v1BTaxonomyCategoryServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +ListTaxonomyCategories6.google.ads.admanager.v1.ListTaxonomyCategoriesRequest7.google.ads.admanager.v1.ListTaxonomyCategoriesResponse";Aparent,*/v1/{parent=networks/*}/taxonomyCategoriesAadmanager.googleapis.comB +com.google.ads.admanager.v1BTaxonomyCategoryServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/TaxonomyTypeEnum.php b/AdsAdManager/metadata/V1/TaxonomyTypeEnum.php index 7e0f028bad09..21b4cabf0e9c 100644 Binary files a/AdsAdManager/metadata/V1/TaxonomyTypeEnum.php and b/AdsAdManager/metadata/V1/TaxonomyTypeEnum.php differ diff --git a/AdsAdManager/metadata/V1/TeamMessages.php b/AdsAdManager/metadata/V1/TeamMessages.php index 10949b444e90..8789e52f249b 100644 --- a/AdsAdManager/metadata/V1/TeamMessages.php +++ b/AdsAdManager/metadata/V1/TeamMessages.php @@ -18,13 +18,13 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + +google/ads/admanager/v1/team_messages.protogoogle.ads.admanager.v1google/api/resource.proto" Team name ( BA team_id (BA:UAR -admanager.googleapis.com/Team$networks/{network_code}/teams/{team}*teams2teamB -com.google.ads.admanager.v1BTeamMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +admanager.googleapis.com/Team$networks/{network_code}/teams/{team}*teams2teamB +com.google.ads.admanager.v1BTeamMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/TimeUnitEnum.php b/AdsAdManager/metadata/V1/TimeUnitEnum.php index e19c07fce545..d30188fe4251 100644 Binary files a/AdsAdManager/metadata/V1/TimeUnitEnum.php and b/AdsAdManager/metadata/V1/TimeUnitEnum.php differ diff --git a/AdsAdManager/metadata/V1/UserMessages.php b/AdsAdManager/metadata/V1/UserMessages.php index 2e50bd46d2a4..13d567f4b1d7 100644 --- a/AdsAdManager/metadata/V1/UserMessages.php +++ b/AdsAdManager/metadata/V1/UserMessages.php @@ -18,7 +18,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + +google/ads/admanager/v1/user_messages.protogoogle.ads.admanager.v1google/api/resource.proto" User name ( BA @@ -32,8 +32,8 @@ public static function initOnce() { external_id ( BA service_account (BA& orders_ui_local_time_zone ( BA:UAR -admanager.googleapis.com/User$networks/{network_code}/users/{user}*users2userB -com.google.ads.admanager.v1BUserMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +admanager.googleapis.com/User$networks/{network_code}/users/{user}*users2userB +com.google.ads.admanager.v1BUserMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/UserService.php b/AdsAdManager/metadata/V1/UserService.php index 9bd35f41953e..e1289e617df4 100644 --- a/AdsAdManager/metadata/V1/UserService.php +++ b/AdsAdManager/metadata/V1/UserService.php @@ -21,14 +21,14 @@ public static function initOnce() { \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( ' - + *google/ads/admanager/v1/user_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E GetUserRequest3 name ( B%AA admanager.googleapis.com/User2 UserService -GetUser\'.google.ads.admanager.v1.GetUserRequest.google.ads.admanager.v1.User",Aname/v1/{name=networks/*/users/*}Aadmanager.googleapis.comB -com.google.ads.admanager.v1BUserServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1bproto3' +GetUser\'.google.ads.admanager.v1.GetUserRequest.google.ads.admanager.v1.User",Aname/v1/{name=networks/*/users/*}Aadmanager.googleapis.comB +com.google.ads.admanager.v1BUserServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' , true); static::$is_initialized = true; diff --git a/AdsAdManager/src/V1/Client/AdUnitServiceClient.php b/AdsAdManager/src/V1/Client/AdUnitServiceClient.php index 238d03d40c37..fc5cfa027abb 100644 --- a/AdsAdManager/src/V1/Client/AdUnitServiceClient.php +++ b/AdsAdManager/src/V1/Client/AdUnitServiceClient.php @@ -50,9 +50,9 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getAdUnitAsync(GetAdUnitRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdUnitSizesAsync(ListAdUnitSizesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdUnitsAsync(ListAdUnitsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAdUnitAsync(GetAdUnitRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAdUnitSizesAsync(ListAdUnitSizesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAdUnitsAsync(ListAdUnitsRequest $request, array $optionalArgs = []) */ final class AdUnitServiceClient { diff --git a/AdsAdManager/src/V1/Client/CompanyServiceClient.php b/AdsAdManager/src/V1/Client/CompanyServiceClient.php index 03298df70dd2..8d281f97dba6 100644 --- a/AdsAdManager/src/V1/Client/CompanyServiceClient.php +++ b/AdsAdManager/src/V1/Client/CompanyServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getCompanyAsync(GetCompanyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCompaniesAsync(ListCompaniesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCompanyAsync(GetCompanyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCompaniesAsync(ListCompaniesRequest $request, array $optionalArgs = []) */ final class CompanyServiceClient { diff --git a/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php b/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php index 930c38b922c3..29264b0255f6 100644 --- a/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php +++ b/AdsAdManager/src/V1/Client/CustomFieldServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getCustomFieldAsync(GetCustomFieldRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomFieldsAsync(ListCustomFieldsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomFieldAsync(GetCustomFieldRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomFieldsAsync(ListCustomFieldsRequest $request, array $optionalArgs = []) */ final class CustomFieldServiceClient { diff --git a/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php b/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php index c3b0bc912b1d..11ecadbaa0cb 100644 --- a/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php +++ b/AdsAdManager/src/V1/Client/CustomTargetingKeyServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getCustomTargetingKeyAsync(GetCustomTargetingKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomTargetingKeysAsync(ListCustomTargetingKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomTargetingKeyAsync(GetCustomTargetingKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomTargetingKeysAsync(ListCustomTargetingKeysRequest $request, array $optionalArgs = []) */ final class CustomTargetingKeyServiceClient { diff --git a/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php b/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php index 1ce9aabf61d2..26598bb9b8c3 100644 --- a/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php +++ b/AdsAdManager/src/V1/Client/CustomTargetingValueServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getCustomTargetingValueAsync(GetCustomTargetingValueRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomTargetingValuesAsync(ListCustomTargetingValuesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomTargetingValueAsync(GetCustomTargetingValueRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomTargetingValuesAsync(ListCustomTargetingValuesRequest $request, array $optionalArgs = []) */ final class CustomTargetingValueServiceClient { diff --git a/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php b/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php index 0c1e933d9a92..e7b483b3c61d 100644 --- a/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php +++ b/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php @@ -55,12 +55,12 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchCreateEntitySignalsMappingsAsync(BatchCreateEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchUpdateEntitySignalsMappingsAsync(BatchUpdateEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEntitySignalsMappingAsync(CreateEntitySignalsMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntitySignalsMappingAsync(GetEntitySignalsMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEntitySignalsMappingsAsync(ListEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntitySignalsMappingAsync(UpdateEntitySignalsMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateEntitySignalsMappingsAsync(BatchCreateEntitySignalsMappingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateEntitySignalsMappingsAsync(BatchUpdateEntitySignalsMappingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntitySignalsMappingAsync(CreateEntitySignalsMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntitySignalsMappingAsync(GetEntitySignalsMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntitySignalsMappingsAsync(ListEntitySignalsMappingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntitySignalsMappingAsync(UpdateEntitySignalsMappingRequest $request, array $optionalArgs = []) */ final class EntitySignalsMappingServiceClient { diff --git a/AdsAdManager/src/V1/Client/NetworkServiceClient.php b/AdsAdManager/src/V1/Client/NetworkServiceClient.php index 2e3ae01eb097..24fb7b390b0d 100644 --- a/AdsAdManager/src/V1/Client/NetworkServiceClient.php +++ b/AdsAdManager/src/V1/Client/NetworkServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) */ final class NetworkServiceClient { diff --git a/AdsAdManager/src/V1/Client/OrderServiceClient.php b/AdsAdManager/src/V1/Client/OrderServiceClient.php index 6976c12ade0f..5a22c70f7139 100644 --- a/AdsAdManager/src/V1/Client/OrderServiceClient.php +++ b/AdsAdManager/src/V1/Client/OrderServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getOrderAsync(GetOrderRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOrdersAsync(ListOrdersRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOrderAsync(GetOrderRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOrdersAsync(ListOrdersRequest $request, array $optionalArgs = []) */ final class OrderServiceClient { diff --git a/AdsAdManager/src/V1/Client/PlacementServiceClient.php b/AdsAdManager/src/V1/Client/PlacementServiceClient.php index f81de1283b7a..d1b9406f2169 100644 --- a/AdsAdManager/src/V1/Client/PlacementServiceClient.php +++ b/AdsAdManager/src/V1/Client/PlacementServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getPlacementAsync(GetPlacementRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPlacementsAsync(ListPlacementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPlacementAsync(GetPlacementRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPlacementsAsync(ListPlacementsRequest $request, array $optionalArgs = []) */ final class PlacementServiceClient { diff --git a/AdsAdManager/src/V1/Client/ReportServiceClient.php b/AdsAdManager/src/V1/Client/ReportServiceClient.php index 20addfcadaea..f843675c8466 100644 --- a/AdsAdManager/src/V1/Client/ReportServiceClient.php +++ b/AdsAdManager/src/V1/Client/ReportServiceClient.php @@ -58,12 +58,12 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createReportAsync(CreateReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchReportResultRowsAsync(FetchReportResultRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReportAsync(GetReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReportsAsync(ListReportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReportAsync(UpdateReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface createReportAsync(CreateReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchReportResultRowsAsync(FetchReportResultRowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReportAsync(GetReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReportsAsync(ListReportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateReportAsync(UpdateReportRequest $request, array $optionalArgs = []) */ final class ReportServiceClient { diff --git a/AdsAdManager/src/V1/Client/RoleServiceClient.php b/AdsAdManager/src/V1/Client/RoleServiceClient.php index ed5f846b6849..4c755d66f546 100644 --- a/AdsAdManager/src/V1/Client/RoleServiceClient.php +++ b/AdsAdManager/src/V1/Client/RoleServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getRoleAsync(GetRoleRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRolesAsync(ListRolesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRoleAsync(GetRoleRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRolesAsync(ListRolesRequest $request, array $optionalArgs = []) */ final class RoleServiceClient { diff --git a/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php b/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php index 35abfd31fdef..6c15b463075c 100644 --- a/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php +++ b/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php @@ -49,8 +49,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getTaxonomyCategoryAsync(GetTaxonomyCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTaxonomyCategoriesAsync(ListTaxonomyCategoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTaxonomyCategoryAsync(GetTaxonomyCategoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTaxonomyCategoriesAsync(ListTaxonomyCategoriesRequest $request, array $optionalArgs = []) */ final class TaxonomyCategoryServiceClient { diff --git a/AdsAdManager/src/V1/Client/UserServiceClient.php b/AdsAdManager/src/V1/Client/UserServiceClient.php index e068fd03184d..375bf90d4c0a 100644 --- a/AdsAdManager/src/V1/Client/UserServiceClient.php +++ b/AdsAdManager/src/V1/Client/UserServiceClient.php @@ -47,7 +47,7 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getUserAsync(GetUserRequest $request, array $optionalArgs = []) + * @method PromiseInterface getUserAsync(GetUserRequest $request, array $optionalArgs = []) */ final class UserServiceClient { diff --git a/AdvisoryNotifications/src/V1/Client/AdvisoryNotificationsServiceClient.php b/AdvisoryNotifications/src/V1/Client/AdvisoryNotificationsServiceClient.php index 96b4cca11f70..6f667be90d91 100644 --- a/AdvisoryNotifications/src/V1/Client/AdvisoryNotificationsServiceClient.php +++ b/AdvisoryNotifications/src/V1/Client/AdvisoryNotificationsServiceClient.php @@ -52,10 +52,10 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getNotificationAsync(GetNotificationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSettingsAsync(GetSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNotificationsAsync(ListNotificationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSettingsAsync(UpdateSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNotificationAsync(GetNotificationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSettingsAsync(GetSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNotificationsAsync(ListNotificationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSettingsAsync(UpdateSettingsRequest $request, array $optionalArgs = []) */ final class AdvisoryNotificationsServiceClient { diff --git a/AlloyDb/src/V1/Client/AlloyDBAdminClient.php b/AlloyDb/src/V1/Client/AlloyDBAdminClient.php index dabcddfb3eb2..b6b68ad9a61d 100644 --- a/AlloyDb/src/V1/Client/AlloyDBAdminClient.php +++ b/AlloyDb/src/V1/Client/AlloyDBAdminClient.php @@ -93,42 +93,42 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchCreateInstancesAsync(BatchCreateInstancesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSecondaryClusterAsync(CreateSecondaryClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSecondaryInstanceAsync(CreateSecondaryInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createUserAsync(CreateUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteUserAsync(DeleteUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface executeSqlAsync(ExecuteSqlRequest $request, array $optionalArgs = []) - * @method PromiseInterface failoverInstanceAsync(FailoverInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateClientCertificateAsync(GenerateClientCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectionInfoAsync(GetConnectionInfoRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getUserAsync(GetUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface injectFaultAsync(InjectFaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDatabasesAsync(ListDatabasesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSupportedDatabaseFlagsAsync(ListSupportedDatabaseFlagsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listUsersAsync(ListUsersRequest $request, array $optionalArgs = []) - * @method PromiseInterface promoteClusterAsync(PromoteClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface restartInstanceAsync(RestartInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreClusterAsync(RestoreClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface switchoverClusterAsync(SwitchoverClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateClusterAsync(UpdateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateInstanceAsync(UpdateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateUserAsync(UpdateUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateInstancesAsync(BatchCreateInstancesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSecondaryClusterAsync(CreateSecondaryClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSecondaryInstanceAsync(CreateSecondaryInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createUserAsync(CreateUserRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteUserAsync(DeleteUserRequest $request, array $optionalArgs = []) + * @method PromiseInterface executeSqlAsync(ExecuteSqlRequest $request, array $optionalArgs = []) + * @method PromiseInterface failoverInstanceAsync(FailoverInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface generateClientCertificateAsync(GenerateClientCertificateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConnectionInfoAsync(GetConnectionInfoRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getUserAsync(GetUserRequest $request, array $optionalArgs = []) + * @method PromiseInterface injectFaultAsync(InjectFaultRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDatabasesAsync(ListDatabasesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSupportedDatabaseFlagsAsync(ListSupportedDatabaseFlagsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listUsersAsync(ListUsersRequest $request, array $optionalArgs = []) + * @method PromiseInterface promoteClusterAsync(PromoteClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface restartInstanceAsync(RestartInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface restoreClusterAsync(RestoreClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface switchoverClusterAsync(SwitchoverClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateClusterAsync(UpdateClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateInstanceAsync(UpdateInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateUserAsync(UpdateUserRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class AlloyDBAdminClient { diff --git a/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php b/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php index 7482a74083d7..4f11b65504ce 100644 --- a/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php +++ b/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php @@ -246,156 +246,156 @@ * * @experimental * - * @method PromiseInterface acknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface approveDisplayVideo360AdvertiserLinkProposalAsync(ApproveDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveAudienceAsync(ArchiveAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomDimensionAsync(ArchiveCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomMetricAsync(ArchiveCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchCreateAccessBindingsAsync(BatchCreateAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchDeleteAccessBindingsAsync(BatchDeleteAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchGetAccessBindingsAsync(BatchGetAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchUpdateAccessBindingsAsync(BatchUpdateAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelDisplayVideo360AdvertiserLinkProposalAsync(CancelDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAccessBindingAsync(CreateAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAdSenseLinkAsync(CreateAdSenseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAudienceAsync(CreateAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBigQueryLinkAsync(CreateBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCalculatedMetricAsync(CreateCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createChannelGroupAsync(CreateChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConnectedSiteTagAsync(CreateConnectedSiteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConversionEventAsync(CreateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomDimensionAsync(CreateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomMetricAsync(CreateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataStreamAsync(CreateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDisplayVideo360AdvertiserLinkAsync(CreateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDisplayVideo360AdvertiserLinkProposalAsync(CreateDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEventCreateRuleAsync(CreateEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEventEditRuleAsync(CreateEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface createExpandedDataSetAsync(CreateExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFirebaseLinkAsync(CreateFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createKeyEventAsync(CreateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPropertyAsync(CreatePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRollupPropertyAsync(CreateRollupPropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRollupPropertySourceLinkAsync(CreateRollupPropertySourceLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSKAdNetworkConversionValueSchemaAsync(CreateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSearchAds360LinkAsync(CreateSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSubpropertyEventFilterAsync(CreateSubpropertyEventFilterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessBindingAsync(DeleteAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccountAsync(DeleteAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAdSenseLinkAsync(DeleteAdSenseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBigQueryLinkAsync(DeleteBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteCalculatedMetricAsync(DeleteCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteChannelGroupAsync(DeleteChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectedSiteTagAsync(DeleteConnectedSiteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversionEventAsync(DeleteConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataStreamAsync(DeleteDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDisplayVideo360AdvertiserLinkAsync(DeleteDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDisplayVideo360AdvertiserLinkProposalAsync(DeleteDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEventCreateRuleAsync(DeleteEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEventEditRuleAsync(DeleteEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteExpandedDataSetAsync(DeleteExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFirebaseLinkAsync(DeleteFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteKeyEventAsync(DeleteKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePropertyAsync(DeletePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRollupPropertySourceLinkAsync(DeleteRollupPropertySourceLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSKAdNetworkConversionValueSchemaAsync(DeleteSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSearchAds360LinkAsync(DeleteSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSubpropertyEventFilterAsync(DeleteSubpropertyEventFilterRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchAutomatedGa4ConfigurationOptOutAsync(FetchAutomatedGa4ConfigurationOptOutRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchConnectedGa4PropertyAsync(FetchConnectedGa4PropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccessBindingAsync(GetAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccountAsync(GetAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAdSenseLinkAsync(GetAdSenseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttributionSettingsAsync(GetAttributionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAudienceAsync(GetAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBigQueryLinkAsync(GetBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCalculatedMetricAsync(GetCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface getChannelGroupAsync(GetChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversionEventAsync(GetConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomDimensionAsync(GetCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomMetricAsync(GetCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataRedactionSettingsAsync(GetDataRedactionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataRetentionSettingsAsync(GetDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataSharingSettingsAsync(GetDataSharingSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataStreamAsync(GetDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDisplayVideo360AdvertiserLinkAsync(GetDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDisplayVideo360AdvertiserLinkProposalAsync(GetDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEventCreateRuleAsync(GetEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEventEditRuleAsync(GetEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getExpandedDataSetAsync(GetExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGlobalSiteTagAsync(GetGlobalSiteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGoogleSignalsSettingsAsync(GetGoogleSignalsSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyEventAsync(GetKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPropertyAsync(GetPropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRollupPropertySourceLinkAsync(GetRollupPropertySourceLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSKAdNetworkConversionValueSchemaAsync(GetSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSearchAds360LinkAsync(GetSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSubpropertyEventFilterAsync(GetSubpropertyEventFilterRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessBindingsAsync(ListAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountSummariesAsync(ListAccountSummariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountsAsync(ListAccountsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdSenseLinksAsync(ListAdSenseLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAudiencesAsync(ListAudiencesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBigQueryLinksAsync(ListBigQueryLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCalculatedMetricsAsync(ListCalculatedMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listChannelGroupsAsync(ListChannelGroupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectedSiteTagsAsync(ListConnectedSiteTagsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversionEventsAsync(ListConversionEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomDimensionsAsync(ListCustomDimensionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomMetricsAsync(ListCustomMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataStreamsAsync(ListDataStreamsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDisplayVideo360AdvertiserLinkProposalsAsync(ListDisplayVideo360AdvertiserLinkProposalsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDisplayVideo360AdvertiserLinksAsync(ListDisplayVideo360AdvertiserLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEventCreateRulesAsync(ListEventCreateRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEventEditRulesAsync(ListEventEditRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listExpandedDataSetsAsync(ListExpandedDataSetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFirebaseLinksAsync(ListFirebaseLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGoogleAdsLinksAsync(ListGoogleAdsLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listKeyEventsAsync(ListKeyEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMeasurementProtocolSecretsAsync(ListMeasurementProtocolSecretsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPropertiesAsync(ListPropertiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRollupPropertySourceLinksAsync(ListRollupPropertySourceLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSKAdNetworkConversionValueSchemasAsync(ListSKAdNetworkConversionValueSchemasRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSearchAds360LinksAsync(ListSearchAds360LinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSubpropertyEventFiltersAsync(ListSubpropertyEventFiltersRequest $request, array $optionalArgs = []) - * @method PromiseInterface provisionAccountTicketAsync(ProvisionAccountTicketRequest $request, array $optionalArgs = []) - * @method PromiseInterface provisionSubpropertyAsync(ProvisionSubpropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface reorderEventEditRulesAsync(ReorderEventEditRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface runAccessReportAsync(RunAccessReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchChangeHistoryEventsAsync(SearchChangeHistoryEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setAutomatedGa4ConfigurationOptOutAsync(SetAutomatedGa4ConfigurationOptOutRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessBindingAsync(UpdateAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccountAsync(UpdateAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAttributionSettingsAsync(UpdateAttributionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAudienceAsync(UpdateAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBigQueryLinkAsync(UpdateBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCalculatedMetricAsync(UpdateCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateChannelGroupAsync(UpdateChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConversionEventAsync(UpdateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomDimensionAsync(UpdateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomMetricAsync(UpdateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataRedactionSettingsAsync(UpdateDataRedactionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataRetentionSettingsAsync(UpdateDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataStreamAsync(UpdateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDisplayVideo360AdvertiserLinkAsync(UpdateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEventCreateRuleAsync(UpdateEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEventEditRuleAsync(UpdateEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateExpandedDataSetAsync(UpdateExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleSignalsSettingsAsync(UpdateGoogleSignalsSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateKeyEventAsync(UpdateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSKAdNetworkConversionValueSchemaAsync(UpdateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSearchAds360LinkAsync(UpdateSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSubpropertyEventFilterAsync(UpdateSubpropertyEventFilterRequest $request, array $optionalArgs = []) + * @method PromiseInterface acknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface approveDisplayVideo360AdvertiserLinkProposalAsync(ApproveDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) + * @method PromiseInterface archiveAudienceAsync(ArchiveAudienceRequest $request, array $optionalArgs = []) + * @method PromiseInterface archiveCustomDimensionAsync(ArchiveCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface archiveCustomMetricAsync(ArchiveCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateAccessBindingsAsync(BatchCreateAccessBindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeleteAccessBindingsAsync(BatchDeleteAccessBindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchGetAccessBindingsAsync(BatchGetAccessBindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateAccessBindingsAsync(BatchUpdateAccessBindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelDisplayVideo360AdvertiserLinkProposalAsync(CancelDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAccessBindingAsync(CreateAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAdSenseLinkAsync(CreateAdSenseLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAudienceAsync(CreateAudienceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBigQueryLinkAsync(CreateBigQueryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCalculatedMetricAsync(CreateCalculatedMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface createChannelGroupAsync(CreateChannelGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConnectedSiteTagAsync(CreateConnectedSiteTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConversionEventAsync(CreateConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomDimensionAsync(CreateCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomMetricAsync(CreateCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataStreamAsync(CreateDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDisplayVideo360AdvertiserLinkAsync(CreateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDisplayVideo360AdvertiserLinkProposalAsync(CreateDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEventCreateRuleAsync(CreateEventCreateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEventEditRuleAsync(CreateEventEditRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface createExpandedDataSetAsync(CreateExpandedDataSetRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFirebaseLinkAsync(CreateFirebaseLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createKeyEventAsync(CreateKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPropertyAsync(CreatePropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRollupPropertyAsync(CreateRollupPropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRollupPropertySourceLinkAsync(CreateRollupPropertySourceLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSKAdNetworkConversionValueSchemaAsync(CreateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSearchAds360LinkAsync(CreateSearchAds360LinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSubpropertyEventFilterAsync(CreateSubpropertyEventFilterRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAccessBindingAsync(DeleteAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAccountAsync(DeleteAccountRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAdSenseLinkAsync(DeleteAdSenseLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBigQueryLinkAsync(DeleteBigQueryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCalculatedMetricAsync(DeleteCalculatedMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteChannelGroupAsync(DeleteChannelGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConnectedSiteTagAsync(DeleteConnectedSiteTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConversionEventAsync(DeleteConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataStreamAsync(DeleteDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDisplayVideo360AdvertiserLinkAsync(DeleteDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDisplayVideo360AdvertiserLinkProposalAsync(DeleteDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEventCreateRuleAsync(DeleteEventCreateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEventEditRuleAsync(DeleteEventEditRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteExpandedDataSetAsync(DeleteExpandedDataSetRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFirebaseLinkAsync(DeleteFirebaseLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteKeyEventAsync(DeleteKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePropertyAsync(DeletePropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRollupPropertySourceLinkAsync(DeleteRollupPropertySourceLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSKAdNetworkConversionValueSchemaAsync(DeleteSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSearchAds360LinkAsync(DeleteSearchAds360LinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSubpropertyEventFilterAsync(DeleteSubpropertyEventFilterRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchAutomatedGa4ConfigurationOptOutAsync(FetchAutomatedGa4ConfigurationOptOutRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchConnectedGa4PropertyAsync(FetchConnectedGa4PropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAccessBindingAsync(GetAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAccountAsync(GetAccountRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAdSenseLinkAsync(GetAdSenseLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAttributionSettingsAsync(GetAttributionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAudienceAsync(GetAudienceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBigQueryLinkAsync(GetBigQueryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCalculatedMetricAsync(GetCalculatedMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface getChannelGroupAsync(GetChannelGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConversionEventAsync(GetConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomDimensionAsync(GetCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomMetricAsync(GetCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataRedactionSettingsAsync(GetDataRedactionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataRetentionSettingsAsync(GetDataRetentionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataSharingSettingsAsync(GetDataSharingSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataStreamAsync(GetDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDisplayVideo360AdvertiserLinkAsync(GetDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDisplayVideo360AdvertiserLinkProposalAsync(GetDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEventCreateRuleAsync(GetEventCreateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEventEditRuleAsync(GetEventEditRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getExpandedDataSetAsync(GetExpandedDataSetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGlobalSiteTagAsync(GetGlobalSiteTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGoogleSignalsSettingsAsync(GetGoogleSignalsSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getKeyEventAsync(GetKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPropertyAsync(GetPropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRollupPropertySourceLinkAsync(GetRollupPropertySourceLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSKAdNetworkConversionValueSchemaAsync(GetSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSearchAds360LinkAsync(GetSearchAds360LinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSubpropertyEventFilterAsync(GetSubpropertyEventFilterRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccessBindingsAsync(ListAccessBindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccountSummariesAsync(ListAccountSummariesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccountsAsync(ListAccountsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAdSenseLinksAsync(ListAdSenseLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAudiencesAsync(ListAudiencesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBigQueryLinksAsync(ListBigQueryLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCalculatedMetricsAsync(ListCalculatedMetricsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listChannelGroupsAsync(ListChannelGroupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConnectedSiteTagsAsync(ListConnectedSiteTagsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConversionEventsAsync(ListConversionEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomDimensionsAsync(ListCustomDimensionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomMetricsAsync(ListCustomMetricsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataStreamsAsync(ListDataStreamsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDisplayVideo360AdvertiserLinkProposalsAsync(ListDisplayVideo360AdvertiserLinkProposalsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDisplayVideo360AdvertiserLinksAsync(ListDisplayVideo360AdvertiserLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEventCreateRulesAsync(ListEventCreateRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEventEditRulesAsync(ListEventEditRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listExpandedDataSetsAsync(ListExpandedDataSetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFirebaseLinksAsync(ListFirebaseLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGoogleAdsLinksAsync(ListGoogleAdsLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listKeyEventsAsync(ListKeyEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMeasurementProtocolSecretsAsync(ListMeasurementProtocolSecretsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPropertiesAsync(ListPropertiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRollupPropertySourceLinksAsync(ListRollupPropertySourceLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSKAdNetworkConversionValueSchemasAsync(ListSKAdNetworkConversionValueSchemasRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSearchAds360LinksAsync(ListSearchAds360LinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSubpropertyEventFiltersAsync(ListSubpropertyEventFiltersRequest $request, array $optionalArgs = []) + * @method PromiseInterface provisionAccountTicketAsync(ProvisionAccountTicketRequest $request, array $optionalArgs = []) + * @method PromiseInterface provisionSubpropertyAsync(ProvisionSubpropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface reorderEventEditRulesAsync(ReorderEventEditRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface runAccessReportAsync(RunAccessReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchChangeHistoryEventsAsync(SearchChangeHistoryEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface setAutomatedGa4ConfigurationOptOutAsync(SetAutomatedGa4ConfigurationOptOutRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAccessBindingAsync(UpdateAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAccountAsync(UpdateAccountRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAttributionSettingsAsync(UpdateAttributionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAudienceAsync(UpdateAudienceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateBigQueryLinkAsync(UpdateBigQueryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCalculatedMetricAsync(UpdateCalculatedMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateChannelGroupAsync(UpdateChannelGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConversionEventAsync(UpdateConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomDimensionAsync(UpdateCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomMetricAsync(UpdateCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataRedactionSettingsAsync(UpdateDataRedactionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataRetentionSettingsAsync(UpdateDataRetentionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataStreamAsync(UpdateDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDisplayVideo360AdvertiserLinkAsync(UpdateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEventCreateRuleAsync(UpdateEventCreateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEventEditRuleAsync(UpdateEventEditRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateExpandedDataSetAsync(UpdateExpandedDataSetRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGoogleSignalsSettingsAsync(UpdateGoogleSignalsSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateKeyEventAsync(UpdateKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSKAdNetworkConversionValueSchemaAsync(UpdateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSearchAds360LinkAsync(UpdateSearchAds360LinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSubpropertyEventFilterAsync(UpdateSubpropertyEventFilterRequest $request, array $optionalArgs = []) */ final class AnalyticsAdminServiceClient { diff --git a/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php b/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php index 73d2403cd831..dc8a0b9ab4e1 100644 --- a/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php +++ b/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php @@ -119,60 +119,60 @@ * * @experimental * - * @method PromiseInterface acknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomDimensionAsync(ArchiveCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomMetricAsync(ArchiveCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConversionEventAsync(CreateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomDimensionAsync(CreateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomMetricAsync(CreateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataStreamAsync(CreateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFirebaseLinkAsync(CreateFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createKeyEventAsync(CreateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPropertyAsync(CreatePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccountAsync(DeleteAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversionEventAsync(DeleteConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataStreamAsync(DeleteDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFirebaseLinkAsync(DeleteFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteKeyEventAsync(DeleteKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePropertyAsync(DeletePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccountAsync(GetAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversionEventAsync(GetConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomDimensionAsync(GetCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomMetricAsync(GetCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataRetentionSettingsAsync(GetDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataSharingSettingsAsync(GetDataSharingSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataStreamAsync(GetDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyEventAsync(GetKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPropertyAsync(GetPropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountSummariesAsync(ListAccountSummariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountsAsync(ListAccountsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversionEventsAsync(ListConversionEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomDimensionsAsync(ListCustomDimensionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomMetricsAsync(ListCustomMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataStreamsAsync(ListDataStreamsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFirebaseLinksAsync(ListFirebaseLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGoogleAdsLinksAsync(ListGoogleAdsLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listKeyEventsAsync(ListKeyEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMeasurementProtocolSecretsAsync(ListMeasurementProtocolSecretsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPropertiesAsync(ListPropertiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface provisionAccountTicketAsync(ProvisionAccountTicketRequest $request, array $optionalArgs = []) - * @method PromiseInterface runAccessReportAsync(RunAccessReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchChangeHistoryEventsAsync(SearchChangeHistoryEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccountAsync(UpdateAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConversionEventAsync(UpdateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomDimensionAsync(UpdateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomMetricAsync(UpdateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataRetentionSettingsAsync(UpdateDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataStreamAsync(UpdateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateKeyEventAsync(UpdateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface acknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface archiveCustomDimensionAsync(ArchiveCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface archiveCustomMetricAsync(ArchiveCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConversionEventAsync(CreateConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomDimensionAsync(CreateCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomMetricAsync(CreateCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataStreamAsync(CreateDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFirebaseLinkAsync(CreateFirebaseLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createKeyEventAsync(CreateKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPropertyAsync(CreatePropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAccountAsync(DeleteAccountRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConversionEventAsync(DeleteConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataStreamAsync(DeleteDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFirebaseLinkAsync(DeleteFirebaseLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteKeyEventAsync(DeleteKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePropertyAsync(DeletePropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAccountAsync(GetAccountRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConversionEventAsync(GetConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomDimensionAsync(GetCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomMetricAsync(GetCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataRetentionSettingsAsync(GetDataRetentionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataSharingSettingsAsync(GetDataSharingSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataStreamAsync(GetDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface getKeyEventAsync(GetKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPropertyAsync(GetPropertyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccountSummariesAsync(ListAccountSummariesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccountsAsync(ListAccountsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConversionEventsAsync(ListConversionEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomDimensionsAsync(ListCustomDimensionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomMetricsAsync(ListCustomMetricsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataStreamsAsync(ListDataStreamsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFirebaseLinksAsync(ListFirebaseLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGoogleAdsLinksAsync(ListGoogleAdsLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listKeyEventsAsync(ListKeyEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMeasurementProtocolSecretsAsync(ListMeasurementProtocolSecretsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPropertiesAsync(ListPropertiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface provisionAccountTicketAsync(ProvisionAccountTicketRequest $request, array $optionalArgs = []) + * @method PromiseInterface runAccessReportAsync(RunAccessReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchChangeHistoryEventsAsync(SearchChangeHistoryEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAccountAsync(UpdateAccountRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConversionEventAsync(UpdateConversionEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomDimensionAsync(UpdateCustomDimensionRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomMetricAsync(UpdateCustomMetricRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataRetentionSettingsAsync(UpdateDataRetentionSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataStreamAsync(UpdateDataStreamRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateKeyEventAsync(UpdateKeyEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = []) */ final class AnalyticsAdminServiceClient { diff --git a/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php b/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php index 0f4e8ccbea65..14ddbf2bdf59 100644 --- a/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php +++ b/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php @@ -76,20 +76,20 @@ * * @experimental * - * @method PromiseInterface createAudienceListAsync(CreateAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRecurringAudienceListAsync(CreateRecurringAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReportTaskAsync(CreateReportTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAudienceListAsync(GetAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPropertyQuotasSnapshotAsync(GetPropertyQuotasSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRecurringAudienceListAsync(GetRecurringAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReportTaskAsync(GetReportTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAudienceListsAsync(ListAudienceListsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRecurringAudienceListsAsync(ListRecurringAudienceListsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReportTasksAsync(ListReportTasksRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryAudienceListAsync(QueryAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryReportTaskAsync(QueryReportTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface runFunnelReportAsync(RunFunnelReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface sheetExportAudienceListAsync(SheetExportAudienceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAudienceListAsync(CreateAudienceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRecurringAudienceListAsync(CreateRecurringAudienceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface createReportTaskAsync(CreateReportTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAudienceListAsync(GetAudienceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPropertyQuotasSnapshotAsync(GetPropertyQuotasSnapshotRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRecurringAudienceListAsync(GetRecurringAudienceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReportTaskAsync(GetReportTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAudienceListsAsync(ListAudienceListsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRecurringAudienceListsAsync(ListRecurringAudienceListsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReportTasksAsync(ListReportTasksRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryAudienceListAsync(QueryAudienceListRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryReportTaskAsync(QueryReportTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface runFunnelReportAsync(RunFunnelReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface sheetExportAudienceListAsync(SheetExportAudienceListRequest $request, array $optionalArgs = []) */ final class AlphaAnalyticsDataClient { diff --git a/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php b/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php index c876a83eb891..2caaa52f3485 100644 --- a/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php +++ b/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php @@ -75,17 +75,17 @@ * * @experimental * - * @method PromiseInterface batchRunPivotReportsAsync(BatchRunPivotReportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchRunReportsAsync(BatchRunReportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface checkCompatibilityAsync(CheckCompatibilityRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAudienceExportAsync(CreateAudienceExportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAudienceExportAsync(GetAudienceExportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataAsync(GetMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAudienceExportsAsync(ListAudienceExportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryAudienceExportAsync(QueryAudienceExportRequest $request, array $optionalArgs = []) - * @method PromiseInterface runPivotReportAsync(RunPivotReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface runRealtimeReportAsync(RunRealtimeReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchRunPivotReportsAsync(BatchRunPivotReportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchRunReportsAsync(BatchRunReportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface checkCompatibilityAsync(CheckCompatibilityRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAudienceExportAsync(CreateAudienceExportRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAudienceExportAsync(GetAudienceExportRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMetadataAsync(GetMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAudienceExportsAsync(ListAudienceExportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryAudienceExportAsync(QueryAudienceExportRequest $request, array $optionalArgs = []) + * @method PromiseInterface runPivotReportAsync(RunPivotReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface runRealtimeReportAsync(RunRealtimeReportRequest $request, array $optionalArgs = []) + * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) */ final class BetaAnalyticsDataClient { diff --git a/ApiGateway/src/V1/Client/ApiGatewayServiceClient.php b/ApiGateway/src/V1/Client/ApiGatewayServiceClient.php index 3a8380df0c34..7c0581291e02 100644 --- a/ApiGateway/src/V1/Client/ApiGatewayServiceClient.php +++ b/ApiGateway/src/V1/Client/ApiGatewayServiceClient.php @@ -67,21 +67,21 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createApiAsync(CreateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiConfigAsync(CreateApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGatewayAsync(CreateGatewayRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiConfigAsync(DeleteApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGatewayAsync(DeleteGatewayRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiConfigAsync(GetApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGatewayAsync(GetGatewayRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiConfigsAsync(ListApiConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGatewaysAsync(ListGatewaysRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiConfigAsync(UpdateApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGatewayAsync(UpdateGatewayRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiAsync(CreateApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiConfigAsync(CreateApiConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createGatewayAsync(CreateGatewayRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiConfigAsync(DeleteApiConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGatewayAsync(DeleteGatewayRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiConfigAsync(GetApiConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGatewayAsync(GetGatewayRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApiConfigsAsync(ListApiConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGatewaysAsync(ListGatewaysRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApiConfigAsync(UpdateApiConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGatewayAsync(UpdateGatewayRequest $request, array $optionalArgs = []) */ final class ApiGatewayServiceClient { diff --git a/ApiHub/src/V1/Client/ApiHubClient.php b/ApiHub/src/V1/Client/ApiHubClient.php index b4aad22a0a71..a07bdf0c3546 100644 --- a/ApiHub/src/V1/Client/ApiHubClient.php +++ b/ApiHub/src/V1/Client/ApiHubClient.php @@ -93,43 +93,43 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createApiAsync(CreateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAttributeAsync(CreateAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDeploymentAsync(CreateDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createExternalApiAsync(CreateExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSpecAsync(CreateSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface createVersionAsync(CreateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAttributeAsync(DeleteAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDeploymentAsync(DeleteDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteExternalApiAsync(DeleteExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSpecAsync(DeleteSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiOperationAsync(GetApiOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttributeAsync(GetAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDefinitionAsync(GetDefinitionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDeploymentAsync(GetDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getExternalApiAsync(GetExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpecAsync(GetSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpecContentsAsync(GetSpecContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiOperationsAsync(ListApiOperationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAttributesAsync(ListAttributesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeploymentsAsync(ListDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listExternalApisAsync(ListExternalApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpecsAsync(ListSpecsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchResourcesAsync(SearchResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAttributeAsync(UpdateAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDeploymentAsync(UpdateDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateExternalApiAsync(UpdateExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpecAsync(UpdateSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiAsync(CreateApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAttributeAsync(CreateAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDeploymentAsync(CreateDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createExternalApiAsync(CreateExternalApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSpecAsync(CreateSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface createVersionAsync(CreateVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAttributeAsync(DeleteAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDeploymentAsync(DeleteDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteExternalApiAsync(DeleteExternalApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSpecAsync(DeleteSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiOperationAsync(GetApiOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAttributeAsync(GetAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDefinitionAsync(GetDefinitionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDeploymentAsync(GetDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getExternalApiAsync(GetExternalApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpecAsync(GetSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpecContentsAsync(GetSpecContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApiOperationsAsync(ListApiOperationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAttributesAsync(ListAttributesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeploymentsAsync(ListDeploymentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listExternalApisAsync(ListExternalApisRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSpecsAsync(ListSpecsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchResourcesAsync(SearchResourcesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAttributeAsync(UpdateAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDeploymentAsync(UpdateDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateExternalApiAsync(UpdateExternalApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpecAsync(UpdateSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class ApiHubClient { diff --git a/ApiHub/src/V1/Client/ApiHubDependenciesClient.php b/ApiHub/src/V1/Client/ApiHubDependenciesClient.php index acdedf5cd1c9..49c24660b965 100644 --- a/ApiHub/src/V1/Client/ApiHubDependenciesClient.php +++ b/ApiHub/src/V1/Client/ApiHubDependenciesClient.php @@ -56,13 +56,13 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createDependencyAsync(CreateDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDependencyAsync(DeleteDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDependencyAsync(GetDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDependenciesAsync(ListDependenciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDependencyAsync(UpdateDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDependencyAsync(CreateDependencyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDependencyAsync(DeleteDependencyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDependencyAsync(GetDependencyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDependenciesAsync(ListDependenciesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDependencyAsync(UpdateDependencyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class ApiHubDependenciesClient { diff --git a/ApiHub/src/V1/Client/ApiHubPluginClient.php b/ApiHub/src/V1/Client/ApiHubPluginClient.php index 4a5e30165e09..a760cde8b8a3 100644 --- a/ApiHub/src/V1/Client/ApiHubPluginClient.php +++ b/ApiHub/src/V1/Client/ApiHubPluginClient.php @@ -53,11 +53,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface disablePluginAsync(DisablePluginRequest $request, array $optionalArgs = []) - * @method PromiseInterface enablePluginAsync(EnablePluginRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPluginAsync(GetPluginRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface disablePluginAsync(DisablePluginRequest $request, array $optionalArgs = []) + * @method PromiseInterface enablePluginAsync(EnablePluginRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPluginAsync(GetPluginRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class ApiHubPluginClient { diff --git a/ApiHub/src/V1/Client/HostProjectRegistrationServiceClient.php b/ApiHub/src/V1/Client/HostProjectRegistrationServiceClient.php index f3d579d56d5a..72fd11890d20 100644 --- a/ApiHub/src/V1/Client/HostProjectRegistrationServiceClient.php +++ b/ApiHub/src/V1/Client/HostProjectRegistrationServiceClient.php @@ -53,11 +53,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getHostProjectRegistrationAsync(GetHostProjectRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getHostProjectRegistrationAsync(GetHostProjectRegistrationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class HostProjectRegistrationServiceClient { diff --git a/ApiHub/src/V1/Client/LintingServiceClient.php b/ApiHub/src/V1/Client/LintingServiceClient.php index 340ba7f6ea04..b277b343408d 100644 --- a/ApiHub/src/V1/Client/LintingServiceClient.php +++ b/ApiHub/src/V1/Client/LintingServiceClient.php @@ -55,12 +55,12 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getStyleGuideAsync(GetStyleGuideRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStyleGuideContentsAsync(GetStyleGuideContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface lintSpecAsync(LintSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateStyleGuideAsync(UpdateStyleGuideRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getStyleGuideAsync(GetStyleGuideRequest $request, array $optionalArgs = []) + * @method PromiseInterface getStyleGuideContentsAsync(GetStyleGuideContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface lintSpecAsync(LintSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateStyleGuideAsync(UpdateStyleGuideRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class LintingServiceClient { diff --git a/ApiHub/src/V1/Client/ProvisioningClient.php b/ApiHub/src/V1/Client/ProvisioningClient.php index 809100de664e..738f0cc59c72 100644 --- a/ApiHub/src/V1/Client/ProvisioningClient.php +++ b/ApiHub/src/V1/Client/ProvisioningClient.php @@ -57,11 +57,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createApiHubInstanceAsync(CreateApiHubInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiHubInstanceAsync(GetApiHubInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupApiHubInstanceAsync(LookupApiHubInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiHubInstanceAsync(CreateApiHubInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiHubInstanceAsync(GetApiHubInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupApiHubInstanceAsync(LookupApiHubInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class ProvisioningClient { diff --git a/ApiHub/src/V1/Client/RuntimeProjectAttachmentServiceClient.php b/ApiHub/src/V1/Client/RuntimeProjectAttachmentServiceClient.php index 2f4d697aaa52..b23c0a86bdcd 100644 --- a/ApiHub/src/V1/Client/RuntimeProjectAttachmentServiceClient.php +++ b/ApiHub/src/V1/Client/RuntimeProjectAttachmentServiceClient.php @@ -56,13 +56,13 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class RuntimeProjectAttachmentServiceClient { diff --git a/ApiKeys/src/V2/Client/ApiKeysClient.php b/ApiKeys/src/V2/Client/ApiKeysClient.php index a0551e4e5ab5..9c5d0371a4c5 100644 --- a/ApiKeys/src/V2/Client/ApiKeysClient.php +++ b/ApiKeys/src/V2/Client/ApiKeysClient.php @@ -60,14 +60,14 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createKeyAsync(CreateKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteKeyAsync(DeleteKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyAsync(GetKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyStringAsync(GetKeyStringRequest $request, array $optionalArgs = []) - * @method PromiseInterface listKeysAsync(ListKeysRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupKeyAsync(LookupKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface undeleteKeyAsync(UndeleteKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateKeyAsync(UpdateKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface createKeyAsync(CreateKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteKeyAsync(DeleteKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getKeyAsync(GetKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getKeyStringAsync(GetKeyStringRequest $request, array $optionalArgs = []) + * @method PromiseInterface listKeysAsync(ListKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupKeyAsync(LookupKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface undeleteKeyAsync(UndeleteKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateKeyAsync(UpdateKeyRequest $request, array $optionalArgs = []) */ final class ApiKeysClient { diff --git a/ApigeeConnect/src/V1/Client/ConnectionServiceClient.php b/ApigeeConnect/src/V1/Client/ConnectionServiceClient.php index f32e0e799552..4d8853ad196c 100644 --- a/ApigeeConnect/src/V1/Client/ConnectionServiceClient.php +++ b/ApigeeConnect/src/V1/Client/ConnectionServiceClient.php @@ -47,7 +47,7 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) */ final class ConnectionServiceClient { diff --git a/ApigeeRegistry/src/V1/Client/ProvisioningClient.php b/ApigeeRegistry/src/V1/Client/ProvisioningClient.php index 6f87d64bf7f9..2bacb98f95ca 100644 --- a/ApigeeRegistry/src/V1/Client/ProvisioningClient.php +++ b/ApigeeRegistry/src/V1/Client/ProvisioningClient.php @@ -62,14 +62,14 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ final class ProvisioningClient { diff --git a/ApigeeRegistry/src/V1/Client/RegistryClient.php b/ApigeeRegistry/src/V1/Client/RegistryClient.php index 121e337114e6..d66617c6dedc 100644 --- a/ApigeeRegistry/src/V1/Client/RegistryClient.php +++ b/ApigeeRegistry/src/V1/Client/RegistryClient.php @@ -95,46 +95,46 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createApiAsync(CreateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiDeploymentAsync(CreateApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiSpecAsync(CreateApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiVersionAsync(CreateApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createArtifactAsync(CreateArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiDeploymentAsync(DeleteApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiDeploymentRevisionAsync(DeleteApiDeploymentRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiSpecAsync(DeleteApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiSpecRevisionAsync(DeleteApiSpecRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiVersionAsync(DeleteApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteArtifactAsync(DeleteArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiDeploymentAsync(GetApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiSpecAsync(GetApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiSpecContentsAsync(GetApiSpecContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiVersionAsync(GetApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getArtifactAsync(GetArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getArtifactContentsAsync(GetArtifactContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiDeploymentRevisionsAsync(ListApiDeploymentRevisionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiDeploymentsAsync(ListApiDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiSpecRevisionsAsync(ListApiSpecRevisionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiSpecsAsync(ListApiSpecsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiVersionsAsync(ListApiVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listArtifactsAsync(ListArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface replaceArtifactAsync(ReplaceArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackApiDeploymentAsync(RollbackApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackApiSpecAsync(RollbackApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface tagApiDeploymentRevisionAsync(TagApiDeploymentRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface tagApiSpecRevisionAsync(TagApiSpecRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiDeploymentAsync(UpdateApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiSpecAsync(UpdateApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiVersionAsync(UpdateApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiAsync(CreateApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiDeploymentAsync(CreateApiDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiSpecAsync(CreateApiSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApiVersionAsync(CreateApiVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createArtifactAsync(CreateArtifactRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiDeploymentAsync(DeleteApiDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiDeploymentRevisionAsync(DeleteApiDeploymentRevisionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiSpecAsync(DeleteApiSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiSpecRevisionAsync(DeleteApiSpecRevisionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApiVersionAsync(DeleteApiVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteArtifactAsync(DeleteArtifactRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiDeploymentAsync(GetApiDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiSpecAsync(GetApiSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiSpecContentsAsync(GetApiSpecContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApiVersionAsync(GetApiVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getArtifactAsync(GetArtifactRequest $request, array $optionalArgs = []) + * @method PromiseInterface getArtifactContentsAsync(GetArtifactContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApiDeploymentRevisionsAsync(ListApiDeploymentRevisionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApiDeploymentsAsync(ListApiDeploymentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApiSpecRevisionsAsync(ListApiSpecRevisionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApiSpecsAsync(ListApiSpecsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApiVersionsAsync(ListApiVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) + * @method PromiseInterface listArtifactsAsync(ListArtifactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface replaceArtifactAsync(ReplaceArtifactRequest $request, array $optionalArgs = []) + * @method PromiseInterface rollbackApiDeploymentAsync(RollbackApiDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface rollbackApiSpecAsync(RollbackApiSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface tagApiDeploymentRevisionAsync(TagApiDeploymentRevisionRequest $request, array $optionalArgs = []) + * @method PromiseInterface tagApiSpecRevisionAsync(TagApiSpecRevisionRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApiDeploymentAsync(UpdateApiDeploymentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApiSpecAsync(UpdateApiSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApiVersionAsync(UpdateApiVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ final class RegistryClient { diff --git a/AppEngineAdmin/src/V1/Client/ApplicationsClient.php b/AppEngineAdmin/src/V1/Client/ApplicationsClient.php index e8514baf13ff..8581da603a8e 100644 --- a/AppEngineAdmin/src/V1/Client/ApplicationsClient.php +++ b/AppEngineAdmin/src/V1/Client/ApplicationsClient.php @@ -47,10 +47,10 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface createApplicationAsync(CreateApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApplicationAsync(GetApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface repairApplicationAsync(RepairApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApplicationAsync(UpdateApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApplicationAsync(CreateApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApplicationAsync(GetApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface repairApplicationAsync(RepairApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApplicationAsync(UpdateApplicationRequest $request, array $optionalArgs = []) */ final class ApplicationsClient { diff --git a/AppEngineAdmin/src/V1/Client/AuthorizedCertificatesClient.php b/AppEngineAdmin/src/V1/Client/AuthorizedCertificatesClient.php index 8ed30d63fb7a..f0e7c7611cd8 100644 --- a/AppEngineAdmin/src/V1/Client/AuthorizedCertificatesClient.php +++ b/AppEngineAdmin/src/V1/Client/AuthorizedCertificatesClient.php @@ -47,11 +47,11 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface createAuthorizedCertificateAsync(CreateAuthorizedCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAuthorizedCertificateAsync(DeleteAuthorizedCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAuthorizedCertificateAsync(GetAuthorizedCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAuthorizedCertificatesAsync(ListAuthorizedCertificatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAuthorizedCertificateAsync(UpdateAuthorizedCertificateRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAuthorizedCertificateAsync(CreateAuthorizedCertificateRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAuthorizedCertificateAsync(DeleteAuthorizedCertificateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAuthorizedCertificateAsync(GetAuthorizedCertificateRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAuthorizedCertificatesAsync(ListAuthorizedCertificatesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAuthorizedCertificateAsync(UpdateAuthorizedCertificateRequest $request, array $optionalArgs = []) */ final class AuthorizedCertificatesClient { diff --git a/AppEngineAdmin/src/V1/Client/AuthorizedDomainsClient.php b/AppEngineAdmin/src/V1/Client/AuthorizedDomainsClient.php index 1e4399551546..e162bb2ae415 100644 --- a/AppEngineAdmin/src/V1/Client/AuthorizedDomainsClient.php +++ b/AppEngineAdmin/src/V1/Client/AuthorizedDomainsClient.php @@ -43,7 +43,7 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface listAuthorizedDomainsAsync(ListAuthorizedDomainsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAuthorizedDomainsAsync(ListAuthorizedDomainsRequest $request, array $optionalArgs = []) */ final class AuthorizedDomainsClient { diff --git a/AppEngineAdmin/src/V1/Client/DomainMappingsClient.php b/AppEngineAdmin/src/V1/Client/DomainMappingsClient.php index 55ad78e926fb..f562523718eb 100644 --- a/AppEngineAdmin/src/V1/Client/DomainMappingsClient.php +++ b/AppEngineAdmin/src/V1/Client/DomainMappingsClient.php @@ -49,11 +49,11 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface createDomainMappingAsync(CreateDomainMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDomainMappingAsync(DeleteDomainMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDomainMappingAsync(GetDomainMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDomainMappingsAsync(ListDomainMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDomainMappingAsync(UpdateDomainMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDomainMappingAsync(CreateDomainMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDomainMappingAsync(DeleteDomainMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDomainMappingAsync(GetDomainMappingRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDomainMappingsAsync(ListDomainMappingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDomainMappingAsync(UpdateDomainMappingRequest $request, array $optionalArgs = []) */ final class DomainMappingsClient { diff --git a/AppEngineAdmin/src/V1/Client/FirewallClient.php b/AppEngineAdmin/src/V1/Client/FirewallClient.php index 9bd36a6de482..cafa6598011b 100644 --- a/AppEngineAdmin/src/V1/Client/FirewallClient.php +++ b/AppEngineAdmin/src/V1/Client/FirewallClient.php @@ -57,12 +57,12 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface batchUpdateIngressRulesAsync(BatchUpdateIngressRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createIngressRuleAsync(CreateIngressRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteIngressRuleAsync(DeleteIngressRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIngressRuleAsync(GetIngressRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface listIngressRulesAsync(ListIngressRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateIngressRuleAsync(UpdateIngressRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateIngressRulesAsync(BatchUpdateIngressRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createIngressRuleAsync(CreateIngressRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteIngressRuleAsync(DeleteIngressRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIngressRuleAsync(GetIngressRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface listIngressRulesAsync(ListIngressRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateIngressRuleAsync(UpdateIngressRuleRequest $request, array $optionalArgs = []) */ final class FirewallClient { diff --git a/AppEngineAdmin/src/V1/Client/InstancesClient.php b/AppEngineAdmin/src/V1/Client/InstancesClient.php index 073ce3317fe5..ca5f8980cde8 100644 --- a/AppEngineAdmin/src/V1/Client/InstancesClient.php +++ b/AppEngineAdmin/src/V1/Client/InstancesClient.php @@ -48,10 +48,10 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface debugInstanceAsync(DebugInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) + * @method PromiseInterface debugInstanceAsync(DebugInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) */ final class InstancesClient { diff --git a/AppEngineAdmin/src/V1/Client/ServicesClient.php b/AppEngineAdmin/src/V1/Client/ServicesClient.php index afff870c2281..2451f9d74400 100644 --- a/AppEngineAdmin/src/V1/Client/ServicesClient.php +++ b/AppEngineAdmin/src/V1/Client/ServicesClient.php @@ -48,10 +48,10 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) */ final class ServicesClient { diff --git a/AppEngineAdmin/src/V1/Client/VersionsClient.php b/AppEngineAdmin/src/V1/Client/VersionsClient.php index 5536ae4e6afb..6b61abecc9b4 100644 --- a/AppEngineAdmin/src/V1/Client/VersionsClient.php +++ b/AppEngineAdmin/src/V1/Client/VersionsClient.php @@ -49,11 +49,11 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface createVersionAsync(CreateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createVersionAsync(CreateVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) */ final class VersionsClient { diff --git a/AppHub/src/V1/Client/AppHubClient.php b/AppHub/src/V1/Client/AppHubClient.php index 0cbd2116701a..e944f105ba4b 100644 --- a/AppHub/src/V1/Client/AppHubClient.php +++ b/AppHub/src/V1/Client/AppHubClient.php @@ -94,38 +94,38 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createApplicationAsync(CreateApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceProjectAttachmentAsync(CreateServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApplicationAsync(DeleteApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceProjectAttachmentAsync(DeleteServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface detachServiceProjectAttachmentAsync(DetachServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApplicationAsync(GetApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDiscoveredServiceAsync(GetDiscoveredServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDiscoveredWorkloadAsync(GetDiscoveredWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceProjectAttachmentAsync(GetServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApplicationsAsync(ListApplicationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDiscoveredServicesAsync(ListDiscoveredServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDiscoveredWorkloadsAsync(ListDiscoveredWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServiceProjectAttachmentsAsync(ListServiceProjectAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupDiscoveredServiceAsync(LookupDiscoveredServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupDiscoveredWorkloadAsync(LookupDiscoveredWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupServiceProjectAttachmentAsync(LookupServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApplicationAsync(UpdateApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createApplicationAsync(CreateApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createServiceProjectAttachmentAsync(CreateServiceProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteApplicationAsync(DeleteApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteServiceProjectAttachmentAsync(DeleteServiceProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface detachServiceProjectAttachmentAsync(DetachServiceProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getApplicationAsync(GetApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDiscoveredServiceAsync(GetDiscoveredServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDiscoveredWorkloadAsync(GetDiscoveredWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServiceProjectAttachmentAsync(GetServiceProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface listApplicationsAsync(ListApplicationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDiscoveredServicesAsync(ListDiscoveredServicesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDiscoveredWorkloadsAsync(ListDiscoveredWorkloadsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listServiceProjectAttachmentsAsync(ListServiceProjectAttachmentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupDiscoveredServiceAsync(LookupDiscoveredServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupDiscoveredWorkloadAsync(LookupDiscoveredWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupServiceProjectAttachmentAsync(LookupServiceProjectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateApplicationAsync(UpdateApplicationRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ final class AppHubClient { diff --git a/AppsChat/src/Chat/V1/Client/ChatServiceClient.php b/AppsChat/src/Chat/V1/Client/ChatServiceClient.php index 6f111785d59c..f5ce6214a1fd 100644 --- a/AppsChat/src/Chat/V1/Client/ChatServiceClient.php +++ b/AppsChat/src/Chat/V1/Client/ChatServiceClient.php @@ -86,35 +86,35 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface completeImportSpaceAsync(CompleteImportSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMessageAsync(CreateMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReactionAsync(CreateReactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMembershipAsync(DeleteMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMessageAsync(DeleteMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteReactionAsync(DeleteReactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSpaceAsync(DeleteSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface findDirectMessageAsync(FindDirectMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMembershipAsync(GetMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMessageAsync(GetMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceEventAsync(GetSpaceEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceReadStateAsync(GetSpaceReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getThreadReadStateAsync(GetThreadReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMembershipsAsync(ListMembershipsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReactionsAsync(ListReactionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpaceEventsAsync(ListSpaceEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpacesAsync(ListSpacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchSpacesAsync(SearchSpacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface setUpSpaceAsync(SetUpSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMembershipAsync(UpdateMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMessageAsync(UpdateMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceReadStateAsync(UpdateSpaceReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface uploadAttachmentAsync(UploadAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface completeImportSpaceAsync(CompleteImportSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMessageAsync(CreateMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface createReactionAsync(CreateReactionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMembershipAsync(DeleteMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMessageAsync(DeleteMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteReactionAsync(DeleteReactionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSpaceAsync(DeleteSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface findDirectMessageAsync(FindDirectMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMembershipAsync(GetMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMessageAsync(GetMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceEventAsync(GetSpaceEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceReadStateAsync(GetSpaceReadStateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getThreadReadStateAsync(GetThreadReadStateRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMembershipsAsync(ListMembershipsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReactionsAsync(ListReactionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSpaceEventsAsync(ListSpaceEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSpacesAsync(ListSpacesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchSpacesAsync(SearchSpacesRequest $request, array $optionalArgs = []) + * @method PromiseInterface setUpSpaceAsync(SetUpSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMembershipAsync(UpdateMembershipRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMessageAsync(UpdateMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpaceReadStateAsync(UpdateSpaceReadStateRequest $request, array $optionalArgs = []) + * @method PromiseInterface uploadAttachmentAsync(UploadAttachmentRequest $request, array $optionalArgs = []) */ final class ChatServiceClient { diff --git a/AppsEventsSubscriptions/src/V1/Client/SubscriptionsServiceClient.php b/AppsEventsSubscriptions/src/V1/Client/SubscriptionsServiceClient.php index cad8645a3030..7ebdc82ac707 100644 --- a/AppsEventsSubscriptions/src/V1/Client/SubscriptionsServiceClient.php +++ b/AppsEventsSubscriptions/src/V1/Client/SubscriptionsServiceClient.php @@ -56,12 +56,12 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createSubscriptionAsync(CreateSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSubscriptionAsync(DeleteSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSubscriptionAsync(GetSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSubscriptionsAsync(ListSubscriptionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface reactivateSubscriptionAsync(ReactivateSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSubscriptionAsync(UpdateSubscriptionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSubscriptionAsync(CreateSubscriptionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSubscriptionAsync(DeleteSubscriptionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSubscriptionAsync(GetSubscriptionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSubscriptionsAsync(ListSubscriptionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface reactivateSubscriptionAsync(ReactivateSubscriptionRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSubscriptionAsync(UpdateSubscriptionRequest $request, array $optionalArgs = []) */ final class SubscriptionsServiceClient { diff --git a/AppsMeet/src/V2/Client/ConferenceRecordsServiceClient.php b/AppsMeet/src/V2/Client/ConferenceRecordsServiceClient.php index 805549154df5..5c73fcff42dd 100644 --- a/AppsMeet/src/V2/Client/ConferenceRecordsServiceClient.php +++ b/AppsMeet/src/V2/Client/ConferenceRecordsServiceClient.php @@ -64,18 +64,18 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getConferenceRecordAsync(GetConferenceRecordRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantAsync(GetParticipantRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantSessionAsync(GetParticipantSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRecordingAsync(GetRecordingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptAsync(GetTranscriptRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptEntryAsync(GetTranscriptEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConferenceRecordsAsync(ListConferenceRecordsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantSessionsAsync(ListParticipantSessionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantsAsync(ListParticipantsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRecordingsAsync(ListRecordingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptEntriesAsync(ListTranscriptEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptsAsync(ListTranscriptsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConferenceRecordAsync(GetConferenceRecordRequest $request, array $optionalArgs = []) + * @method PromiseInterface getParticipantAsync(GetParticipantRequest $request, array $optionalArgs = []) + * @method PromiseInterface getParticipantSessionAsync(GetParticipantSessionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRecordingAsync(GetRecordingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTranscriptAsync(GetTranscriptRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTranscriptEntryAsync(GetTranscriptEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConferenceRecordsAsync(ListConferenceRecordsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listParticipantSessionsAsync(ListParticipantSessionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listParticipantsAsync(ListParticipantsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRecordingsAsync(ListRecordingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTranscriptEntriesAsync(ListTranscriptEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTranscriptsAsync(ListTranscriptsRequest $request, array $optionalArgs = []) */ final class ConferenceRecordsServiceClient { diff --git a/AppsMeet/src/V2/Client/SpacesServiceClient.php b/AppsMeet/src/V2/Client/SpacesServiceClient.php index 381f8fb71fbd..cd80b2f3ea4b 100644 --- a/AppsMeet/src/V2/Client/SpacesServiceClient.php +++ b/AppsMeet/src/V2/Client/SpacesServiceClient.php @@ -50,10 +50,10 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface endActiveConferenceAsync(EndActiveConferenceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface endActiveConferenceAsync(EndActiveConferenceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) */ final class SpacesServiceClient { diff --git a/AppsMeet/src/V2beta/Client/ConferenceRecordsServiceClient.php b/AppsMeet/src/V2beta/Client/ConferenceRecordsServiceClient.php index 997a90c71065..292064cc5b4f 100644 --- a/AppsMeet/src/V2beta/Client/ConferenceRecordsServiceClient.php +++ b/AppsMeet/src/V2beta/Client/ConferenceRecordsServiceClient.php @@ -68,18 +68,18 @@ * * @experimental * - * @method PromiseInterface getConferenceRecordAsync(GetConferenceRecordRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantAsync(GetParticipantRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantSessionAsync(GetParticipantSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRecordingAsync(GetRecordingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptAsync(GetTranscriptRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptEntryAsync(GetTranscriptEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConferenceRecordsAsync(ListConferenceRecordsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantSessionsAsync(ListParticipantSessionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantsAsync(ListParticipantsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRecordingsAsync(ListRecordingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptEntriesAsync(ListTranscriptEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptsAsync(ListTranscriptsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConferenceRecordAsync(GetConferenceRecordRequest $request, array $optionalArgs = []) + * @method PromiseInterface getParticipantAsync(GetParticipantRequest $request, array $optionalArgs = []) + * @method PromiseInterface getParticipantSessionAsync(GetParticipantSessionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRecordingAsync(GetRecordingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTranscriptAsync(GetTranscriptRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTranscriptEntryAsync(GetTranscriptEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConferenceRecordsAsync(ListConferenceRecordsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listParticipantSessionsAsync(ListParticipantSessionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listParticipantsAsync(ListParticipantsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRecordingsAsync(ListRecordingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTranscriptEntriesAsync(ListTranscriptEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTranscriptsAsync(ListTranscriptsRequest $request, array $optionalArgs = []) */ final class ConferenceRecordsServiceClient { diff --git a/AppsMeet/src/V2beta/Client/SpacesServiceClient.php b/AppsMeet/src/V2beta/Client/SpacesServiceClient.php index 0d295f4d491c..d45a0f24d1e8 100644 --- a/AppsMeet/src/V2beta/Client/SpacesServiceClient.php +++ b/AppsMeet/src/V2beta/Client/SpacesServiceClient.php @@ -54,10 +54,10 @@ * * @experimental * - * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface endActiveConferenceAsync(EndActiveConferenceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface endActiveConferenceAsync(EndActiveConferenceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) */ final class SpacesServiceClient { diff --git a/Asset/src/V1/Client/AssetServiceClient.php b/Asset/src/V1/Client/AssetServiceClient.php index ef0d334c9463..461e1e66ff4a 100644 --- a/Asset/src/V1/Client/AssetServiceClient.php +++ b/Asset/src/V1/Client/AssetServiceClient.php @@ -80,29 +80,29 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface analyzeIamPolicyAsync(AnalyzeIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeIamPolicyLongrunningAsync(AnalyzeIamPolicyLongrunningRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeMoveAsync(AnalyzeMoveRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeOrgPoliciesAsync(AnalyzeOrgPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeOrgPolicyGovernedAssetsAsync(AnalyzeOrgPolicyGovernedAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeOrgPolicyGovernedContainersAsync(AnalyzeOrgPolicyGovernedContainersRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchGetEffectiveIamPoliciesAsync(BatchGetEffectiveIamPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFeedAsync(CreateFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSavedQueryAsync(CreateSavedQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFeedAsync(DeleteFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSavedQueryAsync(DeleteSavedQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportAssetsAsync(ExportAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFeedAsync(GetFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSavedQueryAsync(GetSavedQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAssetsAsync(ListAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFeedsAsync(ListFeedsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSavedQueriesAsync(ListSavedQueriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryAssetsAsync(QueryAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchAllIamPoliciesAsync(SearchAllIamPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchAllResourcesAsync(SearchAllResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFeedAsync(UpdateFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSavedQueryAsync(UpdateSavedQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface analyzeIamPolicyAsync(AnalyzeIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface analyzeIamPolicyLongrunningAsync(AnalyzeIamPolicyLongrunningRequest $request, array $optionalArgs = []) + * @method PromiseInterface analyzeMoveAsync(AnalyzeMoveRequest $request, array $optionalArgs = []) + * @method PromiseInterface analyzeOrgPoliciesAsync(AnalyzeOrgPoliciesRequest $request, array $optionalArgs = []) + * @method PromiseInterface analyzeOrgPolicyGovernedAssetsAsync(AnalyzeOrgPolicyGovernedAssetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface analyzeOrgPolicyGovernedContainersAsync(AnalyzeOrgPolicyGovernedContainersRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchGetEffectiveIamPoliciesAsync(BatchGetEffectiveIamPoliciesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFeedAsync(CreateFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSavedQueryAsync(CreateSavedQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFeedAsync(DeleteFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSavedQueryAsync(DeleteSavedQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportAssetsAsync(ExportAssetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFeedAsync(GetFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSavedQueryAsync(GetSavedQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAssetsAsync(ListAssetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFeedsAsync(ListFeedsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSavedQueriesAsync(ListSavedQueriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryAssetsAsync(QueryAssetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchAllIamPoliciesAsync(SearchAllIamPoliciesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchAllResourcesAsync(SearchAllResourcesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFeedAsync(UpdateFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSavedQueryAsync(UpdateSavedQueryRequest $request, array $optionalArgs = []) */ final class AssetServiceClient { diff --git a/AssuredWorkloads/src/V1/Client/AssuredWorkloadsServiceClient.php b/AssuredWorkloads/src/V1/Client/AssuredWorkloadsServiceClient.php index 635f6b4714a0..58e2ff958744 100644 --- a/AssuredWorkloads/src/V1/Client/AssuredWorkloadsServiceClient.php +++ b/AssuredWorkloads/src/V1/Client/AssuredWorkloadsServiceClient.php @@ -62,15 +62,15 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface acknowledgeViolationAsync(AcknowledgeViolationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getViolationAsync(GetViolationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface listViolationsAsync(ListViolationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface restrictAllowedResourcesAsync(RestrictAllowedResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface acknowledgeViolationAsync(AcknowledgeViolationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface getViolationAsync(GetViolationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface listViolationsAsync(ListViolationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) + * @method PromiseInterface restrictAllowedResourcesAsync(RestrictAllowedResourcesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) */ final class AssuredWorkloadsServiceClient { diff --git a/AssuredWorkloads/src/V1beta1/Client/AssuredWorkloadsServiceClient.php b/AssuredWorkloads/src/V1beta1/Client/AssuredWorkloadsServiceClient.php index 1883ed7224c7..99fdcc82c267 100644 --- a/AssuredWorkloads/src/V1beta1/Client/AssuredWorkloadsServiceClient.php +++ b/AssuredWorkloads/src/V1beta1/Client/AssuredWorkloadsServiceClient.php @@ -63,13 +63,13 @@ * * @experimental * - * @method PromiseInterface analyzeWorkloadMoveAsync(AnalyzeWorkloadMoveRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface restrictAllowedResourcesAsync(RestrictAllowedResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface analyzeWorkloadMoveAsync(AnalyzeWorkloadMoveRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) + * @method PromiseInterface restrictAllowedResourcesAsync(RestrictAllowedResourcesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) */ final class AssuredWorkloadsServiceClient { diff --git a/AutoMl/src/V1/Client/AutoMlClient.php b/AutoMl/src/V1/Client/AutoMlClient.php index 98fa0ec54eeb..22cb3da53a63 100644 --- a/AutoMl/src/V1/Client/AutoMlClient.php +++ b/AutoMl/src/V1/Client/AutoMlClient.php @@ -84,24 +84,24 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createDatasetAsync(CreateDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface createModelAsync(CreateModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDatasetAsync(DeleteDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteModelAsync(DeleteModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deployModelAsync(DeployModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportDataAsync(ExportDataRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportModelAsync(ExportModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAnnotationSpecAsync(GetAnnotationSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDatasetAsync(GetDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getModelAsync(GetModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getModelEvaluationAsync(GetModelEvaluationRequest $request, array $optionalArgs = []) - * @method PromiseInterface importDataAsync(ImportDataRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDatasetsAsync(ListDatasetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listModelEvaluationsAsync(ListModelEvaluationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listModelsAsync(ListModelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface undeployModelAsync(UndeployModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDatasetAsync(UpdateDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateModelAsync(UpdateModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDatasetAsync(CreateDatasetRequest $request, array $optionalArgs = []) + * @method PromiseInterface createModelAsync(CreateModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDatasetAsync(DeleteDatasetRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteModelAsync(DeleteModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface deployModelAsync(DeployModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportDataAsync(ExportDataRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportModelAsync(ExportModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAnnotationSpecAsync(GetAnnotationSpecRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDatasetAsync(GetDatasetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getModelAsync(GetModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getModelEvaluationAsync(GetModelEvaluationRequest $request, array $optionalArgs = []) + * @method PromiseInterface importDataAsync(ImportDataRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDatasetsAsync(ListDatasetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listModelEvaluationsAsync(ListModelEvaluationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listModelsAsync(ListModelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface undeployModelAsync(UndeployModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDatasetAsync(UpdateDatasetRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateModelAsync(UpdateModelRequest $request, array $optionalArgs = []) */ final class AutoMlClient { diff --git a/AutoMl/src/V1/Client/PredictionServiceClient.php b/AutoMl/src/V1/Client/PredictionServiceClient.php index 9e8c66e67ed4..1f81911f0b21 100644 --- a/AutoMl/src/V1/Client/PredictionServiceClient.php +++ b/AutoMl/src/V1/Client/PredictionServiceClient.php @@ -55,8 +55,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchPredictAsync(BatchPredictRequest $request, array $optionalArgs = []) - * @method PromiseInterface predictAsync(PredictRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchPredictAsync(BatchPredictRequest $request, array $optionalArgs = []) + * @method PromiseInterface predictAsync(PredictRequest $request, array $optionalArgs = []) */ final class PredictionServiceClient { diff --git a/BackupDr/src/V1/Client/BackupDRClient.php b/BackupDr/src/V1/Client/BackupDRClient.php index 05d8d344e49c..d58d2a408b5c 100644 --- a/BackupDr/src/V1/Client/BackupDRClient.php +++ b/BackupDr/src/V1/Client/BackupDRClient.php @@ -90,38 +90,38 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createBackupPlanAsync(CreateBackupPlanRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupPlanAssociationAsync(CreateBackupPlanAssociationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupVaultAsync(CreateBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface createManagementServerAsync(CreateManagementServerRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupPlanAsync(DeleteBackupPlanRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupPlanAssociationAsync(DeleteBackupPlanAssociationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupVaultAsync(DeleteBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteManagementServerAsync(DeleteManagementServerRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchUsableBackupVaultsAsync(FetchUsableBackupVaultsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupPlanAsync(GetBackupPlanRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupPlanAssociationAsync(GetBackupPlanAssociationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupVaultAsync(GetBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataSourceAsync(GetDataSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getManagementServerAsync(GetManagementServerRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupPlanAssociationsAsync(ListBackupPlanAssociationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupPlansAsync(ListBackupPlansRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupVaultsAsync(ListBackupVaultsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataSourcesAsync(ListDataSourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listManagementServersAsync(ListManagementServersRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreBackupAsync(RestoreBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface triggerBackupAsync(TriggerBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBackupVaultAsync(UpdateBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataSourceAsync(UpdateDataSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupPlanAsync(CreateBackupPlanRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupPlanAssociationAsync(CreateBackupPlanAssociationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupVaultAsync(CreateBackupVaultRequest $request, array $optionalArgs = []) + * @method PromiseInterface createManagementServerAsync(CreateManagementServerRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupPlanAsync(DeleteBackupPlanRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupPlanAssociationAsync(DeleteBackupPlanAssociationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupVaultAsync(DeleteBackupVaultRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteManagementServerAsync(DeleteManagementServerRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchUsableBackupVaultsAsync(FetchUsableBackupVaultsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupPlanAsync(GetBackupPlanRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupPlanAssociationAsync(GetBackupPlanAssociationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupVaultAsync(GetBackupVaultRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataSourceAsync(GetDataSourceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getManagementServerAsync(GetManagementServerRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupPlanAssociationsAsync(ListBackupPlanAssociationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupPlansAsync(ListBackupPlansRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupVaultsAsync(ListBackupVaultsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataSourcesAsync(ListDataSourcesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listManagementServersAsync(ListManagementServersRequest $request, array $optionalArgs = []) + * @method PromiseInterface restoreBackupAsync(RestoreBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface triggerBackupAsync(TriggerBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateBackupVaultAsync(UpdateBackupVaultRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataSourceAsync(UpdateDataSourceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ final class BackupDRClient { diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/GPBMetadata/Google/Cloud/Accessapproval/V1/Accessapproval.php b/owl-bot-staging/AccessApproval/v1/proto/src/GPBMetadata/Google/Cloud/Accessapproval/V1/Accessapproval.php deleted file mode 100644 index f69d2bb912c3..000000000000 Binary files a/owl-bot-staging/AccessApproval/v1/proto/src/GPBMetadata/Google/Cloud/Accessapproval/V1/Accessapproval.php and /dev/null differ diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessApprovalServiceAccount.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessApprovalServiceAccount.php deleted file mode 100644 index ee0d66ac2dbe..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessApprovalServiceAccount.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.accessapproval.v1.AccessApprovalServiceAccount - */ -class AccessApprovalServiceAccount extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the Access Approval service account. Format is one of: - * * "projects/{project}/serviceAccount" - * * "folders/{folder}/serviceAccount" - * * "organizations/{organization}/serviceAccount" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Email address of the service account. - * - * Generated from protobuf field string account_email = 2; - */ - protected $account_email = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the Access Approval service account. Format is one of: - * * "projects/{project}/serviceAccount" - * * "folders/{folder}/serviceAccount" - * * "organizations/{organization}/serviceAccount" - * @type string $account_email - * Email address of the service account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the Access Approval service account. Format is one of: - * * "projects/{project}/serviceAccount" - * * "folders/{folder}/serviceAccount" - * * "organizations/{organization}/serviceAccount" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the Access Approval service account. Format is one of: - * * "projects/{project}/serviceAccount" - * * "folders/{folder}/serviceAccount" - * * "organizations/{organization}/serviceAccount" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Email address of the service account. - * - * Generated from protobuf field string account_email = 2; - * @return string - */ - public function getAccountEmail() - { - return $this->account_email; - } - - /** - * Email address of the service account. - * - * Generated from protobuf field string account_email = 2; - * @param string $var - * @return $this - */ - public function setAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->account_email = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessApprovalSettings.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessApprovalSettings.php deleted file mode 100644 index 2175ebe2c3ca..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessApprovalSettings.php +++ /dev/null @@ -1,395 +0,0 @@ -google.cloud.accessapproval.v1.AccessApprovalSettings - */ -class AccessApprovalSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the settings. Format is one of: - * * "projects/{project}/accessApprovalSettings" - * * "folders/{folder}/accessApprovalSettings" - * * "organizations/{organization}/accessApprovalSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * A list of email addresses to which notifications relating to approval - * requests should be sent. Notifications relating to a resource will be sent - * to all emails in the settings of ancestor resources of that resource. A - * maximum of 50 email addresses are allowed. - * - * Generated from protobuf field repeated string notification_emails = 2; - */ - private $notification_emails; - /** - * A list of Google Cloud Services for which the given resource has Access - * Approval enrolled. Access requests for the resource given by name against - * any of these services contained here will be required to have explicit - * approval. If name refers to an organization, enrollment can be done for - * individual services. If name refers to a folder or project, enrollment can - * only be done on an all or nothing basis. - * If a cloud_product is repeated in this list, the first entry will be - * honored and all following entries will be discarded. A maximum of 10 - * enrolled services will be enforced, to be expanded as the set of supported - * services is expanded. - * - * Generated from protobuf field repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3; - */ - private $enrolled_services; - /** - * Output only. This field is read only (not settable via - * UpdateAccessApprovalSettings method). If the field is true, that - * indicates that at least one service is enrolled for Access Approval in one - * or more ancestors of the Project or Folder (this field will always be - * unset for the organization since organizations do not have ancestors). - * - * Generated from protobuf field bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $enrolled_ancestor = false; - /** - * The asymmetric crypto key version to use for signing approval requests. - * Empty active_key_version indicates that a Google-managed key should be used - * for signing. This property will be ignored if set by an ancestor of this - * resource, and new non-empty values may not be set. - * - * Generated from protobuf field string active_key_version = 6; - */ - protected $active_key_version = ''; - /** - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that an ancestor of this - * Project or Folder has set active_key_version (this field will always be - * unset for the organization since organizations do not have ancestors). - * - * Generated from protobuf field bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ancestor_has_active_key_version = false; - /** - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that there is some - * configuration issue with the active_key_version configured at this level in - * the resource hierarchy (e.g. it doesn't exist or the Access Approval - * service account doesn't have the correct permissions on it, etc.) This key - * version is not necessarily the effective key version at this level, as key - * versions are inherited top-down. - * - * Generated from protobuf field bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $invalid_key_version = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the settings. Format is one of: - * * "projects/{project}/accessApprovalSettings" - * * "folders/{folder}/accessApprovalSettings" - * * "organizations/{organization}/accessApprovalSettings" - * @type array|\Google\Protobuf\Internal\RepeatedField $notification_emails - * A list of email addresses to which notifications relating to approval - * requests should be sent. Notifications relating to a resource will be sent - * to all emails in the settings of ancestor resources of that resource. A - * maximum of 50 email addresses are allowed. - * @type array<\Google\Cloud\AccessApproval\V1\EnrolledService>|\Google\Protobuf\Internal\RepeatedField $enrolled_services - * A list of Google Cloud Services for which the given resource has Access - * Approval enrolled. Access requests for the resource given by name against - * any of these services contained here will be required to have explicit - * approval. If name refers to an organization, enrollment can be done for - * individual services. If name refers to a folder or project, enrollment can - * only be done on an all or nothing basis. - * If a cloud_product is repeated in this list, the first entry will be - * honored and all following entries will be discarded. A maximum of 10 - * enrolled services will be enforced, to be expanded as the set of supported - * services is expanded. - * @type bool $enrolled_ancestor - * Output only. This field is read only (not settable via - * UpdateAccessApprovalSettings method). If the field is true, that - * indicates that at least one service is enrolled for Access Approval in one - * or more ancestors of the Project or Folder (this field will always be - * unset for the organization since organizations do not have ancestors). - * @type string $active_key_version - * The asymmetric crypto key version to use for signing approval requests. - * Empty active_key_version indicates that a Google-managed key should be used - * for signing. This property will be ignored if set by an ancestor of this - * resource, and new non-empty values may not be set. - * @type bool $ancestor_has_active_key_version - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that an ancestor of this - * Project or Folder has set active_key_version (this field will always be - * unset for the organization since organizations do not have ancestors). - * @type bool $invalid_key_version - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that there is some - * configuration issue with the active_key_version configured at this level in - * the resource hierarchy (e.g. it doesn't exist or the Access Approval - * service account doesn't have the correct permissions on it, etc.) This key - * version is not necessarily the effective key version at this level, as key - * versions are inherited top-down. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the settings. Format is one of: - * * "projects/{project}/accessApprovalSettings" - * * "folders/{folder}/accessApprovalSettings" - * * "organizations/{organization}/accessApprovalSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the settings. Format is one of: - * * "projects/{project}/accessApprovalSettings" - * * "folders/{folder}/accessApprovalSettings" - * * "organizations/{organization}/accessApprovalSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A list of email addresses to which notifications relating to approval - * requests should be sent. Notifications relating to a resource will be sent - * to all emails in the settings of ancestor resources of that resource. A - * maximum of 50 email addresses are allowed. - * - * Generated from protobuf field repeated string notification_emails = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNotificationEmails() - { - return $this->notification_emails; - } - - /** - * A list of email addresses to which notifications relating to approval - * requests should be sent. Notifications relating to a resource will be sent - * to all emails in the settings of ancestor resources of that resource. A - * maximum of 50 email addresses are allowed. - * - * Generated from protobuf field repeated string notification_emails = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNotificationEmails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->notification_emails = $arr; - - return $this; - } - - /** - * A list of Google Cloud Services for which the given resource has Access - * Approval enrolled. Access requests for the resource given by name against - * any of these services contained here will be required to have explicit - * approval. If name refers to an organization, enrollment can be done for - * individual services. If name refers to a folder or project, enrollment can - * only be done on an all or nothing basis. - * If a cloud_product is repeated in this list, the first entry will be - * honored and all following entries will be discarded. A maximum of 10 - * enrolled services will be enforced, to be expanded as the set of supported - * services is expanded. - * - * Generated from protobuf field repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnrolledServices() - { - return $this->enrolled_services; - } - - /** - * A list of Google Cloud Services for which the given resource has Access - * Approval enrolled. Access requests for the resource given by name against - * any of these services contained here will be required to have explicit - * approval. If name refers to an organization, enrollment can be done for - * individual services. If name refers to a folder or project, enrollment can - * only be done on an all or nothing basis. - * If a cloud_product is repeated in this list, the first entry will be - * honored and all following entries will be discarded. A maximum of 10 - * enrolled services will be enforced, to be expanded as the set of supported - * services is expanded. - * - * Generated from protobuf field repeated .google.cloud.accessapproval.v1.EnrolledService enrolled_services = 3; - * @param array<\Google\Cloud\AccessApproval\V1\EnrolledService>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnrolledServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AccessApproval\V1\EnrolledService::class); - $this->enrolled_services = $arr; - - return $this; - } - - /** - * Output only. This field is read only (not settable via - * UpdateAccessApprovalSettings method). If the field is true, that - * indicates that at least one service is enrolled for Access Approval in one - * or more ancestors of the Project or Folder (this field will always be - * unset for the organization since organizations do not have ancestors). - * - * Generated from protobuf field bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getEnrolledAncestor() - { - return $this->enrolled_ancestor; - } - - /** - * Output only. This field is read only (not settable via - * UpdateAccessApprovalSettings method). If the field is true, that - * indicates that at least one service is enrolled for Access Approval in one - * or more ancestors of the Project or Folder (this field will always be - * unset for the organization since organizations do not have ancestors). - * - * Generated from protobuf field bool enrolled_ancestor = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setEnrolledAncestor($var) - { - GPBUtil::checkBool($var); - $this->enrolled_ancestor = $var; - - return $this; - } - - /** - * The asymmetric crypto key version to use for signing approval requests. - * Empty active_key_version indicates that a Google-managed key should be used - * for signing. This property will be ignored if set by an ancestor of this - * resource, and new non-empty values may not be set. - * - * Generated from protobuf field string active_key_version = 6; - * @return string - */ - public function getActiveKeyVersion() - { - return $this->active_key_version; - } - - /** - * The asymmetric crypto key version to use for signing approval requests. - * Empty active_key_version indicates that a Google-managed key should be used - * for signing. This property will be ignored if set by an ancestor of this - * resource, and new non-empty values may not be set. - * - * Generated from protobuf field string active_key_version = 6; - * @param string $var - * @return $this - */ - public function setActiveKeyVersion($var) - { - GPBUtil::checkString($var, True); - $this->active_key_version = $var; - - return $this; - } - - /** - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that an ancestor of this - * Project or Folder has set active_key_version (this field will always be - * unset for the organization since organizations do not have ancestors). - * - * Generated from protobuf field bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAncestorHasActiveKeyVersion() - { - return $this->ancestor_has_active_key_version; - } - - /** - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that an ancestor of this - * Project or Folder has set active_key_version (this field will always be - * unset for the organization since organizations do not have ancestors). - * - * Generated from protobuf field bool ancestor_has_active_key_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAncestorHasActiveKeyVersion($var) - { - GPBUtil::checkBool($var); - $this->ancestor_has_active_key_version = $var; - - return $this; - } - - /** - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that there is some - * configuration issue with the active_key_version configured at this level in - * the resource hierarchy (e.g. it doesn't exist or the Access Approval - * service account doesn't have the correct permissions on it, etc.) This key - * version is not necessarily the effective key version at this level, as key - * versions are inherited top-down. - * - * Generated from protobuf field bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getInvalidKeyVersion() - { - return $this->invalid_key_version; - } - - /** - * Output only. This field is read only (not settable via UpdateAccessApprovalSettings - * method). If the field is true, that indicates that there is some - * configuration issue with the active_key_version configured at this level in - * the resource hierarchy (e.g. it doesn't exist or the Access Approval - * service account doesn't have the correct permissions on it, etc.) This key - * version is not necessarily the effective key version at this level, as key - * versions are inherited top-down. - * - * Generated from protobuf field bool invalid_key_version = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setInvalidKeyVersion($var) - { - GPBUtil::checkBool($var); - $this->invalid_key_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessLocations.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessLocations.php deleted file mode 100644 index 3a5689084473..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessLocations.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.accessapproval.v1.AccessLocations - */ -class AccessLocations extends \Google\Protobuf\Internal\Message -{ - /** - * The "home office" location of the principal. A two-letter country code - * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some - * limited situations Google systems may refer refer to a region code instead - * of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * - * Generated from protobuf field string principal_office_country = 1; - */ - protected $principal_office_country = ''; - /** - * Physical location of the principal at the time of the access. A - * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or - * a region code. In some limited situations Google systems may refer refer to - * a region code instead of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * - * Generated from protobuf field string principal_physical_location_country = 2; - */ - protected $principal_physical_location_country = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $principal_office_country - * The "home office" location of the principal. A two-letter country code - * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some - * limited situations Google systems may refer refer to a region code instead - * of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * @type string $principal_physical_location_country - * Physical location of the principal at the time of the access. A - * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or - * a region code. In some limited situations Google systems may refer refer to - * a region code instead of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The "home office" location of the principal. A two-letter country code - * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some - * limited situations Google systems may refer refer to a region code instead - * of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * - * Generated from protobuf field string principal_office_country = 1; - * @return string - */ - public function getPrincipalOfficeCountry() - { - return $this->principal_office_country; - } - - /** - * The "home office" location of the principal. A two-letter country code - * (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some - * limited situations Google systems may refer refer to a region code instead - * of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * - * Generated from protobuf field string principal_office_country = 1; - * @param string $var - * @return $this - */ - public function setPrincipalOfficeCountry($var) - { - GPBUtil::checkString($var, True); - $this->principal_office_country = $var; - - return $this; - } - - /** - * Physical location of the principal at the time of the access. A - * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or - * a region code. In some limited situations Google systems may refer refer to - * a region code instead of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * - * Generated from protobuf field string principal_physical_location_country = 2; - * @return string - */ - public function getPrincipalPhysicalLocationCountry() - { - return $this->principal_physical_location_country; - } - - /** - * Physical location of the principal at the time of the access. A - * two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or - * a region code. In some limited situations Google systems may refer refer to - * a region code instead of a country code. - * Possible Region Codes: - * * ASI: Asia - * * EUR: Europe - * * OCE: Oceania - * * AFR: Africa - * * NAM: North America - * * SAM: South America - * * ANT: Antarctica - * * ANY: Any location - * - * Generated from protobuf field string principal_physical_location_country = 2; - * @param string $var - * @return $this - */ - public function setPrincipalPhysicalLocationCountry($var) - { - GPBUtil::checkString($var, True); - $this->principal_physical_location_country = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessReason.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessReason.php deleted file mode 100644 index 9497b2f75c4b..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessReason.php +++ /dev/null @@ -1,99 +0,0 @@ -google.cloud.accessapproval.v1.AccessReason - */ -class AccessReason extends \Google\Protobuf\Internal\Message -{ - /** - * Type of access justification. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - */ - protected $type = 0; - /** - * More detail about certain reason types. See comments for each type above. - * - * Generated from protobuf field string detail = 2; - */ - protected $detail = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of access justification. - * @type string $detail - * More detail about certain reason types. See comments for each type above. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Type of access justification. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of access justification. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessReason.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AccessApproval\V1\AccessReason\Type::class); - $this->type = $var; - - return $this; - } - - /** - * More detail about certain reason types. See comments for each type above. - * - * Generated from protobuf field string detail = 2; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * More detail about certain reason types. See comments for each type above. - * - * Generated from protobuf field string detail = 2; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessReason/Type.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessReason/Type.php deleted file mode 100644 index 24a289d1d543..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/AccessReason/Type.php +++ /dev/null @@ -1,99 +0,0 @@ -google.cloud.accessapproval.v1.AccessReason.Type - */ -class Type -{ - /** - * Default value for proto, shouldn't be used. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Customer made a request or raised an issue that required the principal to - * access customer data. `detail` is of the form ("#####" is the issue ID): - * * "Feedback Report: #####" - * * "Case Number: #####" - * * "Case ID: #####" - * * "E-PIN Reference: #####" - * * "Google-#####" - * * "T-#####" - * - * Generated from protobuf enum CUSTOMER_INITIATED_SUPPORT = 1; - */ - const CUSTOMER_INITIATED_SUPPORT = 1; - /** - * The principal accessed customer data in order to diagnose or resolve a - * suspected issue in services. Often this access is used to confirm that - * customers are not affected by a suspected service issue or to remediate a - * reversible system issue. - * - * Generated from protobuf enum GOOGLE_INITIATED_SERVICE = 2; - */ - const GOOGLE_INITIATED_SERVICE = 2; - /** - * Google initiated service for security, fraud, abuse, or compliance - * purposes. - * - * Generated from protobuf enum GOOGLE_INITIATED_REVIEW = 3; - */ - const GOOGLE_INITIATED_REVIEW = 3; - /** - * The principal was compelled to access customer data in order to respond - * to a legal third party data request or process, including legal processes - * from customers themselves. - * - * Generated from protobuf enum THIRD_PARTY_DATA_REQUEST = 4; - */ - const THIRD_PARTY_DATA_REQUEST = 4; - /** - * The principal accessed customer data in order to diagnose or resolve a - * suspected issue in services or a known outage. - * - * Generated from protobuf enum GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 5; - */ - const GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 5; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::CUSTOMER_INITIATED_SUPPORT => 'CUSTOMER_INITIATED_SUPPORT', - self::GOOGLE_INITIATED_SERVICE => 'GOOGLE_INITIATED_SERVICE', - self::GOOGLE_INITIATED_REVIEW => 'GOOGLE_INITIATED_REVIEW', - self::THIRD_PARTY_DATA_REQUEST => 'THIRD_PARTY_DATA_REQUEST', - self::GOOGLE_RESPONSE_TO_PRODUCTION_ALERT => 'GOOGLE_RESPONSE_TO_PRODUCTION_ALERT', - ]; - - 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(Type::class, \Google\Cloud\AccessApproval\V1\AccessReason_Type::class); - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApprovalRequest.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApprovalRequest.php deleted file mode 100644 index 6efb0a4f7b9a..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApprovalRequest.php +++ /dev/null @@ -1,428 +0,0 @@ -google.cloud.accessapproval.v1.ApprovalRequest - */ -class ApprovalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the request. Format is - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}". - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The resource for which approval is being requested. The format of the - * resource name is defined at - * https://cloud.google.com/apis/design/resource_names. The resource name here - * may either be a "full" resource name (e.g. - * "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" - * resource name (e.g. "shelves/shelf1/books/book2") as described in the - * resource name specification. - * - * Generated from protobuf field string requested_resource_name = 2; - */ - protected $requested_resource_name = ''; - /** - * Properties related to the resource represented by requested_resource_name. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - */ - protected $requested_resource_properties = null; - /** - * The justification for which approval is being requested. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - */ - protected $requested_reason = null; - /** - * The locations for which approval is being requested. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - */ - protected $requested_locations = null; - /** - * The time at which approval was requested. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 5; - */ - protected $request_time = null; - /** - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * - * Generated from protobuf field .google.protobuf.Timestamp requested_expiration = 6; - */ - protected $requested_expiration = null; - protected $decision; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the request. Format is - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}". - * @type string $requested_resource_name - * The resource for which approval is being requested. The format of the - * resource name is defined at - * https://cloud.google.com/apis/design/resource_names. The resource name here - * may either be a "full" resource name (e.g. - * "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" - * resource name (e.g. "shelves/shelf1/books/book2") as described in the - * resource name specification. - * @type \Google\Cloud\AccessApproval\V1\ResourceProperties $requested_resource_properties - * Properties related to the resource represented by requested_resource_name. - * @type \Google\Cloud\AccessApproval\V1\AccessReason $requested_reason - * The justification for which approval is being requested. - * @type \Google\Cloud\AccessApproval\V1\AccessLocations $requested_locations - * The locations for which approval is being requested. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which approval was requested. - * @type \Google\Protobuf\Timestamp $requested_expiration - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * @type \Google\Cloud\AccessApproval\V1\ApproveDecision $approve - * Access was approved. - * @type \Google\Cloud\AccessApproval\V1\DismissDecision $dismiss - * The request was dismissed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the request. Format is - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}". - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the request. Format is - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}". - * - * 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; - } - - /** - * The resource for which approval is being requested. The format of the - * resource name is defined at - * https://cloud.google.com/apis/design/resource_names. The resource name here - * may either be a "full" resource name (e.g. - * "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" - * resource name (e.g. "shelves/shelf1/books/book2") as described in the - * resource name specification. - * - * Generated from protobuf field string requested_resource_name = 2; - * @return string - */ - public function getRequestedResourceName() - { - return $this->requested_resource_name; - } - - /** - * The resource for which approval is being requested. The format of the - * resource name is defined at - * https://cloud.google.com/apis/design/resource_names. The resource name here - * may either be a "full" resource name (e.g. - * "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" - * resource name (e.g. "shelves/shelf1/books/book2") as described in the - * resource name specification. - * - * Generated from protobuf field string requested_resource_name = 2; - * @param string $var - * @return $this - */ - public function setRequestedResourceName($var) - { - GPBUtil::checkString($var, True); - $this->requested_resource_name = $var; - - return $this; - } - - /** - * Properties related to the resource represented by requested_resource_name. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * @return \Google\Cloud\AccessApproval\V1\ResourceProperties|null - */ - public function getRequestedResourceProperties() - { - return $this->requested_resource_properties; - } - - public function hasRequestedResourceProperties() - { - return isset($this->requested_resource_properties); - } - - public function clearRequestedResourceProperties() - { - unset($this->requested_resource_properties); - } - - /** - * Properties related to the resource represented by requested_resource_name. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.ResourceProperties requested_resource_properties = 9; - * @param \Google\Cloud\AccessApproval\V1\ResourceProperties $var - * @return $this - */ - public function setRequestedResourceProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AccessApproval\V1\ResourceProperties::class); - $this->requested_resource_properties = $var; - - return $this; - } - - /** - * The justification for which approval is being requested. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * @return \Google\Cloud\AccessApproval\V1\AccessReason|null - */ - public function getRequestedReason() - { - return $this->requested_reason; - } - - public function hasRequestedReason() - { - return isset($this->requested_reason); - } - - public function clearRequestedReason() - { - unset($this->requested_reason); - } - - /** - * The justification for which approval is being requested. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessReason requested_reason = 3; - * @param \Google\Cloud\AccessApproval\V1\AccessReason $var - * @return $this - */ - public function setRequestedReason($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AccessApproval\V1\AccessReason::class); - $this->requested_reason = $var; - - return $this; - } - - /** - * The locations for which approval is being requested. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * @return \Google\Cloud\AccessApproval\V1\AccessLocations|null - */ - public function getRequestedLocations() - { - return $this->requested_locations; - } - - public function hasRequestedLocations() - { - return isset($this->requested_locations); - } - - public function clearRequestedLocations() - { - unset($this->requested_locations); - } - - /** - * The locations for which approval is being requested. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessLocations requested_locations = 4; - * @param \Google\Cloud\AccessApproval\V1\AccessLocations $var - * @return $this - */ - public function setRequestedLocations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AccessApproval\V1\AccessLocations::class); - $this->requested_locations = $var; - - return $this; - } - - /** - * The time at which approval was requested. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which approval was requested. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * - * Generated from protobuf field .google.protobuf.Timestamp requested_expiration = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestedExpiration() - { - return $this->requested_expiration; - } - - public function hasRequestedExpiration() - { - return isset($this->requested_expiration); - } - - public function clearRequestedExpiration() - { - unset($this->requested_expiration); - } - - /** - * The requested expiration for the approval. If the request is approved, - * access will be granted from the time of approval until the expiration time. - * - * Generated from protobuf field .google.protobuf.Timestamp requested_expiration = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestedExpiration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->requested_expiration = $var; - - return $this; - } - - /** - * Access was approved. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * @return \Google\Cloud\AccessApproval\V1\ApproveDecision|null - */ - public function getApprove() - { - return $this->readOneof(7); - } - - public function hasApprove() - { - return $this->hasOneof(7); - } - - /** - * Access was approved. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.ApproveDecision approve = 7; - * @param \Google\Cloud\AccessApproval\V1\ApproveDecision $var - * @return $this - */ - public function setApprove($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AccessApproval\V1\ApproveDecision::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The request was dismissed. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * @return \Google\Cloud\AccessApproval\V1\DismissDecision|null - */ - public function getDismiss() - { - return $this->readOneof(8); - } - - public function hasDismiss() - { - return $this->hasOneof(8); - } - - /** - * The request was dismissed. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.DismissDecision dismiss = 8; - * @param \Google\Cloud\AccessApproval\V1\DismissDecision $var - * @return $this - */ - public function setDismiss($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AccessApproval\V1\DismissDecision::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getDecision() - { - return $this->whichOneof("decision"); - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApproveApprovalRequestMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApproveApprovalRequestMessage.php deleted file mode 100644 index cd0ed20e4d14..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApproveApprovalRequestMessage.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.accessapproval.v1.ApproveApprovalRequestMessage - */ -class ApproveApprovalRequestMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the approval request to approve. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The expiration time of this approval. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 2; - */ - protected $expire_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the approval request to approve. - * @type \Google\Protobuf\Timestamp $expire_time - * The expiration time of this approval. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Name of the approval request to approve. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the approval request to approve. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The expiration time of this approval. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 2; - * @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); - } - - /** - * The expiration time of this approval. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApproveDecision.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApproveDecision.php deleted file mode 100644 index a9b020b1e3a0..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ApproveDecision.php +++ /dev/null @@ -1,243 +0,0 @@ -google.cloud.accessapproval.v1.ApproveDecision - */ -class ApproveDecision extends \Google\Protobuf\Internal\Message -{ - /** - * The time at which approval was granted. - * - * Generated from protobuf field .google.protobuf.Timestamp approve_time = 1; - */ - protected $approve_time = null; - /** - * The time at which the approval expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 2; - */ - protected $expire_time = null; - /** - * If set, denotes the timestamp at which the approval is invalidated. - * - * Generated from protobuf field .google.protobuf.Timestamp invalidate_time = 3; - */ - protected $invalidate_time = null; - /** - * The signature for the ApprovalRequest and details on how it was signed. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - */ - protected $signature_info = null; - /** - * True when the request has been auto-approved. - * - * Generated from protobuf field bool auto_approved = 5; - */ - protected $auto_approved = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $approve_time - * The time at which approval was granted. - * @type \Google\Protobuf\Timestamp $expire_time - * The time at which the approval expires. - * @type \Google\Protobuf\Timestamp $invalidate_time - * If set, denotes the timestamp at which the approval is invalidated. - * @type \Google\Cloud\AccessApproval\V1\SignatureInfo $signature_info - * The signature for the ApprovalRequest and details on how it was signed. - * @type bool $auto_approved - * True when the request has been auto-approved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The time at which approval was granted. - * - * Generated from protobuf field .google.protobuf.Timestamp approve_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getApproveTime() - { - return $this->approve_time; - } - - public function hasApproveTime() - { - return isset($this->approve_time); - } - - public function clearApproveTime() - { - unset($this->approve_time); - } - - /** - * The time at which approval was granted. - * - * Generated from protobuf field .google.protobuf.Timestamp approve_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setApproveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->approve_time = $var; - - return $this; - } - - /** - * The time at which the approval expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 2; - * @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); - } - - /** - * The time at which the approval expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * If set, denotes the timestamp at which the approval is invalidated. - * - * Generated from protobuf field .google.protobuf.Timestamp invalidate_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getInvalidateTime() - { - return $this->invalidate_time; - } - - public function hasInvalidateTime() - { - return isset($this->invalidate_time); - } - - public function clearInvalidateTime() - { - unset($this->invalidate_time); - } - - /** - * If set, denotes the timestamp at which the approval is invalidated. - * - * Generated from protobuf field .google.protobuf.Timestamp invalidate_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setInvalidateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->invalidate_time = $var; - - return $this; - } - - /** - * The signature for the ApprovalRequest and details on how it was signed. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * @return \Google\Cloud\AccessApproval\V1\SignatureInfo|null - */ - public function getSignatureInfo() - { - return $this->signature_info; - } - - public function hasSignatureInfo() - { - return isset($this->signature_info); - } - - public function clearSignatureInfo() - { - unset($this->signature_info); - } - - /** - * The signature for the ApprovalRequest and details on how it was signed. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.SignatureInfo signature_info = 4; - * @param \Google\Cloud\AccessApproval\V1\SignatureInfo $var - * @return $this - */ - public function setSignatureInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AccessApproval\V1\SignatureInfo::class); - $this->signature_info = $var; - - return $this; - } - - /** - * True when the request has been auto-approved. - * - * Generated from protobuf field bool auto_approved = 5; - * @return bool - */ - public function getAutoApproved() - { - return $this->auto_approved; - } - - /** - * True when the request has been auto-approved. - * - * Generated from protobuf field bool auto_approved = 5; - * @param bool $var - * @return $this - */ - public function setAutoApproved($var) - { - GPBUtil::checkBool($var); - $this->auto_approved = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DeleteAccessApprovalSettingsMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DeleteAccessApprovalSettingsMessage.php deleted file mode 100644 index e0ae5d40db9e..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DeleteAccessApprovalSettingsMessage.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.accessapproval.v1.DeleteAccessApprovalSettingsMessage - */ -class DeleteAccessApprovalSettingsMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the AccessApprovalSettings to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Name of the AccessApprovalSettings to delete. - * - * @return \Google\Cloud\AccessApproval\V1\DeleteAccessApprovalSettingsMessage - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the AccessApprovalSettings to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Name of the AccessApprovalSettings to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the AccessApprovalSettings to delete. - * - * Generated from protobuf field string name = 1 [(.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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DismissApprovalRequestMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DismissApprovalRequestMessage.php deleted file mode 100644 index 174dfe04ef31..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DismissApprovalRequestMessage.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.accessapproval.v1.DismissApprovalRequestMessage - */ -class DismissApprovalRequestMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the ApprovalRequest to dismiss. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the ApprovalRequest to dismiss. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Name of the ApprovalRequest to dismiss. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the ApprovalRequest to dismiss. - * - * Generated from protobuf field string name = 1 [(.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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DismissDecision.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DismissDecision.php deleted file mode 100644 index 19d43a3a4de1..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/DismissDecision.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.accessapproval.v1.DismissDecision - */ -class DismissDecision extends \Google\Protobuf\Internal\Message -{ - /** - * The time at which the approval request was dismissed. - * - * Generated from protobuf field .google.protobuf.Timestamp dismiss_time = 1; - */ - protected $dismiss_time = null; - /** - * This field will be true if the ApprovalRequest was implicitly dismissed due - * to inaction by the access approval approvers (the request is not acted - * on by the approvers before the exiration time). - * - * Generated from protobuf field bool implicit = 2; - */ - protected $implicit = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $dismiss_time - * The time at which the approval request was dismissed. - * @type bool $implicit - * This field will be true if the ApprovalRequest was implicitly dismissed due - * to inaction by the access approval approvers (the request is not acted - * on by the approvers before the exiration time). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The time at which the approval request was dismissed. - * - * Generated from protobuf field .google.protobuf.Timestamp dismiss_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDismissTime() - { - return $this->dismiss_time; - } - - public function hasDismissTime() - { - return isset($this->dismiss_time); - } - - public function clearDismissTime() - { - unset($this->dismiss_time); - } - - /** - * The time at which the approval request was dismissed. - * - * Generated from protobuf field .google.protobuf.Timestamp dismiss_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDismissTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->dismiss_time = $var; - - return $this; - } - - /** - * This field will be true if the ApprovalRequest was implicitly dismissed due - * to inaction by the access approval approvers (the request is not acted - * on by the approvers before the exiration time). - * - * Generated from protobuf field bool implicit = 2; - * @return bool - */ - public function getImplicit() - { - return $this->implicit; - } - - /** - * This field will be true if the ApprovalRequest was implicitly dismissed due - * to inaction by the access approval approvers (the request is not acted - * on by the approvers before the exiration time). - * - * Generated from protobuf field bool implicit = 2; - * @param bool $var - * @return $this - */ - public function setImplicit($var) - { - GPBUtil::checkBool($var); - $this->implicit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/EnrolledService.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/EnrolledService.php deleted file mode 100644 index c769d5624cef..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/EnrolledService.php +++ /dev/null @@ -1,321 +0,0 @@ -google.cloud.accessapproval.v1.EnrolledService - */ -class EnrolledService extends \Google\Protobuf\Internal\Message -{ - /** - * The product for which Access Approval will be enrolled. Allowed values are - * listed below (case-sensitive): - * * all - * * GA - * * App Engine - * * BigQuery - * * Cloud Bigtable - * * Cloud Key Management Service - * * Compute Engine - * * Cloud Dataflow - * * Cloud Dataproc - * * Cloud DLP - * * Cloud EKM - * * Cloud HSM - * * Cloud Identity and Access Management - * * Cloud Logging - * * Cloud Pub/Sub - * * Cloud Spanner - * * Cloud SQL - * * Cloud Storage - * * Google Kubernetes Engine - * * Organization Policy Serivice - * * Persistent Disk - * * Resource Manager - * * Secret Manager - * * Speaker ID - * Note: These values are supported as input for legacy purposes, but will not - * be returned from the API. - * * all - * * ga-only - * * appengine.googleapis.com - * * bigquery.googleapis.com - * * bigtable.googleapis.com - * * container.googleapis.com - * * cloudkms.googleapis.com - * * cloudresourcemanager.googleapis.com - * * cloudsql.googleapis.com - * * compute.googleapis.com - * * dataflow.googleapis.com - * * dataproc.googleapis.com - * * dlp.googleapis.com - * * iam.googleapis.com - * * logging.googleapis.com - * * orgpolicy.googleapis.com - * * pubsub.googleapis.com - * * spanner.googleapis.com - * * secretmanager.googleapis.com - * * speakerid.googleapis.com - * * storage.googleapis.com - * Calls to UpdateAccessApprovalSettings using 'all' or any of the - * XXX.googleapis.com will be translated to the associated product name - * ('all', 'App Engine', etc.). - * Note: 'all' will enroll the resource in all products supported at both 'GA' - * and 'Preview' levels. - * More information about levels of support is available at - * https://cloud.google.com/access-approval/docs/supported-services - * - * Generated from protobuf field string cloud_product = 1; - */ - protected $cloud_product = ''; - /** - * The enrollment level of the service. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - */ - protected $enrollment_level = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_product - * The product for which Access Approval will be enrolled. Allowed values are - * listed below (case-sensitive): - * * all - * * GA - * * App Engine - * * BigQuery - * * Cloud Bigtable - * * Cloud Key Management Service - * * Compute Engine - * * Cloud Dataflow - * * Cloud Dataproc - * * Cloud DLP - * * Cloud EKM - * * Cloud HSM - * * Cloud Identity and Access Management - * * Cloud Logging - * * Cloud Pub/Sub - * * Cloud Spanner - * * Cloud SQL - * * Cloud Storage - * * Google Kubernetes Engine - * * Organization Policy Serivice - * * Persistent Disk - * * Resource Manager - * * Secret Manager - * * Speaker ID - * Note: These values are supported as input for legacy purposes, but will not - * be returned from the API. - * * all - * * ga-only - * * appengine.googleapis.com - * * bigquery.googleapis.com - * * bigtable.googleapis.com - * * container.googleapis.com - * * cloudkms.googleapis.com - * * cloudresourcemanager.googleapis.com - * * cloudsql.googleapis.com - * * compute.googleapis.com - * * dataflow.googleapis.com - * * dataproc.googleapis.com - * * dlp.googleapis.com - * * iam.googleapis.com - * * logging.googleapis.com - * * orgpolicy.googleapis.com - * * pubsub.googleapis.com - * * spanner.googleapis.com - * * secretmanager.googleapis.com - * * speakerid.googleapis.com - * * storage.googleapis.com - * Calls to UpdateAccessApprovalSettings using 'all' or any of the - * XXX.googleapis.com will be translated to the associated product name - * ('all', 'App Engine', etc.). - * Note: 'all' will enroll the resource in all products supported at both 'GA' - * and 'Preview' levels. - * More information about levels of support is available at - * https://cloud.google.com/access-approval/docs/supported-services - * @type int $enrollment_level - * The enrollment level of the service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The product for which Access Approval will be enrolled. Allowed values are - * listed below (case-sensitive): - * * all - * * GA - * * App Engine - * * BigQuery - * * Cloud Bigtable - * * Cloud Key Management Service - * * Compute Engine - * * Cloud Dataflow - * * Cloud Dataproc - * * Cloud DLP - * * Cloud EKM - * * Cloud HSM - * * Cloud Identity and Access Management - * * Cloud Logging - * * Cloud Pub/Sub - * * Cloud Spanner - * * Cloud SQL - * * Cloud Storage - * * Google Kubernetes Engine - * * Organization Policy Serivice - * * Persistent Disk - * * Resource Manager - * * Secret Manager - * * Speaker ID - * Note: These values are supported as input for legacy purposes, but will not - * be returned from the API. - * * all - * * ga-only - * * appengine.googleapis.com - * * bigquery.googleapis.com - * * bigtable.googleapis.com - * * container.googleapis.com - * * cloudkms.googleapis.com - * * cloudresourcemanager.googleapis.com - * * cloudsql.googleapis.com - * * compute.googleapis.com - * * dataflow.googleapis.com - * * dataproc.googleapis.com - * * dlp.googleapis.com - * * iam.googleapis.com - * * logging.googleapis.com - * * orgpolicy.googleapis.com - * * pubsub.googleapis.com - * * spanner.googleapis.com - * * secretmanager.googleapis.com - * * speakerid.googleapis.com - * * storage.googleapis.com - * Calls to UpdateAccessApprovalSettings using 'all' or any of the - * XXX.googleapis.com will be translated to the associated product name - * ('all', 'App Engine', etc.). - * Note: 'all' will enroll the resource in all products supported at both 'GA' - * and 'Preview' levels. - * More information about levels of support is available at - * https://cloud.google.com/access-approval/docs/supported-services - * - * Generated from protobuf field string cloud_product = 1; - * @return string - */ - public function getCloudProduct() - { - return $this->cloud_product; - } - - /** - * The product for which Access Approval will be enrolled. Allowed values are - * listed below (case-sensitive): - * * all - * * GA - * * App Engine - * * BigQuery - * * Cloud Bigtable - * * Cloud Key Management Service - * * Compute Engine - * * Cloud Dataflow - * * Cloud Dataproc - * * Cloud DLP - * * Cloud EKM - * * Cloud HSM - * * Cloud Identity and Access Management - * * Cloud Logging - * * Cloud Pub/Sub - * * Cloud Spanner - * * Cloud SQL - * * Cloud Storage - * * Google Kubernetes Engine - * * Organization Policy Serivice - * * Persistent Disk - * * Resource Manager - * * Secret Manager - * * Speaker ID - * Note: These values are supported as input for legacy purposes, but will not - * be returned from the API. - * * all - * * ga-only - * * appengine.googleapis.com - * * bigquery.googleapis.com - * * bigtable.googleapis.com - * * container.googleapis.com - * * cloudkms.googleapis.com - * * cloudresourcemanager.googleapis.com - * * cloudsql.googleapis.com - * * compute.googleapis.com - * * dataflow.googleapis.com - * * dataproc.googleapis.com - * * dlp.googleapis.com - * * iam.googleapis.com - * * logging.googleapis.com - * * orgpolicy.googleapis.com - * * pubsub.googleapis.com - * * spanner.googleapis.com - * * secretmanager.googleapis.com - * * speakerid.googleapis.com - * * storage.googleapis.com - * Calls to UpdateAccessApprovalSettings using 'all' or any of the - * XXX.googleapis.com will be translated to the associated product name - * ('all', 'App Engine', etc.). - * Note: 'all' will enroll the resource in all products supported at both 'GA' - * and 'Preview' levels. - * More information about levels of support is available at - * https://cloud.google.com/access-approval/docs/supported-services - * - * Generated from protobuf field string cloud_product = 1; - * @param string $var - * @return $this - */ - public function setCloudProduct($var) - { - GPBUtil::checkString($var, True); - $this->cloud_product = $var; - - return $this; - } - - /** - * The enrollment level of the service. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * @return int - */ - public function getEnrollmentLevel() - { - return $this->enrollment_level; - } - - /** - * The enrollment level of the service. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.EnrollmentLevel enrollment_level = 2; - * @param int $var - * @return $this - */ - public function setEnrollmentLevel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AccessApproval\V1\EnrollmentLevel::class); - $this->enrollment_level = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/EnrollmentLevel.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/EnrollmentLevel.php deleted file mode 100644 index 4dd66533a5b6..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/EnrollmentLevel.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.accessapproval.v1.EnrollmentLevel - */ -class EnrollmentLevel -{ - /** - * Default value for proto, shouldn't be used. - * - * Generated from protobuf enum ENROLLMENT_LEVEL_UNSPECIFIED = 0; - */ - const ENROLLMENT_LEVEL_UNSPECIFIED = 0; - /** - * Service is enrolled in Access Approval for all requests - * - * Generated from protobuf enum BLOCK_ALL = 1; - */ - const BLOCK_ALL = 1; - - private static $valueToName = [ - self::ENROLLMENT_LEVEL_UNSPECIFIED => 'ENROLLMENT_LEVEL_UNSPECIFIED', - self::BLOCK_ALL => 'BLOCK_ALL', - ]; - - 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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetAccessApprovalServiceAccountMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetAccessApprovalServiceAccountMessage.php deleted file mode 100644 index 8c60086e1126..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetAccessApprovalServiceAccountMessage.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.accessapproval.v1.GetAccessApprovalServiceAccountMessage - */ -class GetAccessApprovalServiceAccountMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the AccessApprovalServiceAccount to retrieve. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * @param string $name Name of the AccessApprovalServiceAccount to retrieve. - * - * @return \Google\Cloud\AccessApproval\V1\GetAccessApprovalServiceAccountMessage - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the AccessApprovalServiceAccount to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Name of the AccessApprovalServiceAccount to retrieve. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the AccessApprovalServiceAccount to retrieve. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetAccessApprovalSettingsMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetAccessApprovalSettingsMessage.php deleted file mode 100644 index 4a7399d3cb5b..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetAccessApprovalSettingsMessage.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.accessapproval.v1.GetAccessApprovalSettingsMessage - */ -class GetAccessApprovalSettingsMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the AccessApprovalSettings to retrieve. - * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name The name of the AccessApprovalSettings to retrieve. - * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings" - * - * @return \Google\Cloud\AccessApproval\V1\GetAccessApprovalSettingsMessage - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the AccessApprovalSettings to retrieve. - * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The name of the AccessApprovalSettings to retrieve. - * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the AccessApprovalSettings to retrieve. - * Format: "{projects|folders|organizations}/{id}/accessApprovalSettings" - * - * Generated from protobuf field string name = 1 [(.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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetApprovalRequestMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetApprovalRequestMessage.php deleted file mode 100644 index 62bf7cb4b8ce..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/GetApprovalRequestMessage.php +++ /dev/null @@ -1,90 +0,0 @@ -google.cloud.accessapproval.v1.GetApprovalRequestMessage - */ -class GetApprovalRequestMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the approval request to retrieve. - * Format: - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name The name of the approval request to retrieve. - * Format: - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}" - * - * @return \Google\Cloud\AccessApproval\V1\GetApprovalRequestMessage - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the approval request to retrieve. - * Format: - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The name of the approval request to retrieve. - * Format: - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}" - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the approval request to retrieve. - * Format: - * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}" - * - * Generated from protobuf field string name = 1 [(.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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/InvalidateApprovalRequestMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/InvalidateApprovalRequestMessage.php deleted file mode 100644 index 53af32cef366..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/InvalidateApprovalRequestMessage.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.accessapproval.v1.InvalidateApprovalRequestMessage - */ -class InvalidateApprovalRequestMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the ApprovalRequest to invalidate. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the ApprovalRequest to invalidate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Name of the ApprovalRequest to invalidate. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the ApprovalRequest to invalidate. - * - * Generated from protobuf field string name = 1 [(.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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ListApprovalRequestsMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ListApprovalRequestsMessage.php deleted file mode 100644 index f0c5974aa1e2..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ListApprovalRequestsMessage.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.accessapproval.v1.ListApprovalRequestsMessage - */ -class ListApprovalRequestsMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The parent resource. This may be "projects/{project}", - * "folders/{folder}", or "organizations/{organization}". - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * A filter on the type of approval requests to retrieve. Must be one of the - * following values: - * * [not set]: Requests that are pending or have active approvals. - * * ALL: All requests. - * * PENDING: Only pending requests. - * * ACTIVE: Only active (i.e. currently approved) requests. - * * DISMISSED: Only requests that have been dismissed, or requests that - * are not approved and past expiration. - * * EXPIRED: Only requests that have been approved, and the approval has - * expired. - * * HISTORY: Active, dismissed and expired requests. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * A token identifying the page of results to return. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * @param string $parent The parent resource. This may be "projects/{project}", - * "folders/{folder}", or "organizations/{organization}". - * - * @return \Google\Cloud\AccessApproval\V1\ListApprovalRequestsMessage - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The parent resource. This may be "projects/{project}", - * "folders/{folder}", or "organizations/{organization}". - * @type string $filter - * A filter on the type of approval requests to retrieve. Must be one of the - * following values: - * * [not set]: Requests that are pending or have active approvals. - * * ALL: All requests. - * * PENDING: Only pending requests. - * * ACTIVE: Only active (i.e. currently approved) requests. - * * DISMISSED: Only requests that have been dismissed, or requests that - * are not approved and past expiration. - * * EXPIRED: Only requests that have been approved, and the approval has - * expired. - * * HISTORY: Active, dismissed and expired requests. - * @type int $page_size - * Requested page size. - * @type string $page_token - * A token identifying the page of results to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The parent resource. This may be "projects/{project}", - * "folders/{folder}", or "organizations/{organization}". - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent resource. This may be "projects/{project}", - * "folders/{folder}", or "organizations/{organization}". - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * A filter on the type of approval requests to retrieve. Must be one of the - * following values: - * * [not set]: Requests that are pending or have active approvals. - * * ALL: All requests. - * * PENDING: Only pending requests. - * * ACTIVE: Only active (i.e. currently approved) requests. - * * DISMISSED: Only requests that have been dismissed, or requests that - * are not approved and past expiration. - * * EXPIRED: Only requests that have been approved, and the approval has - * expired. - * * HISTORY: Active, dismissed and expired requests. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter on the type of approval requests to retrieve. Must be one of the - * following values: - * * [not set]: Requests that are pending or have active approvals. - * * ALL: All requests. - * * PENDING: Only pending requests. - * * ACTIVE: Only active (i.e. currently approved) requests. - * * DISMISSED: Only requests that have been dismissed, or requests that - * are not approved and past expiration. - * * EXPIRED: Only requests that have been approved, and the approval has - * expired. - * * HISTORY: Active, dismissed and expired requests. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying the page of results to return. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying the page of results to return. - * - * Generated from protobuf field string page_token = 4; - * @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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ListApprovalRequestsResponse.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ListApprovalRequestsResponse.php deleted file mode 100644 index 1a7f36a9dc4f..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ListApprovalRequestsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.accessapproval.v1.ListApprovalRequestsResponse - */ -class ListApprovalRequestsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Approval request details. - * - * Generated from protobuf field repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; - */ - private $approval_requests; - /** - * Token to retrieve the next page of results, or empty if there are no more. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AccessApproval\V1\ApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $approval_requests - * Approval request details. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Approval request details. - * - * Generated from protobuf field repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApprovalRequests() - { - return $this->approval_requests; - } - - /** - * Approval request details. - * - * Generated from protobuf field repeated .google.cloud.accessapproval.v1.ApprovalRequest approval_requests = 1; - * @param array<\Google\Cloud\AccessApproval\V1\ApprovalRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApprovalRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AccessApproval\V1\ApprovalRequest::class); - $this->approval_requests = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more. - * - * 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/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ResourceProperties.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ResourceProperties.php deleted file mode 100644 index 23a501d4e8f1..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/ResourceProperties.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.accessapproval.v1.ResourceProperties - */ -class ResourceProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Whether an approval will exclude the descendants of the resource being - * requested. - * - * Generated from protobuf field bool excludes_descendants = 1; - */ - protected $excludes_descendants = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $excludes_descendants - * Whether an approval will exclude the descendants of the resource being - * requested. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * Whether an approval will exclude the descendants of the resource being - * requested. - * - * Generated from protobuf field bool excludes_descendants = 1; - * @return bool - */ - public function getExcludesDescendants() - { - return $this->excludes_descendants; - } - - /** - * Whether an approval will exclude the descendants of the resource being - * requested. - * - * Generated from protobuf field bool excludes_descendants = 1; - * @param bool $var - * @return $this - */ - public function setExcludesDescendants($var) - { - GPBUtil::checkBool($var); - $this->excludes_descendants = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/SignatureInfo.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/SignatureInfo.php deleted file mode 100644 index 1755b4bb1723..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/SignatureInfo.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.accessapproval.v1.SignatureInfo - */ -class SignatureInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The digital signature. - * - * Generated from protobuf field bytes signature = 1; - */ - protected $signature = ''; - protected $verification_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $signature - * The digital signature. - * @type string $google_public_key_pem - * The public key for the Google default signing, encoded in PEM format. The - * signature was created using a private key which may be verified using - * this public key. - * @type string $customer_kms_key_version - * The resource name of the customer CryptoKeyVersion used for signing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The digital signature. - * - * Generated from protobuf field bytes signature = 1; - * @return string - */ - public function getSignature() - { - return $this->signature; - } - - /** - * The digital signature. - * - * Generated from protobuf field bytes signature = 1; - * @param string $var - * @return $this - */ - public function setSignature($var) - { - GPBUtil::checkString($var, False); - $this->signature = $var; - - return $this; - } - - /** - * The public key for the Google default signing, encoded in PEM format. The - * signature was created using a private key which may be verified using - * this public key. - * - * Generated from protobuf field string google_public_key_pem = 2; - * @return string - */ - public function getGooglePublicKeyPem() - { - return $this->readOneof(2); - } - - public function hasGooglePublicKeyPem() - { - return $this->hasOneof(2); - } - - /** - * The public key for the Google default signing, encoded in PEM format. The - * signature was created using a private key which may be verified using - * this public key. - * - * Generated from protobuf field string google_public_key_pem = 2; - * @param string $var - * @return $this - */ - public function setGooglePublicKeyPem($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The resource name of the customer CryptoKeyVersion used for signing. - * - * Generated from protobuf field string customer_kms_key_version = 3; - * @return string - */ - public function getCustomerKmsKeyVersion() - { - return $this->readOneof(3); - } - - public function hasCustomerKmsKeyVersion() - { - return $this->hasOneof(3); - } - - /** - * The resource name of the customer CryptoKeyVersion used for signing. - * - * Generated from protobuf field string customer_kms_key_version = 3; - * @param string $var - * @return $this - */ - public function setCustomerKmsKeyVersion($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getVerificationInfo() - { - return $this->whichOneof("verification_info"); - } - -} - diff --git a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/UpdateAccessApprovalSettingsMessage.php b/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/UpdateAccessApprovalSettingsMessage.php deleted file mode 100644 index 7a9c9849b269..000000000000 --- a/owl-bot-staging/AccessApproval/v1/proto/src/Google/Cloud/AccessApproval/V1/UpdateAccessApprovalSettingsMessage.php +++ /dev/null @@ -1,177 +0,0 @@ -google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage - */ -class UpdateAccessApprovalSettingsMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The new AccessApprovalSettings. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - */ - protected $settings = null; - /** - * The update mask applies to the settings. Only the top level fields of - * AccessApprovalSettings (notification_emails & enrolled_services) are - * supported. For each field, if it is included, the currently stored value - * will be entirely overwritten with the value of the field passed in this - * request. - * For the `FieldMask` definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * If this field is left unset, only the notification_emails field will be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\AccessApproval\V1\AccessApprovalSettings $settings The new AccessApprovalSettings. - * @param \Google\Protobuf\FieldMask $updateMask The update mask applies to the settings. Only the top level fields of - * AccessApprovalSettings (notification_emails & enrolled_services) are - * supported. For each field, if it is included, the currently stored value - * will be entirely overwritten with the value of the field passed in this - * request. - * - * For the `FieldMask` definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * If this field is left unset, only the notification_emails field will be - * updated. - * - * @return \Google\Cloud\AccessApproval\V1\UpdateAccessApprovalSettingsMessage - * - * @experimental - */ - public static function build(\Google\Cloud\AccessApproval\V1\AccessApprovalSettings $settings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSettings($settings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AccessApproval\V1\AccessApprovalSettings $settings - * The new AccessApprovalSettings. - * @type \Google\Protobuf\FieldMask $update_mask - * The update mask applies to the settings. Only the top level fields of - * AccessApprovalSettings (notification_emails & enrolled_services) are - * supported. For each field, if it is included, the currently stored value - * will be entirely overwritten with the value of the field passed in this - * request. - * For the `FieldMask` definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * If this field is left unset, only the notification_emails field will be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Accessapproval\V1\Accessapproval::initOnce(); - parent::__construct($data); - } - - /** - * The new AccessApprovalSettings. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * @return \Google\Cloud\AccessApproval\V1\AccessApprovalSettings|null - */ - public function getSettings() - { - return $this->settings; - } - - public function hasSettings() - { - return isset($this->settings); - } - - public function clearSettings() - { - unset($this->settings); - } - - /** - * The new AccessApprovalSettings. - * - * Generated from protobuf field .google.cloud.accessapproval.v1.AccessApprovalSettings settings = 1; - * @param \Google\Cloud\AccessApproval\V1\AccessApprovalSettings $var - * @return $this - */ - public function setSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AccessApproval\V1\AccessApprovalSettings::class); - $this->settings = $var; - - return $this; - } - - /** - * The update mask applies to the settings. Only the top level fields of - * AccessApprovalSettings (notification_emails & enrolled_services) are - * supported. For each field, if it is included, the currently stored value - * will be entirely overwritten with the value of the field passed in this - * request. - * For the `FieldMask` definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * If this field is left unset, only the notification_emails field will 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 update mask applies to the settings. Only the top level fields of - * AccessApprovalSettings (notification_emails & enrolled_services) are - * supported. For each field, if it is included, the currently stored value - * will be entirely overwritten with the value of the field passed in this - * request. - * For the `FieldMask` definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * If this field is left unset, only the notification_emails field will 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/AccessApproval/v1/samples/V1/AccessApprovalClient/approve_approval_request.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/approve_approval_request.php deleted file mode 100644 index a1676b1e4283..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/approve_approval_request.php +++ /dev/null @@ -1,60 +0,0 @@ -approveApprovalRequest($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_ApproveApprovalRequest_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/delete_access_approval_settings.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/delete_access_approval_settings.php deleted file mode 100644 index 7acdb61965ca..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/delete_access_approval_settings.php +++ /dev/null @@ -1,60 +0,0 @@ -deleteAccessApprovalSettings($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_DeleteAccessApprovalSettings_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/dismiss_approval_request.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/dismiss_approval_request.php deleted file mode 100644 index fc94522d223c..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/dismiss_approval_request.php +++ /dev/null @@ -1,66 +0,0 @@ -dismissApprovalRequest($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_DismissApprovalRequest_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_access_approval_service_account.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_access_approval_service_account.php deleted file mode 100644 index 838ebbf318ad..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_access_approval_service_account.php +++ /dev/null @@ -1,58 +0,0 @@ -getAccessApprovalServiceAccount($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_GetAccessApprovalServiceAccount_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_access_approval_settings.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_access_approval_settings.php deleted file mode 100644 index eda8d9db2b5a..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_access_approval_settings.php +++ /dev/null @@ -1,57 +0,0 @@ -getAccessApprovalSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_GetAccessApprovalSettings_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_approval_request.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_approval_request.php deleted file mode 100644 index 2750d0834534..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/get_approval_request.php +++ /dev/null @@ -1,57 +0,0 @@ -getApprovalRequest($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_GetApprovalRequest_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/invalidate_approval_request.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/invalidate_approval_request.php deleted file mode 100644 index 49321d58726e..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/invalidate_approval_request.php +++ /dev/null @@ -1,64 +0,0 @@ -invalidateApprovalRequest($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_InvalidateApprovalRequest_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/list_approval_requests.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/list_approval_requests.php deleted file mode 100644 index 7a6c5a616f67..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/list_approval_requests.php +++ /dev/null @@ -1,64 +0,0 @@ -listApprovalRequests($request); - - /** @var ApprovalRequest $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_ListApprovalRequests_sync] diff --git a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/update_access_approval_settings.php b/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/update_access_approval_settings.php deleted file mode 100644 index 76f3f4c7edbb..000000000000 --- a/owl-bot-staging/AccessApproval/v1/samples/V1/AccessApprovalClient/update_access_approval_settings.php +++ /dev/null @@ -1,58 +0,0 @@ -updateAccessApprovalSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END accessapproval_v1_generated_AccessApproval_UpdateAccessApprovalSettings_sync] diff --git a/owl-bot-staging/AccessApproval/v1/src/V1/Client/AccessApprovalClient.php b/owl-bot-staging/AccessApproval/v1/src/V1/Client/AccessApprovalClient.php deleted file mode 100644 index 09710431bbe2..000000000000 --- a/owl-bot-staging/AccessApproval/v1/src/V1/Client/AccessApprovalClient.php +++ /dev/null @@ -1,695 +0,0 @@ - approveApprovalRequestAsync(ApproveApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessApprovalSettingsAsync(DeleteAccessApprovalSettingsMessage $request, array $optionalArgs = []) - * @method PromiseInterface dismissApprovalRequestAsync(DismissApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface getAccessApprovalServiceAccountAsync(GetAccessApprovalServiceAccountMessage $request, array $optionalArgs = []) - * @method PromiseInterface getAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage $request, array $optionalArgs = []) - * @method PromiseInterface getApprovalRequestAsync(GetApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface invalidateApprovalRequestAsync(InvalidateApprovalRequestMessage $request, array $optionalArgs = []) - * @method PromiseInterface listApprovalRequestsAsync(ListApprovalRequestsMessage $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage $request, array $optionalArgs = []) - */ -final class AccessApprovalClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.accessapproval.v1.AccessApproval'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'accessapproval.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'accessapproval.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/access_approval_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/access_approval_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/access_approval_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/access_approval_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * access_approval_settings resource. - * - * @param string $project - * - * @return string The formatted access_approval_settings resource. - */ - public static function accessApprovalSettingsName(string $project): string - { - return self::getPathTemplate('accessApprovalSettings')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * approval_request resource. - * - * @param string $project - * @param string $approvalRequest - * - * @return string The formatted approval_request resource. - */ - public static function approvalRequestName(string $project, string $approvalRequest): string - { - return self::getPathTemplate('approvalRequest')->render([ - 'project' => $project, - 'approval_request' => $approvalRequest, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a folder - * resource. - * - * @param string $folder - * - * @return string The formatted folder resource. - */ - public static function folderName(string $folder): string - { - return self::getPathTemplate('folder')->render([ - 'folder' => $folder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * folder_accessApprovalSettings resource. - * - * @param string $folder - * - * @return string The formatted folder_accessApprovalSettings resource. - */ - public static function folderAccessApprovalSettingsName(string $folder): string - { - return self::getPathTemplate('folderAccessApprovalSettings')->render([ - 'folder' => $folder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * folder_approval_request resource. - * - * @param string $folder - * @param string $approvalRequest - * - * @return string The formatted folder_approval_request resource. - */ - public static function folderApprovalRequestName(string $folder, string $approvalRequest): string - { - return self::getPathTemplate('folderApprovalRequest')->render([ - 'folder' => $folder, - 'approval_request' => $approvalRequest, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_accessApprovalSettings resource. - * - * @param string $organization - * - * @return string The formatted organization_accessApprovalSettings resource. - */ - public static function organizationAccessApprovalSettingsName(string $organization): string - { - return self::getPathTemplate('organizationAccessApprovalSettings')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_approval_request resource. - * - * @param string $organization - * @param string $approvalRequest - * - * @return string The formatted organization_approval_request resource. - */ - public static function organizationApprovalRequestName(string $organization, string $approvalRequest): string - { - return self::getPathTemplate('organizationApprovalRequest')->render([ - 'organization' => $organization, - 'approval_request' => $approvalRequest, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_accessApprovalSettings resource. - * - * @param string $project - * - * @return string The formatted project_accessApprovalSettings resource. - */ - public static function projectAccessApprovalSettingsName(string $project): string - { - return self::getPathTemplate('projectAccessApprovalSettings')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_approval_request resource. - * - * @param string $project - * @param string $approvalRequest - * - * @return string The formatted project_approval_request resource. - */ - public static function projectApprovalRequestName(string $project, string $approvalRequest): string - { - return self::getPathTemplate('projectApprovalRequest')->render([ - 'project' => $project, - 'approval_request' => $approvalRequest, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - accessApprovalSettings: projects/{project}/accessApprovalSettings - * - approvalRequest: projects/{project}/approvalRequests/{approval_request} - * - folder: folders/{folder} - * - folderAccessApprovalSettings: folders/{folder}/accessApprovalSettings - * - folderApprovalRequest: folders/{folder}/approvalRequests/{approval_request} - * - organization: organizations/{organization} - * - organizationAccessApprovalSettings: organizations/{organization}/accessApprovalSettings - * - organizationApprovalRequest: organizations/{organization}/approvalRequests/{approval_request} - * - project: projects/{project} - * - projectAccessApprovalSettings: projects/{project}/accessApprovalSettings - * - projectApprovalRequest: projects/{project}/approvalRequests/{approval_request} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'accessapproval.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Approves a request and returns the updated ApprovalRequest. - * - * Returns NOT_FOUND if the request does not exist. Returns - * FAILED_PRECONDITION if the request exists but is not in a pending state. - * - * The async variant is {@see AccessApprovalClient::approveApprovalRequestAsync()} - * . - * - * @example samples/V1/AccessApprovalClient/approve_approval_request.php - * - * @param ApproveApprovalRequestMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApprovalRequest - * - * @throws ApiException Thrown if the API call fails. - */ - public function approveApprovalRequest(ApproveApprovalRequestMessage $request, array $callOptions = []): ApprovalRequest - { - return $this->startApiCall('ApproveApprovalRequest', $request, $callOptions)->wait(); - } - - /** - * Deletes the settings associated with a project, folder, or organization. - * This will have the effect of disabling Access Approval for the project, - * folder, or organization, but only if all ancestors also have Access - * Approval disabled. If Access Approval is enabled at a higher level of the - * hierarchy, then Access Approval will still be enabled at this level as - * the settings are inherited. - * - * The async variant is - * {@see AccessApprovalClient::deleteAccessApprovalSettingsAsync()} . - * - * @example samples/V1/AccessApprovalClient/delete_access_approval_settings.php - * - * @param DeleteAccessApprovalSettingsMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAccessApprovalSettings', $request, $callOptions)->wait(); - } - - /** - * Dismisses a request. Returns the updated ApprovalRequest. - * - * NOTE: This does not deny access to the resource if another request has been - * made and approved. It is equivalent in effect to ignoring the request - * altogether. - * - * Returns NOT_FOUND if the request does not exist. - * - * Returns FAILED_PRECONDITION if the request exists but is not in a pending - * state. - * - * The async variant is {@see AccessApprovalClient::dismissApprovalRequestAsync()} - * . - * - * @example samples/V1/AccessApprovalClient/dismiss_approval_request.php - * - * @param DismissApprovalRequestMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApprovalRequest - * - * @throws ApiException Thrown if the API call fails. - */ - public function dismissApprovalRequest(DismissApprovalRequestMessage $request, array $callOptions = []): ApprovalRequest - { - return $this->startApiCall('DismissApprovalRequest', $request, $callOptions)->wait(); - } - - /** - * Retrieves the service account that is used by Access Approval to access KMS - * keys for signing approved approval requests. - * - * The async variant is - * {@see AccessApprovalClient::getAccessApprovalServiceAccountAsync()} . - * - * @example samples/V1/AccessApprovalClient/get_access_approval_service_account.php - * - * @param GetAccessApprovalServiceAccountMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessApprovalServiceAccount - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage $request, array $callOptions = []): AccessApprovalServiceAccount - { - return $this->startApiCall('GetAccessApprovalServiceAccount', $request, $callOptions)->wait(); - } - - /** - * Gets the settings associated with a project, folder, or organization. - * - * The async variant is - * {@see AccessApprovalClient::getAccessApprovalSettingsAsync()} . - * - * @example samples/V1/AccessApprovalClient/get_access_approval_settings.php - * - * @param GetAccessApprovalSettingsMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessApprovalSettings - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAccessApprovalSettings(GetAccessApprovalSettingsMessage $request, array $callOptions = []): AccessApprovalSettings - { - return $this->startApiCall('GetAccessApprovalSettings', $request, $callOptions)->wait(); - } - - /** - * Gets an approval request. Returns NOT_FOUND if the request does not exist. - * - * The async variant is {@see AccessApprovalClient::getApprovalRequestAsync()} . - * - * @example samples/V1/AccessApprovalClient/get_approval_request.php - * - * @param GetApprovalRequestMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApprovalRequest - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApprovalRequest(GetApprovalRequestMessage $request, array $callOptions = []): ApprovalRequest - { - return $this->startApiCall('GetApprovalRequest', $request, $callOptions)->wait(); - } - - /** - * Invalidates an existing ApprovalRequest. Returns the updated - * ApprovalRequest. - * - * NOTE: This does not deny access to the resource if another request has been - * made and approved. It only invalidates a single approval. - * - * Returns FAILED_PRECONDITION if the request exists but is not in an approved - * state. - * - * The async variant is - * {@see AccessApprovalClient::invalidateApprovalRequestAsync()} . - * - * @example samples/V1/AccessApprovalClient/invalidate_approval_request.php - * - * @param InvalidateApprovalRequestMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApprovalRequest - * - * @throws ApiException Thrown if the API call fails. - */ - public function invalidateApprovalRequest(InvalidateApprovalRequestMessage $request, array $callOptions = []): ApprovalRequest - { - return $this->startApiCall('InvalidateApprovalRequest', $request, $callOptions)->wait(); - } - - /** - * Lists approval requests associated with a project, folder, or organization. - * Approval requests can be filtered by state (pending, active, dismissed). - * The order is reverse chronological. - * - * The async variant is {@see AccessApprovalClient::listApprovalRequestsAsync()} . - * - * @example samples/V1/AccessApprovalClient/list_approval_requests.php - * - * @param ListApprovalRequestsMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApprovalRequests(ListApprovalRequestsMessage $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApprovalRequests', $request, $callOptions); - } - - /** - * Updates the settings associated with a project, folder, or organization. - * Settings to update are determined by the value of field_mask. - * - * The async variant is - * {@see AccessApprovalClient::updateAccessApprovalSettingsAsync()} . - * - * @example samples/V1/AccessApprovalClient/update_access_approval_settings.php - * - * @param UpdateAccessApprovalSettingsMessage $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessApprovalSettings - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage $request, array $callOptions = []): AccessApprovalSettings - { - return $this->startApiCall('UpdateAccessApprovalSettings', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AccessApproval/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AccessApproval/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 0365e1233d2c..000000000000 --- a/owl-bot-staging/AccessApproval/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.accessapproval.v1", - "libraryPackage": "Google\\Cloud\\AccessApproval\\V1", - "services": { - "AccessApproval": { - "clients": { - "grpc": { - "libraryClient": "AccessApprovalGapicClient", - "rpcs": { - "ApproveApprovalRequest": { - "methods": [ - "approveApprovalRequest" - ] - }, - "DeleteAccessApprovalSettings": { - "methods": [ - "deleteAccessApprovalSettings" - ] - }, - "DismissApprovalRequest": { - "methods": [ - "dismissApprovalRequest" - ] - }, - "GetAccessApprovalServiceAccount": { - "methods": [ - "getAccessApprovalServiceAccount" - ] - }, - "GetAccessApprovalSettings": { - "methods": [ - "getAccessApprovalSettings" - ] - }, - "GetApprovalRequest": { - "methods": [ - "getApprovalRequest" - ] - }, - "InvalidateApprovalRequest": { - "methods": [ - "invalidateApprovalRequest" - ] - }, - "ListApprovalRequests": { - "methods": [ - "listApprovalRequests" - ] - }, - "UpdateAccessApprovalSettings": { - "methods": [ - "updateAccessApprovalSettings" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_client_config.json b/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_client_config.json deleted file mode 100644 index 0a3818042110..000000000000 --- a/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_client_config.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "interfaces": { - "google.cloud.accessapproval.v1.AccessApproval": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "ApproveApprovalRequest": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAccessApprovalSettings": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DismissApprovalRequest": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAccessApprovalServiceAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetAccessApprovalSettings": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApprovalRequest": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "InvalidateApprovalRequest": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListApprovalRequests": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAccessApprovalSettings": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_descriptor_config.php b/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_descriptor_config.php deleted file mode 100644 index ee598408eae8..000000000000 --- a/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_descriptor_config.php +++ /dev/null @@ -1,158 +0,0 @@ - [ - 'google.cloud.accessapproval.v1.AccessApproval' => [ - 'ApproveApprovalRequest' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\ApprovalRequest', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAccessApprovalSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DismissApprovalRequest' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\ApprovalRequest', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAccessApprovalServiceAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\AccessApprovalServiceAccount', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAccessApprovalSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\AccessApprovalSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApprovalRequest' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\ApprovalRequest', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InvalidateApprovalRequest' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\ApprovalRequest', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListApprovalRequests' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApprovalRequests', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\ListApprovalRequestsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAccessApprovalSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AccessApproval\V1\AccessApprovalSettings', - 'headerParams' => [ - [ - 'keyName' => 'settings.name', - 'fieldAccessors' => [ - 'getSettings', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'accessApprovalSettings' => 'projects/{project}/accessApprovalSettings', - 'approvalRequest' => 'projects/{project}/approvalRequests/{approval_request}', - 'folder' => 'folders/{folder}', - 'folderAccessApprovalSettings' => 'folders/{folder}/accessApprovalSettings', - 'folderApprovalRequest' => 'folders/{folder}/approvalRequests/{approval_request}', - 'organization' => 'organizations/{organization}', - 'organizationAccessApprovalSettings' => 'organizations/{organization}/accessApprovalSettings', - 'organizationApprovalRequest' => 'organizations/{organization}/approvalRequests/{approval_request}', - 'project' => 'projects/{project}', - 'projectAccessApprovalSettings' => 'projects/{project}/accessApprovalSettings', - 'projectApprovalRequest' => 'projects/{project}/approvalRequests/{approval_request}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_rest_client_config.php b/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_rest_client_config.php deleted file mode 100644 index b6de73248524..000000000000 --- a/owl-bot-staging/AccessApproval/v1/src/V1/resources/access_approval_rest_client_config.php +++ /dev/null @@ -1,231 +0,0 @@ - [ - 'google.cloud.accessapproval.v1.AccessApproval' => [ - 'ApproveApprovalRequest' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/approvalRequests/*}:approve', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=folders/*/approvalRequests/*}:approve', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/approvalRequests/*}:approve', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAccessApprovalSettings' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/accessApprovalSettings}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=folders/*/accessApprovalSettings}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/accessApprovalSettings}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DismissApprovalRequest' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/approvalRequests/*}:dismiss', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=folders/*/approvalRequests/*}:dismiss', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/approvalRequests/*}:dismiss', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccessApprovalServiceAccount' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/serviceAccount}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/serviceAccount}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/serviceAccount}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccessApprovalSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/accessApprovalSettings}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/accessApprovalSettings}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/accessApprovalSettings}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApprovalRequest' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/approvalRequests/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/approvalRequests/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/approvalRequests/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InvalidateApprovalRequest' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/approvalRequests/*}:invalidate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=folders/*/approvalRequests/*}:invalidate', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/approvalRequests/*}:invalidate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApprovalRequests' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/approvalRequests', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=folders/*}/approvalRequests', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*}/approvalRequests', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAccessApprovalSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{settings.name=projects/*/accessApprovalSettings}', - 'body' => 'settings', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{settings.name=folders/*/accessApprovalSettings}', - 'body' => 'settings', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{settings.name=organizations/*/accessApprovalSettings}', - 'body' => 'settings', - ], - ], - 'placeholders' => [ - 'settings.name' => [ - 'getters' => [ - 'getSettings', - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AccessApproval/v1/tests/Unit/V1/Client/AccessApprovalClientTest.php b/owl-bot-staging/AccessApproval/v1/tests/Unit/V1/Client/AccessApprovalClientTest.php deleted file mode 100644 index 498c03fb77ec..000000000000 --- a/owl-bot-staging/AccessApproval/v1/tests/Unit/V1/Client/AccessApprovalClientTest.php +++ /dev/null @@ -1,635 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AccessApprovalClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AccessApprovalClient($options); - } - - /** @test */ - public function approveApprovalRequestTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $requestedResourceName = 'requestedResourceName-1409378037'; - $expectedResponse = new ApprovalRequest(); - $expectedResponse->setName($name2); - $expectedResponse->setRequestedResourceName($requestedResourceName); - $transport->addResponse($expectedResponse); - $request = new ApproveApprovalRequestMessage(); - $response = $gapicClient->approveApprovalRequest($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/ApproveApprovalRequest', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveApprovalRequestExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ApproveApprovalRequestMessage(); - try { - $gapicClient->approveApprovalRequest($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessApprovalSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new DeleteAccessApprovalSettingsMessage(); - $gapicClient->deleteAccessApprovalSettings($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/DeleteAccessApprovalSettings', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessApprovalSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DeleteAccessApprovalSettingsMessage(); - try { - $gapicClient->deleteAccessApprovalSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function dismissApprovalRequestTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $requestedResourceName = 'requestedResourceName-1409378037'; - $expectedResponse = new ApprovalRequest(); - $expectedResponse->setName($name2); - $expectedResponse->setRequestedResourceName($requestedResourceName); - $transport->addResponse($expectedResponse); - $request = new DismissApprovalRequestMessage(); - $response = $gapicClient->dismissApprovalRequest($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/DismissApprovalRequest', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function dismissApprovalRequestExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DismissApprovalRequestMessage(); - try { - $gapicClient->dismissApprovalRequest($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessApprovalServiceAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $accountEmail = 'accountEmail-539286774'; - $expectedResponse = new AccessApprovalServiceAccount(); - $expectedResponse->setName($name2); - $expectedResponse->setAccountEmail($accountEmail); - $transport->addResponse($expectedResponse); - $request = new GetAccessApprovalServiceAccountMessage(); - $response = $gapicClient->getAccessApprovalServiceAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/GetAccessApprovalServiceAccount', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessApprovalServiceAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetAccessApprovalServiceAccountMessage(); - try { - $gapicClient->getAccessApprovalServiceAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessApprovalSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $enrolledAncestor = false; - $activeKeyVersion = 'activeKeyVersion559224639'; - $ancestorHasActiveKeyVersion = true; - $invalidKeyVersion = true; - $expectedResponse = new AccessApprovalSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setEnrolledAncestor($enrolledAncestor); - $expectedResponse->setActiveKeyVersion($activeKeyVersion); - $expectedResponse->setAncestorHasActiveKeyVersion($ancestorHasActiveKeyVersion); - $expectedResponse->setInvalidKeyVersion($invalidKeyVersion); - $transport->addResponse($expectedResponse); - $request = new GetAccessApprovalSettingsMessage(); - $response = $gapicClient->getAccessApprovalSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/GetAccessApprovalSettings', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessApprovalSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetAccessApprovalSettingsMessage(); - try { - $gapicClient->getAccessApprovalSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApprovalRequestTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $requestedResourceName = 'requestedResourceName-1409378037'; - $expectedResponse = new ApprovalRequest(); - $expectedResponse->setName($name2); - $expectedResponse->setRequestedResourceName($requestedResourceName); - $transport->addResponse($expectedResponse); - $request = new GetApprovalRequestMessage(); - $response = $gapicClient->getApprovalRequest($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/GetApprovalRequest', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApprovalRequestExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetApprovalRequestMessage(); - try { - $gapicClient->getApprovalRequest($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function invalidateApprovalRequestTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $requestedResourceName = 'requestedResourceName-1409378037'; - $expectedResponse = new ApprovalRequest(); - $expectedResponse->setName($name2); - $expectedResponse->setRequestedResourceName($requestedResourceName); - $transport->addResponse($expectedResponse); - $request = new InvalidateApprovalRequestMessage(); - $response = $gapicClient->invalidateApprovalRequest($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/InvalidateApprovalRequest', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function invalidateApprovalRequestExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new InvalidateApprovalRequestMessage(); - try { - $gapicClient->invalidateApprovalRequest($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApprovalRequestsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $approvalRequestsElement = new ApprovalRequest(); - $approvalRequests = [ - $approvalRequestsElement, - ]; - $expectedResponse = new ListApprovalRequestsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApprovalRequests($approvalRequests); - $transport->addResponse($expectedResponse); - $request = new ListApprovalRequestsMessage(); - $response = $gapicClient->listApprovalRequests($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApprovalRequests()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/ListApprovalRequests', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApprovalRequestsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListApprovalRequestsMessage(); - try { - $gapicClient->listApprovalRequests($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessApprovalSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $enrolledAncestor = false; - $activeKeyVersion = 'activeKeyVersion559224639'; - $ancestorHasActiveKeyVersion = true; - $invalidKeyVersion = true; - $expectedResponse = new AccessApprovalSettings(); - $expectedResponse->setName($name); - $expectedResponse->setEnrolledAncestor($enrolledAncestor); - $expectedResponse->setActiveKeyVersion($activeKeyVersion); - $expectedResponse->setAncestorHasActiveKeyVersion($ancestorHasActiveKeyVersion); - $expectedResponse->setInvalidKeyVersion($invalidKeyVersion); - $transport->addResponse($expectedResponse); - $request = new UpdateAccessApprovalSettingsMessage(); - $response = $gapicClient->updateAccessApprovalSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/UpdateAccessApprovalSettings', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessApprovalSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new UpdateAccessApprovalSettingsMessage(); - try { - $gapicClient->updateAccessApprovalSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveApprovalRequestAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $requestedResourceName = 'requestedResourceName-1409378037'; - $expectedResponse = new ApprovalRequest(); - $expectedResponse->setName($name2); - $expectedResponse->setRequestedResourceName($requestedResourceName); - $transport->addResponse($expectedResponse); - $request = new ApproveApprovalRequestMessage(); - $response = $gapicClient->approveApprovalRequestAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.accessapproval.v1.AccessApproval/ApproveApprovalRequest', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php deleted file mode 100644 index ae0af4b8f3e2..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitEnums.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php deleted file mode 100644 index 4d03c22520c4..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitMessages.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php deleted file mode 100644 index 65811309fe0c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdUnitService.php +++ /dev/null @@ -1,67 +0,0 @@ -internalAddGeneratedFile( - ' - --google/ads/admanager/v1/ad_unit_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"I -GetAdUnitRequest5 -name ( B\'AA! -admanager.googleapis.com/AdUnit" -ListAdUnitsRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA"u -ListAdUnitsResponse1 -ad_units ( 2.google.ads.admanager.v1.AdUnit -next_page_token (  - -total_size (" -ListAdUnitSizesRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA" -ListAdUnitSizesResponse: - ad_unit_sizes ( 2#.google.ads.admanager.v1.AdUnitSize -next_page_token (  - -total_size (2 - AdUnitService - GetAdUnit).google.ads.admanager.v1.GetAdUnitRequest.google.ads.admanager.v1.AdUnit".Aname!/v1/{name=networks/*/adUnits/*} - ListAdUnits+.google.ads.admanager.v1.ListAdUnitsRequest,.google.ads.admanager.v1.ListAdUnitsResponse"0Aparent!/v1/{parent=networks/*}/adUnits -ListAdUnitSizes/.google.ads.admanager.v1.ListAdUnitSizesRequest0.google.ads.admanager.v1.ListAdUnitSizesResponse"4Aparent%#/v1/{parent=networks/*}/adUnitSizesAadmanager.googleapis.comB -com.google.ads.admanager.v1BAdUnitServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php deleted file mode 100644 index a49f1ebb2779..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AdmanagerError.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' - --google/ads/admanager/v1/admanager_error.protogoogle.ads.admanager.v1" -AdManagerError - -error_code (  -message (  - -field_path (  -trigger (  - stack_trace ( % -details ( 2.google.protobuf.AnyB -com.google.ads.admanager.v1BAdManagerErrorProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php deleted file mode 100644 index e23e5d79d3f6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/AppliedLabel.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' - -+google/ads/admanager/v1/applied_label.protogoogle.ads.admanager.v1google/api/resource.proto"V - AppliedLabel5 -label ( B&AA -admanager.googleapis.com/Label -negated (B -com.google.ads.admanager.v1BAppliedLabelProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyCreditStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyCreditStatusEnum.php deleted file mode 100644 index 0966edc17e86..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyCreditStatusEnum.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php deleted file mode 100644 index f2e4b4978852..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyMessages.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyService.php deleted file mode 100644 index 777ffbe512d6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' - --google/ads/admanager/v1/company_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K -GetCompanyRequest6 -name ( B(AA" - admanager.googleapis.com/Company" -ListCompaniesRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA"y -ListCompaniesResponse3 - companies ( 2 .google.ads.admanager.v1.Company -next_page_token (  - -total_size (2 -CompanyService - -GetCompany*.google.ads.admanager.v1.GetCompanyRequest .google.ads.admanager.v1.Company"0Aname#!/v1/{name=networks/*/companies/*} - ListCompanies-.google.ads.admanager.v1.ListCompaniesRequest..google.ads.admanager.v1.ListCompaniesResponse"2Aparent#!/v1/{parent=networks/*}/companiesAadmanager.googleapis.comB -com.google.ads.admanager.v1BCompanyServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyTypeEnum.php deleted file mode 100644 index 59881231d866..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CompanyTypeEnum.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php deleted file mode 100644 index fc6351c12d7c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ContactMessages.php +++ /dev/null @@ -1,34 +0,0 @@ -internalAddGeneratedFile( - ' - -.google/ads/admanager/v1/contact_messages.protogoogle.ads.admanager.v1google/api/resource.proto" -Contact -name ( BA - -contact_id (BA:dAa - admanager.googleapis.com/Contact*networks/{network_code}/contacts/{contact}*contacts2contactB -com.google.ads.admanager.v1BContactMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php deleted file mode 100644 index 81c470c90343..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldEnums.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldMessages.php deleted file mode 100644 index aadb94caf293..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldMessages.php +++ /dev/null @@ -1,46 +0,0 @@ -internalAddGeneratedFile( - ' - -3google/ads/admanager/v1/custom_field_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" - CustomField -name ( BA -custom_field_id (BA - display_name ( BA - description ( BAU -status (2@.google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatusBAb - entity_type (2H.google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityTypeBA\\ - data_type (2D.google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataTypeBAa - -visibility (2H.google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibilityBA@ -options - ( 2*.google.ads.admanager.v1.CustomFieldOptionBA:yAv -$admanager.googleapis.com/CustomField3networks/{network_code}/customFields/{custom_field}* customFields2 customField"S -CustomFieldOption# -custom_field_option_id (BA - display_name ( BAB -com.google.ads.admanager.v1BCustomFieldMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php deleted file mode 100644 index dfd14cb20de3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldService.php +++ /dev/null @@ -1,52 +0,0 @@ -internalAddGeneratedFile( - ' - -2google/ads/admanager/v1/custom_field_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"S -GetCustomFieldRequest: -name ( B,AA& -$admanager.googleapis.com/CustomField" -ListCustomFieldsRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA" -ListCustomFieldsResponse; - custom_fields ( 2$.google.ads.admanager.v1.CustomField -next_page_token (  - -total_size (2 -CustomFieldService -GetCustomField..google.ads.admanager.v1.GetCustomFieldRequest$.google.ads.admanager.v1.CustomField"3Aname&$/v1/{name=networks/*/customFields/*} -ListCustomFields0.google.ads.admanager.v1.ListCustomFieldsRequest1.google.ads.admanager.v1.ListCustomFieldsResponse"5Aparent&$/v1/{parent=networks/*}/customFieldsAadmanager.googleapis.comB -com.google.ads.admanager.v1BCustomFieldServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php deleted file mode 100644 index 303f1617d72f..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomFieldValue.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyEnums.php deleted file mode 100644 index d23e53e3e6f9..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyEnums.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php deleted file mode 100644 index ea6106a350c7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyMessages.php +++ /dev/null @@ -1,39 +0,0 @@ -internalAddGeneratedFile( - ' - -;google/ads/admanager/v1/custom_targeting_key_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" -CustomTargetingKey -name ( BA$ -custom_targeting_key_id (BA - ad_tag_name ( BA - display_name ( BA] -type (2J.google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyTypeBAc -status (2N.google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatusBA| -reportable_type (2^.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableTypeBA:A -+admanager.googleapis.com/CustomTargetingKeyBnetworks/{network_code}/customTargetingKeys/{custom_targeting_key}*customTargetingKeys2customTargetingKeyB -com.google.ads.admanager.v1BCustomTargetingKeyMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php deleted file mode 100644 index 0bce5ecf47e8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingKeyService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' - - -:google/ads/admanager/v1/custom_targeting_key_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"a -GetCustomTargetingKeyRequestA -name ( B3AA- -+admanager.googleapis.com/CustomTargetingKey" -ListCustomTargetingKeysRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA" -ListCustomTargetingKeysResponseJ -custom_targeting_keys ( 2+.google.ads.admanager.v1.CustomTargetingKey -next_page_token (  - -total_size (2 -CustomTargetingKeyService -GetCustomTargetingKey5.google.ads.admanager.v1.GetCustomTargetingKeyRequest+.google.ads.admanager.v1.CustomTargetingKey":Aname-+/v1/{name=networks/*/customTargetingKeys/*} -ListCustomTargetingKeys7.google.ads.admanager.v1.ListCustomTargetingKeysRequest8.google.ads.admanager.v1.ListCustomTargetingKeysResponse"internalAddGeneratedFile( - ' - -=google/ads/admanager/v1/custom_targeting_value_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" -CustomTargetingValue -name ( BA - ad_tag_name ( BA - display_name ( BAt - -match_type (2X.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchTypeBAAg -status (2R.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatusBA:A --admanager.googleapis.com/CustomTargetingValueqnetworks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}*customTargetingValues2customTargetingValueB -com.google.ads.admanager.v1B!CustomTargetingValueMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php deleted file mode 100644 index 298a449dba63..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/CustomTargetingValueService.php +++ /dev/null @@ -1,52 +0,0 @@ -internalAddGeneratedFile( - ' - -internalAddGeneratedFile( - ' - -Aparent/-/v1/{parent=networks/*}/entitySignalsMappings -CreateEntitySignalsMapping:.google.ads.admanager.v1.CreateEntitySignalsMappingRequest-.google.ads.admanager.v1.EntitySignalsMapping"mAparent,entity_signals_mappingG"-/v1/{parent=networks/*}/entitySignalsMappings:entity_signals_mapping -UpdateEntitySignalsMapping:.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest-.google.ads.admanager.v1.EntitySignalsMapping"A"entity_signals_mapping,update_mask^2D/v1/{entity_signals_mapping.name=networks/*/entitySignalsMappings/*}:entity_signals_mapping - BatchCreateEntitySignalsMappings@.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse"VAparent,requests>"9/v1/{parent=networks/*}/entitySignalsMappings:batchCreate:* - BatchUpdateEntitySignalsMappings@.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequestA.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse"VAparent,requests>"9/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate:*Aadmanager.googleapis.comB -com.google.ads.admanager.v1B EntitySignalsMappingServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php deleted file mode 100644 index 8ad405f1742b..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/EnvironmentTypeEnum.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/FrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/FrequencyCap.php deleted file mode 100644 index 336237dec42d..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/FrequencyCap.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php deleted file mode 100644 index cb39f1d87bde..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/LabelMessages.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' - -,google/ads/admanager/v1/label_messages.protogoogle.ads.admanager.v1google/api/resource.proto"v -Label -name ( BA:ZAW -admanager.googleapis.com/Label&networks/{network_code}/labels/{label}*labels2labelB -com.google.ads.admanager.v1BLabelMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php deleted file mode 100644 index b1077ac9a1e9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkMessages.php +++ /dev/null @@ -1,44 +0,0 @@ -internalAddGeneratedFile( - ' - -.google/ads/admanager/v1/network_messages.protogoogle.ads.admanager.v1google/api/resource.proto" -Network -name ( BA - display_name ( BA - network_code ( BA - property_code ( BA - time_zone ( BA - currency_code ( BA% -secondary_currency_codes ( BAG -effective_root_ad_unit ( B\'AA! -admanager.googleapis.com/AdUnit - test_network - (BA - -network_id (BA:QAN - admanager.googleapis.com/Networknetworks/{network_code}*networks2networkB -com.google.ads.admanager.v1BNetworkMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php deleted file mode 100644 index e0016c7a91a0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/NetworkService.php +++ /dev/null @@ -1,42 +0,0 @@ -internalAddGeneratedFile( - ' - --google/ads/admanager/v1/network_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"K -GetNetworkRequest6 -name ( B(AA" - admanager.googleapis.com/Network" -ListNetworksRequest"J -ListNetworksResponse2 -networks ( 2 .google.ads.admanager.v1.Network2 -NetworkService - -GetNetwork*.google.ads.admanager.v1.GetNetworkRequest .google.ads.admanager.v1.Network"$Aname/v1/{name=networks/*} - ListNetworks,.google.ads.admanager.v1.ListNetworksRequest-.google.ads.admanager.v1.ListNetworksResponse" /v1/networksAadmanager.googleapis.comB -com.google.ads.admanager.v1BNetworkServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php deleted file mode 100644 index cf531acbdb7d..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderEnums.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php deleted file mode 100644 index ecf66e125c8f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderMessages.php +++ /dev/null @@ -1,79 +0,0 @@ -internalAddGeneratedFile( - ' - -,google/ads/admanager/v1/order_messages.protogoogle.ads.admanager.v10google/ads/admanager/v1/custom_field_value.proto)google/ads/admanager/v1/order_enums.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/timestamp.proto" -Order -name ( BA -order_id (BA - display_name ( BA - programmatic (BA9 - -trafficker ( B%AA -admanager.googleapis.com/UserE -advertiser_contacts ( B(AA" - admanager.googleapis.com/Contact< - -advertiser ( B(AA" - admanager.googleapis.com/CompanyA -agency_contacts ( B(AA" - admanager.googleapis.com/Contact8 -agency ( B(AA" - admanager.googleapis.com/Company< - applied_teams ( B%AA -admanager.googleapis.com/Team> -effective_teams ( B%AA -admanager.googleapis.com/Team6 -creator - ( B%AA -admanager.googleapis.com/User - currency_code ( BA3 - -start_time ( 2.google.protobuf.TimestampBA1 -end_time ( 2.google.protobuf.TimestampBA -unlimited_end_time- (BA -external_order_id (BA -archived (BA! -last_modified_by_app ( BA4 - update_time ( 2.google.protobuf.TimestampBA -notes ( BA - po_number ( BAI -status (24.google.ads.admanager.v1.OrderStatusEnum.OrderStatusBA: - salesperson ( B%AA -admanager.googleapis.com/UserG -secondary_salespeople ( B(AAA -admanager.googleapis.com/UserG -secondary_traffickers ( B(AAA -admanager.googleapis.com/UserB -applied_labels ( 2%.google.ads.admanager.v1.AppliedLabelBAL -effective_applied_labels ( 2%.google.ads.admanager.v1.AppliedLabelBAK -custom_field_values& ( 2).google.ads.admanager.v1.CustomFieldValueBA:ZAW -admanager.googleapis.com/Order&networks/{network_code}/orders/{order}*orders2orderB -com.google.ads.admanager.v1BOrderMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php deleted file mode 100644 index 669e34b78ab6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/OrderService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' - -+google/ads/admanager/v1/order_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"G -GetOrderRequest4 -name ( B&AA -admanager.googleapis.com/Order" -ListOrdersRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA"q -ListOrdersResponse. -orders ( 2.google.ads.admanager.v1.Order -next_page_token (  - -total_size (2 - OrderService -GetOrder(.google.ads.admanager.v1.GetOrderRequest.google.ads.admanager.v1.Order"-Aname /v1/{name=networks/*/orders/*} - -ListOrders*.google.ads.admanager.v1.ListOrdersRequest+.google.ads.admanager.v1.ListOrdersResponse"/Aparent /v1/{parent=networks/*}/ordersAadmanager.googleapis.comB -com.google.ads.admanager.v1BOrderServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php deleted file mode 100644 index f4f8dbe8af72..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementEnums.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementMessages.php deleted file mode 100644 index 8125e821161b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementMessages.php +++ /dev/null @@ -1,43 +0,0 @@ -internalAddGeneratedFile( - ' - -0google/ads/admanager/v1/placement_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/timestamp.proto" - Placement -name ( BA - placement_id (BA - display_name ( BA - description ( BA -placement_code ( BAQ -status (2<.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatusBAB -targeted_ad_units ( B\'AA! -admanager.googleapis.com/AdUnit4 - update_time ( 2.google.protobuf.TimestampBA:nAk -"admanager.googleapis.com/Placement.networks/{network_code}/placements/{placement}* -placements2 placementB -com.google.ads.admanager.v1BPlacementMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php deleted file mode 100644 index df9341ed0666..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/PlacementService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' - -/google/ads/admanager/v1/placement_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"O -GetPlacementRequest8 -name ( B*AA$ -"admanager.googleapis.com/Placement" -ListPlacementsRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA"} -ListPlacementsResponse6 - -placements ( 2".google.ads.admanager.v1.Placement -next_page_token (  - -total_size (2 -PlacementService - GetPlacement,.google.ads.admanager.v1.GetPlacementRequest".google.ads.admanager.v1.Placement"1Aname$"/v1/{name=networks/*/placements/*} -ListPlacements..google.ads.admanager.v1.ListPlacementsRequest/.google.ads.admanager.v1.ListPlacementsResponse"3Aparent$"/v1/{parent=networks/*}/placementsAadmanager.googleapis.comB -com.google.ads.admanager.v1BPlacementServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php deleted file mode 100644 index a2e593f7314c..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/ReportService.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleEnums.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleEnums.php deleted file mode 100644 index 11570a1ec162..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleEnums.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleMessages.php deleted file mode 100644 index c93340745892..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleMessages.php +++ /dev/null @@ -1,38 +0,0 @@ -internalAddGeneratedFile( - ' - -+google/ads/admanager/v1/role_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" -Role -name ( BA -role_id (BA - display_name ( BA - description ( BA -built_in (BAG -status (22.google.ads.admanager.v1.RoleStatusEnum.RoleStatusBA:UAR -admanager.googleapis.com/Role$networks/{network_code}/roles/{role}*roles2roleB -com.google.ads.admanager.v1BRoleMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php deleted file mode 100644 index 60fc57879f0a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/RoleService.php +++ /dev/null @@ -1,52 +0,0 @@ -internalAddGeneratedFile( - ' - -*google/ads/admanager/v1/role_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E -GetRoleRequest3 -name ( B%AA -admanager.googleapis.com/Role" -ListRolesRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA"n -ListRolesResponse, -roles ( 2.google.ads.admanager.v1.Role -next_page_token (  - -total_size (2 - RoleService -GetRole\'.google.ads.admanager.v1.GetRoleRequest.google.ads.admanager.v1.Role",Aname/v1/{name=networks/*/roles/*} - ListRoles).google.ads.admanager.v1.ListRolesRequest*.google.ads.admanager.v1.ListRolesResponse".Aparent/v1/{parent=networks/*}/rolesAadmanager.googleapis.comB -com.google.ads.admanager.v1BRoleServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php deleted file mode 100644 index 7a1dbd7371ad..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/Size.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' - -"google/ads/admanager/v1/size.protogoogle.ads.admanager.v1google/api/field_behavior.proto"w -Size -width (BA -height (BAF - size_type (2..google.ads.admanager.v1.SizeTypeEnum.SizeTypeBAB -com.google.ads.admanager.v1B SizeProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php deleted file mode 100644 index 5d1476b3ca03..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/SizeTypeEnum.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php deleted file mode 100644 index cf1430b9cbfe..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryMessages.php +++ /dev/null @@ -1,40 +0,0 @@ -internalAddGeneratedFile( - ' - -8google/ads/admanager/v1/taxonomy_category_messages.protogoogle.ads.admanager.v1google/api/field_behavior.protogoogle/api/resource.proto" -TaxonomyCategory -name ( BA! -taxonomy_category_id (BA - display_name ( BA - grouping_only (BA( -parent_taxonomy_category_id (BAR - taxonomy_type (26.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyTypeBA -ancestor_names ( BA+ -ancestor_taxonomy_category_ids (BA:A -)admanager.googleapis.com/TaxonomyCategory>networks/{network_code}/taxonomyCategories/{taxonomy_category}*taxonomyCategories2taxonomyCategoryB -com.google.ads.admanager.v1BTaxonomyCategoryMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryService.php deleted file mode 100644 index a66abbdece9d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyCategoryService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' - - -7google/ads/admanager/v1/taxonomy_category_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"] -GetTaxonomyCategoryRequest? -name ( B1AA+ -)admanager.googleapis.com/TaxonomyCategory" -ListTaxonomyCategoriesRequest8 -parent ( B(AA" - admanager.googleapis.com/Network - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA -skip (BA" -ListTaxonomyCategoriesResponseF -taxonomy_categories ( 2).google.ads.admanager.v1.TaxonomyCategory -next_page_token (  - -total_size (2 -TaxonomyCategoryService -GetTaxonomyCategory3.google.ads.admanager.v1.GetTaxonomyCategoryRequest).google.ads.admanager.v1.TaxonomyCategory"9Aname,*/v1/{name=networks/*/taxonomyCategories/*} -ListTaxonomyCategories6.google.ads.admanager.v1.ListTaxonomyCategoriesRequest7.google.ads.admanager.v1.ListTaxonomyCategoriesResponse";Aparent,*/v1/{parent=networks/*}/taxonomyCategoriesAadmanager.googleapis.comB -com.google.ads.admanager.v1BTaxonomyCategoryServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php deleted file mode 100644 index 21b4cabf0e9c..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TaxonomyTypeEnum.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamMessages.php deleted file mode 100644 index 8789e52f249b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TeamMessages.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' - -+google/ads/admanager/v1/team_messages.protogoogle.ads.admanager.v1google/api/resource.proto" -Team -name ( BA -team_id (BA:UAR -admanager.googleapis.com/Team$networks/{network_code}/teams/{team}*teams2teamB -com.google.ads.admanager.v1BTeamMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TimeUnitEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TimeUnitEnum.php deleted file mode 100644 index d30188fe4251..000000000000 Binary files a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/TimeUnitEnum.php and /dev/null differ diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php deleted file mode 100644 index 13d567f4b1d7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserMessages.php +++ /dev/null @@ -1,42 +0,0 @@ -internalAddGeneratedFile( - ' - -+google/ads/admanager/v1/user_messages.protogoogle.ads.admanager.v1google/api/resource.proto" -User -name ( BA -user_id - (BA - display_name ( BA -email ( BA3 -role ( B%AA -admanager.googleapis.com/Role -active (BA - external_id ( BA -service_account (BA& -orders_ui_local_time_zone ( BA:UAR -admanager.googleapis.com/User$networks/{network_code}/users/{user}*users2userB -com.google.ads.admanager.v1BUserMessagesProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php b/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php deleted file mode 100644 index e1289e617df4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/GPBMetadata/Google/Ads/Admanager/V1/UserService.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' - -*google/ads/admanager/v1/user_service.protogoogle.ads.admanager.v1google/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"E -GetUserRequest3 -name ( B%AA -admanager.googleapis.com/User2 - UserService -GetUser\'.google.ads.admanager.v1.GetUserRequest.google.ads.admanager.v1.User",Aname/v1/{name=networks/*/users/*}Aadmanager.googleapis.comB -com.google.ads.admanager.v1BUserServiceProtoPZ@google.golang.org/genproto/googleapis/ads/admanager/v1;admanagerGoogle.Ads.AdManager.V1Google\\Ads\\AdManager\\V1Google::Ads::AdManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php deleted file mode 100644 index 2db8e2369455..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdManagerError.php +++ /dev/null @@ -1,241 +0,0 @@ -google.ads.admanager.v1.AdManagerError - */ -class AdManagerError extends \Google\Protobuf\Internal\Message -{ - /** - * The unique identifying string for this error. - * - * Generated from protobuf field string error_code = 1; - */ - protected $error_code = ''; - /** - * A publisher appropriate explanation of this error. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * The field path that triggered this error. - * - * Generated from protobuf field string field_path = 3; - */ - protected $field_path = ''; - /** - * The value that triggered this error. - * - * Generated from protobuf field string trigger = 4; - */ - protected $trigger = ''; - /** - * The stack trace that accompanies this error. - * - * Generated from protobuf field string stack_trace = 5; - */ - protected $stack_trace = ''; - /** - * A list of messages that carry any additional error details. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 6; - */ - private $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $error_code - * The unique identifying string for this error. - * @type string $message - * A publisher appropriate explanation of this error. - * @type string $field_path - * The field path that triggered this error. - * @type string $trigger - * The value that triggered this error. - * @type string $stack_trace - * The stack trace that accompanies this error. - * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $details - * A list of messages that carry any additional error details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdmanagerError::initOnce(); - parent::__construct($data); - } - - /** - * The unique identifying string for this error. - * - * Generated from protobuf field string error_code = 1; - * @return string - */ - public function getErrorCode() - { - return $this->error_code; - } - - /** - * The unique identifying string for this error. - * - * Generated from protobuf field string error_code = 1; - * @param string $var - * @return $this - */ - public function setErrorCode($var) - { - GPBUtil::checkString($var, True); - $this->error_code = $var; - - return $this; - } - - /** - * A publisher appropriate explanation of this error. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * A publisher appropriate explanation of this error. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The field path that triggered this error. - * - * Generated from protobuf field string field_path = 3; - * @return string - */ - public function getFieldPath() - { - return $this->field_path; - } - - /** - * The field path that triggered this error. - * - * Generated from protobuf field string field_path = 3; - * @param string $var - * @return $this - */ - public function setFieldPath($var) - { - GPBUtil::checkString($var, True); - $this->field_path = $var; - - return $this; - } - - /** - * The value that triggered this error. - * - * Generated from protobuf field string trigger = 4; - * @return string - */ - public function getTrigger() - { - return $this->trigger; - } - - /** - * The value that triggered this error. - * - * Generated from protobuf field string trigger = 4; - * @param string $var - * @return $this - */ - public function setTrigger($var) - { - GPBUtil::checkString($var, True); - $this->trigger = $var; - - return $this; - } - - /** - * The stack trace that accompanies this error. - * - * Generated from protobuf field string stack_trace = 5; - * @return string - */ - public function getStackTrace() - { - return $this->stack_trace; - } - - /** - * The stack trace that accompanies this error. - * - * Generated from protobuf field string stack_trace = 5; - * @param string $var - * @return $this - */ - public function setStackTrace($var) - { - GPBUtil::checkString($var, True); - $this->stack_trace = $var; - - return $this; - } - - /** - * A list of messages that carry any additional error details. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetails() - { - return $this->details; - } - - /** - * A list of messages that carry any additional error details. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 6; - * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php deleted file mode 100644 index 143f8778cc75..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnit.php +++ /dev/null @@ -1,1049 +0,0 @@ -google.ads.admanager.v1.AdUnit - */ -class AdUnit extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. AdUnit ID. - * - * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ad_unit_id = 0; - /** - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $parent_ad_unit = ''; - /** - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $parent_path; - /** - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * - * Generated from protobuf field string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Immutable. A string used to uniquely identify the ad unit for the purposes - * of serving the ad. This attribute is optional and can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * - * Generated from protobuf field string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_unit_code = ''; - /** - * Output only. The status of this ad unit. It defaults to ACTIVE. - * - * Generated from protobuf field .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * - * Generated from protobuf field .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $applied_target_window = 0; - /** - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * - * Generated from protobuf field .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_target_window = 0; - /** - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $applied_teams; - /** - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $teams; - /** - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * - * Generated from protobuf field bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $explicitly_targeted = false; - /** - * Output only. This field is set to true if the ad unit has any children. - * - * Generated from protobuf field bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $has_children = false; - /** - * Output only. The time this AdUnit was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The sizes that can be served inside this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $ad_unit_sizes; - /** - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * - * Generated from protobuf field string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_set_top_box_channel_id = ''; - /** - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * - * Generated from protobuf field .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $refresh_delay = null; - /** - * Optional. The set of labels applied directly to this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_labels; - /** - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This field is readonly and is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $effective_applied_labels; - /** - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_label_frequency_caps; - /** - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $effective_label_frequency_caps; - /** - * Optional. The smart size mode for this ad unit. This attribute is optional - * and defaults to SmartSizeMode.NONE for fixed sizes. - * - * Generated from protobuf field .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $smart_size_mode = 0; - /** - * Optional. The value of AdSense enabled directly applied to this ad unit. - * This attribute is optional and if not specified this ad unit will inherit - * the value of effectiveAdsenseEnabled from its ancestors. - * - * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $applied_adsense_enabled = null; - /** - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * - * Generated from protobuf field bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_adsense_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * @type int|string $ad_unit_id - * Output only. AdUnit ID. - * @type string $parent_ad_unit - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * @type array<\Google\Ads\AdManager\V1\AdUnitParent>|\Google\Protobuf\Internal\RepeatedField $parent_path - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * @type string $display_name - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * @type string $ad_unit_code - * Immutable. A string used to uniquely identify the ad unit for the purposes - * of serving the ad. This attribute is optional and can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * @type int $status - * Output only. The status of this ad unit. It defaults to ACTIVE. - * @type int $applied_target_window - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * @type int $effective_target_window - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $teams - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * @type string $description - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * @type bool $explicitly_targeted - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * @type bool $has_children - * Output only. This field is set to true if the ad unit has any children. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time this AdUnit was last modified. - * @type array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $ad_unit_sizes - * Optional. The sizes that can be served inside this ad unit. - * @type string $external_set_top_box_channel_id - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * @type \Google\Protobuf\Duration $refresh_delay - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels - * Optional. The set of labels applied directly to this ad unit. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $effective_applied_labels - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This field is readonly and is - * assigned by Google. - * @type array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $applied_label_frequency_caps - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * @type array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $effective_label_frequency_caps - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * @type int $smart_size_mode - * Optional. The smart size mode for this ad unit. This attribute is optional - * and defaults to SmartSizeMode.NONE for fixed sizes. - * @type bool $applied_adsense_enabled - * Optional. The value of AdSense enabled directly applied to this ad unit. - * This attribute is optional and if not specified this ad unit will inherit - * the value of effectiveAdsenseEnabled from its ancestors. - * @type bool $effective_adsense_enabled - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. AdUnit ID. - * - * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getAdUnitId() - { - return $this->ad_unit_id; - } - - /** - * Output only. AdUnit ID. - * - * Generated from protobuf field int64 ad_unit_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setAdUnitId($var) - { - GPBUtil::checkInt64($var); - $this->ad_unit_id = $var; - - return $this; - } - - /** - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getParentAdUnit() - { - return $this->parent_ad_unit; - } - - /** - * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except - * for the root ad unit, which is created by Google. Format: - * "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParentAdUnit($var) - { - GPBUtil::checkString($var, True); - $this->parent_ad_unit = $var; - - return $this; - } - - /** - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParentPath() - { - return $this->parent_path; - } - - /** - * Output only. The path to this AdUnit in the ad unit hierarchy represented - * as a list from the root to this ad unit's parent. For root ad units, this - * list is empty. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitParent parent_path = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\AdUnitParent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParentPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitParent::class); - $this->parent_path = $arr; - - return $this; - } - - /** - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * - * Generated from protobuf field string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the ad unit. Its maximum length is 255 - * characters. - * - * Generated from protobuf field string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Immutable. A string used to uniquely identify the ad unit for the purposes - * of serving the ad. This attribute is optional and can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * - * Generated from protobuf field string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdUnitCode() - { - return $this->ad_unit_code; - } - - /** - * Immutable. A string used to uniquely identify the ad unit for the purposes - * of serving the ad. This attribute is optional and can be set during ad unit - * creation. If it is not provided, it will be assigned by Google based on the - * ad unit ID. - * - * Generated from protobuf field string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdUnitCode($var) - { - GPBUtil::checkString($var, True); - $this->ad_unit_code = $var; - - return $this; - } - - /** - * Output only. The status of this ad unit. It defaults to ACTIVE. - * - * Generated from protobuf field .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The status of this ad unit. It defaults to ACTIVE. - * - * Generated from protobuf field .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\AdUnitStatusEnum\AdUnitStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * - * Generated from protobuf field .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getAppliedTargetWindow() - { - return $this->applied_target_window; - } - - /** - * Optional. The target window directly applied to this AdUnit. - * If this field is not set, this AdUnit uses the target window specified in - * effectiveTargetWindow. - * - * Generated from protobuf field .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setAppliedTargetWindow($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetWindowEnum\TargetWindow::class); - $this->applied_target_window = $var; - - return $this; - } - - /** - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * - * Generated from protobuf field .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEffectiveTargetWindow() - { - return $this->effective_target_window; - } - - /** - * Output only. Non-empty default. The target window of this AdUnit. This - * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit - * in the hierarchy specifies it. - * - * Generated from protobuf field .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEffectiveTargetWindow($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TargetWindowEnum\TargetWindow::class); - $this->effective_target_window = $var; - - return $this; - } - - /** - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedTeams() - { - return $this->applied_teams; - } - - /** - * Optional. The resource names of Teams directly applied to this AdUnit. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->applied_teams = $arr; - - return $this; - } - - /** - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTeams() - { - return $this->teams; - } - - /** - * Output only. The resource names of all Teams that this AdUnit is on as well - * as those inherited from parent AdUnits. Format: - * "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string teams = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->teams = $arr; - - return $this; - } - - /** - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the ad unit. The maximum length is 65,535 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * - * Generated from protobuf field bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExplicitlyTargeted() - { - return $this->explicitly_targeted; - } - - /** - * Optional. If this field is set to true, then the AdUnit will not be - * implicitly targeted when its parent is. Traffickers must explicitly - * target such an AdUnit or else no line items will serve to it. This - * feature is only available for Ad Manager 360 accounts. - * - * Generated from protobuf field bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExplicitlyTargeted($var) - { - GPBUtil::checkBool($var); - $this->explicitly_targeted = $var; - - return $this; - } - - /** - * Output only. This field is set to true if the ad unit has any children. - * - * Generated from protobuf field bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getHasChildren() - { - return $this->has_children; - } - - /** - * Output only. This field is set to true if the ad unit has any children. - * - * Generated from protobuf field bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setHasChildren($var) - { - GPBUtil::checkBool($var); - $this->has_children = $var; - - return $this; - } - - /** - * Output only. The time this AdUnit was last modified. - * - * 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. The time this AdUnit was last modified. - * - * 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; - } - - /** - * Optional. The sizes that can be served inside this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdUnitSizes() - { - return $this->ad_unit_sizes; - } - - /** - * Optional. The sizes that can be served inside this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdUnitSizes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitSize::class); - $this->ad_unit_sizes = $arr; - - return $this; - } - - /** - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * - * Generated from protobuf field string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalSetTopBoxChannelId() - { - return $this->external_set_top_box_channel_id; - } - - /** - * Optional. Determines what set top box video on demand channel this ad unit - * corresponds to in an external set top box ad campaign system. - * - * Generated from protobuf field string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalSetTopBoxChannelId($var) - { - GPBUtil::checkString($var, True); - $this->external_set_top_box_channel_id = $var; - - return $this; - } - - /** - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * - * Generated from protobuf field .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getRefreshDelay() - { - return $this->refresh_delay; - } - - public function hasRefreshDelay() - { - return isset($this->refresh_delay); - } - - public function clearRefreshDelay() - { - unset($this->refresh_delay); - } - - /** - * Optional. The duration after which an Ad Unit will automatically refresh. - * This is only valid for ad units in mobile apps. If not set, the ad unit - * will not refresh. - * - * Generated from protobuf field .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRefreshDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->refresh_delay = $var; - - return $this; - } - - /** - * Optional. The set of labels applied directly to this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabels() - { - return $this->applied_labels; - } - - /** - * Optional. The set of labels applied directly to this ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->applied_labels = $arr; - - return $this; - } - - /** - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This field is readonly and is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveAppliedLabels() - { - return $this->effective_applied_labels; - } - - /** - * Output only. Contains the set of labels applied directly to the ad unit as - * well as those inherited from the parent ad units. If a label has been - * negated, only the negated label is returned. This field is readonly and is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->effective_applied_labels = $arr; - - return $this; - } - - /** - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabelFrequencyCaps() - { - return $this->applied_label_frequency_caps; - } - - /** - * Optional. The set of label frequency caps applied directly to this ad unit. - * There is a limit of 10 label frequency caps per ad unit. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap applied_label_frequency_caps = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabelFrequencyCaps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\LabelFrequencyCap::class); - $this->applied_label_frequency_caps = $arr; - - return $this; - } - - /** - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveLabelFrequencyCaps() - { - return $this->effective_label_frequency_caps; - } - - /** - * Output only. The label frequency caps applied directly to the ad unit as - * well as those inherited from parent ad units. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.LabelFrequencyCap effective_label_frequency_caps = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\LabelFrequencyCap>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveLabelFrequencyCaps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\LabelFrequencyCap::class); - $this->effective_label_frequency_caps = $arr; - - return $this; - } - - /** - * Optional. The smart size mode for this ad unit. This attribute is optional - * and defaults to SmartSizeMode.NONE for fixed sizes. - * - * Generated from protobuf field .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSmartSizeMode() - { - return $this->smart_size_mode; - } - - /** - * Optional. The smart size mode for this ad unit. This attribute is optional - * and defaults to SmartSizeMode.NONE for fixed sizes. - * - * Generated from protobuf field .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSmartSizeMode($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SmartSizeModeEnum\SmartSizeMode::class); - $this->smart_size_mode = $var; - - return $this; - } - - /** - * Optional. The value of AdSense enabled directly applied to this ad unit. - * This attribute is optional and if not specified this ad unit will inherit - * the value of effectiveAdsenseEnabled from its ancestors. - * - * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAppliedAdsenseEnabled() - { - return isset($this->applied_adsense_enabled) ? $this->applied_adsense_enabled : false; - } - - public function hasAppliedAdsenseEnabled() - { - return isset($this->applied_adsense_enabled); - } - - public function clearAppliedAdsenseEnabled() - { - unset($this->applied_adsense_enabled); - } - - /** - * Optional. The value of AdSense enabled directly applied to this ad unit. - * This attribute is optional and if not specified this ad unit will inherit - * the value of effectiveAdsenseEnabled from its ancestors. - * - * Generated from protobuf field optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAppliedAdsenseEnabled($var) - { - GPBUtil::checkBool($var); - $this->applied_adsense_enabled = $var; - - return $this; - } - - /** - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * - * Generated from protobuf field bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getEffectiveAdsenseEnabled() - { - return $this->effective_adsense_enabled; - } - - /** - * Output only. Specifies whether or not the AdUnit is enabled for serving ads - * from the AdSense content network. This attribute defaults to the ad unit's - * parent or ancestor's setting if one has been set. If no ancestor of the ad - * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - * - * Generated from protobuf field bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setEffectiveAdsenseEnabled($var) - { - GPBUtil::checkBool($var); - $this->effective_adsense_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php deleted file mode 100644 index 558682858ed9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitParent.php +++ /dev/null @@ -1,143 +0,0 @@ -google.ads.admanager.v1.AdUnitParent - */ -class AdUnitParent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $parent_ad_unit = ''; - /** - * Output only. The display name of the parent AdUnit. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * - * Generated from protobuf field string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ad_unit_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent_ad_unit - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * @type string $display_name - * Output only. The display name of the parent AdUnit. - * @type string $ad_unit_code - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getParentAdUnit() - { - return $this->parent_ad_unit; - } - - /** - * Output only. The parent of the current AdUnit - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string parent_ad_unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParentAdUnit($var) - { - GPBUtil::checkString($var, True); - $this->parent_ad_unit = $var; - - return $this; - } - - /** - * Output only. The display name of the parent AdUnit. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The display name of the parent AdUnit. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * - * Generated from protobuf field string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdUnitCode() - { - return $this->ad_unit_code; - } - - /** - * Output only. A string used to uniquely identify the ad unit for the - * purposes of serving the ad. - * - * Generated from protobuf field string ad_unit_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdUnitCode($var) - { - GPBUtil::checkString($var, True); - $this->ad_unit_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php deleted file mode 100644 index 43ee5cd761d8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitSize.php +++ /dev/null @@ -1,153 +0,0 @@ -google.ads.admanager.v1.AdUnitSize - */ -class AdUnitSize extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Size of the AdUnit. - * - * Generated from protobuf field .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $size = null; - /** - * Required. The EnvironmentType of the AdUnit - * - * Generated from protobuf field .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $environment_type = 0; - /** - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; - */ - private $companions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Size $size - * Required. The Size of the AdUnit. - * @type int $environment_type - * Required. The EnvironmentType of the AdUnit - * @type array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $companions - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Size of the AdUnit. - * - * Generated from protobuf field .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Size|null - */ - public function getSize() - { - return $this->size; - } - - public function hasSize() - { - return isset($this->size); - } - - public function clearSize() - { - unset($this->size); - } - - /** - * Required. The Size of the AdUnit. - * - * Generated from protobuf field .google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Size $var - * @return $this - */ - public function setSize($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Size::class); - $this->size = $var; - - return $this; - } - - /** - * Required. The EnvironmentType of the AdUnit - * - * Generated from protobuf field .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEnvironmentType() - { - return $this->environment_type; - } - - /** - * Required. The EnvironmentType of the AdUnit - * - * Generated from protobuf field .google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEnvironmentType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\EnvironmentTypeEnum\EnvironmentType::class); - $this->environment_type = $var; - - return $this; - } - - /** - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompanions() - { - return $this->companions; - } - - /** - * The companions for this ad unit size. Companions are only valid if the - * environment is - * [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType]. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Size companions = 3; - * @param array<\Google\Ads\AdManager\V1\Size>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompanions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Size::class); - $this->companions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php deleted file mode 100644 index 0b955366976a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.AdUnitStatusEnum - */ -class AdUnitStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php deleted file mode 100644 index 33bd1c779c3f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AdUnitStatusEnum/AdUnitStatus.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus - */ -class AdUnitStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum AD_UNIT_STATUS_UNSPECIFIED = 0; - */ - const AD_UNIT_STATUS_UNSPECIFIED = 0; - /** - * The ad unit is active, available for targeting, and serving. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The ad unit will be visible in the UI, but ignored by serving. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - /** - * The ad unit will be hidden in the UI and ignored by serving. - * - * Generated from protobuf enum ARCHIVED = 3; - */ - const ARCHIVED = 3; - - private static $valueToName = [ - self::AD_UNIT_STATUS_UNSPECIFIED => 'AD_UNIT_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - self::ARCHIVED => 'ARCHIVED', - ]; - - 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(AdUnitStatus::class, \Google\Ads\AdManager\V1\AdUnitStatusEnum_AdUnitStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php deleted file mode 100644 index 1bb8c2533c8d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/AppliedLabel.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.AppliedLabel - */ -class AppliedLabel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $label = ''; - /** - * Specifies whether or not to negate the effects of the label. - * - * Generated from protobuf field bool negated = 2; - */ - protected $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $label - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * @type bool $negated - * Specifies whether or not to negate the effects of the label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AppliedLabel::initOnce(); - parent::__construct($data); - } - - /** - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Required. The label to be applied. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Specifies whether or not to negate the effects of the label. - * - * Generated from protobuf field bool negated = 2; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Specifies whether or not to negate the effects of the label. - * - * Generated from protobuf field bool negated = 2; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php deleted file mode 100644 index abf061199fc7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest - */ -class BatchCreateEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. Please see - * {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest[] $requests Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * @return \Google\Ads\AdManager\V1\BatchCreateEntitySignalsMappingsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * @type array<\Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * - * 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 `EntitySignalsMappings` will be - * created. Format: `networks/{network_code}` The parent field in the - * CreateEntitySignalsMappingRequest must match this field. - * - * 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 `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The `EntitySignalsMapping` objects to create. - * A maximum of 100 objects can be created in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CreateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php deleted file mode 100644 index 1b346912c6ce..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchCreateEntitySignalsMappingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse - */ -class BatchCreateEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `EntitySignalsMapping` objects created. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - */ - private $entity_signals_mappings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings - * The `EntitySignalsMapping` objects created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * The `EntitySignalsMapping` objects created. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntitySignalsMappings() - { - return $this->entity_signals_mappings; - } - - /** - * The `EntitySignalsMapping` objects created. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntitySignalsMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mappings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php deleted file mode 100644 index 546c88476ab6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest - */ -class BatchUpdateEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. Please see - * {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest[] $requests Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * @return \Google\Ads\AdManager\V1\BatchUpdateEntitySignalsMappingsRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * @type array<\Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * - * 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 `EntitySignalsMappings` will be - * updated. Format: `networks/{network_code}` The parent field in the - * UpdateEntitySignalsMappingRequest must match this field. - * - * 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 `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The `EntitySignalsMapping` objects to update. - * A maximum of 100 objects can be updated in a batch. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateEntitySignalsMappingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php deleted file mode 100644 index 0e3e8a5cff75..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/BatchUpdateEntitySignalsMappingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse - */ -class BatchUpdateEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `EntitySignalsMapping` objects updated. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - */ - private $entity_signals_mappings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings - * The `EntitySignalsMapping` objects updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * The `EntitySignalsMapping` objects updated. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntitySignalsMappings() - { - return $this->entity_signals_mappings; - } - - /** - * The `EntitySignalsMapping` objects updated. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntitySignalsMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mappings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php deleted file mode 100644 index 18b9fe0df27a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Company.php +++ /dev/null @@ -1,649 +0,0 @@ -google.ads.admanager.v1.Company - */ -class Company extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `Company` ID. - * - * Generated from protobuf field int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $company_id = 0; - /** - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The type of the `Company`. - * - * Generated from protobuf field .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field string address = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $address = ''; - /** - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * - * Generated from protobuf field string email = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $email = ''; - /** - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fax = ''; - /** - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $phone = ''; - /** - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_id = ''; - /** - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $comment = ''; - /** - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * - * Generated from protobuf field .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $credit_status = 0; - /** - * Optional. The labels that are directly applied to the `Company`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_labels; - /** - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $primary_contact = null; - /** - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $applied_teams; - /** - * Output only. The time the `Company` was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * - * Generated from protobuf field int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $third_party_company_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * @type int|string $company_id - * Output only. `Company` ID. - * @type string $display_name - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * @type int $type - * Required. The type of the `Company`. - * @type string $address - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * @type string $email - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * @type string $fax - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * @type string $phone - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * @type string $external_id - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * @type string $comment - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * @type int $credit_status - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels - * Optional. The labels that are directly applied to the `Company`. - * @type string $primary_contact - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time the `Company` was last modified. - * @type int|string $third_party_company_id - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Company`. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `Company` ID. - * - * Generated from protobuf field int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCompanyId() - { - return $this->company_id; - } - - /** - * Output only. `Company` ID. - * - * Generated from protobuf field int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCompanyId($var) - { - GPBUtil::checkInt64($var); - $this->company_id = $var; - - return $this; - } - - /** - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the `Company`. - * This value has a maximum length of 127 characters. - * - * 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; - } - - /** - * Required. The type of the `Company`. - * - * Generated from protobuf field .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The type of the `Company`. - * - * Generated from protobuf field .google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CompanyTypeEnum\CompanyType::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field string address = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAddress() - { - return $this->address; - } - - /** - * Optional. The address for the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field string address = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkString($var, True); - $this->address = $var; - - return $this; - } - - /** - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * - * Generated from protobuf field string email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Optional. The email for the `Company`. - * This value has a maximum length of 128 characters. - * - * Generated from protobuf field string email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFax() - { - return $this->fax; - } - - /** - * Optional. The fax number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field string fax = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFax($var) - { - GPBUtil::checkString($var, True); - $this->fax = $var; - - return $this; - } - - /** - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPhone() - { - return $this->phone; - } - - /** - * Optional. The phone number for the `Company`. - * This value has a maximum length of 63 characters. - * - * Generated from protobuf field string phone = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPhone($var) - { - GPBUtil::checkString($var, True); - $this->phone = $var; - - return $this; - } - - /** - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Optional. The external ID for the `Company`. - * This value has a maximum length of 255 characters. - * - * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - - /** - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getComment() - { - return $this->comment; - } - - /** - * Optional. Comments about the `Company`. - * This value has a maximum length of 1024 characters. - * - * Generated from protobuf field string comment = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setComment($var) - { - GPBUtil::checkString($var, True); - $this->comment = $var; - - return $this; - } - - /** - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * - * Generated from protobuf field .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCreditStatus() - { - return $this->credit_status; - } - - /** - * Optional. The credit status of the `Company`. - * This attribute defaults to `ACTIVE` if basic settings are enabled and - * `ON_HOLD` if advance settings are enabled. - * - * Generated from protobuf field .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCreditStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CompanyCreditStatusEnum\CompanyCreditStatus::class); - $this->credit_status = $var; - - return $this; - } - - /** - * Optional. The labels that are directly applied to the `Company`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabels() - { - return $this->applied_labels; - } - - /** - * Optional. The labels that are directly applied to the `Company`. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->applied_labels = $arr; - - return $this; - } - - /** - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getPrimaryContact() - { - return isset($this->primary_contact) ? $this->primary_contact : ''; - } - - public function hasPrimaryContact() - { - return isset($this->primary_contact); - } - - public function clearPrimaryContact() - { - unset($this->primary_contact); - } - - /** - * Optional. The resource names of primary Contact of the `Company`. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setPrimaryContact($var) - { - GPBUtil::checkString($var, True); - $this->primary_contact = $var; - - return $this; - } - - /** - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedTeams() - { - return $this->applied_teams; - } - - /** - * Optional. The resource names of Teams that are directly associated with the - * `Company`. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->applied_teams = $arr; - - return $this; - } - - /** - * Output only. The time the `Company` was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.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. The time the `Company` was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.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; - } - - /** - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * - * Generated from protobuf field int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getThirdPartyCompanyId() - { - return $this->third_party_company_id; - } - - /** - * Optional. The ID of the Google-recognized canonicalized form of the - * `Company`. - * - * Generated from protobuf field int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setThirdPartyCompanyId($var) - { - GPBUtil::checkInt64($var); - $this->third_party_company_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php deleted file mode 100644 index 07995e4a4bcd..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CompanyCreditStatusEnum - */ -class CompanyCreditStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyCreditStatusEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php deleted file mode 100644 index 82f927d12349..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyCreditStatusEnum/CompanyCreditStatus.php +++ /dev/null @@ -1,119 +0,0 @@ -google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus - */ -class CompanyCreditStatus -{ - /** - * No value specified - * - * Generated from protobuf enum COMPANY_CREDIT_STATUS_UNSPECIFIED = 0; - */ - const COMPANY_CREDIT_STATUS_UNSPECIFIED = 0; - /** - * The company's credit status is active. - * Line items belonging to the company can serve. - * This credit status is the default for basic settings and is available in - * both basic and advance settings. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The company's credit status is inactive. - * Line items belonging to the company cannot be activated. However, line - * items that were activated before the credit status changed will remain - * active. New orders or line items belonging to the company cannot be - * created. - * Companies with this credit status will be hidden by default in company - * search results. - * This credit status is available in both basic and advance settings. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - /** - * The company's credit status is on hold. - * Line items belonging to the company cannot be activated. However, line - * items that were activated before the credit status changed will remain - * active. New orders or line items belonging to the company can be - * created. - * This credit status is the default in advance settings and is only - * available in advance settings. - * - * Generated from protobuf enum ON_HOLD = 3; - */ - const ON_HOLD = 3; - /** - * The company's credit status is stopped. - * Line items belonging to the company cannot be activated. However, line - * items that were activated before the credit status changed will remain - * active. New orders or line items belonging to the company cannot be - * created. - * This credit status is only available in advance settings. - * - * Generated from protobuf enum STOP = 4; - */ - const STOP = 4; - /** - * The company's credit status is blocked. - * All active line items belonging to the company will stop serving with - * immediate effect. Line items belonging to the company cannot be - * activated, and new orders or line items belonging to the company cannot - * be created. - * This credit status is only available in advance settings. - * - * Generated from protobuf enum BLOCKED = 5; - */ - const BLOCKED = 5; - - private static $valueToName = [ - self::COMPANY_CREDIT_STATUS_UNSPECIFIED => 'COMPANY_CREDIT_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - self::ON_HOLD => 'ON_HOLD', - self::STOP => 'STOP', - self::BLOCKED => 'BLOCKED', - ]; - - 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(CompanyCreditStatus::class, \Google\Ads\AdManager\V1\CompanyCreditStatusEnum_CompanyCreditStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php deleted file mode 100644 index 3b9ae1d004ae..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CompanyTypeEnum - */ -class CompanyTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php deleted file mode 100644 index 7ff840916165..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CompanyTypeEnum/CompanyType.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.CompanyTypeEnum.CompanyType - */ -class CompanyType -{ - /** - * No value specified - * - * Generated from protobuf enum COMPANY_TYPE_UNSPECIFIED = 0; - */ - const COMPANY_TYPE_UNSPECIFIED = 0; - /** - * A business entity that purchases ad inventory. - * - * Generated from protobuf enum ADVERTISER = 1; - */ - const ADVERTISER = 1; - /** - * A company representing the publisher's own advertiser for house ads. - * - * Generated from protobuf enum HOUSE_ADVERTISER = 2; - */ - const HOUSE_ADVERTISER = 2; - /** - * An organization that manages ad accounts and offers services, such as ad - * creation, placement, and management to advertisers. - * - * Generated from protobuf enum AGENCY = 3; - */ - const AGENCY = 3; - /** - * A company representing the publisher's own agency. - * - * Generated from protobuf enum HOUSE_AGENCY = 4; - */ - const HOUSE_AGENCY = 4; - /** - * A company representing multiple advertisers and agencies. - * - * Generated from protobuf enum AD_NETWORK = 5; - */ - const AD_NETWORK = 5; - - private static $valueToName = [ - self::COMPANY_TYPE_UNSPECIFIED => 'COMPANY_TYPE_UNSPECIFIED', - self::ADVERTISER => 'ADVERTISER', - self::HOUSE_ADVERTISER => 'HOUSE_ADVERTISER', - self::AGENCY => 'AGENCY', - self::HOUSE_AGENCY => 'HOUSE_AGENCY', - self::AD_NETWORK => 'AD_NETWORK', - ]; - - 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(CompanyType::class, \Google\Ads\AdManager\V1\CompanyTypeEnum_CompanyType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php deleted file mode 100644 index 39a061730a07..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Contact.php +++ /dev/null @@ -1,112 +0,0 @@ -google.ads.admanager.v1.Contact - */ -class Contact extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The unique ID of the contact. This value is readonly and is - * assigned by Google. - * - * Generated from protobuf field int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $contact_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * @type int|string $contact_id - * Output only. The unique ID of the contact. This value is readonly and is - * assigned by Google. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ContactMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Contact`. - * Format: `networks/{network_code}/contacts/{contact_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The unique ID of the contact. This value is readonly and is - * assigned by Google. - * - * Generated from protobuf field int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getContactId() - { - return $this->contact_id; - } - - /** - * Output only. The unique ID of the contact. This value is readonly and is - * assigned by Google. - * - * Generated from protobuf field int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setContactId($var) - { - GPBUtil::checkInt64($var); - $this->contact_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php deleted file mode 100644 index 35f125049dec..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateEntitySignalsMappingRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.CreateEntitySignalsMappingRequest - */ -class CreateEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The EntitySignalsMapping object to create. - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_signals_mapping = null; - - /** - * @param string $parent Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * Please see {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping Required. The EntitySignalsMapping object to create. - * - * @return \Google\Ads\AdManager\V1\CreateEntitySignalsMappingRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping): self - { - return (new self()) - ->setParent($parent) - ->setEntitySignalsMapping($entitySignalsMapping); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * @type \Google\Ads\AdManager\V1\EntitySignalsMapping $entity_signals_mapping - * Required. The EntitySignalsMapping object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * - * 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 EntitySignalsMapping will be - * created. Format: `networks/{network_code}` - * - * 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 EntitySignalsMapping object to create. - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\EntitySignalsMapping|null - */ - public function getEntitySignalsMapping() - { - return $this->entity_signals_mapping; - } - - public function hasEntitySignalsMapping() - { - return isset($this->entity_signals_mapping); - } - - public function clearEntitySignalsMapping() - { - unset($this->entity_signals_mapping); - } - - /** - * Required. The EntitySignalsMapping object to create. - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $var - * @return $this - */ - public function setEntitySignalsMapping($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mapping = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php deleted file mode 100644 index 6d466eb38e48..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CreateReportRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.ads.admanager.v1.CreateReportRequest - */ -class CreateReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The `Report` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report = null; - - /** - * @param string $parent Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * Please see {@see ReportServiceClient::networkName()} for help formatting this field. - * @param \Google\Ads\AdManager\V1\Report $report Required. The `Report` to create. - * - * @return \Google\Ads\AdManager\V1\CreateReportRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\AdManager\V1\Report $report): self - { - return (new self()) - ->setParent($parent) - ->setReport($report); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * @type \Google\Ads\AdManager\V1\Report $report - * Required. The `Report` to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this `Report` will be created. - * Format: `networks/{network_code}` - * - * 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 `Report` will be created. - * Format: `networks/{network_code}` - * - * 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 `Report` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report|null - */ - public function getReport() - { - return $this->report; - } - - public function hasReport() - { - return isset($this->report); - } - - public function clearReport() - { - unset($this->report); - } - - /** - * Required. The `Report` to create. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report $var - * @return $this - */ - public function setReport($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report::class); - $this->report = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php deleted file mode 100644 index a309a4d4b326..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomField.php +++ /dev/null @@ -1,355 +0,0 @@ -google.ads.admanager.v1.CustomField - */ -class CustomField extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Unique ID of the CustomField. This value is readonly and is - * assigned by Google. - * - * Generated from protobuf field int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_field_id = 0; - /** - * Required. Name of the CustomField. The max length is 127 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. A description of the custom field. The maximum length is 511 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The status of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Required. The type of entity the `CustomField` can be applied to. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_type = 0; - /** - * Required. The data type of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_type = 0; - /** - * Required. The visibility of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $visibility = 0; - /** - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * @type int|string $custom_field_id - * Output only. Unique ID of the CustomField. This value is readonly and is - * assigned by Google. - * @type string $display_name - * Required. Name of the CustomField. The max length is 127 characters. - * @type string $description - * Optional. A description of the custom field. The maximum length is 511 - * characters. - * @type int $status - * Output only. The status of the `CustomField`. - * @type int $entity_type - * Required. The type of entity the `CustomField` can be applied to. - * @type int $data_type - * Required. The data type of the `CustomField`. - * @type int $visibility - * Required. The visibility of the `CustomField`. - * @type array<\Google\Ads\AdManager\V1\CustomFieldOption>|\Google\Protobuf\Internal\RepeatedField $options - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `CustomField`. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique ID of the CustomField. This value is readonly and is - * assigned by Google. - * - * Generated from protobuf field int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCustomFieldId() - { - return $this->custom_field_id; - } - - /** - * Output only. Unique ID of the CustomField. This value is readonly and is - * assigned by Google. - * - * Generated from protobuf field int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCustomFieldId($var) - { - GPBUtil::checkInt64($var); - $this->custom_field_id = $var; - - return $this; - } - - /** - * Required. Name of the CustomField. The max length is 127 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Name of the CustomField. The max length is 127 characters. - * - * 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. A description of the custom field. The maximum length is 511 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the custom field. The maximum length is 511 - * 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; - } - - /** - * Output only. The status of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The status of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldStatusEnum\CustomFieldStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Required. The type of entity the `CustomField` can be applied to. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEntityType() - { - return $this->entity_type; - } - - /** - * Required. The type of entity the `CustomField` can be applied to. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEntityType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldEntityTypeEnum\CustomFieldEntityType::class); - $this->entity_type = $var; - - return $this; - } - - /** - * Required. The data type of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDataType() - { - return $this->data_type; - } - - /** - * Required. The data type of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDataType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldDataTypeEnum\CustomFieldDataType::class); - $this->data_type = $var; - - return $this; - } - - /** - * Required. The visibility of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getVisibility() - { - return $this->visibility; - } - - /** - * Required. The visibility of the `CustomField`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomFieldVisibilityEnum\CustomFieldVisibility::class); - $this->visibility = $var; - - return $this; - } - - /** - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOptions() - { - return $this->options; - } - - /** - * Optional. The drop-down options for the `CustomField`. - * Only applicable for `CustomField` with the drop-down data type. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldOption options = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\CustomFieldOption>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomFieldOption::class); - $this->options = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php deleted file mode 100644 index a9ef8a168597..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldDataTypeEnum - */ -class CustomFieldDataTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php deleted file mode 100644 index dfb53ccb9f52..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldDataTypeEnum/CustomFieldDataType.php +++ /dev/null @@ -1,79 +0,0 @@ -google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType - */ -class CustomFieldDataType -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED = 0; - /** - * A string field - * The max length is 255 characters. - * - * Generated from protobuf enum STRING = 1; - */ - const STRING = 1; - /** - * A number field. - * - * Generated from protobuf enum NUMBER = 2; - */ - const NUMBER = 2; - /** - * A "Yes" or "No" toggle field. - * - * Generated from protobuf enum TOGGLE = 3; - */ - const TOGGLE = 3; - /** - * A drop-down field. - * - * Generated from protobuf enum DROP_DOWN = 4; - */ - const DROP_DOWN = 4; - - private static $valueToName = [ - self::CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED => 'CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED', - self::STRING => 'STRING', - self::NUMBER => 'NUMBER', - self::TOGGLE => 'TOGGLE', - self::DROP_DOWN => 'DROP_DOWN', - ]; - - 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(CustomFieldDataType::class, \Google\Ads\AdManager\V1\CustomFieldDataTypeEnum_CustomFieldDataType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php deleted file mode 100644 index c37b1c9f4229..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldEntityTypeEnum - */ -class CustomFieldEntityTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php deleted file mode 100644 index aa575dd7ead0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldEntityTypeEnum/CustomFieldEntityType.php +++ /dev/null @@ -1,85 +0,0 @@ -google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType - */ -class CustomFieldEntityType -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED = 0; - /** - * The CustomField is applied to LineItems. - * - * Generated from protobuf enum LINE_ITEM = 1; - */ - const LINE_ITEM = 1; - /** - * The CustomField is applied to Orders. - * - * Generated from protobuf enum ORDER = 2; - */ - const ORDER = 2; - /** - * The CustomField is applied to Creatives. - * - * Generated from protobuf enum CREATIVE = 3; - */ - const CREATIVE = 3; - /** - * The CustomField is applied to Proposals. - * - * Generated from protobuf enum PROPOSAL = 4; - */ - const PROPOSAL = 4; - /** - * The CustomField is applied to ProposalLineItems. - * - * Generated from protobuf enum PROPOSAL_LINE_ITEM = 5; - */ - const PROPOSAL_LINE_ITEM = 5; - - private static $valueToName = [ - self::CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED => 'CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED', - self::LINE_ITEM => 'LINE_ITEM', - self::ORDER => 'ORDER', - self::CREATIVE => 'CREATIVE', - self::PROPOSAL => 'PROPOSAL', - self::PROPOSAL_LINE_ITEM => 'PROPOSAL_LINE_ITEM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomFieldEntityType::class, \Google\Ads\AdManager\V1\CustomFieldEntityTypeEnum_CustomFieldEntityType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php deleted file mode 100644 index bc0f77c34190..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldOption.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.CustomFieldOption - */ -class CustomFieldOption extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. `CustomFieldOption` ID. - * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_field_option_id = 0; - /** - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $custom_field_option_id - * Output only. `CustomFieldOption` ID. - * @type string $display_name - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldMessages::initOnce(); - parent::__construct($data); - } - - /** - * Output only. `CustomFieldOption` ID. - * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCustomFieldOptionId() - { - return $this->custom_field_option_id; - } - - /** - * Output only. `CustomFieldOption` ID. - * - * Generated from protobuf field int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCustomFieldOptionId($var) - { - GPBUtil::checkInt64($var); - $this->custom_field_option_id = $var; - - return $this; - } - - /** - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the `CustomFieldOption`. - * This value has a maximum length of 127 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php deleted file mode 100644 index 0ad861f4eb8f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldStatusEnum - */ -class CustomFieldStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php deleted file mode 100644 index 3100bdce0634..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldStatusEnum/CustomFieldStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus - */ -class CustomFieldStatus -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_STATUS_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_STATUS_UNSPECIFIED = 0; - /** - * The CustomField is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The CustomField is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::CUSTOM_FIELD_STATUS_UNSPECIFIED => 'CUSTOM_FIELD_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - 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(CustomFieldStatus::class, \Google\Ads\AdManager\V1\CustomFieldStatusEnum_CustomFieldStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php deleted file mode 100644 index 9a40b22f768f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue.php +++ /dev/null @@ -1,115 +0,0 @@ -google.ads.admanager.v1.CustomFieldValue - */ -class CustomFieldValue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * - * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $custom_field = ''; - /** - * Required. A typed value representation of the value. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $custom_field - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * @type \Google\Ads\AdManager\V1\CustomFieldValue\Value $value - * Required. A typed value representation of the value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldValue::initOnce(); - parent::__construct($data); - } - - /** - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * - * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getCustomField() - { - return $this->custom_field; - } - - /** - * Required. The custom field for which this is a value. - * Format: "networks/{network_code}/customFields/{custom_field_id}" - * - * Generated from protobuf field string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCustomField($var) - { - GPBUtil::checkString($var, True); - $this->custom_field = $var; - - return $this; - } - - /** - * Required. A typed value representation of the value. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\CustomFieldValue\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Required. A typed value representation of the value. - * - * Generated from protobuf field optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\CustomFieldValue\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CustomFieldValue\Value::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php deleted file mode 100644 index 25e8fcc7fdab..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldValue/Value.php +++ /dev/null @@ -1,178 +0,0 @@ -google.ads.admanager.v1.CustomFieldValue.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $dropdown_value - * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. - * @type string $string_value - * The value, if the CustomFieldDataType is STRING. - * @type float $number_value - * The value, if the CustomFieldDataType is NUMBER. - * @type bool $toggle_value - * The value, if the CustomFieldDataType is TOGGLE. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldValue::initOnce(); - parent::__construct($data); - } - - /** - * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. - * - * Generated from protobuf field int64 dropdown_value = 1; - * @return int|string - */ - public function getDropdownValue() - { - return $this->readOneof(1); - } - - public function hasDropdownValue() - { - return $this->hasOneof(1); - } - - /** - * The custom_field_option_id, if the CustomFieldDataType is DROPDOWN. - * - * Generated from protobuf field int64 dropdown_value = 1; - * @param int|string $var - * @return $this - */ - public function setDropdownValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The value, if the CustomFieldDataType is STRING. - * - * Generated from protobuf field string string_value = 2; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(2); - } - - public function hasStringValue() - { - return $this->hasOneof(2); - } - - /** - * The value, if the CustomFieldDataType is STRING. - * - * Generated from protobuf field string string_value = 2; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The value, if the CustomFieldDataType is NUMBER. - * - * Generated from protobuf field double number_value = 3; - * @return float - */ - public function getNumberValue() - { - return $this->readOneof(3); - } - - public function hasNumberValue() - { - return $this->hasOneof(3); - } - - /** - * The value, if the CustomFieldDataType is NUMBER. - * - * Generated from protobuf field double number_value = 3; - * @param float $var - * @return $this - */ - public function setNumberValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The value, if the CustomFieldDataType is TOGGLE. - * - * Generated from protobuf field bool toggle_value = 4; - * @return bool - */ - public function getToggleValue() - { - return $this->readOneof(4); - } - - public function hasToggleValue() - { - return $this->hasOneof(4); - } - - /** - * The value, if the CustomFieldDataType is TOGGLE. - * - * Generated from protobuf field bool toggle_value = 4; - * @param bool $var - * @return $this - */ - public function setToggleValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Value::class, \Google\Ads\AdManager\V1\CustomFieldValue_Value::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php deleted file mode 100644 index 3b68d3b5e3bb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomFieldVisibilityEnum - */ -class CustomFieldVisibilityEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php deleted file mode 100644 index ab5626373f6f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomFieldVisibilityEnum/CustomFieldVisibility.php +++ /dev/null @@ -1,72 +0,0 @@ -google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility - */ -class CustomFieldVisibility -{ - /** - * No value specified - * - * Generated from protobuf enum CUSTOM_FIELD_VISIBILITY_UNSPECIFIED = 0; - */ - const CUSTOM_FIELD_VISIBILITY_UNSPECIFIED = 0; - /** - * The CustomField is not visible in the UI and only visible through the - * API. - * - * Generated from protobuf enum HIDDEN = 1; - */ - const HIDDEN = 1; - /** - * The CustomField is visible in the UI and only editable through the API. - * - * Generated from protobuf enum READ_ONLY = 2; - */ - const READ_ONLY = 2; - /** - * The CustomField is visible and editable in both the API and UI. - * - * Generated from protobuf enum EDITABLE = 3; - */ - const EDITABLE = 3; - - private static $valueToName = [ - self::CUSTOM_FIELD_VISIBILITY_UNSPECIFIED => 'CUSTOM_FIELD_VISIBILITY_UNSPECIFIED', - self::HIDDEN => 'HIDDEN', - self::READ_ONLY => 'READ_ONLY', - self::EDITABLE => 'EDITABLE', - ]; - - 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(CustomFieldVisibility::class, \Google\Ads\AdManager\V1\CustomFieldVisibilityEnum_CustomFieldVisibility::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php deleted file mode 100644 index c08ea0a5c5f6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKey.php +++ /dev/null @@ -1,295 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKey - */ -class CustomTargetingKey extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `CustomTargetingKey` ID. - * - * Generated from protobuf field int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_targeting_key_id = 0; - /** - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * - * Generated from protobuf field string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_tag_name = ''; - /** - * Optional. Descriptive name for the `CustomTargetingKey`. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Output only. Status of the `CustomTargetingKey`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Required. Reportable state of the `CustomTargetingKey`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reportable_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * @type int|string $custom_targeting_key_id - * Output only. `CustomTargetingKey` ID. - * @type string $ad_tag_name - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * @type string $display_name - * Optional. Descriptive name for the `CustomTargetingKey`. - * @type int $type - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * @type int $status - * Output only. Status of the `CustomTargetingKey`. - * @type int $reportable_type - * Required. Reportable state of the `CustomTargetingKey`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `CustomTargetingKey`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `CustomTargetingKey` ID. - * - * Generated from protobuf field int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCustomTargetingKeyId() - { - return $this->custom_targeting_key_id; - } - - /** - * Output only. `CustomTargetingKey` ID. - * - * Generated from protobuf field int64 custom_targeting_key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCustomTargetingKeyId($var) - { - GPBUtil::checkInt64($var); - $this->custom_targeting_key_id = $var; - - return $this; - } - - /** - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * - * Generated from protobuf field string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdTagName() - { - return $this->ad_tag_name; - } - - /** - * Immutable. Name of the key. Keys can contain up to 10 characters each. You - * can use alphanumeric characters and symbols other than the following: - * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. - * - * Generated from protobuf field string ad_tag_name = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdTagName($var) - { - GPBUtil::checkString($var, True); - $this->ad_tag_name = $var; - - return $this; - } - - /** - * Optional. Descriptive name for the `CustomTargetingKey`. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Descriptive name for the `CustomTargetingKey`. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Indicates whether users will select from predefined values or - * create new targeting values, while specifying targeting criteria for a line - * item. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyTypeEnum\CustomTargetingKeyType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. Status of the `CustomTargetingKey`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. Status of the `CustomTargetingKey`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyStatusEnum\CustomTargetingKeyStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Required. Reportable state of the `CustomTargetingKey`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getReportableType() - { - return $this->reportable_type; - } - - /** - * Required. Reportable state of the `CustomTargetingKey`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType reportable_type = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setReportableType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingKeyReportableTypeEnum\CustomTargetingKeyReportableType::class); - $this->reportable_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php deleted file mode 100644 index b2162fa94cad..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum - */ -class CustomTargetingKeyReportableTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php deleted file mode 100644 index 2b99b0f4dfac..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyReportableTypeEnum/CustomTargetingKeyReportableType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum.CustomTargetingKeyReportableType - */ -class CustomTargetingKeyReportableType -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED = 0; - /** - * Not available for reporting in the Ad Manager query tool. - * - * Generated from protobuf enum OFF = 1; - */ - const OFF = 1; - /** - * Available for reporting in the Ad Manager query tool. - * - * Generated from protobuf enum ON = 2; - */ - const ON = 2; - /** - * Custom dimension available for reporting in the AdManager query tool. - * - * Generated from protobuf enum CUSTOM_DIMENSION = 3; - */ - const CUSTOM_DIMENSION = 3; - - private static $valueToName = [ - self::CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_REPORTABLE_TYPE_UNSPECIFIED', - self::OFF => 'OFF', - self::ON => 'ON', - self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION', - ]; - - 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(CustomTargetingKeyReportableType::class, \Google\Ads\AdManager\V1\CustomTargetingKeyReportableTypeEnum_CustomTargetingKeyReportableType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php deleted file mode 100644 index fa3d998db1df..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyStatusEnum - */ -class CustomTargetingKeyStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php deleted file mode 100644 index fb15ff972000..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyStatusEnum/CustomTargetingKeyStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyStatusEnum.CustomTargetingKeyStatus - */ -class CustomTargetingKeyStatus -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED = 0; - /** - * Custom targeting key is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * Custom targeting key is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - 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(CustomTargetingKeyStatus::class, \Google\Ads\AdManager\V1\CustomTargetingKeyStatusEnum_CustomTargetingKeyStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php deleted file mode 100644 index 5fa9dc725a74..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyTypeEnum - */ -class CustomTargetingKeyTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php deleted file mode 100644 index 014d9fb54424..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingKeyTypeEnum/CustomTargetingKeyType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomTargetingKeyTypeEnum.CustomTargetingKeyType - */ -class CustomTargetingKeyType -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED = 0; - /** - * Key with a fixed set of values. - * - * Generated from protobuf enum PREDEFINED = 1; - */ - const PREDEFINED = 1; - /** - * Key without a fixed set of values - * - * Generated from protobuf enum FREEFORM = 2; - */ - const FREEFORM = 2; - - private static $valueToName = [ - self::CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_KEY_TYPE_UNSPECIFIED', - self::PREDEFINED => 'PREDEFINED', - self::FREEFORM => 'FREEFORM', - ]; - - 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(CustomTargetingKeyType::class, \Google\Ads\AdManager\V1\CustomTargetingKeyTypeEnum_CustomTargetingKeyType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php deleted file mode 100644 index 1e88282d880d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValue.php +++ /dev/null @@ -1,231 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValue - */ -class CustomTargetingValue extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * - * Generated from protobuf field string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_tag_name = ''; - /** - * Optional. Descriptive name for the `CustomTargetingValue`. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Output only. Status of the `CustomTargetingValue`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * @type string $ad_tag_name - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * @type string $display_name - * Optional. Descriptive name for the `CustomTargetingValue`. - * @type int $match_type - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * @type int $status - * Output only. Status of the `CustomTargetingValue`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `CustomTargetingValue`. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * - * Generated from protobuf field string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdTagName() - { - return $this->ad_tag_name; - } - - /** - * Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 - * characters each. You can use alphanumeric characters and symbols other than - * the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are - * not data-specific; all values are treated as strings. For example, instead - * of using "age>=18 AND <=34", try "18-34" - * - * Generated from protobuf field string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdTagName($var) - { - GPBUtil::checkString($var, True); - $this->ad_tag_name = $var; - - return $this; - } - - /** - * Optional. Descriptive name for the `CustomTargetingValue`. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Descriptive name for the `CustomTargetingValue`. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. Immutable. The way in which the CustomTargetingValue.name strings - * will be matched. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingValueMatchTypeEnum\CustomTargetingValueMatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Output only. Status of the `CustomTargetingValue`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. Status of the `CustomTargetingValue`. - * - * Generated from protobuf field .google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CustomTargetingValueStatusEnum\CustomTargetingValueStatus::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php deleted file mode 100644 index 8889014cf2ac..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum - */ -class CustomTargetingValueMatchTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php deleted file mode 100644 index 4393c282fdcb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueMatchTypeEnum/CustomTargetingValueMatchType.php +++ /dev/null @@ -1,113 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType - */ -class CustomTargetingValueMatchType -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED = 0; - /** - * Used for exact matching. For example, the targeting value car=honda will - * only match to the ad request car=honda. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Used for lenient matching when at least one of the words in the ad - * request matches the targeted value. The targeting value car=honda will - * match to ad requests containing the word honda. So ad requests car=honda - * or car=honda civic or car=buy honda or car=how much does a honda cost - * will all have the line item delivered. - * This match type can not be used within an audience segment rule. - * - * Generated from protobuf enum BROAD = 2; - */ - const BROAD = 2; - /** - * Used for 'starts with' matching when the first few characters in the ad - * request match all of the characters in the targeted value. The targeting - * value car=honda will match to ad requests car=honda or car=hondas for - * sale but not to car=I want a honda. - * - * Generated from protobuf enum PREFIX = 3; - */ - const PREFIX = 3; - /** - * This is a combination of MatchType#BROAD and MatchType#PREFIX matching. - * The targeting value car=honda will match to ad requests that contain - * words that start with the characters in the targeted value, for example - * with car=civic hondas. - * This match type can not be used within an audience segment rule. - * - * Generated from protobuf enum BROAD_PREFIX = 4; - */ - const BROAD_PREFIX = 4; - /** - * Used for 'ends with' matching when the last characters in the ad request - * match all of the characters in the targeted value. The targeting value - * car=honda will match with ad requests car=honda or car=I want a honda but - * not to car=hondas for sale. - * This match type can not be used within line item targeting. - * - * Generated from protobuf enum SUFFIX = 5; - */ - const SUFFIX = 5; - /** - * Used for 'within' matching when the string in the ad request contains the - * string in the targeted value. The targeting value car=honda will match - * with ad requests car=honda, car=I want a honda, and also with car=hondas - * for sale, but not with car=misspelled hond a. This match type can not be - * used within line item targeting. - * - * Generated from protobuf enum CONTAINS = 6; - */ - const CONTAINS = 6; - - private static $valueToName = [ - self::CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED => 'CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BROAD => 'BROAD', - self::PREFIX => 'PREFIX', - self::BROAD_PREFIX => 'BROAD_PREFIX', - self::SUFFIX => 'SUFFIX', - self::CONTAINS => 'CONTAINS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomTargetingValueMatchType::class, \Google\Ads\AdManager\V1\CustomTargetingValueMatchTypeEnum_CustomTargetingValueMatchType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php deleted file mode 100644 index 43c17351d951..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueStatusEnum - */ -class CustomTargetingValueStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php deleted file mode 100644 index 90f6956737e0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/CustomTargetingValueStatusEnum/CustomTargetingValueStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus - */ -class CustomTargetingValueStatus -{ - /** - * Not specified value. - * - * Generated from protobuf enum CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED = 0; - */ - const CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED = 0; - /** - * Custom targeting value is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * Custom targeting value is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED => 'CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - 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(CustomTargetingValueStatus::class, \Google\Ads\AdManager\V1\CustomTargetingValueStatusEnum_CustomTargetingValueStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php deleted file mode 100644 index 19526df8672e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EntitySignalsMapping.php +++ /dev/null @@ -1,255 +0,0 @@ -google.ads.admanager.v1.EntitySignalsMapping - */ -class EntitySignalsMapping extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `EntitySignalsMapping` ID. - * - * Generated from protobuf field int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $entity_signals_mapping_id = 0; - /** - * Required. The IDs of the categories that are associated with the - * referencing entity. - * - * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - private $taxonomy_category_ids; - protected $entity; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $audience_segment_id - * ID of an AudienceSegment that this mapping belongs to. - * @type int|string $content_bundle_id - * ID of a ContentBundle that this mapping belongs to. - * @type int|string $custom_targeting_value_id - * ID of a CustomValue that this mapping belongs to. - * @type string $name - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * @type int|string $entity_signals_mapping_id - * Output only. `EntitySignalsMapping` ID. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $taxonomy_category_ids - * Required. The IDs of the categories that are associated with the - * referencing entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingMessages::initOnce(); - parent::__construct($data); - } - - /** - * ID of an AudienceSegment that this mapping belongs to. - * - * Generated from protobuf field int64 audience_segment_id = 3; - * @return int|string - */ - public function getAudienceSegmentId() - { - return $this->readOneof(3); - } - - public function hasAudienceSegmentId() - { - return $this->hasOneof(3); - } - - /** - * ID of an AudienceSegment that this mapping belongs to. - * - * Generated from protobuf field int64 audience_segment_id = 3; - * @param int|string $var - * @return $this - */ - public function setAudienceSegmentId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * ID of a ContentBundle that this mapping belongs to. - * - * Generated from protobuf field int64 content_bundle_id = 4; - * @return int|string - */ - public function getContentBundleId() - { - return $this->readOneof(4); - } - - public function hasContentBundleId() - { - return $this->hasOneof(4); - } - - /** - * ID of a ContentBundle that this mapping belongs to. - * - * Generated from protobuf field int64 content_bundle_id = 4; - * @param int|string $var - * @return $this - */ - public function setContentBundleId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * ID of a CustomValue that this mapping belongs to. - * - * Generated from protobuf field int64 custom_targeting_value_id = 5; - * @return int|string - */ - public function getCustomTargetingValueId() - { - return $this->readOneof(5); - } - - public function hasCustomTargetingValueId() - { - return $this->hasOneof(5); - } - - /** - * ID of a CustomValue that this mapping belongs to. - * - * Generated from protobuf field int64 custom_targeting_value_id = 5; - * @param int|string $var - * @return $this - */ - public function setCustomTargetingValueId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `EntitySignalsMapping`. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `EntitySignalsMapping` ID. - * - * Generated from protobuf field int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getEntitySignalsMappingId() - { - return $this->entity_signals_mapping_id; - } - - /** - * Output only. `EntitySignalsMapping` ID. - * - * Generated from protobuf field int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setEntitySignalsMappingId($var) - { - GPBUtil::checkInt64($var); - $this->entity_signals_mapping_id = $var; - - return $this; - } - - /** - * Required. The IDs of the categories that are associated with the - * referencing entity. - * - * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaxonomyCategoryIds() - { - return $this->taxonomy_category_ids; - } - - /** - * Required. The IDs of the categories that are associated with the - * referencing entity. - * - * Generated from protobuf field repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaxonomyCategoryIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->taxonomy_category_ids = $arr; - - return $this; - } - - /** - * @return string - */ - public function getEntity() - { - return $this->whichOneof("entity"); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php deleted file mode 100644 index eb19e59df821..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.EnvironmentTypeEnum - */ -class EnvironmentTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EnvironmentTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php deleted file mode 100644 index 4454399e1eb3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/EnvironmentTypeEnum/EnvironmentType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType - */ -class EnvironmentType -{ - /** - * No value specified - * - * Generated from protobuf enum ENVIRONMENT_TYPE_UNSPECIFIED = 0; - */ - const ENVIRONMENT_TYPE_UNSPECIFIED = 0; - /** - * A regular web browser. - * - * Generated from protobuf enum BROWSER = 1; - */ - const BROWSER = 1; - /** - * Video players. - * - * Generated from protobuf enum VIDEO_PLAYER = 2; - */ - const VIDEO_PLAYER = 2; - - private static $valueToName = [ - self::ENVIRONMENT_TYPE_UNSPECIFIED => 'ENVIRONMENT_TYPE_UNSPECIFIED', - self::BROWSER => 'BROWSER', - self::VIDEO_PLAYER => 'VIDEO_PLAYER', - ]; - - 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(EnvironmentType::class, \Google\Ads\AdManager\V1\EnvironmentTypeEnum_EnvironmentType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php deleted file mode 100644 index c12d3c16d43d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.ads.admanager.v1.FetchReportResultRowsRequest - */ -class FetchReportResultRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $name The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * @return \Google\Ads\AdManager\V1\FetchReportResultRowsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * @type int $page_size - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. - * @type string $page_token - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The report result being fetched. - * Format: - * `networks/{network_code}/reports/{report_id}/results/{report_result_id}` - * - * 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; - } - - /** - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of rows to return. The service may return - * fewer than this value. If unspecified, at most 1,000 rows will be returned. - * The maximum value is 10,000; values above 10,000 will be reduced to 10,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `FetchReportResultRows` - * call. Provide this to retrieve the second and subsequent batches of rows. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php deleted file mode 100644 index 74a9f55c6b63..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FetchReportResultRowsResponse.php +++ /dev/null @@ -1,283 +0,0 @@ -google.ads.admanager.v1.FetchReportResultRowsResponse - */ -class FetchReportResultRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Up to `page_size` rows of report data. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; - */ - private $rows; - /** - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * - * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; - */ - protected $run_time = null; - /** - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; - */ - private $date_ranges; - /** - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; - */ - private $comparison_date_ranges; - /** - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field int32 total_row_count = 5; - */ - protected $total_row_count = 0; - /** - * A token that 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 = 6; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Report\DataTable\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Up to `page_size` rows of report data. - * @type \Google\Protobuf\Timestamp $run_time - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * @type array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * @type array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $comparison_date_ranges - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * @type int $total_row_count - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * @type string $next_page_token - * A token that 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\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Up to `page_size` rows of report data. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Up to `page_size` rows of report data. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.Row rows = 1; - * @param array<\Google\Ads\AdManager\V1\Report\DataTable\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\DataTable\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * - * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRunTime() - { - return $this->run_time; - } - - public function hasRunTime() - { - return isset($this->run_time); - } - - public function clearRunTime() - { - unset($this->run_time); - } - - /** - * The time at which the report was scheduled to run. For non-scheduled - * reports, this is the time at which the report was requested to be run. - * - * Generated from protobuf field .google.protobuf.Timestamp run_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRunTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->run_time = $var; - - return $this; - } - - /** - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * The computed fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange date_ranges = 3; - * @param array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComparisonDateRanges() - { - return $this->comparison_date_ranges; - } - - /** - * The computed comparison fixed date ranges this report includes. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DateRange.FixedDateRange comparison_date_ranges = 4; - * @param array<\Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComparisonDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange::class); - $this->comparison_date_ranges = $arr; - - return $this; - } - - /** - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field int32 total_row_count = 5; - * @return int - */ - public function getTotalRowCount() - { - return $this->total_row_count; - } - - /** - * The total number of rows available from this report. Useful for - * pagination. - * Only returned with the first page of results (when page_token is not - * included in the request). - * - * Generated from protobuf field int32 total_row_count = 5; - * @param int $var - * @return $this - */ - public function setTotalRowCount($var) - { - GPBUtil::checkInt32($var); - $this->total_row_count = $var; - - return $this; - } - - /** - * A token that 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 = 6; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that 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 = 6; - * @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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php deleted file mode 100644 index 168ab1cb5f0c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/FrequencyCap.php +++ /dev/null @@ -1,165 +0,0 @@ -google.ads.admanager.v1.FrequencyCap - */ -class FrequencyCap extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of impressions for this frequency cap. - * - * Generated from protobuf field optional int64 max_impressions = 1; - */ - protected $max_impressions = null; - /** - * The number of time units over which the frequency cap is effective. - * - * Generated from protobuf field optional int64 time_amount = 2; - */ - protected $time_amount = null; - /** - * The units of time of this frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; - */ - protected $time_unit = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_impressions - * The maximum number of impressions for this frequency cap. - * @type int|string $time_amount - * The number of time units over which the frequency cap is effective. - * @type int $time_unit - * The units of time of this frequency cap. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\FrequencyCap::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of impressions for this frequency cap. - * - * Generated from protobuf field optional int64 max_impressions = 1; - * @return int|string - */ - public function getMaxImpressions() - { - return isset($this->max_impressions) ? $this->max_impressions : 0; - } - - public function hasMaxImpressions() - { - return isset($this->max_impressions); - } - - public function clearMaxImpressions() - { - unset($this->max_impressions); - } - - /** - * The maximum number of impressions for this frequency cap. - * - * Generated from protobuf field optional int64 max_impressions = 1; - * @param int|string $var - * @return $this - */ - public function setMaxImpressions($var) - { - GPBUtil::checkInt64($var); - $this->max_impressions = $var; - - return $this; - } - - /** - * The number of time units over which the frequency cap is effective. - * - * Generated from protobuf field optional int64 time_amount = 2; - * @return int|string - */ - public function getTimeAmount() - { - return isset($this->time_amount) ? $this->time_amount : 0; - } - - public function hasTimeAmount() - { - return isset($this->time_amount); - } - - public function clearTimeAmount() - { - unset($this->time_amount); - } - - /** - * The number of time units over which the frequency cap is effective. - * - * Generated from protobuf field optional int64 time_amount = 2; - * @param int|string $var - * @return $this - */ - public function setTimeAmount($var) - { - GPBUtil::checkInt64($var); - $this->time_amount = $var; - - return $this; - } - - /** - * The units of time of this frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; - * @return int - */ - public function getTimeUnit() - { - return isset($this->time_unit) ? $this->time_unit : 0; - } - - public function hasTimeUnit() - { - return isset($this->time_unit); - } - - public function clearTimeUnit() - { - unset($this->time_unit); - } - - /** - * The units of time of this frequency cap. - * - * Generated from protobuf field optional .google.ads.admanager.v1.TimeUnitEnum.TimeUnit time_unit = 3; - * @param int $var - * @return $this - */ - public function setTimeUnit($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TimeUnitEnum\TimeUnit::class); - $this->time_unit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php deleted file mode 100644 index a359f1d3acaf..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetAdUnitRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetAdUnitRequest - */ -class GetAdUnitRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * Please see {@see AdUnitServiceClient::adUnitName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetAdUnitRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * 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 AdUnit. - * Format: `networks/{network_code}/adUnits/{ad_unit_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php deleted file mode 100644 index 6fe5c202376a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCompanyRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetCompanyRequest - */ -class GetCompanyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * Please see {@see CompanyServiceClient::companyName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCompanyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Company. - * Format: `networks/{network_code}/companies/{company_id}` - * - * 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 Company. - * Format: `networks/{network_code}/companies/{company_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php deleted file mode 100644 index 493ec5fcc0d9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomFieldRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetCustomFieldRequest - */ -class GetCustomFieldRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * Please see {@see CustomFieldServiceClient::customFieldName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCustomFieldRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * 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 CustomField. - * Format: `networks/{network_code}/customFields/{custom_field_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php deleted file mode 100644 index 9499837ddb77..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingKeyRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetCustomTargetingKeyRequest - */ -class GetCustomTargetingKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * Please see {@see CustomTargetingKeyServiceClient::customTargetingKeyName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCustomTargetingKeyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * 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 CustomTargetingKey. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php deleted file mode 100644 index e87b9ad62c0e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetCustomTargetingValueRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetCustomTargetingValueRequest - */ -class GetCustomTargetingValueRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * Please see {@see CustomTargetingValueServiceClient::customTargetingValueName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetCustomTargetingValueRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * - * 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 CustomTargetingValue. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php deleted file mode 100644 index f0b13fadda72..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetEntitySignalsMappingRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.ads.admanager.v1.GetEntitySignalsMappingRequest - */ -class GetEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * Please see {@see EntitySignalsMappingServiceClient::entitySignalsMappingName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetEntitySignalsMappingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * 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 EntitySignalsMapping. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php deleted file mode 100644 index f091d5459079..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetNetworkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetNetworkRequest - */ -class GetNetworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of Network. - * Format: networks/{network_code} - * Please see {@see NetworkServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetNetworkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of Network. - * Format: networks/{network_code} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of Network. - * Format: networks/{network_code} - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php deleted file mode 100644 index b2ad956f8023..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetOrderRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetOrderRequest - */ -class GetOrderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * Please see {@see OrderServiceClient::orderName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetOrderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Order. - * Format: `networks/{network_code}/orders/{order_id}` - * - * 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 Order. - * Format: `networks/{network_code}/orders/{order_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php deleted file mode 100644 index dc0b6f37f542..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetPlacementRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetPlacementRequest - */ -class GetPlacementRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * Please see {@see PlacementServiceClient::placementName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetPlacementRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * 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 Placement. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php deleted file mode 100644 index 796bc7046179..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetReportRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetReportRequest - */ -class GetReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * Please see {@see ReportServiceClient::reportName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetReportRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the report. - * Format: `networks/{network_code}/reports/{report_id}` - * - * 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 report. - * Format: `networks/{network_code}/reports/{report_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php deleted file mode 100644 index 5b5ef57b0bc8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetRoleRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetRoleRequest - */ -class GetRoleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * Please see {@see RoleServiceClient::roleName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetRoleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Role. - * Format: `networks/{network_code}/roles/{role_id}` - * - * 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 Role. - * Format: `networks/{network_code}/roles/{role_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php deleted file mode 100644 index b0e943d63698..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetTaxonomyCategoryRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetTaxonomyCategoryRequest - */ -class GetTaxonomyCategoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * Please see {@see TaxonomyCategoryServiceClient::taxonomyCategoryName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetTaxonomyCategoryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * 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 TaxonomyCategory. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php deleted file mode 100644 index 602f87ff62d3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/GetUserRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.GetUserRequest - */ -class GetUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * Please see {@see UserServiceClient::userName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\GetUserRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\UserService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * 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 User. - * Format: `networks/{network_code}/users/{user_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php deleted file mode 100644 index 246b02a2b2c7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Label.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.Label - */ -class Label extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\LabelMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Label`. - * Format: `networks/{network_code}/labels/{label_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php deleted file mode 100644 index 114c8b3e3776..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/LabelFrequencyCap.php +++ /dev/null @@ -1,115 +0,0 @@ -google.ads.admanager.v1.LabelFrequencyCap - */ -class LabelFrequencyCap extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $label = ''; - /** - * The frequency cap. - * - * Generated from protobuf field .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; - */ - protected $frequency_cap = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $label - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * @type \Google\Ads\AdManager\V1\FrequencyCap $frequency_cap - * The frequency cap. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitMessages::initOnce(); - parent::__construct($data); - } - - /** - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Required. The label to used for frequency capping. - * Format: "networks/{network_code}/labels/{label_id}" - * - * Generated from protobuf field string label = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * The frequency cap. - * - * Generated from protobuf field .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; - * @return \Google\Ads\AdManager\V1\FrequencyCap|null - */ - public function getFrequencyCap() - { - return $this->frequency_cap; - } - - public function hasFrequencyCap() - { - return isset($this->frequency_cap); - } - - public function clearFrequencyCap() - { - unset($this->frequency_cap); - } - - /** - * The frequency cap. - * - * Generated from protobuf field .google.ads.admanager.v1.FrequencyCap frequency_cap = 2; - * @param \Google\Ads\AdManager\V1\FrequencyCap $var - * @return $this - */ - public function setFrequencyCap($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\FrequencyCap::class); - $this->frequency_cap = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php deleted file mode 100644 index 14020cd4f7ef..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListAdUnitSizesRequest - */ -class ListAdUnitSizesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * Please see {@see AdUnitServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListAdUnitSizesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of AdUnitSizes. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of AdUnitSizes to return. The service may - * return fewer than this value. If unspecified, at most 50 ad unit sizes will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAdUnitSizes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnitSizes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php deleted file mode 100644 index c9b275f95ca0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitSizesResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -google.ads.admanager.v1.ListAdUnitSizesResponse - */ -class ListAdUnitSizesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The AdUnitSizes from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; - */ - private $ad_unit_sizes; - /** - * 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 = ''; - /** - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $ad_unit_sizes - * The AdUnitSizes from the specified network. - * @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. - * @type int $total_size - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * The AdUnitSizes from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdUnitSizes() - { - return $this->ad_unit_sizes; - } - - /** - * The AdUnitSizes from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnitSize ad_unit_sizes = 1; - * @param array<\Google\Ads\AdManager\V1\AdUnitSize>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdUnitSizes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnitSize::class); - $this->ad_unit_sizes = $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; - } - - /** - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of AdUnitSizes. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php deleted file mode 100644 index a026663a9637..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListAdUnitsRequest - */ -class ListAdUnitsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * Please see {@see AdUnitServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListAdUnitsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of AdUnits. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of AdUnits to return. The service may return - * fewer than this value. If unspecified, at most 50 ad units will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAdUnits` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdUnits` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php deleted file mode 100644 index 455e35caede7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListAdUnitsResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -google.ads.admanager.v1.ListAdUnitsResponse - */ -class ListAdUnitsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The AdUnit from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; - */ - private $ad_units; - /** - * 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 = ''; - /** - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\AdUnit>|\Google\Protobuf\Internal\RepeatedField $ad_units - * The AdUnit from the specified network. - * @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. - * @type int $total_size - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitService::initOnce(); - parent::__construct($data); - } - - /** - * The AdUnit from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdUnits() - { - return $this->ad_units; - } - - /** - * The AdUnit from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AdUnit ad_units = 1; - * @param array<\Google\Ads\AdManager\V1\AdUnit>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdUnits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AdUnit::class); - $this->ad_units = $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; - } - - /** - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of AdUnits. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php deleted file mode 100644 index 92854e1e909c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListCompaniesRequest - */ -class ListCompaniesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * Please see {@see CompanyServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCompaniesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Companies. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of Companies. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCompanies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php deleted file mode 100644 index 2dc511fcdc1e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCompaniesResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCompaniesResponse - */ -class ListCompaniesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Company` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; - */ - private $companies; - /** - * 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 = ''; - /** - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Company>|\Google\Protobuf\Internal\RepeatedField $companies - * The `Company` objects from the specified network. - * @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. - * @type int $total_size - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); - parent::__construct($data); - } - - /** - * The `Company` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompanies() - { - return $this->companies; - } - - /** - * The `Company` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; - * @param array<\Google\Ads\AdManager\V1\Company>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompanies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Company::class); - $this->companies = $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; - } - - /** - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Company` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php deleted file mode 100644 index 503b26124a12..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListCustomFieldsRequest - */ -class ListCustomFieldsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * Please see {@see CustomFieldServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCustomFieldsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of CustomFields. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `CustomFields` to return. The service may - * return fewer than this value. If unspecified, at most 50 `CustomFields` - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCustomFields` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomFields` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php deleted file mode 100644 index 0309c4dbb01a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomFieldsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCustomFieldsResponse - */ -class ListCustomFieldsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `CustomField` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; - */ - private $custom_fields; - /** - * 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 = ''; - /** - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $custom_fields - * The `CustomField` objects from the specified network. - * @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. - * @type int $total_size - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldService::initOnce(); - parent::__construct($data); - } - - /** - * The `CustomField` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomFields() - { - return $this->custom_fields; - } - - /** - * The `CustomField` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomField custom_fields = 1; - * @param array<\Google\Ads\AdManager\V1\CustomField>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomField::class); - $this->custom_fields = $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; - } - - /** - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `CustomField` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php deleted file mode 100644 index bf474f6a2a8f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingKeysRequest - */ -class ListCustomTargetingKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * Please see {@see CustomTargetingKeyServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCustomTargetingKeysRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of CustomTargetingKeys. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `CustomTargetingKeys` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingKeys` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCustomTargetingKeys` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomTargetingKeys` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php deleted file mode 100644 index 891f1e3aff20..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingKeysResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingKeysResponse - */ -class ListCustomTargetingKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `CustomTargetingKey` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; - */ - private $custom_targeting_keys; - /** - * 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 = ''; - /** - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomTargetingKey>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_keys - * The `CustomTargetingKey` objects from the specified network. - * @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. - * @type int $total_size - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingKeyService::initOnce(); - parent::__construct($data); - } - - /** - * The `CustomTargetingKey` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetingKeys() - { - return $this->custom_targeting_keys; - } - - /** - * The `CustomTargetingKey` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; - * @param array<\Google\Ads\AdManager\V1\CustomTargetingKey>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetingKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingKey::class); - $this->custom_targeting_keys = $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; - } - - /** - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `CustomTargetingKey` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php deleted file mode 100644 index 8c2c089c1da0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesRequest.php +++ /dev/null @@ -1,309 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingValuesRequest - */ -class ListCustomTargetingValuesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * Please see {@see CustomTargetingValueServiceClient::customTargetingKeyName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListCustomTargetingValuesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * @type int $page_size - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * 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, which owns this collection of CustomTargetingValues. - * Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `CustomTargetingValues` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetingValues` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListCustomTargetingValues` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListCustomTargetingValues` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php deleted file mode 100644 index e1711c0af28f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListCustomTargetingValuesResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListCustomTargetingValuesResponse - */ -class ListCustomTargetingValuesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `CustomTargetingValue` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; - */ - private $custom_targeting_values; - /** - * 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 = ''; - /** - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\CustomTargetingValue>|\Google\Protobuf\Internal\RepeatedField $custom_targeting_values - * The `CustomTargetingValue` objects from the specified network. - * @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. - * @type int $total_size - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\CustomTargetingValueService::initOnce(); - parent::__construct($data); - } - - /** - * The `CustomTargetingValue` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetingValues() - { - return $this->custom_targeting_values; - } - - /** - * The `CustomTargetingValue` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomTargetingValue custom_targeting_values = 1; - * @param array<\Google\Ads\AdManager\V1\CustomTargetingValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetingValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomTargetingValue::class); - $this->custom_targeting_values = $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; - } - - /** - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `CustomTargetingValue` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php deleted file mode 100644 index a4a2945b87fe..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.ads.admanager.v1.ListEntitySignalsMappingsRequest - */ -class ListEntitySignalsMappingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * Please see {@see EntitySignalsMappingServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListEntitySignalsMappingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of EntitySignalsMappings. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `EntitySignalsMappings` to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `EntitySignalsMappings` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListEntitySignalsMappings` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListEntitySignalsMappings` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php deleted file mode 100644 index 9cd5bb39eea0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListEntitySignalsMappingsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListEntitySignalsMappingsResponse - */ -class ListEntitySignalsMappingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `EntitySignalsMapping` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - */ - private $entity_signals_mappings; - /** - * 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 = ''; - /** - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $entity_signals_mappings - * The `EntitySignalsMapping` from the specified network. - * @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. - * @type int $total_size - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * The `EntitySignalsMapping` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntitySignalsMappings() - { - return $this->entity_signals_mappings; - } - - /** - * The `EntitySignalsMapping` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mappings = 1; - * @param array<\Google\Ads\AdManager\V1\EntitySignalsMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntitySignalsMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mappings = $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; - } - - /** - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `EntitySignalsMappings`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php deleted file mode 100644 index 533cdfe2486e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksRequest.php +++ /dev/null @@ -1,33 +0,0 @@ -google.ads.admanager.v1.ListNetworksRequest - */ -class ListNetworksRequest extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php deleted file mode 100644 index 0e19406e6bf5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListNetworksResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.ListNetworksResponse - */ -class ListNetworksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Network`s a user has access to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; - */ - private $networks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Network>|\Google\Protobuf\Internal\RepeatedField $networks - * The `Network`s a user has access to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkService::initOnce(); - parent::__construct($data); - } - - /** - * The `Network`s a user has access to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworks() - { - return $this->networks; - } - - /** - * The `Network`s a user has access to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Network networks = 1; - * @param array<\Google\Ads\AdManager\V1\Network>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Network::class); - $this->networks = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php deleted file mode 100644 index 3aad5cd01b81..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListOrdersRequest - */ -class ListOrdersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * Please see {@see OrderServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListOrdersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Orders. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of Orders. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Orders` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Orders` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListOrders` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListOrders` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php deleted file mode 100644 index d8f3a73eeeee..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListOrdersResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListOrdersResponse - */ -class ListOrdersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Order` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; - */ - private $orders; - /** - * 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 = ''; - /** - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Order>|\Google\Protobuf\Internal\RepeatedField $orders - * The `Order` from the specified network. - * @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. - * @type int $total_size - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderService::initOnce(); - parent::__construct($data); - } - - /** - * The `Order` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrders() - { - return $this->orders; - } - - /** - * The `Order` from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Order orders = 1; - * @param array<\Google\Ads\AdManager\V1\Order>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Order::class); - $this->orders = $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; - } - - /** - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Orders`. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php deleted file mode 100644 index 0c728e44c3de..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListPlacementsRequest - */ -class ListPlacementsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * Please see {@see PlacementServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListPlacementsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Placements. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of Placements. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Placements` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Placements` will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListPlacements` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListPlacements` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php deleted file mode 100644 index 0d509198484e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListPlacementsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListPlacementsResponse - */ -class ListPlacementsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Placement` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; - */ - private $placements; - /** - * 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 = ''; - /** - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $placements - * The `Placement` objects from the specified network. - * @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. - * @type int $total_size - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementService::initOnce(); - parent::__construct($data); - } - - /** - * The `Placement` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPlacements() - { - return $this->placements; - } - - /** - * The `Placement` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Placement placements = 1; - * @param array<\Google\Ads\AdManager\V1\Placement>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPlacements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Placement::class); - $this->placements = $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; - } - - /** - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Placement` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php deleted file mode 100644 index 4f9ef229c9d0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListReportsRequest - */ -class ListReportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * Please see {@see ReportServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListReportsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of reports. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of reports. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Reports` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Reports` will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListReports` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListReports` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php deleted file mode 100644 index 7acc7238699f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListReportsResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListReportsResponse - */ -class ListReportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Report` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; - */ - private $reports; - /** - * 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 = ''; - /** - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Report>|\Google\Protobuf\Internal\RepeatedField $reports - * The `Report` objects from the specified network. - * @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. - * @type int $total_size - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The `Report` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReports() - { - return $this->reports; - } - - /** - * The `Report` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report reports = 1; - * @param array<\Google\Ads\AdManager\V1\Report>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report::class); - $this->reports = $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; - } - - /** - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Report` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php deleted file mode 100644 index ae086b8ea872..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesRequest.php +++ /dev/null @@ -1,292 +0,0 @@ -google.ads.admanager.v1.ListRolesRequest - */ -class ListRolesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * Please see {@see RoleServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListRolesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Roles. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of Roles. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Roles` to return. The service may return - * fewer than this value. If unspecified, at most 50 `Roles` will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListRoles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListRoles` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php deleted file mode 100644 index 6eb4ef45ab2c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListRolesResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -google.ads.admanager.v1.ListRolesResponse - */ -class ListRolesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Role` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; - */ - private $roles; - /** - * 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 = ''; - /** - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Role>|\Google\Protobuf\Internal\RepeatedField $roles - * The `Role` objects from the specified network. - * @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. - * @type int $total_size - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleService::initOnce(); - parent::__construct($data); - } - - /** - * The `Role` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoles() - { - return $this->roles; - } - - /** - * The `Role` objects from the specified network. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Role roles = 1; - * @param array<\Google\Ads\AdManager\V1\Role>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Role::class); - $this->roles = $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; - } - - /** - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `Role` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php deleted file mode 100644 index fcbb1bb1167d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesRequest.php +++ /dev/null @@ -1,296 +0,0 @@ -google.ads.admanager.v1.ListTaxonomyCategoriesRequest - */ -class ListTaxonomyCategoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $skip = 0; - - /** - * @param string $parent Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * Please see {@see TaxonomyCategoryServiceClient::networkName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\ListTaxonomyCategoriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * @type int $page_size - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * @type string $filter - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * @type string $order_by - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * @type int $skip - * Optional. Number of individual resources to skip while paginating. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * - * 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, which owns this collection of TaxonomyCategories. - * Format: `networks/{network_code}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `TaxonomyCategories` to return. The service - * may return fewer than this value. If unspecified, at most 50 - * `TaxonomyCategories` will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListTaxonomyCategories` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTaxonomyCategories` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Expression to filter the response. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Expression to specify sorting order. - * See syntax details at - * https://developers.google.com/ad-manager/api/beta/filters#order - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSkip() - { - return $this->skip; - } - - /** - * Optional. Number of individual resources to skip while paginating. - * - * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSkip($var) - { - GPBUtil::checkInt32($var); - $this->skip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php deleted file mode 100644 index 66c311184902..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ListTaxonomyCategoriesResponse.php +++ /dev/null @@ -1,172 +0,0 @@ -google.ads.admanager.v1.ListTaxonomyCategoriesResponse - */ -class ListTaxonomyCategoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `TaxonomyCategory` objects. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; - */ - private $taxonomy_categories; - /** - * 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 = ''; - /** - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\TaxonomyCategory>|\Google\Protobuf\Internal\RepeatedField $taxonomy_categories - * The `TaxonomyCategory` objects. - * @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. - * @type int $total_size - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryService::initOnce(); - parent::__construct($data); - } - - /** - * The `TaxonomyCategory` objects. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaxonomyCategories() - { - return $this->taxonomy_categories; - } - - /** - * The `TaxonomyCategory` objects. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.TaxonomyCategory taxonomy_categories = 1; - * @param array<\Google\Ads\AdManager\V1\TaxonomyCategory>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaxonomyCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\TaxonomyCategory::class); - $this->taxonomy_categories = $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; - } - - /** - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total number of `TaxonomyCategory` objects. - * If a filter was included in the request, this reflects the total number - * after the filtering is applied. - * `total_size` will not be calculated in the response unless it has been - * included in a response field mask. The response field mask can be provided - * to the method by using the URL parameter `$fields` or `fields`, or by using - * the HTTP/gRPC header `X-Goog-FieldMask`. - * For more information, see - * https://developers.google.com/ad-manager/api/beta/field-masks - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php deleted file mode 100644 index b4bb7bf928fe..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Network.php +++ /dev/null @@ -1,393 +0,0 @@ -google.ads.admanager.v1.Network - */ -class Network extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. Display name for Network. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. Network Code. - * - * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_code = ''; - /** - * Output only. Property code. - * - * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $property_code = ''; - /** - * Output only. Time zone associated with the delivery of orders and - * reporting. - * - * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $time_zone = ''; - /** - * Output only. Primary currency code, in ISO-4217 format. - * - * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $currency_code = ''; - /** - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * - * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $secondary_currency_codes; - /** - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnit/{ad_unit_id} - * - * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $effective_root_ad_unit = ''; - /** - * Output only. Whether this is a test network. - * - * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $test_network = false; - /** - * Output only. Network ID. - * - * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * @type string $display_name - * Optional. Display name for Network. - * @type string $network_code - * Output only. Network Code. - * @type string $property_code - * Output only. Property code. - * @type string $time_zone - * Output only. Time zone associated with the delivery of orders and - * reporting. - * @type string $currency_code - * Output only. Primary currency code, in ISO-4217 format. - * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_currency_codes - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * @type string $effective_root_ad_unit - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnit/{ad_unit_id} - * @type bool $test_network - * Output only. Whether this is a test network. - * @type int|string $network_id - * Output only. Network ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\NetworkMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the Network. - * Format: networks/{network_code} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Display name for Network. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name for Network. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Network Code. - * - * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNetworkCode() - { - return $this->network_code; - } - - /** - * Output only. Network Code. - * - * Generated from protobuf field string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNetworkCode($var) - { - GPBUtil::checkString($var, True); - $this->network_code = $var; - - return $this; - } - - /** - * Output only. Property code. - * - * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPropertyCode() - { - return $this->property_code; - } - - /** - * Output only. Property code. - * - * Generated from protobuf field string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPropertyCode($var) - { - GPBUtil::checkString($var, True); - $this->property_code = $var; - - return $this; - } - - /** - * Output only. Time zone associated with the delivery of orders and - * reporting. - * - * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Output only. Time zone associated with the delivery of orders and - * reporting. - * - * Generated from protobuf field string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Output only. Primary currency code, in ISO-4217 format. - * - * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Output only. Primary currency code, in ISO-4217 format. - * - * Generated from protobuf field string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * - * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryCurrencyCodes() - { - return $this->secondary_currency_codes; - } - - /** - * Optional. Currency codes that can be used as an alternative to the primary - * currency code for trafficking Line Items. - * - * Generated from protobuf field repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryCurrencyCodes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->secondary_currency_codes = $arr; - - return $this; - } - - /** - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnit/{ad_unit_id} - * - * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getEffectiveRootAdUnit() - { - return $this->effective_root_ad_unit; - } - - /** - * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which - * descendant Ad Units can be added. - * Format: networks/{network_code}/adUnit/{ad_unit_id} - * - * Generated from protobuf field string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEffectiveRootAdUnit($var) - { - GPBUtil::checkString($var, True); - $this->effective_root_ad_unit = $var; - - return $this; - } - - /** - * Output only. Whether this is a test network. - * - * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getTestNetwork() - { - return $this->test_network; - } - - /** - * Output only. Whether this is a test network. - * - * Generated from protobuf field bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setTestNetwork($var) - { - GPBUtil::checkBool($var); - $this->test_network = $var; - - return $this; - } - - /** - * Output only. Network ID. - * - * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getNetworkId() - { - return $this->network_id; - } - - /** - * Output only. Network ID. - * - * Generated from protobuf field int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setNetworkId($var) - { - GPBUtil::checkInt64($var); - $this->network_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php deleted file mode 100644 index e6925980903c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Order.php +++ /dev/null @@ -1,1169 +0,0 @@ -google.ads.admanager.v1.Order - */ -class Order extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Order ID. - * - * Generated from protobuf field int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $order_id = 0; - /** - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Specifies whether or not the Order is a programmatic order. - * - * Generated from protobuf field bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $programmatic = false; - /** - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $trafficker = ''; - /** - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $advertiser_contacts; - /** - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $advertiser = ''; - /** - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $agency_contacts; - /** - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $agency = ''; - /** - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $applied_teams; - /** - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $effective_teams; - /** - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $creator = ''; - /** - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * - * Generated from protobuf field string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $currency_code = ''; - /** - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Indicates whether or not this Order has an end time. - * - * Generated from protobuf field bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $unlimited_end_time = false; - /** - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * - * Generated from protobuf field int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_order_id = 0; - /** - * Output only. The archival status of the Order. - * - * Generated from protobuf field bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $archived = false; - /** - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * - * Generated from protobuf field string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_modified_by_app = ''; - /** - * Output only. The instant this Order was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * - * Generated from protobuf field string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $notes = ''; - /** - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * - * Generated from protobuf field string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $po_number = ''; - /** - * Output only. The status of the Order. - * - * Generated from protobuf field .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $salesperson = ''; - /** - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - */ - private $secondary_salespeople; - /** - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - */ - private $secondary_traffickers; - /** - * Optional. The set of labels applied directly to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $applied_labels; - /** - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $effective_applied_labels; - /** - * Optional. The set of custom field values to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $custom_field_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * @type int|string $order_id - * Output only. Order ID. - * @type string $display_name - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * @type bool $programmatic - * Optional. Specifies whether or not the Order is a programmatic order. - * @type string $trafficker - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $advertiser_contacts - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * @type string $advertiser - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $agency_contacts - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * @type string $agency - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $applied_teams - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $effective_teams - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * @type string $creator - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" - * @type string $currency_code - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. - * @type bool $unlimited_end_time - * Output only. Indicates whether or not this Order has an end time. - * @type int|string $external_order_id - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * @type bool $archived - * Output only. The archival status of the Order. - * @type string $last_modified_by_app - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant this Order was last modified. - * @type string $notes - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * @type string $po_number - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * @type int $status - * Output only. The status of the Order. - * @type string $salesperson - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_salespeople - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_traffickers - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $applied_labels - * Optional. The set of labels applied directly to this order. - * @type array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $effective_applied_labels - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * @type array<\Google\Ads\AdManager\V1\CustomFieldValue>|\Google\Protobuf\Internal\RepeatedField $custom_field_values - * Optional. The set of custom field values to this order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Order`. - * Format: `networks/{network_code}/orders/{order_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Order ID. - * - * Generated from protobuf field int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getOrderId() - { - return $this->order_id; - } - - /** - * Output only. Order ID. - * - * Generated from protobuf field int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setOrderId($var) - { - GPBUtil::checkInt64($var); - $this->order_id = $var; - - return $this; - } - - /** - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the Order. This value has a maximum length - * of 255 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Specifies whether or not the Order is a programmatic order. - * - * Generated from protobuf field bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getProgrammatic() - { - return $this->programmatic; - } - - /** - * Optional. Specifies whether or not the Order is a programmatic order. - * - * Generated from protobuf field bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setProgrammatic($var) - { - GPBUtil::checkBool($var); - $this->programmatic = $var; - - return $this; - } - - /** - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getTrafficker() - { - return $this->trafficker; - } - - /** - * Required. The resource name of the User responsible for trafficking the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTrafficker($var) - { - GPBUtil::checkString($var, True); - $this->trafficker = $var; - - return $this; - } - - /** - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdvertiserContacts() - { - return $this->advertiser_contacts; - } - - /** - * Optional. The resource names of Contacts from the advertiser of this Order. - * Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdvertiserContacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->advertiser_contacts = $arr; - - return $this; - } - - /** - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAdvertiser() - { - return $this->advertiser; - } - - /** - * Required. The resource name of the Company, which is of type - * Company.Type.ADVERTISER, to which this order belongs. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAdvertiser($var) - { - GPBUtil::checkString($var, True); - $this->advertiser = $var; - - return $this; - } - - /** - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAgencyContacts() - { - return $this->agency_contacts; - } - - /** - * Optional. The resource names of Contacts from the advertising Agency of - * this Order. Format: "networks/{network_code}/contacts/{contact_id}" - * - * Generated from protobuf field repeated string agency_contacts = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAgencyContacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->agency_contacts = $arr; - - return $this; - } - - /** - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAgency() - { - return $this->agency; - } - - /** - * Optional. The resource name of the Company, which is of type - * Company.Type.AGENCY, with which this order is associated. Format: - * "networks/{network_code}/companies/{company_id}" - * - * Generated from protobuf field string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAgency($var) - { - GPBUtil::checkString($var, True); - $this->agency = $var; - - return $this; - } - - /** - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedTeams() - { - return $this->applied_teams; - } - - /** - * Optional. The resource names of Teams directly applied to this Order. - * Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string applied_teams = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->applied_teams = $arr; - - return $this; - } - - /** - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveTeams() - { - return $this->effective_teams; - } - - /** - * Output only. The resource names of Teams applied to this Order including - * inherited values. Format: "networks/{network_code}/teams/{team_id}" - * - * Generated from protobuf field repeated string effective_teams = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->effective_teams = $arr; - - return $this; - } - - /** - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getCreator() - { - return $this->creator; - } - - /** - * Output only. The resource name of the User who created the Order on behalf - * of the advertiser. This value is assigned by Google. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCreator($var) - { - GPBUtil::checkString($var, True); - $this->creator = $var; - - return $this; - } - - /** - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * - * Generated from protobuf field string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Output only. The ISO 4217 3-letter currency code for the currency used by - * the Order. This value is the network's currency code. - * - * Generated from protobuf field string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The instant at which the Order and its associated line items - * are eligible to begin serving. This attribute is derived from the line item - * of the order that has the earliest LineItem.start_time. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The instant at which the Order and its associated line items - * stop being served. This attribute is derived from the line item of the - * order that has the latest LineItem.end_time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Indicates whether or not this Order has an end time. - * - * Generated from protobuf field bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getUnlimitedEndTime() - { - return $this->unlimited_end_time; - } - - /** - * Output only. Indicates whether or not this Order has an end time. - * - * Generated from protobuf field bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setUnlimitedEndTime($var) - { - GPBUtil::checkBool($var); - $this->unlimited_end_time = $var; - - return $this; - } - - /** - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * - * Generated from protobuf field int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getExternalOrderId() - { - return $this->external_order_id; - } - - /** - * Optional. An arbitrary ID to associate to the Order, which can be used as a - * key to an external system. - * - * Generated from protobuf field int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setExternalOrderId($var) - { - GPBUtil::checkInt64($var); - $this->external_order_id = $var; - - return $this; - } - - /** - * Output only. The archival status of the Order. - * - * Generated from protobuf field bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getArchived() - { - return $this->archived; - } - - /** - * Output only. The archival status of the Order. - * - * Generated from protobuf field bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setArchived($var) - { - GPBUtil::checkBool($var); - $this->archived = $var; - - return $this; - } - - /** - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * - * Generated from protobuf field string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLastModifiedByApp() - { - return $this->last_modified_by_app; - } - - /** - * Output only. The application which modified this order. This attribute is - * assigned by Google. - * - * Generated from protobuf field string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLastModifiedByApp($var) - { - GPBUtil::checkString($var, True); - $this->last_modified_by_app = $var; - - return $this; - } - - /** - * Output only. The instant this Order was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 16 [(.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. The instant this Order was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 16 [(.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; - } - - /** - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * - * Generated from protobuf field string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNotes() - { - return $this->notes; - } - - /** - * Optional. Provides any additional notes that may annotate the Order. This - * attribute has a maximum length of 65,535 characters. - * - * Generated from protobuf field string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNotes($var) - { - GPBUtil::checkString($var, True); - $this->notes = $var; - - return $this; - } - - /** - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * - * Generated from protobuf field string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPoNumber() - { - return $this->po_number; - } - - /** - * Optional. The purchase order number for the Order. This value has a maximum - * length of 63 characters. - * - * Generated from protobuf field string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPoNumber($var) - { - GPBUtil::checkString($var, True); - $this->po_number = $var; - - return $this; - } - - /** - * Output only. The status of the Order. - * - * Generated from protobuf field .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The status of the Order. - * - * Generated from protobuf field .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\OrderStatusEnum\OrderStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getSalesperson() - { - return $this->salesperson; - } - - /** - * Optional. The resource name of the User responsible for the sales of the - * Order. Format: "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSalesperson($var) - { - GPBUtil::checkString($var, True); - $this->salesperson = $var; - - return $this; - } - - /** - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondarySalespeople() - { - return $this->secondary_salespeople; - } - - /** - * Optional. Unordered list. The resource names of the secondary salespeople - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_salespeople = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondarySalespeople($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->secondary_salespeople = $arr; - - return $this; - } - - /** - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryTraffickers() - { - return $this->secondary_traffickers; - } - - /** - * Optional. Unordered list. The resource names of the secondary traffickers - * associated with the order. Format: - * "networks/{network_code}/users/{user_id}" - * - * Generated from protobuf field repeated string secondary_traffickers = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryTraffickers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->secondary_traffickers = $arr; - - return $this; - } - - /** - * Optional. The set of labels applied directly to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAppliedLabels() - { - return $this->applied_labels; - } - - /** - * Optional. The set of labels applied directly to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->applied_labels = $arr; - - return $this; - } - - /** - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveAppliedLabels() - { - return $this->effective_applied_labels; - } - - /** - * Output only. Contains the set of labels applied directly to the order as - * well as those inherited from the company that owns the order. If a label - * has been negated, only the negated label is returned. This field is - * assigned by Google. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel effective_applied_labels = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Ads\AdManager\V1\AppliedLabel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveAppliedLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); - $this->effective_applied_labels = $arr; - - return $this; - } - - /** - * Optional. The set of custom field values to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomFieldValues() - { - return $this->custom_field_values; - } - - /** - * Optional. The set of custom field values to this order. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\CustomFieldValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomFieldValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CustomFieldValue::class); - $this->custom_field_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php deleted file mode 100644 index 4ba75691537a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.OrderStatusEnum - */ -class OrderStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\OrderEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php deleted file mode 100644 index 5b5b4ffaf2e6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/OrderStatusEnum/OrderStatus.php +++ /dev/null @@ -1,102 +0,0 @@ -google.ads.admanager.v1.OrderStatusEnum.OrderStatus - */ -class OrderStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ORDER_STATUS_UNSPECIFIED = 0; - */ - const ORDER_STATUS_UNSPECIFIED = 0; - /** - * Indicates that the Order has just been created but no approval has been - * requested yet. - * - * Generated from protobuf enum DRAFT = 2; - */ - const DRAFT = 2; - /** - * Indicates that a request for approval for the Order has been made. - * - * Generated from protobuf enum PENDING_APPROVAL = 3; - */ - const PENDING_APPROVAL = 3; - /** - * Indicates that the Order has been approved and is ready to serve. - * - * Generated from protobuf enum APPROVED = 4; - */ - const APPROVED = 4; - /** - * Indicates that the Order has been disapproved and is not eligible to - * serve. - * - * Generated from protobuf enum DISAPPROVED = 5; - */ - const DISAPPROVED = 5; - /** - * This is a legacy state. Paused status should be checked on LineItems - * within the order. - * - * Generated from protobuf enum PAUSED = 6; - */ - const PAUSED = 6; - /** - * Indicates that the Order has been canceled and cannot serve. - * - * Generated from protobuf enum CANCELED = 7; - */ - const CANCELED = 7; - /** - * Indicates that the Order has been deleted. - * - * Generated from protobuf enum DELETED = 8; - */ - const DELETED = 8; - - private static $valueToName = [ - self::ORDER_STATUS_UNSPECIFIED => 'ORDER_STATUS_UNSPECIFIED', - self::DRAFT => 'DRAFT', - self::PENDING_APPROVAL => 'PENDING_APPROVAL', - self::APPROVED => 'APPROVED', - self::DISAPPROVED => 'DISAPPROVED', - self::PAUSED => 'PAUSED', - self::CANCELED => 'CANCELED', - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderStatus::class, \Google\Ads\AdManager\V1\OrderStatusEnum_OrderStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php deleted file mode 100644 index fe7d0b835a1b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Placement.php +++ /dev/null @@ -1,339 +0,0 @@ -google.ads.admanager.v1.Placement - */ -class Placement extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `Placement` ID. - * - * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $placement_id = 0; - /** - * Required. The display name of the placement. Its maximum length is 255 - * characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. A description of the Placement. This value is optional and its - * maximum length is 65,535 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is read-only and is assigned by Google - * when a placement is created. - * - * Generated from protobuf field string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $placement_code = ''; - /** - * Output only. The status of the Placement. This attribute is read-only. - * - * Generated from protobuf field .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $targeted_ad_units; - /** - * Output only. The instant this Placement was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * @type int|string $placement_id - * Output only. `Placement` ID. - * @type string $display_name - * Required. The display name of the placement. Its maximum length is 255 - * characters. - * @type string $description - * Optional. A description of the Placement. This value is optional and its - * maximum length is 65,535 characters. - * @type string $placement_code - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is read-only and is assigned by Google - * when a placement is created. - * @type int $status - * Output only. The status of the Placement. This attribute is read-only. - * @type array|\Google\Protobuf\Internal\RepeatedField $targeted_ad_units - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit_id}" - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant this Placement was last modified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Placement`. - * Format: `networks/{network_code}/placements/{placement_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `Placement` ID. - * - * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getPlacementId() - { - return $this->placement_id; - } - - /** - * Output only. `Placement` ID. - * - * Generated from protobuf field int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setPlacementId($var) - { - GPBUtil::checkInt64($var); - $this->placement_id = $var; - - return $this; - } - - /** - * Required. The display name of the placement. Its maximum length is 255 - * characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the placement. Its maximum length is 255 - * characters. - * - * 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. A description of the Placement. This value is optional and its - * maximum length is 65,535 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the Placement. This value is optional and its - * maximum length is 65,535 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; - } - - /** - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is read-only and is assigned by Google - * when a placement is created. - * - * Generated from protobuf field string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPlacementCode() - { - return $this->placement_code; - } - - /** - * Output only. A string used to uniquely identify the Placement for purposes - * of serving the ad. This attribute is read-only and is assigned by Google - * when a placement is created. - * - * Generated from protobuf field string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPlacementCode($var) - { - GPBUtil::checkString($var, True); - $this->placement_code = $var; - - return $this; - } - - /** - * Output only. The status of the Placement. This attribute is read-only. - * - * Generated from protobuf field .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The status of the Placement. This attribute is read-only. - * - * Generated from protobuf field .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\PlacementStatusEnum\PlacementStatus::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetedAdUnits() - { - return $this->targeted_ad_units; - } - - /** - * Optional. The resource names of AdUnits that constitute the Placement. - * Format: "networks/{network_code}/adUnits/{ad_unit_id}" - * - * Generated from protobuf field repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetedAdUnits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->targeted_ad_units = $arr; - - return $this; - } - - /** - * Output only. The instant this Placement was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. The instant this Placement was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php deleted file mode 100644 index 08bc6de84382..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.PlacementStatusEnum - */ -class PlacementStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\PlacementEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php deleted file mode 100644 index 21bdaea88d01..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/PlacementStatusEnum/PlacementStatus.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus - */ -class PlacementStatus -{ - /** - * Not specified value. - * - * Generated from protobuf enum PLACEMENT_STATUS_UNSPECIFIED = 0; - */ - const PLACEMENT_STATUS_UNSPECIFIED = 0; - /** - * Stats are collected, user-visible. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * No stats collected, not user-visible. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - /** - * No stats collected, user-visible. - * - * Generated from protobuf enum ARCHIVED = 3; - */ - const ARCHIVED = 3; - - private static $valueToName = [ - self::PLACEMENT_STATUS_UNSPECIFIED => 'PLACEMENT_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - self::ARCHIVED => 'ARCHIVED', - ]; - - 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(PlacementStatus::class, \Google\Ads\AdManager\V1\PlacementStatusEnum_PlacementStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php deleted file mode 100644 index b8cd8e12c83b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report.php +++ /dev/null @@ -1,391 +0,0 @@ -google.ads.admanager.v1.Report - */ -class Report extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Report ID. - * - * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $report_id = 0; - /** - * Optional. The visibility of a report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $visibility = 0; - /** - * Required. The report definition of the report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report_definition = null; - /** - * Optional. Display name for the report. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. The instant this report was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The instant this report was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. - * - * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $locale = ''; - /** - * Optional. The schedule options of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schedule_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * @type int|string $report_id - * Output only. Report ID. - * @type int $visibility - * Optional. The visibility of a report. - * @type \Google\Ads\AdManager\V1\ReportDefinition $report_definition - * Required. The report definition of the report. - * @type string $display_name - * Optional. Display name for the report. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The instant this report was last modified. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The instant this report was created. - * @type string $locale - * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. - * @type \Google\Ads\AdManager\V1\ScheduleOptions $schedule_options - * Optional. The schedule options of this report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the report. - * Report resource name have the form: - * `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Report ID. - * - * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getReportId() - { - return $this->report_id; - } - - /** - * Output only. Report ID. - * - * Generated from protobuf field int64 report_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setReportId($var) - { - GPBUtil::checkInt64($var); - $this->report_id = $var; - - return $this; - } - - /** - * Optional. The visibility of a report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getVisibility() - { - return $this->visibility; - } - - /** - * Optional. The visibility of a report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Visibility::class); - $this->visibility = $var; - - return $this; - } - - /** - * Required. The report definition of the report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\ReportDefinition|null - */ - public function getReportDefinition() - { - return $this->report_definition; - } - - public function hasReportDefinition() - { - return isset($this->report_definition); - } - - public function clearReportDefinition() - { - unset($this->report_definition); - } - - /** - * Required. The report definition of the report. - * - * Generated from protobuf field .google.ads.admanager.v1.ReportDefinition report_definition = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\ReportDefinition $var - * @return $this - */ - public function setReportDefinition($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ReportDefinition::class); - $this->report_definition = $var; - - return $this; - } - - /** - * Optional. Display name for the report. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name for the report. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The instant this report was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. The instant this report was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. The instant this report was 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. The instant this report was 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. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. - * - * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocale() - { - return $this->locale; - } - - /** - * Output only. The locale of this report. Locale is set from the user's - * locale at the time of the request. Locale can not be modified. - * - * Generated from protobuf field string locale = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocale($var) - { - GPBUtil::checkString($var, True); - $this->locale = $var; - - return $this; - } - - /** - * Optional. The schedule options of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\ScheduleOptions|null - */ - public function getScheduleOptions() - { - return $this->schedule_options; - } - - public function hasScheduleOptions() - { - return isset($this->schedule_options); - } - - public function clearScheduleOptions() - { - unset($this->schedule_options); - } - - /** - * Optional. The schedule options of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions schedule_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\ScheduleOptions $var - * @return $this - */ - public function setScheduleOptions($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ScheduleOptions::class); - $this->schedule_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable.php deleted file mode 100644 index 5ab132f3ffef..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable.php +++ /dev/null @@ -1,36 +0,0 @@ -google.ads.admanager.v1.Report.DataTable - */ -class DataTable extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataTable::class, \Google\Ads\AdManager\V1\Report_DataTable::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable/MetricValueGroup.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable/MetricValueGroup.php deleted file mode 100644 index f1ea50805157..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable/MetricValueGroup.php +++ /dev/null @@ -1,289 +0,0 @@ -google.ads.admanager.v1.Report.DataTable.MetricValueGroup - */ -class MetricValueGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Data for the PRIMARY MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - */ - private $primary_values; - /** - * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - */ - private $primary_percent_of_total_values; - /** - * Data for the COMPARISON MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - */ - private $comparison_values; - /** - * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - */ - private $comparison_percent_of_total_values; - /** - * Data for the ABSOLUTE_CHANGE MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - */ - private $absolute_change_values; - /** - * Data for the RELATIVE_CHANGE MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - */ - private $relative_change_values; - /** - * If true, the flag's conditions are met. If false, the flag's - * conditions are not met. flag_values has the same length as - * flags and index i of flag_values represents the flag at index i - * of flags. - * - * Generated from protobuf field repeated bool flag_values = 7; - */ - private $flag_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $primary_values - * Data for the PRIMARY MetricValueType. - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $primary_percent_of_total_values - * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $comparison_values - * Data for the COMPARISON MetricValueType. - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $comparison_percent_of_total_values - * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $absolute_change_values - * Data for the ABSOLUTE_CHANGE MetricValueType. - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $relative_change_values - * Data for the RELATIVE_CHANGE MetricValueType. - * @type array|\Google\Protobuf\Internal\RepeatedField $flag_values - * If true, the flag's conditions are met. If false, the flag's - * conditions are not met. flag_values has the same length as - * flags and index i of flag_values represents the flag at index i - * of flags. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Data for the PRIMARY MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPrimaryValues() - { - return $this->primary_values; - } - - /** - * Data for the PRIMARY MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value primary_values = 1; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPrimaryValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->primary_values = $arr; - - return $this; - } - - /** - * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPrimaryPercentOfTotalValues() - { - return $this->primary_percent_of_total_values; - } - - /** - * Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value primary_percent_of_total_values = 2; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPrimaryPercentOfTotalValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->primary_percent_of_total_values = $arr; - - return $this; - } - - /** - * Data for the COMPARISON MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComparisonValues() - { - return $this->comparison_values; - } - - /** - * Data for the COMPARISON MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value comparison_values = 3; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComparisonValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->comparison_values = $arr; - - return $this; - } - - /** - * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComparisonPercentOfTotalValues() - { - return $this->comparison_percent_of_total_values; - } - - /** - * Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value comparison_percent_of_total_values = 4; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComparisonPercentOfTotalValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->comparison_percent_of_total_values = $arr; - - return $this; - } - - /** - * Data for the ABSOLUTE_CHANGE MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAbsoluteChangeValues() - { - return $this->absolute_change_values; - } - - /** - * Data for the ABSOLUTE_CHANGE MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value absolute_change_values = 5; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAbsoluteChangeValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->absolute_change_values = $arr; - - return $this; - } - - /** - * Data for the RELATIVE_CHANGE MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelativeChangeValues() - { - return $this->relative_change_values; - } - - /** - * Data for the RELATIVE_CHANGE MetricValueType. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value relative_change_values = 6; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelativeChangeValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->relative_change_values = $arr; - - return $this; - } - - /** - * If true, the flag's conditions are met. If false, the flag's - * conditions are not met. flag_values has the same length as - * flags and index i of flag_values represents the flag at index i - * of flags. - * - * Generated from protobuf field repeated bool flag_values = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFlagValues() - { - return $this->flag_values; - } - - /** - * If true, the flag's conditions are met. If false, the flag's - * conditions are not met. flag_values has the same length as - * flags and index i of flag_values represents the flag at index i - * of flags. - * - * Generated from protobuf field repeated bool flag_values = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFlagValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BOOL); - $this->flag_values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricValueGroup::class, \Google\Ads\AdManager\V1\Report_DataTable_MetricValueGroup::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable/Row.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable/Row.php deleted file mode 100644 index 4b3716ff83a9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DataTable/Row.php +++ /dev/null @@ -1,136 +0,0 @@ -google.ads.admanager.v1.Report.DataTable.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * The order of the dimension values is the same as the order of the - * dimensions specified in the request. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - */ - private $dimension_values; - /** - * The length of the metric_value_groups - * field will be equal to the length of the date_ranges field in the - * fetch response. The metric_value_groups field is - * ordered such that each index corresponds to the date_range at the same - * index. For example, given date_ranges [x, y], metric_value_groups will - * have a length of two. The first entry in metric_value_groups represents - * the metrics for date x and the second entry in metric_value_groups - * represents the metrics for date y. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - */ - private $metric_value_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * The order of the dimension values is the same as the order of the - * dimensions specified in the request. - * @type array<\Google\Ads\AdManager\V1\Report\DataTable\MetricValueGroup>|\Google\Protobuf\Internal\RepeatedField $metric_value_groups - * The length of the metric_value_groups - * field will be equal to the length of the date_ranges field in the - * fetch response. The metric_value_groups field is - * ordered such that each index corresponds to the date_range at the same - * index. For example, given date_ranges [x, y], metric_value_groups will - * have a length of two. The first entry in metric_value_groups represents - * the metrics for date x and the second entry in metric_value_groups - * represents the metrics for date y. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The order of the dimension values is the same as the order of the - * dimensions specified in the request. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * The order of the dimension values is the same as the order of the - * dimensions specified in the request. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value dimension_values = 1; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * The length of the metric_value_groups - * field will be equal to the length of the date_ranges field in the - * fetch response. The metric_value_groups field is - * ordered such that each index corresponds to the date_range at the same - * index. For example, given date_ranges [x, y], metric_value_groups will - * have a length of two. The first entry in metric_value_groups represents - * the metrics for date x and the second entry in metric_value_groups - * represents the metrics for date y. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValueGroups() - { - return $this->metric_value_groups; - } - - /** - * The length of the metric_value_groups - * field will be equal to the length of the date_ranges field in the - * fetch response. The metric_value_groups field is - * ordered such that each index corresponds to the date_range at the same - * index. For example, given date_ranges [x, y], metric_value_groups will - * have a length of two. The first entry in metric_value_groups represents - * the metrics for date x and the second entry in metric_value_groups - * represents the metrics for date y. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.DataTable.MetricValueGroup metric_value_groups = 2; - * @param array<\Google\Ads\AdManager\V1\Report\DataTable\MetricValueGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValueGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\DataTable\MetricValueGroup::class); - $this->metric_value_groups = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Row::class, \Google\Ads\AdManager\V1\Report_DataTable_Row::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange.php deleted file mode 100644 index 68e1a577073f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange.php +++ /dev/null @@ -1,111 +0,0 @@ -google.ads.admanager.v1.Report.DateRange - */ -class DateRange extends \Google\Protobuf\Internal\Message -{ - protected $date_range_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange $fixed - * A fixed date range. - * @type int $relative - * A relative date range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * A fixed date range. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * @return \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange|null - */ - public function getFixed() - { - return $this->readOneof(1); - } - - public function hasFixed() - { - return $this->hasOneof(1); - } - - /** - * A fixed date range. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1; - * @param \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange $var - * @return $this - */ - public function setFixed($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\DateRange\FixedDateRange::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A relative date range. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * @return int - */ - public function getRelative() - { - return $this->readOneof(2); - } - - public function hasRelative() - { - return $this->hasOneof(2); - } - - /** - * A relative date range. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2; - * @param int $var - * @return $this - */ - public function setRelative($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\DateRange\RelativeDateRange::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getDateRangeType() - { - return $this->whichOneof("date_range_type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DateRange::class, \Google\Ads\AdManager\V1\Report_DateRange::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange/FixedDateRange.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange/FixedDateRange.php deleted file mode 100644 index 726d69009e65..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange/FixedDateRange.php +++ /dev/null @@ -1,124 +0,0 @@ -google.ads.admanager.v1.Report.DateRange.FixedDateRange - */ -class FixedDateRange extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The start date of this date range. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $start_date = null; - /** - * Required. The end date (inclusive) of this date range. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $end_date = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $start_date - * Required. The start date of this date range. - * @type \Google\Type\Date $end_date - * Required. The end date (inclusive) of this date range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The start date of this date range. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * Required. The start date of this date range. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * Required. The end date (inclusive) of this date range. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * Required. The end date (inclusive) of this date range. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FixedDateRange::class, \Google\Ads\AdManager\V1\Report_DateRange_FixedDateRange::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange/RelativeDateRange.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange/RelativeDateRange.php deleted file mode 100644 index 77e14d9fd07b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/DateRange/RelativeDateRange.php +++ /dev/null @@ -1,278 +0,0 @@ -google.ads.admanager.v1.Report.DateRange.RelativeDateRange - */ -class RelativeDateRange -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum RELATIVE_DATE_RANGE_UNSPECIFIED = 0; - */ - const RELATIVE_DATE_RANGE_UNSPECIFIED = 0; - /** - * The date the report is run. - * - * Generated from protobuf enum TODAY = 1; - */ - const TODAY = 1; - /** - * The date a day before the date that the report is run. - * - * Generated from protobuf enum YESTERDAY = 2; - */ - const YESTERDAY = 2; - /** - * The full week in which this report is run. Could include dates in - * the future. - * - * Generated from protobuf enum THIS_WEEK = 3; - */ - const THIS_WEEK = 3; - /** - * From the beginning of the calendar week (Monday to Sunday) in which the - * up to and including the day the report is run. - * - * Generated from protobuf enum THIS_WEEK_TO_DATE = 29; - */ - const THIS_WEEK_TO_DATE = 29; - /** - * The full month in which this report is run. Could include dates in - * the future. - * - * Generated from protobuf enum THIS_MONTH = 4; - */ - const THIS_MONTH = 4; - /** - * From the beginning of the calendar month in which the report is run, to - * up to and including the day the report is run. - * - * Generated from protobuf enum THIS_MONTH_TO_DATE = 26; - */ - const THIS_MONTH_TO_DATE = 26; - /** - * The full quarter in which this report is run. Could include dates - * in the future. - * - * Generated from protobuf enum THIS_QUARTER = 5; - */ - const THIS_QUARTER = 5; - /** - * From the beginning of the calendar quarter in which the report is run, - * up to and including the day the report is run. - * - * Generated from protobuf enum THIS_QUARTER_TO_DATE = 27; - */ - const THIS_QUARTER_TO_DATE = 27; - /** - * The full year in which this report is run. Could include dates in - * the future. - * - * Generated from protobuf enum THIS_YEAR = 6; - */ - const THIS_YEAR = 6; - /** - * From the beginning of the calendar year in which the report is run, to - * up to and including the day the report is run. - * - * Generated from protobuf enum THIS_YEAR_TO_DATE = 28; - */ - const THIS_YEAR_TO_DATE = 28; - /** - * The entire previous calendar week, Monday to Sunday (inclusive), - * preceding the calendar week the report is run. - * - * Generated from protobuf enum LAST_WEEK = 7; - */ - const LAST_WEEK = 7; - /** - * The entire previous calendar month preceding the calendar month the - * report is run. - * - * Generated from protobuf enum LAST_MONTH = 8; - */ - const LAST_MONTH = 8; - /** - * The entire previous calendar quarter preceding the calendar quarter the - * report is run. - * - * Generated from protobuf enum LAST_QUARTER = 9; - */ - const LAST_QUARTER = 9; - /** - * The entire previous calendar year preceding the calendar year the - * report is run. - * - * Generated from protobuf enum LAST_YEAR = 10; - */ - const LAST_YEAR = 10; - /** - * The 7 days preceding the day the report is run. - * - * Generated from protobuf enum LAST_7_DAYS = 11; - */ - const LAST_7_DAYS = 11; - /** - * The 30 days preceding the day the report is run. - * - * Generated from protobuf enum LAST_30_DAYS = 12; - */ - const LAST_30_DAYS = 12; - /** - * The 60 days preceding the day the report is run. - * - * Generated from protobuf enum LAST_60_DAYS = 13; - */ - const LAST_60_DAYS = 13; - /** - * The 90 days preceding the day the report is run. - * - * Generated from protobuf enum LAST_90_DAYS = 14; - */ - const LAST_90_DAYS = 14; - /** - * The 180 days preceding the day the report is run. - * - * Generated from protobuf enum LAST_180_DAYS = 15; - */ - const LAST_180_DAYS = 15; - /** - * The 360 days preceding the day the report is run. - * - * Generated from protobuf enum LAST_360_DAYS = 16; - */ - const LAST_360_DAYS = 16; - /** - * The 365 days preceding the day the report is run. - * - * Generated from protobuf enum LAST_365_DAYS = 17; - */ - const LAST_365_DAYS = 17; - /** - * The entire previous 3 calendar months preceding the calendar month the - * report is run. - * - * Generated from protobuf enum LAST_3_MONTHS = 18; - */ - const LAST_3_MONTHS = 18; - /** - * The entire previous 6 calendar months preceding the calendar month the - * report is run. - * - * Generated from protobuf enum LAST_6_MONTHS = 19; - */ - const LAST_6_MONTHS = 19; - /** - * The entire previous 6 calendar months preceding the calendar month the - * report is run. - * - * Generated from protobuf enum LAST_12_MONTHS = 20; - */ - const LAST_12_MONTHS = 20; - /** - * From 3 years before the report is run, to the day before the report is - * run, inclusive. - * - * Generated from protobuf enum ALL_AVAILABLE = 21; - */ - const ALL_AVAILABLE = 21; - /** - * Only valid when used in the comparison_date_range field. The complete - * period preceding the date period provided in date_range. - * In the case where date_range is a FixedDateRange of N days, this will - * be a period of N days where the end date is the date preceding the - * start date of the date_range. - * In the case where date_range is a RelativeDateRange, this will be a - * period of the same time frame preceding the date_range. In the case - * where the date_range does not capture the full period because a report - * is run in the middle of that period, this will still be the full - * preceding period. For example, if date_range is THIS_WEEK, but the - * report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but - * PREVIOUS_PERIOD will be Monday - Sunday. - * - * Generated from protobuf enum PREVIOUS_PERIOD = 22; - */ - const PREVIOUS_PERIOD = 22; - /** - * Only valid when used in the comparison_date_range field. The period - * starting 1 year prior to the date period provided in date_range. - * In the case where date_range is a FixedDateRange, this will be a date - * range starting 1 year prior to the date_range start date and ending 1 - * year prior to the date_range end date. - * In the case where date_range is a RelativeDateRange, this will be a - * period of the same time frame exactly 1 year prior to the date_range. - * In the case where the date_range does not capture the full period - * because a report is run in the middle of that period, this will still - * be the full period 1 year prior. For example, if date range is - * THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be - * Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday - - * Sunday. - * - * Generated from protobuf enum SAME_PERIOD_PREVIOUS_YEAR = 24; - */ - const SAME_PERIOD_PREVIOUS_YEAR = 24; - - private static $valueToName = [ - self::RELATIVE_DATE_RANGE_UNSPECIFIED => 'RELATIVE_DATE_RANGE_UNSPECIFIED', - self::TODAY => 'TODAY', - self::YESTERDAY => 'YESTERDAY', - self::THIS_WEEK => 'THIS_WEEK', - self::THIS_WEEK_TO_DATE => 'THIS_WEEK_TO_DATE', - self::THIS_MONTH => 'THIS_MONTH', - self::THIS_MONTH_TO_DATE => 'THIS_MONTH_TO_DATE', - self::THIS_QUARTER => 'THIS_QUARTER', - self::THIS_QUARTER_TO_DATE => 'THIS_QUARTER_TO_DATE', - self::THIS_YEAR => 'THIS_YEAR', - self::THIS_YEAR_TO_DATE => 'THIS_YEAR_TO_DATE', - self::LAST_WEEK => 'LAST_WEEK', - self::LAST_MONTH => 'LAST_MONTH', - self::LAST_QUARTER => 'LAST_QUARTER', - self::LAST_YEAR => 'LAST_YEAR', - self::LAST_7_DAYS => 'LAST_7_DAYS', - self::LAST_30_DAYS => 'LAST_30_DAYS', - self::LAST_60_DAYS => 'LAST_60_DAYS', - self::LAST_90_DAYS => 'LAST_90_DAYS', - self::LAST_180_DAYS => 'LAST_180_DAYS', - self::LAST_360_DAYS => 'LAST_360_DAYS', - self::LAST_365_DAYS => 'LAST_365_DAYS', - self::LAST_3_MONTHS => 'LAST_3_MONTHS', - self::LAST_6_MONTHS => 'LAST_6_MONTHS', - self::LAST_12_MONTHS => 'LAST_12_MONTHS', - self::ALL_AVAILABLE => 'ALL_AVAILABLE', - self::PREVIOUS_PERIOD => 'PREVIOUS_PERIOD', - self::SAME_PERIOD_PREVIOUS_YEAR => 'SAME_PERIOD_PREVIOUS_YEAR', - ]; - - 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(RelativeDateRange::class, \Google\Ads\AdManager\V1\Report_DateRange_RelativeDateRange::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Dimension.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Dimension.php deleted file mode 100644 index e4318c9c71b1..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Dimension.php +++ /dev/null @@ -1,4171 +0,0 @@ -google.ads.admanager.v1.Report.Dimension - */ -class Dimension -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum DIMENSION_UNSPECIFIED = 0; - */ - const DIMENSION_UNSPECIFIED = 0; - /** - * The domain name of the advertiser. - * - * Generated from protobuf enum ADVERTISER_DOMAIN_NAME = 242; - */ - const ADVERTISER_DOMAIN_NAME = 242; - /** - * The ID used in an external system for advertiser identification - * - * Generated from protobuf enum ADVERTISER_EXTERNAL_ID = 228; - */ - const ADVERTISER_EXTERNAL_ID = 228; - /** - * The ID of an advertiser company assigned to an order - * - * Generated from protobuf enum ADVERTISER_ID = 131; - */ - const ADVERTISER_ID = 131; - /** - * Labels applied to the advertiser - * can be used for either competitive exclusion or ad exclusion - * - * Generated from protobuf enum ADVERTISER_LABELS = 230; - */ - const ADVERTISER_LABELS = 230; - /** - * Label ids applied to the advertiser - * can be used for either competitive exclusion or ad exclusion - * - * Generated from protobuf enum ADVERTISER_LABEL_IDS = 229; - */ - const ADVERTISER_LABEL_IDS = 229; - /** - * The name of an advertiser company assigned to an order - * - * Generated from protobuf enum ADVERTISER_NAME = 132; - */ - const ADVERTISER_NAME = 132; - /** - * The name of the contact associated with an advertiser company - * - * Generated from protobuf enum ADVERTISER_PRIMARY_CONTACT = 227; - */ - const ADVERTISER_PRIMARY_CONTACT = 227; - /** - * Shows an ENUM value describing whether a given piece of publisher - * inventory was above (ATF) or below the fold (BTF) of a page. - * - * Generated from protobuf enum AD_LOCATION = 390; - */ - const AD_LOCATION = 390; - /** - * Shows a localized string describing whether a given piece of publisher - * inventory was above (ATF) or below the fold (BTF) of a page. - * - * Generated from protobuf enum AD_LOCATION_NAME = 391; - */ - const AD_LOCATION_NAME = 391; - /** - * The code of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_CODE = 64; - */ - const AD_UNIT_CODE = 64; - /** - * The code of the first level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_1 = 65; - */ - const AD_UNIT_CODE_LEVEL_1 = 65; - /** - * The code of the tenth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_10 = 74; - */ - const AD_UNIT_CODE_LEVEL_10 = 74; - /** - * The code of the eleventh level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_11 = 75; - */ - const AD_UNIT_CODE_LEVEL_11 = 75; - /** - * The code of the twelfth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_12 = 76; - */ - const AD_UNIT_CODE_LEVEL_12 = 76; - /** - * The code of the thirteenth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_13 = 77; - */ - const AD_UNIT_CODE_LEVEL_13 = 77; - /** - * The code of the fourteenth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_14 = 78; - */ - const AD_UNIT_CODE_LEVEL_14 = 78; - /** - * The code of the fifteenth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_15 = 79; - */ - const AD_UNIT_CODE_LEVEL_15 = 79; - /** - * The code of the sixteenth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_16 = 80; - */ - const AD_UNIT_CODE_LEVEL_16 = 80; - /** - * The code of the second level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_2 = 66; - */ - const AD_UNIT_CODE_LEVEL_2 = 66; - /** - * The code of the third level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_3 = 67; - */ - const AD_UNIT_CODE_LEVEL_3 = 67; - /** - * The code of the fourth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_4 = 68; - */ - const AD_UNIT_CODE_LEVEL_4 = 68; - /** - * The code of the fifth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_5 = 69; - */ - const AD_UNIT_CODE_LEVEL_5 = 69; - /** - * The code of the sixth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_6 = 70; - */ - const AD_UNIT_CODE_LEVEL_6 = 70; - /** - * The code of the seventh level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_7 = 71; - */ - const AD_UNIT_CODE_LEVEL_7 = 71; - /** - * The code of the eighth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_8 = 72; - */ - const AD_UNIT_CODE_LEVEL_8 = 72; - /** - * The code of the ninth level ad unit of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_CODE_LEVEL_9 = 73; - */ - const AD_UNIT_CODE_LEVEL_9 = 73; - /** - * The depth of the ad unit's hierarchy - * - * Generated from protobuf enum AD_UNIT_DEPTH = 101; - */ - const AD_UNIT_DEPTH = 101; - /** - * The ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID = 25; - */ - const AD_UNIT_ID = 25; - /** - * The full hierarchy of ad unit IDs where the ad was requested, from - * root to leaf, excluding the root ad unit ID. - * - * Generated from protobuf enum AD_UNIT_ID_ALL_LEVEL = 27; - */ - const AD_UNIT_ID_ALL_LEVEL = 27; - /** - * The first level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_1 = 30; - */ - const AD_UNIT_ID_LEVEL_1 = 30; - /** - * The tenth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_10 = 48; - */ - const AD_UNIT_ID_LEVEL_10 = 48; - /** - * The eleventh level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_11 = 50; - */ - const AD_UNIT_ID_LEVEL_11 = 50; - /** - * The twelfth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_12 = 52; - */ - const AD_UNIT_ID_LEVEL_12 = 52; - /** - * The thirteenth level ad unit ID of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_13 = 54; - */ - const AD_UNIT_ID_LEVEL_13 = 54; - /** - * The fourteenth level ad unit ID of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_14 = 56; - */ - const AD_UNIT_ID_LEVEL_14 = 56; - /** - * The fifteenth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_15 = 58; - */ - const AD_UNIT_ID_LEVEL_15 = 58; - /** - * The sixteenth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_16 = 60; - */ - const AD_UNIT_ID_LEVEL_16 = 60; - /** - * The second level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_2 = 32; - */ - const AD_UNIT_ID_LEVEL_2 = 32; - /** - * The third level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_3 = 34; - */ - const AD_UNIT_ID_LEVEL_3 = 34; - /** - * The fourth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_4 = 36; - */ - const AD_UNIT_ID_LEVEL_4 = 36; - /** - * The fifth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_5 = 38; - */ - const AD_UNIT_ID_LEVEL_5 = 38; - /** - * The sixth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_6 = 40; - */ - const AD_UNIT_ID_LEVEL_6 = 40; - /** - * The seventh level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_7 = 42; - */ - const AD_UNIT_ID_LEVEL_7 = 42; - /** - * The eighth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_8 = 44; - */ - const AD_UNIT_ID_LEVEL_8 = 44; - /** - * The ninth level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_LEVEL_9 = 46; - */ - const AD_UNIT_ID_LEVEL_9 = 46; - /** - * The top-level ad unit ID of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_ID_TOP_LEVEL = 142; - */ - const AD_UNIT_ID_TOP_LEVEL = 142; - /** - * The name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME = 26; - */ - const AD_UNIT_NAME = 26; - /** - * The full hierarchy of ad unit names where the ad was requested, from - * root to leaf, excluding the root ad unit name. - * - * Generated from protobuf enum AD_UNIT_NAME_ALL_LEVEL = 29; - */ - const AD_UNIT_NAME_ALL_LEVEL = 29; - /** - * The first level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_1 = 31; - */ - const AD_UNIT_NAME_LEVEL_1 = 31; - /** - * The tenth level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_10 = 49; - */ - const AD_UNIT_NAME_LEVEL_10 = 49; - /** - * The eleventh level ad unit name of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_11 = 51; - */ - const AD_UNIT_NAME_LEVEL_11 = 51; - /** - * The twelfth level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_12 = 53; - */ - const AD_UNIT_NAME_LEVEL_12 = 53; - /** - * The thirteenth level ad unit name of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_13 = 55; - */ - const AD_UNIT_NAME_LEVEL_13 = 55; - /** - * The fourteenth level ad unit name of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_14 = 57; - */ - const AD_UNIT_NAME_LEVEL_14 = 57; - /** - * The fifteenth level ad unit name of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_15 = 59; - */ - const AD_UNIT_NAME_LEVEL_15 = 59; - /** - * The sixteenth level ad unit name of the ad unit where the ad was - * requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_16 = 61; - */ - const AD_UNIT_NAME_LEVEL_16 = 61; - /** - * The second level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_2 = 33; - */ - const AD_UNIT_NAME_LEVEL_2 = 33; - /** - * The third level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_3 = 35; - */ - const AD_UNIT_NAME_LEVEL_3 = 35; - /** - * The fourth level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_4 = 37; - */ - const AD_UNIT_NAME_LEVEL_4 = 37; - /** - * The fifth level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_5 = 39; - */ - const AD_UNIT_NAME_LEVEL_5 = 39; - /** - * The sixth level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_6 = 41; - */ - const AD_UNIT_NAME_LEVEL_6 = 41; - /** - * The seventh level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_7 = 43; - */ - const AD_UNIT_NAME_LEVEL_7 = 43; - /** - * The eighth level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_8 = 45; - */ - const AD_UNIT_NAME_LEVEL_8 = 45; - /** - * The ninth level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_LEVEL_9 = 47; - */ - const AD_UNIT_NAME_LEVEL_9 = 47; - /** - * The top-level ad unit name of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_NAME_TOP_LEVEL = 143; - */ - const AD_UNIT_NAME_TOP_LEVEL = 143; - /** - * The reward amount of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_REWARD_AMOUNT = 63; - */ - const AD_UNIT_REWARD_AMOUNT = 63; - /** - * The reward type of the ad unit where the ad was requested. - * - * Generated from protobuf enum AD_UNIT_REWARD_TYPE = 62; - */ - const AD_UNIT_REWARD_TYPE = 62; - /** - * The status of the ad unit - * - * Generated from protobuf enum AD_UNIT_STATUS = 206; - */ - const AD_UNIT_STATUS = 206; - /** - * The name of the status of the ad unit - * - * Generated from protobuf enum AD_UNIT_STATUS_NAME = 207; - */ - const AD_UNIT_STATUS_NAME = 207; - /** - * The app version. - * - * Generated from protobuf enum APP_VERSION = 392; - */ - const APP_VERSION = 392; - /** - * The ID used in an external system for advertiser identification - * - * Generated from protobuf enum BACKFILL_ADVERTISER_EXTERNAL_ID = 349; - */ - const BACKFILL_ADVERTISER_EXTERNAL_ID = 349; - /** - * The ID of an advertiser company assigned to a backfill order - * - * Generated from protobuf enum BACKFILL_ADVERTISER_ID = 346; - */ - const BACKFILL_ADVERTISER_ID = 346; - /** - * Labels applied to the advertiser - * can be used for either competitive exclusion or ad exclusion - * - * Generated from protobuf enum BACKFILL_ADVERTISER_LABELS = 351; - */ - const BACKFILL_ADVERTISER_LABELS = 351; - /** - * Label ids applied to the advertiser - * can be used for either competitive exclusion or ad exclusion - * - * Generated from protobuf enum BACKFILL_ADVERTISER_LABEL_IDS = 350; - */ - const BACKFILL_ADVERTISER_LABEL_IDS = 350; - /** - * The name of an advertiser company assigned to a backfill order - * - * Generated from protobuf enum BACKFILL_ADVERTISER_NAME = 347; - */ - const BACKFILL_ADVERTISER_NAME = 347; - /** - * The name of the contact associated with an advertiser company - * - * Generated from protobuf enum BACKFILL_ADVERTISER_PRIMARY_CONTACT = 348; - */ - const BACKFILL_ADVERTISER_PRIMARY_CONTACT = 348; - /** - * Enum value of Backfill creative billing type - * - * Generated from protobuf enum BACKFILL_CREATIVE_BILLING_TYPE = 378; - */ - const BACKFILL_CREATIVE_BILLING_TYPE = 378; - /** - * Localized string value of Backfill creative billing type - * - * Generated from protobuf enum BACKFILL_CREATIVE_BILLING_TYPE_NAME = 379; - */ - const BACKFILL_CREATIVE_BILLING_TYPE_NAME = 379; - /** - * Represents the click-through URL of a Backfill creative - * - * Generated from protobuf enum BACKFILL_CREATIVE_CLICK_THROUGH_URL = 376; - */ - const BACKFILL_CREATIVE_CLICK_THROUGH_URL = 376; - /** - * The ID of a Backfill creative - * - * Generated from protobuf enum BACKFILL_CREATIVE_ID = 370; - */ - const BACKFILL_CREATIVE_ID = 370; - /** - * Backfill creative name - * - * Generated from protobuf enum BACKFILL_CREATIVE_NAME = 371; - */ - const BACKFILL_CREATIVE_NAME = 371; - /** - * Third party vendor name of a Backfill creative - * - * Generated from protobuf enum BACKFILL_CREATIVE_THIRD_PARTY_VENDOR = 377; - */ - const BACKFILL_CREATIVE_THIRD_PARTY_VENDOR = 377; - /** - * Enum value of Backfill creative type - * - * Generated from protobuf enum BACKFILL_CREATIVE_TYPE = 374; - */ - const BACKFILL_CREATIVE_TYPE = 374; - /** - * Localized string name of Backfill creative type - * - * Generated from protobuf enum BACKFILL_CREATIVE_TYPE_NAME = 375; - */ - const BACKFILL_CREATIVE_TYPE_NAME = 375; - /** - * Whether a Backfill line item is archived. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_ARCHIVED = 278; - */ - const BACKFILL_LINE_ITEM_ARCHIVED = 278; - /** - * Backfill line item comanion delivery option ENUM value. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION = 258; - */ - const BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION = 258; - /** - * Localized Backfill line item comanion delivery option name. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 259; - */ - const BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 259; - /** - * The computed status of the BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_COMPUTED_STATUS = 296; - */ - const BACKFILL_LINE_ITEM_COMPUTED_STATUS = 296; - /** - * The localized name of the computed status of the BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME = 297; - */ - const BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME = 297; - /** - * The contracted units bought for the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY = 280; - */ - const BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY = 280; - /** - * The cost per unit of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_COST_PER_UNIT = 272; - */ - const BACKFILL_LINE_ITEM_COST_PER_UNIT = 272; - /** - * Backfill line item cost type ENUM value. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_COST_TYPE = 264; - */ - const BACKFILL_LINE_ITEM_COST_TYPE = 264; - /** - * Localized Backfill line item cost type name. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_COST_TYPE_NAME = 265; - */ - const BACKFILL_LINE_ITEM_COST_TYPE_NAME = 265; - /** - * Represent the end date of a Backfill creative associated with a Backfill - * line item - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CREATIVE_END_DATE = 381; - */ - const BACKFILL_LINE_ITEM_CREATIVE_END_DATE = 381; - /** - * The creative rotation type of the BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE = 290; - */ - const BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE = 290; - /** - * The localized name of the creative rotation type of the BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 291; - */ - const BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 291; - /** - * Represent the start date of a Backfill creative associated with a - * Backfill line item - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CREATIVE_START_DATE = 380; - */ - const BACKFILL_LINE_ITEM_CREATIVE_START_DATE = 380; - /** - * The 3 letter currency code of the Backfill line item - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CURRENCY_CODE = 288; - */ - const BACKFILL_LINE_ITEM_CURRENCY_CODE = 288; - /** - * The progress made for the delivery of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_DELIVERY_INDICATOR = 274; - */ - const BACKFILL_LINE_ITEM_DELIVERY_INDICATOR = 274; - /** - * The delivery rate type of the BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE = 292; - */ - const BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE = 292; - /** - * The localized name of the delivery rate type of the BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 293; - */ - const BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 293; - /** - * The discount of the BackfillLineItem in whole units in the - * BackfillLineItem's currency code, or if unspecified the Network's - * currency code. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE = 294; - */ - const BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE = 294; - /** - * The discount of the BackfillLineItem in percentage. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE = 295; - */ - const BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE = 295; - /** - * The end date of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_END_DATE = 267; - */ - const BACKFILL_LINE_ITEM_END_DATE = 267; - /** - * The end date and time of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_END_DATE_TIME = 269; - */ - const BACKFILL_LINE_ITEM_END_DATE_TIME = 269; - /** - * The ENUM value of the environment a Backfill line item is targeting. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE = 302; - */ - const BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE = 302; - /** - * The localized name of the environment a Backfill line item is targeting. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME = 257; - */ - const BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME = 257; - /** - * The deal ID of the Backfill line item. Set for Programmatic Direct - * campaigns. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID = 285; - */ - const BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID = 285; - /** - * The external ID of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_EXTERNAL_ID = 273; - */ - const BACKFILL_LINE_ITEM_EXTERNAL_ID = 273; - /** - * The frequency cap of the Backfill line item (descriptive string). - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_FREQUENCY_CAP = 303; - */ - const BACKFILL_LINE_ITEM_FREQUENCY_CAP = 303; - /** - * Backfill line item ID. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_ID = 298; - */ - const BACKFILL_LINE_ITEM_ID = 298; - /** - * The application that last modified the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP = 289; - */ - const BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP = 289; - /** - * The total number of clicks delivered of the lifetime of the Backfill line - * item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_LIFETIME_CLICKS = 283; - */ - const BACKFILL_LINE_ITEM_LIFETIME_CLICKS = 283; - /** - * The total number of impressions delivered over the lifetime of the - * Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS = 282; - */ - const BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS = 282; - /** - * The total number of viewable impressions delivered over the lifetime of - * the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 284; - */ - const BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 284; - /** - * Whether or not the Backfill line item is Makegood. Makegood refers to - * free inventory offered to buyers to compensate for mistakes or - * under-delivery in the original campaigns. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_MAKEGOOD = 276; - */ - const BACKFILL_LINE_ITEM_MAKEGOOD = 276; - /** - * Backfill line item name. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_NAME = 299; - */ - const BACKFILL_LINE_ITEM_NAME = 299; - /** - * The cost of booking for the Backfill line item (non-CPD). - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE = 286; - */ - const BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE = 286; - /** - * Whether a Backfill line item is eligible for opitimization. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_OPTIMIZABLE = 277; - */ - const BACKFILL_LINE_ITEM_OPTIMIZABLE = 277; - /** - * Goal type ENUM value of the primary goal of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE = 262; - */ - const BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE = 262; - /** - * Localized goal type name of the primary goal of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 263; - */ - const BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 263; - /** - * Unit type ENUM value of the primary goal of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 260; - */ - const BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 260; - /** - * Localized unit type name of the primary goal of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 261; - */ - const BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 261; - /** - * The priority of this Backfill line item as a value between 1 and 16. - * In general, a lower priority means more serving priority for the - * Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_PRIORITY = 266; - */ - const BACKFILL_LINE_ITEM_PRIORITY = 266; - /** - * ENUM value describing the state of inventory reservation for the - * BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_RESERVATION_STATUS = 306; - */ - const BACKFILL_LINE_ITEM_RESERVATION_STATUS = 306; - /** - * Localized string describing the state of inventory reservation for the - * BackfillLineItem. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME = 307; - */ - const BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME = 307; - /** - * The start date of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_START_DATE = 268; - */ - const BACKFILL_LINE_ITEM_START_DATE = 268; - /** - * The start date and time of the Backfill line item. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_START_DATE_TIME = 270; - */ - const BACKFILL_LINE_ITEM_START_DATE_TIME = 270; - /** - * Backfill line item type ENUM value. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_TYPE = 300; - */ - const BACKFILL_LINE_ITEM_TYPE = 300; - /** - * Localized Backfill line item type name. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_TYPE_NAME = 301; - */ - const BACKFILL_LINE_ITEM_TYPE_NAME = 301; - /** - * Whether the Backfill line item end time and end date is set to - * effectively never end. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_UNLIMITED_END = 271; - */ - const BACKFILL_LINE_ITEM_UNLIMITED_END = 271; - /** - * The artificial cost per unit used by the Ad server to help rank - * inventory. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT = 275; - */ - const BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT = 275; - /** - * The web property code used for dynamic allocation Backfill line items. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE = 287; - */ - const BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE = 287; - /** - * The ID of Backfill creative, includes regular creatives, and master and - * companions in case of creative sets - * - * Generated from protobuf enum BACKFILL_MASTER_COMPANION_CREATIVE_ID = 372; - */ - const BACKFILL_MASTER_COMPANION_CREATIVE_ID = 372; - /** - * Name of Backfill creative, includes regular creatives, and master and - * companions in case of creative sets - * - * Generated from protobuf enum BACKFILL_MASTER_COMPANION_CREATIVE_NAME = 373; - */ - const BACKFILL_MASTER_COMPANION_CREATIVE_NAME = 373; - /** - * Backfill order agency. - * - * Generated from protobuf enum BACKFILL_ORDER_AGENCY = 313; - */ - const BACKFILL_ORDER_AGENCY = 313; - /** - * Backfill order agency ID. - * - * Generated from protobuf enum BACKFILL_ORDER_AGENCY_ID = 314; - */ - const BACKFILL_ORDER_AGENCY_ID = 314; - /** - * Backfill order booked CPC. - * - * Generated from protobuf enum BACKFILL_ORDER_BOOKED_CPC = 315; - */ - const BACKFILL_ORDER_BOOKED_CPC = 315; - /** - * Backfill order booked CPM. - * - * Generated from protobuf enum BACKFILL_ORDER_BOOKED_CPM = 316; - */ - const BACKFILL_ORDER_BOOKED_CPM = 316; - /** - * Backfill order delivery status ENUM value. - * - * Generated from protobuf enum BACKFILL_ORDER_DELIVERY_STATUS = 340; - */ - const BACKFILL_ORDER_DELIVERY_STATUS = 340; - /** - * Backfill order delivery status localized name. - * - * Generated from protobuf enum BACKFILL_ORDER_DELIVERY_STATUS_NAME = 341; - */ - const BACKFILL_ORDER_DELIVERY_STATUS_NAME = 341; - /** - * Backfill order end date. - * - * Generated from protobuf enum BACKFILL_ORDER_END_DATE = 317; - */ - const BACKFILL_ORDER_END_DATE = 317; - /** - * Backfill order end date and time. - * - * Generated from protobuf enum BACKFILL_ORDER_END_DATE_TIME = 319; - */ - const BACKFILL_ORDER_END_DATE_TIME = 319; - /** - * Backfill order external ID. - * - * Generated from protobuf enum BACKFILL_ORDER_EXTERNAL_ID = 320; - */ - const BACKFILL_ORDER_EXTERNAL_ID = 320; - /** - * Backfill order id. - * - * Generated from protobuf enum BACKFILL_ORDER_ID = 338; - */ - const BACKFILL_ORDER_ID = 338; - /** - * Backfill order labels. - * - * Generated from protobuf enum BACKFILL_ORDER_LABELS = 334; - */ - const BACKFILL_ORDER_LABELS = 334; - /** - * Backfill order labels IDs. - * - * Generated from protobuf enum BACKFILL_ORDER_LABEL_IDS = 335; - */ - const BACKFILL_ORDER_LABEL_IDS = 335; - /** - * Backfill order lifetime clicks. - * - * Generated from protobuf enum BACKFILL_ORDER_LIFETIME_CLICKS = 322; - */ - const BACKFILL_ORDER_LIFETIME_CLICKS = 322; - /** - * Backfill order lifetime impressions. - * - * Generated from protobuf enum BACKFILL_ORDER_LIFETIME_IMPRESSIONS = 323; - */ - const BACKFILL_ORDER_LIFETIME_IMPRESSIONS = 323; - /** - * Backfill order name. - * - * Generated from protobuf enum BACKFILL_ORDER_NAME = 339; - */ - const BACKFILL_ORDER_NAME = 339; - /** - * Backfill order PO number. - * - * Generated from protobuf enum BACKFILL_ORDER_PO_NUMBER = 324; - */ - const BACKFILL_ORDER_PO_NUMBER = 324; - /** - * Whether the Backfill order is programmatic. - * - * Generated from protobuf enum BACKFILL_ORDER_PROGRAMMATIC = 321; - */ - const BACKFILL_ORDER_PROGRAMMATIC = 321; - /** - * Backfill order sales person. - * - * Generated from protobuf enum BACKFILL_ORDER_SALESPERSON = 325; - */ - const BACKFILL_ORDER_SALESPERSON = 325; - /** - * Backfill order secondary sales people. - * - * Generated from protobuf enum BACKFILL_ORDER_SECONDARY_SALESPEOPLE = 329; - */ - const BACKFILL_ORDER_SECONDARY_SALESPEOPLE = 329; - /** - * Backfill order secondary sales people ID. - * - * Generated from protobuf enum BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID = 328; - */ - const BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID = 328; - /** - * Backfill order secondary traffickers. - * - * Generated from protobuf enum BACKFILL_ORDER_SECONDARY_TRAFFICKERS = 331; - */ - const BACKFILL_ORDER_SECONDARY_TRAFFICKERS = 331; - /** - * Backfill order secondary traffickers ID. - * - * Generated from protobuf enum BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID = 330; - */ - const BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID = 330; - /** - * Backfill order start date. - * - * Generated from protobuf enum BACKFILL_ORDER_START_DATE = 332; - */ - const BACKFILL_ORDER_START_DATE = 332; - /** - * Backfill order start date and time. - * - * Generated from protobuf enum BACKFILL_ORDER_START_DATE_TIME = 333; - */ - const BACKFILL_ORDER_START_DATE_TIME = 333; - /** - * Backfill order trafficker. - * - * Generated from protobuf enum BACKFILL_ORDER_TRAFFICKER = 326; - */ - const BACKFILL_ORDER_TRAFFICKER = 326; - /** - * Backfill order trafficker ID. - * - * Generated from protobuf enum BACKFILL_ORDER_TRAFFICKER_ID = 327; - */ - const BACKFILL_ORDER_TRAFFICKER_ID = 327; - /** - * Whether the Backfill order end time and end date is set to effectively - * never end. - * - * Generated from protobuf enum BACKFILL_ORDER_UNLIMITED_END = 318; - */ - const BACKFILL_ORDER_UNLIMITED_END = 318; - /** - * The ID of the buyer on a backfill programmatic proposal. - * - * Generated from protobuf enum BACKFILL_PROGRAMMATIC_BUYER_ID = 336; - */ - const BACKFILL_PROGRAMMATIC_BUYER_ID = 336; - /** - * The name of the buyer on a backfill programmatic proposal. - * - * Generated from protobuf enum BACKFILL_PROGRAMMATIC_BUYER_NAME = 337; - */ - const BACKFILL_PROGRAMMATIC_BUYER_NAME = 337; - /** - * The amount of information about the Publisher's page sent to the buyer - * who purchased the impressions. - * - * Generated from protobuf enum BRANDING_TYPE = 383; - */ - const BRANDING_TYPE = 383; - /** - * The localized version of branding type, the amount of information about - * the Publisher's page sent to the buyer who purchased the impressions. - * - * Generated from protobuf enum BRANDING_TYPE_NAME = 384; - */ - const BRANDING_TYPE_NAME = 384; - /** - * Browser category. - * - * Generated from protobuf enum BROWSER_CATEGORY = 119; - */ - const BROWSER_CATEGORY = 119; - /** - * Browser category name. - * - * Generated from protobuf enum BROWSER_CATEGORY_NAME = 120; - */ - const BROWSER_CATEGORY_NAME = 120; - /** - * The ID of the browser. - * - * Generated from protobuf enum BROWSER_ID = 235; - */ - const BROWSER_ID = 235; - /** - * The name of the browser. - * - * Generated from protobuf enum BROWSER_NAME = 236; - */ - const BROWSER_NAME = 236; - /** - * Mobile carrier ID. - * - * Generated from protobuf enum CARRIER_ID = 369; - */ - const CARRIER_ID = 369; - /** - * Name of the mobile carrier. - * - * Generated from protobuf enum CARRIER_NAME = 368; - */ - const CARRIER_NAME = 368; - /** - * The ID of an advertiser, classified by Google, associated with a creative - * transacted - * - * Generated from protobuf enum CLASSIFIED_ADVERTISER_ID = 133; - */ - const CLASSIFIED_ADVERTISER_ID = 133; - /** - * The name of an advertiser, classified by Google, associated with a - * creative transacted - * - * Generated from protobuf enum CLASSIFIED_ADVERTISER_NAME = 134; - */ - const CLASSIFIED_ADVERTISER_NAME = 134; - /** - * ID of the brand, as classified by Google, - * - * Generated from protobuf enum CLASSIFIED_BRAND_ID = 243; - */ - const CLASSIFIED_BRAND_ID = 243; - /** - * Name of the brand, as classified by Google, - * - * Generated from protobuf enum CLASSIFIED_BRAND_NAME = 244; - */ - const CLASSIFIED_BRAND_NAME = 244; - /** - * ID of the video content served. - * - * Generated from protobuf enum CONTENT_ID = 246; - */ - const CONTENT_ID = 246; - /** - * Name of the video content served. - * - * Generated from protobuf enum CONTENT_NAME = 247; - */ - const CONTENT_NAME = 247; - /** - * The criteria ID of the country in which the ad served. - * - * Generated from protobuf enum COUNTRY_ID = 11; - */ - const COUNTRY_ID = 11; - /** - * The name of the country in which the ad served. - * - * Generated from protobuf enum COUNTRY_NAME = 12; - */ - const COUNTRY_NAME = 12; - /** - * Enum value of creative billing type - * - * Generated from protobuf enum CREATIVE_BILLING_TYPE = 366; - */ - const CREATIVE_BILLING_TYPE = 366; - /** - * Localized string value of creative billing type - * - * Generated from protobuf enum CREATIVE_BILLING_TYPE_NAME = 367; - */ - const CREATIVE_BILLING_TYPE_NAME = 367; - /** - * Represents the click-through URL of a creative - * - * Generated from protobuf enum CREATIVE_CLICK_THROUGH_URL = 174; - */ - const CREATIVE_CLICK_THROUGH_URL = 174; - /** - * The ID of a creative - * - * Generated from protobuf enum CREATIVE_ID = 138; - */ - const CREATIVE_ID = 138; - /** - * Creative name - * - * Generated from protobuf enum CREATIVE_NAME = 139; - */ - const CREATIVE_NAME = 139; - /** - * Creative technology ENUM - * - * Generated from protobuf enum CREATIVE_TECHNOLOGY = 148; - */ - const CREATIVE_TECHNOLOGY = 148; - /** - * Creative technology locallized name - * - * Generated from protobuf enum CREATIVE_TECHNOLOGY_NAME = 149; - */ - const CREATIVE_TECHNOLOGY_NAME = 149; - /** - * Third party vendor name of a creative - * - * Generated from protobuf enum CREATIVE_THIRD_PARTY_VENDOR = 361; - */ - const CREATIVE_THIRD_PARTY_VENDOR = 361; - /** - * Enum value of creative type - * - * Generated from protobuf enum CREATIVE_TYPE = 344; - */ - const CREATIVE_TYPE = 344; - /** - * Localized string name of creative type - * - * Generated from protobuf enum CREATIVE_TYPE_NAME = 345; - */ - const CREATIVE_TYPE_NAME = 345; - /** - * Breaks down reporting data by date. - * - * Generated from protobuf enum DATE = 3; - */ - const DATE = 3; - /** - * Breaks down reporting data by day of the week. Monday is 1 and 7 is - * Sunday. - * - * Generated from protobuf enum DAY_OF_WEEK = 4; - */ - const DAY_OF_WEEK = 4; - /** - * Demand channel. - * - * Generated from protobuf enum DEMAND_CHANNEL = 9; - */ - const DEMAND_CHANNEL = 9; - /** - * Demand channel name. - * - * Generated from protobuf enum DEMAND_CHANNEL_NAME = 10; - */ - const DEMAND_CHANNEL_NAME = 10; - /** - * Demand subchannel. - * - * Generated from protobuf enum DEMAND_SUBCHANNEL = 22; - */ - const DEMAND_SUBCHANNEL = 22; - /** - * Demand subchannel name. - * - * Generated from protobuf enum DEMAND_SUBCHANNEL_NAME = 23; - */ - const DEMAND_SUBCHANNEL_NAME = 23; - /** - * The device on which an ad was served. - * - * Generated from protobuf enum DEVICE = 226; - */ - const DEVICE = 226; - /** - * The device category to which an ad is being targeted. - * - * Generated from protobuf enum DEVICE_CATEGORY = 15; - */ - const DEVICE_CATEGORY = 15; - /** - * The name of the category of device (smartphone, feature phone, tablet, or - * desktop) to which an ad is being targeted. - * - * Generated from protobuf enum DEVICE_CATEGORY_NAME = 16; - */ - const DEVICE_CATEGORY_NAME = 16; - /** - * The localized name of the device on which an ad was served. - * - * Generated from protobuf enum DEVICE_NAME = 225; - */ - const DEVICE_NAME = 225; - /** - * ID of the yield partner as classified by Google - * - * Generated from protobuf enum EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; - */ - const EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; - /** - * Name of the yield partner as classified by Google - * - * Generated from protobuf enum EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; - */ - const EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; - /** - * The ID of the first look pricing rule. - * - * Generated from protobuf enum FIRST_LOOK_PRICING_RULE_ID = 248; - */ - const FIRST_LOOK_PRICING_RULE_ID = 248; - /** - * The name of the first look pricing rule. - * - * Generated from protobuf enum FIRST_LOOK_PRICING_RULE_NAME = 249; - */ - const FIRST_LOOK_PRICING_RULE_NAME = 249; - /** - * Breaks down reporting data by hour in one day. - * - * Generated from protobuf enum HOUR = 100; - */ - const HOUR = 100; - /** - * The interaction type of an ad. - * - * Generated from protobuf enum INTERACTION_TYPE = 223; - */ - const INTERACTION_TYPE = 223; - /** - * The localized name of the interaction type of an ad. - * - * Generated from protobuf enum INTERACTION_TYPE_NAME = 224; - */ - const INTERACTION_TYPE_NAME = 224; - /** - * Inventory format. - * The format of the ad unit (e.g, banner) where the ad was requested. - * - * Generated from protobuf enum INVENTORY_FORMAT = 17; - */ - const INVENTORY_FORMAT = 17; - /** - * Inventory format name. - * The format of the ad unit (e.g, banner) where the ad was requested. - * - * Generated from protobuf enum INVENTORY_FORMAT_NAME = 18; - */ - const INVENTORY_FORMAT_NAME = 18; - /** - * Inventory type. - * The kind of web page or device where the ad was requested. - * - * Generated from protobuf enum INVENTORY_TYPE = 19; - */ - const INVENTORY_TYPE = 19; - /** - * Inventory type name. - * The kind of web page or device where the ad was requested. - * - * Generated from protobuf enum INVENTORY_TYPE_NAME = 20; - */ - const INVENTORY_TYPE_NAME = 20; - /** - * Whether traffic is Adx Direct. - * - * Generated from protobuf enum IS_ADX_DIRECT = 382; - */ - const IS_ADX_DIRECT = 382; - /** - * Whether traffic is First Look. - * - * Generated from protobuf enum IS_FIRST_LOOK_DEAL = 401; - */ - const IS_FIRST_LOOK_DEAL = 401; - /** - * The Custom Targeting Value ID - * - * Generated from protobuf enum KEY_VALUES_ID = 214; - */ - const KEY_VALUES_ID = 214; - /** - * The Custom Targeting Value formatted like = - * - * Generated from protobuf enum KEY_VALUES_NAME = 215; - */ - const KEY_VALUES_NAME = 215; - /** - * Whether a Line item is archived. - * - * Generated from protobuf enum LINE_ITEM_ARCHIVED = 188; - */ - const LINE_ITEM_ARCHIVED = 188; - /** - * Line item comanion delivery option ENUM value. - * - * Generated from protobuf enum LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; - */ - const LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; - /** - * Localized line item comanion delivery option name. - * - * Generated from protobuf enum LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; - */ - const LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; - /** - * The computed status of the LineItem. - * - * Generated from protobuf enum LINE_ITEM_COMPUTED_STATUS = 250; - */ - const LINE_ITEM_COMPUTED_STATUS = 250; - /** - * The localized name of the computed status of the LineItem. - * - * Generated from protobuf enum LINE_ITEM_COMPUTED_STATUS_NAME = 251; - */ - const LINE_ITEM_COMPUTED_STATUS_NAME = 251; - /** - * The contracted units bought for the Line item. - * - * Generated from protobuf enum LINE_ITEM_CONTRACTED_QUANTITY = 92; - */ - const LINE_ITEM_CONTRACTED_QUANTITY = 92; - /** - * The cost per unit of the Line item. - * - * Generated from protobuf enum LINE_ITEM_COST_PER_UNIT = 85; - */ - const LINE_ITEM_COST_PER_UNIT = 85; - /** - * Line item cost type ENUM value. - * - * Generated from protobuf enum LINE_ITEM_COST_TYPE = 212; - */ - const LINE_ITEM_COST_TYPE = 212; - /** - * Localized line item cost type name. - * - * Generated from protobuf enum LINE_ITEM_COST_TYPE_NAME = 213; - */ - const LINE_ITEM_COST_TYPE_NAME = 213; - /** - * Represent the end date of a creative associated with line item - * - * Generated from protobuf enum LINE_ITEM_CREATIVE_END_DATE = 176; - */ - const LINE_ITEM_CREATIVE_END_DATE = 176; - /** - * The creative rotation type of the LineItem. - * - * Generated from protobuf enum LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; - */ - const LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; - /** - * The localized name of the creative rotation type of the LineItem. - * - * Generated from protobuf enum LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; - */ - const LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; - /** - * Represent the start date of a creative associated with line item - * - * Generated from protobuf enum LINE_ITEM_CREATIVE_START_DATE = 175; - */ - const LINE_ITEM_CREATIVE_START_DATE = 175; - /** - * The 3 letter currency code of the Line Item - * - * Generated from protobuf enum LINE_ITEM_CURRENCY_CODE = 180; - */ - const LINE_ITEM_CURRENCY_CODE = 180; - /** - * The progress made for the delivery of the Line item. - * - * Generated from protobuf enum LINE_ITEM_DELIVERY_INDICATOR = 87; - */ - const LINE_ITEM_DELIVERY_INDICATOR = 87; - /** - * The delivery rate type of the LineItem. - * - * Generated from protobuf enum LINE_ITEM_DELIVERY_RATE_TYPE = 191; - */ - const LINE_ITEM_DELIVERY_RATE_TYPE = 191; - /** - * The localized name of the delivery rate type of the LineItem. - * - * Generated from protobuf enum LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; - */ - const LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; - /** - * The discount of the LineItem in whole units in the LineItem's currency - * code, or if unspecified the Network's currency code. - * - * Generated from protobuf enum LINE_ITEM_DISCOUNT_ABSOLUTE = 195; - */ - const LINE_ITEM_DISCOUNT_ABSOLUTE = 195; - /** - * The discount of the LineItem in percentage. - * - * Generated from protobuf enum LINE_ITEM_DISCOUNT_PERCENTAGE = 196; - */ - const LINE_ITEM_DISCOUNT_PERCENTAGE = 196; - /** - * The end date of the Line item. - * - * Generated from protobuf enum LINE_ITEM_END_DATE = 81; - */ - const LINE_ITEM_END_DATE = 81; - /** - * The end date and time of the Line item. - * - * Generated from protobuf enum LINE_ITEM_END_DATE_TIME = 83; - */ - const LINE_ITEM_END_DATE_TIME = 83; - /** - * The ENUM value of the environment a LineItem is targeting. - * - * Generated from protobuf enum LINE_ITEM_ENVIRONMENT_TYPE = 201; - */ - const LINE_ITEM_ENVIRONMENT_TYPE = 201; - /** - * The localized name of the environment a LineItem is targeting. - * - * Generated from protobuf enum LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; - */ - const LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; - /** - * The deal ID of the Line item. Set for Programmatic Direct campaigns. - * - * Generated from protobuf enum LINE_ITEM_EXTERNAL_DEAL_ID = 97; - */ - const LINE_ITEM_EXTERNAL_DEAL_ID = 97; - /** - * The external ID of the Line item. - * - * Generated from protobuf enum LINE_ITEM_EXTERNAL_ID = 86; - */ - const LINE_ITEM_EXTERNAL_ID = 86; - /** - * The frequency cap of the Line item (descriptive string). - * - * Generated from protobuf enum LINE_ITEM_FREQUENCY_CAP = 256; - */ - const LINE_ITEM_FREQUENCY_CAP = 256; - /** - * Line item ID. - * - * Generated from protobuf enum LINE_ITEM_ID = 1; - */ - const LINE_ITEM_ID = 1; - /** - * The application that last modified the Line Item. - * - * Generated from protobuf enum LINE_ITEM_LAST_MODIFIED_BY_APP = 181; - */ - const LINE_ITEM_LAST_MODIFIED_BY_APP = 181; - /** - * The total number of clicks delivered of the lifetime of the Line item. - * - * Generated from protobuf enum LINE_ITEM_LIFETIME_CLICKS = 95; - */ - const LINE_ITEM_LIFETIME_CLICKS = 95; - /** - * The total number of impressions delivered over the lifetime of the - * Line item. - * - * Generated from protobuf enum LINE_ITEM_LIFETIME_IMPRESSIONS = 94; - */ - const LINE_ITEM_LIFETIME_IMPRESSIONS = 94; - /** - * The total number of viewable impressions delivered over the lifetime of - * the Line item. - * - * Generated from protobuf enum LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; - */ - const LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; - /** - * Whether or not the Line item is Makegood. Makegood refers to free - * inventory offered to buyers to compensate for mistakes or under-delivery - * in the original campaigns. - * - * Generated from protobuf enum LINE_ITEM_MAKEGOOD = 89; - */ - const LINE_ITEM_MAKEGOOD = 89; - /** - * Line item Name. - * - * Generated from protobuf enum LINE_ITEM_NAME = 2; - */ - const LINE_ITEM_NAME = 2; - /** - * The cost of booking for the Line item (non-CPD). - * - * Generated from protobuf enum LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; - */ - const LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; - /** - * Whether a Line item is eligible for opitimization. - * - * Generated from protobuf enum LINE_ITEM_OPTIMIZABLE = 90; - */ - const LINE_ITEM_OPTIMIZABLE = 90; - /** - * Goal type ENUM value of the primary goal of the line item. - * - * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_TYPE = 210; - */ - const LINE_ITEM_PRIMARY_GOAL_TYPE = 210; - /** - * Localized goal type name of the primary goal of the line item. - * - * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; - */ - const LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; - /** - * The total number of impressions or clicks that are reserved for a - * line item. For line items of type BULK or PRICE_PRIORITY, this represents - * the number of remaining impressions reserved. If the line item has an - * impression cap goal, this represents the number of impressions or - * conversions that the line item will stop serving at if reached. - * - * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; - */ - const LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; - /** - * The percentage of impressions or clicks that are reserved for a - * line item. For line items of type SPONSORSHIP, this represents the - * percentage of available impressions reserved. For line items of type - * NETWORK or HOUSE, this represents the percentage of remaining impressions - * reserved. - * - * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; - */ - const LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; - /** - * Unit type ENUM value of the primary goal of the line item. - * - * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; - */ - const LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; - /** - * Localized unit type name of the primary goal of the line item. - * - * Generated from protobuf enum LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; - */ - const LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; - /** - * The priority of this Line item as a value between 1 and 16. - * In general, a lower priority means more serving priority for the - * Line item. - * - * Generated from protobuf enum LINE_ITEM_PRIORITY = 24; - */ - const LINE_ITEM_PRIORITY = 24; - /** - * ENUM value describing the state of inventory reservation for the - * LineItem. - * - * Generated from protobuf enum LINE_ITEM_RESERVATION_STATUS = 304; - */ - const LINE_ITEM_RESERVATION_STATUS = 304; - /** - * Localized string describing the state of inventory reservation for the - * LineItem. - * - * Generated from protobuf enum LINE_ITEM_RESERVATION_STATUS_NAME = 305; - */ - const LINE_ITEM_RESERVATION_STATUS_NAME = 305; - /** - * The start date of the Line item. - * - * Generated from protobuf enum LINE_ITEM_START_DATE = 82; - */ - const LINE_ITEM_START_DATE = 82; - /** - * The start date and time of the Line item. - * - * Generated from protobuf enum LINE_ITEM_START_DATE_TIME = 84; - */ - const LINE_ITEM_START_DATE_TIME = 84; - /** - * Line item type ENUM value. - * - * Generated from protobuf enum LINE_ITEM_TYPE = 193; - */ - const LINE_ITEM_TYPE = 193; - /** - * Localized line item type name. - * - * Generated from protobuf enum LINE_ITEM_TYPE_NAME = 194; - */ - const LINE_ITEM_TYPE_NAME = 194; - /** - * Whether the Line item end time and end date is set to effectively never - * end. - * - * Generated from protobuf enum LINE_ITEM_UNLIMITED_END = 187; - */ - const LINE_ITEM_UNLIMITED_END = 187; - /** - * The artificial cost per unit used by the Ad server to help rank - * inventory. - * - * Generated from protobuf enum LINE_ITEM_VALUE_COST_PER_UNIT = 88; - */ - const LINE_ITEM_VALUE_COST_PER_UNIT = 88; - /** - * The web property code used for dynamic allocation Line Items. - * - * Generated from protobuf enum LINE_ITEM_WEB_PROPERTY_CODE = 179; - */ - const LINE_ITEM_WEB_PROPERTY_CODE = 179; - /** - * The ID of creative, includes regular creatives, and master and companions - * in case of creative sets - * - * Generated from protobuf enum MASTER_COMPANION_CREATIVE_ID = 140; - */ - const MASTER_COMPANION_CREATIVE_ID = 140; - /** - * Name of creative, includes regular creatives, and master and companions - * in case of creative sets - * - * Generated from protobuf enum MASTER_COMPANION_CREATIVE_NAME = 141; - */ - const MASTER_COMPANION_CREATIVE_NAME = 141; - /** - * Whether the mobile app is free. - * - * Generated from protobuf enum MOBILE_APP_FREE = 128; - */ - const MOBILE_APP_FREE = 128; - /** - * URL of app icon for the mobile app. - * - * Generated from protobuf enum MOBILE_APP_ICON_URL = 129; - */ - const MOBILE_APP_ICON_URL = 129; - /** - * The ID of the Mobile App. - * - * Generated from protobuf enum MOBILE_APP_ID = 123; - */ - const MOBILE_APP_ID = 123; - /** - * The name of the mobile app. - * - * Generated from protobuf enum MOBILE_APP_NAME = 127; - */ - const MOBILE_APP_NAME = 127; - /** - * Ownership status of the mobile app. - * - * Generated from protobuf enum MOBILE_APP_OWNERSHIP_STATUS = 311; - */ - const MOBILE_APP_OWNERSHIP_STATUS = 311; - /** - * Ownership status of the mobile app. - * - * Generated from protobuf enum MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; - */ - const MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; - /** - * The App Store of the mobile app. - * - * Generated from protobuf enum MOBILE_APP_STORE = 125; - */ - const MOBILE_APP_STORE = 125; - /** - * The localized name of the mobile app store. - * - * Generated from protobuf enum MOBILE_APP_STORE_NAME = 245; - */ - const MOBILE_APP_STORE_NAME = 245; - /** - * Mobile inventory type. - * Identifies whether a mobile ad came from a regular web page, an AMP web - * page, or a mobile app. - * Values match the Inventory type dimension available in the Overview Home - * dashboard. Note: Video takes precedence over any other value, for - * example, if there is an in-stream video impression on a desktop device, - * it will be attributed to in-stream video and not desktop web. - * - * Generated from protobuf enum MOBILE_INVENTORY_TYPE = 99; - */ - const MOBILE_INVENTORY_TYPE = 99; - /** - * Mobile inventory type name. - * Identifies whether a mobile ad came from a regular web page, an AMP web - * page, or a mobile app. - * - * Generated from protobuf enum MOBILE_INVENTORY_TYPE_NAME = 21; - */ - const MOBILE_INVENTORY_TYPE_NAME = 21; - /** - * SDK version of the mobile device. - * - * Generated from protobuf enum MOBILE_SDK_VERSION_NAME = 130; - */ - const MOBILE_SDK_VERSION_NAME = 130; - /** - * Breaks down reporting data by month and year. - * - * Generated from protobuf enum MONTH_YEAR = 6; - */ - const MONTH_YEAR = 6; - /** - * Native ad format ID. - * - * Generated from protobuf enum NATIVE_AD_FORMAT_ID = 255; - */ - const NATIVE_AD_FORMAT_ID = 255; - /** - * Native ad format name. - * - * Generated from protobuf enum NATIVE_AD_FORMAT_NAME = 254; - */ - const NATIVE_AD_FORMAT_NAME = 254; - /** - * Native style ID. - * - * Generated from protobuf enum NATIVE_STYLE_ID = 253; - */ - const NATIVE_STYLE_ID = 253; - /** - * Native style name. - * - * Generated from protobuf enum NATIVE_STYLE_NAME = 252; - */ - const NATIVE_STYLE_NAME = 252; - /** - * Operating system category. - * - * Generated from protobuf enum OPERATING_SYSTEM_CATEGORY = 117; - */ - const OPERATING_SYSTEM_CATEGORY = 117; - /** - * Operating system category name. - * - * Generated from protobuf enum OPERATING_SYSTEM_CATEGORY_NAME = 118; - */ - const OPERATING_SYSTEM_CATEGORY_NAME = 118; - /** - * ID of the operating system version. - * - * Generated from protobuf enum OPERATING_SYSTEM_VERSION_ID = 238; - */ - const OPERATING_SYSTEM_VERSION_ID = 238; - /** - * Details of the operating system, including version. - * - * Generated from protobuf enum OPERATING_SYSTEM_VERSION_NAME = 237; - */ - const OPERATING_SYSTEM_VERSION_NAME = 237; - /** - * Order agency. - * - * Generated from protobuf enum ORDER_AGENCY = 150; - */ - const ORDER_AGENCY = 150; - /** - * Order agency ID. - * - * Generated from protobuf enum ORDER_AGENCY_ID = 151; - */ - const ORDER_AGENCY_ID = 151; - /** - * Order booked CPC. - * - * Generated from protobuf enum ORDER_BOOKED_CPC = 152; - */ - const ORDER_BOOKED_CPC = 152; - /** - * Order booked CPM. - * - * Generated from protobuf enum ORDER_BOOKED_CPM = 153; - */ - const ORDER_BOOKED_CPM = 153; - /** - * Order delivery status ENUM value. - * - * Generated from protobuf enum ORDER_DELIVERY_STATUS = 231; - */ - const ORDER_DELIVERY_STATUS = 231; - /** - * Order delivery status localized name. - * - * Generated from protobuf enum ORDER_DELIVERY_STATUS_NAME = 239; - */ - const ORDER_DELIVERY_STATUS_NAME = 239; - /** - * Order end date. - * - * Generated from protobuf enum ORDER_END_DATE = 154; - */ - const ORDER_END_DATE = 154; - /** - * Order end date and time. - * - * Generated from protobuf enum ORDER_END_DATE_TIME = 155; - */ - const ORDER_END_DATE_TIME = 155; - /** - * Order external ID. - * - * Generated from protobuf enum ORDER_EXTERNAL_ID = 156; - */ - const ORDER_EXTERNAL_ID = 156; - /** - * Order id. - * - * Generated from protobuf enum ORDER_ID = 7; - */ - const ORDER_ID = 7; - /** - * Order labels. - * - * Generated from protobuf enum ORDER_LABELS = 170; - */ - const ORDER_LABELS = 170; - /** - * Order labels IDs. - * - * Generated from protobuf enum ORDER_LABEL_IDS = 171; - */ - const ORDER_LABEL_IDS = 171; - /** - * Order lifetime clicks. - * - * Generated from protobuf enum ORDER_LIFETIME_CLICKS = 158; - */ - const ORDER_LIFETIME_CLICKS = 158; - /** - * Order lifetime impressions. - * - * Generated from protobuf enum ORDER_LIFETIME_IMPRESSIONS = 159; - */ - const ORDER_LIFETIME_IMPRESSIONS = 159; - /** - * Order name. - * - * Generated from protobuf enum ORDER_NAME = 8; - */ - const ORDER_NAME = 8; - /** - * Order PO number. - * - * Generated from protobuf enum ORDER_PO_NUMBER = 160; - */ - const ORDER_PO_NUMBER = 160; - /** - * Whether the Order is programmatic. - * - * Generated from protobuf enum ORDER_PROGRAMMATIC = 157; - */ - const ORDER_PROGRAMMATIC = 157; - /** - * Order sales person. - * - * Generated from protobuf enum ORDER_SALESPERSON = 161; - */ - const ORDER_SALESPERSON = 161; - /** - * Order secondary sales people. - * - * Generated from protobuf enum ORDER_SECONDARY_SALESPEOPLE = 164; - */ - const ORDER_SECONDARY_SALESPEOPLE = 164; - /** - * Order secondary sales people ID. - * - * Generated from protobuf enum ORDER_SECONDARY_SALESPEOPLE_ID = 165; - */ - const ORDER_SECONDARY_SALESPEOPLE_ID = 165; - /** - * Order secondary traffickers. - * - * Generated from protobuf enum ORDER_SECONDARY_TRAFFICKERS = 166; - */ - const ORDER_SECONDARY_TRAFFICKERS = 166; - /** - * Order secondary traffickers ID. - * - * Generated from protobuf enum ORDER_SECONDARY_TRAFFICKERS_ID = 167; - */ - const ORDER_SECONDARY_TRAFFICKERS_ID = 167; - /** - * Order start date. - * - * Generated from protobuf enum ORDER_START_DATE = 168; - */ - const ORDER_START_DATE = 168; - /** - * Order start date and time. - * - * Generated from protobuf enum ORDER_START_DATE_TIME = 169; - */ - const ORDER_START_DATE_TIME = 169; - /** - * Order trafficker. - * - * Generated from protobuf enum ORDER_TRAFFICKER = 162; - */ - const ORDER_TRAFFICKER = 162; - /** - * Order trafficker ID. - * - * Generated from protobuf enum ORDER_TRAFFICKER_ID = 163; - */ - const ORDER_TRAFFICKER_ID = 163; - /** - * Whether the Order end time and end date is set to effectively never - * end. - * - * Generated from protobuf enum ORDER_UNLIMITED_END = 203; - */ - const ORDER_UNLIMITED_END = 203; - /** - * Placement ID - * - * Generated from protobuf enum PLACEMENT_ID = 113; - */ - const PLACEMENT_ID = 113; - /** - * The full list of placement IDs associated with the ad unit. - * - * Generated from protobuf enum PLACEMENT_ID_ALL = 144; - */ - const PLACEMENT_ID_ALL = 144; - /** - * Placement name - * - * Generated from protobuf enum PLACEMENT_NAME = 114; - */ - const PLACEMENT_NAME = 114; - /** - * The full list of placement names associated with the ad unit. - * - * Generated from protobuf enum PLACEMENT_NAME_ALL = 145; - */ - const PLACEMENT_NAME_ALL = 145; - /** - * Placement status ENUM value - * - * Generated from protobuf enum PLACEMENT_STATUS = 362; - */ - const PLACEMENT_STATUS = 362; - /** - * The full list of placement status ENUM values associated with the ad - * unit. - * - * Generated from protobuf enum PLACEMENT_STATUS_ALL = 363; - */ - const PLACEMENT_STATUS_ALL = 363; - /** - * Localized placement status name. - * - * Generated from protobuf enum PLACEMENT_STATUS_NAME = 364; - */ - const PLACEMENT_STATUS_NAME = 364; - /** - * The full list of localized placement status names associated with the ad - * unit. - * - * Generated from protobuf enum PLACEMENT_STATUS_NAME_ALL = 365; - */ - const PLACEMENT_STATUS_NAME_ALL = 365; - /** - * The ID of the buyer on a programmatic proposal. - * - * Generated from protobuf enum PROGRAMMATIC_BUYER_ID = 240; - */ - const PROGRAMMATIC_BUYER_ID = 240; - /** - * The name of the buyer on a programmatic proposal. - * - * Generated from protobuf enum PROGRAMMATIC_BUYER_NAME = 241; - */ - const PROGRAMMATIC_BUYER_NAME = 241; - /** - * Programmatic channel. - * The type of transaction that occurred in Ad Exchange. - * - * Generated from protobuf enum PROGRAMMATIC_CHANNEL = 13; - */ - const PROGRAMMATIC_CHANNEL = 13; - /** - * Programmatic channel name. - * The type of transaction that occurred in Ad Exchange. - * - * Generated from protobuf enum PROGRAMMATIC_CHANNEL_NAME = 14; - */ - const PROGRAMMATIC_CHANNEL_NAME = 14; - /** - * The size of a rendered creative, It can differ with the creative's size - * if a creative is shown in an ad slot of a different size. - * - * Generated from protobuf enum RENDERED_CREATIVE_SIZE = 343; - */ - const RENDERED_CREATIVE_SIZE = 343; - /** - * Inventory Requested Ad Sizes dimension - * - * Generated from protobuf enum REQUESTED_AD_SIZES = 352; - */ - const REQUESTED_AD_SIZES = 352; - /** - * Request type ENUM - * - * Generated from protobuf enum REQUEST_TYPE = 146; - */ - const REQUEST_TYPE = 146; - /** - * Request type locallized name - * - * Generated from protobuf enum REQUEST_TYPE_NAME = 147; - */ - const REQUEST_TYPE_NAME = 147; - /** - * Information about domain or subdomains. - * - * Generated from protobuf enum SITE = 387; - */ - const SITE = 387; - /** - * The ID of the browser, device or other environment into which a line item - * or creative was served. - * - * Generated from protobuf enum TARGETING_ID = 232; - */ - const TARGETING_ID = 232; - /** - * Information about the browser, device and other environments into which - * a line item or creative was served. - * - * Generated from protobuf enum TARGETING_NAME = 233; - */ - const TARGETING_NAME = 233; - /** - * The way in which advertisers targeted their ads. - * - * Generated from protobuf enum TARGETING_TYPE = 385; - */ - const TARGETING_TYPE = 385; - /** - * The localized name of the way in which advertisers targeted their ads. - * - * Generated from protobuf enum TARGETING_TYPE_NAME = 386; - */ - const TARGETING_TYPE_NAME = 386; - /** - * Inventory Traffic source dimension - * - * Generated from protobuf enum TRAFFIC_SOURCE = 388; - */ - const TRAFFIC_SOURCE = 388; - /** - * Inventory Traffic source dimension name - * - * Generated from protobuf enum TRAFFIC_SOURCE_NAME = 389; - */ - const TRAFFIC_SOURCE_NAME = 389; - /** - * Unified pricing rule ID dimension - * - * Generated from protobuf enum UNIFIED_PRICING_RULE_ID = 393; - */ - const UNIFIED_PRICING_RULE_ID = 393; - /** - * Unified pricing rule name dimension - * - * Generated from protobuf enum UNIFIED_PRICING_RULE_NAME = 394; - */ - const UNIFIED_PRICING_RULE_NAME = 394; - /** - * The video placement enum as defined by ADCOM 1.0-202303. - * - * Generated from protobuf enum VIDEO_PLCMT = 172; - */ - const VIDEO_PLCMT = 172; - /** - * The localized name of the video placement as defined by ADCOM 1.0-202303. - * - * Generated from protobuf enum VIDEO_PLCMT_NAME = 173; - */ - const VIDEO_PLCMT_NAME = 173; - /** - * Breaks down reporting data by week of the year. - * - * Generated from protobuf enum WEEK = 5; - */ - const WEEK = 5; - /** - * Name of the company within a yield group - * - * Generated from protobuf enum YIELD_GROUP_BUYER_NAME = 184; - */ - const YIELD_GROUP_BUYER_NAME = 184; - /** - * ID of the group of ad networks or exchanges used for Mediation and Open - * Bidding - * - * Generated from protobuf enum YIELD_GROUP_ID = 182; - */ - const YIELD_GROUP_ID = 182; - /** - * Name of the group of ad networks or exchanges used for Mediation and Open - * Bidding - * - * Generated from protobuf enum YIELD_GROUP_NAME = 183; - */ - const YIELD_GROUP_NAME = 183; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 0 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; - */ - const LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 1 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; - */ - const LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 2 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; - */ - const LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 3 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; - */ - const LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 4 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; - */ - const LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 5 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; - */ - const LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 6 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; - */ - const LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 7 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; - */ - const LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 8 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; - */ - const LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 9 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; - */ - const LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 10 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; - */ - const LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 11 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; - */ - const LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 12 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; - */ - const LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 13 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; - */ - const LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; - /** - * Custom field option ID for Line Item with custom field ID equal to the ID - * in index 14 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; - */ - const LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 0 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; - */ - const LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 1 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; - */ - const LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 2 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; - */ - const LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 3 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; - */ - const LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 4 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; - */ - const LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 5 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; - */ - const LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 6 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; - */ - const LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 7 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; - */ - const LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 8 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; - */ - const LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 9 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; - */ - const LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 10 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; - */ - const LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 11 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; - */ - const LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 12 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; - */ - const LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 13 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; - */ - const LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; - /** - * Custom field value for Line Item with custom field ID equal to the ID - * in index 14 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; - */ - const LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 0 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; - */ - const ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 1 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; - */ - const ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 2 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; - */ - const ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 3 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; - */ - const ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 4 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; - */ - const ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 5 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; - */ - const ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 6 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; - */ - const ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 7 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; - */ - const ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 8 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; - */ - const ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 9 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; - */ - const ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 10 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; - */ - const ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 11 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; - */ - const ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 12 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; - */ - const ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 13 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; - */ - const ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; - /** - * Custom field option ID for Order with custom field ID equal to the ID - * in index 14 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; - */ - const ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 0 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_0_VALUE = 13000; - */ - const ORDER_CUSTOM_FIELD_0_VALUE = 13000; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 1 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_1_VALUE = 13001; - */ - const ORDER_CUSTOM_FIELD_1_VALUE = 13001; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 2 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_2_VALUE = 13002; - */ - const ORDER_CUSTOM_FIELD_2_VALUE = 13002; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 3 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_3_VALUE = 13003; - */ - const ORDER_CUSTOM_FIELD_3_VALUE = 13003; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 4 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_4_VALUE = 13004; - */ - const ORDER_CUSTOM_FIELD_4_VALUE = 13004; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 5 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_5_VALUE = 13005; - */ - const ORDER_CUSTOM_FIELD_5_VALUE = 13005; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 6 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_6_VALUE = 13006; - */ - const ORDER_CUSTOM_FIELD_6_VALUE = 13006; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 7 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_7_VALUE = 13007; - */ - const ORDER_CUSTOM_FIELD_7_VALUE = 13007; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 8 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_8_VALUE = 13008; - */ - const ORDER_CUSTOM_FIELD_8_VALUE = 13008; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 9 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_9_VALUE = 13009; - */ - const ORDER_CUSTOM_FIELD_9_VALUE = 13009; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 10 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_10_VALUE = 13010; - */ - const ORDER_CUSTOM_FIELD_10_VALUE = 13010; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 11 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_11_VALUE = 13011; - */ - const ORDER_CUSTOM_FIELD_11_VALUE = 13011; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 12 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_12_VALUE = 13012; - */ - const ORDER_CUSTOM_FIELD_12_VALUE = 13012; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 13 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_13_VALUE = 13013; - */ - const ORDER_CUSTOM_FIELD_13_VALUE = 13013; - /** - * Custom field value for Order with custom field ID equal to the ID - * in index 14 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum ORDER_CUSTOM_FIELD_14_VALUE = 13014; - */ - const ORDER_CUSTOM_FIELD_14_VALUE = 13014; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 0 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; - */ - const CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 1 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; - */ - const CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 2 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; - */ - const CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 3 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; - */ - const CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 4 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; - */ - const CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 5 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; - */ - const CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 6 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; - */ - const CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 7 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; - */ - const CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 8 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; - */ - const CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 9 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; - */ - const CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 10 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; - */ - const CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 11 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; - */ - const CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 12 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; - */ - const CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 13 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; - */ - const CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; - /** - * Custom field option ID for Creative with custom field ID equal to the ID - * in index 14 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; - */ - const CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 0 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; - */ - const CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 1 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; - */ - const CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 2 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; - */ - const CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 3 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; - */ - const CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 4 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; - */ - const CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 5 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; - */ - const CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 6 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; - */ - const CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 7 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; - */ - const CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 8 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; - */ - const CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 9 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; - */ - const CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 10 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; - */ - const CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 11 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; - */ - const CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 12 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; - */ - const CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 13 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; - */ - const CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; - /** - * Custom field value for Creative with custom field ID equal to the ID - * in index 14 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; - */ - const CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; - /** - * Custom field option ID for Backfill line item with custom field ID equal - * to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; - /** - * Custom field value for Backfill line item with custom field ID equal to - * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; - */ - const BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 0 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 1 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 2 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 3 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 4 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 5 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 6 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 7 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 8 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 9 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 10 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 11 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 12 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 13 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; - /** - * Custom field option ID for Backfill order with custom field ID equal to - * the ID in index 14 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 0 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 1 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 2 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 3 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 4 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 5 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 6 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 7 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 8 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 9 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 10 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 11 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 12 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 13 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; - /** - * Custom field value for Backfill order with custom field ID equal to the - * ID in index 14 of `ReportDefinition.order_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; - */ - const BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; - /** - * Custom field option ID for Backfill creative with custom field ID equal - * to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; - /** - * Custom field value for Backfill creative with custom field ID equal to - * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. - * - * Generated from protobuf enum BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; - */ - const BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 0 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_0_VALUE_ID = 100000; - */ - const CUSTOM_DIMENSION_0_VALUE_ID = 100000; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 1 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_1_VALUE_ID = 100001; - */ - const CUSTOM_DIMENSION_1_VALUE_ID = 100001; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 2 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_2_VALUE_ID = 100002; - */ - const CUSTOM_DIMENSION_2_VALUE_ID = 100002; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 3 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_3_VALUE_ID = 100003; - */ - const CUSTOM_DIMENSION_3_VALUE_ID = 100003; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 4 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_4_VALUE_ID = 100004; - */ - const CUSTOM_DIMENSION_4_VALUE_ID = 100004; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 5 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_5_VALUE_ID = 100005; - */ - const CUSTOM_DIMENSION_5_VALUE_ID = 100005; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 6 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_6_VALUE_ID = 100006; - */ - const CUSTOM_DIMENSION_6_VALUE_ID = 100006; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 9 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_7_VALUE_ID = 100007; - */ - const CUSTOM_DIMENSION_7_VALUE_ID = 100007; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 8 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_8_VALUE_ID = 100008; - */ - const CUSTOM_DIMENSION_8_VALUE_ID = 100008; - /** - * Custom Dimension Value ID for Custom Dimension with key equal to the key - * in index 9 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_9_VALUE_ID = 100009; - */ - const CUSTOM_DIMENSION_9_VALUE_ID = 100009; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 0 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_0_VALUE = 101000; - */ - const CUSTOM_DIMENSION_0_VALUE = 101000; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 1 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_1_VALUE = 101001; - */ - const CUSTOM_DIMENSION_1_VALUE = 101001; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 2 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_2_VALUE = 101002; - */ - const CUSTOM_DIMENSION_2_VALUE = 101002; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 3 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_3_VALUE = 101003; - */ - const CUSTOM_DIMENSION_3_VALUE = 101003; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 4 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_4_VALUE = 101004; - */ - const CUSTOM_DIMENSION_4_VALUE = 101004; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 5 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_5_VALUE = 101005; - */ - const CUSTOM_DIMENSION_5_VALUE = 101005; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 6 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_6_VALUE = 101006; - */ - const CUSTOM_DIMENSION_6_VALUE = 101006; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 7 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_7_VALUE = 101007; - */ - const CUSTOM_DIMENSION_7_VALUE = 101007; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 8 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_8_VALUE = 101008; - */ - const CUSTOM_DIMENSION_8_VALUE = 101008; - /** - * Custom Dimension Value name for Custom Dimension with key equal to the - * id in index 9 of `ReportDefinition.custom_dimension_key_ids`. - * - * Generated from protobuf enum CUSTOM_DIMENSION_9_VALUE = 101009; - */ - const CUSTOM_DIMENSION_9_VALUE = 101009; - - private static $valueToName = [ - self::DIMENSION_UNSPECIFIED => 'DIMENSION_UNSPECIFIED', - self::ADVERTISER_DOMAIN_NAME => 'ADVERTISER_DOMAIN_NAME', - self::ADVERTISER_EXTERNAL_ID => 'ADVERTISER_EXTERNAL_ID', - self::ADVERTISER_ID => 'ADVERTISER_ID', - self::ADVERTISER_LABELS => 'ADVERTISER_LABELS', - self::ADVERTISER_LABEL_IDS => 'ADVERTISER_LABEL_IDS', - self::ADVERTISER_NAME => 'ADVERTISER_NAME', - self::ADVERTISER_PRIMARY_CONTACT => 'ADVERTISER_PRIMARY_CONTACT', - self::AD_LOCATION => 'AD_LOCATION', - self::AD_LOCATION_NAME => 'AD_LOCATION_NAME', - self::AD_UNIT_CODE => 'AD_UNIT_CODE', - self::AD_UNIT_CODE_LEVEL_1 => 'AD_UNIT_CODE_LEVEL_1', - self::AD_UNIT_CODE_LEVEL_10 => 'AD_UNIT_CODE_LEVEL_10', - self::AD_UNIT_CODE_LEVEL_11 => 'AD_UNIT_CODE_LEVEL_11', - self::AD_UNIT_CODE_LEVEL_12 => 'AD_UNIT_CODE_LEVEL_12', - self::AD_UNIT_CODE_LEVEL_13 => 'AD_UNIT_CODE_LEVEL_13', - self::AD_UNIT_CODE_LEVEL_14 => 'AD_UNIT_CODE_LEVEL_14', - self::AD_UNIT_CODE_LEVEL_15 => 'AD_UNIT_CODE_LEVEL_15', - self::AD_UNIT_CODE_LEVEL_16 => 'AD_UNIT_CODE_LEVEL_16', - self::AD_UNIT_CODE_LEVEL_2 => 'AD_UNIT_CODE_LEVEL_2', - self::AD_UNIT_CODE_LEVEL_3 => 'AD_UNIT_CODE_LEVEL_3', - self::AD_UNIT_CODE_LEVEL_4 => 'AD_UNIT_CODE_LEVEL_4', - self::AD_UNIT_CODE_LEVEL_5 => 'AD_UNIT_CODE_LEVEL_5', - self::AD_UNIT_CODE_LEVEL_6 => 'AD_UNIT_CODE_LEVEL_6', - self::AD_UNIT_CODE_LEVEL_7 => 'AD_UNIT_CODE_LEVEL_7', - self::AD_UNIT_CODE_LEVEL_8 => 'AD_UNIT_CODE_LEVEL_8', - self::AD_UNIT_CODE_LEVEL_9 => 'AD_UNIT_CODE_LEVEL_9', - self::AD_UNIT_DEPTH => 'AD_UNIT_DEPTH', - self::AD_UNIT_ID => 'AD_UNIT_ID', - self::AD_UNIT_ID_ALL_LEVEL => 'AD_UNIT_ID_ALL_LEVEL', - self::AD_UNIT_ID_LEVEL_1 => 'AD_UNIT_ID_LEVEL_1', - self::AD_UNIT_ID_LEVEL_10 => 'AD_UNIT_ID_LEVEL_10', - self::AD_UNIT_ID_LEVEL_11 => 'AD_UNIT_ID_LEVEL_11', - self::AD_UNIT_ID_LEVEL_12 => 'AD_UNIT_ID_LEVEL_12', - self::AD_UNIT_ID_LEVEL_13 => 'AD_UNIT_ID_LEVEL_13', - self::AD_UNIT_ID_LEVEL_14 => 'AD_UNIT_ID_LEVEL_14', - self::AD_UNIT_ID_LEVEL_15 => 'AD_UNIT_ID_LEVEL_15', - self::AD_UNIT_ID_LEVEL_16 => 'AD_UNIT_ID_LEVEL_16', - self::AD_UNIT_ID_LEVEL_2 => 'AD_UNIT_ID_LEVEL_2', - self::AD_UNIT_ID_LEVEL_3 => 'AD_UNIT_ID_LEVEL_3', - self::AD_UNIT_ID_LEVEL_4 => 'AD_UNIT_ID_LEVEL_4', - self::AD_UNIT_ID_LEVEL_5 => 'AD_UNIT_ID_LEVEL_5', - self::AD_UNIT_ID_LEVEL_6 => 'AD_UNIT_ID_LEVEL_6', - self::AD_UNIT_ID_LEVEL_7 => 'AD_UNIT_ID_LEVEL_7', - self::AD_UNIT_ID_LEVEL_8 => 'AD_UNIT_ID_LEVEL_8', - self::AD_UNIT_ID_LEVEL_9 => 'AD_UNIT_ID_LEVEL_9', - self::AD_UNIT_ID_TOP_LEVEL => 'AD_UNIT_ID_TOP_LEVEL', - self::AD_UNIT_NAME => 'AD_UNIT_NAME', - self::AD_UNIT_NAME_ALL_LEVEL => 'AD_UNIT_NAME_ALL_LEVEL', - self::AD_UNIT_NAME_LEVEL_1 => 'AD_UNIT_NAME_LEVEL_1', - self::AD_UNIT_NAME_LEVEL_10 => 'AD_UNIT_NAME_LEVEL_10', - self::AD_UNIT_NAME_LEVEL_11 => 'AD_UNIT_NAME_LEVEL_11', - self::AD_UNIT_NAME_LEVEL_12 => 'AD_UNIT_NAME_LEVEL_12', - self::AD_UNIT_NAME_LEVEL_13 => 'AD_UNIT_NAME_LEVEL_13', - self::AD_UNIT_NAME_LEVEL_14 => 'AD_UNIT_NAME_LEVEL_14', - self::AD_UNIT_NAME_LEVEL_15 => 'AD_UNIT_NAME_LEVEL_15', - self::AD_UNIT_NAME_LEVEL_16 => 'AD_UNIT_NAME_LEVEL_16', - self::AD_UNIT_NAME_LEVEL_2 => 'AD_UNIT_NAME_LEVEL_2', - self::AD_UNIT_NAME_LEVEL_3 => 'AD_UNIT_NAME_LEVEL_3', - self::AD_UNIT_NAME_LEVEL_4 => 'AD_UNIT_NAME_LEVEL_4', - self::AD_UNIT_NAME_LEVEL_5 => 'AD_UNIT_NAME_LEVEL_5', - self::AD_UNIT_NAME_LEVEL_6 => 'AD_UNIT_NAME_LEVEL_6', - self::AD_UNIT_NAME_LEVEL_7 => 'AD_UNIT_NAME_LEVEL_7', - self::AD_UNIT_NAME_LEVEL_8 => 'AD_UNIT_NAME_LEVEL_8', - self::AD_UNIT_NAME_LEVEL_9 => 'AD_UNIT_NAME_LEVEL_9', - self::AD_UNIT_NAME_TOP_LEVEL => 'AD_UNIT_NAME_TOP_LEVEL', - self::AD_UNIT_REWARD_AMOUNT => 'AD_UNIT_REWARD_AMOUNT', - self::AD_UNIT_REWARD_TYPE => 'AD_UNIT_REWARD_TYPE', - self::AD_UNIT_STATUS => 'AD_UNIT_STATUS', - self::AD_UNIT_STATUS_NAME => 'AD_UNIT_STATUS_NAME', - self::APP_VERSION => 'APP_VERSION', - self::BACKFILL_ADVERTISER_EXTERNAL_ID => 'BACKFILL_ADVERTISER_EXTERNAL_ID', - self::BACKFILL_ADVERTISER_ID => 'BACKFILL_ADVERTISER_ID', - self::BACKFILL_ADVERTISER_LABELS => 'BACKFILL_ADVERTISER_LABELS', - self::BACKFILL_ADVERTISER_LABEL_IDS => 'BACKFILL_ADVERTISER_LABEL_IDS', - self::BACKFILL_ADVERTISER_NAME => 'BACKFILL_ADVERTISER_NAME', - self::BACKFILL_ADVERTISER_PRIMARY_CONTACT => 'BACKFILL_ADVERTISER_PRIMARY_CONTACT', - self::BACKFILL_CREATIVE_BILLING_TYPE => 'BACKFILL_CREATIVE_BILLING_TYPE', - self::BACKFILL_CREATIVE_BILLING_TYPE_NAME => 'BACKFILL_CREATIVE_BILLING_TYPE_NAME', - self::BACKFILL_CREATIVE_CLICK_THROUGH_URL => 'BACKFILL_CREATIVE_CLICK_THROUGH_URL', - self::BACKFILL_CREATIVE_ID => 'BACKFILL_CREATIVE_ID', - self::BACKFILL_CREATIVE_NAME => 'BACKFILL_CREATIVE_NAME', - self::BACKFILL_CREATIVE_THIRD_PARTY_VENDOR => 'BACKFILL_CREATIVE_THIRD_PARTY_VENDOR', - self::BACKFILL_CREATIVE_TYPE => 'BACKFILL_CREATIVE_TYPE', - self::BACKFILL_CREATIVE_TYPE_NAME => 'BACKFILL_CREATIVE_TYPE_NAME', - self::BACKFILL_LINE_ITEM_ARCHIVED => 'BACKFILL_LINE_ITEM_ARCHIVED', - self::BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION => 'BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION', - self::BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME => 'BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME', - self::BACKFILL_LINE_ITEM_COMPUTED_STATUS => 'BACKFILL_LINE_ITEM_COMPUTED_STATUS', - self::BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME => 'BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME', - self::BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY => 'BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY', - self::BACKFILL_LINE_ITEM_COST_PER_UNIT => 'BACKFILL_LINE_ITEM_COST_PER_UNIT', - self::BACKFILL_LINE_ITEM_COST_TYPE => 'BACKFILL_LINE_ITEM_COST_TYPE', - self::BACKFILL_LINE_ITEM_COST_TYPE_NAME => 'BACKFILL_LINE_ITEM_COST_TYPE_NAME', - self::BACKFILL_LINE_ITEM_CREATIVE_END_DATE => 'BACKFILL_LINE_ITEM_CREATIVE_END_DATE', - self::BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE => 'BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE', - self::BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME => 'BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME', - self::BACKFILL_LINE_ITEM_CREATIVE_START_DATE => 'BACKFILL_LINE_ITEM_CREATIVE_START_DATE', - self::BACKFILL_LINE_ITEM_CURRENCY_CODE => 'BACKFILL_LINE_ITEM_CURRENCY_CODE', - self::BACKFILL_LINE_ITEM_DELIVERY_INDICATOR => 'BACKFILL_LINE_ITEM_DELIVERY_INDICATOR', - self::BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE => 'BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE', - self::BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME => 'BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME', - self::BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE => 'BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE', - self::BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE => 'BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE', - self::BACKFILL_LINE_ITEM_END_DATE => 'BACKFILL_LINE_ITEM_END_DATE', - self::BACKFILL_LINE_ITEM_END_DATE_TIME => 'BACKFILL_LINE_ITEM_END_DATE_TIME', - self::BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE => 'BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE', - self::BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME => 'BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME', - self::BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID => 'BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID', - self::BACKFILL_LINE_ITEM_EXTERNAL_ID => 'BACKFILL_LINE_ITEM_EXTERNAL_ID', - self::BACKFILL_LINE_ITEM_FREQUENCY_CAP => 'BACKFILL_LINE_ITEM_FREQUENCY_CAP', - self::BACKFILL_LINE_ITEM_ID => 'BACKFILL_LINE_ITEM_ID', - self::BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP => 'BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP', - self::BACKFILL_LINE_ITEM_LIFETIME_CLICKS => 'BACKFILL_LINE_ITEM_LIFETIME_CLICKS', - self::BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS => 'BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS', - self::BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS => 'BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS', - self::BACKFILL_LINE_ITEM_MAKEGOOD => 'BACKFILL_LINE_ITEM_MAKEGOOD', - self::BACKFILL_LINE_ITEM_NAME => 'BACKFILL_LINE_ITEM_NAME', - self::BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE => 'BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE', - self::BACKFILL_LINE_ITEM_OPTIMIZABLE => 'BACKFILL_LINE_ITEM_OPTIMIZABLE', - self::BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE => 'BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE', - self::BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME => 'BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME', - self::BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE => 'BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE', - self::BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME => 'BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME', - self::BACKFILL_LINE_ITEM_PRIORITY => 'BACKFILL_LINE_ITEM_PRIORITY', - self::BACKFILL_LINE_ITEM_RESERVATION_STATUS => 'BACKFILL_LINE_ITEM_RESERVATION_STATUS', - self::BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME => 'BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME', - self::BACKFILL_LINE_ITEM_START_DATE => 'BACKFILL_LINE_ITEM_START_DATE', - self::BACKFILL_LINE_ITEM_START_DATE_TIME => 'BACKFILL_LINE_ITEM_START_DATE_TIME', - self::BACKFILL_LINE_ITEM_TYPE => 'BACKFILL_LINE_ITEM_TYPE', - self::BACKFILL_LINE_ITEM_TYPE_NAME => 'BACKFILL_LINE_ITEM_TYPE_NAME', - self::BACKFILL_LINE_ITEM_UNLIMITED_END => 'BACKFILL_LINE_ITEM_UNLIMITED_END', - self::BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT => 'BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT', - self::BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE => 'BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE', - self::BACKFILL_MASTER_COMPANION_CREATIVE_ID => 'BACKFILL_MASTER_COMPANION_CREATIVE_ID', - self::BACKFILL_MASTER_COMPANION_CREATIVE_NAME => 'BACKFILL_MASTER_COMPANION_CREATIVE_NAME', - self::BACKFILL_ORDER_AGENCY => 'BACKFILL_ORDER_AGENCY', - self::BACKFILL_ORDER_AGENCY_ID => 'BACKFILL_ORDER_AGENCY_ID', - self::BACKFILL_ORDER_BOOKED_CPC => 'BACKFILL_ORDER_BOOKED_CPC', - self::BACKFILL_ORDER_BOOKED_CPM => 'BACKFILL_ORDER_BOOKED_CPM', - self::BACKFILL_ORDER_DELIVERY_STATUS => 'BACKFILL_ORDER_DELIVERY_STATUS', - self::BACKFILL_ORDER_DELIVERY_STATUS_NAME => 'BACKFILL_ORDER_DELIVERY_STATUS_NAME', - self::BACKFILL_ORDER_END_DATE => 'BACKFILL_ORDER_END_DATE', - self::BACKFILL_ORDER_END_DATE_TIME => 'BACKFILL_ORDER_END_DATE_TIME', - self::BACKFILL_ORDER_EXTERNAL_ID => 'BACKFILL_ORDER_EXTERNAL_ID', - self::BACKFILL_ORDER_ID => 'BACKFILL_ORDER_ID', - self::BACKFILL_ORDER_LABELS => 'BACKFILL_ORDER_LABELS', - self::BACKFILL_ORDER_LABEL_IDS => 'BACKFILL_ORDER_LABEL_IDS', - self::BACKFILL_ORDER_LIFETIME_CLICKS => 'BACKFILL_ORDER_LIFETIME_CLICKS', - self::BACKFILL_ORDER_LIFETIME_IMPRESSIONS => 'BACKFILL_ORDER_LIFETIME_IMPRESSIONS', - self::BACKFILL_ORDER_NAME => 'BACKFILL_ORDER_NAME', - self::BACKFILL_ORDER_PO_NUMBER => 'BACKFILL_ORDER_PO_NUMBER', - self::BACKFILL_ORDER_PROGRAMMATIC => 'BACKFILL_ORDER_PROGRAMMATIC', - self::BACKFILL_ORDER_SALESPERSON => 'BACKFILL_ORDER_SALESPERSON', - self::BACKFILL_ORDER_SECONDARY_SALESPEOPLE => 'BACKFILL_ORDER_SECONDARY_SALESPEOPLE', - self::BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID => 'BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID', - self::BACKFILL_ORDER_SECONDARY_TRAFFICKERS => 'BACKFILL_ORDER_SECONDARY_TRAFFICKERS', - self::BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID => 'BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID', - self::BACKFILL_ORDER_START_DATE => 'BACKFILL_ORDER_START_DATE', - self::BACKFILL_ORDER_START_DATE_TIME => 'BACKFILL_ORDER_START_DATE_TIME', - self::BACKFILL_ORDER_TRAFFICKER => 'BACKFILL_ORDER_TRAFFICKER', - self::BACKFILL_ORDER_TRAFFICKER_ID => 'BACKFILL_ORDER_TRAFFICKER_ID', - self::BACKFILL_ORDER_UNLIMITED_END => 'BACKFILL_ORDER_UNLIMITED_END', - self::BACKFILL_PROGRAMMATIC_BUYER_ID => 'BACKFILL_PROGRAMMATIC_BUYER_ID', - self::BACKFILL_PROGRAMMATIC_BUYER_NAME => 'BACKFILL_PROGRAMMATIC_BUYER_NAME', - self::BRANDING_TYPE => 'BRANDING_TYPE', - self::BRANDING_TYPE_NAME => 'BRANDING_TYPE_NAME', - self::BROWSER_CATEGORY => 'BROWSER_CATEGORY', - self::BROWSER_CATEGORY_NAME => 'BROWSER_CATEGORY_NAME', - self::BROWSER_ID => 'BROWSER_ID', - self::BROWSER_NAME => 'BROWSER_NAME', - self::CARRIER_ID => 'CARRIER_ID', - self::CARRIER_NAME => 'CARRIER_NAME', - self::CLASSIFIED_ADVERTISER_ID => 'CLASSIFIED_ADVERTISER_ID', - self::CLASSIFIED_ADVERTISER_NAME => 'CLASSIFIED_ADVERTISER_NAME', - self::CLASSIFIED_BRAND_ID => 'CLASSIFIED_BRAND_ID', - self::CLASSIFIED_BRAND_NAME => 'CLASSIFIED_BRAND_NAME', - self::CONTENT_ID => 'CONTENT_ID', - self::CONTENT_NAME => 'CONTENT_NAME', - self::COUNTRY_ID => 'COUNTRY_ID', - self::COUNTRY_NAME => 'COUNTRY_NAME', - self::CREATIVE_BILLING_TYPE => 'CREATIVE_BILLING_TYPE', - self::CREATIVE_BILLING_TYPE_NAME => 'CREATIVE_BILLING_TYPE_NAME', - self::CREATIVE_CLICK_THROUGH_URL => 'CREATIVE_CLICK_THROUGH_URL', - self::CREATIVE_ID => 'CREATIVE_ID', - self::CREATIVE_NAME => 'CREATIVE_NAME', - self::CREATIVE_TECHNOLOGY => 'CREATIVE_TECHNOLOGY', - self::CREATIVE_TECHNOLOGY_NAME => 'CREATIVE_TECHNOLOGY_NAME', - self::CREATIVE_THIRD_PARTY_VENDOR => 'CREATIVE_THIRD_PARTY_VENDOR', - self::CREATIVE_TYPE => 'CREATIVE_TYPE', - self::CREATIVE_TYPE_NAME => 'CREATIVE_TYPE_NAME', - self::DATE => 'DATE', - self::DAY_OF_WEEK => 'DAY_OF_WEEK', - self::DEMAND_CHANNEL => 'DEMAND_CHANNEL', - self::DEMAND_CHANNEL_NAME => 'DEMAND_CHANNEL_NAME', - self::DEMAND_SUBCHANNEL => 'DEMAND_SUBCHANNEL', - self::DEMAND_SUBCHANNEL_NAME => 'DEMAND_SUBCHANNEL_NAME', - self::DEVICE => 'DEVICE', - self::DEVICE_CATEGORY => 'DEVICE_CATEGORY', - self::DEVICE_CATEGORY_NAME => 'DEVICE_CATEGORY_NAME', - self::DEVICE_NAME => 'DEVICE_NAME', - self::EXCHANGE_THIRD_PARTY_COMPANY_ID => 'EXCHANGE_THIRD_PARTY_COMPANY_ID', - self::EXCHANGE_THIRD_PARTY_COMPANY_NAME => 'EXCHANGE_THIRD_PARTY_COMPANY_NAME', - self::FIRST_LOOK_PRICING_RULE_ID => 'FIRST_LOOK_PRICING_RULE_ID', - self::FIRST_LOOK_PRICING_RULE_NAME => 'FIRST_LOOK_PRICING_RULE_NAME', - self::HOUR => 'HOUR', - self::INTERACTION_TYPE => 'INTERACTION_TYPE', - self::INTERACTION_TYPE_NAME => 'INTERACTION_TYPE_NAME', - self::INVENTORY_FORMAT => 'INVENTORY_FORMAT', - self::INVENTORY_FORMAT_NAME => 'INVENTORY_FORMAT_NAME', - self::INVENTORY_TYPE => 'INVENTORY_TYPE', - self::INVENTORY_TYPE_NAME => 'INVENTORY_TYPE_NAME', - self::IS_ADX_DIRECT => 'IS_ADX_DIRECT', - self::IS_FIRST_LOOK_DEAL => 'IS_FIRST_LOOK_DEAL', - self::KEY_VALUES_ID => 'KEY_VALUES_ID', - self::KEY_VALUES_NAME => 'KEY_VALUES_NAME', - self::LINE_ITEM_ARCHIVED => 'LINE_ITEM_ARCHIVED', - self::LINE_ITEM_COMPANION_DELIVERY_OPTION => 'LINE_ITEM_COMPANION_DELIVERY_OPTION', - self::LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME => 'LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME', - self::LINE_ITEM_COMPUTED_STATUS => 'LINE_ITEM_COMPUTED_STATUS', - self::LINE_ITEM_COMPUTED_STATUS_NAME => 'LINE_ITEM_COMPUTED_STATUS_NAME', - self::LINE_ITEM_CONTRACTED_QUANTITY => 'LINE_ITEM_CONTRACTED_QUANTITY', - self::LINE_ITEM_COST_PER_UNIT => 'LINE_ITEM_COST_PER_UNIT', - self::LINE_ITEM_COST_TYPE => 'LINE_ITEM_COST_TYPE', - self::LINE_ITEM_COST_TYPE_NAME => 'LINE_ITEM_COST_TYPE_NAME', - self::LINE_ITEM_CREATIVE_END_DATE => 'LINE_ITEM_CREATIVE_END_DATE', - self::LINE_ITEM_CREATIVE_ROTATION_TYPE => 'LINE_ITEM_CREATIVE_ROTATION_TYPE', - self::LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME => 'LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME', - self::LINE_ITEM_CREATIVE_START_DATE => 'LINE_ITEM_CREATIVE_START_DATE', - self::LINE_ITEM_CURRENCY_CODE => 'LINE_ITEM_CURRENCY_CODE', - self::LINE_ITEM_DELIVERY_INDICATOR => 'LINE_ITEM_DELIVERY_INDICATOR', - self::LINE_ITEM_DELIVERY_RATE_TYPE => 'LINE_ITEM_DELIVERY_RATE_TYPE', - self::LINE_ITEM_DELIVERY_RATE_TYPE_NAME => 'LINE_ITEM_DELIVERY_RATE_TYPE_NAME', - self::LINE_ITEM_DISCOUNT_ABSOLUTE => 'LINE_ITEM_DISCOUNT_ABSOLUTE', - self::LINE_ITEM_DISCOUNT_PERCENTAGE => 'LINE_ITEM_DISCOUNT_PERCENTAGE', - self::LINE_ITEM_END_DATE => 'LINE_ITEM_END_DATE', - self::LINE_ITEM_END_DATE_TIME => 'LINE_ITEM_END_DATE_TIME', - self::LINE_ITEM_ENVIRONMENT_TYPE => 'LINE_ITEM_ENVIRONMENT_TYPE', - self::LINE_ITEM_ENVIRONMENT_TYPE_NAME => 'LINE_ITEM_ENVIRONMENT_TYPE_NAME', - self::LINE_ITEM_EXTERNAL_DEAL_ID => 'LINE_ITEM_EXTERNAL_DEAL_ID', - self::LINE_ITEM_EXTERNAL_ID => 'LINE_ITEM_EXTERNAL_ID', - self::LINE_ITEM_FREQUENCY_CAP => 'LINE_ITEM_FREQUENCY_CAP', - self::LINE_ITEM_ID => 'LINE_ITEM_ID', - self::LINE_ITEM_LAST_MODIFIED_BY_APP => 'LINE_ITEM_LAST_MODIFIED_BY_APP', - self::LINE_ITEM_LIFETIME_CLICKS => 'LINE_ITEM_LIFETIME_CLICKS', - self::LINE_ITEM_LIFETIME_IMPRESSIONS => 'LINE_ITEM_LIFETIME_IMPRESSIONS', - self::LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS => 'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS', - self::LINE_ITEM_MAKEGOOD => 'LINE_ITEM_MAKEGOOD', - self::LINE_ITEM_NAME => 'LINE_ITEM_NAME', - self::LINE_ITEM_NON_CPD_BOOKED_REVENUE => 'LINE_ITEM_NON_CPD_BOOKED_REVENUE', - self::LINE_ITEM_OPTIMIZABLE => 'LINE_ITEM_OPTIMIZABLE', - self::LINE_ITEM_PRIMARY_GOAL_TYPE => 'LINE_ITEM_PRIMARY_GOAL_TYPE', - self::LINE_ITEM_PRIMARY_GOAL_TYPE_NAME => 'LINE_ITEM_PRIMARY_GOAL_TYPE_NAME', - self::LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE => 'LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE', - self::LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE => 'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE', - self::LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE => 'LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE', - self::LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME => 'LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME', - self::LINE_ITEM_PRIORITY => 'LINE_ITEM_PRIORITY', - self::LINE_ITEM_RESERVATION_STATUS => 'LINE_ITEM_RESERVATION_STATUS', - self::LINE_ITEM_RESERVATION_STATUS_NAME => 'LINE_ITEM_RESERVATION_STATUS_NAME', - self::LINE_ITEM_START_DATE => 'LINE_ITEM_START_DATE', - self::LINE_ITEM_START_DATE_TIME => 'LINE_ITEM_START_DATE_TIME', - self::LINE_ITEM_TYPE => 'LINE_ITEM_TYPE', - self::LINE_ITEM_TYPE_NAME => 'LINE_ITEM_TYPE_NAME', - self::LINE_ITEM_UNLIMITED_END => 'LINE_ITEM_UNLIMITED_END', - self::LINE_ITEM_VALUE_COST_PER_UNIT => 'LINE_ITEM_VALUE_COST_PER_UNIT', - self::LINE_ITEM_WEB_PROPERTY_CODE => 'LINE_ITEM_WEB_PROPERTY_CODE', - self::MASTER_COMPANION_CREATIVE_ID => 'MASTER_COMPANION_CREATIVE_ID', - self::MASTER_COMPANION_CREATIVE_NAME => 'MASTER_COMPANION_CREATIVE_NAME', - self::MOBILE_APP_FREE => 'MOBILE_APP_FREE', - self::MOBILE_APP_ICON_URL => 'MOBILE_APP_ICON_URL', - self::MOBILE_APP_ID => 'MOBILE_APP_ID', - self::MOBILE_APP_NAME => 'MOBILE_APP_NAME', - self::MOBILE_APP_OWNERSHIP_STATUS => 'MOBILE_APP_OWNERSHIP_STATUS', - self::MOBILE_APP_OWNERSHIP_STATUS_NAME => 'MOBILE_APP_OWNERSHIP_STATUS_NAME', - self::MOBILE_APP_STORE => 'MOBILE_APP_STORE', - self::MOBILE_APP_STORE_NAME => 'MOBILE_APP_STORE_NAME', - self::MOBILE_INVENTORY_TYPE => 'MOBILE_INVENTORY_TYPE', - self::MOBILE_INVENTORY_TYPE_NAME => 'MOBILE_INVENTORY_TYPE_NAME', - self::MOBILE_SDK_VERSION_NAME => 'MOBILE_SDK_VERSION_NAME', - self::MONTH_YEAR => 'MONTH_YEAR', - self::NATIVE_AD_FORMAT_ID => 'NATIVE_AD_FORMAT_ID', - self::NATIVE_AD_FORMAT_NAME => 'NATIVE_AD_FORMAT_NAME', - self::NATIVE_STYLE_ID => 'NATIVE_STYLE_ID', - self::NATIVE_STYLE_NAME => 'NATIVE_STYLE_NAME', - self::OPERATING_SYSTEM_CATEGORY => 'OPERATING_SYSTEM_CATEGORY', - self::OPERATING_SYSTEM_CATEGORY_NAME => 'OPERATING_SYSTEM_CATEGORY_NAME', - self::OPERATING_SYSTEM_VERSION_ID => 'OPERATING_SYSTEM_VERSION_ID', - self::OPERATING_SYSTEM_VERSION_NAME => 'OPERATING_SYSTEM_VERSION_NAME', - self::ORDER_AGENCY => 'ORDER_AGENCY', - self::ORDER_AGENCY_ID => 'ORDER_AGENCY_ID', - self::ORDER_BOOKED_CPC => 'ORDER_BOOKED_CPC', - self::ORDER_BOOKED_CPM => 'ORDER_BOOKED_CPM', - self::ORDER_DELIVERY_STATUS => 'ORDER_DELIVERY_STATUS', - self::ORDER_DELIVERY_STATUS_NAME => 'ORDER_DELIVERY_STATUS_NAME', - self::ORDER_END_DATE => 'ORDER_END_DATE', - self::ORDER_END_DATE_TIME => 'ORDER_END_DATE_TIME', - self::ORDER_EXTERNAL_ID => 'ORDER_EXTERNAL_ID', - self::ORDER_ID => 'ORDER_ID', - self::ORDER_LABELS => 'ORDER_LABELS', - self::ORDER_LABEL_IDS => 'ORDER_LABEL_IDS', - self::ORDER_LIFETIME_CLICKS => 'ORDER_LIFETIME_CLICKS', - self::ORDER_LIFETIME_IMPRESSIONS => 'ORDER_LIFETIME_IMPRESSIONS', - self::ORDER_NAME => 'ORDER_NAME', - self::ORDER_PO_NUMBER => 'ORDER_PO_NUMBER', - self::ORDER_PROGRAMMATIC => 'ORDER_PROGRAMMATIC', - self::ORDER_SALESPERSON => 'ORDER_SALESPERSON', - self::ORDER_SECONDARY_SALESPEOPLE => 'ORDER_SECONDARY_SALESPEOPLE', - self::ORDER_SECONDARY_SALESPEOPLE_ID => 'ORDER_SECONDARY_SALESPEOPLE_ID', - self::ORDER_SECONDARY_TRAFFICKERS => 'ORDER_SECONDARY_TRAFFICKERS', - self::ORDER_SECONDARY_TRAFFICKERS_ID => 'ORDER_SECONDARY_TRAFFICKERS_ID', - self::ORDER_START_DATE => 'ORDER_START_DATE', - self::ORDER_START_DATE_TIME => 'ORDER_START_DATE_TIME', - self::ORDER_TRAFFICKER => 'ORDER_TRAFFICKER', - self::ORDER_TRAFFICKER_ID => 'ORDER_TRAFFICKER_ID', - self::ORDER_UNLIMITED_END => 'ORDER_UNLIMITED_END', - self::PLACEMENT_ID => 'PLACEMENT_ID', - self::PLACEMENT_ID_ALL => 'PLACEMENT_ID_ALL', - self::PLACEMENT_NAME => 'PLACEMENT_NAME', - self::PLACEMENT_NAME_ALL => 'PLACEMENT_NAME_ALL', - self::PLACEMENT_STATUS => 'PLACEMENT_STATUS', - self::PLACEMENT_STATUS_ALL => 'PLACEMENT_STATUS_ALL', - self::PLACEMENT_STATUS_NAME => 'PLACEMENT_STATUS_NAME', - self::PLACEMENT_STATUS_NAME_ALL => 'PLACEMENT_STATUS_NAME_ALL', - self::PROGRAMMATIC_BUYER_ID => 'PROGRAMMATIC_BUYER_ID', - self::PROGRAMMATIC_BUYER_NAME => 'PROGRAMMATIC_BUYER_NAME', - self::PROGRAMMATIC_CHANNEL => 'PROGRAMMATIC_CHANNEL', - self::PROGRAMMATIC_CHANNEL_NAME => 'PROGRAMMATIC_CHANNEL_NAME', - self::RENDERED_CREATIVE_SIZE => 'RENDERED_CREATIVE_SIZE', - self::REQUESTED_AD_SIZES => 'REQUESTED_AD_SIZES', - self::REQUEST_TYPE => 'REQUEST_TYPE', - self::REQUEST_TYPE_NAME => 'REQUEST_TYPE_NAME', - self::SITE => 'SITE', - self::TARGETING_ID => 'TARGETING_ID', - self::TARGETING_NAME => 'TARGETING_NAME', - self::TARGETING_TYPE => 'TARGETING_TYPE', - self::TARGETING_TYPE_NAME => 'TARGETING_TYPE_NAME', - self::TRAFFIC_SOURCE => 'TRAFFIC_SOURCE', - self::TRAFFIC_SOURCE_NAME => 'TRAFFIC_SOURCE_NAME', - self::UNIFIED_PRICING_RULE_ID => 'UNIFIED_PRICING_RULE_ID', - self::UNIFIED_PRICING_RULE_NAME => 'UNIFIED_PRICING_RULE_NAME', - self::VIDEO_PLCMT => 'VIDEO_PLCMT', - self::VIDEO_PLCMT_NAME => 'VIDEO_PLCMT_NAME', - self::WEEK => 'WEEK', - self::YIELD_GROUP_BUYER_NAME => 'YIELD_GROUP_BUYER_NAME', - self::YIELD_GROUP_ID => 'YIELD_GROUP_ID', - self::YIELD_GROUP_NAME => 'YIELD_GROUP_NAME', - self::LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID => 'LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID', - self::LINE_ITEM_CUSTOM_FIELD_0_VALUE => 'LINE_ITEM_CUSTOM_FIELD_0_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_1_VALUE => 'LINE_ITEM_CUSTOM_FIELD_1_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_2_VALUE => 'LINE_ITEM_CUSTOM_FIELD_2_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_3_VALUE => 'LINE_ITEM_CUSTOM_FIELD_3_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_4_VALUE => 'LINE_ITEM_CUSTOM_FIELD_4_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_5_VALUE => 'LINE_ITEM_CUSTOM_FIELD_5_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_6_VALUE => 'LINE_ITEM_CUSTOM_FIELD_6_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_7_VALUE => 'LINE_ITEM_CUSTOM_FIELD_7_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_8_VALUE => 'LINE_ITEM_CUSTOM_FIELD_8_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_9_VALUE => 'LINE_ITEM_CUSTOM_FIELD_9_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_10_VALUE => 'LINE_ITEM_CUSTOM_FIELD_10_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_11_VALUE => 'LINE_ITEM_CUSTOM_FIELD_11_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_12_VALUE => 'LINE_ITEM_CUSTOM_FIELD_12_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_13_VALUE => 'LINE_ITEM_CUSTOM_FIELD_13_VALUE', - self::LINE_ITEM_CUSTOM_FIELD_14_VALUE => 'LINE_ITEM_CUSTOM_FIELD_14_VALUE', - self::ORDER_CUSTOM_FIELD_0_OPTION_ID => 'ORDER_CUSTOM_FIELD_0_OPTION_ID', - self::ORDER_CUSTOM_FIELD_1_OPTION_ID => 'ORDER_CUSTOM_FIELD_1_OPTION_ID', - self::ORDER_CUSTOM_FIELD_2_OPTION_ID => 'ORDER_CUSTOM_FIELD_2_OPTION_ID', - self::ORDER_CUSTOM_FIELD_3_OPTION_ID => 'ORDER_CUSTOM_FIELD_3_OPTION_ID', - self::ORDER_CUSTOM_FIELD_4_OPTION_ID => 'ORDER_CUSTOM_FIELD_4_OPTION_ID', - self::ORDER_CUSTOM_FIELD_5_OPTION_ID => 'ORDER_CUSTOM_FIELD_5_OPTION_ID', - self::ORDER_CUSTOM_FIELD_6_OPTION_ID => 'ORDER_CUSTOM_FIELD_6_OPTION_ID', - self::ORDER_CUSTOM_FIELD_7_OPTION_ID => 'ORDER_CUSTOM_FIELD_7_OPTION_ID', - self::ORDER_CUSTOM_FIELD_8_OPTION_ID => 'ORDER_CUSTOM_FIELD_8_OPTION_ID', - self::ORDER_CUSTOM_FIELD_9_OPTION_ID => 'ORDER_CUSTOM_FIELD_9_OPTION_ID', - self::ORDER_CUSTOM_FIELD_10_OPTION_ID => 'ORDER_CUSTOM_FIELD_10_OPTION_ID', - self::ORDER_CUSTOM_FIELD_11_OPTION_ID => 'ORDER_CUSTOM_FIELD_11_OPTION_ID', - self::ORDER_CUSTOM_FIELD_12_OPTION_ID => 'ORDER_CUSTOM_FIELD_12_OPTION_ID', - self::ORDER_CUSTOM_FIELD_13_OPTION_ID => 'ORDER_CUSTOM_FIELD_13_OPTION_ID', - self::ORDER_CUSTOM_FIELD_14_OPTION_ID => 'ORDER_CUSTOM_FIELD_14_OPTION_ID', - self::ORDER_CUSTOM_FIELD_0_VALUE => 'ORDER_CUSTOM_FIELD_0_VALUE', - self::ORDER_CUSTOM_FIELD_1_VALUE => 'ORDER_CUSTOM_FIELD_1_VALUE', - self::ORDER_CUSTOM_FIELD_2_VALUE => 'ORDER_CUSTOM_FIELD_2_VALUE', - self::ORDER_CUSTOM_FIELD_3_VALUE => 'ORDER_CUSTOM_FIELD_3_VALUE', - self::ORDER_CUSTOM_FIELD_4_VALUE => 'ORDER_CUSTOM_FIELD_4_VALUE', - self::ORDER_CUSTOM_FIELD_5_VALUE => 'ORDER_CUSTOM_FIELD_5_VALUE', - self::ORDER_CUSTOM_FIELD_6_VALUE => 'ORDER_CUSTOM_FIELD_6_VALUE', - self::ORDER_CUSTOM_FIELD_7_VALUE => 'ORDER_CUSTOM_FIELD_7_VALUE', - self::ORDER_CUSTOM_FIELD_8_VALUE => 'ORDER_CUSTOM_FIELD_8_VALUE', - self::ORDER_CUSTOM_FIELD_9_VALUE => 'ORDER_CUSTOM_FIELD_9_VALUE', - self::ORDER_CUSTOM_FIELD_10_VALUE => 'ORDER_CUSTOM_FIELD_10_VALUE', - self::ORDER_CUSTOM_FIELD_11_VALUE => 'ORDER_CUSTOM_FIELD_11_VALUE', - self::ORDER_CUSTOM_FIELD_12_VALUE => 'ORDER_CUSTOM_FIELD_12_VALUE', - self::ORDER_CUSTOM_FIELD_13_VALUE => 'ORDER_CUSTOM_FIELD_13_VALUE', - self::ORDER_CUSTOM_FIELD_14_VALUE => 'ORDER_CUSTOM_FIELD_14_VALUE', - self::CREATIVE_CUSTOM_FIELD_0_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_0_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_1_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_1_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_2_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_2_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_3_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_3_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_4_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_4_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_5_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_5_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_6_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_6_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_7_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_7_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_8_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_8_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_9_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_9_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_10_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_10_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_11_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_11_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_12_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_12_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_13_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_13_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_14_OPTION_ID => 'CREATIVE_CUSTOM_FIELD_14_OPTION_ID', - self::CREATIVE_CUSTOM_FIELD_0_VALUE => 'CREATIVE_CUSTOM_FIELD_0_VALUE', - self::CREATIVE_CUSTOM_FIELD_1_VALUE => 'CREATIVE_CUSTOM_FIELD_1_VALUE', - self::CREATIVE_CUSTOM_FIELD_2_VALUE => 'CREATIVE_CUSTOM_FIELD_2_VALUE', - self::CREATIVE_CUSTOM_FIELD_3_VALUE => 'CREATIVE_CUSTOM_FIELD_3_VALUE', - self::CREATIVE_CUSTOM_FIELD_4_VALUE => 'CREATIVE_CUSTOM_FIELD_4_VALUE', - self::CREATIVE_CUSTOM_FIELD_5_VALUE => 'CREATIVE_CUSTOM_FIELD_5_VALUE', - self::CREATIVE_CUSTOM_FIELD_6_VALUE => 'CREATIVE_CUSTOM_FIELD_6_VALUE', - self::CREATIVE_CUSTOM_FIELD_7_VALUE => 'CREATIVE_CUSTOM_FIELD_7_VALUE', - self::CREATIVE_CUSTOM_FIELD_8_VALUE => 'CREATIVE_CUSTOM_FIELD_8_VALUE', - self::CREATIVE_CUSTOM_FIELD_9_VALUE => 'CREATIVE_CUSTOM_FIELD_9_VALUE', - self::CREATIVE_CUSTOM_FIELD_10_VALUE => 'CREATIVE_CUSTOM_FIELD_10_VALUE', - self::CREATIVE_CUSTOM_FIELD_11_VALUE => 'CREATIVE_CUSTOM_FIELD_11_VALUE', - self::CREATIVE_CUSTOM_FIELD_12_VALUE => 'CREATIVE_CUSTOM_FIELD_12_VALUE', - self::CREATIVE_CUSTOM_FIELD_13_VALUE => 'CREATIVE_CUSTOM_FIELD_13_VALUE', - self::CREATIVE_CUSTOM_FIELD_14_VALUE => 'CREATIVE_CUSTOM_FIELD_14_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE', - self::BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE => 'BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID => 'BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID', - self::BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE', - self::BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE => 'BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID => 'BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE', - self::BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE => 'BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE', - self::CUSTOM_DIMENSION_0_VALUE_ID => 'CUSTOM_DIMENSION_0_VALUE_ID', - self::CUSTOM_DIMENSION_1_VALUE_ID => 'CUSTOM_DIMENSION_1_VALUE_ID', - self::CUSTOM_DIMENSION_2_VALUE_ID => 'CUSTOM_DIMENSION_2_VALUE_ID', - self::CUSTOM_DIMENSION_3_VALUE_ID => 'CUSTOM_DIMENSION_3_VALUE_ID', - self::CUSTOM_DIMENSION_4_VALUE_ID => 'CUSTOM_DIMENSION_4_VALUE_ID', - self::CUSTOM_DIMENSION_5_VALUE_ID => 'CUSTOM_DIMENSION_5_VALUE_ID', - self::CUSTOM_DIMENSION_6_VALUE_ID => 'CUSTOM_DIMENSION_6_VALUE_ID', - self::CUSTOM_DIMENSION_7_VALUE_ID => 'CUSTOM_DIMENSION_7_VALUE_ID', - self::CUSTOM_DIMENSION_8_VALUE_ID => 'CUSTOM_DIMENSION_8_VALUE_ID', - self::CUSTOM_DIMENSION_9_VALUE_ID => 'CUSTOM_DIMENSION_9_VALUE_ID', - self::CUSTOM_DIMENSION_0_VALUE => 'CUSTOM_DIMENSION_0_VALUE', - self::CUSTOM_DIMENSION_1_VALUE => 'CUSTOM_DIMENSION_1_VALUE', - self::CUSTOM_DIMENSION_2_VALUE => 'CUSTOM_DIMENSION_2_VALUE', - self::CUSTOM_DIMENSION_3_VALUE => 'CUSTOM_DIMENSION_3_VALUE', - self::CUSTOM_DIMENSION_4_VALUE => 'CUSTOM_DIMENSION_4_VALUE', - self::CUSTOM_DIMENSION_5_VALUE => 'CUSTOM_DIMENSION_5_VALUE', - self::CUSTOM_DIMENSION_6_VALUE => 'CUSTOM_DIMENSION_6_VALUE', - self::CUSTOM_DIMENSION_7_VALUE => 'CUSTOM_DIMENSION_7_VALUE', - self::CUSTOM_DIMENSION_8_VALUE => 'CUSTOM_DIMENSION_8_VALUE', - self::CUSTOM_DIMENSION_9_VALUE => 'CUSTOM_DIMENSION_9_VALUE', - ]; - - 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(Dimension::class, \Google\Ads\AdManager\V1\Report_Dimension::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Field.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Field.php deleted file mode 100644 index b940b0e94c26..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Field.php +++ /dev/null @@ -1,111 +0,0 @@ -google.ads.admanager.v1.Report.Field - */ -class Field extends \Google\Protobuf\Internal\Message -{ - protected $field; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $dimension - * The dimension this field represents. - * @type int $metric - * The metric this field represents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The dimension this field represents. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Dimension dimension = 1; - * @return int - */ - public function getDimension() - { - return $this->readOneof(1); - } - - public function hasDimension() - { - return $this->hasOneof(1); - } - - /** - * The dimension this field represents. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Dimension dimension = 1; - * @param int $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Dimension::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The metric this field represents. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Metric metric = 2; - * @return int - */ - public function getMetric() - { - return $this->readOneof(2); - } - - public function hasMetric() - { - return $this->hasOneof(2); - } - - /** - * The metric this field represents. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Metric metric = 2; - * @param int $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Metric::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getField() - { - return $this->whichOneof("field"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Field::class, \Google\Ads\AdManager\V1\Report_Field::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter.php deleted file mode 100644 index 7fcfbd539b31..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter.php +++ /dev/null @@ -1,177 +0,0 @@ -google.ads.admanager.v1.Report.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Report\Filter\FieldFilter $field_filter - * A filter on a single field. - * @type \Google\Ads\AdManager\V1\Report\Filter $not_filter - * A filter whose result is negated. - * @type \Google\Ads\AdManager\V1\Report\Filter\FilterList $and_filter - * A list of filters whose results are AND-ed. - * @type \Google\Ads\AdManager\V1\Report\Filter\FilterList $or_filter - * A list of filters whose results are OR-ed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * A filter on a single field. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * @return \Google\Ads\AdManager\V1\Report\Filter\FieldFilter|null - */ - public function getFieldFilter() - { - return $this->readOneof(1); - } - - public function hasFieldFilter() - { - return $this->hasOneof(1); - } - - /** - * A filter on a single field. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.FieldFilter field_filter = 1; - * @param \Google\Ads\AdManager\V1\Report\Filter\FieldFilter $var - * @return $this - */ - public function setFieldFilter($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Filter\FieldFilter::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A filter whose result is negated. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter not_filter = 2; - * @return \Google\Ads\AdManager\V1\Report\Filter|null - */ - public function getNotFilter() - { - return $this->readOneof(2); - } - - public function hasNotFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter whose result is negated. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter not_filter = 2; - * @param \Google\Ads\AdManager\V1\Report\Filter $var - * @return $this - */ - public function setNotFilter($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Filter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A list of filters whose results are AND-ed. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * @return \Google\Ads\AdManager\V1\Report\Filter\FilterList|null - */ - public function getAndFilter() - { - return $this->readOneof(3); - } - - public function hasAndFilter() - { - return $this->hasOneof(3); - } - - /** - * A list of filters whose results are AND-ed. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.FilterList and_filter = 3; - * @param \Google\Ads\AdManager\V1\Report\Filter\FilterList $var - * @return $this - */ - public function setAndFilter($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Filter\FilterList::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A list of filters whose results are OR-ed. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * @return \Google\Ads\AdManager\V1\Report\Filter\FilterList|null - */ - public function getOrFilter() - { - return $this->readOneof(4); - } - - public function hasOrFilter() - { - return $this->hasOneof(4); - } - - /** - * A list of filters whose results are OR-ed. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.FilterList or_filter = 4; - * @param \Google\Ads\AdManager\V1\Report\Filter\FilterList $var - * @return $this - */ - public function setOrFilter($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Filter\FilterList::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Filter::class, \Google\Ads\AdManager\V1\Report_Filter::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/FieldFilter.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/FieldFilter.php deleted file mode 100644 index dbffdd4eba15..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/FieldFilter.php +++ /dev/null @@ -1,288 +0,0 @@ -google.ads.admanager.v1.Report.Filter.FieldFilter - */ -class FieldFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The field to filter on. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - /** - * Required. The operation of this filter. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $operation = 0; - /** - * Required. Values to filter to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Optional. Use to filter on a specific slice of data. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $slice = null; - /** - * Optional. When using time period columns, use this to filter on a - * specific column. - * - * Generated from protobuf field optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_period_index = null; - /** - * Optional. Use to specify which metric value type to filter on. Defaults - * to PRIMARY. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_value_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Report\Field $field - * Required. The field to filter on. - * @type int $operation - * Required. The operation of this filter. - * @type array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $values - * Required. Values to filter to. - * @type \Google\Ads\AdManager\V1\Report\Slice $slice - * Optional. Use to filter on a specific slice of data. - * @type int $time_period_index - * Optional. When using time period columns, use this to filter on a - * specific column. - * @type int $metric_value_type - * Optional. Use to specify which metric value type to filter on. Defaults - * to PRIMARY. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The field to filter on. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report\Field|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. The field to filter on. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report\Field $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Field::class); - $this->field = $var; - - return $this; - } - - /** - * Required. The operation of this filter. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * Required. The operation of this filter. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Filter.Operation operation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Filter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * Required. Values to filter to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. Values to filter to. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Value values = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Ads\AdManager\V1\Report\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Value::class); - $this->values = $arr; - - return $this; - } - - /** - * Optional. Use to filter on a specific slice of data. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\Report\Slice|null - */ - public function getSlice() - { - return $this->slice; - } - - public function hasSlice() - { - return isset($this->slice); - } - - public function clearSlice() - { - unset($this->slice); - } - - /** - * Optional. Use to filter on a specific slice of data. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.Slice slice = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\Report\Slice $var - * @return $this - */ - public function setSlice($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Slice::class); - $this->slice = $var; - - return $this; - } - - /** - * Optional. When using time period columns, use this to filter on a - * specific column. - * - * Generated from protobuf field optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTimePeriodIndex() - { - return isset($this->time_period_index) ? $this->time_period_index : 0; - } - - public function hasTimePeriodIndex() - { - return isset($this->time_period_index); - } - - public function clearTimePeriodIndex() - { - unset($this->time_period_index); - } - - /** - * Optional. When using time period columns, use this to filter on a - * specific column. - * - * Generated from protobuf field optional int32 time_period_index = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTimePeriodIndex($var) - { - GPBUtil::checkInt32($var); - $this->time_period_index = $var; - - return $this; - } - - /** - * Optional. Use to specify which metric value type to filter on. Defaults - * to PRIMARY. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMetricValueType() - { - return isset($this->metric_value_type) ? $this->metric_value_type : 0; - } - - public function hasMetricValueType() - { - return isset($this->metric_value_type); - } - - public function clearMetricValueType() - { - unset($this->metric_value_type); - } - - /** - * Optional. Use to specify which metric value type to filter on. Defaults - * to PRIMARY. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMetricValueType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\MetricValueType::class); - $this->metric_value_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FieldFilter::class, \Google\Ads\AdManager\V1\Report_Filter_FieldFilter::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/FilterList.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/FilterList.php deleted file mode 100644 index bb3678c2fbb7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/FilterList.php +++ /dev/null @@ -1,70 +0,0 @@ -google.ads.admanager.v1.Report.Filter.FilterList - */ -class FilterList extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $filters - * Required. A list of filters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Required. A list of filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Filter::class); - $this->filters = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FilterList::class, \Google\Ads\AdManager\V1\Report_Filter_FilterList::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/Operation.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/Operation.php deleted file mode 100644 index 00a0f83e27dc..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Filter/Operation.php +++ /dev/null @@ -1,134 +0,0 @@ -google.ads.admanager.v1.Report.Filter.Operation - */ -class Operation -{ - /** - * For scalar operands, checks if the operand is in the set of provided - * filter values. - * For list operands, checks if any element in the operand is in the set - * of provided filter values. - * Default value. - * - * Generated from protobuf enum IN = 0; - */ - const IN = 0; - /** - * For scalar operands, checks that the operand is not in the set of - * provided filter values. - * For list operands, checks that none of the elements in the operand - * is in the set of provided filter values. - * - * Generated from protobuf enum NOT_IN = 1; - */ - const NOT_IN = 1; - /** - * For scalar string operands, checks if the operand contains any of the - * provided filter substrings. - * For string list operands, checks if any string in the operand contains - * any of the provided filter substrings. - * - * Generated from protobuf enum CONTAINS = 2; - */ - const CONTAINS = 2; - /** - * For scalar string operands, checks that the operand contains none of - * the provided filter substrings. - * For string list operands, checks that none of the strings in the - * operand contain none of the provided filter substrings. - * - * Generated from protobuf enum NOT_CONTAINS = 3; - */ - const NOT_CONTAINS = 3; - /** - * Operand is less than the provided filter value. - * - * Generated from protobuf enum LESS_THAN = 4; - */ - const LESS_THAN = 4; - /** - * Operand is less than or equal to provided filter value. - * - * Generated from protobuf enum LESS_THAN_EQUALS = 5; - */ - const LESS_THAN_EQUALS = 5; - /** - * Operand is greater than provided filter value. - * - * Generated from protobuf enum GREATER_THAN = 6; - */ - const GREATER_THAN = 6; - /** - * Operand is greater than or equal to provided filter value. - * - * Generated from protobuf enum GREATER_THAN_EQUALS = 7; - */ - const GREATER_THAN_EQUALS = 7; - /** - * Operand is between provided filter values. - * - * Generated from protobuf enum BETWEEN = 8; - */ - const BETWEEN = 8; - /** - * Operand matches against a regex or set of regexes (one must match) - * - * Generated from protobuf enum MATCHES = 9; - */ - const MATCHES = 9; - /** - * Operand negative matches against a regex or set of regexes (none must - * match) - * - * Generated from protobuf enum NOT_MATCHES = 10; - */ - const NOT_MATCHES = 10; - - private static $valueToName = [ - self::IN => 'IN', - self::NOT_IN => 'NOT_IN', - self::CONTAINS => 'CONTAINS', - self::NOT_CONTAINS => 'NOT_CONTAINS', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_EQUALS => 'LESS_THAN_EQUALS', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_EQUALS => 'GREATER_THAN_EQUALS', - self::BETWEEN => 'BETWEEN', - self::MATCHES => 'MATCHES', - self::NOT_MATCHES => 'NOT_MATCHES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Ads\AdManager\V1\Report_Filter_Operation::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Flag.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Flag.php deleted file mode 100644 index 831edf6dc806..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Flag.php +++ /dev/null @@ -1,120 +0,0 @@ -google.ads.admanager.v1.Report.Flag - */ -class Flag extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Filters to apply for the flag. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $filters; - /** - * Optional. Name of the flag. - * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to - * the colored flags that appear in the UI. The UI will not display flags - * with other names, but they are available for use by API clients. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $filters - * Required. Filters to apply for the flag. - * @type string $name - * Optional. Name of the flag. - * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to - * the colored flags that appear in the UI. The UI will not display flags - * with other names, but they are available for use by API clients. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Filters to apply for the flag. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Required. Filters to apply for the flag. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Filter::class); - $this->filters = $arr; - - return $this; - } - - /** - * Optional. Name of the flag. - * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to - * the colored flags that appear in the UI. The UI will not display flags - * with other names, but they are available for use by API clients. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Name of the flag. - * The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to - * the colored flags that appear in the UI. The UI will not display flags - * with other names, but they are available for use by API clients. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Flag::class, \Google\Ads\AdManager\V1\Report_Flag::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Metric.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Metric.php deleted file mode 100644 index 052b9aeb3b65..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Metric.php +++ /dev/null @@ -1,1308 +0,0 @@ -google.ads.admanager.v1.Report.Metric - */ -class Metric -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum METRIC_UNSPECIFIED = 0; - */ - const METRIC_UNSPECIFIED = 0; - /** - * Active View total average time in seconds that specific impressions are - * reported as being viewable. - * - * Generated from protobuf enum ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; - */ - const ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; - /** - * Total number of impressions that were eligible to measure viewability. - * - * Generated from protobuf enum ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; - */ - const ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; - /** - * The total number of impressions that were sampled and measured by active - * view. - * - * Generated from protobuf enum ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; - */ - const ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; - /** - * The percentage of total impressions that were measurable by active view - * (out of all the total impressions sampled for active view). - * - * Generated from protobuf enum ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; - */ - const ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; - /** - * The total number of impressions viewed on the user's screen. - * - * Generated from protobuf enum ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; - */ - const ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; - /** - * The percentage of total impressions viewed on the user's screen (out of - * the total impressions measurable by active view). - * - * Generated from protobuf enum ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; - */ - const ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; - /** - * Active View AdSense average time in seconds that specific impressions are - * reported as being viewable. - * - * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; - */ - const ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; - /** - * Total number of impressions delivered by AdSense that were eligible to - * measure viewability. - * - * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; - */ - const ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; - /** - * The number of impressions delivered by AdSense that were sampled, and - * measurable by active view. - * - * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; - */ - const ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; - /** - * The percentage of impressions delivered by AdSense that were measurable - * by active view (out of all AdSense impressions sampled for active view). - * - * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; - */ - const ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; - /** - * The number of impressions delivered by AdSense viewed on the user's - * screen. - * - * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; - */ - const ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; - /** - * The percentage of impressions delivered by AdSense viewed on the user's - * screen (out of AdSense impressions measurable by active view). - * - * Generated from protobuf enum ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; - */ - const ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; - /** - * The average effective cost-per-thousand-impressions earned from the ads - * delivered by AdSense through line item dynamic allocation. - * - * Generated from protobuf enum ADSENSE_AVERAGE_ECPM = 26; - */ - const ADSENSE_AVERAGE_ECPM = 26; - /** - * Number of clicks delivered by AdSense demand channel. - * - * Generated from protobuf enum ADSENSE_CLICKS = 23; - */ - const ADSENSE_CLICKS = 23; - /** - * The ratio of impressions served by AdSense that resulted in users - * clicking on an ad. The clickthrough rate (CTR) is updated nightly. The - * AdSense CTR is calculated as: (AdSense clicks / AdSense impressions). - * - * Generated from protobuf enum ADSENSE_CTR = 24; - */ - const ADSENSE_CTR = 24; - /** - * Total impressions delivered by AdSense. - * - * Generated from protobuf enum ADSENSE_IMPRESSIONS = 22; - */ - const ADSENSE_IMPRESSIONS = 22; - /** - * Ratio of clicks delivered by AdSense through line item dynamic allocation - * in relation to the total clicks delivered. - * - * Generated from protobuf enum ADSENSE_PERCENT_CLICKS = 28; - */ - const ADSENSE_PERCENT_CLICKS = 28; - /** - * Ratio of impressions delivered by AdSense through line item dynamic - * allocation in relation to the total impressions delivered. - * - * Generated from protobuf enum ADSENSE_PERCENT_IMPRESSIONS = 27; - */ - const ADSENSE_PERCENT_IMPRESSIONS = 27; - /** - * Ratio of revenue generated by AdSense through line item dynamic - * allocation in relation to the total revenue. - * - * Generated from protobuf enum ADSENSE_PERCENT_REVENUE = 29; - */ - const ADSENSE_PERCENT_REVENUE = 29; - /** - * Ratio of revenue generated by AdSense through line item dynamic - * allocation in relation to the total revenue (excluding CPD). - * - * Generated from protobuf enum ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; - */ - const ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; - /** - * The total number of times that an AdSense ad is delivered. - * - * Generated from protobuf enum ADSENSE_RESPONSES_SERVED = 41; - */ - const ADSENSE_RESPONSES_SERVED = 41; - /** - * Revenue generated from AdSense through line item dynamic allocation, - * calculated in the network's currency and time zone. - * - * Generated from protobuf enum ADSENSE_REVENUE = 25; - */ - const ADSENSE_REVENUE = 25; - /** - * Active View AdExchange average time in seconds that specific impressions - * are reported as being viewable. - * - * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; - */ - const AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; - /** - * Total number of impressions delivered by Ad Exchange that were eligible - * to measure viewability. - * - * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; - */ - const AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; - /** - * The number of impressions delivered by Ad Exchange that were sampled, and - * measurable by active view. - * - * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; - */ - const AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; - /** - * The percentage of impressions delivered by Ad Exchange that were - * measurable by active view (out of all Ad Exchange impressions sampled for - * active view). - * - * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; - */ - const AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; - /** - * The number of impressions delivered by Ad Exchange viewed on the user's - * screen. - * - * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; - */ - const AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; - /** - * The percentage of impressions delivered by Ad Exchange viewed on the - * user's screen (out of Ad Exchange impressions measurable by active view). - * - * Generated from protobuf enum AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; - */ - const AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; - /** - * The average effective cost-per-thousand-impressions earned from the ads - * delivered by Ad Exchange through line item dynamic allocation. - * - * Generated from protobuf enum AD_EXCHANGE_AVERAGE_ECPM = 18; - */ - const AD_EXCHANGE_AVERAGE_ECPM = 18; - /** - * Number of clicks delivered by the Ad Exchange. - * - * Generated from protobuf enum AD_EXCHANGE_CLICKS = 15; - */ - const AD_EXCHANGE_CLICKS = 15; - /** - * The ratio of impressions served by the Ad Exchange that resulted in users - * clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad - * Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange - * impressions). - * - * Generated from protobuf enum AD_EXCHANGE_CTR = 16; - */ - const AD_EXCHANGE_CTR = 16; - /** - * Total impressions delivered by the Ad Exchange. - * - * Generated from protobuf enum AD_EXCHANGE_IMPRESSIONS = 14; - */ - const AD_EXCHANGE_IMPRESSIONS = 14; - /** - * Ratio of clicks delivered by Ad Exchange through line item dynamic - * allocation in relation to the total clicks delivered. - * - * Generated from protobuf enum AD_EXCHANGE_PERCENT_CLICKS = 20; - */ - const AD_EXCHANGE_PERCENT_CLICKS = 20; - /** - * Ratio of impressions delivered by Ad Exchange through line item dynamic - * allocation in relation to the total impressions delivered. - * - * Generated from protobuf enum AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; - */ - const AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; - /** - * Ratio of revenue generated by Ad Exchange through line item dynamic - * allocation in relation to the total revenue. - * - * Generated from protobuf enum AD_EXCHANGE_PERCENT_REVENUE = 21; - */ - const AD_EXCHANGE_PERCENT_REVENUE = 21; - /** - * Ratio of revenue generated by Ad Exchange through line item dynamic - * allocation in relation to the total revenue (excluding CPD). - * - * Generated from protobuf enum AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; - */ - const AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; - /** - * The total number of times that an Ad Exchange ad is delivered. - * - * Generated from protobuf enum AD_EXCHANGE_RESPONSES_SERVED = 42; - */ - const AD_EXCHANGE_RESPONSES_SERVED = 42; - /** - * Revenue generated from the Ad Exchange through line item dynamic - * allocation, calculated in your network's currency and time zone. - * - * Generated from protobuf enum AD_EXCHANGE_REVENUE = 17; - */ - const AD_EXCHANGE_REVENUE = 17; - /** - * The total number of times that an ad request is sent to the ad server - * including dynamic allocation. - * - * Generated from protobuf enum AD_REQUESTS = 38; - */ - const AD_REQUESTS = 38; - /** - * Active View ad server average time in seconds that specific impressions - * are reported as being viewable. - * - * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; - */ - const AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; - /** - * Total number of impressions delivered by the ad server that were eligible - * to measure viewability. - * - * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; - */ - const AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; - /** - * The number of impressions delivered by the ad server that were sampled, - * and measurable by active view. - * - * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; - */ - const AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; - /** - * The percentage of impressions delivered by the ad server that were - * measurable by active view (out of all the ad server impressions sampled - * for active view). - * - * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; - */ - const AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; - /** - * The number of impressions delivered by the ad server viewed on the user's - * screen. - * - * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; - */ - const AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; - /** - * The percentage of impressions delivered by the ad server viewed on the - * user's screen (out of the ad server impressions measurable by active - * view). - * - * Generated from protobuf enum AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; - */ - const AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; - /** - * Average effective cost-per-thousand-impressions earned from the ads - * delivered by the Google Ad Manager server. - * - * Generated from protobuf enum AD_SERVER_AVERAGE_ECPM = 34; - */ - const AD_SERVER_AVERAGE_ECPM = 34; - /** - * Average effective cost-per-thousand-impressions earned from the ads - * delivered by the Google Ad Manager server, excluding CPD value. - * - * Generated from protobuf enum AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; - */ - const AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; - /** - * Total clicks served by the Google Ad Manager server. It usually takes - * about 30 minutes for new clicks to be recorded and added to the total - * displayed in reporting. - * - * Generated from protobuf enum AD_SERVER_CLICKS = 7; - */ - const AD_SERVER_CLICKS = 7; - /** - * CPD revenue earned, calculated in your network's currency, for - * the ads delivered by the Google Ad Manager server. Sum of all booked - * revenue. - * - * Generated from protobuf enum AD_SERVER_CPD_REVENUE = 32; - */ - const AD_SERVER_CPD_REVENUE = 32; - /** - * Ratio of impressions served by the Google Ad Manager server that resulted - * in users clicking on an ad. The clickthrough rate (CTR) is updated - * nightly. The ad server CTR is calculated as: (Ad server clicks / Ad - * server impressions). - * - * Generated from protobuf enum AD_SERVER_CTR = 8; - */ - const AD_SERVER_CTR = 8; - /** - * Total impressions delivered by the Ad Server. - * - * Generated from protobuf enum AD_SERVER_IMPRESSIONS = 6; - */ - const AD_SERVER_IMPRESSIONS = 6; - /** - * Ratio of clicks delivered by the Google Ad Manager server in relation to - * the total clicks delivered. - * - * Generated from protobuf enum AD_SERVER_PERCENT_CLICKS = 12; - */ - const AD_SERVER_PERCENT_CLICKS = 12; - /** - * Ratio of impressions delivered by the Google Ad Manager server in - * relation to the total impressions delivered. - * - * Generated from protobuf enum AD_SERVER_PERCENT_IMPRESSIONS = 11; - */ - const AD_SERVER_PERCENT_IMPRESSIONS = 11; - /** - * Ratio of revenue generated by the Google Ad Manager server in relation - * to the total revenue. - * - * Generated from protobuf enum AD_SERVER_PERCENT_REVENUE = 35; - */ - const AD_SERVER_PERCENT_REVENUE = 35; - /** - * Ratio of revenue generated by the Google Ad Manager server (excluding - * CPD) in relation to the total revenue. - * - * Generated from protobuf enum AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; - */ - const AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; - /** - * The total number of times that an ad is served by the ad server. - * - * Generated from protobuf enum AD_SERVER_RESPONSES_SERVED = 40; - */ - const AD_SERVER_RESPONSES_SERVED = 40; - /** - * All CPM, CPC, and CPD revenue earned, calculated in your network's - * currency, for the ads delivered by the Google Ad Manager server. - * Sum of all booked revenue. - * - * Generated from protobuf enum AD_SERVER_REVENUE = 33; - */ - const AD_SERVER_REVENUE = 33; - /** - * Revenue (excluding CPD) earned, calculated in your network's currency, - * for the ads delivered by the Google Ad Manager server. Sum of all booked - * revenue. - * - * Generated from protobuf enum AD_SERVER_REVENUE_WITHOUT_CPD = 9; - */ - const AD_SERVER_REVENUE_WITHOUT_CPD = 9; - /** - * Number of winning bids received from Open Bidding buyers, even when the - * winning bid is placed at the end of a mediation for mobile apps chain. - * - * Generated from protobuf enum AUCTIONS_WON = 80; - */ - const AUCTIONS_WON = 80; - /** - * eCPM averaged across the Google Ad Manager server, AdSense, - * and Ad Exchange. - * - * Generated from protobuf enum AVERAGE_ECPM = 37; - */ - const AVERAGE_ECPM = 37; - /** - * eCPM averaged across the Google Ad Manager server (excluding CPD), - * AdSense, and Ad Exchange. - * - * Generated from protobuf enum AVERAGE_ECPM_WITHOUT_CPD = 5; - */ - const AVERAGE_ECPM_WITHOUT_CPD = 5; - /** - * Number of bids received from Open Bidding buyers, regardless of whether - * the returned bid competes in an auction. - * - * Generated from protobuf enum BIDS = 81; - */ - const BIDS = 81; - /** - * Number of bids received from Open Bidding buyers that competed in - * the auction. - * - * Generated from protobuf enum BIDS_IN_AUCTION = 82; - */ - const BIDS_IN_AUCTION = 82; - /** - * Number of times a yield partner is asked to return bid to fill - * a yield group request. - * - * Generated from protobuf enum CALLOUTS = 83; - */ - const CALLOUTS = 83; - /** - * The number of times a user clicked on an ad. - * - * Generated from protobuf enum CLICKS = 2; - */ - const CLICKS = 2; - /** - * The total number of times that the code for an ad is served by the ad - * server including dynamic allocation. - * - * Generated from protobuf enum CODE_SERVED_COUNT = 44; - */ - const CODE_SERVED_COUNT = 44; - /** - * For standard ads, your ad clickthrough rate (CTR) is the number of ad - * clicks divided by the number of individual ad impressions expressed as a - * fraction. Ad CTR = Clicks / Ad impressions. - * - * Generated from protobuf enum CTR = 3; - */ - const CTR = 3; - /** - * The number of coviewed impressions sold by Google in partner sales. - * - * Generated from protobuf enum GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; - */ - const GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; - /** - * The number of auction impressions sold by Google in partner sales. - * - * Generated from protobuf enum GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; - */ - const GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; - /** - * The number of coviewed impressions sold by Google in partner sales. - * - * Generated from protobuf enum GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; - */ - const GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; - /** - * The number of impressions sold by Google in partner sales. - * - * Generated from protobuf enum GOOGLE_SOLD_IMPRESSIONS = 130; - */ - const GOOGLE_SOLD_IMPRESSIONS = 130; - /** - * The number of coviewed impressions sold by Google in partner sales. - * - * Generated from protobuf enum GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; - */ - const GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; - /** - * The number of reservation impressions sold by Google in partner sales. - * - * Generated from protobuf enum GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; - */ - const GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; - /** - * Total impressions from the Google Ad Manager server, AdSense, - * Ad Exchange, and yield group partners. - * - * Generated from protobuf enum IMPRESSIONS = 1; - */ - const IMPRESSIONS = 1; - /** - * The number of filled pod requests (filled by partner or Google) in - * partner sales. - * - * Generated from protobuf enum PARTNER_SALES_FILLED_POD_REQUESTS = 135; - */ - const PARTNER_SALES_FILLED_POD_REQUESTS = 135; - /** - * The percent of filled requests to total ad requests in - * partner sales. - * - * Generated from protobuf enum PARTNER_SALES_FILL_RATE = 136; - */ - const PARTNER_SALES_FILL_RATE = 136; - /** - * The percent of partner filled requests to total ad requests - * in partner sales. - * - * Generated from protobuf enum PARTNER_SALES_PARTNER_MATCH_RATE = 137; - */ - const PARTNER_SALES_PARTNER_MATCH_RATE = 137; - /** - * The number of queries eligible for partner sales. - * - * Generated from protobuf enum PARTNER_SALES_QUERIES = 132; - */ - const PARTNER_SALES_QUERIES = 132; - /** - * The number of partner unfilled impressions in partner sales. - * If a pod request is not filled by partner but filled by Google, this - * metric will still count 1. - * - * Generated from protobuf enum PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; - */ - const PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; - /** - * The number of partner unmatched queries in partner sales. - * If an ad request is not filled by partner but filled by Google, this - * metric will still count 1. - * - * Generated from protobuf enum PARTNER_SALES_UNMATCHED_QUERIES = 134; - */ - const PARTNER_SALES_UNMATCHED_QUERIES = 134; - /** - * The number of code served sold by partner in partner sales. - * - * Generated from protobuf enum PARTNER_SOLD_CODE_SERVED = 125; - */ - const PARTNER_SOLD_CODE_SERVED = 125; - /** - * The number of coviewed impressions sold by partner in partner sales. - * - * Generated from protobuf enum PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; - */ - const PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; - /** - * The number of impressions sold by partner in partner sales. - * - * Generated from protobuf enum PARTNER_SOLD_IMPRESSIONS = 123; - */ - const PARTNER_SOLD_IMPRESSIONS = 123; - /** - * The total number of ad requests eligible for programmatic inventory, - * including Programmatic Guaranteed, Preferred Deals, backfill, and open - * auction. - * - * Generated from protobuf enum PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; - */ - const PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; - /** - * The number of programmatic responses served divided by the number of - * programmatic eligible ad requests. Includes Ad Exchange, Open Bidding, - * and Preferred Deals. - * - * Generated from protobuf enum PROGRAMMATIC_MATCH_RATE = 178; - */ - const PROGRAMMATIC_MATCH_RATE = 178; - /** - * Total number of ad responses served from programmatic demand sources. - * Includes Ad Exchange, Open Bidding, and Preferred Deals. - * Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open - * Bidding ad requests. - * - * Generated from protobuf enum PROGRAMMATIC_RESPONSES_SERVED = 176; - */ - const PROGRAMMATIC_RESPONSES_SERVED = 176; - /** - * The total number of times that an ad is served by the ad server including - * dynamic allocation. - * - * Generated from protobuf enum RESPONSES_SERVED = 39; - */ - const RESPONSES_SERVED = 39; - /** - * Total amount of CPM, CPC, and CPD revenue based on the number of units - * served by the Google Ad Manager server, AdSense, Ad Exchange, and - * third-party Mediation networks. - * - * Generated from protobuf enum REVENUE = 36; - */ - const REVENUE = 36; - /** - * Total amount of revenue (excluding CPD) based on the number of units - * served by the Google Ad Manager server, AdSense, Ad Exchange, and - * third-party Mediation networks. - * - * Generated from protobuf enum REVENUE_WITHOUT_CPD = 4; - */ - const REVENUE_WITHOUT_CPD = 4; - /** - * Number of times a yield group buyer successfully returned a bid in - * response to a yield group callout. - * - * Generated from protobuf enum SUCCESSFUL_RESPONSES = 84; - */ - const SUCCESSFUL_RESPONSES = 84; - /** - * The total number of missed impressions due to the ad servers' inability - * to find ads to serve including dynamic allocation. - * - * Generated from protobuf enum UNFILLED_IMPRESSIONS = 45; - */ - const UNFILLED_IMPRESSIONS = 45; - /** - * The total number of times that an ad is not returned by the ad server. - * - * Generated from protobuf enum UNMATCHED_AD_REQUESTS = 43; - */ - const UNMATCHED_AD_REQUESTS = 43; - /** - * Number of times an Offerwall message was shown to users. - * - * Generated from protobuf enum USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; - */ - const USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; - /** - * The number of messages where the user gained an entitlement. - * - * Generated from protobuf enum USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; - */ - const USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; - /** - * The number of user interactions with a video, on average, such as pause, - * full screen, mute, etc. - * - * Generated from protobuf enum VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; - */ - const VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; - /** - * The number of times a user collapses a video, either to its original size - * or to a different size. - * - * Generated from protobuf enum VIDEO_INTERACTION_COLLAPSES = 93; - */ - const VIDEO_INTERACTION_COLLAPSES = 93; - /** - * The number of times a user expands a video. - * - * Generated from protobuf enum VIDEO_INTERACTION_EXPANDS = 95; - */ - const VIDEO_INTERACTION_EXPANDS = 95; - /** - * The number of times ad clip played in full screen mode. - * - * Generated from protobuf enum VIDEO_INTERACTION_FULL_SCREENS = 96; - */ - const VIDEO_INTERACTION_FULL_SCREENS = 96; - /** - * The number of times video player was in mute state during play of ad - * clip. - * - * Generated from protobuf enum VIDEO_INTERACTION_MUTES = 97; - */ - const VIDEO_INTERACTION_MUTES = 97; - /** - * The number of times user paused ad clip. - * - * Generated from protobuf enum VIDEO_INTERACTION_PAUSES = 98; - */ - const VIDEO_INTERACTION_PAUSES = 98; - /** - * The number of times the user unpaused the video. - * - * Generated from protobuf enum VIDEO_INTERACTION_RESUMES = 99; - */ - const VIDEO_INTERACTION_RESUMES = 99; - /** - * The number of times a user rewinds the video. - * - * Generated from protobuf enum VIDEO_INTERACTION_REWINDS = 100; - */ - const VIDEO_INTERACTION_REWINDS = 100; - /** - * The number of times a user unmutes the video. - * - * Generated from protobuf enum VIDEO_INTERACTION_UNMUTES = 101; - */ - const VIDEO_INTERACTION_UNMUTES = 101; - /** - * The number of times a skippable video is skipped. - * - * Generated from protobuf enum VIDEO_INTERACTION_VIDEO_SKIPS = 102; - */ - const VIDEO_INTERACTION_VIDEO_SKIPS = 102; - /** - * The number of total creative serves in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_CREATIVE_SERVES = 139; - */ - const VIDEO_REAL_TIME_CREATIVE_SERVES = 139; - /** - * The number of errors of type 100 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_100_COUNT = 143; - */ - const VIDEO_REAL_TIME_ERROR_100_COUNT = 143; - /** - * The number of errors of type 101 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_101_COUNT = 144; - */ - const VIDEO_REAL_TIME_ERROR_101_COUNT = 144; - /** - * The number of errors of type 102 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_102_COUNT = 145; - */ - const VIDEO_REAL_TIME_ERROR_102_COUNT = 145; - /** - * The number of errors of type 200 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_200_COUNT = 146; - */ - const VIDEO_REAL_TIME_ERROR_200_COUNT = 146; - /** - * The number of errors of type 201 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_201_COUNT = 147; - */ - const VIDEO_REAL_TIME_ERROR_201_COUNT = 147; - /** - * The number of errors of type 202 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_202_COUNT = 148; - */ - const VIDEO_REAL_TIME_ERROR_202_COUNT = 148; - /** - * The number of errors of type 203 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_203_COUNT = 149; - */ - const VIDEO_REAL_TIME_ERROR_203_COUNT = 149; - /** - * The number of errors of type 300 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_300_COUNT = 150; - */ - const VIDEO_REAL_TIME_ERROR_300_COUNT = 150; - /** - * The number of errors of type 301 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_301_COUNT = 151; - */ - const VIDEO_REAL_TIME_ERROR_301_COUNT = 151; - /** - * The number of errors of type 302 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_302_COUNT = 152; - */ - const VIDEO_REAL_TIME_ERROR_302_COUNT = 152; - /** - * The number of errors of type 303 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_303_COUNT = 153; - */ - const VIDEO_REAL_TIME_ERROR_303_COUNT = 153; - /** - * The number of errors of type 400 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_400_COUNT = 154; - */ - const VIDEO_REAL_TIME_ERROR_400_COUNT = 154; - /** - * The number of errors of type 401 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_401_COUNT = 155; - */ - const VIDEO_REAL_TIME_ERROR_401_COUNT = 155; - /** - * The number of errors of type 402 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_402_COUNT = 156; - */ - const VIDEO_REAL_TIME_ERROR_402_COUNT = 156; - /** - * The number of errors of type 403 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_403_COUNT = 157; - */ - const VIDEO_REAL_TIME_ERROR_403_COUNT = 157; - /** - * The number of errors of type 405 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_405_COUNT = 158; - */ - const VIDEO_REAL_TIME_ERROR_405_COUNT = 158; - /** - * The number of errors of type 406 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_406_COUNT = 159; - */ - const VIDEO_REAL_TIME_ERROR_406_COUNT = 159; - /** - * The number of errors of type 407 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_407_COUNT = 160; - */ - const VIDEO_REAL_TIME_ERROR_407_COUNT = 160; - /** - * The number of errors of type 408 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_408_COUNT = 161; - */ - const VIDEO_REAL_TIME_ERROR_408_COUNT = 161; - /** - * The number of errors of type 409 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_409_COUNT = 162; - */ - const VIDEO_REAL_TIME_ERROR_409_COUNT = 162; - /** - * The number of errors of type 410 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_410_COUNT = 163; - */ - const VIDEO_REAL_TIME_ERROR_410_COUNT = 163; - /** - * The number of errors of type 500 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_500_COUNT = 164; - */ - const VIDEO_REAL_TIME_ERROR_500_COUNT = 164; - /** - * The number of errors of type 501 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_501_COUNT = 165; - */ - const VIDEO_REAL_TIME_ERROR_501_COUNT = 165; - /** - * The number of errors of type 502 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_502_COUNT = 166; - */ - const VIDEO_REAL_TIME_ERROR_502_COUNT = 166; - /** - * The number of errors of type 503 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_503_COUNT = 167; - */ - const VIDEO_REAL_TIME_ERROR_503_COUNT = 167; - /** - * The number of errors of type 600 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_600_COUNT = 168; - */ - const VIDEO_REAL_TIME_ERROR_600_COUNT = 168; - /** - * The number of errors of type 601 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_601_COUNT = 169; - */ - const VIDEO_REAL_TIME_ERROR_601_COUNT = 169; - /** - * The number of errors of type 602 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_602_COUNT = 170; - */ - const VIDEO_REAL_TIME_ERROR_602_COUNT = 170; - /** - * The number of errors of type 603 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_603_COUNT = 171; - */ - const VIDEO_REAL_TIME_ERROR_603_COUNT = 171; - /** - * The number of errors of type 604 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_604_COUNT = 172; - */ - const VIDEO_REAL_TIME_ERROR_604_COUNT = 172; - /** - * The number of errors of type 900 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_900_COUNT = 173; - */ - const VIDEO_REAL_TIME_ERROR_900_COUNT = 173; - /** - * The number of errors of type 901 in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_ERROR_901_COUNT = 174; - */ - const VIDEO_REAL_TIME_ERROR_901_COUNT = 174; - /** - * The number of total impressions in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_IMPRESSIONS = 138; - */ - const VIDEO_REAL_TIME_IMPRESSIONS = 138; - /** - * The number of matched queries in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_MATCHED_QUERIES = 140; - */ - const VIDEO_REAL_TIME_MATCHED_QUERIES = 140; - /** - * The number of all errors in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; - */ - const VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; - /** - * The number of total queries in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_TOTAL_QUERIES = 142; - */ - const VIDEO_REAL_TIME_TOTAL_QUERIES = 142; - /** - * The number of unmatched queries in video realtime reporting. - * - * Generated from protobuf enum VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; - */ - const VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; - /** - * Number of times that the publisher specified a video ad played - * automatically. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; - */ - const VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; - /** - * Average percentage of the video watched by users. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; - */ - const VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; - /** - * Average time(seconds) users watched the video. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; - */ - const VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; - /** - * Number of times that the publisher specified a video ad was clicked to - * play. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; - */ - const VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; - /** - * The number of times the video played to completion. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_COMPLETES = 107; - */ - const VIDEO_VIEWERSHIP_COMPLETES = 107; - /** - * Percentage of times the video played to the end. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; - */ - const VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; - /** - * The number of engaged views: ad is viewed to completion or for 30s, - * whichever comes first. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; - */ - const VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; - /** - * The number of times the video played to 25% of its length. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; - */ - const VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; - /** - * The number of times the video reached its midpoint during play. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_MIDPOINTS = 111; - */ - const VIDEO_VIEWERSHIP_MIDPOINTS = 111; - /** - * The number of times a skip button is shown in video. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; - */ - const VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; - /** - * The number of impressions where the video was played. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_STARTS = 113; - */ - const VIDEO_VIEWERSHIP_STARTS = 113; - /** - * The number of times the video played to 75% of its length. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; - */ - const VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; - /** - * The number of times an error occurred, such as a VAST redirect error, a - * video playback error, or an invalid response error. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; - */ - const VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; - /** - * The percentage of video error count. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; - */ - const VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; - /** - * Duration of the video creative. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; - */ - const VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; - /** - * View-through rate represented as a percentage. - * - * Generated from protobuf enum VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; - */ - const VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; - /** - * The estimated net rate for yield groups or individual - * yield group partners. - * - * Generated from protobuf enum YIELD_GROUP_ESTIMATED_CPM = 88; - */ - const YIELD_GROUP_ESTIMATED_CPM = 88; - /** - * Total net revenue earned by a yield group, based upon the yield group - * estimated CPM and yield group impressions recorded. - * - * Generated from protobuf enum YIELD_GROUP_ESTIMATED_REVENUE = 87; - */ - const YIELD_GROUP_ESTIMATED_REVENUE = 87; - /** - * Number of matched yield group requests where a yield partner delivered - * their ad to publisher inventory. - * - * Generated from protobuf enum YIELD_GROUP_IMPRESSIONS = 85; - */ - const YIELD_GROUP_IMPRESSIONS = 85; - /** - * Yield group Mediation fill rate indicating how often a network - * fills an ad request. - * - * Generated from protobuf enum YIELD_GROUP_MEDIATION_FILL_RATE = 89; - */ - const YIELD_GROUP_MEDIATION_FILL_RATE = 89; - /** - * Total requests where a Mediation chain was served. - * - * Generated from protobuf enum YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; - */ - const YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; - /** - * The number of mediation chain passback across all channels. - * - * Generated from protobuf enum YIELD_GROUP_MEDIATION_PASSBACKS = 118; - */ - const YIELD_GROUP_MEDIATION_PASSBACKS = 118; - /** - * Revenue per thousand impressions based on data collected by Ad Manager - * from third-party ad network reports. - * - * Generated from protobuf enum YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; - */ - const YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; - - private static $valueToName = [ - self::METRIC_UNSPECIFIED => 'METRIC_UNSPECIFIED', - self::ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', - self::ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', - self::ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', - self::ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', - self::ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', - self::ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', - self::ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', - self::ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', - self::ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', - self::ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', - self::ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', - self::ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', - self::ADSENSE_AVERAGE_ECPM => 'ADSENSE_AVERAGE_ECPM', - self::ADSENSE_CLICKS => 'ADSENSE_CLICKS', - self::ADSENSE_CTR => 'ADSENSE_CTR', - self::ADSENSE_IMPRESSIONS => 'ADSENSE_IMPRESSIONS', - self::ADSENSE_PERCENT_CLICKS => 'ADSENSE_PERCENT_CLICKS', - self::ADSENSE_PERCENT_IMPRESSIONS => 'ADSENSE_PERCENT_IMPRESSIONS', - self::ADSENSE_PERCENT_REVENUE => 'ADSENSE_PERCENT_REVENUE', - self::ADSENSE_PERCENT_REVENUE_WITHOUT_CPD => 'ADSENSE_PERCENT_REVENUE_WITHOUT_CPD', - self::ADSENSE_RESPONSES_SERVED => 'ADSENSE_RESPONSES_SERVED', - self::ADSENSE_REVENUE => 'ADSENSE_REVENUE', - self::AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', - self::AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', - self::AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', - self::AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', - self::AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', - self::AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', - self::AD_EXCHANGE_AVERAGE_ECPM => 'AD_EXCHANGE_AVERAGE_ECPM', - self::AD_EXCHANGE_CLICKS => 'AD_EXCHANGE_CLICKS', - self::AD_EXCHANGE_CTR => 'AD_EXCHANGE_CTR', - self::AD_EXCHANGE_IMPRESSIONS => 'AD_EXCHANGE_IMPRESSIONS', - self::AD_EXCHANGE_PERCENT_CLICKS => 'AD_EXCHANGE_PERCENT_CLICKS', - self::AD_EXCHANGE_PERCENT_IMPRESSIONS => 'AD_EXCHANGE_PERCENT_IMPRESSIONS', - self::AD_EXCHANGE_PERCENT_REVENUE => 'AD_EXCHANGE_PERCENT_REVENUE', - self::AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD => 'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD', - self::AD_EXCHANGE_RESPONSES_SERVED => 'AD_EXCHANGE_RESPONSES_SERVED', - self::AD_EXCHANGE_REVENUE => 'AD_EXCHANGE_REVENUE', - self::AD_REQUESTS => 'AD_REQUESTS', - self::AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME => 'AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME', - self::AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS', - self::AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS', - self::AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE => 'AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE', - self::AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS => 'AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS', - self::AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE => 'AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE', - self::AD_SERVER_AVERAGE_ECPM => 'AD_SERVER_AVERAGE_ECPM', - self::AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD => 'AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD', - self::AD_SERVER_CLICKS => 'AD_SERVER_CLICKS', - self::AD_SERVER_CPD_REVENUE => 'AD_SERVER_CPD_REVENUE', - self::AD_SERVER_CTR => 'AD_SERVER_CTR', - self::AD_SERVER_IMPRESSIONS => 'AD_SERVER_IMPRESSIONS', - self::AD_SERVER_PERCENT_CLICKS => 'AD_SERVER_PERCENT_CLICKS', - self::AD_SERVER_PERCENT_IMPRESSIONS => 'AD_SERVER_PERCENT_IMPRESSIONS', - self::AD_SERVER_PERCENT_REVENUE => 'AD_SERVER_PERCENT_REVENUE', - self::AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD => 'AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD', - self::AD_SERVER_RESPONSES_SERVED => 'AD_SERVER_RESPONSES_SERVED', - self::AD_SERVER_REVENUE => 'AD_SERVER_REVENUE', - self::AD_SERVER_REVENUE_WITHOUT_CPD => 'AD_SERVER_REVENUE_WITHOUT_CPD', - self::AUCTIONS_WON => 'AUCTIONS_WON', - self::AVERAGE_ECPM => 'AVERAGE_ECPM', - self::AVERAGE_ECPM_WITHOUT_CPD => 'AVERAGE_ECPM_WITHOUT_CPD', - self::BIDS => 'BIDS', - self::BIDS_IN_AUCTION => 'BIDS_IN_AUCTION', - self::CALLOUTS => 'CALLOUTS', - self::CLICKS => 'CLICKS', - self::CODE_SERVED_COUNT => 'CODE_SERVED_COUNT', - self::CTR => 'CTR', - self::GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS => 'GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS', - self::GOOGLE_SOLD_AUCTION_IMPRESSIONS => 'GOOGLE_SOLD_AUCTION_IMPRESSIONS', - self::GOOGLE_SOLD_COVIEWED_IMPRESSIONS => 'GOOGLE_SOLD_COVIEWED_IMPRESSIONS', - self::GOOGLE_SOLD_IMPRESSIONS => 'GOOGLE_SOLD_IMPRESSIONS', - self::GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS => 'GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS', - self::GOOGLE_SOLD_RESERVATION_IMPRESSIONS => 'GOOGLE_SOLD_RESERVATION_IMPRESSIONS', - self::IMPRESSIONS => 'IMPRESSIONS', - self::PARTNER_SALES_FILLED_POD_REQUESTS => 'PARTNER_SALES_FILLED_POD_REQUESTS', - self::PARTNER_SALES_FILL_RATE => 'PARTNER_SALES_FILL_RATE', - self::PARTNER_SALES_PARTNER_MATCH_RATE => 'PARTNER_SALES_PARTNER_MATCH_RATE', - self::PARTNER_SALES_QUERIES => 'PARTNER_SALES_QUERIES', - self::PARTNER_SALES_UNFILLED_IMPRESSIONS => 'PARTNER_SALES_UNFILLED_IMPRESSIONS', - self::PARTNER_SALES_UNMATCHED_QUERIES => 'PARTNER_SALES_UNMATCHED_QUERIES', - self::PARTNER_SOLD_CODE_SERVED => 'PARTNER_SOLD_CODE_SERVED', - self::PARTNER_SOLD_COVIEWED_IMPRESSIONS => 'PARTNER_SOLD_COVIEWED_IMPRESSIONS', - self::PARTNER_SOLD_IMPRESSIONS => 'PARTNER_SOLD_IMPRESSIONS', - self::PROGRAMMATIC_ELIGIBLE_AD_REQUESTS => 'PROGRAMMATIC_ELIGIBLE_AD_REQUESTS', - self::PROGRAMMATIC_MATCH_RATE => 'PROGRAMMATIC_MATCH_RATE', - self::PROGRAMMATIC_RESPONSES_SERVED => 'PROGRAMMATIC_RESPONSES_SERVED', - self::RESPONSES_SERVED => 'RESPONSES_SERVED', - self::REVENUE => 'REVENUE', - self::REVENUE_WITHOUT_CPD => 'REVENUE_WITHOUT_CPD', - self::SUCCESSFUL_RESPONSES => 'SUCCESSFUL_RESPONSES', - self::UNFILLED_IMPRESSIONS => 'UNFILLED_IMPRESSIONS', - self::UNMATCHED_AD_REQUESTS => 'UNMATCHED_AD_REQUESTS', - self::USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN => 'USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN', - self::USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS => 'USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS', - self::VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE => 'VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE', - self::VIDEO_INTERACTION_COLLAPSES => 'VIDEO_INTERACTION_COLLAPSES', - self::VIDEO_INTERACTION_EXPANDS => 'VIDEO_INTERACTION_EXPANDS', - self::VIDEO_INTERACTION_FULL_SCREENS => 'VIDEO_INTERACTION_FULL_SCREENS', - self::VIDEO_INTERACTION_MUTES => 'VIDEO_INTERACTION_MUTES', - self::VIDEO_INTERACTION_PAUSES => 'VIDEO_INTERACTION_PAUSES', - self::VIDEO_INTERACTION_RESUMES => 'VIDEO_INTERACTION_RESUMES', - self::VIDEO_INTERACTION_REWINDS => 'VIDEO_INTERACTION_REWINDS', - self::VIDEO_INTERACTION_UNMUTES => 'VIDEO_INTERACTION_UNMUTES', - self::VIDEO_INTERACTION_VIDEO_SKIPS => 'VIDEO_INTERACTION_VIDEO_SKIPS', - self::VIDEO_REAL_TIME_CREATIVE_SERVES => 'VIDEO_REAL_TIME_CREATIVE_SERVES', - self::VIDEO_REAL_TIME_ERROR_100_COUNT => 'VIDEO_REAL_TIME_ERROR_100_COUNT', - self::VIDEO_REAL_TIME_ERROR_101_COUNT => 'VIDEO_REAL_TIME_ERROR_101_COUNT', - self::VIDEO_REAL_TIME_ERROR_102_COUNT => 'VIDEO_REAL_TIME_ERROR_102_COUNT', - self::VIDEO_REAL_TIME_ERROR_200_COUNT => 'VIDEO_REAL_TIME_ERROR_200_COUNT', - self::VIDEO_REAL_TIME_ERROR_201_COUNT => 'VIDEO_REAL_TIME_ERROR_201_COUNT', - self::VIDEO_REAL_TIME_ERROR_202_COUNT => 'VIDEO_REAL_TIME_ERROR_202_COUNT', - self::VIDEO_REAL_TIME_ERROR_203_COUNT => 'VIDEO_REAL_TIME_ERROR_203_COUNT', - self::VIDEO_REAL_TIME_ERROR_300_COUNT => 'VIDEO_REAL_TIME_ERROR_300_COUNT', - self::VIDEO_REAL_TIME_ERROR_301_COUNT => 'VIDEO_REAL_TIME_ERROR_301_COUNT', - self::VIDEO_REAL_TIME_ERROR_302_COUNT => 'VIDEO_REAL_TIME_ERROR_302_COUNT', - self::VIDEO_REAL_TIME_ERROR_303_COUNT => 'VIDEO_REAL_TIME_ERROR_303_COUNT', - self::VIDEO_REAL_TIME_ERROR_400_COUNT => 'VIDEO_REAL_TIME_ERROR_400_COUNT', - self::VIDEO_REAL_TIME_ERROR_401_COUNT => 'VIDEO_REAL_TIME_ERROR_401_COUNT', - self::VIDEO_REAL_TIME_ERROR_402_COUNT => 'VIDEO_REAL_TIME_ERROR_402_COUNT', - self::VIDEO_REAL_TIME_ERROR_403_COUNT => 'VIDEO_REAL_TIME_ERROR_403_COUNT', - self::VIDEO_REAL_TIME_ERROR_405_COUNT => 'VIDEO_REAL_TIME_ERROR_405_COUNT', - self::VIDEO_REAL_TIME_ERROR_406_COUNT => 'VIDEO_REAL_TIME_ERROR_406_COUNT', - self::VIDEO_REAL_TIME_ERROR_407_COUNT => 'VIDEO_REAL_TIME_ERROR_407_COUNT', - self::VIDEO_REAL_TIME_ERROR_408_COUNT => 'VIDEO_REAL_TIME_ERROR_408_COUNT', - self::VIDEO_REAL_TIME_ERROR_409_COUNT => 'VIDEO_REAL_TIME_ERROR_409_COUNT', - self::VIDEO_REAL_TIME_ERROR_410_COUNT => 'VIDEO_REAL_TIME_ERROR_410_COUNT', - self::VIDEO_REAL_TIME_ERROR_500_COUNT => 'VIDEO_REAL_TIME_ERROR_500_COUNT', - self::VIDEO_REAL_TIME_ERROR_501_COUNT => 'VIDEO_REAL_TIME_ERROR_501_COUNT', - self::VIDEO_REAL_TIME_ERROR_502_COUNT => 'VIDEO_REAL_TIME_ERROR_502_COUNT', - self::VIDEO_REAL_TIME_ERROR_503_COUNT => 'VIDEO_REAL_TIME_ERROR_503_COUNT', - self::VIDEO_REAL_TIME_ERROR_600_COUNT => 'VIDEO_REAL_TIME_ERROR_600_COUNT', - self::VIDEO_REAL_TIME_ERROR_601_COUNT => 'VIDEO_REAL_TIME_ERROR_601_COUNT', - self::VIDEO_REAL_TIME_ERROR_602_COUNT => 'VIDEO_REAL_TIME_ERROR_602_COUNT', - self::VIDEO_REAL_TIME_ERROR_603_COUNT => 'VIDEO_REAL_TIME_ERROR_603_COUNT', - self::VIDEO_REAL_TIME_ERROR_604_COUNT => 'VIDEO_REAL_TIME_ERROR_604_COUNT', - self::VIDEO_REAL_TIME_ERROR_900_COUNT => 'VIDEO_REAL_TIME_ERROR_900_COUNT', - self::VIDEO_REAL_TIME_ERROR_901_COUNT => 'VIDEO_REAL_TIME_ERROR_901_COUNT', - self::VIDEO_REAL_TIME_IMPRESSIONS => 'VIDEO_REAL_TIME_IMPRESSIONS', - self::VIDEO_REAL_TIME_MATCHED_QUERIES => 'VIDEO_REAL_TIME_MATCHED_QUERIES', - self::VIDEO_REAL_TIME_TOTAL_ERROR_COUNT => 'VIDEO_REAL_TIME_TOTAL_ERROR_COUNT', - self::VIDEO_REAL_TIME_TOTAL_QUERIES => 'VIDEO_REAL_TIME_TOTAL_QUERIES', - self::VIDEO_REAL_TIME_UNMATCHED_QUERIES => 'VIDEO_REAL_TIME_UNMATCHED_QUERIES', - self::VIDEO_VIEWERSHIP_AUTO_PLAYS => 'VIDEO_VIEWERSHIP_AUTO_PLAYS', - self::VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE => 'VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE', - self::VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME => 'VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME', - self::VIDEO_VIEWERSHIP_CLICK_TO_PLAYS => 'VIDEO_VIEWERSHIP_CLICK_TO_PLAYS', - self::VIDEO_VIEWERSHIP_COMPLETES => 'VIDEO_VIEWERSHIP_COMPLETES', - self::VIDEO_VIEWERSHIP_COMPLETION_RATE => 'VIDEO_VIEWERSHIP_COMPLETION_RATE', - self::VIDEO_VIEWERSHIP_ENGAGED_VIEWS => 'VIDEO_VIEWERSHIP_ENGAGED_VIEWS', - self::VIDEO_VIEWERSHIP_FIRST_QUARTILES => 'VIDEO_VIEWERSHIP_FIRST_QUARTILES', - self::VIDEO_VIEWERSHIP_MIDPOINTS => 'VIDEO_VIEWERSHIP_MIDPOINTS', - self::VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN => 'VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN', - self::VIDEO_VIEWERSHIP_STARTS => 'VIDEO_VIEWERSHIP_STARTS', - self::VIDEO_VIEWERSHIP_THIRD_QUARTILES => 'VIDEO_VIEWERSHIP_THIRD_QUARTILES', - self::VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT => 'VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT', - self::VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE => 'VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE', - self::VIDEO_VIEWERSHIP_VIDEO_LENGTH => 'VIDEO_VIEWERSHIP_VIDEO_LENGTH', - self::VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE => 'VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE', - self::YIELD_GROUP_ESTIMATED_CPM => 'YIELD_GROUP_ESTIMATED_CPM', - self::YIELD_GROUP_ESTIMATED_REVENUE => 'YIELD_GROUP_ESTIMATED_REVENUE', - self::YIELD_GROUP_IMPRESSIONS => 'YIELD_GROUP_IMPRESSIONS', - self::YIELD_GROUP_MEDIATION_FILL_RATE => 'YIELD_GROUP_MEDIATION_FILL_RATE', - self::YIELD_GROUP_MEDIATION_MATCHED_QUERIES => 'YIELD_GROUP_MEDIATION_MATCHED_QUERIES', - self::YIELD_GROUP_MEDIATION_PASSBACKS => 'YIELD_GROUP_MEDIATION_PASSBACKS', - self::YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM => 'YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM', - ]; - - 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(Metric::class, \Google\Ads\AdManager\V1\Report_Metric::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/MetricValueType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/MetricValueType.php deleted file mode 100644 index b7fbb5a5ecc2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/MetricValueType.php +++ /dev/null @@ -1,85 +0,0 @@ -google.ads.admanager.v1.Report.MetricValueType - */ -class MetricValueType -{ - /** - * The values for the primary date_range. - * - * Generated from protobuf enum PRIMARY = 0; - */ - const PRIMARY = 0; - /** - * Each metrics' percent of the total for the primary date_range. - * - * Generated from protobuf enum PRIMARY_PERCENT_OF_TOTAL = 1; - */ - const PRIMARY_PERCENT_OF_TOTAL = 1; - /** - * The values for the comparison_date_range. - * - * Generated from protobuf enum COMPARISON = 2; - */ - const COMPARISON = 2; - /** - * Each metrics' percent of the total for the comparison_date_range. - * - * Generated from protobuf enum COMPARISON_PERCENT_OF_TOTAL = 3; - */ - const COMPARISON_PERCENT_OF_TOTAL = 3; - /** - * The absolute change between the primary and comparison date ranges. - * - * Generated from protobuf enum ABSOLUTE_CHANGE = 4; - */ - const ABSOLUTE_CHANGE = 4; - /** - * The relative change between the primary and comparison date ranges. - * - * Generated from protobuf enum RELATIVE_CHANGE = 5; - */ - const RELATIVE_CHANGE = 5; - - private static $valueToName = [ - self::PRIMARY => 'PRIMARY', - self::PRIMARY_PERCENT_OF_TOTAL => 'PRIMARY_PERCENT_OF_TOTAL', - self::COMPARISON => 'COMPARISON', - self::COMPARISON_PERCENT_OF_TOTAL => 'COMPARISON_PERCENT_OF_TOTAL', - self::ABSOLUTE_CHANGE => 'ABSOLUTE_CHANGE', - self::RELATIVE_CHANGE => 'RELATIVE_CHANGE', - ]; - - 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(MetricValueType::class, \Google\Ads\AdManager\V1\Report_MetricValueType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/ReportType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/ReportType.php deleted file mode 100644 index c020e4036bb5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/ReportType.php +++ /dev/null @@ -1,57 +0,0 @@ -google.ads.admanager.v1.Report.ReportType - */ -class ReportType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum REPORT_TYPE_UNSPECIFIED = 0; - */ - const REPORT_TYPE_UNSPECIFIED = 0; - /** - * Historical. - * - * Generated from protobuf enum HISTORICAL = 1; - */ - const HISTORICAL = 1; - - private static $valueToName = [ - self::REPORT_TYPE_UNSPECIFIED => 'REPORT_TYPE_UNSPECIFIED', - self::HISTORICAL => 'HISTORICAL', - ]; - - 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(ReportType::class, \Google\Ads\AdManager\V1\Report_ReportType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Slice.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Slice.php deleted file mode 100644 index 95c6d2b33c81..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Slice.php +++ /dev/null @@ -1,116 +0,0 @@ -google.ads.admanager.v1.Report.Slice - */ -class Slice extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dimension to slice on. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dimension = 0; - /** - * Required. The value of the dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $dimension - * Required. The dimension to slice on. - * @type \Google\Ads\AdManager\V1\Report\Value $value - * Required. The value of the dimension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dimension to slice on. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDimension() - { - return $this->dimension; - } - - /** - * Required. The dimension to slice on. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Dimension dimension = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Dimension::class); - $this->dimension = $var; - - return $this; - } - - /** - * Required. The value of the dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Required. The value of the dimension. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Value::class); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Slice::class, \Google\Ads\AdManager\V1\Report_Slice::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Sort.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Sort.php deleted file mode 100644 index cb2f3bafa3b1..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Sort.php +++ /dev/null @@ -1,254 +0,0 @@ -google.ads.admanager.v1.Report.Sort - */ -class Sort extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field (dimension or metric) to sort by. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - /** - * Optional. The sort order. If true the sort will be descending. - * - * Generated from protobuf field bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $descending = false; - /** - * Optional. Use to sort on a specific slice of data. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $slice = null; - /** - * Optional. When using time period columns, use this to sort on a specific - * column. - * - * Generated from protobuf field optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_period_index = null; - /** - * Optional. Use to specify which metric value type to sort on. Defaults to - * PRIMARY. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_value_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Report\Field $field - * Required. A field (dimension or metric) to sort by. - * @type bool $descending - * Optional. The sort order. If true the sort will be descending. - * @type \Google\Ads\AdManager\V1\Report\Slice $slice - * Optional. Use to sort on a specific slice of data. - * @type int $time_period_index - * Optional. When using time period columns, use this to sort on a specific - * column. - * @type int $metric_value_type - * Optional. Use to specify which metric value type to sort on. Defaults to - * PRIMARY. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field (dimension or metric) to sort by. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report\Field|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. A field (dimension or metric) to sort by. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Field field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report\Field $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Field::class); - $this->field = $var; - - return $this; - } - - /** - * Optional. The sort order. If true the sort will be descending. - * - * Generated from protobuf field bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDescending() - { - return $this->descending; - } - - /** - * Optional. The sort order. If true the sort will be descending. - * - * Generated from protobuf field bool descending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDescending($var) - { - GPBUtil::checkBool($var); - $this->descending = $var; - - return $this; - } - - /** - * Optional. Use to sort on a specific slice of data. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\Report\Slice|null - */ - public function getSlice() - { - return $this->slice; - } - - public function hasSlice() - { - return isset($this->slice); - } - - public function clearSlice() - { - unset($this->slice); - } - - /** - * Optional. Use to sort on a specific slice of data. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.Slice slice = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\Report\Slice $var - * @return $this - */ - public function setSlice($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Slice::class); - $this->slice = $var; - - return $this; - } - - /** - * Optional. When using time period columns, use this to sort on a specific - * column. - * - * Generated from protobuf field optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTimePeriodIndex() - { - return isset($this->time_period_index) ? $this->time_period_index : 0; - } - - public function hasTimePeriodIndex() - { - return isset($this->time_period_index); - } - - public function clearTimePeriodIndex() - { - unset($this->time_period_index); - } - - /** - * Optional. When using time period columns, use this to sort on a specific - * column. - * - * Generated from protobuf field optional int32 time_period_index = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTimePeriodIndex($var) - { - GPBUtil::checkInt32($var); - $this->time_period_index = $var; - - return $this; - } - - /** - * Optional. Use to specify which metric value type to sort on. Defaults to - * PRIMARY. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMetricValueType() - { - return isset($this->metric_value_type) ? $this->metric_value_type : 0; - } - - public function hasMetricValueType() - { - return isset($this->metric_value_type); - } - - public function clearMetricValueType() - { - unset($this->metric_value_type); - } - - /** - * Optional. Use to specify which metric value type to sort on. Defaults to - * PRIMARY. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.MetricValueType metric_value_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMetricValueType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\MetricValueType::class); - $this->metric_value_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Sort::class, \Google\Ads\AdManager\V1\Report_Sort::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/TimePeriodColumn.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/TimePeriodColumn.php deleted file mode 100644 index 145cb7d1e77f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/TimePeriodColumn.php +++ /dev/null @@ -1,78 +0,0 @@ -google.ads.admanager.v1.Report.TimePeriodColumn - */ -class TimePeriodColumn -{ - /** - * Default value. Report will have no time period column. - * - * Generated from protobuf enum TIME_PERIOD_COLUMN_UNSPECIFIED = 0; - */ - const TIME_PERIOD_COLUMN_UNSPECIFIED = 0; - /** - * A column for each date in the report. - * - * Generated from protobuf enum TIME_PERIOD_COLUMN_DATE = 1; - */ - const TIME_PERIOD_COLUMN_DATE = 1; - /** - * A column for each week in the report. - * - * Generated from protobuf enum TIME_PERIOD_COLUMN_WEEK = 2; - */ - const TIME_PERIOD_COLUMN_WEEK = 2; - /** - * A column for each month in the report. - * - * Generated from protobuf enum TIME_PERIOD_COLUMN_MONTH = 3; - */ - const TIME_PERIOD_COLUMN_MONTH = 3; - /** - * A column for each quarter in the report. - * - * Generated from protobuf enum TIME_PERIOD_COLUMN_QUARTER = 4; - */ - const TIME_PERIOD_COLUMN_QUARTER = 4; - - private static $valueToName = [ - self::TIME_PERIOD_COLUMN_UNSPECIFIED => 'TIME_PERIOD_COLUMN_UNSPECIFIED', - self::TIME_PERIOD_COLUMN_DATE => 'TIME_PERIOD_COLUMN_DATE', - self::TIME_PERIOD_COLUMN_WEEK => 'TIME_PERIOD_COLUMN_WEEK', - self::TIME_PERIOD_COLUMN_MONTH => 'TIME_PERIOD_COLUMN_MONTH', - self::TIME_PERIOD_COLUMN_QUARTER => 'TIME_PERIOD_COLUMN_QUARTER', - ]; - - 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(TimePeriodColumn::class, \Google\Ads\AdManager\V1\Report_TimePeriodColumn::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value.php deleted file mode 100644 index 46d69cc5838b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value.php +++ /dev/null @@ -1,276 +0,0 @@ -google.ads.admanager.v1.Report.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int_value - * For integer values. - * @type float $double_value - * For double values. - * @type string $string_value - * For string values. - * @type bool $bool_value - * For boolean values. - * @type \Google\Ads\AdManager\V1\Report\Value\IntList $int_list_value - * For lists of integer values. - * @type \Google\Ads\AdManager\V1\Report\Value\StringList $string_list_value - * For lists of string values. - * @type string $bytes_value - * For bytes values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * For integer values. - * - * Generated from protobuf field int64 int_value = 1; - * @return int|string - */ - public function getIntValue() - { - return $this->readOneof(1); - } - - public function hasIntValue() - { - return $this->hasOneof(1); - } - - /** - * For integer values. - * - * Generated from protobuf field int64 int_value = 1; - * @param int|string $var - * @return $this - */ - public function setIntValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * For double values. - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * For double values. - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * For string values. - * - * Generated from protobuf field string string_value = 3; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * For string values. - * - * Generated from protobuf field string string_value = 3; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * For boolean values. - * - * Generated from protobuf field bool bool_value = 4; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(4); - } - - public function hasBoolValue() - { - return $this->hasOneof(4); - } - - /** - * For boolean values. - * - * Generated from protobuf field bool bool_value = 4; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * For lists of integer values. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * @return \Google\Ads\AdManager\V1\Report\Value\IntList|null - */ - public function getIntListValue() - { - return $this->readOneof(6); - } - - public function hasIntListValue() - { - return $this->hasOneof(6); - } - - /** - * For lists of integer values. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Value.IntList int_list_value = 6; - * @param \Google\Ads\AdManager\V1\Report\Value\IntList $var - * @return $this - */ - public function setIntListValue($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Value\IntList::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * For lists of string values. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * @return \Google\Ads\AdManager\V1\Report\Value\StringList|null - */ - public function getStringListValue() - { - return $this->readOneof(7); - } - - public function hasStringListValue() - { - return $this->hasOneof(7); - } - - /** - * For lists of string values. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.Value.StringList string_list_value = 7; - * @param \Google\Ads\AdManager\V1\Report\Value\StringList $var - * @return $this - */ - public function setStringListValue($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\Value\StringList::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * For bytes values. - * - * Generated from protobuf field bytes bytes_value = 8; - * @return string - */ - public function getBytesValue() - { - return $this->readOneof(8); - } - - public function hasBytesValue() - { - return $this->hasOneof(8); - } - - /** - * For bytes values. - * - * Generated from protobuf field bytes bytes_value = 8; - * @param string $var - * @return $this - */ - public function setBytesValue($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Value::class, \Google\Ads\AdManager\V1\Report_Value::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value/IntList.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value/IntList.php deleted file mode 100644 index 317fad984734..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value/IntList.php +++ /dev/null @@ -1,70 +0,0 @@ -google.ads.admanager.v1.Report.Value.IntList - */ -class IntList extends \Google\Protobuf\Internal\Message -{ - /** - * The values - * - * Generated from protobuf field repeated int64 values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|array|\Google\Protobuf\Internal\RepeatedField $values - * The values - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The values - * - * Generated from protobuf field repeated int64 values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The values - * - * Generated from protobuf field repeated int64 values = 1; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IntList::class, \Google\Ads\AdManager\V1\Report_Value_IntList::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value/StringList.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value/StringList.php deleted file mode 100644 index 48ee3b8dd8bb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Value/StringList.php +++ /dev/null @@ -1,70 +0,0 @@ -google.ads.admanager.v1.Report.Value.StringList - */ -class StringList extends \Google\Protobuf\Internal\Message -{ - /** - * The values - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The values - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The values - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The values - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringList::class, \Google\Ads\AdManager\V1\Report_Value_StringList::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php deleted file mode 100644 index 2af0d35fa1ac..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Report/Visibility.php +++ /dev/null @@ -1,67 +0,0 @@ -google.ads.admanager.v1.Report.Visibility - */ -class Visibility -{ - /** - * Default value. Reports with hidden visibility will not appear in the Ad - * Manager UI. - * - * Generated from protobuf enum HIDDEN = 0; - */ - const HIDDEN = 0; - /** - * Reports with draft visibility will appear in the Ad Manager UI only if - * the user has configured the UI to show them. - * - * Generated from protobuf enum DRAFT = 1; - */ - const DRAFT = 1; - /** - * Reports with saved visibility will appear in the Ad Manager UI by - * default. - * - * Generated from protobuf enum SAVED = 2; - */ - const SAVED = 2; - - private static $valueToName = [ - self::HIDDEN => 'HIDDEN', - self::DRAFT => 'DRAFT', - self::SAVED => 'SAVED', - ]; - - 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(Visibility::class, \Google\Ads\AdManager\V1\Report_Visibility::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php deleted file mode 100644 index 148e84f9f03e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ReportDefinition.php +++ /dev/null @@ -1,667 +0,0 @@ -google.ads.admanager.v1.ReportDefinition - */ -class ReportDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $dimensions; - /** - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $metrics; - /** - * Optional. The filters for this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $filters; - /** - * Optional. The time zone the date range is defined in for this report. - * Defaults to publisher's time zone if not specified. Time zone in IANA - * format. Acceptable values depend on the report type. Publisher time zone is - * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" - * for UTC. - * - * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_zone = ''; - /** - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * - * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $currency_code = ''; - /** - * Required. The primary date range of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $date_range = null; - /** - * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $comparison_date_range = null; - /** - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * - * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $custom_dimension_key_ids; - /** - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $line_item_custom_field_ids; - /** - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $order_custom_field_ids; - /** - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $creative_custom_field_ids; - /** - * Required. The type of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report_type = 0; - /** - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_period_column = 0; - /** - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $flags; - /** - * Optional. Default sorts to apply to this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $sorts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $dimensions - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * @type array|\Google\Protobuf\Internal\RepeatedField $metrics - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * @type array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $filters - * Optional. The filters for this report. - * @type string $time_zone - * Optional. The time zone the date range is defined in for this report. - * Defaults to publisher's time zone if not specified. Time zone in IANA - * format. Acceptable values depend on the report type. Publisher time zone is - * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" - * for UTC. - * @type string $currency_code - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * @type \Google\Ads\AdManager\V1\Report\DateRange $date_range - * Required. The primary date range of this report. - * @type \Google\Ads\AdManager\V1\Report\DateRange $comparison_date_range - * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $custom_dimension_key_ids - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $line_item_custom_field_ids - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $order_custom_field_ids - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $creative_custom_field_ids - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * @type int $report_type - * Required. The type of this report. - * @type int $time_period_column - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * @type array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $flags - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * @type array<\Google\Ads\AdManager\V1\Report\Sort>|\Google\Protobuf\Internal\RepeatedField $sorts - * Optional. Default sorts to apply to this report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Required. The list of dimensions to report on. If empty, the report will - * have no dimensions, and any metrics will be totals. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Dimension dimensions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\Report\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Required. The list of metrics to report on. If empty, the report will have - * no metrics. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Metric metrics = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\Report\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Optional. The filters for this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilters() - { - return $this->filters; - } - - /** - * Optional. The filters for this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Filter filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Filter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Filter::class); - $this->filters = $arr; - - return $this; - } - - /** - * Optional. The time zone the date range is defined in for this report. - * Defaults to publisher's time zone if not specified. Time zone in IANA - * format. Acceptable values depend on the report type. Publisher time zone is - * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" - * for UTC. - * - * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Optional. The time zone the date range is defined in for this report. - * Defaults to publisher's time zone if not specified. Time zone in IANA - * format. Acceptable values depend on the report type. Publisher time zone is - * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" - * for UTC. - * - * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * - * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Optional. The ISO 4217 currency code for this report. Defaults to publisher - * currency code if not specified. - * - * Generated from protobuf field string currency_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Required. The primary date range of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report\DateRange|null - */ - public function getDateRange() - { - return $this->date_range; - } - - public function hasDateRange() - { - return isset($this->date_range); - } - - public function clearDateRange() - { - unset($this->date_range); - } - - /** - * Required. The primary date range of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.DateRange date_range = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report\DateRange $var - * @return $this - */ - public function setDateRange($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\DateRange::class); - $this->date_range = $var; - - return $this; - } - - /** - * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Ads\AdManager\V1\Report\DateRange|null - */ - public function getComparisonDateRange() - { - return $this->comparison_date_range; - } - - public function hasComparisonDateRange() - { - return isset($this->comparison_date_range); - } - - public function clearComparisonDateRange() - { - unset($this->comparison_date_range); - } - - /** - * Optional. The comparison date range of this report. If unspecified, the - * report will not have any comparison metrics. - * - * Generated from protobuf field optional .google.ads.admanager.v1.Report.DateRange comparison_date_range = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Ads\AdManager\V1\Report\DateRange $var - * @return $this - */ - public function setComparisonDateRange($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report\DateRange::class); - $this->comparison_date_range = $var; - - return $this; - } - - /** - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * - * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomDimensionKeyIds() - { - return $this->custom_dimension_key_ids; - } - - /** - * Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, custom_dimension_key_ids[0] describes - * CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - * - * Generated from protobuf field repeated int64 custom_dimension_key_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomDimensionKeyIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->custom_dimension_key_ids = $arr; - - return $this; - } - - /** - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLineItemCustomFieldIds() - { - return $this->line_item_custom_field_ids; - } - - /** - * Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, line_item_custom_field_ids[0] describes - * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 line_item_custom_field_ids = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLineItemCustomFieldIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->line_item_custom_field_ids = $arr; - - return $this; - } - - /** - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderCustomFieldIds() - { - return $this->order_custom_field_ids; - } - - /** - * Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, order_custom_field_ids[0] describes - * ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 order_custom_field_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderCustomFieldIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->order_custom_field_ids = $arr; - - return $this; - } - - /** - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCreativeCustomFieldIds() - { - return $this->creative_custom_field_ids; - } - - /** - * Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - * dimensions. The index of this repeated field corresponds to the index on - * each dimension. For example, creative_custom_field_ids[0] describes - * CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - * - * Generated from protobuf field repeated int64 creative_custom_field_ids = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCreativeCustomFieldIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->creative_custom_field_ids = $arr; - - return $this; - } - - /** - * Required. The type of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getReportType() - { - return $this->report_type; - } - - /** - * Required. The type of this report. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.ReportType report_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setReportType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\ReportType::class); - $this->report_type = $var; - - return $this; - } - - /** - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTimePeriodColumn() - { - return $this->time_period_column; - } - - /** - * Optional. Include a time period column to introduce comparison columns in - * the report for each generated period. For example, set to "QUARTERS" here - * to have a column for each quarter present in the primary date range. If - * "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - * column will also include comparison values for its relative previous - * quarter. - * - * Generated from protobuf field .google.ads.admanager.v1.Report.TimePeriodColumn time_period_column = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTimePeriodColumn($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\TimePeriodColumn::class); - $this->time_period_column = $var; - - return $this; - } - - /** - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFlags() - { - return $this->flags; - } - - /** - * Optional. List of flags for this report. Used to flag rows in a result set - * based on a set of defined filters. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFlags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Flag::class); - $this->flags = $arr; - - return $this; - } - - /** - * Optional. Default sorts to apply to this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSorts() - { - return $this->sorts; - } - - /** - * Optional. Default sorts to apply to this report. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Sort sorts = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Sort>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Sort::class); - $this->sorts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php deleted file mode 100644 index dada96c1f725..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Role.php +++ /dev/null @@ -1,241 +0,0 @@ -google.ads.admanager.v1.Role - */ -class Role extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `Role` ID. - * - * Generated from protobuf field int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $role_id = 0; - /** - * Required. The display name of the `Role`. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The description of the `Role`. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Whether the `Role` is a built-in or custom user role. - * - * Generated from protobuf field bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $built_in = false; - /** - * Output only. The status of the `Role`. - * - * Generated from protobuf field .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * @type int|string $role_id - * Output only. `Role` ID. - * @type string $display_name - * Required. The display name of the `Role`. - * @type string $description - * Optional. The description of the `Role`. - * @type bool $built_in - * Output only. Whether the `Role` is a built-in or custom user role. - * @type int $status - * Output only. The status of the `Role`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Role`. - * Format: `networks/{network_code}/roles/{role_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `Role` ID. - * - * Generated from protobuf field int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getRoleId() - { - return $this->role_id; - } - - /** - * Output only. `Role` ID. - * - * Generated from protobuf field int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setRoleId($var) - { - GPBUtil::checkInt64($var); - $this->role_id = $var; - - return $this; - } - - /** - * Required. The display name of the `Role`. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the `Role`. - * - * 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. The description of the `Role`. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the `Role`. - * - * 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; - } - - /** - * Output only. Whether the `Role` is a built-in or custom user role. - * - * Generated from protobuf field bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getBuiltIn() - { - return $this->built_in; - } - - /** - * Output only. Whether the `Role` is a built-in or custom user role. - * - * Generated from protobuf field bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setBuiltIn($var) - { - GPBUtil::checkBool($var); - $this->built_in = $var; - - return $this; - } - - /** - * Output only. The status of the `Role`. - * - * Generated from protobuf field .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The status of the `Role`. - * - * Generated from protobuf field .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\RoleStatusEnum\RoleStatus::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php deleted file mode 100644 index f503830b55c8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.RoleStatusEnum - */ -class RoleStatusEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\RoleEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php deleted file mode 100644 index ff2884a49981..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RoleStatusEnum/RoleStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.RoleStatusEnum.RoleStatus - */ -class RoleStatus -{ - /** - * No value specified. - * - * Generated from protobuf enum ROLE_STATUS_UNSPECIFIED = 0; - */ - const ROLE_STATUS_UNSPECIFIED = 0; - /** - * Role is active. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * Role is inactive. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::ROLE_STATUS_UNSPECIFIED => 'ROLE_STATUS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - 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(RoleStatus::class, \Google\Ads\AdManager\V1\RoleStatusEnum_RoleStatus::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php deleted file mode 100644 index 8ef7b7307ec0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportMetadata.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.RunReportMetadata - */ -class RunReportMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * - * Generated from protobuf field int32 percent_complete = 2; - */ - protected $percent_complete = 0; - /** - * The result's parent report. - * - * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { - */ - protected $report = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $percent_complete - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * @type string $report - * The result's parent report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * - * Generated from protobuf field int32 percent_complete = 2; - * @return int - */ - public function getPercentComplete() - { - return $this->percent_complete; - } - - /** - * An estimate of how close this report is to being completed. Will always be - * 100 for failed and completed reports. - * - * Generated from protobuf field int32 percent_complete = 2; - * @param int $var - * @return $this - */ - public function setPercentComplete($var) - { - GPBUtil::checkInt32($var); - $this->percent_complete = $var; - - return $this; - } - - /** - * The result's parent report. - * - * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { - * @return string - */ - public function getReport() - { - return $this->report; - } - - /** - * The result's parent report. - * - * Generated from protobuf field string report = 4 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReport($var) - { - GPBUtil::checkString($var, True); - $this->report = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php deleted file mode 100644 index 45effb973cb7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.RunReportRequest - */ -class RunReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * Please see {@see ReportServiceClient::reportName()} for help formatting this field. - * - * @return \Google\Ads\AdManager\V1\RunReportRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * - * 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 report to run. - * Format: `networks/{network_code}/reports/{report_id}` - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php deleted file mode 100644 index c19b155b00c9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/RunReportResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.ads.admanager.v1.RunReportResponse - */ -class RunReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * - * Generated from protobuf field string report_result = 1; - */ - protected $report_result = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $report_result - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * - * Generated from protobuf field string report_result = 1; - * @return string - */ - public function getReportResult() - { - return $this->report_result; - } - - /** - * The unique name of the generated result. Use with `FetchReportResultRows` - * to retrieve data. - * - * Generated from protobuf field string report_result = 1; - * @param string $var - * @return $this - */ - public function setReportResult($var) - { - GPBUtil::checkString($var, True); - $this->report_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule.php deleted file mode 100644 index cb71b1409633..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule.php +++ /dev/null @@ -1,306 +0,0 @@ -google.ads.admanager.v1.Schedule - */ -class Schedule extends \Google\Protobuf\Internal\Message -{ - /** - * Date for the first run of the report. - * - * Generated from protobuf field .google.type.Date start_date = 1; - */ - protected $start_date = null; - /** - * Date for the final run of the report. - * - * Generated from protobuf field .google.type.Date end_date = 2; - */ - protected $end_date = null; - /** - * Frequency to run report. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - */ - protected $frequency = 0; - /** - * Indicates start time for schedule to run - * Will use the time_zone from `ReportDefinition`. Defaults - * to the publisher's time zone if not specified. - * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this - * will be the time of day that the first report will run on the first day. - * For example, if the start time is 2:00 PM, and the frequency is - * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, - * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, - * 2:00 PM, 10:00 PM. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 4; - */ - protected $start_time = null; - protected $frequency_schedule; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Schedule\WeeklySchedule $weekly_schedule - * Days of week to schedule report run. - * @type \Google\Ads\AdManager\V1\Schedule\MonthlySchedule $monthly_schedule - * Days of month to schedule report run. - * @type \Google\Type\Date $start_date - * Date for the first run of the report. - * @type \Google\Type\Date $end_date - * Date for the final run of the report. - * @type int $frequency - * Frequency to run report. - * @type \Google\Type\TimeOfDay $start_time - * Indicates start time for schedule to run - * Will use the time_zone from `ReportDefinition`. Defaults - * to the publisher's time zone if not specified. - * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this - * will be the time of day that the first report will run on the first day. - * For example, if the start time is 2:00 PM, and the frequency is - * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, - * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, - * 2:00 PM, 10:00 PM. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Days of week to schedule report run. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * @return \Google\Ads\AdManager\V1\Schedule\WeeklySchedule|null - */ - public function getWeeklySchedule() - { - return $this->readOneof(6); - } - - public function hasWeeklySchedule() - { - return $this->hasOneof(6); - } - - /** - * Days of week to schedule report run. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule.WeeklySchedule weekly_schedule = 6; - * @param \Google\Ads\AdManager\V1\Schedule\WeeklySchedule $var - * @return $this - */ - public function setWeeklySchedule($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Schedule\WeeklySchedule::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Days of month to schedule report run. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * @return \Google\Ads\AdManager\V1\Schedule\MonthlySchedule|null - */ - public function getMonthlySchedule() - { - return $this->readOneof(7); - } - - public function hasMonthlySchedule() - { - return $this->hasOneof(7); - } - - /** - * Days of month to schedule report run. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule.MonthlySchedule monthly_schedule = 7; - * @param \Google\Ads\AdManager\V1\Schedule\MonthlySchedule $var - * @return $this - */ - public function setMonthlySchedule($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Schedule\MonthlySchedule::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Date for the first run of the report. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * Date for the first run of the report. - * - * Generated from protobuf field .google.type.Date start_date = 1; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * Date for the final run of the report. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * Date for the final run of the report. - * - * Generated from protobuf field .google.type.Date end_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - - /** - * Frequency to run report. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency to run report. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule.Frequency frequency = 3; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Schedule\Frequency::class); - $this->frequency = $var; - - return $this; - } - - /** - * Indicates start time for schedule to run - * Will use the time_zone from `ReportDefinition`. Defaults - * to the publisher's time zone if not specified. - * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this - * will be the time of day that the first report will run on the first day. - * For example, if the start time is 2:00 PM, and the frequency is - * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, - * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, - * 2:00 PM, 10:00 PM. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 4; - * @return \Google\Type\TimeOfDay|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Indicates start time for schedule to run - * Will use the time_zone from `ReportDefinition`. Defaults - * to the publisher's time zone if not specified. - * For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this - * will be the time of day that the first report will run on the first day. - * For example, if the start time is 2:00 PM, and the frequency is - * THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, - * 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, - * 2:00 PM, 10:00 PM. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 4; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->start_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getFrequencySchedule() - { - return $this->whichOneof("frequency_schedule"); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/Frequency.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/Frequency.php deleted file mode 100644 index bb553323ce5d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/Frequency.php +++ /dev/null @@ -1,99 +0,0 @@ -google.ads.admanager.v1.Schedule.Frequency - */ -class Frequency -{ - /** - * No Frequency specified. - * - * Generated from protobuf enum FREQUENCY_UNSPECIFIED = 0; - */ - const FREQUENCY_UNSPECIFIED = 0; - /** - * Schedule report to run every hour. - * - * Generated from protobuf enum HOURLY = 1; - */ - const HOURLY = 1; - /** - * Schedule report to run twice a day (every 12 hours). - * - * Generated from protobuf enum TWO_TIMES_DAILY = 2; - */ - const TWO_TIMES_DAILY = 2; - /** - * Schedule report to run three times a day (every 8 hours). - * - * Generated from protobuf enum THREE_TIMES_DAILY = 3; - */ - const THREE_TIMES_DAILY = 3; - /** - * Schedule report to run four times a day (every 6 hours). - * - * Generated from protobuf enum FOUR_TIMES_DAILY = 4; - */ - const FOUR_TIMES_DAILY = 4; - /** - * Schedule report to run on a daily basis. - * - * Generated from protobuf enum DAILY = 5; - */ - const DAILY = 5; - /** - * Schedule report to run on a weekly basis. - * - * Generated from protobuf enum WEEKLY = 6; - */ - const WEEKLY = 6; - /** - * Schedule report to run on a monthly basis. - * - * Generated from protobuf enum MONTHLY = 7; - */ - const MONTHLY = 7; - - private static $valueToName = [ - self::FREQUENCY_UNSPECIFIED => 'FREQUENCY_UNSPECIFIED', - self::HOURLY => 'HOURLY', - self::TWO_TIMES_DAILY => 'TWO_TIMES_DAILY', - self::THREE_TIMES_DAILY => 'THREE_TIMES_DAILY', - self::FOUR_TIMES_DAILY => 'FOUR_TIMES_DAILY', - self::DAILY => 'DAILY', - self::WEEKLY => 'WEEKLY', - self::MONTHLY => 'MONTHLY', - ]; - - 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(Frequency::class, \Google\Ads\AdManager\V1\Schedule_Frequency::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/MonthlySchedule.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/MonthlySchedule.php deleted file mode 100644 index 85a4811670f2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/MonthlySchedule.php +++ /dev/null @@ -1,74 +0,0 @@ -google.ads.admanager.v1.Schedule.MonthlySchedule - */ -class MonthlySchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies days of the month to run report. Range is from 1-31. - * Will ignore days that are not valid for the given month. - * - * Generated from protobuf field repeated int32 monthly_scheduled_days = 1; - */ - private $monthly_scheduled_days; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $monthly_scheduled_days - * Specifies days of the month to run report. Range is from 1-31. - * Will ignore days that are not valid for the given month. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies days of the month to run report. Range is from 1-31. - * Will ignore days that are not valid for the given month. - * - * Generated from protobuf field repeated int32 monthly_scheduled_days = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMonthlyScheduledDays() - { - return $this->monthly_scheduled_days; - } - - /** - * Specifies days of the month to run report. Range is from 1-31. - * Will ignore days that are not valid for the given month. - * - * Generated from protobuf field repeated int32 monthly_scheduled_days = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMonthlyScheduledDays($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->monthly_scheduled_days = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MonthlySchedule::class, \Google\Ads\AdManager\V1\Schedule_MonthlySchedule::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/WeeklySchedule.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/WeeklySchedule.php deleted file mode 100644 index 2750f950f324..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Schedule/WeeklySchedule.php +++ /dev/null @@ -1,70 +0,0 @@ -google.ads.admanager.v1.Schedule.WeeklySchedule - */ -class WeeklySchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies days of the week on which to run report. - * - * Generated from protobuf field repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - */ - private $weekly_scheduled_days; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $weekly_scheduled_days - * Specifies days of the week on which to run report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies days of the week on which to run report. - * - * Generated from protobuf field repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWeeklyScheduledDays() - { - return $this->weekly_scheduled_days; - } - - /** - * Specifies days of the week on which to run report. - * - * Generated from protobuf field repeated .google.type.DayOfWeek weekly_scheduled_days = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWeeklyScheduledDays($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); - $this->weekly_scheduled_days = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WeeklySchedule::class, \Google\Ads\AdManager\V1\Schedule_WeeklySchedule::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php deleted file mode 100644 index fce3aa5c0d3c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions.php +++ /dev/null @@ -1,149 +0,0 @@ -google.ads.admanager.v1.ScheduleOptions - */ -class ScheduleOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Information pertaining to schedule itself. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule schedule = 1; - */ - protected $schedule = null; - /** - * Option for when to deliver the scheduled report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; - */ - protected $delivery_condition = 0; - /** - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $flags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Schedule $schedule - * Information pertaining to schedule itself. - * @type int $delivery_condition - * Option for when to deliver the scheduled report. - * @type array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $flags - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Information pertaining to schedule itself. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule schedule = 1; - * @return \Google\Ads\AdManager\V1\Schedule|null - */ - public function getSchedule() - { - return $this->schedule; - } - - public function hasSchedule() - { - return isset($this->schedule); - } - - public function clearSchedule() - { - unset($this->schedule); - } - - /** - * Information pertaining to schedule itself. - * - * Generated from protobuf field .google.ads.admanager.v1.Schedule schedule = 1; - * @param \Google\Ads\AdManager\V1\Schedule $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Schedule::class); - $this->schedule = $var; - - return $this; - } - - /** - * Option for when to deliver the scheduled report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; - * @return int - */ - public function getDeliveryCondition() - { - return $this->delivery_condition; - } - - /** - * Option for when to deliver the scheduled report. - * - * Generated from protobuf field .google.ads.admanager.v1.ScheduleOptions.DeliveryCondition delivery_condition = 2; - * @param int $var - * @return $this - */ - public function setDeliveryCondition($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ScheduleOptions\DeliveryCondition::class); - $this->delivery_condition = $var; - - return $this; - } - - /** - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFlags() - { - return $this->flags; - } - - /** - * Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - * is specified. - * - * Generated from protobuf field repeated .google.ads.admanager.v1.Report.Flag flags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Ads\AdManager\V1\Report\Flag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFlags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Report\Flag::class); - $this->flags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php deleted file mode 100644 index 6b4e5aab812f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/ScheduleOptions/DeliveryCondition.php +++ /dev/null @@ -1,64 +0,0 @@ -google.ads.admanager.v1.ScheduleOptions.DeliveryCondition - */ -class DeliveryCondition -{ - /** - * Never deliver report. - * - * Generated from protobuf enum NEVER = 0; - */ - const NEVER = 0; - /** - * Always deliver report. - * - * Generated from protobuf enum ALWAYS = 1; - */ - const ALWAYS = 1; - /** - * Deliver report when flag's conditions are met. - * - * Generated from protobuf enum WHEN_FLAG_CONDITIONS_MET = 2; - */ - const WHEN_FLAG_CONDITIONS_MET = 2; - - private static $valueToName = [ - self::NEVER => 'NEVER', - self::ALWAYS => 'ALWAYS', - self::WHEN_FLAG_CONDITIONS_MET => 'WHEN_FLAG_CONDITIONS_MET', - ]; - - 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(DeliveryCondition::class, \Google\Ads\AdManager\V1\ScheduleOptions_DeliveryCondition::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php deleted file mode 100644 index 927a409b1f5a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Size.php +++ /dev/null @@ -1,163 +0,0 @@ -google.ads.admanager.v1.Size - */ -class Size extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The width of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $width = 0; - /** - * Required. The height of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $height = 0; - /** - * Required. The SizeType of the - * [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $size_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $width - * Required. The width of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * @type int $height - * Required. The height of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * @type int $size_type - * Required. The SizeType of the - * [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\Size::initOnce(); - parent::__construct($data); - } - - /** - * Required. The width of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getWidth() - { - return $this->width; - } - - /** - * Required. The width of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkInt32($var); - $this->width = $var; - - return $this; - } - - /** - * Required. The height of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getHeight() - { - return $this->height; - } - - /** - * Required. The height of the [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setHeight($var) - { - GPBUtil::checkInt32($var); - $this->height = $var; - - return $this; - } - - /** - * Required. The SizeType of the - * [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSizeType() - { - return $this->size_type; - } - - /** - * Required. The SizeType of the - * [Creative](google.ads.admanager.v1.Creative), - * [AdUnit](google.ads.admanager.v1.AdUnit), or - * [LineItem](google.ads.admanager.v1.LineItem). - * - * Generated from protobuf field .google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSizeType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\SizeTypeEnum\SizeType::class); - $this->size_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php deleted file mode 100644 index 245c82dc7304..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.SizeTypeEnum - */ -class SizeTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\SizeTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php deleted file mode 100644 index 0398dcae2c6c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SizeTypeEnum/SizeType.php +++ /dev/null @@ -1,105 +0,0 @@ -google.ads.admanager.v1.SizeTypeEnum.SizeType - */ -class SizeType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SIZE_TYPE_UNSPECIFIED = 0; - */ - const SIZE_TYPE_UNSPECIFIED = 0; - /** - * Dimension based size, an actual height and width in pixels. - * - * Generated from protobuf enum PIXEL = 1; - */ - const PIXEL = 1; - /** - * Size is expressed as a ratio. For example, 4:1 could be - * met by a 100 x 25 sized image. - * - * Generated from protobuf enum ASPECT_RATIO = 2; - */ - const ASPECT_RATIO = 2; - /** - * Out-of-page (Interstitial) size that is not related to the slot it is - * served. This must be used with 1x1 size. - * - * Generated from protobuf enum INTERSTITIAL = 3; - */ - const INTERSTITIAL = 3; - /** - * Size is ignored. This must be used with 1x1 - * size. - * - * Generated from protobuf enum IGNORED = 4; - */ - const IGNORED = 4; - /** - * Native size, which is a function of the how the client renders the - * creative. This must be used with 1x1 size. - * - * Generated from protobuf enum NATIVE = 5; - */ - const NATIVE = 5; - /** - * Fluid size. Automatically sizes the ad by filling the width of the - * enclosing column and adjusting the height as appropriate. This must be - * used with 1x1 size. - * - * Generated from protobuf enum FLUID = 6; - */ - const FLUID = 6; - /** - * Audio size. Used with audio ads. This must be used with 1x1 size. - * - * Generated from protobuf enum AUDIO = 7; - */ - const AUDIO = 7; - - private static $valueToName = [ - self::SIZE_TYPE_UNSPECIFIED => 'SIZE_TYPE_UNSPECIFIED', - self::PIXEL => 'PIXEL', - self::ASPECT_RATIO => 'ASPECT_RATIO', - self::INTERSTITIAL => 'INTERSTITIAL', - self::IGNORED => 'IGNORED', - self::NATIVE => 'NATIVE', - self::FLUID => 'FLUID', - self::AUDIO => 'AUDIO', - ]; - - 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(SizeType::class, \Google\Ads\AdManager\V1\SizeTypeEnum_SizeType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php deleted file mode 100644 index 40e9ca0edd29..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.SmartSizeModeEnum - */ -class SmartSizeModeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php deleted file mode 100644 index 8f4f281107ee..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/SmartSizeModeEnum/SmartSizeMode.php +++ /dev/null @@ -1,72 +0,0 @@ -google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode - */ -class SmartSizeMode -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SMART_SIZE_MODE_UNSPECIFIED = 0; - */ - const SMART_SIZE_MODE_UNSPECIFIED = 0; - /** - * Fixed size mode (default). - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * The height is fixed for the request, the width is a range. - * - * Generated from protobuf enum SMART_BANNER = 2; - */ - const SMART_BANNER = 2; - /** - * Height and width are ranges. - * - * Generated from protobuf enum DYNAMIC_SIZE = 3; - */ - const DYNAMIC_SIZE = 3; - - private static $valueToName = [ - self::SMART_SIZE_MODE_UNSPECIFIED => 'SMART_SIZE_MODE_UNSPECIFIED', - self::NONE => 'NONE', - self::SMART_BANNER => 'SMART_BANNER', - self::DYNAMIC_SIZE => 'DYNAMIC_SIZE', - ]; - - 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(SmartSizeMode::class, \Google\Ads\AdManager\V1\SmartSizeModeEnum_SmartSizeMode::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php deleted file mode 100644 index a8637484ab5b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.TargetWindowEnum - */ -class TargetWindowEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php deleted file mode 100644 index 34e9c34ea8c0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TargetWindowEnum/TargetWindow.php +++ /dev/null @@ -1,65 +0,0 @@ -google.ads.admanager.v1.TargetWindowEnum.TargetWindow - */ -class TargetWindow -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TARGET_WINDOW_UNSPECIFIED = 0; - */ - const TARGET_WINDOW_UNSPECIFIED = 0; - /** - * Specifies that the link should open in the full body of the page. - * - * Generated from protobuf enum TOP = 1; - */ - const TOP = 1; - /** - * Specifies that the link should open in a new window. - * - * Generated from protobuf enum BLANK = 2; - */ - const BLANK = 2; - - private static $valueToName = [ - self::TARGET_WINDOW_UNSPECIFIED => 'TARGET_WINDOW_UNSPECIFIED', - self::TOP => 'TOP', - self::BLANK => 'BLANK', - ]; - - 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(TargetWindow::class, \Google\Ads\AdManager\V1\TargetWindowEnum_TargetWindow::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php deleted file mode 100644 index 53d713a41b4d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyCategory.php +++ /dev/null @@ -1,317 +0,0 @@ -google.ads.admanager.v1.TaxonomyCategory - */ -class TaxonomyCategory extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `TaxonomyCategory` ID. - * - * Generated from protobuf field int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $taxonomy_category_id = 0; - /** - * Output only. Display name of the `TaxonomyCategory`. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * - * Generated from protobuf field bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $grouping_only = false; - /** - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * - * Generated from protobuf field int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $parent_taxonomy_category_id = 0; - /** - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * - * Generated from protobuf field .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $taxonomy_type = 0; - /** - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $ancestor_names; - /** - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $ancestor_taxonomy_category_ids; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * @type int|string $taxonomy_category_id - * Output only. `TaxonomyCategory` ID. - * @type string $display_name - * Output only. Display name of the `TaxonomyCategory`. - * @type bool $grouping_only - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * @type int|string $parent_taxonomy_category_id - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * @type int $taxonomy_type - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * @type array|\Google\Protobuf\Internal\RepeatedField $ancestor_names - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * @type array|array|\Google\Protobuf\Internal\RepeatedField $ancestor_taxonomy_category_ids - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyCategoryMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `TaxonomyCategory`. - * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `TaxonomyCategory` ID. - * - * Generated from protobuf field int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTaxonomyCategoryId() - { - return $this->taxonomy_category_id; - } - - /** - * Output only. `TaxonomyCategory` ID. - * - * Generated from protobuf field int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTaxonomyCategoryId($var) - { - GPBUtil::checkInt64($var); - $this->taxonomy_category_id = $var; - - return $this; - } - - /** - * Output only. Display name of the `TaxonomyCategory`. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Display name of the `TaxonomyCategory`. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * - * Generated from protobuf field bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getGroupingOnly() - { - return $this->grouping_only; - } - - /** - * Output only. Whether this `TaxonomyCategory` only serves to group its - * children. - * - * Generated from protobuf field bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setGroupingOnly($var) - { - GPBUtil::checkBool($var); - $this->grouping_only = $var; - - return $this; - } - - /** - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * - * Generated from protobuf field int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getParentTaxonomyCategoryId() - { - return $this->parent_taxonomy_category_id; - } - - /** - * Output only. The ID of the parent category this `TaxonomyCategory` descends - * from. - * - * Generated from protobuf field int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setParentTaxonomyCategoryId($var) - { - GPBUtil::checkInt64($var); - $this->parent_taxonomy_category_id = $var; - - return $this; - } - - /** - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * - * Generated from protobuf field .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTaxonomyType() - { - return $this->taxonomy_type; - } - - /** - * Output only. The taxonomy that this `TaxonomyCategory` belongs to. - * - * Generated from protobuf field .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTaxonomyType($var) - { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\TaxonomyTypeEnum\TaxonomyType::class); - $this->taxonomy_type = $var; - - return $this; - } - - /** - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAncestorNames() - { - return $this->ancestor_names; - } - - /** - * Output only. The list of names of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAncestorNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ancestor_names = $arr; - - return $this; - } - - /** - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAncestorTaxonomyCategoryIds() - { - return $this->ancestor_taxonomy_category_ids; - } - - /** - * Output only. The list of IDs of the ancestors of this `TaxonomyCategory`. - * - * Generated from protobuf field repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAncestorTaxonomyCategoryIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->ancestor_taxonomy_category_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php deleted file mode 100644 index 0eb538bca072..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum.php +++ /dev/null @@ -1,34 +0,0 @@ -google.ads.admanager.v1.TaxonomyTypeEnum - */ -class TaxonomyTypeEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TaxonomyTypeEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php deleted file mode 100644 index ac6ec20de36e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TaxonomyTypeEnum/TaxonomyType.php +++ /dev/null @@ -1,86 +0,0 @@ -google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType - */ -class TaxonomyType -{ - /** - * Unspecified/not present - * - * Generated from protobuf enum TAXONOMY_TYPE_UNSPECIFIED = 0; - */ - const TAXONOMY_TYPE_UNSPECIFIED = 0; - /** - * The IAB Audience Taxonomy v1.1. - * - * Generated from protobuf enum TAXONOMY_IAB_AUDIENCE_1_1 = 3; - */ - const TAXONOMY_IAB_AUDIENCE_1_1 = 3; - /** - * The IAB Content Taxonomy v2.1. - * - * Generated from protobuf enum TAXONOMY_IAB_CONTENT_2_1 = 4; - */ - const TAXONOMY_IAB_CONTENT_2_1 = 4; - /** - * The IAB Content Taxonomy v2.2. - * - * Generated from protobuf enum TAXONOMY_IAB_CONTENT_2_2 = 6; - */ - const TAXONOMY_IAB_CONTENT_2_2 = 6; - /** - * The IAB Content Taxonomy v3.0. - * - * Generated from protobuf enum TAXONOMY_IAB_CONTENT_3_0 = 5; - */ - const TAXONOMY_IAB_CONTENT_3_0 = 5; - /** - * The PPS structured video signals taxonomy. - * - * Generated from protobuf enum TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 = 7; - */ - const TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 = 7; - - private static $valueToName = [ - self::TAXONOMY_TYPE_UNSPECIFIED => 'TAXONOMY_TYPE_UNSPECIFIED', - self::TAXONOMY_IAB_AUDIENCE_1_1 => 'TAXONOMY_IAB_AUDIENCE_1_1', - self::TAXONOMY_IAB_CONTENT_2_1 => 'TAXONOMY_IAB_CONTENT_2_1', - self::TAXONOMY_IAB_CONTENT_2_2 => 'TAXONOMY_IAB_CONTENT_2_2', - self::TAXONOMY_IAB_CONTENT_3_0 => 'TAXONOMY_IAB_CONTENT_3_0', - self::TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0 => 'TAXONOMY_GOOGLE_STRUCTURED_VIDEO_1_0', - ]; - - 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(TaxonomyType::class, \Google\Ads\AdManager\V1\TaxonomyTypeEnum_TaxonomyType::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php deleted file mode 100644 index d48d2bf8bc0a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/Team.php +++ /dev/null @@ -1,109 +0,0 @@ -google.ads.admanager.v1.Team - */ -class Team extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The unique ID of the Team. This value is assigned by Google. - * Teams that are created by Google will have negative IDs. - * - * Generated from protobuf field int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $team_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * @type int|string $team_id - * Output only. The unique ID of the Team. This value is assigned by Google. - * Teams that are created by Google will have negative IDs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TeamMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the `Team`. - * Format: `networks/{network_code}/teams/{team_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The unique ID of the Team. This value is assigned by Google. - * Teams that are created by Google will have negative IDs. - * - * Generated from protobuf field int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTeamId() - { - return $this->team_id; - } - - /** - * Output only. The unique ID of the Team. This value is assigned by Google. - * Teams that are created by Google will have negative IDs. - * - * Generated from protobuf field int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTeamId($var) - { - GPBUtil::checkInt64($var); - $this->team_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php deleted file mode 100644 index 22d5fc47f884..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum.php +++ /dev/null @@ -1,33 +0,0 @@ -google.ads.admanager.v1.TimeUnitEnum - */ -class TimeUnitEnum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\TimeUnitEnum::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php deleted file mode 100644 index 0572d6d0dd7e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/TimeUnitEnum/TimeUnit.php +++ /dev/null @@ -1,107 +0,0 @@ -google.ads.admanager.v1.TimeUnitEnum.TimeUnit - */ -class TimeUnit -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TIME_UNIT_UNSPECIFIED = 0; - */ - const TIME_UNIT_UNSPECIFIED = 0; - /** - * Minute - * - * Generated from protobuf enum MINUTE = 1; - */ - const MINUTE = 1; - /** - * Hour - * - * Generated from protobuf enum HOUR = 2; - */ - const HOUR = 2; - /** - * Day - * - * Generated from protobuf enum DAY = 3; - */ - const DAY = 3; - /** - * Week - * - * Generated from protobuf enum WEEK = 4; - */ - const WEEK = 4; - /** - * Month - * - * Generated from protobuf enum MONTH = 5; - */ - const MONTH = 5; - /** - * Lifetime - * - * Generated from protobuf enum LIFETIME = 6; - */ - const LIFETIME = 6; - /** - * Per pod of ads in a video stream. Only valid for entities in a - * VIDEO_PLAYER environment. - * - * Generated from protobuf enum POD = 7; - */ - const POD = 7; - /** - * Per video stream. Only valid for entities in a VIDEO_PLAYER environment. - * - * Generated from protobuf enum STREAM = 8; - */ - const STREAM = 8; - - private static $valueToName = [ - self::TIME_UNIT_UNSPECIFIED => 'TIME_UNIT_UNSPECIFIED', - self::MINUTE => 'MINUTE', - self::HOUR => 'HOUR', - self::DAY => 'DAY', - self::WEEK => 'WEEK', - self::MONTH => 'MONTH', - self::LIFETIME => 'LIFETIME', - self::POD => 'POD', - self::STREAM => 'STREAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimeUnit::class, \Google\Ads\AdManager\V1\TimeUnitEnum_TimeUnit::class); - diff --git a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php deleted file mode 100644 index 0a9d17a8a645..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateEntitySignalsMappingRequest.php +++ /dev/null @@ -1,157 +0,0 @@ -google.ads.admanager.v1.UpdateEntitySignalsMappingRequest - */ -class UpdateEntitySignalsMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity_signals_mapping = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping Required. The `EntitySignalsMapping` to update. - * - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Ads\AdManager\V1\UpdateEntitySignalsMappingRequest - * - * @experimental - */ - public static function build(\Google\Ads\AdManager\V1\EntitySignalsMapping $entitySignalsMapping, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\EntitySignalsMapping $entity_signals_mapping - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\EntitySignalsMappingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\EntitySignalsMapping|null - */ - public function getEntitySignalsMapping() - { - return $this->entity_signals_mapping; - } - - public function hasEntitySignalsMapping() - { - return isset($this->entity_signals_mapping); - } - - public function clearEntitySignalsMapping() - { - unset($this->entity_signals_mapping); - } - - /** - * Required. The `EntitySignalsMapping` to update. - * The EntitySignalsMapping's name is used to identify the - * EntitySignalsMapping to update. - * Format: - * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}` - * - * Generated from protobuf field .google.ads.admanager.v1.EntitySignalsMapping entity_signals_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\EntitySignalsMapping $var - * @return $this - */ - public function setEntitySignalsMapping($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\EntitySignalsMapping::class); - $this->entity_signals_mapping = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php deleted file mode 100644 index e34757d484ce..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/UpdateReportRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.ads.admanager.v1.UpdateReportRequest - */ -class UpdateReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `Report` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Ads\AdManager\V1\Report $report Required. The `Report` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Ads\AdManager\V1\UpdateReportRequest - * - * @experimental - */ - public static function build(\Google\Ads\AdManager\V1\Report $report, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setReport($report) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Ads\AdManager\V1\Report $report - * Required. The `Report` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\ReportService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `Report` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\AdManager\V1\Report|null - */ - public function getReport() - { - return $this->report; - } - - public function hasReport() - { - return isset($this->report); - } - - public function clearReport() - { - unset($this->report); - } - - /** - * Required. The `Report` to update. - * - * Generated from protobuf field .google.ads.admanager.v1.Report report = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\AdManager\V1\Report $var - * @return $this - */ - public function setReport($var) - { - GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Report::class); - $this->report = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php b/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php deleted file mode 100644 index a09c0c1997a9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/proto/src/Google/Ads/AdManager/V1/User.php +++ /dev/null @@ -1,379 +0,0 @@ -google.ads.admanager.v1.User - */ -class User extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. `User` ID. - * - * Generated from protobuf field int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user_id = 0; - /** - * Required. The name of the User. It has a maximum length of 128 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * - * Generated from protobuf field string email = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email = ''; - /** - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * - * Generated from protobuf field string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $role = ''; - /** - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * - * Generated from protobuf field bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $active = false; - /** - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * - * Generated from protobuf field string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_id = ''; - /** - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * - * Generated from protobuf field bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_account = false; - /** - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * - * Generated from protobuf field string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $orders_ui_local_time_zone = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * @type int|string $user_id - * Output only. `User` ID. - * @type string $display_name - * Required. The name of the User. It has a maximum length of 128 characters. - * @type string $email - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * @type string $role - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * @type bool $active - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * @type string $external_id - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * @type bool $service_account - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * @type string $orders_ui_local_time_zone - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Ads\Admanager\V1\UserMessages::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the User. - * Format: `networks/{network_code}/users/{user_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. `User` ID. - * - * Generated from protobuf field int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Output only. `User` ID. - * - * Generated from protobuf field int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkInt64($var); - $this->user_id = $var; - - return $this; - } - - /** - * Required. The name of the User. It has a maximum length of 128 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The name of the User. It has a maximum length of 128 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * - * Generated from protobuf field string email = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Required. The email or login of the User. In order to create a new user, - * you must already have a Google Account. - * - * Generated from protobuf field string email = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * - * Generated from protobuf field string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRole() - { - return $this->role; - } - - /** - * Required. The unique Role ID of the User. Roles that are created by Google - * will have negative IDs. - * - * Generated from protobuf field string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->role = $var; - - return $this; - } - - /** - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * - * Generated from protobuf field bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getActive() - { - return $this->active; - } - - /** - * Output only. Specifies whether or not the User is active. An inactive user - * cannot log in to the system or perform any operations. - * - * Generated from protobuf field bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setActive($var) - { - GPBUtil::checkBool($var); - $this->active = $var; - - return $this; - } - - /** - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * - * Generated from protobuf field string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Optional. An identifier for the User that is meaningful to the publisher. - * This attribute has a maximum length of 255 characters. - * - * Generated from protobuf field string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - - /** - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * - * Generated from protobuf field bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Output only. Whether the user is an OAuth2 service account user. - * Service account users can only be added through the UI. - * - * Generated from protobuf field bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkBool($var); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * - * Generated from protobuf field string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrdersUiLocalTimeZone() - { - return $this->orders_ui_local_time_zone; - } - - /** - * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", - * used in the orders and line items UI for this User. If not provided, the UI - * then defaults to using the Network's timezone. This setting only affects - * the UI for this user and does not affect the timezone of any dates and - * times returned in API responses. - * - * Generated from protobuf field string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrdersUiLocalTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->orders_ui_local_time_zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php deleted file mode 100644 index 8846a613c9d3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/get_ad_unit.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AdUnit $response */ - $response = $adUnitServiceClient->getAdUnit($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AdUnitServiceClient::adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - - get_ad_unit_sample($formattedName); -} -// [END admanager_v1_generated_AdUnitService_GetAdUnit_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php deleted file mode 100644 index ab8027b0a04f..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $adUnitServiceClient->listAdUnitSizes($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AdUnitServiceClient::networkName('[NETWORK_CODE]'); - - list_ad_unit_sizes_sample($formattedParent); -} -// [END admanager_v1_generated_AdUnitService_ListAdUnitSizes_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php deleted file mode 100644 index f1538e9f9629..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/AdUnitServiceClient/list_ad_units.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $adUnitServiceClient->listAdUnits($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AdUnitServiceClient::networkName('[NETWORK_CODE]'); - - list_ad_units_sample($formattedParent); -} -// [END admanager_v1_generated_AdUnitService_ListAdUnits_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php deleted file mode 100644 index 0c1e0dc60633..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/get_company.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Company $response */ - $response = $companyServiceClient->getCompany($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CompanyServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]'); - - get_company_sample($formattedName); -} -// [END admanager_v1_generated_CompanyService_GetCompany_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php deleted file mode 100644 index ce3426dcd278..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CompanyServiceClient/list_companies.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $companyServiceClient->listCompanies($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CompanyServiceClient::networkName('[NETWORK_CODE]'); - - list_companies_sample($formattedParent); -} -// [END admanager_v1_generated_CompanyService_ListCompanies_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php deleted file mode 100644 index 1d7294b16391..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/get_custom_field.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomField $response */ - $response = $customFieldServiceClient->getCustomField($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CustomFieldServiceClient::customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - - get_custom_field_sample($formattedName); -} -// [END admanager_v1_generated_CustomFieldService_GetCustomField_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php deleted file mode 100644 index f473dc1ef5d3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomFieldServiceClient/list_custom_fields.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $customFieldServiceClient->listCustomFields($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CustomFieldServiceClient::networkName('[NETWORK_CODE]'); - - list_custom_fields_sample($formattedParent); -} -// [END admanager_v1_generated_CustomFieldService_ListCustomFields_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php deleted file mode 100644 index 4ac51252a78c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomTargetingKey $response */ - $response = $customTargetingKeyServiceClient->getCustomTargetingKey($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CustomTargetingKeyServiceClient::customTargetingKeyName( - '[NETWORK_CODE]', - '[CUSTOM_TARGETING_KEY]' - ); - - get_custom_targeting_key_sample($formattedName); -} -// [END admanager_v1_generated_CustomTargetingKeyService_GetCustomTargetingKey_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php deleted file mode 100644 index 29e88c3c2904..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $customTargetingKeyServiceClient->listCustomTargetingKeys($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CustomTargetingKeyServiceClient::networkName('[NETWORK_CODE]'); - - list_custom_targeting_keys_sample($formattedParent); -} -// [END admanager_v1_generated_CustomTargetingKeyService_ListCustomTargetingKeys_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php deleted file mode 100644 index 4f15dfc8c026..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomTargetingValue $response */ - $response = $customTargetingValueServiceClient->getCustomTargetingValue($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CustomTargetingValueServiceClient::customTargetingValueName( - '[NETWORK_CODE]', - '[CUSTOM_TARGETING_KEY]', - '[CUSTOM_TARGETING_VALUE]' - ); - - get_custom_targeting_value_sample($formattedName); -} -// [END admanager_v1_generated_CustomTargetingValueService_GetCustomTargetingValue_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php deleted file mode 100644 index f2e059ab37d9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $customTargetingValueServiceClient->listCustomTargetingValues($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CustomTargetingValueServiceClient::customTargetingKeyName( - '[NETWORK_CODE]', - '[CUSTOM_TARGETING_KEY]' - ); - - list_custom_targeting_values_sample($formattedParent); -} -// [END admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php deleted file mode 100644 index a7b924a0dd25..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php +++ /dev/null @@ -1,99 +0,0 @@ -setTaxonomyCategoryIds($requestsEntitySignalsMappingTaxonomyCategoryIds); - $createEntitySignalsMappingRequest = (new CreateEntitySignalsMappingRequest()) - ->setParent($formattedRequestsParent) - ->setEntitySignalsMapping($requestsEntitySignalsMapping); - $requests = [$createEntitySignalsMappingRequest,]; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BatchCreateEntitySignalsMappingsResponse $response */ - $response = $entitySignalsMappingServiceClient->batchCreateEntitySignalsMappings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - $formattedRequestsParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - $requestsEntitySignalsMappingTaxonomyCategoryIdsElement = 0; - - batch_create_entity_signals_mappings_sample( - $formattedParent, - $formattedRequestsParent, - $requestsEntitySignalsMappingTaxonomyCategoryIdsElement - ); -} -// [END admanager_v1_generated_EntitySignalsMappingService_BatchCreateEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php deleted file mode 100644 index 3a8f3c005f14..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php +++ /dev/null @@ -1,95 +0,0 @@ -setTaxonomyCategoryIds($requestsEntitySignalsMappingTaxonomyCategoryIds); - $requestsUpdateMask = new FieldMask(); - $updateEntitySignalsMappingRequest = (new UpdateEntitySignalsMappingRequest()) - ->setEntitySignalsMapping($requestsEntitySignalsMapping) - ->setUpdateMask($requestsUpdateMask); - $requests = [$updateEntitySignalsMappingRequest,]; - $request = (new BatchUpdateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BatchUpdateEntitySignalsMappingsResponse $response */ - $response = $entitySignalsMappingServiceClient->batchUpdateEntitySignalsMappings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - $requestsEntitySignalsMappingTaxonomyCategoryIdsElement = 0; - - batch_update_entity_signals_mappings_sample( - $formattedParent, - $requestsEntitySignalsMappingTaxonomyCategoryIdsElement - ); -} -// [END admanager_v1_generated_EntitySignalsMappingService_BatchUpdateEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php deleted file mode 100644 index c1fb72f8b838..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php +++ /dev/null @@ -1,84 +0,0 @@ -setTaxonomyCategoryIds($entitySignalsMappingTaxonomyCategoryIds); - $request = (new CreateEntitySignalsMappingRequest()) - ->setParent($formattedParent) - ->setEntitySignalsMapping($entitySignalsMapping); - - // Call the API and handle any network failures. - try { - /** @var EntitySignalsMapping $response */ - $response = $entitySignalsMappingServiceClient->createEntitySignalsMapping($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - $entitySignalsMappingTaxonomyCategoryIdsElement = 0; - - create_entity_signals_mapping_sample( - $formattedParent, - $entitySignalsMappingTaxonomyCategoryIdsElement - ); -} -// [END admanager_v1_generated_EntitySignalsMappingService_CreateEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php deleted file mode 100644 index 7b7aaf4d0295..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EntitySignalsMapping $response */ - $response = $entitySignalsMappingServiceClient->getEntitySignalsMapping($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EntitySignalsMappingServiceClient::entitySignalsMappingName( - '[NETWORK_CODE]', - '[ENTITY_SIGNALS_MAPPING]' - ); - - get_entity_signals_mapping_sample($formattedName); -} -// [END admanager_v1_generated_EntitySignalsMappingService_GetEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php deleted file mode 100644 index d52e3906c8af..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $entitySignalsMappingServiceClient->listEntitySignalsMappings($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EntitySignalsMappingServiceClient::networkName('[NETWORK_CODE]'); - - list_entity_signals_mappings_sample($formattedParent); -} -// [END admanager_v1_generated_EntitySignalsMappingService_ListEntitySignalsMappings_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php deleted file mode 100644 index a845c4403460..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php +++ /dev/null @@ -1,78 +0,0 @@ -setTaxonomyCategoryIds($entitySignalsMappingTaxonomyCategoryIds); - $updateMask = new FieldMask(); - $request = (new UpdateEntitySignalsMappingRequest()) - ->setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var EntitySignalsMapping $response */ - $response = $entitySignalsMappingServiceClient->updateEntitySignalsMapping($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $entitySignalsMappingTaxonomyCategoryIdsElement = 0; - - update_entity_signals_mapping_sample($entitySignalsMappingTaxonomyCategoryIdsElement); -} -// [END admanager_v1_generated_EntitySignalsMappingService_UpdateEntitySignalsMapping_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php deleted file mode 100644 index 9818680de8f5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/get_network.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Network $response */ - $response = $networkServiceClient->getNetwork($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = NetworkServiceClient::networkName('[NETWORK_CODE]'); - - get_network_sample($formattedName); -} -// [END admanager_v1_generated_NetworkService_GetNetwork_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php deleted file mode 100644 index aa1441a7bd6c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/NetworkServiceClient/list_networks.php +++ /dev/null @@ -1,57 +0,0 @@ -listNetworks($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END admanager_v1_generated_NetworkService_ListNetworks_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php deleted file mode 100644 index 5fe249566baf..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/get_order.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Order $response */ - $response = $orderServiceClient->getOrder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = OrderServiceClient::orderName('[NETWORK_CODE]', '[ORDER]'); - - get_order_sample($formattedName); -} -// [END admanager_v1_generated_OrderService_GetOrder_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php deleted file mode 100644 index 5d7c96bdc617..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/OrderServiceClient/list_orders.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $orderServiceClient->listOrders($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = OrderServiceClient::networkName('[NETWORK_CODE]'); - - list_orders_sample($formattedParent); -} -// [END admanager_v1_generated_OrderService_ListOrders_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php deleted file mode 100644 index b9b03f3758f2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/get_placement.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Placement $response */ - $response = $placementServiceClient->getPlacement($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = PlacementServiceClient::placementName('[NETWORK_CODE]', '[PLACEMENT]'); - - get_placement_sample($formattedName); -} -// [END admanager_v1_generated_PlacementService_GetPlacement_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php deleted file mode 100644 index bd1d6b8e230b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/PlacementServiceClient/list_placements.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $placementServiceClient->listPlacements($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = PlacementServiceClient::networkName('[NETWORK_CODE]'); - - list_placements_sample($formattedParent); -} -// [END admanager_v1_generated_PlacementService_ListPlacements_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php deleted file mode 100644 index ca38b7b8f5fe..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/create_report.php +++ /dev/null @@ -1,105 +0,0 @@ -setDimensions($reportReportDefinitionDimensions) - ->setMetrics($reportReportDefinitionMetrics) - ->setDateRange($reportReportDefinitionDateRange) - ->setReportType($reportReportDefinitionReportType); - $report = (new Report()) - ->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - - // Call the API and handle any network failures. - try { - /** @var Report $response */ - $response = $reportServiceClient->createReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReportServiceClient::networkName('[NETWORK_CODE]'); - $reportReportDefinitionDimensionsElement = Dimension::DIMENSION_UNSPECIFIED; - $reportReportDefinitionMetricsElement = Metric::METRIC_UNSPECIFIED; - $reportReportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - - create_report_sample( - $formattedParent, - $reportReportDefinitionDimensionsElement, - $reportReportDefinitionMetricsElement, - $reportReportDefinitionReportType - ); -} -// [END admanager_v1_generated_ReportService_CreateReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php deleted file mode 100644 index 3f7124c71921..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/fetch_report_result_rows.php +++ /dev/null @@ -1,60 +0,0 @@ -fetchReportResultRows($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END admanager_v1_generated_ReportService_FetchReportResultRows_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php deleted file mode 100644 index 0b5d5b11d47e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/get_report.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Report $response */ - $response = $reportServiceClient->getReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReportServiceClient::reportName('[NETWORK_CODE]', '[REPORT]'); - - get_report_sample($formattedName); -} -// [END admanager_v1_generated_ReportService_GetReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php deleted file mode 100644 index aa12df99e9cb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/list_reports.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $reportServiceClient->listReports($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ReportServiceClient::networkName('[NETWORK_CODE]'); - - list_reports_sample($formattedParent); -} -// [END admanager_v1_generated_ReportService_ListReports_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php deleted file mode 100644 index d3e4d98a6ef8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/run_report.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $reportServiceClient->runReport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var RunReportResponse $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ReportServiceClient::reportName('[NETWORK_CODE]', '[REPORT]'); - - run_report_sample($formattedName); -} -// [END admanager_v1_generated_ReportService_RunReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php deleted file mode 100644 index 84e9e65464c1..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/ReportServiceClient/update_report.php +++ /dev/null @@ -1,101 +0,0 @@ -setDimensions($reportReportDefinitionDimensions) - ->setMetrics($reportReportDefinitionMetrics) - ->setDateRange($reportReportDefinitionDateRange) - ->setReportType($reportReportDefinitionReportType); - $report = (new Report()) - ->setReportDefinition($reportReportDefinition); - $updateMask = new FieldMask(); - $request = (new UpdateReportRequest()) - ->setReport($report) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Report $response */ - $response = $reportServiceClient->updateReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $reportReportDefinitionDimensionsElement = Dimension::DIMENSION_UNSPECIFIED; - $reportReportDefinitionMetricsElement = Metric::METRIC_UNSPECIFIED; - $reportReportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - - update_report_sample( - $reportReportDefinitionDimensionsElement, - $reportReportDefinitionMetricsElement, - $reportReportDefinitionReportType - ); -} -// [END admanager_v1_generated_ReportService_UpdateReport_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php deleted file mode 100644 index 3204222ed446..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/get_role.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Role $response */ - $response = $roleServiceClient->getRole($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RoleServiceClient::roleName('[NETWORK_CODE]', '[ROLE]'); - - get_role_sample($formattedName); -} -// [END admanager_v1_generated_RoleService_GetRole_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php deleted file mode 100644 index d9adaa30e69c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/RoleServiceClient/list_roles.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $roleServiceClient->listRoles($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RoleServiceClient::networkName('[NETWORK_CODE]'); - - list_roles_sample($formattedParent); -} -// [END admanager_v1_generated_RoleService_ListRoles_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php deleted file mode 100644 index b0688bd41755..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TaxonomyCategory $response */ - $response = $taxonomyCategoryServiceClient->getTaxonomyCategory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = TaxonomyCategoryServiceClient::taxonomyCategoryName( - '[NETWORK_CODE]', - '[TAXONOMY_CATEGORY]' - ); - - get_taxonomy_category_sample($formattedName); -} -// [END admanager_v1_generated_TaxonomyCategoryService_GetTaxonomyCategory_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php deleted file mode 100644 index 285ee42ebaf4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $taxonomyCategoryServiceClient->listTaxonomyCategories($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = TaxonomyCategoryServiceClient::networkName('[NETWORK_CODE]'); - - list_taxonomy_categories_sample($formattedParent); -} -// [END admanager_v1_generated_TaxonomyCategoryService_ListTaxonomyCategories_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php b/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php deleted file mode 100644 index fdccc337f748..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/samples/V1/UserServiceClient/get_user.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var User $response */ - $response = $userServiceClient->getUser($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = UserServiceClient::userName('[NETWORK_CODE]', '[USER]'); - - get_user_sample($formattedName); -} -// [END admanager_v1_generated_UserService_GetUser_sync] diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php deleted file mode 100644 index 77568290a777..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/AdUnitServiceClient.php +++ /dev/null @@ -1,319 +0,0 @@ - getAdUnitAsync(GetAdUnitRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdUnitSizesAsync(ListAdUnitSizesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdUnitsAsync(ListAdUnitsRequest $request, array $optionalArgs = []) - */ -final class AdUnitServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.AdUnitService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/ad_unit_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/ad_unit_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/ad_unit_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a ad_unit - * resource. - * - * @param string $networkCode - * @param string $adUnit - * - * @return string The formatted ad_unit resource. - */ - public static function adUnitName(string $networkCode, string $adUnit): string - { - return self::getPathTemplate('adUnit')->render([ - 'network_code' => $networkCode, - 'ad_unit' => $adUnit, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - adUnit: networks/{network_code}/adUnits/{ad_unit} - * - network: networks/{network_code} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve an AdUnit object. - * - * The async variant is {@see AdUnitServiceClient::getAdUnitAsync()} . - * - * @example samples/V1/AdUnitServiceClient/get_ad_unit.php - * - * @param GetAdUnitRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdUnit - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAdUnit(GetAdUnitRequest $request, array $callOptions = []): AdUnit - { - return $this->startApiCall('GetAdUnit', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of AdUnitSize objects. - * - * The async variant is {@see AdUnitServiceClient::listAdUnitSizesAsync()} . - * - * @example samples/V1/AdUnitServiceClient/list_ad_unit_sizes.php - * - * @param ListAdUnitSizesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAdUnitSizes(ListAdUnitSizesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAdUnitSizes', $request, $callOptions); - } - - /** - * API to retrieve a list of AdUnit objects. - * - * The async variant is {@see AdUnitServiceClient::listAdUnitsAsync()} . - * - * @example samples/V1/AdUnitServiceClient/list_ad_units.php - * - * @param ListAdUnitsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAdUnits(ListAdUnitsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAdUnits', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php deleted file mode 100644 index 68394eb269f0..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CompanyServiceClient.php +++ /dev/null @@ -1,291 +0,0 @@ - getCompanyAsync(GetCompanyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCompaniesAsync(ListCompaniesRequest $request, array $optionalArgs = []) - */ -final class CompanyServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CompanyService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/company_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/company_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/company_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a company - * resource. - * - * @param string $networkCode - * @param string $company - * - * @return string The formatted company resource. - */ - public static function companyName(string $networkCode, string $company): string - { - return self::getPathTemplate('company')->render([ - 'network_code' => $networkCode, - 'company' => $company, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - company: networks/{network_code}/companies/{company} - * - network: networks/{network_code} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `Company` object. - * - * The async variant is {@see CompanyServiceClient::getCompanyAsync()} . - * - * @example samples/V1/CompanyServiceClient/get_company.php - * - * @param GetCompanyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Company - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCompany(GetCompanyRequest $request, array $callOptions = []): Company - { - return $this->startApiCall('GetCompany', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Company` objects. - * - * The async variant is {@see CompanyServiceClient::listCompaniesAsync()} . - * - * @example samples/V1/CompanyServiceClient/list_companies.php - * - * @param ListCompaniesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCompanies(ListCompaniesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCompanies', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php deleted file mode 100644 index 2656b98c86f8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomFieldServiceClient.php +++ /dev/null @@ -1,291 +0,0 @@ - getCustomFieldAsync(GetCustomFieldRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomFieldsAsync(ListCustomFieldsRequest $request, array $optionalArgs = []) - */ -final class CustomFieldServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CustomFieldService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/custom_field_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_field_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_field_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a custom_field - * resource. - * - * @param string $networkCode - * @param string $customField - * - * @return string The formatted custom_field resource. - */ - public static function customFieldName(string $networkCode, string $customField): string - { - return self::getPathTemplate('customField')->render([ - 'network_code' => $networkCode, - 'custom_field' => $customField, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - customField: networks/{network_code}/customFields/{custom_field} - * - network: networks/{network_code} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `CustomField` object. - * - * The async variant is {@see CustomFieldServiceClient::getCustomFieldAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/get_custom_field.php - * - * @param GetCustomFieldRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomField - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomField(GetCustomFieldRequest $request, array $callOptions = []): CustomField - { - return $this->startApiCall('GetCustomField', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `CustomField` objects. - * - * The async variant is {@see CustomFieldServiceClient::listCustomFieldsAsync()} . - * - * @example samples/V1/CustomFieldServiceClient/list_custom_fields.php - * - * @param ListCustomFieldsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomFields(ListCustomFieldsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomFields', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php deleted file mode 100644 index 62e50a48477b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingKeyServiceClient.php +++ /dev/null @@ -1,293 +0,0 @@ - getCustomTargetingKeyAsync(GetCustomTargetingKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomTargetingKeysAsync(ListCustomTargetingKeysRequest $request, array $optionalArgs = []) - */ -final class CustomTargetingKeyServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CustomTargetingKeyService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/custom_targeting_key_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_targeting_key_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_key_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_targeting_key resource. - * - * @param string $networkCode - * @param string $customTargetingKey - * - * @return string The formatted custom_targeting_key resource. - */ - public static function customTargetingKeyName(string $networkCode, string $customTargetingKey): string - { - return self::getPathTemplate('customTargetingKey')->render([ - 'network_code' => $networkCode, - 'custom_targeting_key' => $customTargetingKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key} - * - network: networks/{network_code} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `CustomTargetingKey` object. - * - * The async variant is - * {@see CustomTargetingKeyServiceClient::getCustomTargetingKeyAsync()} . - * - * @example samples/V1/CustomTargetingKeyServiceClient/get_custom_targeting_key.php - * - * @param GetCustomTargetingKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomTargetingKey - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomTargetingKey(GetCustomTargetingKeyRequest $request, array $callOptions = []): CustomTargetingKey - { - return $this->startApiCall('GetCustomTargetingKey', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `CustomTargetingKey` objects. - * - * The async variant is - * {@see CustomTargetingKeyServiceClient::listCustomTargetingKeysAsync()} . - * - * @example samples/V1/CustomTargetingKeyServiceClient/list_custom_targeting_keys.php - * - * @param ListCustomTargetingKeysRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomTargetingKeys(ListCustomTargetingKeysRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomTargetingKeys', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php deleted file mode 100644 index 62099d4d73df..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/CustomTargetingValueServiceClient.php +++ /dev/null @@ -1,297 +0,0 @@ - getCustomTargetingValueAsync(GetCustomTargetingValueRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomTargetingValuesAsync(ListCustomTargetingValuesRequest $request, array $optionalArgs = []) - */ -final class CustomTargetingValueServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.CustomTargetingValueService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/custom_targeting_value_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/custom_targeting_value_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/custom_targeting_value_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_targeting_key resource. - * - * @param string $networkCode - * @param string $customTargetingKey - * - * @return string The formatted custom_targeting_key resource. - */ - public static function customTargetingKeyName(string $networkCode, string $customTargetingKey): string - { - return self::getPathTemplate('customTargetingKey')->render([ - 'network_code' => $networkCode, - 'custom_targeting_key' => $customTargetingKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_targeting_value resource. - * - * @param string $networkCode - * @param string $customTargetingKey - * @param string $customTargetingValue - * - * @return string The formatted custom_targeting_value resource. - */ - public static function customTargetingValueName(string $networkCode, string $customTargetingKey, string $customTargetingValue): string - { - return self::getPathTemplate('customTargetingValue')->render([ - 'network_code' => $networkCode, - 'custom_targeting_key' => $customTargetingKey, - 'custom_targeting_value' => $customTargetingValue, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key} - * - customTargetingValue: networks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `CustomTargetingValue` object. - * - * The async variant is - * {@see CustomTargetingValueServiceClient::getCustomTargetingValueAsync()} . - * - * @example samples/V1/CustomTargetingValueServiceClient/get_custom_targeting_value.php - * - * @param GetCustomTargetingValueRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomTargetingValue - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomTargetingValue(GetCustomTargetingValueRequest $request, array $callOptions = []): CustomTargetingValue - { - return $this->startApiCall('GetCustomTargetingValue', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `CustomTargetingValue` objects. - * - * The async variant is - * {@see CustomTargetingValueServiceClient::listCustomTargetingValuesAsync()} . - * - * @example samples/V1/CustomTargetingValueServiceClient/list_custom_targeting_values.php - * - * @param ListCustomTargetingValuesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomTargetingValues(ListCustomTargetingValuesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomTargetingValues', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php deleted file mode 100644 index f94d66d46bed..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/EntitySignalsMappingServiceClient.php +++ /dev/null @@ -1,413 +0,0 @@ - batchCreateEntitySignalsMappingsAsync(BatchCreateEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchUpdateEntitySignalsMappingsAsync(BatchUpdateEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEntitySignalsMappingAsync(CreateEntitySignalsMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntitySignalsMappingAsync(GetEntitySignalsMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEntitySignalsMappingsAsync(ListEntitySignalsMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntitySignalsMappingAsync(UpdateEntitySignalsMappingRequest $request, array $optionalArgs = []) - */ -final class EntitySignalsMappingServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.EntitySignalsMappingService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/entity_signals_mapping_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/entity_signals_mapping_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/entity_signals_mapping_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * entity_signals_mapping resource. - * - * @param string $networkCode - * @param string $entitySignalsMapping - * - * @return string The formatted entity_signals_mapping resource. - */ - public static function entitySignalsMappingName(string $networkCode, string $entitySignalsMapping): string - { - return self::getPathTemplate('entitySignalsMapping')->render([ - 'network_code' => $networkCode, - 'entity_signals_mapping' => $entitySignalsMapping, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - entitySignalsMapping: networks/{network_code}/entitySignalsMappings/{entity_signals_mapping} - * - network: networks/{network_code} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to batch create `EntitySignalsMapping` objects. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::batchCreateEntitySignalsMappingsAsync()} - * . - * - * @example samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php - * - * @param BatchCreateEntitySignalsMappingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchCreateEntitySignalsMappingsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchCreateEntitySignalsMappings(BatchCreateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchCreateEntitySignalsMappingsResponse - { - return $this->startApiCall('BatchCreateEntitySignalsMappings', $request, $callOptions)->wait(); - } - - /** - * API to batch update `EntitySignalsMapping` objects. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::batchUpdateEntitySignalsMappingsAsync()} - * . - * - * @example samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php - * - * @param BatchUpdateEntitySignalsMappingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchUpdateEntitySignalsMappingsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchUpdateEntitySignalsMappings(BatchUpdateEntitySignalsMappingsRequest $request, array $callOptions = []): BatchUpdateEntitySignalsMappingsResponse - { - return $this->startApiCall('BatchUpdateEntitySignalsMappings', $request, $callOptions)->wait(); - } - - /** - * API to create an `EntitySignalsMapping` object. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::createEntitySignalsMappingAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php - * - * @param CreateEntitySignalsMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EntitySignalsMapping - * - * @throws ApiException Thrown if the API call fails. - */ - public function createEntitySignalsMapping(CreateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { - return $this->startApiCall('CreateEntitySignalsMapping', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `EntitySignalsMapping` object. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::getEntitySignalsMappingAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php - * - * @param GetEntitySignalsMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EntitySignalsMapping - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEntitySignalsMapping(GetEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { - return $this->startApiCall('GetEntitySignalsMapping', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `EntitySignalsMapping` objects. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::listEntitySignalsMappingsAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php - * - * @param ListEntitySignalsMappingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listEntitySignalsMappings(ListEntitySignalsMappingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEntitySignalsMappings', $request, $callOptions); - } - - /** - * API to update an `EntitySignalsMapping` object. - * - * The async variant is - * {@see EntitySignalsMappingServiceClient::updateEntitySignalsMappingAsync()} . - * - * @example samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php - * - * @param UpdateEntitySignalsMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EntitySignalsMapping - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateEntitySignalsMapping(UpdateEntitySignalsMappingRequest $request, array $callOptions = []): EntitySignalsMapping - { - return $this->startApiCall('UpdateEntitySignalsMapping', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php deleted file mode 100644 index 279e5fac08ee..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/NetworkServiceClient.php +++ /dev/null @@ -1,273 +0,0 @@ - getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) - */ -final class NetworkServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.NetworkService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/network_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/network_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/network_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a Network object. - * - * The async variant is {@see NetworkServiceClient::getNetworkAsync()} . - * - * @example samples/V1/NetworkServiceClient/get_network.php - * - * @param GetNetworkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Network - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNetwork(GetNetworkRequest $request, array $callOptions = []): Network - { - return $this->startApiCall('GetNetwork', $request, $callOptions)->wait(); - } - - /** - * API to retrieve all the networks the current user has access to. - * - * The async variant is {@see NetworkServiceClient::listNetworksAsync()} . - * - * @example samples/V1/NetworkServiceClient/list_networks.php - * - * @param ListNetworksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListNetworksResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNetworks(ListNetworksRequest $request, array $callOptions = []): ListNetworksResponse - { - return $this->startApiCall('ListNetworks', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php deleted file mode 100644 index abf9c7439688..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/OrderServiceClient.php +++ /dev/null @@ -1,296 +0,0 @@ - getOrderAsync(GetOrderRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOrdersAsync(ListOrdersRequest $request, array $optionalArgs = []) - */ -final class OrderServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.OrderService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/order_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/order_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/order_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a order - * resource. - * - * @param string $networkCode - * @param string $order - * - * @return string The formatted order resource. - */ - public static function orderName(string $networkCode, string $order): string - { - return self::getPathTemplate('order')->render([ - 'network_code' => $networkCode, - 'order' => $order, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - order: networks/{network_code}/orders/{order} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve an Order object. - * - * The async variant is {@see OrderServiceClient::getOrderAsync()} . - * - * @example samples/V1/OrderServiceClient/get_order.php - * - * @param GetOrderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Order - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOrder(GetOrderRequest $request, array $callOptions = []): Order - { - return $this->startApiCall('GetOrder', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Order` objects. - * - * Fields used for literal matching in filter string: - * * `order_id` - * * `display_name` - * * `external_order_id` - * - * The async variant is {@see OrderServiceClient::listOrdersAsync()} . - * - * @example samples/V1/OrderServiceClient/list_orders.php - * - * @param ListOrdersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOrders(ListOrdersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListOrders', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php deleted file mode 100644 index b7328e65386c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/PlacementServiceClient.php +++ /dev/null @@ -1,291 +0,0 @@ - getPlacementAsync(GetPlacementRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPlacementsAsync(ListPlacementsRequest $request, array $optionalArgs = []) - */ -final class PlacementServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.PlacementService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/placement_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/placement_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/placement_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a placement - * resource. - * - * @param string $networkCode - * @param string $placement - * - * @return string The formatted placement resource. - */ - public static function placementName(string $networkCode, string $placement): string - { - return self::getPathTemplate('placement')->render([ - 'network_code' => $networkCode, - 'placement' => $placement, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - placement: networks/{network_code}/placements/{placement} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `Placement` object. - * - * The async variant is {@see PlacementServiceClient::getPlacementAsync()} . - * - * @example samples/V1/PlacementServiceClient/get_placement.php - * - * @param GetPlacementRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Placement - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPlacement(GetPlacementRequest $request, array $callOptions = []): Placement - { - return $this->startApiCall('GetPlacement', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Placement` objects. - * - * The async variant is {@see PlacementServiceClient::listPlacementsAsync()} . - * - * @example samples/V1/PlacementServiceClient/list_placements.php - * - * @param ListPlacementsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listPlacements(ListPlacementsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPlacements', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php deleted file mode 100644 index c2f82959d248..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/ReportServiceClient.php +++ /dev/null @@ -1,469 +0,0 @@ - createReportAsync(CreateReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchReportResultRowsAsync(FetchReportResultRowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReportAsync(GetReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReportsAsync(ListReportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReportAsync(UpdateReportRequest $request, array $optionalArgs = []) - */ -final class ReportServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.ReportService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/report_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/report_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/report_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a report - * resource. - * - * @param string $networkCode - * @param string $report - * - * @return string The formatted report resource. - */ - public static function reportName(string $networkCode, string $report): string - { - return self::getPathTemplate('report')->render([ - 'network_code' => $networkCode, - 'report' => $report, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - report: networks/{network_code}/reports/{report} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to create a `Report` object. - * - * The async variant is {@see ReportServiceClient::createReportAsync()} . - * - * @example samples/V1/ReportServiceClient/create_report.php - * - * @param CreateReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Report - * - * @throws ApiException Thrown if the API call fails. - */ - public function createReport(CreateReportRequest $request, array $callOptions = []): Report - { - return $this->startApiCall('CreateReport', $request, $callOptions)->wait(); - } - - /** - * Returns the result rows from a completed report. - * The caller must have previously called `RunReport` and waited for that - * operation to complete. The rows will be returned according to the order - * specified by the `sorts` member of the report definition. - * - * The async variant is {@see ReportServiceClient::fetchReportResultRowsAsync()} . - * - * @example samples/V1/ReportServiceClient/fetch_report_result_rows.php - * - * @param FetchReportResultRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchReportResultRowsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchReportResultRows(FetchReportResultRowsRequest $request, array $callOptions = []): FetchReportResultRowsResponse - { - return $this->startApiCall('FetchReportResultRows', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a `Report` object. - * - * The async variant is {@see ReportServiceClient::getReportAsync()} . - * - * @example samples/V1/ReportServiceClient/get_report.php - * - * @param GetReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Report - * - * @throws ApiException Thrown if the API call fails. - */ - public function getReport(GetReportRequest $request, array $callOptions = []): Report - { - return $this->startApiCall('GetReport', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Report` objects. - * - * The async variant is {@see ReportServiceClient::listReportsAsync()} . - * - * @example samples/V1/ReportServiceClient/list_reports.php - * - * @param ListReportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReports(ListReportsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReports', $request, $callOptions); - } - - /** - * Initiates the execution of an existing report asynchronously. Users can - * get the report by polling this operation via - * `OperationsService.GetOperation`. - * Poll every 5 seconds initially, with an exponential - * backoff. Once a report is complete, the operation will contain a - * `RunReportResponse` in its response field containing a report_result that - * can be passed to the `FetchReportResultRows` method to retrieve the report - * data. - * - * The async variant is {@see ReportServiceClient::runReportAsync()} . - * - * @example samples/V1/ReportServiceClient/run_report.php - * - * @param RunReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function runReport(RunReportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RunReport', $request, $callOptions)->wait(); - } - - /** - * API to update a `Report` object. - * - * The async variant is {@see ReportServiceClient::updateReportAsync()} . - * - * @example samples/V1/ReportServiceClient/update_report.php - * - * @param UpdateReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Report - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateReport(UpdateReportRequest $request, array $callOptions = []): Report - { - return $this->startApiCall('UpdateReport', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php deleted file mode 100644 index eb3e65e1ac99..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/RoleServiceClient.php +++ /dev/null @@ -1,291 +0,0 @@ - getRoleAsync(GetRoleRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRolesAsync(ListRolesRequest $request, array $optionalArgs = []) - */ -final class RoleServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.RoleService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/role_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/role_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/role_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a role - * resource. - * - * @param string $networkCode - * @param string $role - * - * @return string The formatted role resource. - */ - public static function roleName(string $networkCode, string $role): string - { - return self::getPathTemplate('role')->render([ - 'network_code' => $networkCode, - 'role' => $role, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - role: networks/{network_code}/roles/{role} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `Role` object. - * - * The async variant is {@see RoleServiceClient::getRoleAsync()} . - * - * @example samples/V1/RoleServiceClient/get_role.php - * - * @param GetRoleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Role - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRole(GetRoleRequest $request, array $callOptions = []): Role - { - return $this->startApiCall('GetRole', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `Role` objects. - * - * The async variant is {@see RoleServiceClient::listRolesAsync()} . - * - * @example samples/V1/RoleServiceClient/list_roles.php - * - * @param ListRolesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRoles(ListRolesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRoles', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php deleted file mode 100644 index 48e1d6b7f56c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/TaxonomyCategoryServiceClient.php +++ /dev/null @@ -1,293 +0,0 @@ - getTaxonomyCategoryAsync(GetTaxonomyCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTaxonomyCategoriesAsync(ListTaxonomyCategoriesRequest $request, array $optionalArgs = []) - */ -final class TaxonomyCategoryServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.TaxonomyCategoryService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/taxonomy_category_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/taxonomy_category_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/taxonomy_category_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $networkCode - * - * @return string The formatted network resource. - */ - public static function networkName(string $networkCode): string - { - return self::getPathTemplate('network')->render([ - 'network_code' => $networkCode, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * taxonomy_category resource. - * - * @param string $networkCode - * @param string $taxonomyCategory - * - * @return string The formatted taxonomy_category resource. - */ - public static function taxonomyCategoryName(string $networkCode, string $taxonomyCategory): string - { - return self::getPathTemplate('taxonomyCategory')->render([ - 'network_code' => $networkCode, - 'taxonomy_category' => $taxonomyCategory, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - network: networks/{network_code} - * - taxonomyCategory: networks/{network_code}/taxonomyCategories/{taxonomy_category} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a `TaxonomyCategory` object. - * - * The async variant is - * {@see TaxonomyCategoryServiceClient::getTaxonomyCategoryAsync()} . - * - * @example samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php - * - * @param GetTaxonomyCategoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TaxonomyCategory - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTaxonomyCategory(GetTaxonomyCategoryRequest $request, array $callOptions = []): TaxonomyCategory - { - return $this->startApiCall('GetTaxonomyCategory', $request, $callOptions)->wait(); - } - - /** - * API to retrieve a list of `TaxonomyCategory` objects. - * - * The async variant is - * {@see TaxonomyCategoryServiceClient::listTaxonomyCategoriesAsync()} . - * - * @example samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php - * - * @param ListTaxonomyCategoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listTaxonomyCategories(ListTaxonomyCategoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTaxonomyCategories', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php b/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php deleted file mode 100644 index 084e5ef4fa9b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/Client/UserServiceClient.php +++ /dev/null @@ -1,249 +0,0 @@ - getUserAsync(GetUserRequest $request, array $optionalArgs = []) - */ -final class UserServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.ads.admanager.v1.UserService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'admanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/user_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/user_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/user_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a user - * resource. - * - * @param string $networkCode - * @param string $user - * - * @return string The formatted user resource. - */ - public static function userName(string $networkCode, string $user): string - { - return self::getPathTemplate('user')->render([ - 'network_code' => $networkCode, - 'user' => $user, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - user: networks/{network_code}/users/{user} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'admanager.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * API to retrieve a User object. - * - * To get the current user, the resource name - * `networks/{networkCode}/users/me` can be used. - * - * The async variant is {@see UserServiceClient::getUserAsync()} . - * - * @example samples/V1/UserServiceClient/get_user.php - * - * @param GetUserRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return User - * - * @throws ApiException Thrown if the API call fails. - */ - public function getUser(GetUserRequest $request, array $callOptions = []): User - { - return $this->startApiCall('GetUser', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json deleted file mode 100644 index b61b94818b7a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.ads.admanager.v1", - "libraryPackage": "Google\\Ads\\AdManager\\V1", - "services": { - "AdUnitService": { - "clients": { - "grpc": { - "libraryClient": "AdUnitServiceGapicClient", - "rpcs": { - "GetAdUnit": { - "methods": [ - "getAdUnit" - ] - }, - "ListAdUnitSizes": { - "methods": [ - "listAdUnitSizes" - ] - }, - "ListAdUnits": { - "methods": [ - "listAdUnits" - ] - } - } - } - } - }, - "CompanyService": { - "clients": { - "grpc": { - "libraryClient": "CompanyServiceGapicClient", - "rpcs": { - "GetCompany": { - "methods": [ - "getCompany" - ] - }, - "ListCompanies": { - "methods": [ - "listCompanies" - ] - } - } - } - } - }, - "CustomFieldService": { - "clients": { - "grpc": { - "libraryClient": "CustomFieldServiceGapicClient", - "rpcs": { - "GetCustomField": { - "methods": [ - "getCustomField" - ] - }, - "ListCustomFields": { - "methods": [ - "listCustomFields" - ] - } - } - } - } - }, - "CustomTargetingKeyService": { - "clients": { - "grpc": { - "libraryClient": "CustomTargetingKeyServiceGapicClient", - "rpcs": { - "GetCustomTargetingKey": { - "methods": [ - "getCustomTargetingKey" - ] - }, - "ListCustomTargetingKeys": { - "methods": [ - "listCustomTargetingKeys" - ] - } - } - } - } - }, - "CustomTargetingValueService": { - "clients": { - "grpc": { - "libraryClient": "CustomTargetingValueServiceGapicClient", - "rpcs": { - "GetCustomTargetingValue": { - "methods": [ - "getCustomTargetingValue" - ] - }, - "ListCustomTargetingValues": { - "methods": [ - "listCustomTargetingValues" - ] - } - } - } - } - }, - "EntitySignalsMappingService": { - "clients": { - "grpc": { - "libraryClient": "EntitySignalsMappingServiceGapicClient", - "rpcs": { - "BatchCreateEntitySignalsMappings": { - "methods": [ - "batchCreateEntitySignalsMappings" - ] - }, - "BatchUpdateEntitySignalsMappings": { - "methods": [ - "batchUpdateEntitySignalsMappings" - ] - }, - "CreateEntitySignalsMapping": { - "methods": [ - "createEntitySignalsMapping" - ] - }, - "GetEntitySignalsMapping": { - "methods": [ - "getEntitySignalsMapping" - ] - }, - "ListEntitySignalsMappings": { - "methods": [ - "listEntitySignalsMappings" - ] - }, - "UpdateEntitySignalsMapping": { - "methods": [ - "updateEntitySignalsMapping" - ] - } - } - } - } - }, - "NetworkService": { - "clients": { - "grpc": { - "libraryClient": "NetworkServiceGapicClient", - "rpcs": { - "GetNetwork": { - "methods": [ - "getNetwork" - ] - }, - "ListNetworks": { - "methods": [ - "listNetworks" - ] - } - } - } - } - }, - "OrderService": { - "clients": { - "grpc": { - "libraryClient": "OrderServiceGapicClient", - "rpcs": { - "GetOrder": { - "methods": [ - "getOrder" - ] - }, - "ListOrders": { - "methods": [ - "listOrders" - ] - } - } - } - } - }, - "PlacementService": { - "clients": { - "grpc": { - "libraryClient": "PlacementServiceGapicClient", - "rpcs": { - "GetPlacement": { - "methods": [ - "getPlacement" - ] - }, - "ListPlacements": { - "methods": [ - "listPlacements" - ] - } - } - } - } - }, - "ReportService": { - "clients": { - "grpc": { - "libraryClient": "ReportServiceGapicClient", - "rpcs": { - "CreateReport": { - "methods": [ - "createReport" - ] - }, - "FetchReportResultRows": { - "methods": [ - "fetchReportResultRows" - ] - }, - "GetReport": { - "methods": [ - "getReport" - ] - }, - "ListReports": { - "methods": [ - "listReports" - ] - }, - "RunReport": { - "methods": [ - "runReport" - ] - }, - "UpdateReport": { - "methods": [ - "updateReport" - ] - } - } - } - } - }, - "RoleService": { - "clients": { - "grpc": { - "libraryClient": "RoleServiceGapicClient", - "rpcs": { - "GetRole": { - "methods": [ - "getRole" - ] - }, - "ListRoles": { - "methods": [ - "listRoles" - ] - } - } - } - } - }, - "TaxonomyCategoryService": { - "clients": { - "grpc": { - "libraryClient": "TaxonomyCategoryServiceGapicClient", - "rpcs": { - "GetTaxonomyCategory": { - "methods": [ - "getTaxonomyCategory" - ] - }, - "ListTaxonomyCategories": { - "methods": [ - "listTaxonomyCategories" - ] - } - } - } - } - }, - "UserService": { - "clients": { - "grpc": { - "libraryClient": "UserServiceGapicClient", - "rpcs": { - "GetUser": { - "methods": [ - "getUser" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json deleted file mode 100644 index 5fdf2cea857b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_client_config.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.AdUnitService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetAdUnit": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListAdUnitSizes": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListAdUnits": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php deleted file mode 100644 index 50f3f17baaff..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_descriptor_config.php +++ /dev/null @@ -1,84 +0,0 @@ - [ - 'google.ads.admanager.v1.AdUnitService' => [ - 'GetAdUnit' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\AdUnit', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAdUnitSizes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAdUnitSizes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListAdUnitSizesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAdUnits' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAdUnits', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListAdUnitsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'adUnit' => 'networks/{network_code}/adUnits/{ad_unit}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php deleted file mode 100644 index 2357e7bb5118..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/ad_unit_service_rest_client_config.php +++ /dev/null @@ -1,81 +0,0 @@ - [ - 'google.ads.admanager.v1.AdUnitService' => [ - 'GetAdUnit' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/adUnits/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAdUnitSizes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/adUnitSizes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAdUnits' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/adUnits', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json deleted file mode 100644 index 00bdee6fd628..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CompanyService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetCompany": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCompanies": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php deleted file mode 100644 index 702b48d1cefb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CompanyService' => [ - 'GetCompany' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Company', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCompanies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCompanies', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCompaniesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'company' => 'networks/{network_code}/companies/{company}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php deleted file mode 100644 index 337fb3ce0db9..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/company_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.CompanyService' => [ - 'GetCompany' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/companies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCompanies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/companies', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json deleted file mode 100644 index 8f8a5a8fc36e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CustomFieldService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetCustomField": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCustomFields": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php deleted file mode 100644 index a7ce127626b8..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomFieldService' => [ - 'GetCustomField' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomField', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomFields' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomFields', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCustomFieldsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'customField' => 'networks/{network_code}/customFields/{custom_field}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php deleted file mode 100644 index 73fa8d1c16df..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_field_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomFieldService' => [ - 'GetCustomField' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/customFields/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomFields' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/customFields', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json deleted file mode 100644 index 031df8f440ba..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CustomTargetingKeyService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetCustomTargetingKey": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCustomTargetingKeys": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php deleted file mode 100644 index 107f89f40f0e..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingKeyService' => [ - 'GetCustomTargetingKey' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomTargetingKey', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingKeys' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomTargetingKeys', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCustomTargetingKeysResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'customTargetingKey' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php deleted file mode 100644 index 1a35718aa455..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_key_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingKeyService' => [ - 'GetCustomTargetingKey' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/customTargetingKeys/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingKeys' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/customTargetingKeys', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json deleted file mode 100644 index e2444ae9ce7b..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.CustomTargetingValueService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetCustomTargetingValue": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCustomTargetingValues": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php deleted file mode 100644 index 2d1752e01380..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingValueService' => [ - 'GetCustomTargetingValue' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\CustomTargetingValue', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingValues' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomTargetingValues', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListCustomTargetingValuesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'customTargetingKey' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}', - 'customTargetingValue' => 'networks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php deleted file mode 100644 index b6c9c7456c27..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/custom_targeting_value_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.CustomTargetingValueService' => [ - 'GetCustomTargetingValue' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListCustomTargetingValues' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValues', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json deleted file mode 100644 index 22fd1b90d729..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.EntitySignalsMappingService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "BatchCreateEntitySignalsMappings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchUpdateEntitySignalsMappings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateEntitySignalsMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetEntitySignalsMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListEntitySignalsMappings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateEntitySignalsMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php deleted file mode 100644 index ee92c845811d..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_descriptor_config.php +++ /dev/null @@ -1,113 +0,0 @@ - [ - 'google.ads.admanager.v1.EntitySignalsMappingService' => [ - 'BatchCreateEntitySignalsMappings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateEntitySignalsMappingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateEntitySignalsMappings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateEntitySignalsMappingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEntitySignalsMapping' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetEntitySignalsMapping' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListEntitySignalsMappings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntitySignalsMappings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListEntitySignalsMappingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEntitySignalsMapping' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\EntitySignalsMapping', - 'headerParams' => [ - [ - 'keyName' => 'entity_signals_mapping.name', - 'fieldAccessors' => [ - 'getEntitySignalsMapping', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'entitySignalsMapping' => 'networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}', - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php deleted file mode 100644 index 9f9aae3f48ea..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/entity_signals_mapping_service_rest_client_config.php +++ /dev/null @@ -1,122 +0,0 @@ - [ - 'google.ads.admanager.v1.EntitySignalsMappingService' => [ - 'BatchCreateEntitySignalsMappings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings:batchCreate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateEntitySignalsMappings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings:batchUpdate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEntitySignalsMapping' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings', - 'body' => 'entity_signals_mapping', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetEntitySignalsMapping' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/entitySignalsMappings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListEntitySignalsMappings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/entitySignalsMappings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEntitySignalsMapping' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{entity_signals_mapping.name=networks/*/entitySignalsMappings/*}', - 'body' => 'entity_signals_mapping', - 'placeholders' => [ - 'entity_signals_mapping.name' => [ - 'getters' => [ - 'getEntitySignalsMapping', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json deleted file mode 100644 index aec7ab1f074c..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.NetworkService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetNetwork": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListNetworks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php deleted file mode 100644 index 9c9e431d99fa..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_descriptor_config.php +++ /dev/null @@ -1,47 +0,0 @@ - [ - 'google.ads.admanager.v1.NetworkService' => [ - 'GetNetwork' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Network', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListNetworks' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListNetworksResponse', - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php deleted file mode 100644 index 8a718fdee222..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/network_service_rest_client_config.php +++ /dev/null @@ -1,63 +0,0 @@ - [ - 'google.ads.admanager.v1.NetworkService' => [ - 'GetNetwork' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListNetworks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/networks', - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json deleted file mode 100644 index de7c27588915..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_client_config.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.OrderService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetOrder": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListOrders": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php deleted file mode 100644 index 9cf7e3962ede..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.OrderService' => [ - 'GetOrder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Order', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListOrders' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOrders', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListOrdersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'order' => 'networks/{network_code}/orders/{order}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php deleted file mode 100644 index 67c80d2ce1ed..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/order_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.OrderService' => [ - 'GetOrder' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/orders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOrders' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/orders', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json deleted file mode 100644 index 8d039baaad41..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.PlacementService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetPlacement": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListPlacements": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php deleted file mode 100644 index f7949ce84422..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.PlacementService' => [ - 'GetPlacement' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Placement', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListPlacements' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPlacements', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListPlacementsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'placement' => 'networks/{network_code}/placements/{placement}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php deleted file mode 100644 index 385d27a9a508..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/placement_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.PlacementService' => [ - 'GetPlacement' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/placements/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListPlacements' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/placements', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json deleted file mode 100644 index 30eac575d3c6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.ReportService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "CreateReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchReportResultRows": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListReports": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RunReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php deleted file mode 100644 index 6d3268234ca5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_descriptor_config.php +++ /dev/null @@ -1,120 +0,0 @@ - [ - 'google.ads.admanager.v1.ReportService' => [ - 'RunReport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Ads\AdManager\V1\RunReportResponse', - 'metadataReturnType' => '\Google\Ads\AdManager\V1\RunReportMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Report', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'FetchReportResultRows' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\FetchReportResultRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Report', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListReports' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReports', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListReportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Report', - 'headerParams' => [ - [ - 'keyName' => 'report.name', - 'fieldAccessors' => [ - 'getReport', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'report' => 'networks/{network_code}/reports/{report}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php deleted file mode 100644 index 3a942eabf667..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/report_service_rest_client_config.php +++ /dev/null @@ -1,121 +0,0 @@ - [ - 'google.ads.admanager.v1.ReportService' => [ - 'CreateReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/reports', - 'body' => 'report', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'FetchReportResultRows' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/reports/*/results/*}:fetchRows', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetReport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/reports/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListReports' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/reports', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RunReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=networks/*/reports/*}:run', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateReport' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{report.name=networks/*/reports/*}', - 'body' => 'report', - 'placeholders' => [ - 'report.name' => [ - 'getters' => [ - 'getReport', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json deleted file mode 100644 index ac76997d5641..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.RoleService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetRole": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListRoles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php deleted file mode 100644 index 03c6d0883075..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.RoleService' => [ - 'GetRole' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\Role', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRoles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRoles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListRolesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'role' => 'networks/{network_code}/roles/{role}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php deleted file mode 100644 index 5d49f4fe70cb..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/role_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.RoleService' => [ - 'GetRole' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/roles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRoles' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/roles', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json deleted file mode 100644 index 2de30370c2f5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.TaxonomyCategoryService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetTaxonomyCategory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListTaxonomyCategories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php deleted file mode 100644 index 6be3b9000cc7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.ads.admanager.v1.TaxonomyCategoryService' => [ - 'GetTaxonomyCategory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\TaxonomyCategory', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListTaxonomyCategories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTaxonomyCategories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\ListTaxonomyCategoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'network' => 'networks/{network_code}', - 'taxonomyCategory' => 'networks/{network_code}/taxonomyCategories/{taxonomy_category}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php deleted file mode 100644 index 5fc884225e03..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/taxonomy_category_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.ads.admanager.v1.TaxonomyCategoryService' => [ - 'GetTaxonomyCategory' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/taxonomyCategories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListTaxonomyCategories' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=networks/*}/taxonomyCategories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json deleted file mode 100644 index 34a4b4903db2..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_client_config.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "interfaces": { - "google.ads.admanager.v1.UserService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "GetUser": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php deleted file mode 100644 index 405ff289c084..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_descriptor_config.php +++ /dev/null @@ -1,43 +0,0 @@ - [ - 'google.ads.admanager.v1.UserService' => [ - 'GetUser' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\AdManager\V1\User', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'user' => 'networks/{network_code}/users/{user}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php b/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php deleted file mode 100644 index 91979f52361a..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/src/V1/resources/user_service_rest_client_config.php +++ /dev/null @@ -1,59 +0,0 @@ - [ - 'google.ads.admanager.v1.UserService' => [ - 'GetUser' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/users/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=networks/*/operations/reports/exports/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php deleted file mode 100644 index b983f2d8ccce..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/AdUnitServiceClientTest.php +++ /dev/null @@ -1,348 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AdUnitServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AdUnitServiceClient($options); - } - - /** @test */ - public function getAdUnitTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adUnitId = 167061094; - $parentAdUnit = 'parentAdUnit-898168437'; - $displayName = 'displayName1615086568'; - $adUnitCode = 'adUnitCode-1632086356'; - $description = 'description-1724546052'; - $explicitlyTargeted = true; - $hasChildren = true; - $externalSetTopBoxChannelId = 'externalSetTopBoxChannelId-1727346970'; - $appliedAdsenseEnabled = false; - $effectiveAdsenseEnabled = false; - $expectedResponse = new AdUnit(); - $expectedResponse->setName($name2); - $expectedResponse->setAdUnitId($adUnitId); - $expectedResponse->setParentAdUnit($parentAdUnit); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAdUnitCode($adUnitCode); - $expectedResponse->setDescription($description); - $expectedResponse->setExplicitlyTargeted($explicitlyTargeted); - $expectedResponse->setHasChildren($hasChildren); - $expectedResponse->setExternalSetTopBoxChannelId($externalSetTopBoxChannelId); - $expectedResponse->setAppliedAdsenseEnabled($appliedAdsenseEnabled); - $expectedResponse->setEffectiveAdsenseEnabled($effectiveAdsenseEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - $request = (new GetAdUnitRequest()) - ->setName($formattedName); - $response = $gapicClient->getAdUnit($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/GetAdUnit', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdUnitExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - $request = (new GetAdUnitRequest()) - ->setName($formattedName); - try { - $gapicClient->getAdUnit($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitSizesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $adUnitSizesElement = new AdUnitSize(); - $adUnitSizes = [ - $adUnitSizesElement, - ]; - $expectedResponse = new ListAdUnitSizesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAdUnitSizes($adUnitSizes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitSizesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAdUnitSizes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdUnitSizes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/ListAdUnitSizes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitSizesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitSizesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAdUnitSizes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $adUnitsElement = new AdUnit(); - $adUnits = [ - $adUnitsElement, - ]; - $expectedResponse = new ListAdUnitsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAdUnits($adUnits); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAdUnits($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdUnits()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/ListAdUnits', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdUnitsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListAdUnitsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAdUnits($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdUnitAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adUnitId = 167061094; - $parentAdUnit = 'parentAdUnit-898168437'; - $displayName = 'displayName1615086568'; - $adUnitCode = 'adUnitCode-1632086356'; - $description = 'description-1724546052'; - $explicitlyTargeted = true; - $hasChildren = true; - $externalSetTopBoxChannelId = 'externalSetTopBoxChannelId-1727346970'; - $appliedAdsenseEnabled = false; - $effectiveAdsenseEnabled = false; - $expectedResponse = new AdUnit(); - $expectedResponse->setName($name2); - $expectedResponse->setAdUnitId($adUnitId); - $expectedResponse->setParentAdUnit($parentAdUnit); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAdUnitCode($adUnitCode); - $expectedResponse->setDescription($description); - $expectedResponse->setExplicitlyTargeted($explicitlyTargeted); - $expectedResponse->setHasChildren($hasChildren); - $expectedResponse->setExternalSetTopBoxChannelId($externalSetTopBoxChannelId); - $expectedResponse->setAppliedAdsenseEnabled($appliedAdsenseEnabled); - $expectedResponse->setEffectiveAdsenseEnabled($effectiveAdsenseEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adUnitName('[NETWORK_CODE]', '[AD_UNIT]'); - $request = (new GetAdUnitRequest()) - ->setName($formattedName); - $response = $gapicClient->getAdUnitAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.AdUnitService/GetAdUnit', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php deleted file mode 100644 index 2186b0f80bb3..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CompanyServiceClientTest.php +++ /dev/null @@ -1,271 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CompanyServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CompanyServiceClient($options); - } - - /** @test */ - public function getCompanyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $companyId = 847673315; - $displayName = 'displayName1615086568'; - $address = 'address-1147692044'; - $email = 'email96619420'; - $fax = 'fax101149'; - $phone = 'phone106642798'; - $externalId = 'externalId-1153075697'; - $comment = 'comment950398559'; - $primaryContact = 'primaryContact203339491'; - $thirdPartyCompanyId = 2003341038; - $expectedResponse = new Company(); - $expectedResponse->setName($name2); - $expectedResponse->setCompanyId($companyId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAddress($address); - $expectedResponse->setEmail($email); - $expectedResponse->setFax($fax); - $expectedResponse->setPhone($phone); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setComment($comment); - $expectedResponse->setPrimaryContact($primaryContact); - $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); - $request = (new GetCompanyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCompany($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CompanyService/GetCompany', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompanyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); - $request = (new GetCompanyRequest()) - ->setName($formattedName); - try { - $gapicClient->getCompany($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompaniesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $companiesElement = new Company(); - $companies = [ - $companiesElement, - ]; - $expectedResponse = new ListCompaniesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCompanies($companies); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCompaniesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCompanies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompanies()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CompanyService/ListCompanies', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompaniesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCompaniesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCompanies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompanyAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $companyId = 847673315; - $displayName = 'displayName1615086568'; - $address = 'address-1147692044'; - $email = 'email96619420'; - $fax = 'fax101149'; - $phone = 'phone106642798'; - $externalId = 'externalId-1153075697'; - $comment = 'comment950398559'; - $primaryContact = 'primaryContact203339491'; - $thirdPartyCompanyId = 2003341038; - $expectedResponse = new Company(); - $expectedResponse->setName($name2); - $expectedResponse->setCompanyId($companyId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAddress($address); - $expectedResponse->setEmail($email); - $expectedResponse->setFax($fax); - $expectedResponse->setPhone($phone); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setComment($comment); - $expectedResponse->setPrimaryContact($primaryContact); - $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); - $request = (new GetCompanyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCompanyAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CompanyService/GetCompany', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php deleted file mode 100644 index bb0cce236169..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomFieldServiceClientTest.php +++ /dev/null @@ -1,243 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CustomFieldServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CustomFieldServiceClient($options); - } - - /** @test */ - public function getCustomFieldTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customFieldId = 66688114; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomField(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomFieldId($customFieldId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - $request = (new GetCustomFieldRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomField($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/GetCustomField', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomFieldExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - $request = (new GetCustomFieldRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomField($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomFieldsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $customFieldsElement = new CustomField(); - $customFields = [ - $customFieldsElement, - ]; - $expectedResponse = new ListCustomFieldsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCustomFields($customFields); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomFieldsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomFields($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomFields()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/ListCustomFields', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomFieldsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomFieldsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomFields($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomFieldAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customFieldId = 66688114; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomField(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomFieldId($customFieldId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customFieldName('[NETWORK_CODE]', '[CUSTOM_FIELD]'); - $request = (new GetCustomFieldRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomFieldAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomFieldService/GetCustomField', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php deleted file mode 100644 index 87666715dab5..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingKeyServiceClientTest.php +++ /dev/null @@ -1,243 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CustomTargetingKeyServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CustomTargetingKeyServiceClient($options); - } - - /** @test */ - public function getCustomTargetingKeyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customTargetingKeyId = 138683049; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingKey(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomTargetingKeyId($customTargetingKeyId); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new GetCustomTargetingKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingKey($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/GetCustomTargetingKey', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingKeyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new GetCustomTargetingKeyRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomTargetingKey($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $customTargetingKeysElement = new CustomTargetingKey(); - $customTargetingKeys = [ - $customTargetingKeysElement, - ]; - $expectedResponse = new ListCustomTargetingKeysResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCustomTargetingKeys($customTargetingKeys); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomTargetingKeysRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomTargetingKeys($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomTargetingKeys()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/ListCustomTargetingKeys', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListCustomTargetingKeysRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomTargetingKeys($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingKeyAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customTargetingKeyId = 138683049; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingKey(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomTargetingKeyId($customTargetingKeyId); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new GetCustomTargetingKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingKeyAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingKeyService/GetCustomTargetingKey', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php deleted file mode 100644 index 131145abede6..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/CustomTargetingValueServiceClientTest.php +++ /dev/null @@ -1,239 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CustomTargetingValueServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CustomTargetingValueServiceClient($options); - } - - /** @test */ - public function getCustomTargetingValueTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingValue(); - $expectedResponse->setName($name2); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]', '[CUSTOM_TARGETING_VALUE]'); - $request = (new GetCustomTargetingValueRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingValue($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/GetCustomTargetingValue', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingValueExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]', '[CUSTOM_TARGETING_VALUE]'); - $request = (new GetCustomTargetingValueRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomTargetingValue($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingValuesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $customTargetingValuesElement = new CustomTargetingValue(); - $customTargetingValues = [ - $customTargetingValuesElement, - ]; - $expectedResponse = new ListCustomTargetingValuesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setCustomTargetingValues($customTargetingValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new ListCustomTargetingValuesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomTargetingValues($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomTargetingValues()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/ListCustomTargetingValues', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetingValuesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->customTargetingKeyName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]'); - $request = (new ListCustomTargetingValuesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomTargetingValues($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetingValueAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adTagName = 'adTagName-1355595604'; - $displayName = 'displayName1615086568'; - $expectedResponse = new CustomTargetingValue(); - $expectedResponse->setName($name2); - $expectedResponse->setAdTagName($adTagName); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetingValueName('[NETWORK_CODE]', '[CUSTOM_TARGETING_KEY]', '[CUSTOM_TARGETING_VALUE]'); - $request = (new GetCustomTargetingValueRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetingValueAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CustomTargetingValueService/GetCustomTargetingValue', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php deleted file mode 100644 index 155581fb5d36..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/EntitySignalsMappingServiceClientTest.php +++ /dev/null @@ -1,536 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EntitySignalsMappingServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EntitySignalsMappingServiceClient($options); - } - - /** @test */ - public function batchCreateEntitySignalsMappingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateEntitySignalsMappingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateEntitySignalsMappings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchCreateEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateEntitySignalsMappingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchCreateEntitySignalsMappings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateEntitySignalsMappingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateEntitySignalsMappingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchUpdateEntitySignalsMappings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchUpdateEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateEntitySignalsMappingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchUpdateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchUpdateEntitySignalsMappings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEntitySignalsMappingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $audienceSegmentId = 321086146; - $name = 'name3373707'; - $entitySignalsMappingId = 350688772; - $expectedResponse = new EntitySignalsMapping(); - $expectedResponse->setAudienceSegmentId($audienceSegmentId); - $expectedResponse->setName($name); - $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $entitySignalsMapping = new EntitySignalsMapping(); - $entitySignalsMappingTaxonomyCategoryIds = []; - $entitySignalsMapping->setTaxonomyCategoryIds($entitySignalsMappingTaxonomyCategoryIds); - $request = (new CreateEntitySignalsMappingRequest()) - ->setParent($formattedParent) - ->setEntitySignalsMapping($entitySignalsMapping); - $response = $gapicClient->createEntitySignalsMapping($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/CreateEntitySignalsMapping', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEntitySignalsMapping(); - $this->assertProtobufEquals($entitySignalsMapping, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEntitySignalsMappingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $entitySignalsMapping = new EntitySignalsMapping(); - $entitySignalsMappingTaxonomyCategoryIds = []; - $entitySignalsMapping->setTaxonomyCategoryIds($entitySignalsMappingTaxonomyCategoryIds); - $request = (new CreateEntitySignalsMappingRequest()) - ->setParent($formattedParent) - ->setEntitySignalsMapping($entitySignalsMapping); - try { - $gapicClient->createEntitySignalsMapping($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntitySignalsMappingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $audienceSegmentId = 321086146; - $name2 = 'name2-1052831874'; - $entitySignalsMappingId = 350688772; - $expectedResponse = new EntitySignalsMapping(); - $expectedResponse->setAudienceSegmentId($audienceSegmentId); - $expectedResponse->setName($name2); - $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entitySignalsMappingName('[NETWORK_CODE]', '[ENTITY_SIGNALS_MAPPING]'); - $request = (new GetEntitySignalsMappingRequest()) - ->setName($formattedName); - $response = $gapicClient->getEntitySignalsMapping($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/GetEntitySignalsMapping', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntitySignalsMappingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->entitySignalsMappingName('[NETWORK_CODE]', '[ENTITY_SIGNALS_MAPPING]'); - $request = (new GetEntitySignalsMappingRequest()) - ->setName($formattedName); - try { - $gapicClient->getEntitySignalsMapping($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntitySignalsMappingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $entitySignalsMappingsElement = new EntitySignalsMapping(); - $entitySignalsMappings = [ - $entitySignalsMappingsElement, - ]; - $expectedResponse = new ListEntitySignalsMappingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setEntitySignalsMappings($entitySignalsMappings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListEntitySignalsMappingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEntitySignalsMappings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntitySignalsMappings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/ListEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntitySignalsMappingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListEntitySignalsMappingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEntitySignalsMappings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEntitySignalsMappingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $audienceSegmentId = 321086146; - $name = 'name3373707'; - $entitySignalsMappingId = 350688772; - $expectedResponse = new EntitySignalsMapping(); - $expectedResponse->setAudienceSegmentId($audienceSegmentId); - $expectedResponse->setName($name); - $expectedResponse->setEntitySignalsMappingId($entitySignalsMappingId); - $transport->addResponse($expectedResponse); - // Mock request - $entitySignalsMapping = new EntitySignalsMapping(); - $entitySignalsMappingTaxonomyCategoryIds = []; - $entitySignalsMapping->setTaxonomyCategoryIds($entitySignalsMappingTaxonomyCategoryIds); - $updateMask = new FieldMask(); - $request = (new UpdateEntitySignalsMappingRequest()) - ->setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEntitySignalsMapping($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/UpdateEntitySignalsMapping', $actualFuncCall); - $actualValue = $actualRequestObject->getEntitySignalsMapping(); - $this->assertProtobufEquals($entitySignalsMapping, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEntitySignalsMappingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $entitySignalsMapping = new EntitySignalsMapping(); - $entitySignalsMappingTaxonomyCategoryIds = []; - $entitySignalsMapping->setTaxonomyCategoryIds($entitySignalsMappingTaxonomyCategoryIds); - $updateMask = new FieldMask(); - $request = (new UpdateEntitySignalsMappingRequest()) - ->setEntitySignalsMapping($entitySignalsMapping) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateEntitySignalsMapping($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateEntitySignalsMappingsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateEntitySignalsMappingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $requests = []; - $request = (new BatchCreateEntitySignalsMappingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateEntitySignalsMappingsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.EntitySignalsMappingService/BatchCreateEntitySignalsMappings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php deleted file mode 100644 index 1629934c8772..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/NetworkServiceClientTest.php +++ /dev/null @@ -1,243 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return NetworkServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new NetworkServiceClient($options); - } - - /** @test */ - public function getNetworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $networkCode = 'networkCode-19973794'; - $propertyCode = 'propertyCode-1019877865'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $effectiveRootAdUnit = 'effectiveRootAdUnit98840923'; - $testNetwork = false; - $networkId = 478232372; - $expectedResponse = new Network(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNetworkCode($networkCode); - $expectedResponse->setPropertyCode($propertyCode); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setEffectiveRootAdUnit($effectiveRootAdUnit); - $expectedResponse->setTestNetwork($testNetwork); - $expectedResponse->setNetworkId($networkId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->getNetwork($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.NetworkService/GetNetwork', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNetworkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - try { - $gapicClient->getNetwork($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNetworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListNetworksResponse(); - $transport->addResponse($expectedResponse); - $request = new ListNetworksRequest(); - $response = $gapicClient->listNetworks($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.NetworkService/ListNetworks', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNetworksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListNetworksRequest(); - try { - $gapicClient->listNetworks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNetworkAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $networkCode = 'networkCode-19973794'; - $propertyCode = 'propertyCode-1019877865'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $effectiveRootAdUnit = 'effectiveRootAdUnit98840923'; - $testNetwork = false; - $networkId = 478232372; - $expectedResponse = new Network(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNetworkCode($networkCode); - $expectedResponse->setPropertyCode($propertyCode); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setEffectiveRootAdUnit($effectiveRootAdUnit); - $expectedResponse->setTestNetwork($testNetwork); - $expectedResponse->setNetworkId($networkId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->getNetworkAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.NetworkService/GetNetwork', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php deleted file mode 100644 index 8e3ca7941b13..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/OrderServiceClientTest.php +++ /dev/null @@ -1,291 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return OrderServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new OrderServiceClient($options); - } - - /** @test */ - public function getOrderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $orderId = 1234304940; - $displayName = 'displayName1615086568'; - $programmatic = true; - $trafficker = 'trafficker-606937285'; - $advertiser = 'advertiser72080683'; - $agency = 'agency-1419699195'; - $creator = 'creator1028554796'; - $currencyCode = 'currencyCode1108728155'; - $unlimitedEndTime = false; - $externalOrderId = 1332092512; - $archived = true; - $lastModifiedByApp = 'lastModifiedByApp-1580292922'; - $notes = 'notes105008833'; - $poNumber = 'poNumber1281088905'; - $salesperson = 'salesperson-2087326879'; - $expectedResponse = new Order(); - $expectedResponse->setName($name2); - $expectedResponse->setOrderId($orderId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProgrammatic($programmatic); - $expectedResponse->setTrafficker($trafficker); - $expectedResponse->setAdvertiser($advertiser); - $expectedResponse->setAgency($agency); - $expectedResponse->setCreator($creator); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setUnlimitedEndTime($unlimitedEndTime); - $expectedResponse->setExternalOrderId($externalOrderId); - $expectedResponse->setArchived($archived); - $expectedResponse->setLastModifiedByApp($lastModifiedByApp); - $expectedResponse->setNotes($notes); - $expectedResponse->setPoNumber($poNumber); - $expectedResponse->setSalesperson($salesperson); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); - $request = (new GetOrderRequest()) - ->setName($formattedName); - $response = $gapicClient->getOrder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OrderService/GetOrder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); - $request = (new GetOrderRequest()) - ->setName($formattedName); - try { - $gapicClient->getOrder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOrdersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $ordersElement = new Order(); - $orders = [ - $ordersElement, - ]; - $expectedResponse = new ListOrdersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setOrders($orders); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOrdersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listOrders($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOrders()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OrderService/ListOrders', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOrdersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListOrdersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listOrders($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrderAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $orderId = 1234304940; - $displayName = 'displayName1615086568'; - $programmatic = true; - $trafficker = 'trafficker-606937285'; - $advertiser = 'advertiser72080683'; - $agency = 'agency-1419699195'; - $creator = 'creator1028554796'; - $currencyCode = 'currencyCode1108728155'; - $unlimitedEndTime = false; - $externalOrderId = 1332092512; - $archived = true; - $lastModifiedByApp = 'lastModifiedByApp-1580292922'; - $notes = 'notes105008833'; - $poNumber = 'poNumber1281088905'; - $salesperson = 'salesperson-2087326879'; - $expectedResponse = new Order(); - $expectedResponse->setName($name2); - $expectedResponse->setOrderId($orderId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProgrammatic($programmatic); - $expectedResponse->setTrafficker($trafficker); - $expectedResponse->setAdvertiser($advertiser); - $expectedResponse->setAgency($agency); - $expectedResponse->setCreator($creator); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setUnlimitedEndTime($unlimitedEndTime); - $expectedResponse->setExternalOrderId($externalOrderId); - $expectedResponse->setArchived($archived); - $expectedResponse->setLastModifiedByApp($lastModifiedByApp); - $expectedResponse->setNotes($notes); - $expectedResponse->setPoNumber($poNumber); - $expectedResponse->setSalesperson($salesperson); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->orderName('[NETWORK_CODE]', '[ORDER]'); - $request = (new GetOrderRequest()) - ->setName($formattedName); - $response = $gapicClient->getOrderAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.OrderService/GetOrder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php deleted file mode 100644 index b2039cab73df..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/PlacementServiceClientTest.php +++ /dev/null @@ -1,247 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return PlacementServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new PlacementServiceClient($options); - } - - /** @test */ - public function getPlacementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $placementId = 1224358069; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $placementCode = 'placementCode-213099769'; - $expectedResponse = new Placement(); - $expectedResponse->setName($name2); - $expectedResponse->setPlacementId($placementId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setPlacementCode($placementCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); - $request = (new GetPlacementRequest()) - ->setName($formattedName); - $response = $gapicClient->getPlacement($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/GetPlacement', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPlacementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); - $request = (new GetPlacementRequest()) - ->setName($formattedName); - try { - $gapicClient->getPlacement($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPlacementsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $placementsElement = new Placement(); - $placements = [ - $placementsElement, - ]; - $expectedResponse = new ListPlacementsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setPlacements($placements); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPlacementsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPlacements($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPlacements()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/ListPlacements', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPlacementsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListPlacementsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPlacements($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPlacementAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $placementId = 1224358069; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $placementCode = 'placementCode-213099769'; - $expectedResponse = new Placement(); - $expectedResponse->setName($name2); - $expectedResponse->setPlacementId($placementId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setPlacementCode($placementCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->placementName('[NETWORK_CODE]', '[PLACEMENT]'); - $request = (new GetPlacementRequest()) - ->setName($formattedName); - $response = $gapicClient->getPlacementAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.PlacementService/GetPlacement', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php deleted file mode 100644 index bb56169d5cb7..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/ReportServiceClientTest.php +++ /dev/null @@ -1,644 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ReportServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ReportServiceClient($options); - } - - /** @test */ - public function createReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - $response = $gapicClient->createReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/CreateReport', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReport(); - $this->assertProtobufEquals($report, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - try { - $gapicClient->createReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReportResultRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalRowCount = 1810281263; - $nextPageToken = 'nextPageToken-1530815211'; - $expectedResponse = new FetchReportResultRowsResponse(); - $expectedResponse->setTotalRowCount($totalRowCount); - $expectedResponse->setNextPageToken($nextPageToken); - $transport->addResponse($expectedResponse); - $request = new FetchReportResultRowsRequest(); - $response = $gapicClient->fetchReportResultRows($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/FetchReportResultRows', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReportResultRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new FetchReportResultRowsRequest(); - try { - $gapicClient->fetchReportResultRows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name2); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new GetReportRequest()) - ->setName($formattedName); - $response = $gapicClient->getReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/GetReport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new GetReportRequest()) - ->setName($formattedName); - try { - $gapicClient->getReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $reportsElement = new Report(); - $reports = [ - $reportsElement, - ]; - $expectedResponse = new ListReportsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setReports($reports); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListReportsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReports($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReports()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/ListReports', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListReportsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/runReportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $reportResult = 'reportResult-778769016'; - $expectedResponse = new RunReportResponse(); - $expectedResponse->setReportResult($reportResult); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/runReportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new RunReportRequest()) - ->setName($formattedName); - $response = $gapicClient->runReport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/RunReport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/runReportTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function runReportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/runReportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reportName('[NETWORK_CODE]', '[REPORT]'); - $request = (new RunReportRequest()) - ->setName($formattedName); - $response = $gapicClient->runReport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/runReportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $updateMask = new FieldMask(); - $request = (new UpdateReportRequest()) - ->setReport($report) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/UpdateReport', $actualFuncCall); - $actualValue = $actualRequestObject->getReport(); - $this->assertProtobufEquals($report, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $updateMask = new FieldMask(); - $request = (new UpdateReportRequest()) - ->setReport($report) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReportAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $reportId = 353329146; - $displayName = 'displayName1615086568'; - $locale = 'locale-1097462182'; - $expectedResponse = new Report(); - $expectedResponse->setName($name); - $expectedResponse->setReportId($reportId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setLocale($locale); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $report = new Report(); - $reportReportDefinition = new ReportDefinition(); - $reportDefinitionDimensions = []; - $reportReportDefinition->setDimensions($reportDefinitionDimensions); - $reportDefinitionMetrics = []; - $reportReportDefinition->setMetrics($reportDefinitionMetrics); - $reportDefinitionDateRange = new DateRange(); - $reportReportDefinition->setDateRange($reportDefinitionDateRange); - $reportDefinitionReportType = ReportType::REPORT_TYPE_UNSPECIFIED; - $reportReportDefinition->setReportType($reportDefinitionReportType); - $report->setReportDefinition($reportReportDefinition); - $request = (new CreateReportRequest()) - ->setParent($formattedParent) - ->setReport($report); - $response = $gapicClient->createReportAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.ReportService/CreateReport', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReport(); - $this->assertProtobufEquals($report, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php deleted file mode 100644 index 7ce0318bb6da..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/RoleServiceClientTest.php +++ /dev/null @@ -1,247 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RoleServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RoleServiceClient($options); - } - - /** @test */ - public function getRoleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $roleId = 1376884100; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $builtIn = true; - $expectedResponse = new Role(); - $expectedResponse->setName($name2); - $expectedResponse->setRoleId($roleId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setBuiltIn($builtIn); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); - $request = (new GetRoleRequest()) - ->setName($formattedName); - $response = $gapicClient->getRole($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.RoleService/GetRole', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRoleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); - $request = (new GetRoleRequest()) - ->setName($formattedName); - try { - $gapicClient->getRole($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRolesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $rolesElement = new Role(); - $roles = [ - $rolesElement, - ]; - $expectedResponse = new ListRolesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setRoles($roles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListRolesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRoles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRoles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.RoleService/ListRoles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRolesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListRolesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRoles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRoleAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $roleId = 1376884100; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $builtIn = true; - $expectedResponse = new Role(); - $expectedResponse->setName($name2); - $expectedResponse->setRoleId($roleId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setBuiltIn($builtIn); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->roleName('[NETWORK_CODE]', '[ROLE]'); - $request = (new GetRoleRequest()) - ->setName($formattedName); - $response = $gapicClient->getRoleAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.RoleService/GetRole', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php deleted file mode 100644 index d14cc17bedab..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/TaxonomyCategoryServiceClientTest.php +++ /dev/null @@ -1,247 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return TaxonomyCategoryServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new TaxonomyCategoryServiceClient($options); - } - - /** @test */ - public function getTaxonomyCategoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $taxonomyCategoryId = 28298254; - $displayName = 'displayName1615086568'; - $groupingOnly = true; - $parentTaxonomyCategoryId = 1790260093; - $expectedResponse = new TaxonomyCategory(); - $expectedResponse->setName($name2); - $expectedResponse->setTaxonomyCategoryId($taxonomyCategoryId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setGroupingOnly($groupingOnly); - $expectedResponse->setParentTaxonomyCategoryId($parentTaxonomyCategoryId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); - $request = (new GetTaxonomyCategoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getTaxonomyCategory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/GetTaxonomyCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTaxonomyCategoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); - $request = (new GetTaxonomyCategoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getTaxonomyCategory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTaxonomyCategoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $taxonomyCategoriesElement = new TaxonomyCategory(); - $taxonomyCategories = [ - $taxonomyCategoriesElement, - ]; - $expectedResponse = new ListTaxonomyCategoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setTaxonomyCategories($taxonomyCategories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListTaxonomyCategoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTaxonomyCategories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTaxonomyCategories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/ListTaxonomyCategories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTaxonomyCategoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); - $request = (new ListTaxonomyCategoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTaxonomyCategories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTaxonomyCategoryAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $taxonomyCategoryId = 28298254; - $displayName = 'displayName1615086568'; - $groupingOnly = true; - $parentTaxonomyCategoryId = 1790260093; - $expectedResponse = new TaxonomyCategory(); - $expectedResponse->setName($name2); - $expectedResponse->setTaxonomyCategoryId($taxonomyCategoryId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setGroupingOnly($groupingOnly); - $expectedResponse->setParentTaxonomyCategoryId($parentTaxonomyCategoryId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->taxonomyCategoryName('[NETWORK_CODE]', '[TAXONOMY_CATEGORY]'); - $request = (new GetTaxonomyCategoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getTaxonomyCategoryAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.TaxonomyCategoryService/GetTaxonomyCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php b/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php deleted file mode 100644 index 4b09481e21d4..000000000000 --- a/owl-bot-staging/AdsAdManager/v1/tests/Unit/V1/Client/UserServiceClientTest.php +++ /dev/null @@ -1,187 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return UserServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new UserServiceClient($options); - } - - /** @test */ - public function getUserTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $userId = 147132913; - $displayName = 'displayName1615086568'; - $email = 'email96619420'; - $role = 'role3506294'; - $active = true; - $externalId = 'externalId-1153075697'; - $serviceAccount = false; - $ordersUiLocalTimeZone = 'ordersUiLocalTimeZone-1376832007'; - $expectedResponse = new User(); - $expectedResponse->setName($name2); - $expectedResponse->setUserId($userId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEmail($email); - $expectedResponse->setRole($role); - $expectedResponse->setActive($active); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setOrdersUiLocalTimeZone($ordersUiLocalTimeZone); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - $response = $gapicClient->getUser($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.UserService/GetUser', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getUserExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - try { - $gapicClient->getUser($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getUserAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $userId = 147132913; - $displayName = 'displayName1615086568'; - $email = 'email96619420'; - $role = 'role3506294'; - $active = true; - $externalId = 'externalId-1153075697'; - $serviceAccount = false; - $ordersUiLocalTimeZone = 'ordersUiLocalTimeZone-1376832007'; - $expectedResponse = new User(); - $expectedResponse->setName($name2); - $expectedResponse->setUserId($userId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEmail($email); - $expectedResponse->setRole($role); - $expectedResponse->setActive($active); - $expectedResponse->setExternalId($externalId); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setOrdersUiLocalTimeZone($ordersUiLocalTimeZone); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->userName('[NETWORK_CODE]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - $response = $gapicClient->getUserAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.UserService/GetUser', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/GPBMetadata/Google/Cloud/Advisorynotifications/V1/Service.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/GPBMetadata/Google/Cloud/Advisorynotifications/V1/Service.php deleted file mode 100644 index 325c9235b57c..000000000000 Binary files a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/GPBMetadata/Google/Cloud/Advisorynotifications/V1/Service.php and /dev/null differ diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Attachment.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Attachment.php deleted file mode 100644 index 646f002781c6..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Attachment.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.advisorynotifications.v1.Attachment - */ -class Attachment extends \Google\Protobuf\Internal\Message -{ - /** - * The title of the attachment. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AdvisoryNotifications\V1\Csv $csv - * A CSV file attachment. Max size is 10 MB. - * @type string $display_name - * The title of the attachment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * A CSV file attachment. Max size is 10 MB. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Csv csv = 2; - * @return \Google\Cloud\AdvisoryNotifications\V1\Csv|null - */ - public function getCsv() - { - return $this->readOneof(2); - } - - public function hasCsv() - { - return $this->hasOneof(2); - } - - /** - * A CSV file attachment. Max size is 10 MB. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Csv csv = 2; - * @param \Google\Cloud\AdvisoryNotifications\V1\Csv $var - * @return $this - */ - public function setCsv($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AdvisoryNotifications\V1\Csv::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The title of the attachment. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The title of the attachment. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Csv.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Csv.php deleted file mode 100644 index 3389ab8c5cf5..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Csv.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.advisorynotifications.v1.Csv - */ -class Csv extends \Google\Protobuf\Internal\Message -{ - /** - * The list of headers for data columns in a CSV file. - * - * Generated from protobuf field repeated string headers = 1; - */ - private $headers; - /** - * The list of data rows in a CSV file, as string arrays rather than as a - * single comma-separated string. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; - */ - private $data_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $headers - * The list of headers for data columns in a CSV file. - * @type array<\Google\Cloud\AdvisoryNotifications\V1\Csv\CsvRow>|\Google\Protobuf\Internal\RepeatedField $data_rows - * The list of data rows in a CSV file, as string arrays rather than as a - * single comma-separated string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of headers for data columns in a CSV file. - * - * Generated from protobuf field repeated string headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * The list of headers for data columns in a CSV file. - * - * Generated from protobuf field repeated string headers = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->headers = $arr; - - return $this; - } - - /** - * The list of data rows in a CSV file, as string arrays rather than as a - * single comma-separated string. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataRows() - { - return $this->data_rows; - } - - /** - * The list of data rows in a CSV file, as string arrays rather than as a - * single comma-separated string. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; - * @param array<\Google\Cloud\AdvisoryNotifications\V1\Csv\CsvRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AdvisoryNotifications\V1\Csv\CsvRow::class); - $this->data_rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Csv/CsvRow.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Csv/CsvRow.php deleted file mode 100644 index eb98c1535acd..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Csv/CsvRow.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.advisorynotifications.v1.Csv.CsvRow - */ -class CsvRow extends \Google\Protobuf\Internal\Message -{ - /** - * The data entries in a CSV file row, as a string array rather than a - * single comma-separated string. - * - * Generated from protobuf field repeated string entries = 1; - */ - private $entries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $entries - * The data entries in a CSV file row, as a string array rather than a - * single comma-separated string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The data entries in a CSV file row, as a string array rather than a - * single comma-separated string. - * - * Generated from protobuf field repeated string entries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntries() - { - return $this->entries; - } - - /** - * The data entries in a CSV file row, as a string array rather than a - * single comma-separated string. - * - * Generated from protobuf field repeated string entries = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entries = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CsvRow::class, \Google\Cloud\AdvisoryNotifications\V1\Csv_CsvRow::class); - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/GetNotificationRequest.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/GetNotificationRequest.php deleted file mode 100644 index 58d3b8a07814..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/GetNotificationRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.advisorynotifications.v1.GetNotificationRequest - */ -class GetNotificationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A name of the notification to retrieve. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{projects}/locations/{location}/notifications/{notification}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * - * Generated from protobuf field string language_code = 5; - */ - protected $language_code = ''; - - /** - * @param string $name Required. A name of the notification to retrieve. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{projects}/locations/{location}/notifications/{notification}. Please see - * {@see AdvisoryNotificationsServiceClient::notificationName()} for help formatting this field. - * - * @return \Google\Cloud\AdvisoryNotifications\V1\GetNotificationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. A name of the notification to retrieve. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{projects}/locations/{location}/notifications/{notification}. - * @type string $language_code - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. A name of the notification to retrieve. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{projects}/locations/{location}/notifications/{notification}. - * - * 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. A name of the notification to retrieve. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{projects}/locations/{location}/notifications/{notification}. - * - * 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; - } - - /** - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * - * Generated from protobuf field string language_code = 5; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * - * Generated from protobuf field string language_code = 5; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/GetSettingsRequest.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/GetSettingsRequest.php deleted file mode 100644 index 1aab7050300b..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/GetSettingsRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.advisorynotifications.v1.GetSettingsRequest - */ -class GetSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. Please see - * {@see AdvisoryNotificationsServiceClient::settingsName()} for help formatting this field. - * - * @return \Google\Cloud\AdvisoryNotifications\V1\GetSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * - * 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 settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * - * 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/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/ListNotificationsRequest.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/ListNotificationsRequest.php deleted file mode 100644 index 8c3e66512911..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/ListNotificationsRequest.php +++ /dev/null @@ -1,267 +0,0 @@ -google.cloud.advisorynotifications.v1.ListNotificationsRequest - */ -class ListNotificationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of notifications. - * Must be of the form "organizations/{organization}/locations/{location}" - * or "projects/{project}/locations/{location}". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of notifications to return. The service may return - * fewer than this value. If unspecified or equal to 0, at most 50 - * notifications will be returned. The maximum value is 50; values above 50 - * will be coerced to 50. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token returned from a previous request. - * When paginating, all other parameters provided in the request - * must match the call that returned the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Specifies which parts of the notification resource should be returned - * in the response. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.NotificationView view = 4; - */ - protected $view = 0; - /** - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * - * Generated from protobuf field string language_code = 5; - */ - protected $language_code = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of notifications. - * Must be of the form "organizations/{organization}/locations/{location}" - * or "projects/{project}/locations/{location}". Please see - * {@see AdvisoryNotificationsServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AdvisoryNotifications\V1\ListNotificationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of notifications. - * Must be of the form "organizations/{organization}/locations/{location}" - * or "projects/{project}/locations/{location}". - * @type int $page_size - * The maximum number of notifications to return. The service may return - * fewer than this value. If unspecified or equal to 0, at most 50 - * notifications will be returned. The maximum value is 50; values above 50 - * will be coerced to 50. - * @type string $page_token - * A page token returned from a previous request. - * When paginating, all other parameters provided in the request - * must match the call that returned the page token. - * @type int $view - * Specifies which parts of the notification resource should be returned - * in the response. - * @type string $language_code - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of notifications. - * Must be of the form "organizations/{organization}/locations/{location}" - * or "projects/{project}/locations/{location}". - * - * 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, which owns this collection of notifications. - * Must be of the form "organizations/{organization}/locations/{location}" - * or "projects/{project}/locations/{location}". - * - * 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 notifications to return. The service may return - * fewer than this value. If unspecified or equal to 0, at most 50 - * notifications will be returned. The maximum value is 50; values above 50 - * will be coerced to 50. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of notifications to return. The service may return - * fewer than this value. If unspecified or equal to 0, at most 50 - * notifications will be returned. The maximum value is 50; values above 50 - * will be coerced to 50. - * - * 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 returned from a previous request. - * When paginating, all other parameters provided in the request - * must match the call that returned the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token returned from a previous request. - * When paginating, all other parameters provided in the request - * must match the call that returned 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; - } - - /** - * Specifies which parts of the notification resource should be returned - * in the response. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Specifies which parts of the notification resource should be returned - * in the response. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AdvisoryNotifications\V1\NotificationView::class); - $this->view = $var; - - return $this; - } - - /** - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * - * Generated from protobuf field string language_code = 5; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * ISO code for requested localization language. If unset, will be - * interpereted as "en". If the requested language is valid, but not supported - * for this notification, English will be returned with an "Not applicable" - * LocalizationState. If the ISO code is invalid (i.e. not a real language), - * this RPC will throw an error. - * - * Generated from protobuf field string language_code = 5; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/ListNotificationsResponse.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/ListNotificationsResponse.php deleted file mode 100644 index 0723811dfe75..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/ListNotificationsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.advisorynotifications.v1.ListNotificationsResponse - */ -class ListNotificationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of notifications under a given parent. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; - */ - private $notifications; - /** - * 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 = ''; - /** - * Estimation of a total number of notifications. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AdvisoryNotifications\V1\Notification>|\Google\Protobuf\Internal\RepeatedField $notifications - * List of notifications under a given parent. - * @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. - * @type int $total_size - * Estimation of a total number of notifications. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of notifications under a given parent. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNotifications() - { - return $this->notifications; - } - - /** - * List of notifications under a given parent. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; - * @param array<\Google\Cloud\AdvisoryNotifications\V1\Notification>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNotifications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AdvisoryNotifications\V1\Notification::class); - $this->notifications = $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; - } - - /** - * Estimation of a total number of notifications. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Estimation of a total number of notifications. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/LocalizationState.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/LocalizationState.php deleted file mode 100644 index c4423106e08f..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/LocalizationState.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.advisorynotifications.v1.LocalizationState - */ -class LocalizationState -{ - /** - * Not used. - * - * Generated from protobuf enum LOCALIZATION_STATE_UNSPECIFIED = 0; - */ - const LOCALIZATION_STATE_UNSPECIFIED = 0; - /** - * Localization is not applicable for requested language. This can happen - * when: - * - The requested language was not supported by Advisory Notifications at the - * time of localization (including notifications created before the - * localization feature was launched). - * - The requested language is English, so only the English text is returned. - * - * Generated from protobuf enum LOCALIZATION_STATE_NOT_APPLICABLE = 1; - */ - const LOCALIZATION_STATE_NOT_APPLICABLE = 1; - /** - * Localization for requested language is in progress, and not ready yet. - * - * Generated from protobuf enum LOCALIZATION_STATE_PENDING = 2; - */ - const LOCALIZATION_STATE_PENDING = 2; - /** - * Localization for requested language is completed. - * - * Generated from protobuf enum LOCALIZATION_STATE_COMPLETED = 3; - */ - const LOCALIZATION_STATE_COMPLETED = 3; - - private static $valueToName = [ - self::LOCALIZATION_STATE_UNSPECIFIED => 'LOCALIZATION_STATE_UNSPECIFIED', - self::LOCALIZATION_STATE_NOT_APPLICABLE => 'LOCALIZATION_STATE_NOT_APPLICABLE', - self::LOCALIZATION_STATE_PENDING => 'LOCALIZATION_STATE_PENDING', - self::LOCALIZATION_STATE_COMPLETED => 'LOCALIZATION_STATE_COMPLETED', - ]; - - 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/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Message.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Message.php deleted file mode 100644 index f991adccc115..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Message.php +++ /dev/null @@ -1,199 +0,0 @@ -google.cloud.advisorynotifications.v1.Message - */ -class Message extends \Google\Protobuf\Internal\Message -{ - /** - * The message content. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Message.Body body = 1; - */ - protected $body = null; - /** - * The attachments to download. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; - */ - private $attachments; - /** - * The Message creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - */ - protected $create_time = null; - /** - * Time when Message was localized - * - * Generated from protobuf field .google.protobuf.Timestamp localization_time = 4; - */ - protected $localization_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AdvisoryNotifications\V1\Message\Body $body - * The message content. - * @type array<\Google\Cloud\AdvisoryNotifications\V1\Attachment>|\Google\Protobuf\Internal\RepeatedField $attachments - * The attachments to download. - * @type \Google\Protobuf\Timestamp $create_time - * The Message creation timestamp. - * @type \Google\Protobuf\Timestamp $localization_time - * Time when Message was localized - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The message content. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * @return \Google\Cloud\AdvisoryNotifications\V1\Message\Body|null - */ - public function getBody() - { - return $this->body; - } - - public function hasBody() - { - return isset($this->body); - } - - public function clearBody() - { - unset($this->body); - } - - /** - * The message content. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * @param \Google\Cloud\AdvisoryNotifications\V1\Message\Body $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AdvisoryNotifications\V1\Message\Body::class); - $this->body = $var; - - return $this; - } - - /** - * The attachments to download. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttachments() - { - return $this->attachments; - } - - /** - * The attachments to download. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; - * @param array<\Google\Cloud\AdvisoryNotifications\V1\Attachment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AdvisoryNotifications\V1\Attachment::class); - $this->attachments = $arr; - - return $this; - } - - /** - * The Message creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @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); - } - - /** - * The Message creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Time when Message was localized - * - * Generated from protobuf field .google.protobuf.Timestamp localization_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLocalizationTime() - { - return $this->localization_time; - } - - public function hasLocalizationTime() - { - return isset($this->localization_time); - } - - public function clearLocalizationTime() - { - unset($this->localization_time); - } - - /** - * Time when Message was localized - * - * Generated from protobuf field .google.protobuf.Timestamp localization_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLocalizationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->localization_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Message/Body.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Message/Body.php deleted file mode 100644 index 58e44b3f405f..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Message/Body.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.advisorynotifications.v1.Message.Body - */ -class Body extends \Google\Protobuf\Internal\Message -{ - /** - * The text content of the message body. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Text text = 1; - */ - protected $text = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AdvisoryNotifications\V1\Text $text - * The text content of the message body. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The text content of the message body. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Text text = 1; - * @return \Google\Cloud\AdvisoryNotifications\V1\Text|null - */ - public function getText() - { - return $this->text; - } - - public function hasText() - { - return isset($this->text); - } - - public function clearText() - { - unset($this->text); - } - - /** - * The text content of the message body. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Text text = 1; - * @param \Google\Cloud\AdvisoryNotifications\V1\Text $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AdvisoryNotifications\V1\Text::class); - $this->text = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Body::class, \Google\Cloud\AdvisoryNotifications\V1\Message_Body::class); - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Notification.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Notification.php deleted file mode 100644 index 76a52ae2a43f..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Notification.php +++ /dev/null @@ -1,236 +0,0 @@ -google.cloud.advisorynotifications.v1.Notification - */ -class Notification extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the notification. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{project}/locations/{location}/notifications/{notification}. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The subject line of the notification. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Subject subject = 2; - */ - protected $subject = null; - /** - * A list of messages in the notification. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Message messages = 3; - */ - private $messages; - /** - * Output only. Time the notification was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Type of notification - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; - */ - protected $notification_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the notification. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{project}/locations/{location}/notifications/{notification}. - * @type \Google\Cloud\AdvisoryNotifications\V1\Subject $subject - * The subject line of the notification. - * @type array<\Google\Cloud\AdvisoryNotifications\V1\Message>|\Google\Protobuf\Internal\RepeatedField $messages - * A list of messages in the notification. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the notification was created. - * @type int $notification_type - * Type of notification - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the notification. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{project}/locations/{location}/notifications/{notification}. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the notification. - * Format: - * organizations/{organization}/locations/{location}/notifications/{notification} - * or projects/{project}/locations/{location}/notifications/{notification}. - * - * 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; - } - - /** - * The subject line of the notification. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Subject subject = 2; - * @return \Google\Cloud\AdvisoryNotifications\V1\Subject|null - */ - public function getSubject() - { - return $this->subject; - } - - public function hasSubject() - { - return isset($this->subject); - } - - public function clearSubject() - { - unset($this->subject); - } - - /** - * The subject line of the notification. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Subject subject = 2; - * @param \Google\Cloud\AdvisoryNotifications\V1\Subject $var - * @return $this - */ - public function setSubject($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AdvisoryNotifications\V1\Subject::class); - $this->subject = $var; - - return $this; - } - - /** - * A list of messages in the notification. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Message messages = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMessages() - { - return $this->messages; - } - - /** - * A list of messages in the notification. - * - * Generated from protobuf field repeated .google.cloud.advisorynotifications.v1.Message messages = 3; - * @param array<\Google\Cloud\AdvisoryNotifications\V1\Message>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AdvisoryNotifications\V1\Message::class); - $this->messages = $arr; - - return $this; - } - - /** - * Output only. Time the notification was 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 the notification was 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; - } - - /** - * Type of notification - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; - * @return int - */ - public function getNotificationType() - { - return $this->notification_type; - } - - /** - * Type of notification - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; - * @param int $var - * @return $this - */ - public function setNotificationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AdvisoryNotifications\V1\NotificationType::class); - $this->notification_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationSettings.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationSettings.php deleted file mode 100644 index c360141cdf67..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationSettings.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.advisorynotifications.v1.NotificationSettings - */ -class NotificationSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the associated NotificationType is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the associated NotificationType is enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Whether the associated NotificationType is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the associated NotificationType is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationType.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationType.php deleted file mode 100644 index d0be8c7af583..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.advisorynotifications.v1.NotificationType - */ -class NotificationType -{ - /** - * Default type - * - * Generated from protobuf enum NOTIFICATION_TYPE_UNSPECIFIED = 0; - */ - const NOTIFICATION_TYPE_UNSPECIFIED = 0; - /** - * Security and privacy advisory notifications - * - * Generated from protobuf enum NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY = 1; - */ - const NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY = 1; - /** - * Sensitive action notifications - * - * Generated from protobuf enum NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; - */ - const NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; - /** - * General security MSA - * - * Generated from protobuf enum NOTIFICATION_TYPE_SECURITY_MSA = 3; - */ - const NOTIFICATION_TYPE_SECURITY_MSA = 3; - /** - * Threat horizons MSA - * - * Generated from protobuf enum NOTIFICATION_TYPE_THREAT_HORIZONS = 4; - */ - const NOTIFICATION_TYPE_THREAT_HORIZONS = 4; - - private static $valueToName = [ - self::NOTIFICATION_TYPE_UNSPECIFIED => 'NOTIFICATION_TYPE_UNSPECIFIED', - self::NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY => 'NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY', - self::NOTIFICATION_TYPE_SENSITIVE_ACTIONS => 'NOTIFICATION_TYPE_SENSITIVE_ACTIONS', - self::NOTIFICATION_TYPE_SECURITY_MSA => 'NOTIFICATION_TYPE_SECURITY_MSA', - self::NOTIFICATION_TYPE_THREAT_HORIZONS => 'NOTIFICATION_TYPE_THREAT_HORIZONS', - ]; - - 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/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationView.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationView.php deleted file mode 100644 index 32fceaafe375..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/NotificationView.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.advisorynotifications.v1.NotificationView - */ -class NotificationView -{ - /** - * Not specified, equivalent to BASIC. - * - * Generated from protobuf enum NOTIFICATION_VIEW_UNSPECIFIED = 0; - */ - const NOTIFICATION_VIEW_UNSPECIFIED = 0; - /** - * Server responses only include title, creation time and Notification ID. - * Note: for internal use responses also include the last update time, - * the latest message text and whether notification has attachments. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include everything. - * - * Generated from protobuf enum FULL = 2; - */ - const FULL = 2; - - private static $valueToName = [ - self::NOTIFICATION_VIEW_UNSPECIFIED => 'NOTIFICATION_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => 'FULL', - ]; - - 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/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Settings.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Settings.php deleted file mode 100644 index 162f44a30b15..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Settings.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.advisorynotifications.v1.Settings - */ -class Settings extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Map of each notification type and its settings to get/set all - * settings at once. The server will validate the value for each notification - * type. - * - * Generated from protobuf field map notification_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $notification_settings; - /** - * Required. Fingerprint for optimistic concurrency returned in Get requests. - * Must be provided for Update requests. If the value provided does not match - * the value known to the server, ABORTED will be thrown, and the client - * should retry the read-modify-write cycle. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * @type array|\Google\Protobuf\Internal\MapField $notification_settings - * Required. Map of each notification type and its settings to get/set all - * settings at once. The server will validate the value for each notification - * type. - * @type string $etag - * Required. Fingerprint for optimistic concurrency returned in Get requests. - * Must be provided for Update requests. If the value provided does not match - * the value known to the server, ABORTED will be thrown, and the client - * should retry the read-modify-write cycle. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the settings to retrieve. - * Format: - * organizations/{organization}/locations/{location}/settings or - * projects/{projects}/locations/{location}/settings. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Map of each notification type and its settings to get/set all - * settings at once. The server will validate the value for each notification - * type. - * - * Generated from protobuf field map notification_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getNotificationSettings() - { - return $this->notification_settings; - } - - /** - * Required. Map of each notification type and its settings to get/set all - * settings at once. The server will validate the value for each notification - * type. - * - * Generated from protobuf field map notification_settings = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setNotificationSettings($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AdvisoryNotifications\V1\NotificationSettings::class); - $this->notification_settings = $arr; - - return $this; - } - - /** - * Required. Fingerprint for optimistic concurrency returned in Get requests. - * Must be provided for Update requests. If the value provided does not match - * the value known to the server, ABORTED will be thrown, and the client - * should retry the read-modify-write cycle. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Required. Fingerprint for optimistic concurrency returned in Get requests. - * Must be provided for Update requests. If the value provided does not match - * the value known to the server, ABORTED will be thrown, and the client - * should retry the read-modify-write cycle. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Subject.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Subject.php deleted file mode 100644 index 8bf64ea40244..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Subject.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.advisorynotifications.v1.Subject - */ -class Subject extends \Google\Protobuf\Internal\Message -{ - /** - * The text content. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Text text = 1; - */ - protected $text = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AdvisoryNotifications\V1\Text $text - * The text content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The text content. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Text text = 1; - * @return \Google\Cloud\AdvisoryNotifications\V1\Text|null - */ - public function getText() - { - return $this->text; - } - - public function hasText() - { - return isset($this->text); - } - - public function clearText() - { - unset($this->text); - } - - /** - * The text content. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Text text = 1; - * @param \Google\Cloud\AdvisoryNotifications\V1\Text $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AdvisoryNotifications\V1\Text::class); - $this->text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Text.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Text.php deleted file mode 100644 index 932bb0dd9992..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/Text.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.advisorynotifications.v1.Text - */ -class Text extends \Google\Protobuf\Internal\Message -{ - /** - * The English copy. - * - * Generated from protobuf field string en_text = 1; - */ - protected $en_text = ''; - /** - * The requested localized copy (if applicable). - * - * Generated from protobuf field string localized_text = 2; - */ - protected $localized_text = ''; - /** - * Status of the localization. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - */ - protected $localization_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $en_text - * The English copy. - * @type string $localized_text - * The requested localized copy (if applicable). - * @type int $localization_state - * Status of the localization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The English copy. - * - * Generated from protobuf field string en_text = 1; - * @return string - */ - public function getEnText() - { - return $this->en_text; - } - - /** - * The English copy. - * - * Generated from protobuf field string en_text = 1; - * @param string $var - * @return $this - */ - public function setEnText($var) - { - GPBUtil::checkString($var, True); - $this->en_text = $var; - - return $this; - } - - /** - * The requested localized copy (if applicable). - * - * Generated from protobuf field string localized_text = 2; - * @return string - */ - public function getLocalizedText() - { - return $this->localized_text; - } - - /** - * The requested localized copy (if applicable). - * - * Generated from protobuf field string localized_text = 2; - * @param string $var - * @return $this - */ - public function setLocalizedText($var) - { - GPBUtil::checkString($var, True); - $this->localized_text = $var; - - return $this; - } - - /** - * Status of the localization. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * @return int - */ - public function getLocalizationState() - { - return $this->localization_state; - } - - /** - * Status of the localization. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * @param int $var - * @return $this - */ - public function setLocalizationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AdvisoryNotifications\V1\LocalizationState::class); - $this->localization_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/UpdateSettingsRequest.php b/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/UpdateSettingsRequest.php deleted file mode 100644 index ac58bb44826a..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/proto/src/Google/Cloud/AdvisoryNotifications/V1/UpdateSettingsRequest.php +++ /dev/null @@ -1,90 +0,0 @@ -google.cloud.advisorynotifications.v1.UpdateSettingsRequest - */ -class UpdateSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. New settings. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Settings settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $settings = null; - - /** - * @param \Google\Cloud\AdvisoryNotifications\V1\Settings $settings Required. New settings. - * - * @return \Google\Cloud\AdvisoryNotifications\V1\UpdateSettingsRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AdvisoryNotifications\V1\Settings $settings): self - { - return (new self()) - ->setSettings($settings); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AdvisoryNotifications\V1\Settings $settings - * Required. New settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Advisorynotifications\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. New settings. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Settings settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AdvisoryNotifications\V1\Settings|null - */ - public function getSettings() - { - return $this->settings; - } - - public function hasSettings() - { - return isset($this->settings); - } - - public function clearSettings() - { - unset($this->settings); - } - - /** - * Required. New settings. - * - * Generated from protobuf field .google.cloud.advisorynotifications.v1.Settings settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AdvisoryNotifications\V1\Settings $var - * @return $this - */ - public function setSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AdvisoryNotifications\V1\Settings::class); - $this->settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/get_notification.php b/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/get_notification.php deleted file mode 100644 index 88a0f2ace59f..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/get_notification.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Notification $response */ - $response = $advisoryNotificationsServiceClient->getNotification($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AdvisoryNotificationsServiceClient::notificationName( - '[ORGANIZATION]', - '[LOCATION]', - '[NOTIFICATION]' - ); - - get_notification_sample($formattedName); -} -// [END advisorynotifications_v1_generated_AdvisoryNotificationsService_GetNotification_sync] diff --git a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/get_settings.php b/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/get_settings.php deleted file mode 100644 index 2ed079154cd4..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/get_settings.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Settings $response */ - $response = $advisoryNotificationsServiceClient->getSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AdvisoryNotificationsServiceClient::settingsName('[ORGANIZATION]', '[LOCATION]'); - - get_settings_sample($formattedName); -} -// [END advisorynotifications_v1_generated_AdvisoryNotificationsService_GetSettings_sync] diff --git a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/list_notifications.php b/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/list_notifications.php deleted file mode 100644 index b5a83449dbf9..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/list_notifications.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $advisoryNotificationsServiceClient->listNotifications($request); - - /** @var Notification $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AdvisoryNotificationsServiceClient::locationName('[ORGANIZATION]', '[LOCATION]'); - - list_notifications_sample($formattedParent); -} -// [END advisorynotifications_v1_generated_AdvisoryNotificationsService_ListNotifications_sync] diff --git a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/update_settings.php b/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/update_settings.php deleted file mode 100644 index 0b9e6a7dda92..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/samples/V1/AdvisoryNotificationsServiceClient/update_settings.php +++ /dev/null @@ -1,77 +0,0 @@ -setNotificationSettings($settingsNotificationSettings) - ->setEtag($settingsEtag); - $request = (new UpdateSettingsRequest()) - ->setSettings($settings); - - // Call the API and handle any network failures. - try { - /** @var Settings $response */ - $response = $advisoryNotificationsServiceClient->updateSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $settingsEtag = '[ETAG]'; - - update_settings_sample($settingsEtag); -} -// [END advisorynotifications_v1_generated_AdvisoryNotificationsService_UpdateSettings_sync] diff --git a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/Client/AdvisoryNotificationsServiceClient.php b/owl-bot-staging/AdvisoryNotifications/v1/src/V1/Client/AdvisoryNotificationsServiceClient.php deleted file mode 100644 index aa95407b2de1..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/Client/AdvisoryNotificationsServiceClient.php +++ /dev/null @@ -1,477 +0,0 @@ - getNotificationAsync(GetNotificationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSettingsAsync(GetSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNotificationsAsync(ListNotificationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSettingsAsync(UpdateSettingsRequest $request, array $optionalArgs = []) - */ -final class AdvisoryNotificationsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.advisorynotifications.v1.AdvisoryNotificationsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'advisorynotifications.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'advisorynotifications.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/advisory_notifications_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/advisory_notifications_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/advisory_notifications_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/advisory_notifications_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $organization, string $location): string - { - return self::getPathTemplate('location')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a notification - * resource. - * - * @param string $organization - * @param string $location - * @param string $notification - * - * @return string The formatted notification resource. - */ - public static function notificationName(string $organization, string $location, string $notification): string - { - return self::getPathTemplate('notification')->render([ - 'organization' => $organization, - 'location' => $location, - 'notification' => $notification, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location resource. - */ - public static function organizationLocationName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocation')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_notification resource. - * - * @param string $organization - * @param string $location - * @param string $notification - * - * @return string The formatted organization_location_notification resource. - */ - public static function organizationLocationNotificationName(string $organization, string $location, string $notification): string - { - return self::getPathTemplate('organizationLocationNotification')->render([ - 'organization' => $organization, - 'location' => $location, - 'notification' => $notification, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_settings resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location_settings resource. - */ - public static function organizationLocationSettingsName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocationSettings')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted project_location resource. - */ - public static function projectLocationName(string $project, string $location): string - { - return self::getPathTemplate('projectLocation')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_notification resource. - * - * @param string $project - * @param string $location - * @param string $notification - * - * @return string The formatted project_location_notification resource. - */ - public static function projectLocationNotificationName(string $project, string $location, string $notification): string - { - return self::getPathTemplate('projectLocationNotification')->render([ - 'project' => $project, - 'location' => $location, - 'notification' => $notification, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_settings resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted project_location_settings resource. - */ - public static function projectLocationSettingsName(string $project, string $location): string - { - return self::getPathTemplate('projectLocationSettings')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a settings - * resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted settings resource. - */ - public static function settingsName(string $organization, string $location): string - { - return self::getPathTemplate('settings')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - location: organizations/{organization}/locations/{location} - * - notification: organizations/{organization}/locations/{location}/notifications/{notification} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationNotification: organizations/{organization}/locations/{location}/notifications/{notification} - * - organizationLocationSettings: organizations/{organization}/locations/{location}/settings - * - projectLocation: projects/{project}/locations/{location} - * - projectLocationNotification: projects/{project}/locations/{location}/notifications/{notification} - * - projectLocationSettings: projects/{project}/locations/{location}/settings - * - settings: organizations/{organization}/locations/{location}/settings - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'advisorynotifications.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Gets a notification. - * - * The async variant is - * {@see AdvisoryNotificationsServiceClient::getNotificationAsync()} . - * - * @example samples/V1/AdvisoryNotificationsServiceClient/get_notification.php - * - * @param GetNotificationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Notification - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNotification(GetNotificationRequest $request, array $callOptions = []): Notification - { - return $this->startApiCall('GetNotification', $request, $callOptions)->wait(); - } - - /** - * Get notification settings. - * - * The async variant is - * {@see AdvisoryNotificationsServiceClient::getSettingsAsync()} . - * - * @example samples/V1/AdvisoryNotificationsServiceClient/get_settings.php - * - * @param GetSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Settings - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSettings(GetSettingsRequest $request, array $callOptions = []): Settings - { - return $this->startApiCall('GetSettings', $request, $callOptions)->wait(); - } - - /** - * Lists notifications under a given parent. - * - * The async variant is - * {@see AdvisoryNotificationsServiceClient::listNotificationsAsync()} . - * - * @example samples/V1/AdvisoryNotificationsServiceClient/list_notifications.php - * - * @param ListNotificationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNotifications(ListNotificationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListNotifications', $request, $callOptions); - } - - /** - * Update notification settings. - * - * The async variant is - * {@see AdvisoryNotificationsServiceClient::updateSettingsAsync()} . - * - * @example samples/V1/AdvisoryNotificationsServiceClient/update_settings.php - * - * @param UpdateSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Settings - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSettings(UpdateSettingsRequest $request, array $callOptions = []): Settings - { - return $this->startApiCall('UpdateSettings', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AdvisoryNotifications/v1/src/V1/gapic_metadata.json deleted file mode 100644 index ff46c6a425f8..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.advisorynotifications.v1", - "libraryPackage": "Google\\Cloud\\AdvisoryNotifications\\V1", - "services": { - "AdvisoryNotificationsService": { - "clients": { - "grpc": { - "libraryClient": "AdvisoryNotificationsServiceGapicClient", - "rpcs": { - "GetNotification": { - "methods": [ - "getNotification" - ] - }, - "GetSettings": { - "methods": [ - "getSettings" - ] - }, - "ListNotifications": { - "methods": [ - "listNotifications" - ] - }, - "UpdateSettings": { - "methods": [ - "updateSettings" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_client_config.json b/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_client_config.json deleted file mode 100644 index 73a44f467731..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_client_config.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "interfaces": { - "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetNotification": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListNotifications": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_descriptor_config.php b/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_descriptor_config.php deleted file mode 100644 index 19358649e519..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_descriptor_config.php +++ /dev/null @@ -1,96 +0,0 @@ - [ - 'google.cloud.advisorynotifications.v1.AdvisoryNotificationsService' => [ - 'GetNotification' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AdvisoryNotifications\V1\Notification', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AdvisoryNotifications\V1\Settings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListNotifications' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getNotifications', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AdvisoryNotifications\V1\ListNotificationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AdvisoryNotifications\V1\Settings', - 'headerParams' => [ - [ - 'keyName' => 'settings.name', - 'fieldAccessors' => [ - 'getSettings', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'location' => 'organizations/{organization}/locations/{location}', - 'notification' => 'organizations/{organization}/locations/{location}/notifications/{notification}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationNotification' => 'organizations/{organization}/locations/{location}/notifications/{notification}', - 'organizationLocationSettings' => 'organizations/{organization}/locations/{location}/settings', - 'projectLocation' => 'projects/{project}/locations/{location}', - 'projectLocationNotification' => 'projects/{project}/locations/{location}/notifications/{notification}', - 'projectLocationSettings' => 'projects/{project}/locations/{location}/settings', - 'settings' => 'organizations/{organization}/locations/{location}/settings', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_rest_client_config.php b/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_rest_client_config.php deleted file mode 100644 index ad365a145fc0..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/src/V1/resources/advisory_notifications_service_rest_client_config.php +++ /dev/null @@ -1,100 +0,0 @@ - [ - 'google.cloud.advisorynotifications.v1.AdvisoryNotificationsService' => [ - 'GetNotification' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/notifications/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/notifications/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/settings}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/settings}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListNotifications' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/notifications', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/notifications', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{settings.name=organizations/*/locations/*/settings}', - 'body' => 'settings', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{settings.name=projects/*/locations/*/settings}', - 'body' => 'settings', - ], - ], - 'placeholders' => [ - 'settings.name' => [ - 'getters' => [ - 'getSettings', - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdvisoryNotifications/v1/tests/Unit/V1/Client/AdvisoryNotificationsServiceClientTest.php b/owl-bot-staging/AdvisoryNotifications/v1/tests/Unit/V1/Client/AdvisoryNotificationsServiceClientTest.php deleted file mode 100644 index e2cba581449f..000000000000 --- a/owl-bot-staging/AdvisoryNotifications/v1/tests/Unit/V1/Client/AdvisoryNotificationsServiceClientTest.php +++ /dev/null @@ -1,381 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AdvisoryNotificationsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AdvisoryNotificationsServiceClient($options); - } - - /** @test */ - public function getNotificationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Notification(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->notificationName('[ORGANIZATION]', '[LOCATION]', '[NOTIFICATION]'); - $request = (new GetNotificationRequest()) - ->setName($formattedName); - $response = $gapicClient->getNotification($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.advisorynotifications.v1.AdvisoryNotificationsService/GetNotification', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNotificationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->notificationName('[ORGANIZATION]', '[LOCATION]', '[NOTIFICATION]'); - $request = (new GetNotificationRequest()) - ->setName($formattedName); - try { - $gapicClient->getNotification($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $etag = 'etag3123477'; - $expectedResponse = new Settings(); - $expectedResponse->setName($name2); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->settingsName('[ORGANIZATION]', '[LOCATION]'); - $request = (new GetSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.advisorynotifications.v1.AdvisoryNotificationsService/GetSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->settingsName('[ORGANIZATION]', '[LOCATION]'); - $request = (new GetSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNotificationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $notificationsElement = new Notification(); - $notifications = [ - $notificationsElement, - ]; - $expectedResponse = new ListNotificationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setNotifications($notifications); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListNotificationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listNotifications($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getNotifications()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.advisorynotifications.v1.AdvisoryNotificationsService/ListNotifications', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNotificationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListNotificationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listNotifications($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $etag = 'etag3123477'; - $expectedResponse = new Settings(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $settings = new Settings(); - $notificationSettingsValue = new NotificationSettings(); - $settingsNotificationSettings = [ - 'notificationSettingsKey' => $notificationSettingsValue, - ]; - $settings->setNotificationSettings($settingsNotificationSettings); - $settingsEtag = 'settingsEtag533925848'; - $settings->setEtag($settingsEtag); - $request = (new UpdateSettingsRequest()) - ->setSettings($settings); - $response = $gapicClient->updateSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.advisorynotifications.v1.AdvisoryNotificationsService/UpdateSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getSettings(); - $this->assertProtobufEquals($settings, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $settings = new Settings(); - $notificationSettingsValue = new NotificationSettings(); - $settingsNotificationSettings = [ - 'notificationSettingsKey' => $notificationSettingsValue, - ]; - $settings->setNotificationSettings($settingsNotificationSettings); - $settingsEtag = 'settingsEtag533925848'; - $settings->setEtag($settingsEtag); - $request = (new UpdateSettingsRequest()) - ->setSettings($settings); - try { - $gapicClient->updateSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNotificationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Notification(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->notificationName('[ORGANIZATION]', '[LOCATION]', '[NOTIFICATION]'); - $request = (new GetNotificationRequest()) - ->setName($formattedName); - $response = $gapicClient->getNotificationAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.advisorynotifications.v1.AdvisoryNotificationsService/GetNotification', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/DataModel.php b/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/DataModel.php deleted file mode 100644 index f334a578ea62..000000000000 Binary files a/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/DataModel.php and /dev/null differ diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/Resources.php b/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/Resources.php deleted file mode 100644 index 06fc70f26aeb..000000000000 Binary files a/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/Resources.php and /dev/null differ diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/Service.php b/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/Service.php deleted file mode 100644 index 62ea24282470..000000000000 Binary files a/owl-bot-staging/AlloyDb/v1/proto/src/GPBMetadata/Google/Cloud/Alloydb/V1/Service.php and /dev/null differ diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy.php deleted file mode 100644 index 2bbe1778f182..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy.php +++ /dev/null @@ -1,392 +0,0 @@ -google.cloud.alloydb.v1.AutomatedBackupPolicy - */ -class AutomatedBackupPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Whether automated automated backups are enabled. If not set, defaults to - * true. - * - * Generated from protobuf field optional bool enabled = 1; - */ - protected $enabled = null; - /** - * The length of the time window during which a backup can be - * taken. If a backup does not succeed within this time window, it will be - * canceled and considered failed. - * The backup window must be at least 5 minutes long. There is no upper bound - * on the window. If not set, it defaults to 1 hour. - * - * Generated from protobuf field .google.protobuf.Duration backup_window = 3; - */ - protected $backup_window = null; - /** - * Optional. The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encryption_config = null; - /** - * The location where the backup will be stored. Currently, the only supported - * option is to store the backup in the same region as the cluster. - * If empty, defaults to the region of the cluster. - * - * Generated from protobuf field string location = 6; - */ - protected $location = ''; - /** - * Labels to apply to backups created using this configuration. - * - * Generated from protobuf field map labels = 7; - */ - private $labels; - protected $schedule; - protected $retention; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\WeeklySchedule $weekly_schedule - * Weekly schedule for the Backup. - * @type \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\TimeBasedRetention $time_based_retention - * Time-based Backup retention policy. - * @type \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\QuantityBasedRetention $quantity_based_retention - * Quantity-based Backup retention policy to retain recent backups. - * @type bool $enabled - * Whether automated automated backups are enabled. If not set, defaults to - * true. - * @type \Google\Protobuf\Duration $backup_window - * The length of the time window during which a backup can be - * taken. If a backup does not succeed within this time window, it will be - * canceled and considered failed. - * The backup window must be at least 5 minutes long. There is no upper bound - * on the window. If not set, it defaults to 1 hour. - * @type \Google\Cloud\AlloyDb\V1\EncryptionConfig $encryption_config - * Optional. The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * @type string $location - * The location where the backup will be stored. Currently, the only supported - * option is to store the backup in the same region as the cluster. - * If empty, defaults to the region of the cluster. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels to apply to backups created using this configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Weekly schedule for the Backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2; - * @return \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\WeeklySchedule|null - */ - public function getWeeklySchedule() - { - return $this->readOneof(2); - } - - public function hasWeeklySchedule() - { - return $this->hasOneof(2); - } - - /** - * Weekly schedule for the Backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2; - * @param \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\WeeklySchedule $var - * @return $this - */ - public function setWeeklySchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\WeeklySchedule::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Time-based Backup retention policy. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4; - * @return \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\TimeBasedRetention|null - */ - public function getTimeBasedRetention() - { - return $this->readOneof(4); - } - - public function hasTimeBasedRetention() - { - return $this->hasOneof(4); - } - - /** - * Time-based Backup retention policy. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4; - * @param \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\TimeBasedRetention $var - * @return $this - */ - public function setTimeBasedRetention($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\TimeBasedRetention::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Quantity-based Backup retention policy to retain recent backups. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5; - * @return \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\QuantityBasedRetention|null - */ - public function getQuantityBasedRetention() - { - return $this->readOneof(5); - } - - public function hasQuantityBasedRetention() - { - return $this->hasOneof(5); - } - - /** - * Quantity-based Backup retention policy to retain recent backups. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5; - * @param \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\QuantityBasedRetention $var - * @return $this - */ - public function setQuantityBasedRetention($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy\QuantityBasedRetention::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Whether automated automated backups are enabled. If not set, defaults to - * true. - * - * Generated from protobuf field optional bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return isset($this->enabled) ? $this->enabled : false; - } - - public function hasEnabled() - { - return isset($this->enabled); - } - - public function clearEnabled() - { - unset($this->enabled); - } - - /** - * Whether automated automated backups are enabled. If not set, defaults to - * true. - * - * Generated from protobuf field optional bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The length of the time window during which a backup can be - * taken. If a backup does not succeed within this time window, it will be - * canceled and considered failed. - * The backup window must be at least 5 minutes long. There is no upper bound - * on the window. If not set, it defaults to 1 hour. - * - * Generated from protobuf field .google.protobuf.Duration backup_window = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getBackupWindow() - { - return $this->backup_window; - } - - public function hasBackupWindow() - { - return isset($this->backup_window); - } - - public function clearBackupWindow() - { - unset($this->backup_window); - } - - /** - * The length of the time window during which a backup can be - * taken. If a backup does not succeed within this time window, it will be - * canceled and considered failed. - * The backup window must be at least 5 minutes long. There is no upper bound - * on the window. If not set, it defaults to 1 hour. - * - * Generated from protobuf field .google.protobuf.Duration backup_window = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setBackupWindow($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->backup_window = $var; - - return $this; - } - - /** - * Optional. The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Optional. The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * The location where the backup will be stored. Currently, the only supported - * option is to store the backup in the same region as the cluster. - * If empty, defaults to the region of the cluster. - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location where the backup will be stored. Currently, the only supported - * option is to store the backup in the same region as the cluster. - * If empty, defaults to the region of the cluster. - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Labels to apply to backups created using this configuration. - * - * Generated from protobuf field map labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels to apply to backups created using this configuration. - * - * Generated from protobuf field map labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * @return string - */ - public function getSchedule() - { - return $this->whichOneof("schedule"); - } - - /** - * @return string - */ - public function getRetention() - { - return $this->whichOneof("retention"); - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/QuantityBasedRetention.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/QuantityBasedRetention.php deleted file mode 100644 index 5feb7913bbd5..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/QuantityBasedRetention.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention - */ -class QuantityBasedRetention extends \Google\Protobuf\Internal\Message -{ - /** - * The number of backups to retain. - * - * Generated from protobuf field int32 count = 1; - */ - protected $count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $count - * The number of backups to retain. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The number of backups to retain. - * - * Generated from protobuf field int32 count = 1; - * @return int - */ - public function getCount() - { - return $this->count; - } - - /** - * The number of backups to retain. - * - * Generated from protobuf field int32 count = 1; - * @param int $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt32($var); - $this->count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QuantityBasedRetention::class, \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy_QuantityBasedRetention::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/TimeBasedRetention.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/TimeBasedRetention.php deleted file mode 100644 index efb83eac7a9c..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/TimeBasedRetention.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention - */ -class TimeBasedRetention extends \Google\Protobuf\Internal\Message -{ - /** - * The retention period. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1; - */ - protected $retention_period = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $retention_period - * The retention period. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The retention period. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getRetentionPeriod() - { - return $this->retention_period; - } - - public function hasRetentionPeriod() - { - return isset($this->retention_period); - } - - public function clearRetentionPeriod() - { - unset($this->retention_period); - } - - /** - * The retention period. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRetentionPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->retention_period = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimeBasedRetention::class, \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy_TimeBasedRetention::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/WeeklySchedule.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/WeeklySchedule.php deleted file mode 100644 index 3b42ae953258..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/AutomatedBackupPolicy/WeeklySchedule.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule - */ -class WeeklySchedule extends \Google\Protobuf\Internal\Message -{ - /** - * The times during the day to start a backup. The start times are assumed - * to be in UTC and to be an exact hour (e.g., 04:00:00). - * If no start times are provided, a single fixed start time is chosen - * arbitrarily. - * - * Generated from protobuf field repeated .google.type.TimeOfDay start_times = 1; - */ - private $start_times; - /** - * The days of the week to perform a backup. - * If this field is left empty, the default of every day of the week is - * used. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 2; - */ - private $days_of_week; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Type\TimeOfDay>|\Google\Protobuf\Internal\RepeatedField $start_times - * The times during the day to start a backup. The start times are assumed - * to be in UTC and to be an exact hour (e.g., 04:00:00). - * If no start times are provided, a single fixed start time is chosen - * arbitrarily. - * @type array|\Google\Protobuf\Internal\RepeatedField $days_of_week - * The days of the week to perform a backup. - * If this field is left empty, the default of every day of the week is - * used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The times during the day to start a backup. The start times are assumed - * to be in UTC and to be an exact hour (e.g., 04:00:00). - * If no start times are provided, a single fixed start time is chosen - * arbitrarily. - * - * Generated from protobuf field repeated .google.type.TimeOfDay start_times = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStartTimes() - { - return $this->start_times; - } - - /** - * The times during the day to start a backup. The start times are assumed - * to be in UTC and to be an exact hour (e.g., 04:00:00). - * If no start times are provided, a single fixed start time is chosen - * arbitrarily. - * - * Generated from protobuf field repeated .google.type.TimeOfDay start_times = 1; - * @param array<\Google\Type\TimeOfDay>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStartTimes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Type\TimeOfDay::class); - $this->start_times = $arr; - - return $this; - } - - /** - * The days of the week to perform a backup. - * If this field is left empty, the default of every day of the week is - * used. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDaysOfWeek() - { - return $this->days_of_week; - } - - /** - * The days of the week to perform a backup. - * If this field is left empty, the default of every day of the week is - * used. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDaysOfWeek($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); - $this->days_of_week = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WeeklySchedule::class, \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy_WeeklySchedule::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup.php deleted file mode 100644 index 3d01d0602fea..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup.php +++ /dev/null @@ -1,1005 +0,0 @@ -google.cloud.alloydb.v1.Backup - */ -class Backup extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * where the cluster and backup ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the backup resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * User-settable and human-readable display name for the Backup. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. Create time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Update time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 6; - */ - private $labels; - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * The backup type, which suggests the trigger for the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.Type type = 8; - */ - protected $type = 0; - /** - * User-provided description of the backup. - * - * Generated from protobuf field string description = 9; - */ - protected $description = ''; - /** - * Output only. The system-generated UID of the cluster which was used to - * create this resource. - * - * Generated from protobuf field string cluster_uid = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_uid = ''; - /** - * Required. The full resource name of the backup source cluster - * (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). - * - * Generated from protobuf field string cluster_name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $cluster_name = ''; - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation), if - * true, indicates that the service is actively updating the resource. This - * can happen due to user-triggered updates or system actions like failover or - * maintenance. - * - * Generated from protobuf field bool reconciling = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Optional. The encryption config can be specified to encrypt the - * backup with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encryption_config = null; - /** - * Output only. The encryption information for the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_info = null; - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 14; - */ - protected $etag = ''; - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 16; - */ - private $annotations; - /** - * Output only. The size of the backup in bytes. - * - * Generated from protobuf field int64 size_bytes = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $size_bytes = 0; - /** - * Output only. The time at which after the backup is eligible to be garbage - * collected. It is the duration specified by the backup's retention policy, - * added to the backup's create_time. - * - * Generated from protobuf field .google.protobuf.Timestamp expiry_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expiry_time = null; - /** - * Output only. The QuantityBasedExpiry of the backup, specified by the - * backup's retention policy. Once the expiry quantity is over retention, the - * backup is eligible to be garbage collected. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.QuantityBasedExpiry expiry_quantity = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expiry_quantity = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - /** - * Output only. The database engine major version of the cluster this backup - * was created from. Any restored cluster created from this backup will have - * the same database version. - * - * Generated from protobuf field .google.cloud.alloydb.v1.DatabaseVersion database_version = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $database_version = 0; - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * - * Generated from protobuf field map tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * where the cluster and backup ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the backup resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region} - * @type string $display_name - * User-settable and human-readable display name for the Backup. - * @type string $uid - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time stamp - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Update time stamp - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. Delete time stamp - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels as key value pairs - * @type int $state - * Output only. The current state of the backup. - * @type int $type - * The backup type, which suggests the trigger for the backup. - * @type string $description - * User-provided description of the backup. - * @type string $cluster_uid - * Output only. The system-generated UID of the cluster which was used to - * create this resource. - * @type string $cluster_name - * Required. The full resource name of the backup source cluster - * (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). - * @type bool $reconciling - * Output only. Reconciling (https://google.aip.dev/128#reconciliation), if - * true, indicates that the service is actively updating the resource. This - * can happen due to user-triggered updates or system actions like failover or - * maintenance. - * @type \Google\Cloud\AlloyDb\V1\EncryptionConfig $encryption_config - * Optional. The encryption config can be specified to encrypt the - * backup with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * @type \Google\Cloud\AlloyDb\V1\EncryptionInfo $encryption_info - * Output only. The encryption information for the backup. - * @type string $etag - * For Resource freshness validation (https://google.aip.dev/154) - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * @type int|string $size_bytes - * Output only. The size of the backup in bytes. - * @type \Google\Protobuf\Timestamp $expiry_time - * Output only. The time at which after the backup is eligible to be garbage - * collected. It is the duration specified by the backup's retention policy, - * added to the backup's create_time. - * @type \Google\Cloud\AlloyDb\V1\Backup\QuantityBasedExpiry $expiry_quantity - * Output only. The QuantityBasedExpiry of the backup, specified by the - * backup's retention policy. Once the expiry quantity is over retention, the - * backup is eligible to be garbage collected. - * @type bool $satisfies_pzs - * Output only. Reserved for future use. - * @type int $database_version - * Output only. The database engine major version of the cluster this backup - * was created from. Any restored cluster created from this backup will have - * the same database version. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * where the cluster and backup ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the backup resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * where the cluster and backup ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the backup resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region} - * - * 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; - } - - /** - * User-settable and human-readable display name for the Backup. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User-settable and human-readable display name for the Backup. - * - * 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; - } - - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. Create time stamp - * - * 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. Create time stamp - * - * 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. Update time stamp - * - * 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. Update time stamp - * - * 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; - } - - /** - * Output only. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 15 [(.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. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 15 [(.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; - } - - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Backup\State::class); - $this->state = $var; - - return $this; - } - - /** - * The backup type, which suggests the trigger for the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.Type type = 8; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The backup type, which suggests the trigger for the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.Type type = 8; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Backup\Type::class); - $this->type = $var; - - return $this; - } - - /** - * User-provided description of the backup. - * - * Generated from protobuf field string description = 9; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * User-provided description of the backup. - * - * Generated from protobuf field string description = 9; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The system-generated UID of the cluster which was used to - * create this resource. - * - * Generated from protobuf field string cluster_uid = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClusterUid() - { - return $this->cluster_uid; - } - - /** - * Output only. The system-generated UID of the cluster which was used to - * create this resource. - * - * Generated from protobuf field string cluster_uid = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClusterUid($var) - { - GPBUtil::checkString($var, True); - $this->cluster_uid = $var; - - return $this; - } - - /** - * Required. The full resource name of the backup source cluster - * (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). - * - * Generated from protobuf field string cluster_name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getClusterName() - { - return $this->cluster_name; - } - - /** - * Required. The full resource name of the backup source cluster - * (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). - * - * Generated from protobuf field string cluster_name = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setClusterName($var) - { - GPBUtil::checkString($var, True); - $this->cluster_name = $var; - - return $this; - } - - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation), if - * true, indicates that the service is actively updating the resource. This - * can happen due to user-triggered updates or system actions like failover or - * maintenance. - * - * Generated from protobuf field bool reconciling = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation), if - * true, indicates that the service is actively updating the resource. This - * can happen due to user-triggered updates or system actions like failover or - * maintenance. - * - * Generated from protobuf field bool reconciling = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Optional. The encryption config can be specified to encrypt the - * backup with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Optional. The encryption config can be specified to encrypt the - * backup with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * Output only. The encryption information for the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\EncryptionInfo|null - */ - public function getEncryptionInfo() - { - return $this->encryption_info; - } - - public function hasEncryptionInfo() - { - return isset($this->encryption_info); - } - - public function clearEncryptionInfo() - { - unset($this->encryption_info); - } - - /** - * Output only. The encryption information for the backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\EncryptionInfo $var - * @return $this - */ - public function setEncryptionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\EncryptionInfo::class); - $this->encryption_info = $var; - - return $this; - } - - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 14; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 14; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 16; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 16; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. The size of the backup in bytes. - * - * Generated from protobuf field int64 size_bytes = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * Output only. The size of the backup in bytes. - * - * Generated from protobuf field int64 size_bytes = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->size_bytes = $var; - - return $this; - } - - /** - * Output only. The time at which after the backup is eligible to be garbage - * collected. It is the duration specified by the backup's retention policy, - * added to the backup's create_time. - * - * Generated from protobuf field .google.protobuf.Timestamp expiry_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpiryTime() - { - return $this->expiry_time; - } - - public function hasExpiryTime() - { - return isset($this->expiry_time); - } - - public function clearExpiryTime() - { - unset($this->expiry_time); - } - - /** - * Output only. The time at which after the backup is eligible to be garbage - * collected. It is the duration specified by the backup's retention policy, - * added to the backup's create_time. - * - * Generated from protobuf field .google.protobuf.Timestamp expiry_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpiryTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiry_time = $var; - - return $this; - } - - /** - * Output only. The QuantityBasedExpiry of the backup, specified by the - * backup's retention policy. Once the expiry quantity is over retention, the - * backup is eligible to be garbage collected. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.QuantityBasedExpiry expiry_quantity = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\Backup\QuantityBasedExpiry|null - */ - public function getExpiryQuantity() - { - return $this->expiry_quantity; - } - - public function hasExpiryQuantity() - { - return isset($this->expiry_quantity); - } - - public function clearExpiryQuantity() - { - unset($this->expiry_quantity); - } - - /** - * Output only. The QuantityBasedExpiry of the backup, specified by the - * backup's retention policy. Once the expiry quantity is over retention, the - * backup is eligible to be garbage collected. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup.QuantityBasedExpiry expiry_quantity = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\Backup\QuantityBasedExpiry $var - * @return $this - */ - public function setExpiryQuantity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Backup\QuantityBasedExpiry::class); - $this->expiry_quantity = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Output only. The database engine major version of the cluster this backup - * was created from. Any restored cluster created from this backup will have - * the same database version. - * - * Generated from protobuf field .google.cloud.alloydb.v1.DatabaseVersion database_version = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDatabaseVersion() - { - return $this->database_version; - } - - /** - * Output only. The database engine major version of the cluster this backup - * was created from. Any restored cluster created from this backup will have - * the same database version. - * - * Generated from protobuf field .google.cloud.alloydb.v1.DatabaseVersion database_version = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDatabaseVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\DatabaseVersion::class); - $this->database_version = $var; - - return $this; - } - - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * - * Generated from protobuf field map tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * - * Generated from protobuf field map tags = 25 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/QuantityBasedExpiry.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/QuantityBasedExpiry.php deleted file mode 100644 index d75512a4855a..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/QuantityBasedExpiry.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.alloydb.v1.Backup.QuantityBasedExpiry - */ -class QuantityBasedExpiry extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The backup's position among its backups with the same source - * cluster and type, by descending chronological order create time(i.e. - * newest first). - * - * Generated from protobuf field int32 retention_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $retention_count = 0; - /** - * Output only. The length of the quantity-based queue, specified by the - * backup's retention policy. - * - * Generated from protobuf field int32 total_retention_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_retention_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $retention_count - * Output only. The backup's position among its backups with the same source - * cluster and type, by descending chronological order create time(i.e. - * newest first). - * @type int $total_retention_count - * Output only. The length of the quantity-based queue, specified by the - * backup's retention policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The backup's position among its backups with the same source - * cluster and type, by descending chronological order create time(i.e. - * newest first). - * - * Generated from protobuf field int32 retention_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRetentionCount() - { - return $this->retention_count; - } - - /** - * Output only. The backup's position among its backups with the same source - * cluster and type, by descending chronological order create time(i.e. - * newest first). - * - * Generated from protobuf field int32 retention_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRetentionCount($var) - { - GPBUtil::checkInt32($var); - $this->retention_count = $var; - - return $this; - } - - /** - * Output only. The length of the quantity-based queue, specified by the - * backup's retention policy. - * - * Generated from protobuf field int32 total_retention_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTotalRetentionCount() - { - return $this->total_retention_count; - } - - /** - * Output only. The length of the quantity-based queue, specified by the - * backup's retention policy. - * - * Generated from protobuf field int32 total_retention_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTotalRetentionCount($var) - { - GPBUtil::checkInt32($var); - $this->total_retention_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QuantityBasedExpiry::class, \Google\Cloud\AlloyDb\V1\Backup_QuantityBasedExpiry::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/State.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/State.php deleted file mode 100644 index 8dfa88a8797a..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.alloydb.v1.Backup.State - */ -class State -{ - /** - * The state of the backup is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup is ready. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * The backup is creating. - * - * Generated from protobuf enum CREATING = 2; - */ - const CREATING = 2; - /** - * The backup failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The backup is being deleted. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::READY => 'READY', - self::CREATING => 'CREATING', - self::FAILED => 'FAILED', - self::DELETING => 'DELETING', - ]; - - 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(State::class, \Google\Cloud\AlloyDb\V1\Backup_State::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/Type.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/Type.php deleted file mode 100644 index 7d60230e8641..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Backup/Type.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.alloydb.v1.Backup.Type - */ -class Type -{ - /** - * Backup Type is unknown. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * ON_DEMAND backups that were triggered by the customer (e.g., not - * AUTOMATED). - * - * Generated from protobuf enum ON_DEMAND = 1; - */ - const ON_DEMAND = 1; - /** - * AUTOMATED backups triggered by the automated backups scheduler pursuant - * to an automated backup policy. - * - * Generated from protobuf enum AUTOMATED = 2; - */ - const AUTOMATED = 2; - /** - * CONTINUOUS backups triggered by the automated backups scheduler - * due to a continuous backup policy. - * - * Generated from protobuf enum CONTINUOUS = 3; - */ - const CONTINUOUS = 3; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ON_DEMAND => 'ON_DEMAND', - self::AUTOMATED => 'AUTOMATED', - self::CONTINUOUS => 'CONTINUOUS', - ]; - - 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(Type::class, \Google\Cloud\AlloyDb\V1\Backup_Type::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BackupSource.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BackupSource.php deleted file mode 100644 index 1f06b4e463de..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BackupSource.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.alloydb.v1.BackupSource - */ -class BackupSource extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The system-generated UID of the backup which was used to - * create this resource. The UID is generated when the backup is created, and - * it is retained until the backup is deleted. - * - * Generated from protobuf field string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $backup_uid = ''; - /** - * Required. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * - * Generated from protobuf field string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $backup_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $backup_uid - * Output only. The system-generated UID of the backup which was used to - * create this resource. The UID is generated when the backup is created, and - * it is retained until the backup is deleted. - * @type string $backup_name - * Required. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The system-generated UID of the backup which was used to - * create this resource. The UID is generated when the backup is created, and - * it is retained until the backup is deleted. - * - * Generated from protobuf field string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getBackupUid() - { - return $this->backup_uid; - } - - /** - * Output only. The system-generated UID of the backup which was used to - * create this resource. The UID is generated when the backup is created, and - * it is retained until the backup is deleted. - * - * Generated from protobuf field string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setBackupUid($var) - { - GPBUtil::checkString($var, True); - $this->backup_uid = $var; - - return $this; - } - - /** - * Required. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * - * Generated from protobuf field string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getBackupName() - { - return $this->backup_name; - } - - /** - * Required. The name of the backup resource with the format: - * * projects/{project}/locations/{region}/backups/{backup_id} - * - * Generated from protobuf field string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackupName($var) - { - GPBUtil::checkString($var, True); - $this->backup_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstanceStatus.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstanceStatus.php deleted file mode 100644 index efd28ffbc66b..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstanceStatus.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.alloydb.v1.BatchCreateInstanceStatus - */ -class BatchCreateInstanceStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The current state of an instance involved in the batch create operation. - * Once the operation is complete, the final state of the instances in the - * LRO can be one of: - * 1. ACTIVE, indicating that instances were created successfully - * 2. FAILED, indicating that a particular instance failed creation - * 3. ROLLED_BACK indicating that although the instance was created - * successfully, it had to be rolled back and deleted due to failure in - * other steps of the workflow. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1; - */ - protected $state = 0; - /** - * DEPRECATED - Use the error field instead. - * Error, if any error occurred and is available, during instance creation. - * - * Generated from protobuf field string error_msg = 2; - */ - protected $error_msg = ''; - /** - * The RPC status of the instance creation operation. This field will be - * present if an error happened during the instance creation. - * - * Generated from protobuf field .google.rpc.Status error = 4; - */ - protected $error = null; - /** - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceType type = 3; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The current state of an instance involved in the batch create operation. - * Once the operation is complete, the final state of the instances in the - * LRO can be one of: - * 1. ACTIVE, indicating that instances were created successfully - * 2. FAILED, indicating that a particular instance failed creation - * 3. ROLLED_BACK indicating that although the instance was created - * successfully, it had to be rolled back and deleted due to failure in - * other steps of the workflow. - * @type string $error_msg - * DEPRECATED - Use the error field instead. - * Error, if any error occurred and is available, during instance creation. - * @type \Google\Rpc\Status $error - * The RPC status of the instance creation operation. This field will be - * present if an error happened during the instance creation. - * @type int $type - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The current state of an instance involved in the batch create operation. - * Once the operation is complete, the final state of the instances in the - * LRO can be one of: - * 1. ACTIVE, indicating that instances were created successfully - * 2. FAILED, indicating that a particular instance failed creation - * 3. ROLLED_BACK indicating that although the instance was created - * successfully, it had to be rolled back and deleted due to failure in - * other steps of the workflow. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The current state of an instance involved in the batch create operation. - * Once the operation is complete, the final state of the instances in the - * LRO can be one of: - * 1. ACTIVE, indicating that instances were created successfully - * 2. FAILED, indicating that a particular instance failed creation - * 3. ROLLED_BACK indicating that although the instance was created - * successfully, it had to be rolled back and deleted due to failure in - * other steps of the workflow. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\BatchCreateInstanceStatus\State::class); - $this->state = $var; - - return $this; - } - - /** - * DEPRECATED - Use the error field instead. - * Error, if any error occurred and is available, during instance creation. - * - * Generated from protobuf field string error_msg = 2; - * @return string - */ - public function getErrorMsg() - { - return $this->error_msg; - } - - /** - * DEPRECATED - Use the error field instead. - * Error, if any error occurred and is available, during instance creation. - * - * Generated from protobuf field string error_msg = 2; - * @param string $var - * @return $this - */ - public function setErrorMsg($var) - { - GPBUtil::checkString($var, True); - $this->error_msg = $var; - - return $this; - } - - /** - * The RPC status of the instance creation operation. This field will be - * present if an error happened during the instance creation. - * - * Generated from protobuf field .google.rpc.Status error = 4; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * The RPC status of the instance creation operation. This field will be - * present if an error happened during the instance creation. - * - * Generated from protobuf field .google.rpc.Status error = 4; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceType type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceType type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Instance\InstanceType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstanceStatus/State.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstanceStatus/State.php deleted file mode 100644 index aa9bc3938220..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstanceStatus/State.php +++ /dev/null @@ -1,97 +0,0 @@ -google.cloud.alloydb.v1.BatchCreateInstanceStatus.State - */ -class State -{ - /** - * The state of the instance is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Instance is pending creation and has not yet been picked up for - * processing in the backend. - * - * Generated from protobuf enum PENDING_CREATE = 1; - */ - const PENDING_CREATE = 1; - /** - * The instance is active and running. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - /** - * The instance is being created. - * - * Generated from protobuf enum CREATING = 3; - */ - const CREATING = 3; - /** - * The instance is being deleted. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * The creation of the instance failed or a fatal error occurred during - * an operation on the instance or a batch of instances. - * - * Generated from protobuf enum FAILED = 5; - */ - const FAILED = 5; - /** - * The instance was created successfully, but was rolled back and deleted - * due to some other failure during BatchCreateInstances operation. - * - * Generated from protobuf enum ROLLED_BACK = 6; - */ - const ROLLED_BACK = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PENDING_CREATE => 'PENDING_CREATE', - self::READY => 'READY', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::FAILED => 'FAILED', - self::ROLLED_BACK => 'ROLLED_BACK', - ]; - - 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(State::class, \Google\Cloud\AlloyDb\V1\BatchCreateInstanceStatus_State::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesMetadata.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesMetadata.php deleted file mode 100644 index 683281041710..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesMetadata.php +++ /dev/null @@ -1,134 +0,0 @@ -google.cloud.alloydb.v1.BatchCreateInstancesMetadata - */ -class BatchCreateInstancesMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The instances being created in the API call. Each string in this list - * is the server defined resource path for target instances in the request - * and for the format of each string, see the comment on the Instance.name - * field. - * - * Generated from protobuf field repeated string instance_targets = 1; - */ - private $instance_targets; - /** - * A map representing state of the instances involved in the - * BatchCreateInstances operation during the operation execution. - * The instance state will be in STATE_UNSPECIFIED state if the instance has - * not yet been picked up for processing. - * The key of the map is the name of the instance resource. - * For the format, see the comment on the Instance.name field. - * - * Generated from protobuf field map instance_statuses = 2; - */ - private $instance_statuses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_targets - * The instances being created in the API call. Each string in this list - * is the server defined resource path for target instances in the request - * and for the format of each string, see the comment on the Instance.name - * field. - * @type array|\Google\Protobuf\Internal\MapField $instance_statuses - * A map representing state of the instances involved in the - * BatchCreateInstances operation during the operation execution. - * The instance state will be in STATE_UNSPECIFIED state if the instance has - * not yet been picked up for processing. - * The key of the map is the name of the instance resource. - * For the format, see the comment on the Instance.name field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The instances being created in the API call. Each string in this list - * is the server defined resource path for target instances in the request - * and for the format of each string, see the comment on the Instance.name - * field. - * - * Generated from protobuf field repeated string instance_targets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstanceTargets() - { - return $this->instance_targets; - } - - /** - * The instances being created in the API call. Each string in this list - * is the server defined resource path for target instances in the request - * and for the format of each string, see the comment on the Instance.name - * field. - * - * Generated from protobuf field repeated string instance_targets = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstanceTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_targets = $arr; - - return $this; - } - - /** - * A map representing state of the instances involved in the - * BatchCreateInstances operation during the operation execution. - * The instance state will be in STATE_UNSPECIFIED state if the instance has - * not yet been picked up for processing. - * The key of the map is the name of the instance resource. - * For the format, see the comment on the Instance.name field. - * - * Generated from protobuf field map instance_statuses = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getInstanceStatuses() - { - return $this->instance_statuses; - } - - /** - * A map representing state of the instances involved in the - * BatchCreateInstances operation during the operation execution. - * The instance state will be in STATE_UNSPECIFIED state if the instance has - * not yet been picked up for processing. - * The key of the map is the name of the instance resource. - * For the format, see the comment on the Instance.name field. - * - * Generated from protobuf field map instance_statuses = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setInstanceStatuses($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\BatchCreateInstanceStatus::class); - $this->instance_statuses = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesRequest.php deleted file mode 100644 index 638507a533ef..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.alloydb.v1.BatchCreateInstancesRequest - */ -class BatchCreateInstancesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Resources being created. - * - * Generated from protobuf field .google.cloud.alloydb.v1.CreateInstanceRequests requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $requests = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. - * @type \Google\Cloud\AlloyDb\V1\CreateInstanceRequests $requests - * Required. Resources being created. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. - * - * 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 resource. - * - * 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. Resources being created. - * - * Generated from protobuf field .google.cloud.alloydb.v1.CreateInstanceRequests requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\CreateInstanceRequests|null - */ - public function getRequests() - { - return $this->requests; - } - - public function hasRequests() - { - return isset($this->requests); - } - - public function clearRequests() - { - unset($this->requests); - } - - /** - * Required. Resources being created. - * - * Generated from protobuf field .google.cloud.alloydb.v1.CreateInstanceRequests requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\CreateInstanceRequests $var - * @return $this - */ - public function setRequests($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\CreateInstanceRequests::class); - $this->requests = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesResponse.php deleted file mode 100644 index 92bd1e0d95be..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/BatchCreateInstancesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.alloydb.v1.BatchCreateInstancesResponse - */ -class BatchCreateInstancesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Created instances. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance instances = 1; - */ - private $instances; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $instances - * Created instances. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Created instances. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance instances = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstances() - { - return $this->instances; - } - - /** - * Created instances. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance instances = 1; - * @param array<\Google\Cloud\AlloyDb\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstances($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\Instance::class); - $this->instances = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster.php deleted file mode 100644 index fb37d3ae0ec5..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster.php +++ /dev/null @@ -1,1499 +0,0 @@ -google.cloud.alloydb.v1.Cluster - */ -class Cluster extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the cluster resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * where the cluster ID segment should satisfy the regex expression - * `[a-z0-9-]+`. For more details see https://google.aip.dev/122. - * The prefix of the cluster resource name is the name of the parent resource: - * * projects/{project}/locations/{region} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * User-settable and human-readable display name for the Cluster. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. Create time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Update time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 7; - */ - private $labels; - /** - * Output only. The current serving state of the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The type of the cluster. This is an output-only field and it's - * populated at the Cluster creation time or the Cluster promotion - * time. The cluster type is determined by which RPC was used to create - * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster` - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_type = 0; - /** - * Optional. The database engine major version. This is an optional field and - * it is populated at the Cluster creation time. If a database version is not - * supplied at cluster creation time, then a default database version will - * be used. - * - * Generated from protobuf field .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_version = 0; - /** - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network_config = null; - /** - * Required. The resource link for the VPC network in which cluster resources - * are created and from which they are accessible via Private IP. The network - * must belong to the same project as the cluster. It is specified in the - * form: `projects/{project}/global/networks/{network_id}`. This is required - * to create a cluster. Deprecated, use network_config.network instead. - * - * Generated from protobuf field string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @deprecated - */ - protected $network = ''; - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 11; - */ - protected $etag = ''; - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 12; - */ - private $annotations; - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Cluster does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * - * Generated from protobuf field bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Input only. Initial user to setup during cluster creation. Required. - * If used in `RestoreCluster` this is ignored. - * - * Generated from protobuf field .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $initial_user = null; - /** - * The automated backup policy for this cluster. - * If no policy is provided then the default policy will be used. If backups - * are supported for the cluster, the default policy takes one backup a day, - * has a backup window of 1 hour, and retains backups for 14 days. - * For more information on the defaults, consult the - * documentation for the message type. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; - */ - protected $automated_backup_policy = null; - /** - * SSL configuration for this AlloyDB cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; - * @deprecated - */ - protected $ssl_config = null; - /** - * Optional. The encryption config can be specified to encrypt the data disks - * and other persistent data resources of a cluster with a - * customer-managed encryption key (CMEK). When this field is not - * specified, the cluster will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encryption_config = null; - /** - * Output only. The encryption information for the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_info = null; - /** - * Optional. Continuous backup configuration for this cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $continuous_backup_config = null; - /** - * Output only. Continuous backup properties for this cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $continuous_backup_info = null; - /** - * Cross Region replication config specific to SECONDARY cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; - */ - protected $secondary_config = null; - /** - * Output only. Cross Region replication config specific to PRIMARY cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $primary_config = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - /** - * Optional. The configuration for Private Service Connect (PSC) for the - * cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $psc_config = null; - /** - * Optional. The maintenance update policy determines when to allow or deny - * updates. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $maintenance_update_policy = null; - /** - * Output only. The maintenance schedule for the cluster, generated for a - * specific rollout if a maintenance window is set. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $maintenance_schedule = null; - /** - * Optional. Subscription type of the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $subscription_type = 0; - /** - * Output only. Metadata for free trial clusters - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $trial_metadata = null; - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * - * Generated from protobuf field map tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AlloyDb\V1\BackupSource $backup_source - * Output only. Cluster created from backup. - * @type \Google\Cloud\AlloyDb\V1\MigrationSource $migration_source - * Output only. Cluster created via DMS migration. - * @type string $name - * Output only. The name of the cluster resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * where the cluster ID segment should satisfy the regex expression - * `[a-z0-9-]+`. For more details see https://google.aip.dev/122. - * The prefix of the cluster resource name is the name of the parent resource: - * * projects/{project}/locations/{region} - * @type string $display_name - * User-settable and human-readable display name for the Cluster. - * @type string $uid - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time stamp - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Update time stamp - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. Delete time stamp - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels as key value pairs - * @type int $state - * Output only. The current serving state of the cluster. - * @type int $cluster_type - * Output only. The type of the cluster. This is an output-only field and it's - * populated at the Cluster creation time or the Cluster promotion - * time. The cluster type is determined by which RPC was used to create - * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster` - * @type int $database_version - * Optional. The database engine major version. This is an optional field and - * it is populated at the Cluster creation time. If a database version is not - * supplied at cluster creation time, then a default database version will - * be used. - * @type \Google\Cloud\AlloyDb\V1\Cluster\NetworkConfig $network_config - * @type string $network - * Required. The resource link for the VPC network in which cluster resources - * are created and from which they are accessible via Private IP. The network - * must belong to the same project as the cluster. It is specified in the - * form: `projects/{project}/global/networks/{network_id}`. This is required - * to create a cluster. Deprecated, use network_config.network instead. - * @type string $etag - * For Resource freshness validation (https://google.aip.dev/154) - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * @type bool $reconciling - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Cluster does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * @type \Google\Cloud\AlloyDb\V1\UserPassword $initial_user - * Input only. Initial user to setup during cluster creation. Required. - * If used in `RestoreCluster` this is ignored. - * @type \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy $automated_backup_policy - * The automated backup policy for this cluster. - * If no policy is provided then the default policy will be used. If backups - * are supported for the cluster, the default policy takes one backup a day, - * has a backup window of 1 hour, and retains backups for 14 days. - * For more information on the defaults, consult the - * documentation for the message type. - * @type \Google\Cloud\AlloyDb\V1\SslConfig $ssl_config - * SSL configuration for this AlloyDB cluster. - * @type \Google\Cloud\AlloyDb\V1\EncryptionConfig $encryption_config - * Optional. The encryption config can be specified to encrypt the data disks - * and other persistent data resources of a cluster with a - * customer-managed encryption key (CMEK). When this field is not - * specified, the cluster will then use default encryption scheme to - * protect the user data. - * @type \Google\Cloud\AlloyDb\V1\EncryptionInfo $encryption_info - * Output only. The encryption information for the cluster. - * @type \Google\Cloud\AlloyDb\V1\ContinuousBackupConfig $continuous_backup_config - * Optional. Continuous backup configuration for this cluster. - * @type \Google\Cloud\AlloyDb\V1\ContinuousBackupInfo $continuous_backup_info - * Output only. Continuous backup properties for this cluster. - * @type \Google\Cloud\AlloyDb\V1\Cluster\SecondaryConfig $secondary_config - * Cross Region replication config specific to SECONDARY cluster. - * @type \Google\Cloud\AlloyDb\V1\Cluster\PrimaryConfig $primary_config - * Output only. Cross Region replication config specific to PRIMARY cluster. - * @type bool $satisfies_pzs - * Output only. Reserved for future use. - * @type \Google\Cloud\AlloyDb\V1\Cluster\PscConfig $psc_config - * Optional. The configuration for Private Service Connect (PSC) for the - * cluster. - * @type \Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy $maintenance_update_policy - * Optional. The maintenance update policy determines when to allow or deny - * updates. - * @type \Google\Cloud\AlloyDb\V1\MaintenanceSchedule $maintenance_schedule - * Output only. The maintenance schedule for the cluster, generated for a - * specific rollout if a maintenance window is set. - * @type int $subscription_type - * Optional. Subscription type of the cluster. - * @type \Google\Cloud\AlloyDb\V1\Cluster\TrialMetadata $trial_metadata - * Output only. Metadata for free trial clusters - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Cluster created from backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\BackupSource|null - */ - public function getBackupSource() - { - return $this->readOneof(15); - } - - public function hasBackupSource() - { - return $this->hasOneof(15); - } - - /** - * Output only. Cluster created from backup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BackupSource backup_source = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\BackupSource $var - * @return $this - */ - public function setBackupSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\BackupSource::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Output only. Cluster created via DMS migration. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\MigrationSource|null - */ - public function getMigrationSource() - { - return $this->readOneof(16); - } - - public function hasMigrationSource() - { - return $this->hasOneof(16); - } - - /** - * Output only. Cluster created via DMS migration. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MigrationSource migration_source = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\MigrationSource $var - * @return $this - */ - public function setMigrationSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\MigrationSource::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Output only. The name of the cluster resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * where the cluster ID segment should satisfy the regex expression - * `[a-z0-9-]+`. For more details see https://google.aip.dev/122. - * The prefix of the cluster resource name is the name of the parent resource: - * * projects/{project}/locations/{region} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the cluster resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * where the cluster ID segment should satisfy the regex expression - * `[a-z0-9-]+`. For more details see https://google.aip.dev/122. - * The prefix of the cluster resource name is the name of the parent resource: - * * projects/{project}/locations/{region} - * - * 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; - } - - /** - * User-settable and human-readable display name for the Cluster. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User-settable and human-readable display name for the Cluster. - * - * 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; - } - - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. Create time stamp - * - * 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. Create time stamp - * - * 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. Update time stamp - * - * 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. Update time stamp - * - * 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; - } - - /** - * Output only. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 6 [(.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. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 6 [(.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; - } - - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The current serving state of the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current serving state of the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Cluster\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The type of the cluster. This is an output-only field and it's - * populated at the Cluster creation time or the Cluster promotion - * time. The cluster type is determined by which RPC was used to create - * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster` - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getClusterType() - { - return $this->cluster_type; - } - - /** - * Output only. The type of the cluster. This is an output-only field and it's - * populated at the Cluster creation time or the Cluster promotion - * time. The cluster type is determined by which RPC was used to create - * the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster` - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setClusterType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Cluster\ClusterType::class); - $this->cluster_type = $var; - - return $this; - } - - /** - * Optional. The database engine major version. This is an optional field and - * it is populated at the Cluster creation time. If a database version is not - * supplied at cluster creation time, then a default database version will - * be used. - * - * Generated from protobuf field .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDatabaseVersion() - { - return $this->database_version; - } - - /** - * Optional. The database engine major version. This is an optional field and - * it is populated at the Cluster creation time. If a database version is not - * supplied at cluster creation time, then a default database version will - * be used. - * - * Generated from protobuf field .google.cloud.alloydb.v1.DatabaseVersion database_version = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDatabaseVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\DatabaseVersion::class); - $this->database_version = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\Cluster\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.NetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\Cluster\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * Required. The resource link for the VPC network in which cluster resources - * are created and from which they are accessible via Private IP. The network - * must belong to the same project as the cluster. It is specified in the - * form: `projects/{project}/global/networks/{network_id}`. This is required - * to create a cluster. Deprecated, use network_config.network instead. - * - * Generated from protobuf field string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - * @deprecated - */ - public function getNetwork() - { - @trigger_error('network is deprecated.', E_USER_DEPRECATED); - return $this->network; - } - - /** - * Required. The resource link for the VPC network in which cluster resources - * are created and from which they are accessible via Private IP. The network - * must belong to the same project as the cluster. It is specified in the - * form: `projects/{project}/global/networks/{network_id}`. This is required - * to create a cluster. Deprecated, use network_config.network instead. - * - * Generated from protobuf field string network = 10 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - * @deprecated - */ - public function setNetwork($var) - { - @trigger_error('network is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 11; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 11; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 12; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 12; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Cluster does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * - * Generated from protobuf field bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Cluster does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * - * Generated from protobuf field bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Input only. Initial user to setup during cluster creation. Required. - * If used in `RestoreCluster` this is ignored. - * - * Generated from protobuf field .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\UserPassword|null - */ - public function getInitialUser() - { - return $this->initial_user; - } - - public function hasInitialUser() - { - return isset($this->initial_user); - } - - public function clearInitialUser() - { - unset($this->initial_user); - } - - /** - * Input only. Initial user to setup during cluster creation. Required. - * If used in `RestoreCluster` this is ignored. - * - * Generated from protobuf field .google.cloud.alloydb.v1.UserPassword initial_user = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\UserPassword $var - * @return $this - */ - public function setInitialUser($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\UserPassword::class); - $this->initial_user = $var; - - return $this; - } - - /** - * The automated backup policy for this cluster. - * If no policy is provided then the default policy will be used. If backups - * are supported for the cluster, the default policy takes one backup a day, - * has a backup window of 1 hour, and retains backups for 14 days. - * For more information on the defaults, consult the - * documentation for the message type. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; - * @return \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy|null - */ - public function getAutomatedBackupPolicy() - { - return $this->automated_backup_policy; - } - - public function hasAutomatedBackupPolicy() - { - return isset($this->automated_backup_policy); - } - - public function clearAutomatedBackupPolicy() - { - unset($this->automated_backup_policy); - } - - /** - * The automated backup policy for this cluster. - * If no policy is provided then the default policy will be used. If backups - * are supported for the cluster, the default policy takes one backup a day, - * has a backup window of 1 hour, and retains backups for 14 days. - * For more information on the defaults, consult the - * documentation for the message type. - * - * Generated from protobuf field .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; - * @param \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy $var - * @return $this - */ - public function setAutomatedBackupPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\AutomatedBackupPolicy::class); - $this->automated_backup_policy = $var; - - return $this; - } - - /** - * SSL configuration for this AlloyDB cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; - * @return \Google\Cloud\AlloyDb\V1\SslConfig|null - * @deprecated - */ - public function getSslConfig() - { - @trigger_error('ssl_config is deprecated.', E_USER_DEPRECATED); - return $this->ssl_config; - } - - public function hasSslConfig() - { - @trigger_error('ssl_config is deprecated.', E_USER_DEPRECATED); - return isset($this->ssl_config); - } - - public function clearSslConfig() - { - @trigger_error('ssl_config is deprecated.', E_USER_DEPRECATED); - unset($this->ssl_config); - } - - /** - * SSL configuration for this AlloyDB cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; - * @param \Google\Cloud\AlloyDb\V1\SslConfig $var - * @return $this - * @deprecated - */ - public function setSslConfig($var) - { - @trigger_error('ssl_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\SslConfig::class); - $this->ssl_config = $var; - - return $this; - } - - /** - * Optional. The encryption config can be specified to encrypt the data disks - * and other persistent data resources of a cluster with a - * customer-managed encryption key (CMEK). When this field is not - * specified, the cluster will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Optional. The encryption config can be specified to encrypt the data disks - * and other persistent data resources of a cluster with a - * customer-managed encryption key (CMEK). When this field is not - * specified, the cluster will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * Output only. The encryption information for the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\EncryptionInfo|null - */ - public function getEncryptionInfo() - { - return $this->encryption_info; - } - - public function hasEncryptionInfo() - { - return isset($this->encryption_info); - } - - public function clearEncryptionInfo() - { - unset($this->encryption_info); - } - - /** - * Output only. The encryption information for the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\EncryptionInfo $var - * @return $this - */ - public function setEncryptionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\EncryptionInfo::class); - $this->encryption_info = $var; - - return $this; - } - - /** - * Optional. Continuous backup configuration for this cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\ContinuousBackupConfig|null - */ - public function getContinuousBackupConfig() - { - return $this->continuous_backup_config; - } - - public function hasContinuousBackupConfig() - { - return isset($this->continuous_backup_config); - } - - public function clearContinuousBackupConfig() - { - unset($this->continuous_backup_config); - } - - /** - * Optional. Continuous backup configuration for this cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupConfig continuous_backup_config = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\ContinuousBackupConfig $var - * @return $this - */ - public function setContinuousBackupConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\ContinuousBackupConfig::class); - $this->continuous_backup_config = $var; - - return $this; - } - - /** - * Output only. Continuous backup properties for this cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\ContinuousBackupInfo|null - */ - public function getContinuousBackupInfo() - { - return $this->continuous_backup_info; - } - - public function hasContinuousBackupInfo() - { - return isset($this->continuous_backup_info); - } - - public function clearContinuousBackupInfo() - { - unset($this->continuous_backup_info); - } - - /** - * Output only. Continuous backup properties for this cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupInfo continuous_backup_info = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\ContinuousBackupInfo $var - * @return $this - */ - public function setContinuousBackupInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\ContinuousBackupInfo::class); - $this->continuous_backup_info = $var; - - return $this; - } - - /** - * Cross Region replication config specific to SECONDARY cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; - * @return \Google\Cloud\AlloyDb\V1\Cluster\SecondaryConfig|null - */ - public function getSecondaryConfig() - { - return $this->secondary_config; - } - - public function hasSecondaryConfig() - { - return isset($this->secondary_config); - } - - public function clearSecondaryConfig() - { - unset($this->secondary_config); - } - - /** - * Cross Region replication config specific to SECONDARY cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; - * @param \Google\Cloud\AlloyDb\V1\Cluster\SecondaryConfig $var - * @return $this - */ - public function setSecondaryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster\SecondaryConfig::class); - $this->secondary_config = $var; - - return $this; - } - - /** - * Output only. Cross Region replication config specific to PRIMARY cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\Cluster\PrimaryConfig|null - */ - public function getPrimaryConfig() - { - return $this->primary_config; - } - - public function hasPrimaryConfig() - { - return isset($this->primary_config); - } - - public function clearPrimaryConfig() - { - unset($this->primary_config); - } - - /** - * Output only. Cross Region replication config specific to PRIMARY cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.PrimaryConfig primary_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\Cluster\PrimaryConfig $var - * @return $this - */ - public function setPrimaryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster\PrimaryConfig::class); - $this->primary_config = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Optional. The configuration for Private Service Connect (PSC) for the - * cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\Cluster\PscConfig|null - */ - public function getPscConfig() - { - return $this->psc_config; - } - - public function hasPscConfig() - { - return isset($this->psc_config); - } - - public function clearPscConfig() - { - unset($this->psc_config); - } - - /** - * Optional. The configuration for Private Service Connect (PSC) for the - * cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.PscConfig psc_config = 31 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\Cluster\PscConfig $var - * @return $this - */ - public function setPscConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster\PscConfig::class); - $this->psc_config = $var; - - return $this; - } - - /** - * Optional. The maintenance update policy determines when to allow or deny - * updates. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy|null - */ - public function getMaintenanceUpdatePolicy() - { - return $this->maintenance_update_policy; - } - - public function hasMaintenanceUpdatePolicy() - { - return isset($this->maintenance_update_policy); - } - - public function clearMaintenanceUpdatePolicy() - { - unset($this->maintenance_update_policy); - } - - /** - * Optional. The maintenance update policy determines when to allow or deny - * updates. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MaintenanceUpdatePolicy maintenance_update_policy = 32 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy $var - * @return $this - */ - public function setMaintenanceUpdatePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy::class); - $this->maintenance_update_policy = $var; - - return $this; - } - - /** - * Output only. The maintenance schedule for the cluster, generated for a - * specific rollout if a maintenance window is set. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\MaintenanceSchedule|null - */ - public function getMaintenanceSchedule() - { - return $this->maintenance_schedule; - } - - public function hasMaintenanceSchedule() - { - return isset($this->maintenance_schedule); - } - - public function clearMaintenanceSchedule() - { - unset($this->maintenance_schedule); - } - - /** - * Output only. The maintenance schedule for the cluster, generated for a - * specific rollout if a maintenance window is set. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MaintenanceSchedule maintenance_schedule = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\MaintenanceSchedule $var - * @return $this - */ - public function setMaintenanceSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\MaintenanceSchedule::class); - $this->maintenance_schedule = $var; - - return $this; - } - - /** - * Optional. Subscription type of the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSubscriptionType() - { - return $this->subscription_type; - } - - /** - * Optional. Subscription type of the cluster. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SubscriptionType subscription_type = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSubscriptionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\SubscriptionType::class); - $this->subscription_type = $var; - - return $this; - } - - /** - * Output only. Metadata for free trial clusters - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\Cluster\TrialMetadata|null - */ - public function getTrialMetadata() - { - return $this->trial_metadata; - } - - public function hasTrialMetadata() - { - return isset($this->trial_metadata); - } - - public function clearTrialMetadata() - { - unset($this->trial_metadata); - } - - /** - * Output only. Metadata for free trial clusters - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster.TrialMetadata trial_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\Cluster\TrialMetadata $var - * @return $this - */ - public function setTrialMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster\TrialMetadata::class); - $this->trial_metadata = $var; - - return $this; - } - - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * - * Generated from protobuf field map tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * ``` - * "123/environment": "production", - * "123/costCenter": "marketing" - * ``` - * - * Generated from protobuf field map tags = 41 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/ClusterType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/ClusterType.php deleted file mode 100644 index 59a819d045b1..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/ClusterType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.alloydb.v1.Cluster.ClusterType - */ -class ClusterType -{ - /** - * The type of the cluster is unknown. - * - * Generated from protobuf enum CLUSTER_TYPE_UNSPECIFIED = 0; - */ - const CLUSTER_TYPE_UNSPECIFIED = 0; - /** - * Primary cluster that support read and write operations. - * - * Generated from protobuf enum PRIMARY = 1; - */ - const PRIMARY = 1; - /** - * Secondary cluster that is replicating from another region. - * This only supports read. - * - * Generated from protobuf enum SECONDARY = 2; - */ - const SECONDARY = 2; - - private static $valueToName = [ - self::CLUSTER_TYPE_UNSPECIFIED => 'CLUSTER_TYPE_UNSPECIFIED', - self::PRIMARY => 'PRIMARY', - self::SECONDARY => 'SECONDARY', - ]; - - 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(ClusterType::class, \Google\Cloud\AlloyDb\V1\Cluster_ClusterType::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/NetworkConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/NetworkConfig.php deleted file mode 100644 index 722ac36b98f3..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/NetworkConfig.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.alloydb.v1.Cluster.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource link for the VPC network in which cluster - * resources are created and from which they are accessible via Private IP. - * The network must belong to the same project as the cluster. It is - * specified in the form: - * `projects/{project_number}/global/networks/{network_id}`. This is - * required to create a cluster. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * Optional. Name of the allocated IP range for the private IP AlloyDB - * cluster, for example: "google-managed-services-default". If set, the - * instance IPs for this cluster will be created in the allocated range. The - * range name must comply with RFC 1035. Specifically, the name must be 1-63 - * characters long and match the regular expression - * `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Field name is intended to be consistent with Cloud SQL. - * - * Generated from protobuf field string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allocated_ip_range = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Optional. The resource link for the VPC network in which cluster - * resources are created and from which they are accessible via Private IP. - * The network must belong to the same project as the cluster. It is - * specified in the form: - * `projects/{project_number}/global/networks/{network_id}`. This is - * required to create a cluster. - * @type string $allocated_ip_range - * Optional. Name of the allocated IP range for the private IP AlloyDB - * cluster, for example: "google-managed-services-default". If set, the - * instance IPs for this cluster will be created in the allocated range. The - * range name must comply with RFC 1035. Specifically, the name must be 1-63 - * characters long and match the regular expression - * `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Field name is intended to be consistent with Cloud SQL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource link for the VPC network in which cluster - * resources are created and from which they are accessible via Private IP. - * The network must belong to the same project as the cluster. It is - * specified in the form: - * `projects/{project_number}/global/networks/{network_id}`. This is - * required to create a cluster. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Optional. The resource link for the VPC network in which cluster - * resources are created and from which they are accessible via Private IP. - * The network must belong to the same project as the cluster. It is - * specified in the form: - * `projects/{project_number}/global/networks/{network_id}`. This is - * required to create a cluster. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Optional. Name of the allocated IP range for the private IP AlloyDB - * cluster, for example: "google-managed-services-default". If set, the - * instance IPs for this cluster will be created in the allocated range. The - * range name must comply with RFC 1035. Specifically, the name must be 1-63 - * characters long and match the regular expression - * `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Field name is intended to be consistent with Cloud SQL. - * - * Generated from protobuf field string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAllocatedIpRange() - { - return $this->allocated_ip_range; - } - - /** - * Optional. Name of the allocated IP range for the private IP AlloyDB - * cluster, for example: "google-managed-services-default". If set, the - * instance IPs for this cluster will be created in the allocated range. The - * range name must comply with RFC 1035. Specifically, the name must be 1-63 - * characters long and match the regular expression - * `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Field name is intended to be consistent with Cloud SQL. - * - * Generated from protobuf field string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAllocatedIpRange($var) - { - GPBUtil::checkString($var, True); - $this->allocated_ip_range = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkConfig::class, \Google\Cloud\AlloyDb\V1\Cluster_NetworkConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/PrimaryConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/PrimaryConfig.php deleted file mode 100644 index 229e0bf82669..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/PrimaryConfig.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.alloydb.v1.Cluster.PrimaryConfig - */ -class PrimaryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Names of the clusters that are replicating from this - * cluster. - * - * Generated from protobuf field repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $secondary_cluster_names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_cluster_names - * Output only. Names of the clusters that are replicating from this - * cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Names of the clusters that are replicating from this - * cluster. - * - * Generated from protobuf field repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryClusterNames() - { - return $this->secondary_cluster_names; - } - - /** - * Output only. Names of the clusters that are replicating from this - * cluster. - * - * Generated from protobuf field repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryClusterNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->secondary_cluster_names = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PrimaryConfig::class, \Google\Cloud\AlloyDb\V1\Cluster_PrimaryConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/PscConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/PscConfig.php deleted file mode 100644 index f685594bc844..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/PscConfig.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.alloydb.v1.Cluster.PscConfig - */ -class PscConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Create an instance that allows connections from Private Service - * Connect endpoints to the instance. - * - * Generated from protobuf field bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $psc_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $psc_enabled - * Optional. Create an instance that allows connections from Private Service - * Connect endpoints to the instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Create an instance that allows connections from Private Service - * Connect endpoints to the instance. - * - * Generated from protobuf field bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getPscEnabled() - { - return $this->psc_enabled; - } - - /** - * Optional. Create an instance that allows connections from Private Service - * Connect endpoints to the instance. - * - * Generated from protobuf field bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setPscEnabled($var) - { - GPBUtil::checkBool($var); - $this->psc_enabled = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PscConfig::class, \Google\Cloud\AlloyDb\V1\Cluster_PscConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/SecondaryConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/SecondaryConfig.php deleted file mode 100644 index b3ddfb245158..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/SecondaryConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.alloydb.v1.Cluster.SecondaryConfig - */ -class SecondaryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the primary cluster name with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * - * Generated from protobuf field string primary_cluster_name = 1; - */ - protected $primary_cluster_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $primary_cluster_name - * The name of the primary cluster name with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The name of the primary cluster name with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * - * Generated from protobuf field string primary_cluster_name = 1; - * @return string - */ - public function getPrimaryClusterName() - { - return $this->primary_cluster_name; - } - - /** - * The name of the primary cluster name with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * - * Generated from protobuf field string primary_cluster_name = 1; - * @param string $var - * @return $this - */ - public function setPrimaryClusterName($var) - { - GPBUtil::checkString($var, True); - $this->primary_cluster_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SecondaryConfig::class, \Google\Cloud\AlloyDb\V1\Cluster_SecondaryConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/State.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/State.php deleted file mode 100644 index 362f2a921449..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/State.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.alloydb.v1.Cluster.State - */ -class State -{ - /** - * The state of the cluster is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The cluster is active and running. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * The cluster is stopped. All instances in the cluster are stopped. - * Customers can start a stopped cluster at any point and all their - * instances will come back to life with same names and IP resources. In - * this state, customer pays for storage. - * Associated backups could also be present in a stopped cluster. - * - * Generated from protobuf enum STOPPED = 2; - */ - const STOPPED = 2; - /** - * The cluster is empty and has no associated resources. - * All instances, associated storage and backups have been deleted. - * - * Generated from protobuf enum EMPTY = 3; - */ - const PBEMPTY = 3; - /** - * The cluster is being created. - * - * Generated from protobuf enum CREATING = 4; - */ - const CREATING = 4; - /** - * The cluster is being deleted. - * - * Generated from protobuf enum DELETING = 5; - */ - const DELETING = 5; - /** - * The creation of the cluster failed. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - /** - * The cluster is bootstrapping with data from some other source. - * Direct mutations to the cluster (e.g. adding read pool) are not allowed. - * - * Generated from protobuf enum BOOTSTRAPPING = 7; - */ - const BOOTSTRAPPING = 7; - /** - * The cluster is under maintenance. AlloyDB regularly performs maintenance - * and upgrades on customer clusters. Updates on the cluster are - * not allowed while the cluster is in this state. - * - * Generated from protobuf enum MAINTENANCE = 8; - */ - const MAINTENANCE = 8; - /** - * The cluster is being promoted. - * - * Generated from protobuf enum PROMOTING = 9; - */ - const PROMOTING = 9; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::READY => 'READY', - self::STOPPED => 'STOPPED', - self::PBEMPTY => 'EMPTY', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::FAILED => 'FAILED', - self::BOOTSTRAPPING => 'BOOTSTRAPPING', - self::MAINTENANCE => 'MAINTENANCE', - self::PROMOTING => 'PROMOTING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\AlloyDb\V1\Cluster_State::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/TrialMetadata.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/TrialMetadata.php deleted file mode 100644 index 69937b4e2620..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Cluster/TrialMetadata.php +++ /dev/null @@ -1,212 +0,0 @@ -google.cloud.alloydb.v1.Cluster.TrialMetadata - */ -class TrialMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * start time of the trial cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * End time of the trial cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - /** - * Upgrade time of trial cluster to Standard cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp upgrade_time = 3; - */ - protected $upgrade_time = null; - /** - * grace end time of the cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp grace_end_time = 4; - */ - protected $grace_end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * start time of the trial cluster. - * @type \Google\Protobuf\Timestamp $end_time - * End time of the trial cluster. - * @type \Google\Protobuf\Timestamp $upgrade_time - * Upgrade time of trial cluster to Standard cluster. - * @type \Google\Protobuf\Timestamp $grace_end_time - * grace end time of the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * start time of the trial cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * start time of the trial cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * End time of the trial cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * End time of the trial cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Upgrade time of trial cluster to Standard cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp upgrade_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpgradeTime() - { - return $this->upgrade_time; - } - - public function hasUpgradeTime() - { - return isset($this->upgrade_time); - } - - public function clearUpgradeTime() - { - unset($this->upgrade_time); - } - - /** - * Upgrade time of trial cluster to Standard cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp upgrade_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpgradeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->upgrade_time = $var; - - return $this; - } - - /** - * grace end time of the cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp grace_end_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getGraceEndTime() - { - return $this->grace_end_time; - } - - public function hasGraceEndTime() - { - return isset($this->grace_end_time); - } - - public function clearGraceEndTime() - { - unset($this->grace_end_time); - } - - /** - * grace end time of the cluster. - * - * Generated from protobuf field .google.protobuf.Timestamp grace_end_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setGraceEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->grace_end_time = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TrialMetadata::class, \Google\Cloud\AlloyDb\V1\Cluster_TrialMetadata::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ClusterView.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ClusterView.php deleted file mode 100644 index 684db46d2c34..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ClusterView.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.alloydb.v1.ClusterView - */ -class ClusterView -{ - /** - * CLUSTER_VIEW_UNSPECIFIED Not specified, equivalent to BASIC. - * - * Generated from protobuf enum CLUSTER_VIEW_UNSPECIFIED = 0; - */ - const CLUSTER_VIEW_UNSPECIFIED = 0; - /** - * BASIC server responses include all the relevant cluster details, excluding - * Cluster.ContinuousBackupInfo.EarliestRestorableTime and other view-specific - * fields. The default value. - * - * Generated from protobuf enum CLUSTER_VIEW_BASIC = 1; - */ - const CLUSTER_VIEW_BASIC = 1; - /** - * CONTINUOUS_BACKUP response returns all the fields from BASIC plus - * the earliest restorable time if continuous backups are enabled. - * May increase latency. - * - * Generated from protobuf enum CLUSTER_VIEW_CONTINUOUS_BACKUP = 2; - */ - const CLUSTER_VIEW_CONTINUOUS_BACKUP = 2; - - private static $valueToName = [ - self::CLUSTER_VIEW_UNSPECIFIED => 'CLUSTER_VIEW_UNSPECIFIED', - self::CLUSTER_VIEW_BASIC => 'CLUSTER_VIEW_BASIC', - self::CLUSTER_VIEW_CONTINUOUS_BACKUP => 'CLUSTER_VIEW_CONTINUOUS_BACKUP', - ]; - - 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ConnectionInfo.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ConnectionInfo.php deleted file mode 100644 index c037ffcc12d2..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ConnectionInfo.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.alloydb.v1.ConnectionInfo - */ -class ConnectionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the ConnectionInfo singleton resource, e.g.: - * projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo - * This field currently has no semantic meaning. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The private network IP address for the Instance. This is the - * default IP for the instance and is always created (even if enable_public_ip - * is set). This is the connection endpoint for an end-user application. - * - * Generated from protobuf field string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ip_address = ''; - /** - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * - * Generated from protobuf field string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $public_ip_address = ''; - /** - * Output only. The unique ID of the Instance. - * - * Generated from protobuf field string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $instance_uid = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the ConnectionInfo singleton resource, e.g.: - * projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo - * This field currently has no semantic meaning. - * @type string $ip_address - * Output only. The private network IP address for the Instance. This is the - * default IP for the instance and is always created (even if enable_public_ip - * is set). This is the connection endpoint for an end-user application. - * @type string $public_ip_address - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * @type string $instance_uid - * Output only. The unique ID of the Instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The name of the ConnectionInfo singleton resource, e.g.: - * projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo - * This field currently has no semantic meaning. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the ConnectionInfo singleton resource, e.g.: - * projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo - * This field currently has no semantic meaning. - * - * 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; - } - - /** - * Output only. The private network IP address for the Instance. This is the - * default IP for the instance and is always created (even if enable_public_ip - * is set). This is the connection endpoint for an end-user application. - * - * Generated from protobuf field string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * Output only. The private network IP address for the Instance. This is the - * default IP for the instance and is always created (even if enable_public_ip - * is set). This is the connection endpoint for an end-user application. - * - * Generated from protobuf field string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * - * Generated from protobuf field string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getPublicIpAddress() - { - return $this->public_ip_address; - } - - /** - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * - * Generated from protobuf field string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setPublicIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->public_ip_address = $var; - - return $this; - } - - /** - * Output only. The unique ID of the Instance. - * - * Generated from protobuf field string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInstanceUid() - { - return $this->instance_uid; - } - - /** - * Output only. The unique ID of the Instance. - * - * Generated from protobuf field string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInstanceUid($var) - { - GPBUtil::checkString($var, True); - $this->instance_uid = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupConfig.php deleted file mode 100644 index 6225028820f1..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupConfig.php +++ /dev/null @@ -1,176 +0,0 @@ -google.cloud.alloydb.v1.ContinuousBackupConfig - */ -class ContinuousBackupConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether ContinuousBackup is enabled. - * - * Generated from protobuf field optional bool enabled = 1; - */ - protected $enabled = null; - /** - * The number of days that are eligible to restore from using PITR. To support - * the entire recovery window, backups and logs are retained for one day more - * than the recovery window. If not set, defaults to 14 days. - * - * Generated from protobuf field int32 recovery_window_days = 4; - */ - protected $recovery_window_days = 0; - /** - * The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; - */ - protected $encryption_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether ContinuousBackup is enabled. - * @type int $recovery_window_days - * The number of days that are eligible to restore from using PITR. To support - * the entire recovery window, backups and logs are retained for one day more - * than the recovery window. If not set, defaults to 14 days. - * @type \Google\Cloud\AlloyDb\V1\EncryptionConfig $encryption_config - * The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Whether ContinuousBackup is enabled. - * - * Generated from protobuf field optional bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return isset($this->enabled) ? $this->enabled : false; - } - - public function hasEnabled() - { - return isset($this->enabled); - } - - public function clearEnabled() - { - unset($this->enabled); - } - - /** - * Whether ContinuousBackup is enabled. - * - * Generated from protobuf field optional bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The number of days that are eligible to restore from using PITR. To support - * the entire recovery window, backups and logs are retained for one day more - * than the recovery window. If not set, defaults to 14 days. - * - * Generated from protobuf field int32 recovery_window_days = 4; - * @return int - */ - public function getRecoveryWindowDays() - { - return $this->recovery_window_days; - } - - /** - * The number of days that are eligible to restore from using PITR. To support - * the entire recovery window, backups and logs are retained for one day more - * than the recovery window. If not set, defaults to 14 days. - * - * Generated from protobuf field int32 recovery_window_days = 4; - * @param int $var - * @return $this - */ - public function setRecoveryWindowDays($var) - { - GPBUtil::checkInt32($var); - $this->recovery_window_days = $var; - - return $this; - } - - /** - * The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; - * @return \Google\Cloud\AlloyDb\V1\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * The encryption config can be specified to encrypt the - * backups with a customer-managed encryption key (CMEK). When this field is - * not specified, the backup will then use default encryption scheme to - * protect the user data. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; - * @param \Google\Cloud\AlloyDb\V1\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupInfo.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupInfo.php deleted file mode 100644 index e6d7f95fb61e..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupInfo.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.alloydb.v1.ContinuousBackupInfo - */ -class ContinuousBackupInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The encryption information for the WALs and backups required - * for ContinuousBackup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_info = null; - /** - * Output only. When ContinuousBackup was most recently enabled. Set to null - * if ContinuousBackup is not enabled. - * - * Generated from protobuf field .google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $enabled_time = null; - /** - * Output only. Days of the week on which a continuous backup is taken. Output - * only field. Ignored if passed into the request. - * - * Generated from protobuf field repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $schedule; - /** - * Output only. The earliest restorable time that can be restored to. Output - * only field. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $earliest_restorable_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AlloyDb\V1\EncryptionInfo $encryption_info - * Output only. The encryption information for the WALs and backups required - * for ContinuousBackup. - * @type \Google\Protobuf\Timestamp $enabled_time - * Output only. When ContinuousBackup was most recently enabled. Set to null - * if ContinuousBackup is not enabled. - * @type array|\Google\Protobuf\Internal\RepeatedField $schedule - * Output only. Days of the week on which a continuous backup is taken. Output - * only field. Ignored if passed into the request. - * @type \Google\Protobuf\Timestamp $earliest_restorable_time - * Output only. The earliest restorable time that can be restored to. Output - * only field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The encryption information for the WALs and backups required - * for ContinuousBackup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\EncryptionInfo|null - */ - public function getEncryptionInfo() - { - return $this->encryption_info; - } - - public function hasEncryptionInfo() - { - return isset($this->encryption_info); - } - - public function clearEncryptionInfo() - { - unset($this->encryption_info); - } - - /** - * Output only. The encryption information for the WALs and backups required - * for ContinuousBackup. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\EncryptionInfo $var - * @return $this - */ - public function setEncryptionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\EncryptionInfo::class); - $this->encryption_info = $var; - - return $this; - } - - /** - * Output only. When ContinuousBackup was most recently enabled. Set to null - * if ContinuousBackup is not enabled. - * - * Generated from protobuf field .google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEnabledTime() - { - return $this->enabled_time; - } - - public function hasEnabledTime() - { - return isset($this->enabled_time); - } - - public function clearEnabledTime() - { - unset($this->enabled_time); - } - - /** - * Output only. When ContinuousBackup was most recently enabled. Set to null - * if ContinuousBackup is not enabled. - * - * Generated from protobuf field .google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEnabledTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->enabled_time = $var; - - return $this; - } - - /** - * Output only. Days of the week on which a continuous backup is taken. Output - * only field. Ignored if passed into the request. - * - * Generated from protobuf field repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSchedule() - { - return $this->schedule; - } - - /** - * Output only. Days of the week on which a continuous backup is taken. Output - * only field. Ignored if passed into the request. - * - * Generated from protobuf field repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSchedule($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); - $this->schedule = $arr; - - return $this; - } - - /** - * Output only. The earliest restorable time that can be restored to. Output - * only field. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEarliestRestorableTime() - { - return $this->earliest_restorable_time; - } - - public function hasEarliestRestorableTime() - { - return isset($this->earliest_restorable_time); - } - - public function clearEarliestRestorableTime() - { - unset($this->earliest_restorable_time); - } - - /** - * Output only. The earliest restorable time that can be restored to. Output - * only field. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEarliestRestorableTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->earliest_restorable_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupSource.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupSource.php deleted file mode 100644 index 7764ab3e5697..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ContinuousBackupSource.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.alloydb.v1.ContinuousBackupSource - */ -class ContinuousBackupSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The source cluster from which to restore. This cluster must have - * continuous backup enabled for this operation to succeed. For the required - * format, see the comment on the Cluster.name field. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = ''; - /** - * Required. The point in time to restore to. - * - * Generated from protobuf field .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $point_in_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cluster - * Required. The source cluster from which to restore. This cluster must have - * continuous backup enabled for this operation to succeed. For the required - * format, see the comment on the Cluster.name field. - * @type \Google\Protobuf\Timestamp $point_in_time - * Required. The point in time to restore to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The source cluster from which to restore. This cluster must have - * continuous backup enabled for this operation to succeed. For the required - * format, see the comment on the Cluster.name field. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCluster() - { - return $this->cluster; - } - - /** - * Required. The source cluster from which to restore. This cluster must have - * continuous backup enabled for this operation to succeed. For the required - * format, see the comment on the Cluster.name field. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkString($var, True); - $this->cluster = $var; - - return $this; - } - - /** - * Required. The point in time to restore to. - * - * Generated from protobuf field .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getPointInTime() - { - return $this->point_in_time; - } - - public function hasPointInTime() - { - return isset($this->point_in_time); - } - - public function clearPointInTime() - { - unset($this->point_in_time); - } - - /** - * Required. The point in time to restore to. - * - * Generated from protobuf field .google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setPointInTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->point_in_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateBackupRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateBackupRequest.php deleted file mode 100644 index 4eedda5e924c..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateBackupRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.alloydb.v1.CreateBackupRequest - */ -class CreateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. Value for parent. Please see - * {@see AlloyDBAdminClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AlloyDb\V1\Backup $backup Required. The resource being created - * @param string $backupId Required. ID of the requesting object. - * - * @return \Google\Cloud\AlloyDb\V1\CreateBackupRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AlloyDb\V1\Backup $backup, string $backupId): self - { - return (new self()) - ->setParent($parent) - ->setBackup($backup) - ->setBackupId($backupId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $backup_id - * Required. ID of the requesting object. - * @type \Google\Cloud\AlloyDb\V1\Backup $backup - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * 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. Value for parent. - * - * 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. ID of the requesting object. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupId() - { - return $this->backup_id; - } - - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupId($var) - { - GPBUtil::checkString($var, True); - $this->backup_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Backup::class); - $this->backup = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateClusterRequest.php deleted file mode 100644 index 4bccb5c86b9c..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateClusterRequest.php +++ /dev/null @@ -1,284 +0,0 @@ -google.cloud.alloydb.v1.CreateClusterRequest - */ -class CreateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location of the new cluster. For the required format, see the - * comment on the Cluster.name field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The location of the new cluster. For the required format, see the - * comment on the Cluster.name field. Please see - * {@see AlloyDBAdminClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AlloyDb\V1\Cluster $cluster Required. The resource being created - * @param string $clusterId Required. ID of the requesting object. - * - * @return \Google\Cloud\AlloyDb\V1\CreateClusterRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AlloyDb\V1\Cluster $cluster, string $clusterId): self - { - return (new self()) - ->setParent($parent) - ->setCluster($cluster) - ->setClusterId($clusterId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location of the new cluster. For the required format, see the - * comment on the Cluster.name field. - * @type string $cluster_id - * Required. ID of the requesting object. - * @type \Google\Cloud\AlloyDb\V1\Cluster $cluster - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location of the new cluster. For the required format, see the - * comment on the Cluster.name field. - * - * 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 location of the new cluster. For the required format, see the - * comment on the Cluster.name field. - * - * 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. ID of the requesting object. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateInstanceRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateInstanceRequest.php deleted file mode 100644 index 27a56f4d8b4a..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateInstanceRequest.php +++ /dev/null @@ -1,284 +0,0 @@ -google.cloud.alloydb.v1.CreateInstanceRequest - */ -class CreateInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * @param \Google\Cloud\AlloyDb\V1\Instance $instance Required. The resource being created - * @param string $instanceId Required. ID of the requesting object. - * - * @return \Google\Cloud\AlloyDb\V1\CreateInstanceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AlloyDb\V1\Instance $instance, string $instanceId): self - { - return (new self()) - ->setParent($parent) - ->setInstance($instance) - ->setInstanceId($instanceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. - * @type string $instance_id - * Required. ID of the requesting object. - * @type \Google\Cloud\AlloyDb\V1\Instance $instance - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. - * - * 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 resource. For the required format, see the - * comment on the Instance.name field. - * - * 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. ID of the requesting object. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Instance|null - */ - public function getInstance() - { - return $this->instance; - } - - public function hasInstance() - { - return isset($this->instance); - } - - public function clearInstance() - { - unset($this->instance); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Instance $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance::class); - $this->instance = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateInstanceRequests.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateInstanceRequests.php deleted file mode 100644 index e98a40af9368..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateInstanceRequests.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.alloydb.v1.CreateInstanceRequests - */ -class CreateInstanceRequests extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Primary and read replica instances to be created. This list - * should not be empty. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.CreateInstanceRequest create_instance_requests = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $create_instance_requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\CreateInstanceRequest>|\Google\Protobuf\Internal\RepeatedField $create_instance_requests - * Required. Primary and read replica instances to be created. This list - * should not be empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Primary and read replica instances to be created. This list - * should not be empty. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.CreateInstanceRequest create_instance_requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCreateInstanceRequests() - { - return $this->create_instance_requests; - } - - /** - * Required. Primary and read replica instances to be created. This list - * should not be empty. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.CreateInstanceRequest create_instance_requests = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\AlloyDb\V1\CreateInstanceRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCreateInstanceRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\CreateInstanceRequest::class); - $this->create_instance_requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateSecondaryClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateSecondaryClusterRequest.php deleted file mode 100644 index 2f275466f8bc..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateSecondaryClusterRequest.php +++ /dev/null @@ -1,282 +0,0 @@ -google.cloud.alloydb.v1.CreateSecondaryClusterRequest - */ -class CreateSecondaryClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location of the new cluster. For the required - * format, see the comment on the Cluster.name field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object (the secondary cluster). - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. Configuration of the requesting object (the secondary cluster). - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The location of the new cluster. For the required - * format, see the comment on the Cluster.name field. Please see - * {@see AlloyDBAdminClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AlloyDb\V1\Cluster $cluster Required. Configuration of the requesting object (the secondary cluster). - * @param string $clusterId Required. ID of the requesting object (the secondary cluster). - * - * @return \Google\Cloud\AlloyDb\V1\CreateSecondaryClusterRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AlloyDb\V1\Cluster $cluster, string $clusterId): self - { - return (new self()) - ->setParent($parent) - ->setCluster($cluster) - ->setClusterId($clusterId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location of the new cluster. For the required - * format, see the comment on the Cluster.name field. - * @type string $cluster_id - * Required. ID of the requesting object (the secondary cluster). - * @type \Google\Cloud\AlloyDb\V1\Cluster $cluster - * Required. Configuration of the requesting object (the secondary cluster). - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location of the new cluster. For the required - * format, see the comment on the Cluster.name field. - * - * 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 location of the new cluster. For the required - * format, see the comment on the Cluster.name field. - * - * 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. ID of the requesting object (the secondary cluster). - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. ID of the requesting object (the secondary cluster). - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. Configuration of the requesting object (the secondary cluster). - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. Configuration of the requesting object (the secondary cluster). - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateSecondaryInstanceRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateSecondaryInstanceRequest.php deleted file mode 100644 index 0ba7eb3b2352..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateSecondaryInstanceRequest.php +++ /dev/null @@ -1,284 +0,0 @@ -google.cloud.alloydb.v1.CreateSecondaryInstanceRequest - */ -class CreateSecondaryInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * @param \Google\Cloud\AlloyDb\V1\Instance $instance Required. The resource being created - * @param string $instanceId Required. ID of the requesting object. - * - * @return \Google\Cloud\AlloyDb\V1\CreateSecondaryInstanceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AlloyDb\V1\Instance $instance, string $instanceId): self - { - return (new self()) - ->setParent($parent) - ->setInstance($instance) - ->setInstanceId($instanceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. - * @type string $instance_id - * Required. ID of the requesting object. - * @type \Google\Cloud\AlloyDb\V1\Instance $instance - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. - * - * 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 resource. For the required format, see the - * comment on the Instance.name field. - * - * 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. ID of the requesting object. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Instance|null - */ - public function getInstance() - { - return $this->instance; - } - - public function hasInstance() - { - return isset($this->instance); - } - - public function clearInstance() - { - unset($this->instance); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Instance $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance::class); - $this->instance = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateUserRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateUserRequest.php deleted file mode 100644 index 6985a4a313b1..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/CreateUserRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.alloydb.v1.CreateUserRequest - */ -class CreateUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. Value for parent. Please see - * {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * @param \Google\Cloud\AlloyDb\V1\User $user Required. The resource being created - * @param string $userId Required. ID of the requesting object. - * - * @return \Google\Cloud\AlloyDb\V1\CreateUserRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AlloyDb\V1\User $user, string $userId): self - { - return (new self()) - ->setParent($parent) - ->setUser($user) - ->setUserId($userId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $user_id - * Required. ID of the requesting object. - * @type \Google\Cloud\AlloyDb\V1\User $user - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * 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. Value for parent. - * - * 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. ID of the requesting object. - * - * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\User::class); - $this->user = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Database.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Database.php deleted file mode 100644 index 532aefbcfc1b..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Database.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.alloydb.v1.Database - */ -class Database extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Name of the resource in the form of - * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. Charset for the database. - * This field can contain any PostgreSQL supported charset name. - * Example values include "UTF8", "SQL_ASCII", etc. - * - * Generated from protobuf field string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $charset = ''; - /** - * Optional. Collation for the database. - * Name of the custom or native collation for postgres. - * Example values include "C", "POSIX", etc - * - * Generated from protobuf field string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $collation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Name of the resource in the form of - * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. - * @type string $charset - * Optional. Charset for the database. - * This field can contain any PostgreSQL supported charset name. - * Example values include "UTF8", "SQL_ASCII", etc. - * @type string $collation - * Optional. Collation for the database. - * Name of the custom or native collation for postgres. - * Example values include "C", "POSIX", etc - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Name of the resource in the form of - * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Name of the resource in the form of - * `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Charset for the database. - * This field can contain any PostgreSQL supported charset name. - * Example values include "UTF8", "SQL_ASCII", etc. - * - * Generated from protobuf field string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCharset() - { - return $this->charset; - } - - /** - * Optional. Charset for the database. - * This field can contain any PostgreSQL supported charset name. - * Example values include "UTF8", "SQL_ASCII", etc. - * - * Generated from protobuf field string charset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCharset($var) - { - GPBUtil::checkString($var, True); - $this->charset = $var; - - return $this; - } - - /** - * Optional. Collation for the database. - * Name of the custom or native collation for postgres. - * Example values include "C", "POSIX", etc - * - * Generated from protobuf field string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCollation() - { - return $this->collation; - } - - /** - * Optional. Collation for the database. - * Name of the custom or native collation for postgres. - * Example values include "C", "POSIX", etc - * - * Generated from protobuf field string collation = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCollation($var) - { - GPBUtil::checkString($var, True); - $this->collation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DatabaseVersion.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DatabaseVersion.php deleted file mode 100644 index 8bfebc860bb2..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DatabaseVersion.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.alloydb.v1.DatabaseVersion - */ -class DatabaseVersion -{ - /** - * This is an unknown database version. - * - * Generated from protobuf enum DATABASE_VERSION_UNSPECIFIED = 0; - */ - const DATABASE_VERSION_UNSPECIFIED = 0; - /** - * DEPRECATED - The database version is Postgres 13. - * - * Generated from protobuf enum POSTGRES_13 = 1 [deprecated = true]; - */ - const POSTGRES_13 = 1; - /** - * The database version is Postgres 14. - * - * Generated from protobuf enum POSTGRES_14 = 2; - */ - const POSTGRES_14 = 2; - /** - * The database version is Postgres 15. - * - * Generated from protobuf enum POSTGRES_15 = 3; - */ - const POSTGRES_15 = 3; - /** - * The database version is Postgres 16. - * - * Generated from protobuf enum POSTGRES_16 = 4; - */ - const POSTGRES_16 = 4; - - private static $valueToName = [ - self::DATABASE_VERSION_UNSPECIFIED => 'DATABASE_VERSION_UNSPECIFIED', - self::POSTGRES_13 => 'POSTGRES_13', - self::POSTGRES_14 => 'POSTGRES_14', - self::POSTGRES_15 => 'POSTGRES_15', - self::POSTGRES_16 => 'POSTGRES_16', - ]; - - 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteBackupRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteBackupRequest.php deleted file mode 100644 index 7d9e222ccca8..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteBackupRequest.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.alloydb.v1.DeleteBackupRequest - */ -class DeleteBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. For the required format, see the comment on - * the Backup.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. The current etag of the Backup. - * If an etag is provided and does not match the current etag of the Backup, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. Name of the resource. For the required format, see the comment on - * the Backup.name field. Please see - * {@see AlloyDBAdminClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\DeleteBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource. For the required format, see the comment on - * the Backup.name field. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * @type string $etag - * Optional. The current etag of the Backup. - * If an etag is provided and does not match the current etag of the Backup, - * deletion will be blocked and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. For the required format, see the comment on - * the Backup.name field. - * - * 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. Name of the resource. For the required format, see the comment on - * the Backup.name field. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. The current etag of the Backup. - * If an etag is provided and does not match the current etag of the Backup, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The current etag of the Backup. - * If an etag is provided and does not match the current etag of the Backup, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteClusterRequest.php deleted file mode 100644 index a0224fa99fca..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteClusterRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.alloydb.v1.DeleteClusterRequest - */ -class DeleteClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. Whether to cascade delete child instances for given cluster. - * - * Generated from protobuf field bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. Please see - * {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\DeleteClusterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type string $etag - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * @type bool $force - * Optional. Whether to cascade delete child instances for given cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. - * - * 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 resource. For the required format, see the - * comment on the Cluster.name field. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. Whether to cascade delete child instances for given cluster. - * - * Generated from protobuf field bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. Whether to cascade delete child instances for given cluster. - * - * Generated from protobuf field bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteInstanceRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteInstanceRequest.php deleted file mode 100644 index 6b04bdf45b51..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteInstanceRequest.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.alloydb.v1.DeleteInstanceRequest - */ -class DeleteInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The current etag of the Instance. - * If an etag is provided and does not match the current etag of the Instance, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\DeleteInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type string $etag - * Optional. The current etag of the Instance. - * If an etag is provided and does not match the current etag of the Instance, - * deletion will be blocked and an ABORTED error will be returned. - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * 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 resource. For the required format, see the - * comment on the Instance.name field. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The current etag of the Instance. - * If an etag is provided and does not match the current etag of the Instance, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The current etag of the Instance. - * If an etag is provided and does not match the current etag of the Instance, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteUserRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteUserRequest.php deleted file mode 100644 index 92f7de7ab342..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/DeleteUserRequest.php +++ /dev/null @@ -1,198 +0,0 @@ -google.cloud.alloydb.v1.DeleteUserRequest - */ -class DeleteUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the User.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the User.name field. Please see - * {@see AlloyDBAdminClient::userName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\DeleteUserRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the User.name field. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the User.name field. - * - * 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 resource. For the required format, see the - * comment on the User.name field. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionConfig.php deleted file mode 100644 index 20ebb1d0926b..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionConfig.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.alloydb.v1.EncryptionConfig - */ -class EncryptionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The fully-qualified resource name of the KMS key. - * Each Cloud KMS key is regionalized and has the following format: - * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] - * - * Generated from protobuf field string kms_key_name = 1; - */ - protected $kms_key_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_name - * The fully-qualified resource name of the KMS key. - * Each Cloud KMS key is regionalized and has the following format: - * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The fully-qualified resource name of the KMS key. - * Each Cloud KMS key is regionalized and has the following format: - * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] - * - * Generated from protobuf field string kms_key_name = 1; - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * The fully-qualified resource name of the KMS key. - * Each Cloud KMS key is regionalized and has the following format: - * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] - * - * Generated from protobuf field string kms_key_name = 1; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionInfo.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionInfo.php deleted file mode 100644 index c37bade4f198..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionInfo.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.alloydb.v1.EncryptionInfo - */ -class EncryptionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Type of encryption. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_type = 0; - /** - * Output only. Cloud KMS key versions that are being used to protect the - * database or the backup. - * - * Generated from protobuf field repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $kms_key_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $encryption_type - * Output only. Type of encryption. - * @type array|\Google\Protobuf\Internal\RepeatedField $kms_key_versions - * Output only. Cloud KMS key versions that are being used to protect the - * database or the backup. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Type of encryption. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEncryptionType() - { - return $this->encryption_type; - } - - /** - * Output only. Type of encryption. - * - * Generated from protobuf field .google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEncryptionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\EncryptionInfo\Type::class); - $this->encryption_type = $var; - - return $this; - } - - /** - * Output only. Cloud KMS key versions that are being used to protect the - * database or the backup. - * - * Generated from protobuf field repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKmsKeyVersions() - { - return $this->kms_key_versions; - } - - /** - * Output only. Cloud KMS key versions that are being used to protect the - * database or the backup. - * - * Generated from protobuf field repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKmsKeyVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->kms_key_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionInfo/Type.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionInfo/Type.php deleted file mode 100644 index 2c074173d915..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/EncryptionInfo/Type.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.alloydb.v1.EncryptionInfo.Type - */ -class Type -{ - /** - * Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * The data is encrypted at rest with a key that is fully managed by Google. - * No key version will be populated. This is the default state. - * - * Generated from protobuf enum GOOGLE_DEFAULT_ENCRYPTION = 1; - */ - const GOOGLE_DEFAULT_ENCRYPTION = 1; - /** - * The data is encrypted at rest with a key that is managed by the customer. - * KMS key versions will be populated. - * - * Generated from protobuf enum CUSTOMER_MANAGED_ENCRYPTION = 2; - */ - const CUSTOMER_MANAGED_ENCRYPTION = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::GOOGLE_DEFAULT_ENCRYPTION => 'GOOGLE_DEFAULT_ENCRYPTION', - self::CUSTOMER_MANAGED_ENCRYPTION => 'CUSTOMER_MANAGED_ENCRYPTION', - ]; - - 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(Type::class, \Google\Cloud\AlloyDb\V1\EncryptionInfo_Type::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlMetadata.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlMetadata.php deleted file mode 100644 index 7b47cf87ca66..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlMetadata.php +++ /dev/null @@ -1,195 +0,0 @@ -google.cloud.alloydb.v1.ExecuteSqlMetadata - */ -class ExecuteSqlMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Message related to SQL execution. Marked as core content since it - * can potentially contain details related to the query or result set. This - * field can be used to convey messages such as "when the SQL result set - * exceeds the acceptable response size limits." - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * Set to true if SQL returned a result set larger than the acceptable - * response size limits and the result was truncated. - * - * Generated from protobuf field bool partial_result = 2; - */ - protected $partial_result = false; - /** - * The time duration taken to execute the sql statement. - * - * Generated from protobuf field .google.protobuf.Duration sql_statement_execution_duration = 3; - */ - protected $sql_statement_execution_duration = null; - /** - * Status of SQL execution. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Message related to SQL execution. Marked as core content since it - * can potentially contain details related to the query or result set. This - * field can be used to convey messages such as "when the SQL result set - * exceeds the acceptable response size limits." - * @type bool $partial_result - * Set to true if SQL returned a result set larger than the acceptable - * response size limits and the result was truncated. - * @type \Google\Protobuf\Duration $sql_statement_execution_duration - * The time duration taken to execute the sql statement. - * @type int $status - * Status of SQL execution. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Message related to SQL execution. Marked as core content since it - * can potentially contain details related to the query or result set. This - * field can be used to convey messages such as "when the SQL result set - * exceeds the acceptable response size limits." - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Message related to SQL execution. Marked as core content since it - * can potentially contain details related to the query or result set. This - * field can be used to convey messages such as "when the SQL result set - * exceeds the acceptable response size limits." - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Set to true if SQL returned a result set larger than the acceptable - * response size limits and the result was truncated. - * - * Generated from protobuf field bool partial_result = 2; - * @return bool - */ - public function getPartialResult() - { - return $this->partial_result; - } - - /** - * Set to true if SQL returned a result set larger than the acceptable - * response size limits and the result was truncated. - * - * Generated from protobuf field bool partial_result = 2; - * @param bool $var - * @return $this - */ - public function setPartialResult($var) - { - GPBUtil::checkBool($var); - $this->partial_result = $var; - - return $this; - } - - /** - * The time duration taken to execute the sql statement. - * - * Generated from protobuf field .google.protobuf.Duration sql_statement_execution_duration = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getSqlStatementExecutionDuration() - { - return $this->sql_statement_execution_duration; - } - - public function hasSqlStatementExecutionDuration() - { - return isset($this->sql_statement_execution_duration); - } - - public function clearSqlStatementExecutionDuration() - { - unset($this->sql_statement_execution_duration); - } - - /** - * The time duration taken to execute the sql statement. - * - * Generated from protobuf field .google.protobuf.Duration sql_statement_execution_duration = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setSqlStatementExecutionDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->sql_statement_execution_duration = $var; - - return $this; - } - - /** - * Status of SQL execution. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of SQL execution. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ExecuteSqlMetadata.Status status = 4; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\ExecuteSqlMetadata\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlMetadata/Status.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlMetadata/Status.php deleted file mode 100644 index 925805b5fcc6..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlMetadata/Status.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.alloydb.v1.ExecuteSqlMetadata.Status - */ -class Status -{ - /** - * The status is unknown. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * No error during SQL execution i.e. All SQL statements ran to completion. - * The "message" will be empty. - * - * Generated from protobuf enum OK = 1; - */ - const OK = 1; - /** - * Same as OK, except indicates that only partial results were - * returned. The "message" field will contain details on why results were - * truncated. - * - * Generated from protobuf enum PARTIAL = 2; - */ - const PARTIAL = 2; - /** - * Error during SQL execution. Atleast 1 SQL statement execution resulted in - * a error. Side effects of other statements are rolled back. The "message" - * field will contain human readable error given by Postgres of the first - * bad SQL statement. SQL execution errors don't constitute API errors as - * defined in https://google.aip.dev/193 but will be returned as part of - * this message. - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::OK => 'OK', - self::PARTIAL => 'PARTIAL', - self::ERROR => 'ERROR', - ]; - - 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(Status::class, \Google\Cloud\AlloyDb\V1\ExecuteSqlMetadata_Status::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlRequest.php deleted file mode 100644 index 55f92039e662..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlRequest.php +++ /dev/null @@ -1,263 +0,0 @@ -google.cloud.alloydb.v1.ExecuteSqlRequest - */ -class ExecuteSqlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The instance where the SQL will be executed. For the required - * format, see the comment on the Instance.name field. - * - * Generated from protobuf field string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $instance = ''; - /** - * Required. Name of the database where the query will be executed. - * Note - Value provided should be the same as expected from `SELECT - * current_database();` and NOT as a resource reference. - * - * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database = ''; - /** - * Required. Database user to be used for executing the SQL. - * Note - Value provided should be the same as expected from - * `SELECT current_user;` and NOT as a resource reference. - * - * Generated from protobuf field string user = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user = ''; - /** - * Required. SQL statement to execute on database. Any valid statement is - * permitted, including DDL, DML, DQL statements. - * - * Generated from protobuf field string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $sql_statement = ''; - protected $user_credential; - - /** - * @param string $instance Required. The instance where the SQL will be executed. For the required - * format, see the comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::instanceName()} for help formatting this field. - * @param string $database Required. Name of the database where the query will be executed. - * Note - Value provided should be the same as expected from `SELECT - * current_database();` and NOT as a resource reference. - * @param string $user Required. Database user to be used for executing the SQL. - * Note - Value provided should be the same as expected from - * `SELECT current_user;` and NOT as a resource reference. - * @param string $sqlStatement Required. SQL statement to execute on database. Any valid statement is - * permitted, including DDL, DML, DQL statements. - * @param string $password Optional. The database native user’s password. - * - * @return \Google\Cloud\AlloyDb\V1\ExecuteSqlRequest - * - * @experimental - */ - public static function build(string $instance, string $database, string $user, string $sqlStatement, string $password): self - { - return (new self()) - ->setInstance($instance) - ->setDatabase($database) - ->setUser($user) - ->setSqlStatement($sqlStatement) - ->setPassword($password); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $password - * Optional. The database native user’s password. - * @type string $instance - * Required. The instance where the SQL will be executed. For the required - * format, see the comment on the Instance.name field. - * @type string $database - * Required. Name of the database where the query will be executed. - * Note - Value provided should be the same as expected from `SELECT - * current_database();` and NOT as a resource reference. - * @type string $user - * Required. Database user to be used for executing the SQL. - * Note - Value provided should be the same as expected from - * `SELECT current_user;` and NOT as a resource reference. - * @type string $sql_statement - * Required. SQL statement to execute on database. Any valid statement is - * permitted, including DDL, DML, DQL statements. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The database native user’s password. - * - * Generated from protobuf field string password = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPassword() - { - return $this->readOneof(5); - } - - public function hasPassword() - { - return $this->hasOneof(5); - } - - /** - * Optional. The database native user’s password. - * - * Generated from protobuf field string password = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPassword($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Required. The instance where the SQL will be executed. For the required - * format, see the comment on the Instance.name field. - * - * Generated from protobuf field string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getInstance() - { - return $this->instance; - } - - /** - * Required. The instance where the SQL will be executed. For the required - * format, see the comment on the Instance.name field. - * - * Generated from protobuf field string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkString($var, True); - $this->instance = $var; - - return $this; - } - - /** - * Required. Name of the database where the query will be executed. - * Note - Value provided should be the same as expected from `SELECT - * current_database();` and NOT as a resource reference. - * - * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Required. Name of the database where the query will be executed. - * Note - Value provided should be the same as expected from `SELECT - * current_database();` and NOT as a resource reference. - * - * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * Required. Database user to be used for executing the SQL. - * Note - Value provided should be the same as expected from - * `SELECT current_user;` and NOT as a resource reference. - * - * Generated from protobuf field string user = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUser() - { - return $this->user; - } - - /** - * Required. Database user to be used for executing the SQL. - * Note - Value provided should be the same as expected from - * `SELECT current_user;` and NOT as a resource reference. - * - * Generated from protobuf field string user = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->user = $var; - - return $this; - } - - /** - * Required. SQL statement to execute on database. Any valid statement is - * permitted, including DDL, DML, DQL statements. - * - * Generated from protobuf field string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSqlStatement() - { - return $this->sql_statement; - } - - /** - * Required. SQL statement to execute on database. Any valid statement is - * permitted, including DDL, DML, DQL statements. - * - * Generated from protobuf field string sql_statement = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSqlStatement($var) - { - GPBUtil::checkString($var, True); - $this->sql_statement = $var; - - return $this; - } - - /** - * @return string - */ - public function getUserCredential() - { - return $this->whichOneof("user_credential"); - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlResponse.php deleted file mode 100644 index 3e192ce9f60f..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ExecuteSqlResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.alloydb.v1.ExecuteSqlResponse - */ -class ExecuteSqlResponse extends \Google\Protobuf\Internal\Message -{ - /** - * SqlResult represents the results for the execution of sql statements. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; - */ - private $sql_results; - /** - * Any additional metadata information regarding the execution of the sql - * statement. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; - */ - protected $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\SqlResult>|\Google\Protobuf\Internal\RepeatedField $sql_results - * SqlResult represents the results for the execution of sql statements. - * @type \Google\Cloud\AlloyDb\V1\ExecuteSqlMetadata $metadata - * Any additional metadata information regarding the execution of the sql - * statement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * SqlResult represents the results for the execution of sql statements. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSqlResults() - { - return $this->sql_results; - } - - /** - * SqlResult represents the results for the execution of sql statements. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResult sql_results = 1; - * @param array<\Google\Cloud\AlloyDb\V1\SqlResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSqlResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\SqlResult::class); - $this->sql_results = $arr; - - return $this; - } - - /** - * Any additional metadata information regarding the execution of the sql - * statement. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; - * @return \Google\Cloud\AlloyDb\V1\ExecuteSqlMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Any additional metadata information regarding the execution of the sql - * statement. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ExecuteSqlMetadata metadata = 3; - * @param \Google\Cloud\AlloyDb\V1\ExecuteSqlMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\ExecuteSqlMetadata::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/FailoverInstanceRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/FailoverInstanceRequest.php deleted file mode 100644 index 8aa80e2d0244..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/FailoverInstanceRequest.php +++ /dev/null @@ -1,202 +0,0 @@ -google.cloud.alloydb.v1.FailoverInstanceRequest - */ -class FailoverInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\FailoverInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * 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 resource. For the required format, see the - * comment on the Instance.name field. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GenerateClientCertificateRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GenerateClientCertificateRequest.php deleted file mode 100644 index 2b1570826e21..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GenerateClientCertificateRequest.php +++ /dev/null @@ -1,297 +0,0 @@ -google.cloud.alloydb.v1.GenerateClientCertificateRequest - */ -class GenerateClientCertificateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location}/clusters/{cluster} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. An optional hint to the endpoint to generate the client - * certificate with the requested duration. The duration can be from 1 hour to - * 24 hours. The endpoint may or may not honor the hint. If the hint is left - * unspecified or is not honored, then the endpoint will pick an appropriate - * default duration. - * - * Generated from protobuf field .google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cert_duration = null; - /** - * Optional. The public key from the client. - * - * Generated from protobuf field string public_key = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $public_key = ''; - /** - * Optional. An optional hint to the endpoint to generate a client - * ceritificate that can be used by AlloyDB connectors to exchange additional - * metadata with the server after TLS handshake. - * - * Generated from protobuf field bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $use_metadata_exchange = false; - - /** - * @param string $parent Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location}/clusters/{cluster} - * Please see {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\GenerateClientCertificateRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location}/clusters/{cluster} - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type \Google\Protobuf\Duration $cert_duration - * Optional. An optional hint to the endpoint to generate the client - * certificate with the requested duration. The duration can be from 1 hour to - * 24 hours. The endpoint may or may not honor the hint. If the hint is left - * unspecified or is not honored, then the endpoint will pick an appropriate - * default duration. - * @type string $public_key - * Optional. The public key from the client. - * @type bool $use_metadata_exchange - * Optional. An optional hint to the endpoint to generate a client - * ceritificate that can be used by AlloyDB connectors to exchange additional - * metadata with the server after TLS handshake. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location}/clusters/{cluster} - * - * 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 resource. The required format is: - * * projects/{project}/locations/{location}/clusters/{cluster} - * - * 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. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. An optional hint to the endpoint to generate the client - * certificate with the requested duration. The duration can be from 1 hour to - * 24 hours. The endpoint may or may not honor the hint. If the hint is left - * unspecified or is not honored, then the endpoint will pick an appropriate - * default duration. - * - * Generated from protobuf field .google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getCertDuration() - { - return $this->cert_duration; - } - - public function hasCertDuration() - { - return isset($this->cert_duration); - } - - public function clearCertDuration() - { - unset($this->cert_duration); - } - - /** - * Optional. An optional hint to the endpoint to generate the client - * certificate with the requested duration. The duration can be from 1 hour to - * 24 hours. The endpoint may or may not honor the hint. If the hint is left - * unspecified or is not honored, then the endpoint will pick an appropriate - * default duration. - * - * Generated from protobuf field .google.protobuf.Duration cert_duration = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setCertDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->cert_duration = $var; - - return $this; - } - - /** - * Optional. The public key from the client. - * - * Generated from protobuf field string public_key = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPublicKey() - { - return $this->public_key; - } - - /** - * Optional. The public key from the client. - * - * Generated from protobuf field string public_key = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPublicKey($var) - { - GPBUtil::checkString($var, True); - $this->public_key = $var; - - return $this; - } - - /** - * Optional. An optional hint to the endpoint to generate a client - * ceritificate that can be used by AlloyDB connectors to exchange additional - * metadata with the server after TLS handshake. - * - * Generated from protobuf field bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getUseMetadataExchange() - { - return $this->use_metadata_exchange; - } - - /** - * Optional. An optional hint to the endpoint to generate a client - * ceritificate that can be used by AlloyDB connectors to exchange additional - * metadata with the server after TLS handshake. - * - * Generated from protobuf field bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setUseMetadataExchange($var) - { - GPBUtil::checkBool($var); - $this->use_metadata_exchange = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GenerateClientCertificateResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GenerateClientCertificateResponse.php deleted file mode 100644 index b2917171c894..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GenerateClientCertificateResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.alloydb.v1.GenerateClientCertificateResponse - */ -class GenerateClientCertificateResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The pem-encoded chain that may be used to verify the X.509 - * certificate. Expected to be in issuer-to-root order according to RFC 5246. - * - * Generated from protobuf field repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $pem_certificate_chain; - /** - * Optional. The pem-encoded cluster ca X.509 certificate. - * - * Generated from protobuf field string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ca_cert = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $pem_certificate_chain - * Output only. The pem-encoded chain that may be used to verify the X.509 - * certificate. Expected to be in issuer-to-root order according to RFC 5246. - * @type string $ca_cert - * Optional. The pem-encoded cluster ca X.509 certificate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The pem-encoded chain that may be used to verify the X.509 - * certificate. Expected to be in issuer-to-root order according to RFC 5246. - * - * Generated from protobuf field repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPemCertificateChain() - { - return $this->pem_certificate_chain; - } - - /** - * Output only. The pem-encoded chain that may be used to verify the X.509 - * certificate. Expected to be in issuer-to-root order according to RFC 5246. - * - * Generated from protobuf field repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPemCertificateChain($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pem_certificate_chain = $arr; - - return $this; - } - - /** - * Optional. The pem-encoded cluster ca X.509 certificate. - * - * Generated from protobuf field string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCaCert() - { - return $this->ca_cert; - } - - /** - * Optional. The pem-encoded cluster ca X.509 certificate. - * - * Generated from protobuf field string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCaCert($var) - { - GPBUtil::checkString($var, True); - $this->ca_cert = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetBackupRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetBackupRequest.php deleted file mode 100644 index 7a24badd0c55..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetBackupRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.alloydb.v1.GetBackupRequest - */ -class GetBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see AlloyDBAdminClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\GetBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * 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. Name of the resource - * - * 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetClusterRequest.php deleted file mode 100644 index 5f78a0d47d32..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetClusterRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.alloydb.v1.GetClusterRequest - */ -class GetClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The view of the cluster to return. Returns all default fields if - * not set. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ClusterView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. Please see - * {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\GetClusterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. - * @type int $view - * Optional. The view of the cluster to return. Returns all default fields if - * not set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field. - * - * 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 resource. For the required format, see the - * comment on the Cluster.name field. - * - * 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; - } - - /** - * Optional. The view of the cluster to return. Returns all default fields if - * not set. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ClusterView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. The view of the cluster to return. Returns all default fields if - * not set. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ClusterView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\ClusterView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetConnectionInfoRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetConnectionInfoRequest.php deleted file mode 100644 index 20b558bedf58..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetConnectionInfoRequest.php +++ /dev/null @@ -1,160 +0,0 @@ -google.cloud.alloydb.v1.GetConnectionInfoRequest - */ -class GetConnectionInfoRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. The required format is: - * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The name of the parent resource. The required format is: - * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} - * Please see {@see AlloyDBAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\GetConnectionInfoRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. The required format is: - * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. The required format is: - * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} - * - * 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 resource. The required format is: - * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} - * - * 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. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetInstanceRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetInstanceRequest.php deleted file mode 100644 index 3bcba9f5011c..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetInstanceRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.alloydb.v1.GetInstanceRequest - */ -class GetInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The view of the instance to return. - * - * Generated from protobuf field .google.cloud.alloydb.v1.InstanceView view = 2; - */ - protected $view = 0; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\GetInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * @type int $view - * The view of the instance to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * 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 resource. For the required format, see the - * comment on the Instance.name field. - * - * 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; - } - - /** - * The view of the instance to return. - * - * Generated from protobuf field .google.cloud.alloydb.v1.InstanceView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view of the instance to return. - * - * Generated from protobuf field .google.cloud.alloydb.v1.InstanceView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\InstanceView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetUserRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetUserRequest.php deleted file mode 100644 index 64a3c00cc2c8..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/GetUserRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.alloydb.v1.GetUserRequest - */ -class GetUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the User.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the User.name field. Please see - * {@see AlloyDBAdminClient::userName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\GetUserRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the User.name field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the User.name field. - * - * 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 resource. For the required format, see the - * comment on the User.name field. - * - * 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InjectFaultRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InjectFaultRequest.php deleted file mode 100644 index 49bb9a450557..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InjectFaultRequest.php +++ /dev/null @@ -1,239 +0,0 @@ -google.cloud.alloydb.v1.InjectFaultRequest - */ -class InjectFaultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The type of fault to be injected in an instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.InjectFaultRequest.FaultType fault_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $fault_type = 0; - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param int $faultType Required. The type of fault to be injected in an instance. - * For allowed values, use constants defined on {@see \Google\Cloud\AlloyDb\V1\InjectFaultRequest\FaultType} - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\InjectFaultRequest - * - * @experimental - */ - public static function build(int $faultType, string $name): self - { - return (new self()) - ->setFaultType($faultType) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $fault_type - * Required. The type of fault to be injected in an instance. - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The type of fault to be injected in an instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.InjectFaultRequest.FaultType fault_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getFaultType() - { - return $this->fault_type; - } - - /** - * Required. The type of fault to be injected in an instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.InjectFaultRequest.FaultType fault_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setFaultType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\InjectFaultRequest\FaultType::class); - $this->fault_type = $var; - - return $this; - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string name = 2 [(.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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InjectFaultRequest/FaultType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InjectFaultRequest/FaultType.php deleted file mode 100644 index ecb8d20a8d57..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InjectFaultRequest/FaultType.php +++ /dev/null @@ -1,58 +0,0 @@ -google.cloud.alloydb.v1.InjectFaultRequest.FaultType - */ -class FaultType -{ - /** - * The fault type is unknown. - * - * Generated from protobuf enum FAULT_TYPE_UNSPECIFIED = 0; - */ - const FAULT_TYPE_UNSPECIFIED = 0; - /** - * Stop the VM - * - * Generated from protobuf enum STOP_VM = 1; - */ - const STOP_VM = 1; - - private static $valueToName = [ - self::FAULT_TYPE_UNSPECIFIED => 'FAULT_TYPE_UNSPECIFIED', - self::STOP_VM => 'STOP_VM', - ]; - - 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(FaultType::class, \Google\Cloud\AlloyDb\V1\InjectFaultRequest_FaultType::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance.php deleted file mode 100644 index 85eeb7dbcba6..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance.php +++ /dev/null @@ -1,1228 +0,0 @@ -google.cloud.alloydb.v1.Instance - */ -class Instance extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the instance resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} - * where the cluster and instance ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the instance resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * User-settable and human-readable display name for the Instance. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. Create time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Update time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 7; - */ - private $labels; - /** - * Output only. The current serving state of the instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Required. The type of the instance. Specified at creation time. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_type = 0; - /** - * Configurations for the machines that host the underlying - * database engine. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - */ - protected $machine_config = null; - /** - * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - */ - protected $availability_type = 0; - /** - * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. - * - * Generated from protobuf field string gce_zone = 12; - */ - protected $gce_zone = ''; - /** - * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. - * - * Generated from protobuf field map database_flags = 13; - */ - private $database_flags; - /** - * Output only. This is set for the read-write VM of the PRIMARY instance - * only. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $writable_node = null; - /** - * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $nodes; - /** - * Configuration for query insights. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - */ - protected $query_insights_config = null; - /** - * Read pool instance configuration. - * This is required if the value of instanceType is READ_POOL. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - */ - protected $read_pool_config = null; - /** - * Output only. The IP address for the Instance. - * This is the connection endpoint for an end-user application. - * - * Generated from protobuf field string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ip_address = ''; - /** - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * - * Generated from protobuf field string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $public_ip_address = ''; - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Instance does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * - * Generated from protobuf field bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 17; - */ - protected $etag = ''; - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 18; - */ - private $annotations; - /** - * Optional. Client connection specific configurations - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $client_connection_config = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - /** - * Optional. The configuration for Private Service Connect (PSC) for the - * instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $psc_instance_config = null; - /** - * Optional. Instance-level network configuration. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network_config = null; - /** - * Output only. All outbound public IP addresses configured for the instance. - * - * Generated from protobuf field repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - private $outbound_public_ip_addresses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the instance resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} - * where the cluster and instance ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the instance resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * @type string $display_name - * User-settable and human-readable display name for the Instance. - * @type string $uid - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time stamp - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Update time stamp - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. Delete time stamp - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels as key value pairs - * @type int $state - * Output only. The current serving state of the instance. - * @type int $instance_type - * Required. The type of the instance. Specified at creation time. - * @type \Google\Cloud\AlloyDb\V1\Instance\MachineConfig $machine_config - * Configurations for the machines that host the underlying - * database engine. - * @type int $availability_type - * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - * @type string $gce_zone - * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. - * @type array|\Google\Protobuf\Internal\MapField $database_flags - * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. - * @type \Google\Cloud\AlloyDb\V1\Instance\Node $writable_node - * Output only. This is set for the read-write VM of the PRIMARY instance - * only. - * @type array<\Google\Cloud\AlloyDb\V1\Instance\Node>|\Google\Protobuf\Internal\RepeatedField $nodes - * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. - * @type \Google\Cloud\AlloyDb\V1\Instance\QueryInsightsInstanceConfig $query_insights_config - * Configuration for query insights. - * @type \Google\Cloud\AlloyDb\V1\Instance\ReadPoolConfig $read_pool_config - * Read pool instance configuration. - * This is required if the value of instanceType is READ_POOL. - * @type string $ip_address - * Output only. The IP address for the Instance. - * This is the connection endpoint for an end-user application. - * @type string $public_ip_address - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * @type bool $reconciling - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Instance does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * @type string $etag - * For Resource freshness validation (https://google.aip.dev/154) - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * @type \Google\Cloud\AlloyDb\V1\Instance\ClientConnectionConfig $client_connection_config - * Optional. Client connection specific configurations - * @type bool $satisfies_pzs - * Output only. Reserved for future use. - * @type \Google\Cloud\AlloyDb\V1\Instance\PscInstanceConfig $psc_instance_config - * Optional. The configuration for Private Service Connect (PSC) for the - * instance. - * @type \Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig $network_config - * Optional. Instance-level network configuration. - * @type array|\Google\Protobuf\Internal\RepeatedField $outbound_public_ip_addresses - * Output only. All outbound public IP addresses configured for the instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the instance resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} - * where the cluster and instance ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the instance resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region}/clusters/{cluster_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the instance resource with the format: - * * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} - * where the cluster and instance ID segments should satisfy the regex - * expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of - * lowercase letters, numbers, and dashes, starting with a letter, and ending - * with a letter or number. For more details see https://google.aip.dev/122. - * The prefix of the instance resource name is the name of the parent - * resource: - * * projects/{project}/locations/{region}/clusters/{cluster_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; - } - - /** - * User-settable and human-readable display name for the Instance. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User-settable and human-readable display name for the Instance. - * - * 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; - } - - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The system-generated UID of the resource. The UID is assigned - * when the resource is created, and it is retained until it is deleted. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. Create time stamp - * - * 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. Create time stamp - * - * 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. Update time stamp - * - * 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. Update time stamp - * - * 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; - } - - /** - * Output only. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 6 [(.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. Delete time stamp - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 6 [(.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; - } - - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels as key value pairs - * - * Generated from protobuf field map labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The current serving state of the instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current serving state of the instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Instance\State::class); - $this->state = $var; - - return $this; - } - - /** - * Required. The type of the instance. Specified at creation time. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getInstanceType() - { - return $this->instance_type; - } - - /** - * Required. The type of the instance. Specified at creation time. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setInstanceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Instance\InstanceType::class); - $this->instance_type = $var; - - return $this; - } - - /** - * Configurations for the machines that host the underlying - * database engine. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - * @return \Google\Cloud\AlloyDb\V1\Instance\MachineConfig|null - */ - public function getMachineConfig() - { - return $this->machine_config; - } - - public function hasMachineConfig() - { - return isset($this->machine_config); - } - - public function clearMachineConfig() - { - unset($this->machine_config); - } - - /** - * Configurations for the machines that host the underlying - * database engine. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.MachineConfig machine_config = 10; - * @param \Google\Cloud\AlloyDb\V1\Instance\MachineConfig $var - * @return $this - */ - public function setMachineConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance\MachineConfig::class); - $this->machine_config = $var; - - return $this; - } - - /** - * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * @return int - */ - public function getAvailabilityType() - { - return $this->availability_type; - } - - /** - * Availability type of an Instance. - * If empty, defaults to REGIONAL for primary instances. - * For read pools, availability_type is always UNSPECIFIED. Instances in the - * read pools are evenly distributed across available zones within the region - * (i.e. read pools with more than one node will have a node in at - * least two zones). - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.AvailabilityType availability_type = 11; - * @param int $var - * @return $this - */ - public function setAvailabilityType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\Instance\AvailabilityType::class); - $this->availability_type = $var; - - return $this; - } - - /** - * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. - * - * Generated from protobuf field string gce_zone = 12; - * @return string - */ - public function getGceZone() - { - return $this->gce_zone; - } - - /** - * The Compute Engine zone that the instance should serve from, per - * https://cloud.google.com/compute/docs/regions-zones - * This can ONLY be specified for ZONAL instances. - * If present for a REGIONAL instance, an error will be thrown. - * If this is absent for a ZONAL instance, instance is created in a random - * zone with available capacity. - * - * Generated from protobuf field string gce_zone = 12; - * @param string $var - * @return $this - */ - public function setGceZone($var) - { - GPBUtil::checkString($var, True); - $this->gce_zone = $var; - - return $this; - } - - /** - * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. - * - * Generated from protobuf field map database_flags = 13; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDatabaseFlags() - { - return $this->database_flags; - } - - /** - * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. - * This is a list of "key": "value" pairs. - * "key": The name of the flag. These flags are passed at instance setup time, - * so include both server options and system variables for Postgres. Flags are - * specified with underscores, not hyphens. - * "value": The value of the flag. Booleans are set to **on** for true - * and **off** for false. This field must be omitted if the flag - * doesn't take a value. - * - * Generated from protobuf field map database_flags = 13; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDatabaseFlags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->database_flags = $arr; - - return $this; - } - - /** - * Output only. This is set for the read-write VM of the PRIMARY instance - * only. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\Instance\Node|null - */ - public function getWritableNode() - { - return $this->writable_node; - } - - public function hasWritableNode() - { - return isset($this->writable_node); - } - - public function clearWritableNode() - { - unset($this->writable_node); - } - - /** - * Output only. This is set for the read-write VM of the PRIMARY instance - * only. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.Node writable_node = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\Instance\Node $var - * @return $this - */ - public function setWritableNode($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance\Node::class); - $this->writable_node = $var; - - return $this; - } - - /** - * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodes() - { - return $this->nodes; - } - - /** - * Output only. List of available read-only VMs in this instance, including - * the standby for a PRIMARY instance. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance.Node nodes = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\AlloyDb\V1\Instance\Node>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\Instance\Node::class); - $this->nodes = $arr; - - return $this; - } - - /** - * Configuration for query insights. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * @return \Google\Cloud\AlloyDb\V1\Instance\QueryInsightsInstanceConfig|null - */ - public function getQueryInsightsConfig() - { - return $this->query_insights_config; - } - - public function hasQueryInsightsConfig() - { - return isset($this->query_insights_config); - } - - public function clearQueryInsightsConfig() - { - unset($this->query_insights_config); - } - - /** - * Configuration for query insights. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig query_insights_config = 21; - * @param \Google\Cloud\AlloyDb\V1\Instance\QueryInsightsInstanceConfig $var - * @return $this - */ - public function setQueryInsightsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance\QueryInsightsInstanceConfig::class); - $this->query_insights_config = $var; - - return $this; - } - - /** - * Read pool instance configuration. - * This is required if the value of instanceType is READ_POOL. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - * @return \Google\Cloud\AlloyDb\V1\Instance\ReadPoolConfig|null - */ - public function getReadPoolConfig() - { - return $this->read_pool_config; - } - - public function hasReadPoolConfig() - { - return isset($this->read_pool_config); - } - - public function clearReadPoolConfig() - { - unset($this->read_pool_config); - } - - /** - * Read pool instance configuration. - * This is required if the value of instanceType is READ_POOL. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; - * @param \Google\Cloud\AlloyDb\V1\Instance\ReadPoolConfig $var - * @return $this - */ - public function setReadPoolConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance\ReadPoolConfig::class); - $this->read_pool_config = $var; - - return $this; - } - - /** - * Output only. The IP address for the Instance. - * This is the connection endpoint for an end-user application. - * - * Generated from protobuf field string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * Output only. The IP address for the Instance. - * This is the connection endpoint for an end-user application. - * - * Generated from protobuf field string ip_address = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * - * Generated from protobuf field string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getPublicIpAddress() - { - return $this->public_ip_address; - } - - /** - * Output only. The public IP addresses for the Instance. This is available - * ONLY when enable_public_ip is set. This is the connection endpoint for an - * end-user application. - * - * Generated from protobuf field string public_ip_address = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setPublicIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->public_ip_address = $var; - - return $this; - } - - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Instance does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * - * Generated from protobuf field bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. Reconciling (https://google.aip.dev/128#reconciliation). - * Set to true if the current state of Instance does not match the user's - * intended state, and the service is actively updating the resource to - * reconcile them. This can happen due to user-triggered updates or - * system actions like failover or maintenance. - * - * Generated from protobuf field bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 17; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * For Resource freshness validation (https://google.aip.dev/154) - * - * Generated from protobuf field string etag = 17; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 18; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations to allow client tools to store small amount of arbitrary data. - * This is distinct from labels. - * https://google.aip.dev/128 - * - * Generated from protobuf field map annotations = 18; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Client connection specific configurations - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\Instance\ClientConnectionConfig|null - */ - public function getClientConnectionConfig() - { - return $this->client_connection_config; - } - - public function hasClientConnectionConfig() - { - return isset($this->client_connection_config); - } - - public function clearClientConnectionConfig() - { - unset($this->client_connection_config); - } - - /** - * Optional. Client connection specific configurations - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ClientConnectionConfig client_connection_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\Instance\ClientConnectionConfig $var - * @return $this - */ - public function setClientConnectionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance\ClientConnectionConfig::class); - $this->client_connection_config = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Optional. The configuration for Private Service Connect (PSC) for the - * instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\Instance\PscInstanceConfig|null - */ - public function getPscInstanceConfig() - { - return $this->psc_instance_config; - } - - public function hasPscInstanceConfig() - { - return isset($this->psc_instance_config); - } - - public function clearPscInstanceConfig() - { - unset($this->psc_instance_config); - } - - /** - * Optional. The configuration for Private Service Connect (PSC) for the - * instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.PscInstanceConfig psc_instance_config = 28 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\Instance\PscInstanceConfig $var - * @return $this - */ - public function setPscInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance\PscInstanceConfig::class); - $this->psc_instance_config = $var; - - return $this; - } - - /** - * Optional. Instance-level network configuration. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Optional. Instance-level network configuration. - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig network_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * Output only. All outbound public IP addresses configured for the instance. - * - * Generated from protobuf field repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOutboundPublicIpAddresses() - { - return $this->outbound_public_ip_addresses; - } - - /** - * Output only. All outbound public IP addresses configured for the instance. - * - * Generated from protobuf field repeated string outbound_public_ip_addresses = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOutboundPublicIpAddresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->outbound_public_ip_addresses = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/AvailabilityType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/AvailabilityType.php deleted file mode 100644 index 22736beb9ab1..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/AvailabilityType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.alloydb.v1.Instance.AvailabilityType - */ -class AvailabilityType -{ - /** - * This is an unknown Availability type. - * - * Generated from protobuf enum AVAILABILITY_TYPE_UNSPECIFIED = 0; - */ - const AVAILABILITY_TYPE_UNSPECIFIED = 0; - /** - * Zonal available instance. - * - * Generated from protobuf enum ZONAL = 1; - */ - const ZONAL = 1; - /** - * Regional (or Highly) available instance. - * - * Generated from protobuf enum REGIONAL = 2; - */ - const REGIONAL = 2; - - private static $valueToName = [ - self::AVAILABILITY_TYPE_UNSPECIFIED => 'AVAILABILITY_TYPE_UNSPECIFIED', - self::ZONAL => 'ZONAL', - self::REGIONAL => 'REGIONAL', - ]; - - 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(AvailabilityType::class, \Google\Cloud\AlloyDb\V1\Instance_AvailabilityType::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/ClientConnectionConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/ClientConnectionConfig.php deleted file mode 100644 index c6db3773b09d..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/ClientConnectionConfig.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.alloydb.v1.Instance.ClientConnectionConfig - */ -class ClientConnectionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Configuration to enforce connectors only (ex: AuthProxy) - * connections to the database. - * - * Generated from protobuf field bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $require_connectors = false; - /** - * Optional. SSL configuration option for this instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssl_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $require_connectors - * Optional. Configuration to enforce connectors only (ex: AuthProxy) - * connections to the database. - * @type \Google\Cloud\AlloyDb\V1\SslConfig $ssl_config - * Optional. SSL configuration option for this instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Configuration to enforce connectors only (ex: AuthProxy) - * connections to the database. - * - * Generated from protobuf field bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getRequireConnectors() - { - return $this->require_connectors; - } - - /** - * Optional. Configuration to enforce connectors only (ex: AuthProxy) - * connections to the database. - * - * Generated from protobuf field bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setRequireConnectors($var) - { - GPBUtil::checkBool($var); - $this->require_connectors = $var; - - return $this; - } - - /** - * Optional. SSL configuration option for this instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AlloyDb\V1\SslConfig|null - */ - public function getSslConfig() - { - return $this->ssl_config; - } - - public function hasSslConfig() - { - return isset($this->ssl_config); - } - - public function clearSslConfig() - { - unset($this->ssl_config); - } - - /** - * Optional. SSL configuration option for this instance. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AlloyDb\V1\SslConfig $var - * @return $this - */ - public function setSslConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\SslConfig::class); - $this->ssl_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ClientConnectionConfig::class, \Google\Cloud\AlloyDb\V1\Instance_ClientConnectionConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceNetworkConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceNetworkConfig.php deleted file mode 100644 index a99ac41958d9..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceNetworkConfig.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.alloydb.v1.Instance.InstanceNetworkConfig - */ -class InstanceNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A list of external network authorized to access this instance. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $authorized_external_networks; - /** - * Optional. Enabling public ip for the instance. - * - * Generated from protobuf field bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_public_ip = false; - /** - * Optional. Enabling an outbound public IP address to support a database - * server sending requests out into the internet. - * - * Generated from protobuf field bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_outbound_public_ip = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig\AuthorizedNetwork>|\Google\Protobuf\Internal\RepeatedField $authorized_external_networks - * Optional. A list of external network authorized to access this instance. - * @type bool $enable_public_ip - * Optional. Enabling public ip for the instance. - * @type bool $enable_outbound_public_ip - * Optional. Enabling an outbound public IP address to support a database - * server sending requests out into the internet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A list of external network authorized to access this instance. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAuthorizedExternalNetworks() - { - return $this->authorized_external_networks; - } - - /** - * Optional. A list of external network authorized to access this instance. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig\AuthorizedNetwork>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAuthorizedExternalNetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig\AuthorizedNetwork::class); - $this->authorized_external_networks = $arr; - - return $this; - } - - /** - * Optional. Enabling public ip for the instance. - * - * Generated from protobuf field bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnablePublicIp() - { - return $this->enable_public_ip; - } - - /** - * Optional. Enabling public ip for the instance. - * - * Generated from protobuf field bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnablePublicIp($var) - { - GPBUtil::checkBool($var); - $this->enable_public_ip = $var; - - return $this; - } - - /** - * Optional. Enabling an outbound public IP address to support a database - * server sending requests out into the internet. - * - * Generated from protobuf field bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableOutboundPublicIp() - { - return $this->enable_outbound_public_ip; - } - - /** - * Optional. Enabling an outbound public IP address to support a database - * server sending requests out into the internet. - * - * Generated from protobuf field bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableOutboundPublicIp($var) - { - GPBUtil::checkBool($var); - $this->enable_outbound_public_ip = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InstanceNetworkConfig::class, \Google\Cloud\AlloyDb\V1\Instance_InstanceNetworkConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceNetworkConfig/AuthorizedNetwork.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceNetworkConfig/AuthorizedNetwork.php deleted file mode 100644 index 51e0074f95df..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceNetworkConfig/AuthorizedNetwork.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork - */ -class AuthorizedNetwork extends \Google\Protobuf\Internal\Message -{ - /** - * CIDR range for one authorzied network of the instance. - * - * Generated from protobuf field string cidr_range = 1 [(.google.api.field_info) = { - */ - protected $cidr_range = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cidr_range - * CIDR range for one authorzied network of the instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * CIDR range for one authorzied network of the instance. - * - * Generated from protobuf field string cidr_range = 1 [(.google.api.field_info) = { - * @return string - */ - public function getCidrRange() - { - return $this->cidr_range; - } - - /** - * CIDR range for one authorzied network of the instance. - * - * Generated from protobuf field string cidr_range = 1 [(.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->cidr_range = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AuthorizedNetwork::class, \Google\Cloud\AlloyDb\V1\Instance_InstanceNetworkConfig_AuthorizedNetwork::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceType.php deleted file mode 100644 index 7472c57582ab..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/InstanceType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.alloydb.v1.Instance.InstanceType - */ -class InstanceType -{ - /** - * The type of the instance is unknown. - * - * Generated from protobuf enum INSTANCE_TYPE_UNSPECIFIED = 0; - */ - const INSTANCE_TYPE_UNSPECIFIED = 0; - /** - * PRIMARY instances support read and write operations. - * - * Generated from protobuf enum PRIMARY = 1; - */ - const PRIMARY = 1; - /** - * READ POOL instances support read operations only. Each read pool instance - * consists of one or more homogeneous nodes. - * * Read pool of size 1 can only have zonal availability. - * * Read pools with node count of 2 or more can have regional - * availability (nodes are present in 2 or more zones in a region). - * - * Generated from protobuf enum READ_POOL = 2; - */ - const READ_POOL = 2; - /** - * SECONDARY instances support read operations only. SECONDARY instance - * is a cross-region read replica - * - * Generated from protobuf enum SECONDARY = 3; - */ - const SECONDARY = 3; - - private static $valueToName = [ - self::INSTANCE_TYPE_UNSPECIFIED => 'INSTANCE_TYPE_UNSPECIFIED', - self::PRIMARY => 'PRIMARY', - self::READ_POOL => 'READ_POOL', - self::SECONDARY => 'SECONDARY', - ]; - - 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(InstanceType::class, \Google\Cloud\AlloyDb\V1\Instance_InstanceType::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/MachineConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/MachineConfig.php deleted file mode 100644 index e3be82345b58..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/MachineConfig.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.alloydb.v1.Instance.MachineConfig - */ -class MachineConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The number of CPU's in the VM instance. - * - * Generated from protobuf field int32 cpu_count = 1; - */ - protected $cpu_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cpu_count - * The number of CPU's in the VM instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The number of CPU's in the VM instance. - * - * Generated from protobuf field int32 cpu_count = 1; - * @return int - */ - public function getCpuCount() - { - return $this->cpu_count; - } - - /** - * The number of CPU's in the VM instance. - * - * Generated from protobuf field int32 cpu_count = 1; - * @param int $var - * @return $this - */ - public function setCpuCount($var) - { - GPBUtil::checkInt32($var); - $this->cpu_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MachineConfig::class, \Google\Cloud\AlloyDb\V1\Instance_MachineConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/Node.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/Node.php deleted file mode 100644 index d7adf74942a2..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/Node.php +++ /dev/null @@ -1,186 +0,0 @@ -google.cloud.alloydb.v1.Instance.Node - */ -class Node extends \Google\Protobuf\Internal\Message -{ - /** - * The Compute Engine zone of the VM e.g. "us-central1-b". - * - * Generated from protobuf field string zone_id = 1; - */ - protected $zone_id = ''; - /** - * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * The private IP address of the VM e.g. "10.57.0.34". - * - * Generated from protobuf field string ip = 3; - */ - protected $ip = ''; - /** - * Determined by state of the compute VM and postgres-service health. - * Compute VM state can have values listed in - * https://cloud.google.com/compute/docs/instances/instance-life-cycle and - * postgres-service health can have values: HEALTHY and UNHEALTHY. - * - * Generated from protobuf field string state = 4; - */ - protected $state = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $zone_id - * The Compute Engine zone of the VM e.g. "us-central1-b". - * @type string $id - * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". - * @type string $ip - * The private IP address of the VM e.g. "10.57.0.34". - * @type string $state - * Determined by state of the compute VM and postgres-service health. - * Compute VM state can have values listed in - * https://cloud.google.com/compute/docs/instances/instance-life-cycle and - * postgres-service health can have values: HEALTHY and UNHEALTHY. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The Compute Engine zone of the VM e.g. "us-central1-b". - * - * Generated from protobuf field string zone_id = 1; - * @return string - */ - public function getZoneId() - { - return $this->zone_id; - } - - /** - * The Compute Engine zone of the VM e.g. "us-central1-b". - * - * Generated from protobuf field string zone_id = 1; - * @param string $var - * @return $this - */ - public function setZoneId($var) - { - GPBUtil::checkString($var, True); - $this->zone_id = $var; - - return $this; - } - - /** - * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The private IP address of the VM e.g. "10.57.0.34". - * - * Generated from protobuf field string ip = 3; - * @return string - */ - public function getIp() - { - return $this->ip; - } - - /** - * The private IP address of the VM e.g. "10.57.0.34". - * - * Generated from protobuf field string ip = 3; - * @param string $var - * @return $this - */ - public function setIp($var) - { - GPBUtil::checkString($var, True); - $this->ip = $var; - - return $this; - } - - /** - * Determined by state of the compute VM and postgres-service health. - * Compute VM state can have values listed in - * https://cloud.google.com/compute/docs/instances/instance-life-cycle and - * postgres-service health can have values: HEALTHY and UNHEALTHY. - * - * Generated from protobuf field string state = 4; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Determined by state of the compute VM and postgres-service health. - * Compute VM state can have values listed in - * https://cloud.google.com/compute/docs/instances/instance-life-cycle and - * postgres-service health can have values: HEALTHY and UNHEALTHY. - * - * Generated from protobuf field string state = 4; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Node::class, \Google\Cloud\AlloyDb\V1\Instance_Node::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/PscInstanceConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/PscInstanceConfig.php deleted file mode 100644 index 3be126228733..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/PscInstanceConfig.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.alloydb.v1.Instance.PscInstanceConfig - */ -class PscInstanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The service attachment created when Private - * Service Connect (PSC) is enabled for the instance. - * The name of the resource will be in the format of - * `projects//regions//serviceAttachments/` - * - * Generated from protobuf field string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_attachment_link = ''; - /** - * Optional. List of consumer projects that are allowed to create - * PSC endpoints to service-attachments to this instance. - * - * Generated from protobuf field repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $allowed_consumer_projects; - /** - * Output only. The DNS name of the instance for PSC connectivity. - * Name convention: ...alloydb-psc.goog - * - * Generated from protobuf field string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $psc_dns_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service_attachment_link - * Output only. The service attachment created when Private - * Service Connect (PSC) is enabled for the instance. - * The name of the resource will be in the format of - * `projects//regions//serviceAttachments/` - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_consumer_projects - * Optional. List of consumer projects that are allowed to create - * PSC endpoints to service-attachments to this instance. - * @type string $psc_dns_name - * Output only. The DNS name of the instance for PSC connectivity. - * Name convention: ...alloydb-psc.goog - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The service attachment created when Private - * Service Connect (PSC) is enabled for the instance. - * The name of the resource will be in the format of - * `projects//regions//serviceAttachments/` - * - * Generated from protobuf field string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServiceAttachmentLink() - { - return $this->service_attachment_link; - } - - /** - * Output only. The service attachment created when Private - * Service Connect (PSC) is enabled for the instance. - * The name of the resource will be in the format of - * `projects//regions//serviceAttachments/` - * - * Generated from protobuf field string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServiceAttachmentLink($var) - { - GPBUtil::checkString($var, True); - $this->service_attachment_link = $var; - - return $this; - } - - /** - * Optional. List of consumer projects that are allowed to create - * PSC endpoints to service-attachments to this instance. - * - * Generated from protobuf field repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedConsumerProjects() - { - return $this->allowed_consumer_projects; - } - - /** - * Optional. List of consumer projects that are allowed to create - * PSC endpoints to service-attachments to this instance. - * - * Generated from protobuf field repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedConsumerProjects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_consumer_projects = $arr; - - return $this; - } - - /** - * Output only. The DNS name of the instance for PSC connectivity. - * Name convention: ...alloydb-psc.goog - * - * Generated from protobuf field string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPscDnsName() - { - return $this->psc_dns_name; - } - - /** - * Output only. The DNS name of the instance for PSC connectivity. - * Name convention: ...alloydb-psc.goog - * - * Generated from protobuf field string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPscDnsName($var) - { - GPBUtil::checkString($var, True); - $this->psc_dns_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PscInstanceConfig::class, \Google\Cloud\AlloyDb\V1\Instance_PscInstanceConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/QueryInsightsInstanceConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/QueryInsightsInstanceConfig.php deleted file mode 100644 index 7433b3806a61..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/QueryInsightsInstanceConfig.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig - */ -class QueryInsightsInstanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Record application tags for an instance. - * This flag is turned "on" by default. - * - * Generated from protobuf field optional bool record_application_tags = 2; - */ - protected $record_application_tags = null; - /** - * Record client address for an instance. Client address is PII information. - * This flag is turned "on" by default. - * - * Generated from protobuf field optional bool record_client_address = 3; - */ - protected $record_client_address = null; - /** - * Query string length. The default value is 1024. - * Any integer between 256 and 4500 is considered valid. - * - * Generated from protobuf field uint32 query_string_length = 4; - */ - protected $query_string_length = 0; - /** - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 5. - * Any integer between 0 and 20 is considered valid. - * - * Generated from protobuf field optional uint32 query_plans_per_minute = 5; - */ - protected $query_plans_per_minute = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $record_application_tags - * Record application tags for an instance. - * This flag is turned "on" by default. - * @type bool $record_client_address - * Record client address for an instance. Client address is PII information. - * This flag is turned "on" by default. - * @type int $query_string_length - * Query string length. The default value is 1024. - * Any integer between 256 and 4500 is considered valid. - * @type int $query_plans_per_minute - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 5. - * Any integer between 0 and 20 is considered valid. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Record application tags for an instance. - * This flag is turned "on" by default. - * - * Generated from protobuf field optional bool record_application_tags = 2; - * @return bool - */ - public function getRecordApplicationTags() - { - return isset($this->record_application_tags) ? $this->record_application_tags : false; - } - - public function hasRecordApplicationTags() - { - return isset($this->record_application_tags); - } - - public function clearRecordApplicationTags() - { - unset($this->record_application_tags); - } - - /** - * Record application tags for an instance. - * This flag is turned "on" by default. - * - * Generated from protobuf field optional bool record_application_tags = 2; - * @param bool $var - * @return $this - */ - public function setRecordApplicationTags($var) - { - GPBUtil::checkBool($var); - $this->record_application_tags = $var; - - return $this; - } - - /** - * Record client address for an instance. Client address is PII information. - * This flag is turned "on" by default. - * - * Generated from protobuf field optional bool record_client_address = 3; - * @return bool - */ - public function getRecordClientAddress() - { - return isset($this->record_client_address) ? $this->record_client_address : false; - } - - public function hasRecordClientAddress() - { - return isset($this->record_client_address); - } - - public function clearRecordClientAddress() - { - unset($this->record_client_address); - } - - /** - * Record client address for an instance. Client address is PII information. - * This flag is turned "on" by default. - * - * Generated from protobuf field optional bool record_client_address = 3; - * @param bool $var - * @return $this - */ - public function setRecordClientAddress($var) - { - GPBUtil::checkBool($var); - $this->record_client_address = $var; - - return $this; - } - - /** - * Query string length. The default value is 1024. - * Any integer between 256 and 4500 is considered valid. - * - * Generated from protobuf field uint32 query_string_length = 4; - * @return int - */ - public function getQueryStringLength() - { - return $this->query_string_length; - } - - /** - * Query string length. The default value is 1024. - * Any integer between 256 and 4500 is considered valid. - * - * Generated from protobuf field uint32 query_string_length = 4; - * @param int $var - * @return $this - */ - public function setQueryStringLength($var) - { - GPBUtil::checkUint32($var); - $this->query_string_length = $var; - - return $this; - } - - /** - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 5. - * Any integer between 0 and 20 is considered valid. - * - * Generated from protobuf field optional uint32 query_plans_per_minute = 5; - * @return int - */ - public function getQueryPlansPerMinute() - { - return isset($this->query_plans_per_minute) ? $this->query_plans_per_minute : 0; - } - - public function hasQueryPlansPerMinute() - { - return isset($this->query_plans_per_minute); - } - - public function clearQueryPlansPerMinute() - { - unset($this->query_plans_per_minute); - } - - /** - * Number of query execution plans captured by Insights per minute - * for all queries combined. The default value is 5. - * Any integer between 0 and 20 is considered valid. - * - * Generated from protobuf field optional uint32 query_plans_per_minute = 5; - * @param int $var - * @return $this - */ - public function setQueryPlansPerMinute($var) - { - GPBUtil::checkUint32($var); - $this->query_plans_per_minute = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryInsightsInstanceConfig::class, \Google\Cloud\AlloyDb\V1\Instance_QueryInsightsInstanceConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/ReadPoolConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/ReadPoolConfig.php deleted file mode 100644 index 87145209ae94..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/ReadPoolConfig.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.alloydb.v1.Instance.ReadPoolConfig - */ -class ReadPoolConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Read capacity, i.e. number of nodes in a read pool instance. - * - * Generated from protobuf field int32 node_count = 1; - */ - protected $node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $node_count - * Read capacity, i.e. number of nodes in a read pool instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Read capacity, i.e. number of nodes in a read pool instance. - * - * Generated from protobuf field int32 node_count = 1; - * @return int - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Read capacity, i.e. number of nodes in a read pool instance. - * - * Generated from protobuf field int32 node_count = 1; - * @param int $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->node_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReadPoolConfig::class, \Google\Cloud\AlloyDb\V1\Instance_ReadPoolConfig::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/State.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/State.php deleted file mode 100644 index 5caa9e194e76..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/Instance/State.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.alloydb.v1.Instance.State - */ -class State -{ - /** - * The state of the instance is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The instance is active and running. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * The instance is stopped. Instance name and IP resources are preserved. - * - * Generated from protobuf enum STOPPED = 2; - */ - const STOPPED = 2; - /** - * The instance is being created. - * - * Generated from protobuf enum CREATING = 3; - */ - const CREATING = 3; - /** - * The instance is being deleted. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * The instance is down for maintenance. - * - * Generated from protobuf enum MAINTENANCE = 5; - */ - const MAINTENANCE = 5; - /** - * The creation of the instance failed or a fatal error occurred during - * an operation on the instance. - * Note: Instances in this state would tried to be auto-repaired. And - * Customers should be able to restart, update or delete these instances. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - /** - * Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that - * index unused in case that state also needs to exposed via consumer apis - * in future. - * The instance has been configured to sync data from some other source. - * - * Generated from protobuf enum BOOTSTRAPPING = 8; - */ - const BOOTSTRAPPING = 8; - /** - * The instance is being promoted. - * - * Generated from protobuf enum PROMOTING = 9; - */ - const PROMOTING = 9; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::READY => 'READY', - self::STOPPED => 'STOPPED', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::MAINTENANCE => 'MAINTENANCE', - self::FAILED => 'FAILED', - self::BOOTSTRAPPING => 'BOOTSTRAPPING', - self::PROMOTING => 'PROMOTING', - ]; - - 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(State::class, \Google\Cloud\AlloyDb\V1\Instance_State::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InstanceView.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InstanceView.php deleted file mode 100644 index fca8fc5f03aa..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/InstanceView.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.alloydb.v1.InstanceView - */ -class InstanceView -{ - /** - * INSTANCE_VIEW_UNSPECIFIED Not specified, equivalent to BASIC. - * - * Generated from protobuf enum INSTANCE_VIEW_UNSPECIFIED = 0; - */ - const INSTANCE_VIEW_UNSPECIFIED = 0; - /** - * BASIC server responses for a primary or read instance include all the - * relevant instance details, excluding the details of each node in the - * instance. The default value. - * - * Generated from protobuf enum INSTANCE_VIEW_BASIC = 1; - */ - const INSTANCE_VIEW_BASIC = 1; - /** - * FULL response is equivalent to BASIC for primary instance (for now). - * For read pool instance, this includes details of each node in the pool. - * - * Generated from protobuf enum INSTANCE_VIEW_FULL = 2; - */ - const INSTANCE_VIEW_FULL = 2; - - private static $valueToName = [ - self::INSTANCE_VIEW_UNSPECIFIED => 'INSTANCE_VIEW_UNSPECIFIED', - self::INSTANCE_VIEW_BASIC => 'INSTANCE_VIEW_BASIC', - self::INSTANCE_VIEW_FULL => 'INSTANCE_VIEW_FULL', - ]; - - 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListBackupsRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListBackupsRequest.php deleted file mode 100644 index b1de4aa3797f..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListBackupsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.alloydb.v1.ListBackupsRequest - */ -class ListBackupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListBackupsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListBackupsRequest - * Please see {@see AlloyDBAdminClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\ListBackupsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListBackupsRequest - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Filtering results - * @type string $order_by - * Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListBackupsRequest - * - * 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. Parent value for ListBackupsRequest - * - * 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; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListBackupsResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListBackupsResponse.php deleted file mode 100644 index 0b0021d014b6..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListBackupsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.alloydb.v1.ListBackupsResponse - */ -class ListBackupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Backup - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Backup backups = 1; - */ - private $backups; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $backups - * The list of Backup - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Backup - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Backup backups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackups() - { - return $this->backups; - } - - /** - * The list of Backup - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Backup backups = 1; - * @param array<\Google\Cloud\AlloyDb\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\Backup::class); - $this->backups = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListClustersRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListClustersRequest.php deleted file mode 100644 index d44fb3bfbc6f..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListClustersRequest.php +++ /dev/null @@ -1,236 +0,0 @@ -google.cloud.alloydb.v1.ListClustersRequest - */ -class ListClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Cluster.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with the following format: - * * projects/{project}/locations/- - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The name of the parent resource. For the required format, see the - * comment on the Cluster.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with the following format: - * * projects/{project}/locations/- - * Please see {@see AlloyDBAdminClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\ListClustersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. For the required format, see the - * comment on the Cluster.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with the following format: - * * projects/{project}/locations/- - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results - * @type string $order_by - * Optional. Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Cluster.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with the following format: - * * projects/{project}/locations/- - * - * 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 resource. For the required format, see the - * comment on the Cluster.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with the following format: - * * projects/{project}/locations/- - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListClustersResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListClustersResponse.php deleted file mode 100644 index 8c9c3ba6454c..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListClustersResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.alloydb.v1.ListClustersResponse - */ -class ListClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Cluster - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Cluster clusters = 1; - */ - private $clusters; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $clusters - * The list of Cluster - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Cluster - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Cluster clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClusters() - { - return $this->clusters; - } - - /** - * The list of Cluster - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Cluster clusters = 1; - * @param array<\Google\Cloud\AlloyDb\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\Cluster::class); - $this->clusters = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListDatabasesRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListDatabasesRequest.php deleted file mode 100644 index d94d59530e6a..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListDatabasesRequest.php +++ /dev/null @@ -1,207 +0,0 @@ -google.cloud.alloydb.v1.ListDatabasesRequest - */ -class ListDatabasesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListDatabasesRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of databases to return. The service may return - * fewer than this value. If unspecified, 2000 is the default page_size. The - * max value of page_size will be 4000, values above max will be coerced to - * max. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDatabases` call. - * This should be provided to retrieve the subsequent page. - * This field is currently not supported, its value will be ignored if passed. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * This field is currently not supported, its value will be ignored if passed. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Parent value for ListDatabasesRequest. Please see - * {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\ListDatabasesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListDatabasesRequest. - * @type int $page_size - * Optional. The maximum number of databases to return. The service may return - * fewer than this value. If unspecified, 2000 is the default page_size. The - * max value of page_size will be 4000, values above max will be coerced to - * max. - * @type string $page_token - * Optional. A page token, received from a previous `ListDatabases` call. - * This should be provided to retrieve the subsequent page. - * This field is currently not supported, its value will be ignored if passed. - * @type string $filter - * Optional. Filtering results. - * This field is currently not supported, its value will be ignored if passed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListDatabasesRequest. - * - * 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. Parent value for ListDatabasesRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of databases to return. The service may return - * fewer than this value. If unspecified, 2000 is the default page_size. The - * max value of page_size will be 4000, values above max will be coerced to - * max. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of databases to return. The service may return - * fewer than this value. If unspecified, 2000 is the default page_size. The - * max value of page_size will be 4000, values above max will be coerced to - * max. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDatabases` call. - * This should be provided to retrieve the subsequent page. - * This field is currently not supported, its value will be ignored if passed. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDatabases` call. - * This should be provided to retrieve the subsequent page. - * This field is currently not supported, its value will be ignored if passed. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * This field is currently not supported, its value will be ignored if passed. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * This field is currently not supported, its value will be ignored if passed. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListDatabasesResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListDatabasesResponse.php deleted file mode 100644 index 782f84025b54..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListDatabasesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.alloydb.v1.ListDatabasesResponse - */ -class ListDatabasesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of databases - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Database databases = 1; - */ - private $databases; - /** - * A token identifying the next page of results the server should return. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\Database>|\Google\Protobuf\Internal\RepeatedField $databases - * The list of databases - * @type string $next_page_token - * A token identifying the next page of results the server should return. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of databases - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Database databases = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDatabases() - { - return $this->databases; - } - - /** - * The list of databases - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Database databases = 1; - * @param array<\Google\Cloud\AlloyDb\V1\Database>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDatabases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\Database::class); - $this->databases = $arr; - - return $this; - } - - /** - * A token identifying the next page of results the server should return. - * 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 identifying the next page of results the server should return. - * 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListInstancesRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListInstancesRequest.php deleted file mode 100644 index 4d82e38e6398..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListInstancesRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.alloydb.v1.ListInstancesRequest - */ -class ListInstancesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with one of the following - * formats: - * * projects/{project}/locations/-/clusters/- - * * projects/{project}/locations/{region}/clusters/- - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with one of the following - * formats: - * * projects/{project}/locations/-/clusters/- - * * projects/{project}/locations/{region}/clusters/- - * Please see {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\ListInstancesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with one of the following - * formats: - * * projects/{project}/locations/-/clusters/- - * * projects/{project}/locations/{region}/clusters/- - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results - * @type string $order_by - * Optional. Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Instance.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with one of the following - * formats: - * * projects/{project}/locations/-/clusters/- - * * projects/{project}/locations/{region}/clusters/- - * - * 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 resource. For the required format, see the - * comment on the Instance.name field. Additionally, you can perform an - * aggregated list operation by specifying a value with one of the following - * formats: - * * projects/{project}/locations/-/clusters/- - * * projects/{project}/locations/{region}/clusters/- - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListInstancesResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListInstancesResponse.php deleted file mode 100644 index 2b869c67528b..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListInstancesResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.alloydb.v1.ListInstancesResponse - */ -class ListInstancesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Instance - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance instances = 1; - */ - private $instances; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $instances - * The list of Instance - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Instance - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance instances = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstances() - { - return $this->instances; - } - - /** - * The list of Instance - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.Instance instances = 1; - * @param array<\Google\Cloud\AlloyDb\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstances($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\Instance::class); - $this->instances = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListSupportedDatabaseFlagsRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListSupportedDatabaseFlagsRequest.php deleted file mode 100644 index ad53e79fae82..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListSupportedDatabaseFlagsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest - */ -class ListSupportedDatabaseFlagsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location} - * Regardless of the parent specified here, as long it is contains a valid - * project and location, the service will return a static list of supported - * flags resources. Note that we do not yet support region-specific - * flags. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location} - * - * Regardless of the parent specified here, as long it is contains a valid - * project and location, the service will return a static list of supported - * flags resources. Note that we do not yet support region-specific - * flags. Please see - * {@see AlloyDBAdminClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\ListSupportedDatabaseFlagsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location} - * Regardless of the parent specified here, as long it is contains a valid - * project and location, the service will return a static list of supported - * flags resources. Note that we do not yet support region-specific - * flags. - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource. The required format is: - * * projects/{project}/locations/{location} - * Regardless of the parent specified here, as long it is contains a valid - * project and location, the service will return a static list of supported - * flags resources. Note that we do not yet support region-specific - * flags. - * - * 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 resource. The required format is: - * * projects/{project}/locations/{location} - * Regardless of the parent specified here, as long it is contains a valid - * project and location, the service will return a static list of supported - * flags resources. Note that we do not yet support region-specific - * flags. - * - * 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; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * 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 token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListSupportedDatabaseFlagsResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListSupportedDatabaseFlagsResponse.php deleted file mode 100644 index 8a74ded00784..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListSupportedDatabaseFlagsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.alloydb.v1.ListSupportedDatabaseFlagsResponse - */ -class ListSupportedDatabaseFlagsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of SupportedDatabaseFlags. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SupportedDatabaseFlag supported_database_flags = 1; - */ - private $supported_database_flags; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag>|\Google\Protobuf\Internal\RepeatedField $supported_database_flags - * The list of SupportedDatabaseFlags. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of SupportedDatabaseFlags. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SupportedDatabaseFlag supported_database_flags = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedDatabaseFlags() - { - return $this->supported_database_flags; - } - - /** - * The list of SupportedDatabaseFlags. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SupportedDatabaseFlag supported_database_flags = 1; - * @param array<\Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedDatabaseFlags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag::class); - $this->supported_database_flags = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListUsersRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListUsersRequest.php deleted file mode 100644 index 209f6034b237..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListUsersRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.alloydb.v1.ListUsersRequest - */ -class ListUsersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListUsersRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListUsersRequest - * Please see {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\ListUsersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListUsersRequest - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results - * @type string $order_by - * Optional. Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListUsersRequest - * - * 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. Parent value for ListUsersRequest - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListUsersResponse.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListUsersResponse.php deleted file mode 100644 index 54dd827d69ab..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/ListUsersResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.alloydb.v1.ListUsersResponse - */ -class ListUsersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of User - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.User users = 1; - */ - private $users; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\User>|\Google\Protobuf\Internal\RepeatedField $users - * The list of User - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of User - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.User users = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUsers() - { - return $this->users; - } - - /** - * The list of User - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.User users = 1; - * @param array<\Google\Cloud\AlloyDb\V1\User>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUsers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\User::class); - $this->users = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceSchedule.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceSchedule.php deleted file mode 100644 index ddb853c704c1..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceSchedule.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.alloydb.v1.MaintenanceSchedule - */ -class MaintenanceSchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The scheduled start time for the maintenance. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The scheduled start time for the maintenance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The scheduled start time for the maintenance. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The scheduled start time for the maintenance. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceUpdatePolicy.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceUpdatePolicy.php deleted file mode 100644 index d606702528c3..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceUpdatePolicy.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.alloydb.v1.MaintenanceUpdatePolicy - */ -class MaintenanceUpdatePolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Preferred windows to perform maintenance. Currently limited to 1. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; - */ - private $maintenance_windows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy\MaintenanceWindow>|\Google\Protobuf\Internal\RepeatedField $maintenance_windows - * Preferred windows to perform maintenance. Currently limited to 1. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Preferred windows to perform maintenance. Currently limited to 1. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaintenanceWindows() - { - return $this->maintenance_windows; - } - - /** - * Preferred windows to perform maintenance. Currently limited to 1. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1; - * @param array<\Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy\MaintenanceWindow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaintenanceWindows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy\MaintenanceWindow::class); - $this->maintenance_windows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceUpdatePolicy/MaintenanceWindow.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceUpdatePolicy/MaintenanceWindow.php deleted file mode 100644 index 84180598b4fe..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MaintenanceUpdatePolicy/MaintenanceWindow.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow - */ -class MaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 1; - */ - protected $day = 0; - /** - * Preferred time to start the maintenance operation on the specified day. - * Maintenance will start within 1 hour of this time. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2; - */ - protected $start_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $day - * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. - * @type \Google\Type\TimeOfDay $start_time - * Preferred time to start the maintenance operation on the specified day. - * Maintenance will start within 1 hour of this time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 1; - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 1; - * @param int $var - * @return $this - */ - public function setDay($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day = $var; - - return $this; - } - - /** - * Preferred time to start the maintenance operation on the specified day. - * Maintenance will start within 1 hour of this time. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2; - * @return \Google\Type\TimeOfDay|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Preferred time to start the maintenance operation on the specified day. - * Maintenance will start within 1 hour of this time. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->start_time = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MaintenanceWindow::class, \Google\Cloud\AlloyDb\V1\MaintenanceUpdatePolicy_MaintenanceWindow::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MigrationSource.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MigrationSource.php deleted file mode 100644 index d0af051a9d3b..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MigrationSource.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.alloydb.v1.MigrationSource - */ -class MigrationSource extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The host and port of the on-premises instance in host:port - * format - * - * Generated from protobuf field string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $host_port = ''; - /** - * Output only. Place holder for the external source identifier(e.g DMS job - * name) that created the cluster. - * - * Generated from protobuf field string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reference_id = ''; - /** - * Output only. Type of migration source. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $host_port - * Output only. The host and port of the on-premises instance in host:port - * format - * @type string $reference_id - * Output only. Place holder for the external source identifier(e.g DMS job - * name) that created the cluster. - * @type int $source_type - * Output only. Type of migration source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The host and port of the on-premises instance in host:port - * format - * - * Generated from protobuf field string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getHostPort() - { - return $this->host_port; - } - - /** - * Output only. The host and port of the on-premises instance in host:port - * format - * - * Generated from protobuf field string host_port = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setHostPort($var) - { - GPBUtil::checkString($var, True); - $this->host_port = $var; - - return $this; - } - - /** - * Output only. Place holder for the external source identifier(e.g DMS job - * name) that created the cluster. - * - * Generated from protobuf field string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * Output only. Place holder for the external source identifier(e.g DMS job - * name) that created the cluster. - * - * Generated from protobuf field string reference_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setReferenceId($var) - { - GPBUtil::checkString($var, True); - $this->reference_id = $var; - - return $this; - } - - /** - * Output only. Type of migration source. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSourceType() - { - return $this->source_type; - } - - /** - * Output only. Type of migration source. - * - * Generated from protobuf field .google.cloud.alloydb.v1.MigrationSource.MigrationSourceType source_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\MigrationSource\MigrationSourceType::class); - $this->source_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MigrationSource/MigrationSourceType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MigrationSource/MigrationSourceType.php deleted file mode 100644 index 6cdf7fc32846..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/MigrationSource/MigrationSourceType.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.alloydb.v1.MigrationSource.MigrationSourceType - */ -class MigrationSourceType -{ - /** - * Migration source is unknown. - * - * Generated from protobuf enum MIGRATION_SOURCE_TYPE_UNSPECIFIED = 0; - */ - const MIGRATION_SOURCE_TYPE_UNSPECIFIED = 0; - /** - * DMS source means the cluster was created via DMS migration job. - * - * Generated from protobuf enum DMS = 1; - */ - const DMS = 1; - - private static $valueToName = [ - self::MIGRATION_SOURCE_TYPE_UNSPECIFIED => 'MIGRATION_SOURCE_TYPE_UNSPECIFIED', - self::DMS => 'DMS', - ]; - - 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(MigrationSourceType::class, \Google\Cloud\AlloyDb\V1\MigrationSource_MigrationSourceType::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/OperationMetadata.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/OperationMetadata.php deleted file mode 100644 index ab26ecdaeac8..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/OperationMetadata.php +++ /dev/null @@ -1,349 +0,0 @@ -google.cloud.alloydb.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - protected $request_specific; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AlloyDb\V1\BatchCreateInstancesMetadata $batch_create_instances_metadata - * Output only. BatchCreateInstances related metadata. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Output only. BatchCreateInstances related metadata. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AlloyDb\V1\BatchCreateInstancesMetadata|null - */ - public function getBatchCreateInstancesMetadata() - { - return $this->readOneof(8); - } - - public function hasBatchCreateInstancesMetadata() - { - return $this->hasOneof(8); - } - - /** - * Output only. BatchCreateInstances related metadata. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AlloyDb\V1\BatchCreateInstancesMetadata $var - * @return $this - */ - public function setBatchCreateInstancesMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\BatchCreateInstancesMetadata::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - - /** - * @return string - */ - public function getRequestSpecific() - { - return $this->whichOneof("request_specific"); - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/PromoteClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/PromoteClusterRequest.php deleted file mode 100644 index 688fae81ebc5..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/PromoteClusterRequest.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.alloydb.v1.PromoteClusterRequest - */ -class PromoteClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * Please see {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\PromoteClusterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type string $etag - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * - * 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 resource. For the required format, see the - * comment on the Cluster.name field - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The current etag of the Cluster. - * If an etag is provided and does not match the current etag of the Cluster, - * deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/RestartInstanceRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/RestartInstanceRequest.php deleted file mode 100644 index b678b232cf93..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/RestartInstanceRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.alloydb.v1.RestartInstanceRequest - */ -class RestartInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to - * restart upon. Applicable only to read instances. - * - * Generated from protobuf field repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $node_ids; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. Please see - * {@see AlloyDBAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\RestartInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * @type array|\Google\Protobuf\Internal\RepeatedField $node_ids - * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to - * restart upon. Applicable only to read instances. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Instance.name field. - * - * 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 resource. For the required format, see the - * comment on the Instance.name field. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to - * restart upon. Applicable only to read instances. - * - * Generated from protobuf field repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodeIds() - { - return $this->node_ids; - } - - /** - * Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to - * restart upon. Applicable only to read instances. - * - * Generated from protobuf field repeated string node_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodeIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->node_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/RestoreClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/RestoreClusterRequest.php deleted file mode 100644 index 13f6cf83e847..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/RestoreClusterRequest.php +++ /dev/null @@ -1,344 +0,0 @@ -google.cloud.alloydb.v1.RestoreClusterRequest - */ -class RestoreClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Cluster.name field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AlloyDb\V1\BackupSource $backup_source - * Backup source. - * @type \Google\Cloud\AlloyDb\V1\ContinuousBackupSource $continuous_backup_source - * ContinuousBackup source. Continuous backup needs to be enabled in the - * source cluster for this operation to succeed. - * @type string $parent - * Required. The name of the parent resource. For the required format, see the - * comment on the Cluster.name field. - * @type string $cluster_id - * Required. ID of the requesting object. - * @type \Google\Cloud\AlloyDb\V1\Cluster $cluster - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Backup source. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BackupSource backup_source = 4; - * @return \Google\Cloud\AlloyDb\V1\BackupSource|null - */ - public function getBackupSource() - { - return $this->readOneof(4); - } - - public function hasBackupSource() - { - return $this->hasOneof(4); - } - - /** - * Backup source. - * - * Generated from protobuf field .google.cloud.alloydb.v1.BackupSource backup_source = 4; - * @param \Google\Cloud\AlloyDb\V1\BackupSource $var - * @return $this - */ - public function setBackupSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\BackupSource::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * ContinuousBackup source. Continuous backup needs to be enabled in the - * source cluster for this operation to succeed. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupSource continuous_backup_source = 8; - * @return \Google\Cloud\AlloyDb\V1\ContinuousBackupSource|null - */ - public function getContinuousBackupSource() - { - return $this->readOneof(8); - } - - public function hasContinuousBackupSource() - { - return $this->hasOneof(8); - } - - /** - * ContinuousBackup source. Continuous backup needs to be enabled in the - * source cluster for this operation to succeed. - * - * Generated from protobuf field .google.cloud.alloydb.v1.ContinuousBackupSource continuous_backup_source = 8; - * @param \Google\Cloud\AlloyDb\V1\ContinuousBackupSource $var - * @return $this - */ - public function setContinuousBackupSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\ContinuousBackupSource::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Required. The name of the parent resource. For the required format, see the - * comment on the Cluster.name field. - * - * 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 resource. For the required format, see the - * comment on the Cluster.name field. - * - * 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. ID of the requesting object. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. ID of the requesting object. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResult.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResult.php deleted file mode 100644 index 2ff9cba3af42..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResult.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.alloydb.v1.SqlResult - */ -class SqlResult extends \Google\Protobuf\Internal\Message -{ - /** - * List of columns included in the result. This also includes the data type - * of the column. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; - */ - private $columns; - /** - * Rows returned by the SQL statement. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; - */ - private $rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\SqlResultColumn>|\Google\Protobuf\Internal\RepeatedField $columns - * List of columns included in the result. This also includes the data type - * of the column. - * @type array<\Google\Cloud\AlloyDb\V1\SqlResultRow>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows returned by the SQL statement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\DataModel::initOnce(); - parent::__construct($data); - } - - /** - * List of columns included in the result. This also includes the data type - * of the column. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getColumns() - { - return $this->columns; - } - - /** - * List of columns included in the result. This also includes the data type - * of the column. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultColumn columns = 1; - * @param array<\Google\Cloud\AlloyDb\V1\SqlResultColumn>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\SqlResultColumn::class); - $this->columns = $arr; - - return $this; - } - - /** - * Rows returned by the SQL statement. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows returned by the SQL statement. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultRow rows = 2; - * @param array<\Google\Cloud\AlloyDb\V1\SqlResultRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\SqlResultRow::class); - $this->rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultColumn.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultColumn.php deleted file mode 100644 index a382717fb18d..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultColumn.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.alloydb.v1.SqlResultColumn - */ -class SqlResultColumn extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the column. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Datatype of the column as reported by the postgres driver. - * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", - * "INT", and "BIGINT". - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the column. - * @type string $type - * Datatype of the column as reported by the postgres driver. - * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", - * "INT", and "BIGINT". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\DataModel::initOnce(); - parent::__construct($data); - } - - /** - * Name of the column. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the column. - * - * 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; - } - - /** - * Datatype of the column as reported by the postgres driver. - * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", - * "INT", and "BIGINT". - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Datatype of the column as reported by the postgres driver. - * Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", - * "INT", and "BIGINT". - * - * Generated from protobuf field string type = 2; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultRow.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultRow.php deleted file mode 100644 index 65e45b3cb121..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultRow.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.alloydb.v1.SqlResultRow - */ -class SqlResultRow extends \Google\Protobuf\Internal\Message -{ - /** - * List of values in a row of sql result. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AlloyDb\V1\SqlResultValue>|\Google\Protobuf\Internal\RepeatedField $values - * List of values in a row of sql result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\DataModel::initOnce(); - parent::__construct($data); - } - - /** - * List of values in a row of sql result. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * List of values in a row of sql result. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.SqlResultValue values = 1; - * @param array<\Google\Cloud\AlloyDb\V1\SqlResultValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AlloyDb\V1\SqlResultValue::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultValue.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultValue.php deleted file mode 100644 index 091242f1f175..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SqlResultValue.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.alloydb.v1.SqlResultValue - */ -class SqlResultValue extends \Google\Protobuf\Internal\Message -{ - /** - * The cell value represented in string format. - * Timestamps are converted to string using RFC3339Nano format. - * - * Generated from protobuf field optional string value = 1; - */ - protected $value = null; - /** - * Set to true if cell value is null. - * - * Generated from protobuf field optional bool null_value = 2; - */ - protected $null_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The cell value represented in string format. - * Timestamps are converted to string using RFC3339Nano format. - * @type bool $null_value - * Set to true if cell value is null. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\DataModel::initOnce(); - parent::__construct($data); - } - - /** - * The cell value represented in string format. - * Timestamps are converted to string using RFC3339Nano format. - * - * Generated from protobuf field optional string value = 1; - * @return string - */ - public function getValue() - { - return isset($this->value) ? $this->value : ''; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * The cell value represented in string format. - * Timestamps are converted to string using RFC3339Nano format. - * - * Generated from protobuf field optional string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Set to true if cell value is null. - * - * Generated from protobuf field optional bool null_value = 2; - * @return bool - */ - public function getNullValue() - { - return isset($this->null_value) ? $this->null_value : false; - } - - public function hasNullValue() - { - return isset($this->null_value); - } - - public function clearNullValue() - { - unset($this->null_value); - } - - /** - * Set to true if cell value is null. - * - * Generated from protobuf field optional bool null_value = 2; - * @param bool $var - * @return $this - */ - public function setNullValue($var) - { - GPBUtil::checkBool($var); - $this->null_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig.php deleted file mode 100644 index 4239158510f8..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.alloydb.v1.SslConfig - */ -class SslConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssl_mode = 0; - /** - * Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is - * supported currently, and is the default value. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ca_source = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $ssl_mode - * Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. - * @type int $ca_source - * Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is - * supported currently, and is the default value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSslMode() - { - return $this->ssl_mode; - } - - /** - * Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSslMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\SslConfig\SslMode::class); - $this->ssl_mode = $var; - - return $this; - } - - /** - * Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is - * supported currently, and is the default value. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCaSource() - { - return $this->ca_source; - } - - /** - * Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is - * supported currently, and is the default value. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCaSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\SslConfig\CaSource::class); - $this->ca_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig/CaSource.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig/CaSource.php deleted file mode 100644 index 63623e55baed..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig/CaSource.php +++ /dev/null @@ -1,58 +0,0 @@ -google.cloud.alloydb.v1.SslConfig.CaSource - */ -class CaSource -{ - /** - * Certificate Authority (CA) source not specified. Defaults to - * CA_SOURCE_MANAGED. - * - * Generated from protobuf enum CA_SOURCE_UNSPECIFIED = 0; - */ - const CA_SOURCE_UNSPECIFIED = 0; - /** - * Certificate Authority (CA) managed by the AlloyDB Cluster. - * - * Generated from protobuf enum CA_SOURCE_MANAGED = 1; - */ - const CA_SOURCE_MANAGED = 1; - - private static $valueToName = [ - self::CA_SOURCE_UNSPECIFIED => 'CA_SOURCE_UNSPECIFIED', - self::CA_SOURCE_MANAGED => 'CA_SOURCE_MANAGED', - ]; - - 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(CaSource::class, \Google\Cloud\AlloyDb\V1\SslConfig_CaSource::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig/SslMode.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig/SslMode.php deleted file mode 100644 index 05fb2d3241c2..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SslConfig/SslMode.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.alloydb.v1.SslConfig.SslMode - */ -class SslMode -{ - /** - * SSL mode is not specified. Defaults to ENCRYPTED_ONLY. - * - * Generated from protobuf enum SSL_MODE_UNSPECIFIED = 0; - */ - const SSL_MODE_UNSPECIFIED = 0; - /** - * SSL connections are optional. CA verification not enforced. - * - * Generated from protobuf enum SSL_MODE_ALLOW = 1 [deprecated = true]; - */ - const SSL_MODE_ALLOW = 1; - /** - * SSL connections are required. CA verification not enforced. - * Clients may use locally self-signed certificates (default psql client - * behavior). - * - * Generated from protobuf enum SSL_MODE_REQUIRE = 2 [deprecated = true]; - */ - const SSL_MODE_REQUIRE = 2; - /** - * SSL connections are required. CA verification enforced. - * Clients must have certificates signed by a Cluster CA, for example, using - * GenerateClientCertificate. - * - * Generated from protobuf enum SSL_MODE_VERIFY_CA = 3 [deprecated = true]; - */ - const SSL_MODE_VERIFY_CA = 3; - /** - * SSL connections are optional. CA verification not enforced. - * - * Generated from protobuf enum ALLOW_UNENCRYPTED_AND_ENCRYPTED = 4; - */ - const ALLOW_UNENCRYPTED_AND_ENCRYPTED = 4; - /** - * SSL connections are required. CA verification not enforced. - * - * Generated from protobuf enum ENCRYPTED_ONLY = 5; - */ - const ENCRYPTED_ONLY = 5; - - private static $valueToName = [ - self::SSL_MODE_UNSPECIFIED => 'SSL_MODE_UNSPECIFIED', - self::SSL_MODE_ALLOW => 'SSL_MODE_ALLOW', - self::SSL_MODE_REQUIRE => 'SSL_MODE_REQUIRE', - self::SSL_MODE_VERIFY_CA => 'SSL_MODE_VERIFY_CA', - self::ALLOW_UNENCRYPTED_AND_ENCRYPTED => 'ALLOW_UNENCRYPTED_AND_ENCRYPTED', - self::ENCRYPTED_ONLY => 'ENCRYPTED_ONLY', - ]; - - 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(SslMode::class, \Google\Cloud\AlloyDb\V1\SslConfig_SslMode::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SubscriptionType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SubscriptionType.php deleted file mode 100644 index 68a7e3303762..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SubscriptionType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.alloydb.v1.SubscriptionType - */ -class SubscriptionType -{ - /** - * This is an unknown subscription type. By default, the subscription type is - * STANDARD. - * - * Generated from protobuf enum SUBSCRIPTION_TYPE_UNSPECIFIED = 0; - */ - const SUBSCRIPTION_TYPE_UNSPECIFIED = 0; - /** - * Standard subscription. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * Trial subscription. - * - * Generated from protobuf enum TRIAL = 2; - */ - const TRIAL = 2; - - private static $valueToName = [ - self::SUBSCRIPTION_TYPE_UNSPECIFIED => 'SUBSCRIPTION_TYPE_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::TRIAL => 'TRIAL', - ]; - - 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/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag.php deleted file mode 100644 index 09d7ae652977..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag.php +++ /dev/null @@ -1,337 +0,0 @@ -google.cloud.alloydb.v1.SupportedDatabaseFlag - */ -class SupportedDatabaseFlag extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the flag resource, following Google Cloud conventions, e.g.: - * * projects/{project}/locations/{location}/flags/{flag} - * This field currently has no semantic meaning. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The name of the database flag, e.g. "max_allowed_packets". - * The is a possibly key for the Instance.database_flags map field. - * - * Generated from protobuf field string flag_name = 2; - */ - protected $flag_name = ''; - /** - * Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3; - */ - protected $value_type = 0; - /** - * Whether the database flag accepts multiple values. If true, - * a comma-separated list of stringified values may be specified. - * - * Generated from protobuf field bool accepts_multiple_values = 4; - */ - protected $accepts_multiple_values = false; - /** - * Major database engine versions for which this flag is supported. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.DatabaseVersion supported_db_versions = 5; - */ - private $supported_db_versions; - /** - * Whether setting or updating this flag on an Instance requires a database - * restart. If a flag that requires database restart is set, the backend - * will automatically restart the database (making sure to satisfy any - * availability SLO's). - * - * Generated from protobuf field bool requires_db_restart = 6; - */ - protected $requires_db_restart = false; - protected $restrictions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\StringRestrictions $string_restrictions - * Restriction on STRING type value. - * @type \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\IntegerRestrictions $integer_restrictions - * Restriction on INTEGER type value. - * @type string $name - * The name of the flag resource, following Google Cloud conventions, e.g.: - * * projects/{project}/locations/{location}/flags/{flag} - * This field currently has no semantic meaning. - * @type string $flag_name - * The name of the database flag, e.g. "max_allowed_packets". - * The is a possibly key for the Instance.database_flags map field. - * @type int $value_type - * @type bool $accepts_multiple_values - * Whether the database flag accepts multiple values. If true, - * a comma-separated list of stringified values may be specified. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_db_versions - * Major database engine versions for which this flag is supported. - * @type bool $requires_db_restart - * Whether setting or updating this flag on an Instance requires a database - * restart. If a flag that requires database restart is set, the backend - * will automatically restart the database (making sure to satisfy any - * availability SLO's). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Restriction on STRING type value. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7; - * @return \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\StringRestrictions|null - */ - public function getStringRestrictions() - { - return $this->readOneof(7); - } - - public function hasStringRestrictions() - { - return $this->hasOneof(7); - } - - /** - * Restriction on STRING type value. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7; - * @param \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\StringRestrictions $var - * @return $this - */ - public function setStringRestrictions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\StringRestrictions::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Restriction on INTEGER type value. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8; - * @return \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\IntegerRestrictions|null - */ - public function getIntegerRestrictions() - { - return $this->readOneof(8); - } - - public function hasIntegerRestrictions() - { - return $this->hasOneof(8); - } - - /** - * Restriction on INTEGER type value. - * - * Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8; - * @param \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\IntegerRestrictions $var - * @return $this - */ - public function setIntegerRestrictions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\IntegerRestrictions::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The name of the flag resource, following Google Cloud conventions, e.g.: - * * projects/{project}/locations/{location}/flags/{flag} - * This field currently has no semantic meaning. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the flag resource, following Google Cloud conventions, e.g.: - * * projects/{project}/locations/{location}/flags/{flag} - * This field currently has no semantic meaning. - * - * 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; - } - - /** - * The name of the database flag, e.g. "max_allowed_packets". - * The is a possibly key for the Instance.database_flags map field. - * - * Generated from protobuf field string flag_name = 2; - * @return string - */ - public function getFlagName() - { - return $this->flag_name; - } - - /** - * The name of the database flag, e.g. "max_allowed_packets". - * The is a possibly key for the Instance.database_flags map field. - * - * Generated from protobuf field string flag_name = 2; - * @param string $var - * @return $this - */ - public function setFlagName($var) - { - GPBUtil::checkString($var, True); - $this->flag_name = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3; - * @return int - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3; - * @param int $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag\ValueType::class); - $this->value_type = $var; - - return $this; - } - - /** - * Whether the database flag accepts multiple values. If true, - * a comma-separated list of stringified values may be specified. - * - * Generated from protobuf field bool accepts_multiple_values = 4; - * @return bool - */ - public function getAcceptsMultipleValues() - { - return $this->accepts_multiple_values; - } - - /** - * Whether the database flag accepts multiple values. If true, - * a comma-separated list of stringified values may be specified. - * - * Generated from protobuf field bool accepts_multiple_values = 4; - * @param bool $var - * @return $this - */ - public function setAcceptsMultipleValues($var) - { - GPBUtil::checkBool($var); - $this->accepts_multiple_values = $var; - - return $this; - } - - /** - * Major database engine versions for which this flag is supported. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.DatabaseVersion supported_db_versions = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedDbVersions() - { - return $this->supported_db_versions; - } - - /** - * Major database engine versions for which this flag is supported. - * - * Generated from protobuf field repeated .google.cloud.alloydb.v1.DatabaseVersion supported_db_versions = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedDbVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\AlloyDb\V1\DatabaseVersion::class); - $this->supported_db_versions = $arr; - - return $this; - } - - /** - * Whether setting or updating this flag on an Instance requires a database - * restart. If a flag that requires database restart is set, the backend - * will automatically restart the database (making sure to satisfy any - * availability SLO's). - * - * Generated from protobuf field bool requires_db_restart = 6; - * @return bool - */ - public function getRequiresDbRestart() - { - return $this->requires_db_restart; - } - - /** - * Whether setting or updating this flag on an Instance requires a database - * restart. If a flag that requires database restart is set, the backend - * will automatically restart the database (making sure to satisfy any - * availability SLO's). - * - * Generated from protobuf field bool requires_db_restart = 6; - * @param bool $var - * @return $this - */ - public function setRequiresDbRestart($var) - { - GPBUtil::checkBool($var); - $this->requires_db_restart = $var; - - return $this; - } - - /** - * @return string - */ - public function getRestrictions() - { - return $this->whichOneof("restrictions"); - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/IntegerRestrictions.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/IntegerRestrictions.php deleted file mode 100644 index ef0b863c1db2..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/IntegerRestrictions.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions - */ -class IntegerRestrictions extends \Google\Protobuf\Internal\Message -{ - /** - * The minimum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value min_value = 1; - */ - protected $min_value = null; - /** - * The maximum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value max_value = 2; - */ - protected $max_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int64Value $min_value - * The minimum value that can be specified, if applicable. - * @type \Google\Protobuf\Int64Value $max_value - * The maximum value that can be specified, if applicable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The minimum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value min_value = 1; - * @return \Google\Protobuf\Int64Value|null - */ - public function getMinValue() - { - return $this->min_value; - } - - public function hasMinValue() - { - return isset($this->min_value); - } - - public function clearMinValue() - { - unset($this->min_value); - } - - /** - * Returns the unboxed value from getMinValue() - - * The minimum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value min_value = 1; - * @return int|string|null - */ - public function getMinValueUnwrapped() - { - return $this->readWrapperValue("min_value"); - } - - /** - * The minimum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value min_value = 1; - * @param \Google\Protobuf\Int64Value $var - * @return $this - */ - public function setMinValue($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class); - $this->min_value = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object. - - * The minimum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value min_value = 1; - * @param int|string|null $var - * @return $this - */ - public function setMinValueUnwrapped($var) - { - $this->writeWrapperValue("min_value", $var); - return $this;} - - /** - * The maximum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value max_value = 2; - * @return \Google\Protobuf\Int64Value|null - */ - public function getMaxValue() - { - return $this->max_value; - } - - public function hasMaxValue() - { - return isset($this->max_value); - } - - public function clearMaxValue() - { - unset($this->max_value); - } - - /** - * Returns the unboxed value from getMaxValue() - - * The maximum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value max_value = 2; - * @return int|string|null - */ - public function getMaxValueUnwrapped() - { - return $this->readWrapperValue("max_value"); - } - - /** - * The maximum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value max_value = 2; - * @param \Google\Protobuf\Int64Value $var - * @return $this - */ - public function setMaxValue($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class); - $this->max_value = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object. - - * The maximum value that can be specified, if applicable. - * - * Generated from protobuf field .google.protobuf.Int64Value max_value = 2; - * @param int|string|null $var - * @return $this - */ - public function setMaxValueUnwrapped($var) - { - $this->writeWrapperValue("max_value", $var); - return $this;} - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IntegerRestrictions::class, \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag_IntegerRestrictions::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/StringRestrictions.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/StringRestrictions.php deleted file mode 100644 index 9dbd0cda5621..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/StringRestrictions.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions - */ -class StringRestrictions extends \Google\Protobuf\Internal\Message -{ - /** - * The list of allowed values, if bounded. This field will be empty - * if there is a unbounded number of allowed values. - * - * Generated from protobuf field repeated string allowed_values = 1; - */ - private $allowed_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_values - * The list of allowed values, if bounded. This field will be empty - * if there is a unbounded number of allowed values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The list of allowed values, if bounded. This field will be empty - * if there is a unbounded number of allowed values. - * - * Generated from protobuf field repeated string allowed_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedValues() - { - return $this->allowed_values; - } - - /** - * The list of allowed values, if bounded. This field will be empty - * if there is a unbounded number of allowed values. - * - * Generated from protobuf field repeated string allowed_values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringRestrictions::class, \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag_StringRestrictions::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/ValueType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/ValueType.php deleted file mode 100644 index 1e2a2f071183..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SupportedDatabaseFlag/ValueType.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType - */ -class ValueType -{ - /** - * This is an unknown flag type. - * - * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; - */ - const VALUE_TYPE_UNSPECIFIED = 0; - /** - * String type flag. - * - * Generated from protobuf enum STRING = 1; - */ - const STRING = 1; - /** - * Integer type flag. - * - * Generated from protobuf enum INTEGER = 2; - */ - const INTEGER = 2; - /** - * Float type flag. - * - * Generated from protobuf enum FLOAT = 3; - */ - const FLOAT = 3; - /** - * Denotes that the flag does not accept any values. - * - * Generated from protobuf enum NONE = 4; - */ - const NONE = 4; - - private static $valueToName = [ - self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', - self::STRING => 'STRING', - self::INTEGER => 'INTEGER', - self::FLOAT => 'FLOAT', - self::NONE => 'NONE', - ]; - - 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(ValueType::class, \Google\Cloud\AlloyDb\V1\SupportedDatabaseFlag_ValueType::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SwitchoverClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SwitchoverClusterRequest.php deleted file mode 100644 index 571773ce71cc..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/SwitchoverClusterRequest.php +++ /dev/null @@ -1,202 +0,0 @@ -google.cloud.alloydb.v1.SwitchoverClusterRequest - */ -class SwitchoverClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * Please see {@see AlloyDBAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\AlloyDb\V1\SwitchoverClusterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource. For the required format, see the - * comment on the Cluster.name field - * - * 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 resource. For the required format, see the - * comment on the Cluster.name field - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateBackupRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateBackupRequest.php deleted file mode 100644 index 4c31c2d1ec6b..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateBackupRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.alloydb.v1.UpdateBackupRequest - */ -class UpdateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new backup is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\AlloyDb\V1\Backup $backup Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * @return \Google\Cloud\AlloyDb\V1\UpdateBackupRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AlloyDb\V1\Backup $backup, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setBackup($backup) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @type \Google\Cloud\AlloyDb\V1\Backup $backup - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * @type bool $allow_missing - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new backup is created and `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Backup::class); - $this->backup = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new backup is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new backup is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateClusterRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateClusterRequest.php deleted file mode 100644 index e2da04b561bf..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateClusterRequest.php +++ /dev/null @@ -1,310 +0,0 @@ -google.cloud.alloydb.v1.UpdateClusterRequest - */ -class UpdateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Cluster resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. If set to true, update succeeds even if cluster is not found. In - * that case, a new cluster is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\AlloyDb\V1\Cluster $cluster Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * Cluster resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * @return \Google\Cloud\AlloyDb\V1\UpdateClusterRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AlloyDb\V1\Cluster $cluster, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCluster($cluster) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask is used to specify the fields to be overwritten in the - * Cluster resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @type \Google\Cloud\AlloyDb\V1\Cluster $cluster - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * @type bool $allow_missing - * Optional. If set to true, update succeeds even if cluster is not found. In - * that case, a new cluster is created and `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Cluster resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Cluster resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. If set to true, update succeeds even if cluster is not found. In - * that case, a new cluster is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, update succeeds even if cluster is not found. In - * that case, a new cluster is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateInstanceRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateInstanceRequest.php deleted file mode 100644 index f75183733d59..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateInstanceRequest.php +++ /dev/null @@ -1,310 +0,0 @@ -google.cloud.alloydb.v1.UpdateInstanceRequest - */ -class UpdateInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Instance resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new instance is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\AlloyDb\V1\Instance $instance Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * Instance resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * @return \Google\Cloud\AlloyDb\V1\UpdateInstanceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AlloyDb\V1\Instance $instance, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setInstance($instance) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask is used to specify the fields to be overwritten in the - * Instance resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @type \Google\Cloud\AlloyDb\V1\Instance $instance - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * @type bool $allow_missing - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new instance is created and `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Instance resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * Instance resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\Instance|null - */ - public function getInstance() - { - return $this->instance; - } - - public function hasInstance() - { - return isset($this->instance); - } - - public function clearInstance() - { - unset($this->instance); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\Instance $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Instance::class); - $this->instance = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, performs request validation, for example, permission - * checks and any other type of validation, but does not actually execute the - * create request. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new instance is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, update succeeds even if instance is not found. In - * that case, a new instance is created and `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateUserRequest.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateUserRequest.php deleted file mode 100644 index eab90f471ca7..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UpdateUserRequest.php +++ /dev/null @@ -1,302 +0,0 @@ -google.cloud.alloydb.v1.UpdateUserRequest - */ -class UpdateUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * User resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.User user = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. Allow missing fields in the update mask. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\AlloyDb\V1\User $user Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask is used to specify the fields to be overwritten in the - * User resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * @return \Google\Cloud\AlloyDb\V1\UpdateUserRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AlloyDb\V1\User $user, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setUser($user) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask is used to specify the fields to be overwritten in the - * User resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @type \Google\Cloud\AlloyDb\V1\User $user - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * @type bool $allow_missing - * Optional. Allow missing fields in the update mask. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * User resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * User resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.User user = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AlloyDb\V1\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.alloydb.v1.User user = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AlloyDb\V1\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\User::class); - $this->user = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server ignores the - * request if it has already been completed. The server guarantees that for at - * least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if the original operation with the same request ID - * was received, and if so, ignores the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, the backend validates the request, but doesn't actually - * execute it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. Allow missing fields in the update mask. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. Allow missing fields in the update mask. - * - * Generated from protobuf field bool allow_missing = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/User.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/User.php deleted file mode 100644 index f64046478ae2..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/User.php +++ /dev/null @@ -1,215 +0,0 @@ -google.cloud.alloydb.v1.User - */ -class User extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the resource in the form of - * projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Input only. Password for the user. - * - * Generated from protobuf field string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $password = ''; - /** - * Optional. List of database roles this user has. - * The database role strings are subject to the PostgreSQL naming conventions. - * - * Generated from protobuf field repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $database_roles; - /** - * Optional. Type of this user. - * - * Generated from protobuf field .google.cloud.alloydb.v1.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $user_type = 0; - /** - * Input only. If the user already exists and it has additional roles, keep - * them granted. - * - * Generated from protobuf field bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $keep_extra_roles = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the resource in the form of - * projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. - * @type string $password - * Input only. Password for the user. - * @type array|\Google\Protobuf\Internal\RepeatedField $database_roles - * Optional. List of database roles this user has. - * The database role strings are subject to the PostgreSQL naming conventions. - * @type int $user_type - * Optional. Type of this user. - * @type bool $keep_extra_roles - * Input only. If the user already exists and it has additional roles, keep - * them granted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the resource in the form of - * projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the resource in the form of - * projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. - * - * 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; - } - - /** - * Input only. Password for the user. - * - * Generated from protobuf field string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getPassword() - { - return $this->password; - } - - /** - * Input only. Password for the user. - * - * Generated from protobuf field string password = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPassword($var) - { - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - - /** - * Optional. List of database roles this user has. - * The database role strings are subject to the PostgreSQL naming conventions. - * - * Generated from protobuf field repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDatabaseRoles() - { - return $this->database_roles; - } - - /** - * Optional. List of database roles this user has. - * The database role strings are subject to the PostgreSQL naming conventions. - * - * Generated from protobuf field repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDatabaseRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->database_roles = $arr; - - return $this; - } - - /** - * Optional. Type of this user. - * - * Generated from protobuf field .google.cloud.alloydb.v1.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getUserType() - { - return $this->user_type; - } - - /** - * Optional. Type of this user. - * - * Generated from protobuf field .google.cloud.alloydb.v1.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setUserType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AlloyDb\V1\User\UserType::class); - $this->user_type = $var; - - return $this; - } - - /** - * Input only. If the user already exists and it has additional roles, keep - * them granted. - * - * Generated from protobuf field bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getKeepExtraRoles() - { - return $this->keep_extra_roles; - } - - /** - * Input only. If the user already exists and it has additional roles, keep - * them granted. - * - * Generated from protobuf field bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setKeepExtraRoles($var) - { - GPBUtil::checkBool($var); - $this->keep_extra_roles = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/User/UserType.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/User/UserType.php deleted file mode 100644 index 8324887d69cf..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/User/UserType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.alloydb.v1.User.UserType - */ -class UserType -{ - /** - * Unspecified user type. - * - * Generated from protobuf enum USER_TYPE_UNSPECIFIED = 0; - */ - const USER_TYPE_UNSPECIFIED = 0; - /** - * The default user type that authenticates via password-based - * authentication. - * - * Generated from protobuf enum ALLOYDB_BUILT_IN = 1; - */ - const ALLOYDB_BUILT_IN = 1; - /** - * Database user that can authenticate via IAM-Based authentication. - * - * Generated from protobuf enum ALLOYDB_IAM_USER = 2; - */ - const ALLOYDB_IAM_USER = 2; - - private static $valueToName = [ - self::USER_TYPE_UNSPECIFIED => 'USER_TYPE_UNSPECIFIED', - self::ALLOYDB_BUILT_IN => 'ALLOYDB_BUILT_IN', - self::ALLOYDB_IAM_USER => 'ALLOYDB_IAM_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(UserType::class, \Google\Cloud\AlloyDb\V1\User_UserType::class); - diff --git a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UserPassword.php b/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UserPassword.php deleted file mode 100644 index 6f1de9b58940..000000000000 --- a/owl-bot-staging/AlloyDb/v1/proto/src/Google/Cloud/AlloyDb/V1/UserPassword.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.alloydb.v1.UserPassword - */ -class UserPassword extends \Google\Protobuf\Internal\Message -{ - /** - * The database username. - * - * Generated from protobuf field string user = 1; - */ - protected $user = ''; - /** - * The initial password for the user. - * - * Generated from protobuf field string password = 2; - */ - protected $password = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user - * The database username. - * @type string $password - * The initial password for the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The database username. - * - * Generated from protobuf field string user = 1; - * @return string - */ - public function getUser() - { - return $this->user; - } - - /** - * The database username. - * - * Generated from protobuf field string user = 1; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->user = $var; - - return $this; - } - - /** - * The initial password for the user. - * - * Generated from protobuf field string password = 2; - * @return string - */ - public function getPassword() - { - return $this->password; - } - - /** - * The initial password for the user. - * - * Generated from protobuf field string password = 2; - * @param string $var - * @return $this - */ - public function setPassword($var) - { - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/batch_create_instances.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/batch_create_instances.php deleted file mode 100644 index dfbadb37bfed..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/batch_create_instances.php +++ /dev/null @@ -1,127 +0,0 @@ -setInstanceType($requestsCreateInstanceRequestsInstanceInstanceType); - $createInstanceRequest = (new CreateInstanceRequest()) - ->setParent($formattedRequestsCreateInstanceRequestsParent) - ->setInstanceId($requestsCreateInstanceRequestsInstanceId) - ->setInstance($requestsCreateInstanceRequestsInstance); - $requestsCreateInstanceRequests = [$createInstanceRequest,]; - $requests = (new CreateInstanceRequests()) - ->setCreateInstanceRequests($requestsCreateInstanceRequests); - $request = (new BatchCreateInstancesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->batchCreateInstances($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BatchCreateInstancesResponse $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $formattedRequestsCreateInstanceRequestsParent = AlloyDBAdminClient::clusterName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]' - ); - $requestsCreateInstanceRequestsInstanceId = '[INSTANCE_ID]'; - $requestsCreateInstanceRequestsInstanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - - batch_create_instances_sample( - $formattedParent, - $formattedRequestsCreateInstanceRequestsParent, - $requestsCreateInstanceRequestsInstanceId, - $requestsCreateInstanceRequestsInstanceInstanceType - ); -} -// [END alloydb_v1_generated_AlloyDBAdmin_BatchCreateInstances_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_backup.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_backup.php deleted file mode 100644 index 578d24d3fa99..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_backup.php +++ /dev/null @@ -1,100 +0,0 @@ -setClusterName($formattedBackupClusterName); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->createBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::locationName('[PROJECT]', '[LOCATION]'); - $backupId = '[BACKUP_ID]'; - $formattedBackupClusterName = AlloyDBAdminClient::clusterName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]' - ); - - create_backup_sample($formattedParent, $backupId, $formattedBackupClusterName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_cluster.php deleted file mode 100644 index 1a9b94908009..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_cluster.php +++ /dev/null @@ -1,100 +0,0 @@ -setNetwork($formattedClusterNetwork); - $request = (new CreateClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->createCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::locationName('[PROJECT]', '[LOCATION]'); - $clusterId = '[CLUSTER_ID]'; - $formattedClusterNetwork = AlloyDBAdminClient::networkName('[PROJECT]', '[NETWORK]'); - - create_cluster_sample($formattedParent, $clusterId, $formattedClusterNetwork); -} -// [END alloydb_v1_generated_AlloyDBAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_instance.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_instance.php deleted file mode 100644 index 4d14b19253ef..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_instance.php +++ /dev/null @@ -1,96 +0,0 @@ -setInstanceType($instanceInstanceType); - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->createInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $instanceId = '[INSTANCE_ID]'; - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - - create_instance_sample($formattedParent, $instanceId, $instanceInstanceType); -} -// [END alloydb_v1_generated_AlloyDBAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_secondary_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_secondary_cluster.php deleted file mode 100644 index 676465e9f16a..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_secondary_cluster.php +++ /dev/null @@ -1,101 +0,0 @@ -setNetwork($formattedClusterNetwork); - $request = (new CreateSecondaryClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->createSecondaryCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::locationName('[PROJECT]', '[LOCATION]'); - $clusterId = '[CLUSTER_ID]'; - $formattedClusterNetwork = AlloyDBAdminClient::networkName('[PROJECT]', '[NETWORK]'); - - create_secondary_cluster_sample($formattedParent, $clusterId, $formattedClusterNetwork); -} -// [END alloydb_v1_generated_AlloyDBAdmin_CreateSecondaryCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_secondary_instance.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_secondary_instance.php deleted file mode 100644 index e842926ee2f6..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_secondary_instance.php +++ /dev/null @@ -1,96 +0,0 @@ -setInstanceType($instanceInstanceType); - $request = (new CreateSecondaryInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->createSecondaryInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $instanceId = '[INSTANCE_ID]'; - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - - create_secondary_instance_sample($formattedParent, $instanceId, $instanceInstanceType); -} -// [END alloydb_v1_generated_AlloyDBAdmin_CreateSecondaryInstance_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_user.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_user.php deleted file mode 100644 index 7ee47b873fcd..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/create_user.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent) - ->setUserId($userId) - ->setUser($user); - - // Call the API and handle any network failures. - try { - /** @var User $response */ - $response = $alloyDBAdminClient->createUser($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $userId = '[USER_ID]'; - - create_user_sample($formattedParent, $userId); -} -// [END alloydb_v1_generated_AlloyDBAdmin_CreateUser_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_backup.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_backup.php deleted file mode 100644 index 21237a6d0e18..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_backup.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->deleteBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::backupName('[PROJECT]', '[LOCATION]', '[BACKUP]'); - - delete_backup_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_cluster.php deleted file mode 100644 index e3cdf8b6e0fa..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_cluster.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->deleteCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - delete_cluster_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_instance.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_instance.php deleted file mode 100644 index 79e2b922268f..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_instance.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->deleteInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]', - '[INSTANCE]' - ); - - delete_instance_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_user.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_user.php deleted file mode 100644 index eb57a3f16751..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/delete_user.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $alloyDBAdminClient->deleteUser($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::userName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[USER]'); - - delete_user_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_DeleteUser_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/execute_sql.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/execute_sql.php deleted file mode 100644 index 7e9ed33563c5..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/execute_sql.php +++ /dev/null @@ -1,95 +0,0 @@ -setInstance($formattedInstance) - ->setDatabase($database) - ->setUser($user) - ->setSqlStatement($sqlStatement); - - // Call the API and handle any network failures. - try { - /** @var ExecuteSqlResponse $response */ - $response = $alloyDBAdminClient->executeSql($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedInstance = AlloyDBAdminClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]', - '[INSTANCE]' - ); - $database = '[DATABASE]'; - $user = '[USER]'; - $sqlStatement = '[SQL_STATEMENT]'; - - execute_sql_sample($formattedInstance, $database, $user, $sqlStatement); -} -// [END alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/failover_instance.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/failover_instance.php deleted file mode 100644 index d9e7bd0545ce..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/failover_instance.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->failoverInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]', - '[INSTANCE]' - ); - - failover_instance_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_FailoverInstance_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/generate_client_certificate.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/generate_client_certificate.php deleted file mode 100644 index 6a7feedc3186..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/generate_client_certificate.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var GenerateClientCertificateResponse $response */ - $response = $alloyDBAdminClient->generateClientCertificate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - generate_client_certificate_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_GenerateClientCertificate_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_backup.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_backup.php deleted file mode 100644 index fe06b7990a10..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_backup.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Backup $response */ - $response = $alloyDBAdminClient->getBackup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::backupName('[PROJECT]', '[LOCATION]', '[BACKUP]'); - - get_backup_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_GetBackup_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_cluster.php deleted file mode 100644 index bedd163aa413..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_cluster.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Cluster $response */ - $response = $alloyDBAdminClient->getCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - get_cluster_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_GetCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_connection_info.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_connection_info.php deleted file mode 100644 index 55e33045008d..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_connection_info.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ConnectionInfo $response */ - $response = $alloyDBAdminClient->getConnectionInfo($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]', - '[INSTANCE]' - ); - - get_connection_info_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_GetConnectionInfo_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_instance.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_instance.php deleted file mode 100644 index c3253e361ef5..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_instance.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Instance $response */ - $response = $alloyDBAdminClient->getInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]', - '[INSTANCE]' - ); - - get_instance_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_GetInstance_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_location.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_location.php deleted file mode 100644 index add7ebe3ef0d..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END alloydb_v1_generated_AlloyDBAdmin_GetLocation_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_user.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_user.php deleted file mode 100644 index 27fa746c4ef4..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/get_user.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var User $response */ - $response = $alloyDBAdminClient->getUser($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::userName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[USER]'); - - get_user_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_GetUser_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/inject_fault.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/inject_fault.php deleted file mode 100644 index c9bd8dc53baa..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/inject_fault.php +++ /dev/null @@ -1,94 +0,0 @@ -setFaultType($faultType) - ->setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->injectFault($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $faultType = FaultType::FAULT_TYPE_UNSPECIFIED; - $formattedName = AlloyDBAdminClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]', - '[INSTANCE]' - ); - - inject_fault_sample($faultType, $formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_InjectFault_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_backups.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_backups.php deleted file mode 100644 index 17ca6ff0e34e..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_backups.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alloyDBAdminClient->listBackups($request); - - /** @var Backup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::locationName('[PROJECT]', '[LOCATION]'); - - list_backups_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_ListBackups_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_clusters.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_clusters.php deleted file mode 100644 index 265ed183ef91..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_clusters.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alloyDBAdminClient->listClusters($request); - - /** @var Cluster $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::locationName('[PROJECT]', '[LOCATION]'); - - list_clusters_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_ListClusters_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_databases.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_databases.php deleted file mode 100644 index bf3389d01c64..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_databases.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alloyDBAdminClient->listDatabases($request); - - /** @var Database $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - list_databases_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_ListDatabases_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_instances.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_instances.php deleted file mode 100644 index 118098bfdaa6..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_instances.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alloyDBAdminClient->listInstances($request); - - /** @var Instance $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - list_instances_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_ListInstances_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_locations.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_locations.php deleted file mode 100644 index de45f69a3e7c..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END alloydb_v1_generated_AlloyDBAdmin_ListLocations_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_supported_database_flags.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_supported_database_flags.php deleted file mode 100644 index 022d60180553..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_supported_database_flags.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alloyDBAdminClient->listSupportedDatabaseFlags($request); - - /** @var SupportedDatabaseFlag $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::locationName('[PROJECT]', '[LOCATION]'); - - list_supported_database_flags_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_ListSupportedDatabaseFlags_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_users.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_users.php deleted file mode 100644 index f6a57f65c64a..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/list_users.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alloyDBAdminClient->listUsers($request); - - /** @var User $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - list_users_sample($formattedParent); -} -// [END alloydb_v1_generated_AlloyDBAdmin_ListUsers_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/promote_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/promote_cluster.php deleted file mode 100644 index d18be1143a6f..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/promote_cluster.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->promoteCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - promote_cluster_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_PromoteCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/restart_instance.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/restart_instance.php deleted file mode 100644 index cb91e6adc881..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/restart_instance.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->restartInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::instanceName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]', - '[INSTANCE]' - ); - - restart_instance_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_RestartInstance_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/restore_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/restore_cluster.php deleted file mode 100644 index 8d673bb97385..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/restore_cluster.php +++ /dev/null @@ -1,102 +0,0 @@ -setNetwork($formattedClusterNetwork); - $request = (new RestoreClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->restoreCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlloyDBAdminClient::locationName('[PROJECT]', '[LOCATION]'); - $clusterId = '[CLUSTER_ID]'; - $formattedClusterNetwork = AlloyDBAdminClient::networkName('[PROJECT]', '[NETWORK]'); - - restore_cluster_sample($formattedParent, $clusterId, $formattedClusterNetwork); -} -// [END alloydb_v1_generated_AlloyDBAdmin_RestoreCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/switchover_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/switchover_cluster.php deleted file mode 100644 index 8b2f64626634..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/switchover_cluster.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->switchoverCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlloyDBAdminClient::clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - - switchover_cluster_sample($formattedName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_backup.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_backup.php deleted file mode 100644 index 4758efaff1b7..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_backup.php +++ /dev/null @@ -1,90 +0,0 @@ -setClusterName($formattedBackupClusterName); - $request = (new UpdateBackupRequest()) - ->setBackup($backup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->updateBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedBackupClusterName = AlloyDBAdminClient::clusterName( - '[PROJECT]', - '[LOCATION]', - '[CLUSTER]' - ); - - update_backup_sample($formattedBackupClusterName); -} -// [END alloydb_v1_generated_AlloyDBAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_cluster.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_cluster.php deleted file mode 100644 index 901ad2a2f9f5..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_cluster.php +++ /dev/null @@ -1,89 +0,0 @@ -setNetwork($formattedClusterNetwork); - $request = (new UpdateClusterRequest()) - ->setCluster($cluster); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->updateCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedClusterNetwork = AlloyDBAdminClient::networkName('[PROJECT]', '[NETWORK]'); - - update_cluster_sample($formattedClusterNetwork); -} -// [END alloydb_v1_generated_AlloyDBAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_instance.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_instance.php deleted file mode 100644 index 67726a0206af..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_instance.php +++ /dev/null @@ -1,85 +0,0 @@ -setInstanceType($instanceInstanceType); - $request = (new UpdateInstanceRequest()) - ->setInstance($instance); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alloyDBAdminClient->updateInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - - update_instance_sample($instanceInstanceType); -} -// [END alloydb_v1_generated_AlloyDBAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_user.php b/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_user.php deleted file mode 100644 index 91e42059c888..000000000000 --- a/owl-bot-staging/AlloyDb/v1/samples/V1/AlloyDBAdminClient/update_user.php +++ /dev/null @@ -1,59 +0,0 @@ -setUser($user); - - // Call the API and handle any network failures. - try { - /** @var User $response */ - $response = $alloyDBAdminClient->updateUser($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END alloydb_v1_generated_AlloyDBAdmin_UpdateUser_sync] diff --git a/owl-bot-staging/AlloyDb/v1/src/V1/Client/AlloyDBAdminClient.php b/owl-bot-staging/AlloyDb/v1/src/V1/Client/AlloyDBAdminClient.php deleted file mode 100644 index 2413d8c8e738..000000000000 --- a/owl-bot-staging/AlloyDb/v1/src/V1/Client/AlloyDBAdminClient.php +++ /dev/null @@ -1,1430 +0,0 @@ - batchCreateInstancesAsync(BatchCreateInstancesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSecondaryClusterAsync(CreateSecondaryClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSecondaryInstanceAsync(CreateSecondaryInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createUserAsync(CreateUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteUserAsync(DeleteUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface executeSqlAsync(ExecuteSqlRequest $request, array $optionalArgs = []) - * @method PromiseInterface failoverInstanceAsync(FailoverInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateClientCertificateAsync(GenerateClientCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectionInfoAsync(GetConnectionInfoRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getUserAsync(GetUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface injectFaultAsync(InjectFaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDatabasesAsync(ListDatabasesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSupportedDatabaseFlagsAsync(ListSupportedDatabaseFlagsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listUsersAsync(ListUsersRequest $request, array $optionalArgs = []) - * @method PromiseInterface promoteClusterAsync(PromoteClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface restartInstanceAsync(RestartInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreClusterAsync(RestoreClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface switchoverClusterAsync(SwitchoverClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateClusterAsync(UpdateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateInstanceAsync(UpdateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateUserAsync(UpdateUserRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class AlloyDBAdminClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.alloydb.v1.AlloyDBAdmin'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'alloydb.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'alloydb.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/alloy_db_admin_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/alloy_db_admin_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/alloy_db_admin_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/alloy_db_admin_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup - * resource. - * - * @param string $project - * @param string $location - * @param string $backup - * - * @return string The formatted backup resource. - */ - public static function backupName(string $project, string $location, string $backup): string - { - return self::getPathTemplate('backup')->render([ - 'project' => $project, - 'location' => $location, - 'backup' => $backup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a cluster - * resource. - * - * @param string $project - * @param string $location - * @param string $cluster - * - * @return string The formatted cluster resource. - */ - public static function clusterName(string $project, string $location, string $cluster): string - { - return self::getPathTemplate('cluster')->render([ - 'project' => $project, - 'location' => $location, - 'cluster' => $cluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * crypto_key_version resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * @param string $cryptoKeyVersion - * - * @return string The formatted crypto_key_version resource. - */ - public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string - { - return self::getPathTemplate('cryptoKeyVersion')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - 'crypto_key_version' => $cryptoKeyVersion, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $cluster - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $cluster, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'cluster' => $cluster, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $project - * @param string $network - * - * @return string The formatted network resource. - */ - public static function networkName(string $project, string $network): string - { - return self::getPathTemplate('network')->render([ - 'project' => $project, - 'network' => $network, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a user - * resource. - * - * @param string $project - * @param string $location - * @param string $cluster - * @param string $user - * - * @return string The formatted user resource. - */ - public static function userName(string $project, string $location, string $cluster, string $user): string - { - return self::getPathTemplate('user')->render([ - 'project' => $project, - 'location' => $location, - 'cluster' => $cluster, - 'user' => $user, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - backup: projects/{project}/locations/{location}/backups/{backup} - * - cluster: projects/{project}/locations/{location}/clusters/{cluster} - * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} - * - instance: projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} - * - location: projects/{project}/locations/{location} - * - network: projects/{project}/global/networks/{network} - * - user: projects/{project}/locations/{location}/clusters/{cluster}/users/{user} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'alloydb.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates new instances under the given project, location and cluster. - * There can be only one primary instance in a cluster. If the primary - * instance exists in the cluster as well as this request, then API will - * throw an error. - * The primary instance should exist before any read pool instance is - * created. If the primary instance is a part of the request payload, then - * the API will take care of creating instances in the correct order. - * This method is here to support Google-internal use cases, and is not meant - * for external customers to consume. Please do not start relying on it; its - * behavior is subject to change without notice. - * - * The async variant is {@see AlloyDBAdminClient::batchCreateInstancesAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/batch_create_instances.php - * - * @param BatchCreateInstancesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchCreateInstances(BatchCreateInstancesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('BatchCreateInstances', $request, $callOptions)->wait(); - } - - /** - * Creates a new Backup in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::createBackupAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/create_backup.php - * - * @param CreateBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackup', $request, $callOptions)->wait(); - } - - /** - * Creates a new Cluster in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::createClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/create_cluster.php - * - * @param CreateClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCluster(CreateClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateCluster', $request, $callOptions)->wait(); - } - - /** - * Creates a new Instance in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::createInstanceAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/create_instance.php - * - * @param CreateInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createInstance(CreateInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateInstance', $request, $callOptions)->wait(); - } - - /** - * Creates a cluster of type SECONDARY in the given location using - * the primary cluster as the source. - * - * The async variant is {@see AlloyDBAdminClient::createSecondaryClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/create_secondary_cluster.php - * - * @param CreateSecondaryClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSecondaryCluster(CreateSecondaryClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateSecondaryCluster', $request, $callOptions)->wait(); - } - - /** - * Creates a new SECONDARY Instance in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::createSecondaryInstanceAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/create_secondary_instance.php - * - * @param CreateSecondaryInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSecondaryInstance(CreateSecondaryInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateSecondaryInstance', $request, $callOptions)->wait(); - } - - /** - * Creates a new User in a given project, location, and cluster. - * - * The async variant is {@see AlloyDBAdminClient::createUserAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/create_user.php - * - * @param CreateUserRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return User - * - * @throws ApiException Thrown if the API call fails. - */ - public function createUser(CreateUserRequest $request, array $callOptions = []): User - { - return $this->startApiCall('CreateUser', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Backup. - * - * The async variant is {@see AlloyDBAdminClient::deleteBackupAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/delete_backup.php - * - * @param DeleteBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackup', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Cluster. - * - * The async variant is {@see AlloyDBAdminClient::deleteClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/delete_cluster.php - * - * @param DeleteClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteCluster(DeleteClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteCluster', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Instance. - * - * The async variant is {@see AlloyDBAdminClient::deleteInstanceAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/delete_instance.php - * - * @param DeleteInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteInstance(DeleteInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteInstance', $request, $callOptions)->wait(); - } - - /** - * Deletes a single User. - * - * The async variant is {@see AlloyDBAdminClient::deleteUserAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/delete_user.php - * - * @param DeleteUserRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteUser(DeleteUserRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteUser', $request, $callOptions)->wait(); - } - - /** - * Executes a SQL statement in a database inside an AlloyDB instance. - * - * The async variant is {@see AlloyDBAdminClient::executeSqlAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/execute_sql.php - * - * @param ExecuteSqlRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExecuteSqlResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function executeSql(ExecuteSqlRequest $request, array $callOptions = []): ExecuteSqlResponse - { - return $this->startApiCall('ExecuteSql', $request, $callOptions)->wait(); - } - - /** - * Forces a Failover for a highly available instance. - * Failover promotes the HA standby instance as the new primary. - * Imperative only. - * - * The async variant is {@see AlloyDBAdminClient::failoverInstanceAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/failover_instance.php - * - * @param FailoverInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function failoverInstance(FailoverInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('FailoverInstance', $request, $callOptions)->wait(); - } - - /** - * Generate a client certificate signed by a Cluster CA. - * The sole purpose of this endpoint is to support AlloyDB connectors and the - * Auth Proxy client. The endpoint's behavior is subject to change without - * notice, so do not rely on its behavior remaining constant. Future changes - * will not break AlloyDB connectors or the Auth Proxy client. - * - * The async variant is {@see AlloyDBAdminClient::generateClientCertificateAsync()} - * . - * - * @example samples/V1/AlloyDBAdminClient/generate_client_certificate.php - * - * @param GenerateClientCertificateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GenerateClientCertificateResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function generateClientCertificate(GenerateClientCertificateRequest $request, array $callOptions = []): GenerateClientCertificateResponse - { - return $this->startApiCall('GenerateClientCertificate', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Backup. - * - * The async variant is {@see AlloyDBAdminClient::getBackupAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/get_backup.php - * - * @param GetBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Backup - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup - { - return $this->startApiCall('GetBackup', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Cluster. - * - * The async variant is {@see AlloyDBAdminClient::getClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/get_cluster.php - * - * @param GetClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Cluster - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCluster(GetClusterRequest $request, array $callOptions = []): Cluster - { - return $this->startApiCall('GetCluster', $request, $callOptions)->wait(); - } - - /** - * Get instance metadata used for a connection. - * - * The async variant is {@see AlloyDBAdminClient::getConnectionInfoAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/get_connection_info.php - * - * @param GetConnectionInfoRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConnectionInfo - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConnectionInfo(GetConnectionInfoRequest $request, array $callOptions = []): ConnectionInfo - { - return $this->startApiCall('GetConnectionInfo', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Instance. - * - * The async variant is {@see AlloyDBAdminClient::getInstanceAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/get_instance.php - * - * @param GetInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Instance - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance - { - return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single User. - * - * The async variant is {@see AlloyDBAdminClient::getUserAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/get_user.php - * - * @param GetUserRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return User - * - * @throws ApiException Thrown if the API call fails. - */ - public function getUser(GetUserRequest $request, array $callOptions = []): User - { - return $this->startApiCall('GetUser', $request, $callOptions)->wait(); - } - - /** - * Injects fault in an instance. - * Imperative only. - * - * The async variant is {@see AlloyDBAdminClient::injectFaultAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/inject_fault.php - * - * @param InjectFaultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function injectFault(InjectFaultRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('InjectFault', $request, $callOptions)->wait(); - } - - /** - * Lists Backups in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::listBackupsAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/list_backups.php - * - * @param ListBackupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackups', $request, $callOptions); - } - - /** - * Lists Clusters in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::listClustersAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/list_clusters.php - * - * @param ListClustersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listClusters(ListClustersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListClusters', $request, $callOptions); - } - - /** - * Lists Databases in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::listDatabasesAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/list_databases.php - * - * @param ListDatabasesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDatabases(ListDatabasesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDatabases', $request, $callOptions); - } - - /** - * Lists Instances in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::listInstancesAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/list_instances.php - * - * @param ListInstancesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listInstances(ListInstancesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListInstances', $request, $callOptions); - } - - /** - * Lists SupportedDatabaseFlags for a given project and location. - * - * The async variant is - * {@see AlloyDBAdminClient::listSupportedDatabaseFlagsAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/list_supported_database_flags.php - * - * @param ListSupportedDatabaseFlagsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSupportedDatabaseFlags(ListSupportedDatabaseFlagsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSupportedDatabaseFlags', $request, $callOptions); - } - - /** - * Lists Users in a given project and location. - * - * The async variant is {@see AlloyDBAdminClient::listUsersAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/list_users.php - * - * @param ListUsersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listUsers(ListUsersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListUsers', $request, $callOptions); - } - - /** - * Promotes a SECONDARY cluster. This turns down replication - * from the PRIMARY cluster and promotes a secondary cluster - * into its own standalone cluster. - * Imperative only. - * - * The async variant is {@see AlloyDBAdminClient::promoteClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/promote_cluster.php - * - * @param PromoteClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function promoteCluster(PromoteClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('PromoteCluster', $request, $callOptions)->wait(); - } - - /** - * Restart an Instance in a cluster. - * Imperative only. - * - * The async variant is {@see AlloyDBAdminClient::restartInstanceAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/restart_instance.php - * - * @param RestartInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function restartInstance(RestartInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RestartInstance', $request, $callOptions)->wait(); - } - - /** - * Creates a new Cluster in a given project and location, with a volume - * restored from the provided source, either a backup ID or a point-in-time - * and a source cluster. - * - * The async variant is {@see AlloyDBAdminClient::restoreClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/restore_cluster.php - * - * @param RestoreClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function restoreCluster(RestoreClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RestoreCluster', $request, $callOptions)->wait(); - } - - /** - * Switches the roles of PRIMARY and SECONDARY clusters without any data loss. - * This promotes the SECONDARY cluster to PRIMARY and sets up the original - * PRIMARY cluster to replicate from this newly promoted cluster. - * - * The async variant is {@see AlloyDBAdminClient::switchoverClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/switchover_cluster.php - * - * @param SwitchoverClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function switchoverCluster(SwitchoverClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('SwitchoverCluster', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single Backup. - * - * The async variant is {@see AlloyDBAdminClient::updateBackupAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/update_backup.php - * - * @param UpdateBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateBackup(UpdateBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateBackup', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single Cluster. - * - * The async variant is {@see AlloyDBAdminClient::updateClusterAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/update_cluster.php - * - * @param UpdateClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCluster(UpdateClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateCluster', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single Instance. - * - * The async variant is {@see AlloyDBAdminClient::updateInstanceAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/update_instance.php - * - * @param UpdateInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateInstance(UpdateInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateInstance', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single User. - * - * The async variant is {@see AlloyDBAdminClient::updateUserAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/update_user.php - * - * @param UpdateUserRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return User - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateUser(UpdateUserRequest $request, array $callOptions = []): User - { - return $this->startApiCall('UpdateUser', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see AlloyDBAdminClient::getLocationAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see AlloyDBAdminClient::listLocationsAsync()} . - * - * @example samples/V1/AlloyDBAdminClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AlloyDb/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AlloyDb/v1/src/V1/gapic_metadata.json deleted file mode 100644 index a68014194117..000000000000 --- a/owl-bot-staging/AlloyDb/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.alloydb.v1", - "libraryPackage": "Google\\Cloud\\AlloyDb\\V1", - "services": { - "AlloyDBAdmin": { - "clients": { - "grpc": { - "libraryClient": "AlloyDBAdminGapicClient", - "rpcs": { - "BatchCreateInstances": { - "methods": [ - "batchCreateInstances" - ] - }, - "CreateBackup": { - "methods": [ - "createBackup" - ] - }, - "CreateCluster": { - "methods": [ - "createCluster" - ] - }, - "CreateInstance": { - "methods": [ - "createInstance" - ] - }, - "CreateSecondaryCluster": { - "methods": [ - "createSecondaryCluster" - ] - }, - "CreateSecondaryInstance": { - "methods": [ - "createSecondaryInstance" - ] - }, - "CreateUser": { - "methods": [ - "createUser" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "DeleteCluster": { - "methods": [ - "deleteCluster" - ] - }, - "DeleteInstance": { - "methods": [ - "deleteInstance" - ] - }, - "DeleteUser": { - "methods": [ - "deleteUser" - ] - }, - "ExecuteSql": { - "methods": [ - "executeSql" - ] - }, - "FailoverInstance": { - "methods": [ - "failoverInstance" - ] - }, - "GenerateClientCertificate": { - "methods": [ - "generateClientCertificate" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "GetCluster": { - "methods": [ - "getCluster" - ] - }, - "GetConnectionInfo": { - "methods": [ - "getConnectionInfo" - ] - }, - "GetInstance": { - "methods": [ - "getInstance" - ] - }, - "GetUser": { - "methods": [ - "getUser" - ] - }, - "InjectFault": { - "methods": [ - "injectFault" - ] - }, - "ListBackups": { - "methods": [ - "listBackups" - ] - }, - "ListClusters": { - "methods": [ - "listClusters" - ] - }, - "ListDatabases": { - "methods": [ - "listDatabases" - ] - }, - "ListInstances": { - "methods": [ - "listInstances" - ] - }, - "ListSupportedDatabaseFlags": { - "methods": [ - "listSupportedDatabaseFlags" - ] - }, - "ListUsers": { - "methods": [ - "listUsers" - ] - }, - "PromoteCluster": { - "methods": [ - "promoteCluster" - ] - }, - "RestartInstance": { - "methods": [ - "restartInstance" - ] - }, - "RestoreCluster": { - "methods": [ - "restoreCluster" - ] - }, - "SwitchoverCluster": { - "methods": [ - "switchoverCluster" - ] - }, - "UpdateBackup": { - "methods": [ - "updateBackup" - ] - }, - "UpdateCluster": { - "methods": [ - "updateCluster" - ] - }, - "UpdateInstance": { - "methods": [ - "updateInstance" - ] - }, - "UpdateUser": { - "methods": [ - "updateUser" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_client_config.json b/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_client_config.json deleted file mode 100644 index dce1aa00708b..000000000000 --- a/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_client_config.json +++ /dev/null @@ -1,224 +0,0 @@ -{ - "interfaces": { - "google.cloud.alloydb.v1.AlloyDBAdmin": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": { - "BatchCreateInstances": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateSecondaryCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateSecondaryInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateUser": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteUser": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ExecuteSql": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "FailoverInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GenerateClientCertificate": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetBackup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCluster": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConnectionInfo": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetInstance": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetUser": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "InjectFault": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListBackups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListClusters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDatabases": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListInstances": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSupportedDatabaseFlags": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListUsers": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "PromoteCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RestartInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RestoreCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SwitchoverCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateCluster": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateUser": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_descriptor_config.php b/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_descriptor_config.php deleted file mode 100644 index 9ef950d79dea..000000000000 --- a/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_descriptor_config.php +++ /dev/null @@ -1,657 +0,0 @@ - [ - 'google.cloud.alloydb.v1.AlloyDBAdmin' => [ - 'BatchCreateInstances' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\BatchCreateInstancesResponse', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Backup', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Cluster', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSecondaryCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Cluster', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSecondaryInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FailoverInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InjectFault' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'PromoteCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Cluster', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RestartInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RestoreCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Cluster', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SwitchoverCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Cluster', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Backup', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'backup.name', - 'fieldAccessors' => [ - 'getBackup', - 'getName', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Cluster', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'cluster.name', - 'fieldAccessors' => [ - 'getCluster', - 'getName', - ], - ], - ], - ], - 'UpdateInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AlloyDb\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\AlloyDb\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'instance.name', - 'fieldAccessors' => [ - 'getInstance', - 'getName', - ], - ], - ], - ], - 'CreateUser' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\User', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteUser' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExecuteSql' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ExecuteSqlResponse', - 'headerParams' => [ - [ - 'keyName' => 'instance', - 'fieldAccessors' => [ - 'getInstance', - ], - ], - ], - ], - 'GenerateClientCertificate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\GenerateClientCertificateResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\Backup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\Cluster', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConnectionInfo' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ConnectionInfo', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\Instance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetUser' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\User', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ListBackupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListClusters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getClusters', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ListClustersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDatabases' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDatabases', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ListDatabasesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListInstances' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getInstances', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ListInstancesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSupportedDatabaseFlags' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSupportedDatabaseFlags', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ListSupportedDatabaseFlagsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListUsers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getUsers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\ListUsersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateUser' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AlloyDb\V1\User', - 'headerParams' => [ - [ - 'keyName' => 'user.name', - 'fieldAccessors' => [ - 'getUser', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'backup' => 'projects/{project}/locations/{location}/backups/{backup}', - 'cluster' => 'projects/{project}/locations/{location}/clusters/{cluster}', - 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', - 'instance' => 'projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}', - 'location' => 'projects/{project}/locations/{location}', - 'network' => 'projects/{project}/global/networks/{network}', - 'user' => 'projects/{project}/locations/{location}/clusters/{cluster}/users/{user}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_rest_client_config.php b/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_rest_client_config.php deleted file mode 100644 index cf153a4e6a9f..000000000000 --- a/owl-bot-staging/AlloyDb/v1/src/V1/resources/alloy_db_admin_rest_client_config.php +++ /dev/null @@ -1,509 +0,0 @@ - [ - 'google.cloud.alloydb.v1.AlloyDBAdmin' => [ - 'BatchCreateInstances' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/instances:batchCreate', - 'body' => 'requests', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backups', - 'body' => 'backup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_id', - ], - ], - 'CreateCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'body' => 'cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'cluster_id', - ], - ], - 'CreateInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/instances', - 'body' => 'instance', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'instance_id', - ], - ], - 'CreateSecondaryCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters:createsecondary', - 'body' => 'cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSecondaryInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/instances:createsecondary', - 'body' => 'instance', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateUser' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/users', - 'body' => 'user', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'user_id', - ], - ], - 'DeleteBackup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInstance' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteUser' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/users/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExecuteSql' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{instance=projects/*/locations/*/clusters/*/instances/*}:executeSql', - 'body' => '*', - 'placeholders' => [ - 'instance' => [ - 'getters' => [ - 'getInstance', - ], - ], - ], - ], - 'FailoverInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/instances/*}:failover', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateClientCertificate' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}:generateClientCertificate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetBackup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConnectionInfo' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*/instances/*}/connectionInfo', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetUser' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/users/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InjectFault' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/instances/*}:injectFault', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDatabases' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/databases', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListInstances' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/instances', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSupportedDatabaseFlags' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/supportedDatabaseFlags', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListUsers' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/users', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'PromoteCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:promote', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RestartInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/instances/*}:restart', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RestoreCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters:restore', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SwitchoverCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:switchover', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateBackup' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{backup.name=projects/*/locations/*/backups/*}', - 'body' => 'backup', - 'placeholders' => [ - 'backup.name' => [ - 'getters' => [ - 'getBackup', - 'getName', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{cluster.name=projects/*/locations/*/clusters/*}', - 'body' => 'cluster', - 'placeholders' => [ - 'cluster.name' => [ - 'getters' => [ - 'getCluster', - 'getName', - ], - ], - ], - ], - 'UpdateInstance' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{instance.name=projects/*/locations/*/clusters/*/instances/*}', - 'body' => 'instance', - 'placeholders' => [ - 'instance.name' => [ - 'getters' => [ - 'getInstance', - 'getName', - ], - ], - ], - ], - 'UpdateUser' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{user.name=projects/*/locations/*/clusters/*/users/*}', - 'body' => 'user', - 'placeholders' => [ - 'user.name' => [ - 'getters' => [ - 'getUser', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AlloyDb/v1/tests/Unit/V1/Client/AlloyDBAdminClientTest.php b/owl-bot-staging/AlloyDb/v1/tests/Unit/V1/Client/AlloyDBAdminClientTest.php deleted file mode 100644 index cae2b2f1ccc2..000000000000 --- a/owl-bot-staging/AlloyDb/v1/tests/Unit/V1/Client/AlloyDBAdminClientTest.php +++ /dev/null @@ -1,4011 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AlloyDBAdminClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AlloyDBAdminClient($options); - } - - /** @test */ - public function batchCreateInstancesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateInstancesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchCreateInstancesResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchCreateInstancesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $requests = new CreateInstanceRequests(); - $requestsCreateInstanceRequests = []; - $requests->setCreateInstanceRequests($requestsCreateInstanceRequests); - $request = (new BatchCreateInstancesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateInstances($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/BatchCreateInstances', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateInstancesTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function batchCreateInstancesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateInstancesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $requests = new CreateInstanceRequests(); - $requestsCreateInstanceRequests = []; - $requests->setCreateInstanceRequests($requestsCreateInstanceRequests); - $request = (new BatchCreateInstancesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateInstances($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateInstancesTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $clusterUid = 'clusterUid-1141213045'; - $clusterName = 'clusterName-1018081872'; - $reconciling = false; - $etag = 'etag3123477'; - $sizeBytes = 1796325715; - $satisfiesPzs = false; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setClusterUid($clusterUid); - $expectedResponse->setClusterName($clusterName); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $backupClusterName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $backup->setClusterName($backupClusterName); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/CreateBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupId(); - $this->assertProtobufEquals($backupId, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $backupClusterName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $backup->setClusterName($backupClusterName); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $network = 'network1843485230'; - $etag = 'etag3123477'; - $reconciling = false; - $satisfiesPzs = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setNetwork($network); - $expectedResponse->setEtag($etag); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new CreateClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->createCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/CreateCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualApiRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new CreateClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->createCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $gceZone = 'gceZone-227587294'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $reconciling = false; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setGceZone($gceZone); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - $instance->setInstanceType($instanceInstanceType); - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - $response = $gapicClient->createInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/CreateInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getInstanceId(); - $this->assertProtobufEquals($instanceId, $actualValue); - $actualValue = $actualApiRequestObject->getInstance(); - $this->assertProtobufEquals($instance, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - $instance->setInstanceType($instanceInstanceType); - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - $response = $gapicClient->createInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSecondaryClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSecondaryClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $network = 'network1843485230'; - $etag = 'etag3123477'; - $reconciling = false; - $satisfiesPzs = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setNetwork($network); - $expectedResponse->setEtag($etag); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSecondaryClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new CreateSecondaryClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->createSecondaryCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/CreateSecondaryCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualApiRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSecondaryClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSecondaryClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSecondaryClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new CreateSecondaryClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->createSecondaryCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSecondaryClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSecondaryInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSecondaryInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $gceZone = 'gceZone-227587294'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $reconciling = false; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setGceZone($gceZone); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSecondaryInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - $instance->setInstanceType($instanceInstanceType); - $request = (new CreateSecondaryInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - $response = $gapicClient->createSecondaryInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/CreateSecondaryInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getInstanceId(); - $this->assertProtobufEquals($instanceId, $actualValue); - $actualValue = $actualApiRequestObject->getInstance(); - $this->assertProtobufEquals($instance, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSecondaryInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSecondaryInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSecondaryInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - $instance->setInstanceType($instanceInstanceType); - $request = (new CreateSecondaryInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - $response = $gapicClient->createSecondaryInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSecondaryInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createUserTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $password = 'password1216985755'; - $keepExtraRoles = true; - $expectedResponse = new User(); - $expectedResponse->setName($name); - $expectedResponse->setPassword($password); - $expectedResponse->setKeepExtraRoles($keepExtraRoles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $userId = 'userId-147132913'; - $user = new User(); - $request = (new CreateUserRequest()) - ->setParent($formattedParent) - ->setUserId($userId) - ->setUser($user); - $response = $gapicClient->createUser($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/CreateUser', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserId(); - $this->assertProtobufEquals($userId, $actualValue); - $actualValue = $actualRequestObject->getUser(); - $this->assertProtobufEquals($user, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createUserExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $userId = 'userId-147132913'; - $user = new User(); - $request = (new CreateUserRequest()) - ->setParent($formattedParent) - ->setUserId($userId) - ->setUser($user); - try { - $gapicClient->createUser($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/DeleteBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new DeleteClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/DeleteCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new DeleteClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new DeleteInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/DeleteInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new DeleteInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteUserTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->userName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[USER]'); - $request = (new DeleteUserRequest()) - ->setName($formattedName); - $gapicClient->deleteUser($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/DeleteUser', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteUserExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->userName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[USER]'); - $request = (new DeleteUserRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteUser($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function executeSqlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ExecuteSqlResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedInstance = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $database = 'database1789464955'; - $user = 'user3599307'; - $sqlStatement = 'sqlStatement-2051442626'; - $request = (new ExecuteSqlRequest()) - ->setInstance($formattedInstance) - ->setDatabase($database) - ->setUser($user) - ->setSqlStatement($sqlStatement); - $response = $gapicClient->executeSql($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/ExecuteSql', $actualFuncCall); - $actualValue = $actualRequestObject->getInstance(); - $this->assertProtobufEquals($formattedInstance, $actualValue); - $actualValue = $actualRequestObject->getDatabase(); - $this->assertProtobufEquals($database, $actualValue); - $actualValue = $actualRequestObject->getUser(); - $this->assertProtobufEquals($user, $actualValue); - $actualValue = $actualRequestObject->getSqlStatement(); - $this->assertProtobufEquals($sqlStatement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function executeSqlExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedInstance = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $database = 'database1789464955'; - $user = 'user3599307'; - $sqlStatement = 'sqlStatement-2051442626'; - $request = (new ExecuteSqlRequest()) - ->setInstance($formattedInstance) - ->setDatabase($database) - ->setUser($user) - ->setSqlStatement($sqlStatement); - try { - $gapicClient->executeSql($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function failoverInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/failoverInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $gceZone = 'gceZone-227587294'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $reconciling = false; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setGceZone($gceZone); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/failoverInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new FailoverInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->failoverInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/FailoverInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/failoverInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function failoverInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/failoverInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new FailoverInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->failoverInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/failoverInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function generateClientCertificateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $caCert = 'caCert536363365'; - $expectedResponse = new GenerateClientCertificateResponse(); - $expectedResponse->setCaCert($caCert); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new GenerateClientCertificateRequest()) - ->setParent($formattedParent); - $response = $gapicClient->generateClientCertificate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/GenerateClientCertificate', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateClientCertificateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new GenerateClientCertificateRequest()) - ->setParent($formattedParent); - try { - $gapicClient->generateClientCertificate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $clusterUid = 'clusterUid-1141213045'; - $clusterName = 'clusterName-1018081872'; - $reconciling = false; - $etag = 'etag3123477'; - $sizeBytes = 1796325715; - $satisfiesPzs = false; - $expectedResponse = new Backup(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setClusterUid($clusterUid); - $expectedResponse->setClusterName($clusterName); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/GetBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $network = 'network1843485230'; - $etag = 'etag3123477'; - $reconciling = false; - $satisfiesPzs = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setNetwork($network); - $expectedResponse->setEtag($etag); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new GetClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->getCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/GetCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new GetClusterRequest()) - ->setName($formattedName); - try { - $gapicClient->getCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionInfoTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $instanceUid = 'instanceUid-737331802'; - $expectedResponse = new ConnectionInfo(); - $expectedResponse->setName($name); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setInstanceUid($instanceUid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new GetConnectionInfoRequest()) - ->setParent($formattedParent); - $response = $gapicClient->getConnectionInfo($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/GetConnectionInfo', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionInfoExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new GetConnectionInfoRequest()) - ->setParent($formattedParent); - try { - $gapicClient->getConnectionInfo($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $gceZone = 'gceZone-227587294'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $reconciling = false; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setGceZone($gceZone); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/GetInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - try { - $gapicClient->getInstance($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getUserTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $password = 'password1216985755'; - $keepExtraRoles = true; - $expectedResponse = new User(); - $expectedResponse->setName($name2); - $expectedResponse->setPassword($password); - $expectedResponse->setKeepExtraRoles($keepExtraRoles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->userName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - $response = $gapicClient->getUser($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/GetUser', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getUserExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->userName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[USER]'); - $request = (new GetUserRequest()) - ->setName($formattedName); - try { - $gapicClient->getUser($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function injectFaultTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/injectFaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $gceZone = 'gceZone-227587294'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $reconciling = false; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setGceZone($gceZone); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/injectFaultTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $faultType = FaultType::FAULT_TYPE_UNSPECIFIED; - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new InjectFaultRequest()) - ->setFaultType($faultType) - ->setName($formattedName); - $response = $gapicClient->injectFault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/InjectFault', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getFaultType(); - $this->assertProtobufEquals($faultType, $actualValue); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/injectFaultTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function injectFaultExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/injectFaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $faultType = FaultType::FAULT_TYPE_UNSPECIFIED; - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new InjectFaultRequest()) - ->setFaultType($faultType) - ->setName($formattedName); - $response = $gapicClient->injectFault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/injectFaultTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function listBackupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupsElement = new Backup(); - $backups = [ - $backupsElement, - ]; - $expectedResponse = new ListBackupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackups($backups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/ListBackups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackups($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $clustersElement = new Cluster(); - $clusters = [ - $clustersElement, - ]; - $expectedResponse = new ListClustersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setClusters($clusters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListClustersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listClusters($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getClusters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/ListClusters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListClustersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listClusters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDatabasesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $databasesElement = new Database(); - $databases = [ - $databasesElement, - ]; - $expectedResponse = new ListDatabasesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDatabases($databases); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new ListDatabasesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDatabases($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDatabases()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/ListDatabases', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDatabasesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new ListDatabasesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDatabases($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInstancesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $instancesElement = new Instance(); - $instances = [ - $instancesElement, - ]; - $expectedResponse = new ListInstancesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setInstances($instances); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new ListInstancesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listInstances($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getInstances()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/ListInstances', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInstancesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new ListInstancesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listInstances($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSupportedDatabaseFlagsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $supportedDatabaseFlagsElement = new SupportedDatabaseFlag(); - $supportedDatabaseFlags = [ - $supportedDatabaseFlagsElement, - ]; - $expectedResponse = new ListSupportedDatabaseFlagsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSupportedDatabaseFlags($supportedDatabaseFlags); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListSupportedDatabaseFlagsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSupportedDatabaseFlags($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSupportedDatabaseFlags()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/ListSupportedDatabaseFlags', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSupportedDatabaseFlagsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListSupportedDatabaseFlagsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSupportedDatabaseFlags($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $usersElement = new User(); - $users = [ - $usersElement, - ]; - $expectedResponse = new ListUsersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setUsers($users); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new ListUsersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listUsers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getUsers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/ListUsers', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new ListUsersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listUsers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function promoteClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/promoteClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $network = 'network1843485230'; - $etag2 = 'etag2-1293302904'; - $reconciling = false; - $satisfiesPzs = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setNetwork($network); - $expectedResponse->setEtag($etag2); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/promoteClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new PromoteClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->promoteCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/PromoteCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/promoteClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function promoteClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/promoteClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new PromoteClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->promoteCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/promoteClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function restartInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restartInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $gceZone = 'gceZone-227587294'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $reconciling = false; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setGceZone($gceZone); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/restartInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new RestartInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->restartInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/RestartInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restartInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function restartInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restartInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[CLUSTER]', '[INSTANCE]'); - $request = (new RestartInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->restartInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restartInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function restoreClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $network = 'network1843485230'; - $etag = 'etag3123477'; - $reconciling = false; - $satisfiesPzs = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setNetwork($network); - $expectedResponse->setEtag($etag); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/restoreClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new RestoreClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->restoreCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/RestoreCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualApiRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function restoreClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new RestoreClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->restoreCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function switchoverClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/switchoverClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $network = 'network1843485230'; - $etag = 'etag3123477'; - $reconciling = false; - $satisfiesPzs = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setNetwork($network); - $expectedResponse->setEtag($etag); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/switchoverClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new SwitchoverClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->switchoverCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/SwitchoverCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/switchoverClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function switchoverClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/switchoverClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $request = (new SwitchoverClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->switchoverCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/switchoverClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $clusterUid = 'clusterUid-1141213045'; - $clusterName = 'clusterName-1018081872'; - $reconciling = false; - $etag = 'etag3123477'; - $sizeBytes = 1796325715; - $satisfiesPzs = false; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setClusterUid($clusterUid); - $expectedResponse->setClusterName($clusterName); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $backup = new Backup(); - $backupClusterName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $backup->setClusterName($backupClusterName); - $request = (new UpdateBackupRequest()) - ->setBackup($backup); - $response = $gapicClient->updateBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/UpdateBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $backup = new Backup(); - $backupClusterName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $backup->setClusterName($backupClusterName); - $request = (new UpdateBackupRequest()) - ->setBackup($backup); - $response = $gapicClient->updateBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $network = 'network1843485230'; - $etag = 'etag3123477'; - $reconciling = false; - $satisfiesPzs = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setNetwork($network); - $expectedResponse->setEtag($etag); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new UpdateClusterRequest()) - ->setCluster($cluster); - $response = $gapicClient->updateCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/UpdateCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $cluster = new Cluster(); - $clusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); - $cluster->setNetwork($clusterNetwork); - $request = (new UpdateClusterRequest()) - ->setCluster($cluster); - $response = $gapicClient->updateCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $gceZone = 'gceZone-227587294'; - $ipAddress = 'ipAddress1480014044'; - $publicIpAddress = 'publicIpAddress2014408818'; - $reconciling = false; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setGceZone($gceZone); - $expectedResponse->setIpAddress($ipAddress); - $expectedResponse->setPublicIpAddress($publicIpAddress); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $instance = new Instance(); - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - $instance->setInstanceType($instanceInstanceType); - $request = (new UpdateInstanceRequest()) - ->setInstance($instance); - $response = $gapicClient->updateInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/UpdateInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getInstance(); - $this->assertProtobufEquals($instance, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $instance = new Instance(); - $instanceInstanceType = InstanceType::INSTANCE_TYPE_UNSPECIFIED; - $instance->setInstanceType($instanceInstanceType); - $request = (new UpdateInstanceRequest()) - ->setInstance($instance); - $response = $gapicClient->updateInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateUserTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $password = 'password1216985755'; - $keepExtraRoles = true; - $expectedResponse = new User(); - $expectedResponse->setName($name); - $expectedResponse->setPassword($password); - $expectedResponse->setKeepExtraRoles($keepExtraRoles); - $transport->addResponse($expectedResponse); - // Mock request - $user = new User(); - $request = (new UpdateUserRequest()) - ->setUser($user); - $response = $gapicClient->updateUser($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/UpdateUser', $actualFuncCall); - $actualValue = $actualRequestObject->getUser(); - $this->assertProtobufEquals($user, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateUserExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $user = new User(); - $request = (new UpdateUserRequest()) - ->setUser($user); - try { - $gapicClient->updateUser($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateInstancesAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateInstancesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchCreateInstancesResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchCreateInstancesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]'); - $requests = new CreateInstanceRequests(); - $requestsCreateInstanceRequests = []; - $requests->setCreateInstanceRequests($requestsCreateInstanceRequests); - $request = (new BatchCreateInstancesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateInstancesAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.alloydb.v1.AlloyDBAdmin/BatchCreateInstances', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateInstancesTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php deleted file mode 100644 index 1eb5b5e48943..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AccessReport.php and /dev/null differ 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 468b667bec6e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/AnalyticsAdmin.php +++ /dev/null @@ -1,831 +0,0 @@ -internalAddGeneratedFile( - ' - -4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alpha-google/analytics/admin/v1alpha/audience.proto2google/analytics/admin/v1alpha/channel_group.proto:google/analytics/admin/v1alpha/event_create_and_edit.proto6google/analytics/admin/v1alpha/expanded_data_set.proto.google/analytics/admin/v1alpha/resources.proto=google/analytics/admin/v1alpha/subproperty_event_filter.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto" -RunAccessReportRequest -entity ( C - -dimensions ( 2/.google.analytics.admin.v1alpha.AccessDimension= -metrics ( 2,.google.analytics.admin.v1alpha.AccessMetricD - date_ranges ( 2/.google.analytics.admin.v1alpha.AccessDateRangeP -dimension_filter ( 26.google.analytics.admin.v1alpha.AccessFilterExpressionM - metric_filter ( 26.google.analytics.admin.v1alpha.AccessFilterExpression -offset ( -limit ( - time_zone ( @ - order_bys - ( 2-.google.analytics.admin.v1alpha.AccessOrderBy -return_entity_quota ( -include_all_users (BA - expand_groups (BA" -RunAccessReportResponseP -dimension_headers ( 25.google.analytics.admin.v1alpha.AccessDimensionHeaderJ -metric_headers ( 22.google.analytics.admin.v1alpha.AccessMetricHeader7 -rows ( 2).google.analytics.admin.v1alpha.AccessRow - row_count (: -quota ( 2+.google.analytics.admin.v1alpha.AccessQuota"P -GetAccountRequest; -name ( B-AA\' -%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-AA\' -%analyticsadmin.googleapis.com/Account" -UpdateAccountRequest= -account ( 2\'.google.analytics.admin.v1alpha.AccountBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"o -ProvisionAccountTicketRequest8 -account ( 2\'.google.analytics.admin.v1alpha.Account - redirect_uri ( "; -ProvisionAccountTicketResponse -account_ticket_id ( "R -GetPropertyRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/Property"i -ListPropertiesRequest -filter ( BA - 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.PropertyBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"X -CreatePropertyRequest? -property ( 2(.google.analytics.admin.v1alpha.PropertyBA"U -DeletePropertyRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/Property" -CreateFirebaseLinkRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/FirebaseLinkH - firebase_link ( 2,.google.analytics.admin.v1alpha.FirebaseLinkBA"] -DeleteFirebaseLinkRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/FirebaseLink" -ListFirebaseLinksRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/FirebaseLink - page_size ( - -page_token ( "z -ListFirebaseLinksResponseD -firebase_links ( 2,.google.analytics.admin.v1alpha.FirebaseLink -next_page_token ( "\\ -GetGlobalSiteTagRequestA -name ( B3AA- -+analyticsadmin.googleapis.com/GlobalSiteTag" -CreateGoogleAdsLinkRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/GoogleAdsLinkK -google_ads_link ( 2-.google.analytics.admin.v1alpha.GoogleAdsLinkBA" -UpdateGoogleAdsLinkRequestF -google_ads_link ( 2-.google.analytics.admin.v1alpha.GoogleAdsLink4 - update_mask ( 2.google.protobuf.FieldMaskBA"_ -DeleteGoogleAdsLinkRequestA -name ( B3AA- -+analyticsadmin.googleapis.com/GoogleAdsLink" -ListGoogleAdsLinksRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/GoogleAdsLink - page_size ( - -page_token ( "~ -ListGoogleAdsLinksResponseG -google_ads_links ( 2-.google.analytics.admin.v1alpha.GoogleAdsLink -next_page_token ( "h -GetDataSharingSettingsRequestG -name ( B9AA3 -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.AA( -&analyticsadmin.googleapis.com/Property -acknowledgement ( BA"\' -%AcknowledgeUserDataCollectionResponse" - SearchChangeHistoryEventsRequest> -account ( B-AA\' -%analyticsadmin.googleapis.com/Account@ -property ( B.AA( -&analyticsadmin.googleapis.com/PropertyU - resource_type (29.google.analytics.admin.v1alpha.ChangeHistoryResourceTypeBA? -action (2*.google.analytics.admin.v1alpha.ActionTypeBA - actor_email ( BA= -earliest_change_time ( 2.google.protobuf.TimestampBA; -latest_change_time ( 2.google.protobuf.TimestampBA - page_size (BA - -page_token ( BA" -!SearchChangeHistoryEventsResponseQ -change_history_events ( 22.google.analytics.admin.v1alpha.ChangeHistoryEvent -next_page_token ( "t -#GetMeasurementProtocolSecretRequestM -name ( B?AA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret" -&CreateMeasurementProtocolSecretRequestO -parent ( B?AA97analyticsadmin.googleapis.com/MeasurementProtocolSecretc -measurement_protocol_secret ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecretBA"w -&DeleteMeasurementProtocolSecretRequestM -name ( B?AA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret" -&UpdateMeasurementProtocolSecretRequestc -measurement_protocol_secret ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecretBA4 - update_mask ( 2.google.protobuf.FieldMaskBA" -%ListMeasurementProtocolSecretsRequestO -parent ( B?AA97analyticsadmin.googleapis.com/MeasurementProtocolSecret - page_size ( - -page_token ( " -&ListMeasurementProtocolSecretsResponse_ -measurement_protocol_secrets ( 29.google.analytics.admin.v1alpha.MeasurementProtocolSecret -next_page_token ( " -*GetSKAdNetworkConversionValueSchemaRequestT -name ( BFAA@ ->analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema" --CreateSKAdNetworkConversionValueSchemaRequestV -parent ( BFAA@>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchemar -#skadnetwork_conversion_value_schema ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaBA" --DeleteSKAdNetworkConversionValueSchemaRequestT -name ( BFAA@ ->analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema" --UpdateSKAdNetworkConversionValueSchemaRequestr -#skadnetwork_conversion_value_schema ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaBA4 - update_mask ( 2.google.protobuf.FieldMaskBA" -,ListSKAdNetworkConversionValueSchemasRequestV -parent ( BFAA@>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema - page_size ( - -page_token ( " --ListSKAdNetworkConversionValueSchemasResponsen -$skadnetwork_conversion_value_schemas ( 2@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema -next_page_token ( "l -GetGoogleSignalsSettingsRequestI -name ( B;AA5 -3analyticsadmin.googleapis.com/GoogleSignalsSettings" -"UpdateGoogleSignalsSettingsRequest[ -google_signals_settings ( 25.google.analytics.admin.v1alpha.GoogleSignalsSettingsBA4 - update_mask ( 2.google.protobuf.FieldMaskBA" -CreateConversionEventRequestN -conversion_event ( 2/.google.analytics.admin.v1alpha.ConversionEventBAE -parent ( B5AA/-analyticsadmin.googleapis.com/ConversionEvent" -UpdateConversionEventRequestN -conversion_event ( 2/.google.analytics.admin.v1alpha.ConversionEventBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"` -GetConversionEventRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/ConversionEvent"c -DeleteConversionEventRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/ConversionEvent" -ListConversionEventsRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/ConversionEvent - page_size ( - -page_token ( " -ListConversionEventsResponseJ -conversion_events ( 2/.google.analytics.admin.v1alpha.ConversionEvent -next_page_token ( " -CreateKeyEventRequest@ - key_event ( 2(.google.analytics.admin.v1alpha.KeyEventBA> -parent ( B.AA(&analyticsadmin.googleapis.com/KeyEvent" -UpdateKeyEventRequest@ - key_event ( 2(.google.analytics.admin.v1alpha.KeyEventBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"R -GetKeyEventRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/KeyEvent"U -DeleteKeyEventRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/KeyEvent"} -ListKeyEventsRequest> -parent ( B.AA(&analyticsadmin.googleapis.com/KeyEvent - page_size ( - -page_token ( "n -ListKeyEventsResponse< - -key_events ( 2(.google.analytics.admin.v1alpha.KeyEvent -next_page_token ( "| -\'GetDisplayVideo360AdvertiserLinkRequestQ -name ( BCAA= -;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" -)ListDisplayVideo360AdvertiserLinksRequestS -parent ( BCAA=;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 ( BCAA=;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkm -!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkBA" -*DeleteDisplayVideo360AdvertiserLinkRequestQ -name ( BCAA= -;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" -*UpdateDisplayVideo360AdvertiserLinkRequesth -!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink4 - update_mask ( 2.google.protobuf.FieldMaskBA" -/GetDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKAAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" -1ListDisplayVideo360AdvertiserLinkProposalsRequest[ -parent ( BKAAECanalyticsadmin.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 ( BKAAECanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal~ -*display_video_360_advertiser_link_proposal ( 2E.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalBA" -2DeleteDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKAAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" -3ApproveDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKAAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" -4ApproveDisplayVideo360AdvertiserLinkProposalResponseh -!display_video_360_advertiser_link ( 2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" -2CancelDisplayVideo360AdvertiserLinkProposalRequestY -name ( BKAAE -Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"b -GetSearchAds360LinkRequestD -name ( B6AA0 -.analyticsadmin.googleapis.com/SearchAds360Link" -ListSearchAds360LinksRequestF -parent ( B6AA0.analyticsadmin.googleapis.com/SearchAds360Link - page_size ( - -page_token ( " -ListSearchAds360LinksResponseN -search_ads_360_links ( 20.google.analytics.admin.v1alpha.SearchAds360Link -next_page_token ( " -CreateSearchAds360LinkRequestF -parent ( B6AA0.analyticsadmin.googleapis.com/SearchAds360LinkR -search_ads_360_link ( 20.google.analytics.admin.v1alpha.SearchAds360LinkBA"e -DeleteSearchAds360LinkRequestD -name ( B6AA0 -.analyticsadmin.googleapis.com/SearchAds360Link" -UpdateSearchAds360LinkRequestM -search_ads_360_link ( 20.google.analytics.admin.v1alpha.SearchAds360Link4 - update_mask ( 2.google.protobuf.FieldMaskBA" -CreateCustomDimensionRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/CustomDimensionN -custom_dimension ( 2/.google.analytics.admin.v1alpha.CustomDimensionBA" -UpdateCustomDimensionRequestI -custom_dimension ( 2/.google.analytics.admin.v1alpha.CustomDimension4 - update_mask ( 2.google.protobuf.FieldMaskBA" -ListCustomDimensionsRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/CustomDimension - page_size ( - -page_token ( " -ListCustomDimensionsResponseJ -custom_dimensions ( 2/.google.analytics.admin.v1alpha.CustomDimension -next_page_token ( "d -ArchiveCustomDimensionRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/CustomDimension"` -GetCustomDimensionRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/CustomDimension" -CreateCustomMetricRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/CustomMetricH - custom_metric ( 2,.google.analytics.admin.v1alpha.CustomMetricBA" -UpdateCustomMetricRequestC - custom_metric ( 2,.google.analytics.admin.v1alpha.CustomMetric4 - update_mask ( 2.google.protobuf.FieldMaskBA" -ListCustomMetricsRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/CustomMetric - page_size ( - -page_token ( "z -ListCustomMetricsResponseD -custom_metrics ( 2,.google.analytics.admin.v1alpha.CustomMetric -next_page_token ( "^ -ArchiveCustomMetricRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/CustomMetric"Z -GetCustomMetricRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/CustomMetric" -CreateCalculatedMetricRequestF -parent ( B6AA0.analyticsadmin.googleapis.com/CalculatedMetric! -calculated_metric_id ( BAP -calculated_metric ( 20.google.analytics.admin.v1alpha.CalculatedMetricBA" -UpdateCalculatedMetricRequestP -calculated_metric ( 20.google.analytics.admin.v1alpha.CalculatedMetricBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"e -DeleteCalculatedMetricRequestD -name ( B6AA0 -.analyticsadmin.googleapis.com/CalculatedMetric" -ListCalculatedMetricsRequestF -parent ( B6AA0.analyticsadmin.googleapis.com/CalculatedMetric - page_size (BA - -page_token ( BA" -ListCalculatedMetricsResponseL -calculated_metrics ( 20.google.analytics.admin.v1alpha.CalculatedMetric -next_page_token ( "b -GetCalculatedMetricRequestD -name ( B6AA0 -.analyticsadmin.googleapis.com/CalculatedMetric"l -GetDataRetentionSettingsRequestI -name ( B;AA5 -3analyticsadmin.googleapis.com/DataRetentionSettings" -"UpdateDataRetentionSettingsRequest[ -data_retention_settings ( 25.google.analytics.admin.v1alpha.DataRetentionSettingsBA4 - update_mask ( 2.google.protobuf.FieldMaskBA" -CreateDataStreamRequest@ -parent ( B0AA*(analyticsadmin.googleapis.com/DataStreamD - data_stream ( 2*.google.analytics.admin.v1alpha.DataStreamBA"Y -DeleteDataStreamRequest> -name ( B0AA* -(analyticsadmin.googleapis.com/DataStream" -UpdateDataStreamRequest? - data_stream ( 2*.google.analytics.admin.v1alpha.DataStream4 - update_mask ( 2.google.protobuf.FieldMaskBA" -ListDataStreamsRequest@ -parent ( B0AA*(analyticsadmin.googleapis.com/DataStream - page_size ( - -page_token ( "t -ListDataStreamsResponse@ - data_streams ( 2*.google.analytics.admin.v1alpha.DataStream -next_page_token ( "V -GetDataStreamRequest> -name ( B0AA* -(analyticsadmin.googleapis.com/DataStream"R -GetAudienceRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/Audience"} -ListAudiencesRequest> -parent ( B.AA(&analyticsadmin.googleapis.com/Audience - page_size ( - -page_token ( "m -ListAudiencesResponse; - audiences ( 2(.google.analytics.admin.v1alpha.Audience -next_page_token ( " -CreateAudienceRequest> -parent ( B.AA(&analyticsadmin.googleapis.com/Audience? -audience ( 2(.google.analytics.admin.v1alpha.AudienceBA" -UpdateAudienceRequest? -audience ( 2(.google.analytics.admin.v1alpha.AudienceBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"V -ArchiveAudienceRequest< -name ( B.AA(&analyticsadmin.googleapis.com/Audience"h -GetAttributionSettingsRequestG -name ( B9AA3 -1analyticsadmin.googleapis.com/AttributionSettings" - UpdateAttributionSettingsRequestV -attribution_settings ( 23.google.analytics.admin.v1alpha.AttributionSettingsBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"\\ -GetAccessBindingRequestA -name ( B3AA- -+analyticsadmin.googleapis.com/AccessBinding" -BatchGetAccessBindingsRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/AccessBindingB -names ( B3AA- -+analyticsadmin.googleapis.com/AccessBinding"h -BatchGetAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding" -ListAccessBindingsRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/AccessBinding - page_size ( - -page_token ( "} -ListAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding -next_page_token ( " -CreateAccessBindingRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/AccessBindingJ -access_binding ( 2-.google.analytics.admin.v1alpha.AccessBindingBA" - BatchCreateAccessBindingsRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/AccessBindingQ -requests ( 2:.google.analytics.admin.v1alpha.CreateAccessBindingRequestBA"k -!BatchCreateAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"h -UpdateAccessBindingRequestJ -access_binding ( 2-.google.analytics.admin.v1alpha.AccessBindingBA" - BatchUpdateAccessBindingsRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/AccessBindingQ -requests ( 2:.google.analytics.admin.v1alpha.UpdateAccessBindingRequestBA"k -!BatchUpdateAccessBindingsResponseF -access_bindings ( 2-.google.analytics.admin.v1alpha.AccessBinding"_ -DeleteAccessBindingRequestA -name ( B3AA- -+analyticsadmin.googleapis.com/AccessBinding" - BatchDeleteAccessBindingsRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/AccessBindingQ -requests ( 2:.google.analytics.admin.v1alpha.DeleteAccessBindingRequestBA" -CreateExpandedDataSetRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/ExpandedDataSetO -expanded_data_set ( 2/.google.analytics.admin.v1alpha.ExpandedDataSetBA" -UpdateExpandedDataSetRequestO -expanded_data_set ( 2/.google.analytics.admin.v1alpha.ExpandedDataSetBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"c -DeleteExpandedDataSetRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/ExpandedDataSet"` -GetExpandedDataSetRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/ExpandedDataSet" -ListExpandedDataSetsRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/ExpandedDataSet - page_size ( - -page_token ( " -ListExpandedDataSetsResponseK -expanded_data_sets ( 2/.google.analytics.admin.v1alpha.ExpandedDataSet -next_page_token ( " -CreateChannelGroupRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/ChannelGroupH - channel_group ( 2,.google.analytics.admin.v1alpha.ChannelGroupBA" -UpdateChannelGroupRequestH - channel_group ( 2,.google.analytics.admin.v1alpha.ChannelGroupBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"] -DeleteChannelGroupRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/ChannelGroup"Z -GetChannelGroupRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/ChannelGroup" -ListChannelGroupsRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/ChannelGroup - page_size ( - -page_token ( "z -ListChannelGroupsResponseD -channel_groups ( 2,.google.analytics.admin.v1alpha.ChannelGroup -next_page_token ( "S -)SetAutomatedGa4ConfigurationOptOutRequest -property ( BA -opt_out (", -*SetAutomatedGa4ConfigurationOptOutResponse"D -+FetchAutomatedGa4ConfigurationOptOutRequest -property ( BA"? -,FetchAutomatedGa4ConfigurationOptOutResponse -opt_out (" -CreateBigQueryLinkRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/BigQueryLinkH - bigquery_link ( 2,.google.analytics.admin.v1alpha.BigQueryLinkBA"Z -GetBigQueryLinkRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/BigQueryLink" -ListBigQueryLinksRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/BigQueryLink - page_size ( - -page_token ( "z -ListBigQueryLinksResponseD -bigquery_links ( 2,.google.analytics.admin.v1alpha.BigQueryLink -next_page_token ( " -UpdateBigQueryLinkRequestH - bigquery_link ( 2,.google.analytics.admin.v1alpha.BigQueryLinkBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"] -DeleteBigQueryLinkRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/BigQueryLink"x -%GetEnhancedMeasurementSettingsRequestO -name ( BAAA; -9analyticsadmin.googleapis.com/EnhancedMeasurementSettings" -(UpdateEnhancedMeasurementSettingsRequestg -enhanced_measurement_settings ( 2;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"l -GetDataRedactionSettingsRequestI -name ( B;AA5 -3analyticsadmin.googleapis.com/DataRedactionSettings" -"UpdateDataRedactionSettingsRequest[ -data_redaction_settings ( 25.google.analytics.admin.v1alpha.DataRedactionSettingsBA4 - update_mask ( 2.google.protobuf.FieldMaskBA" -CreateConnectedSiteTagRequest -property ( Q -connected_site_tag ( 20.google.analytics.admin.v1alpha.ConnectedSiteTagBA" -CreateConnectedSiteTagResponse"A -DeleteConnectedSiteTagRequest -property (  -tag_id ( "0 -ListConnectedSiteTagsRequest -property ( "n -ListConnectedSiteTagsResponseM -connected_site_tags ( 20.google.analytics.admin.v1alpha.ConnectedSiteTag" -CreateAdSenseLinkRequestA -parent ( B1AA+)analyticsadmin.googleapis.com/AdSenseLinkF - adsense_link ( 2+.google.analytics.admin.v1alpha.AdSenseLinkBA"X -GetAdSenseLinkRequest? -name ( B1AA+ -)analyticsadmin.googleapis.com/AdSenseLink"[ -DeleteAdSenseLinkRequest? -name ( B1AA+ -)analyticsadmin.googleapis.com/AdSenseLink" -ListAdSenseLinksRequestA -parent ( B1AA+)analyticsadmin.googleapis.com/AdSenseLink - page_size ( - -page_token ( "w -ListAdSenseLinksResponseB - adsense_links ( 2+.google.analytics.admin.v1alpha.AdSenseLink -next_page_token ( "d - FetchConnectedGa4PropertyRequest@ -property ( B.AA( -&analyticsadmin.googleapis.com/Property"b -!FetchConnectedGa4PropertyResponse= -property ( B+A( -&analyticsadmin.googleapis.com/Property" -CreateEventCreateRuleRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/EventCreateRuleO -event_create_rule ( 2/.google.analytics.admin.v1alpha.EventCreateRuleBA" -UpdateEventCreateRuleRequestO -event_create_rule ( 2/.google.analytics.admin.v1alpha.EventCreateRuleBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"c -DeleteEventCreateRuleRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/EventCreateRule"` -GetEventCreateRuleRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/EventCreateRule" -ListEventCreateRulesRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/EventCreateRule - page_size ( - -page_token ( " -ListEventCreateRulesResponseK -event_create_rules ( 2/.google.analytics.admin.v1alpha.EventCreateRule -next_page_token ( " -CreateEventEditRuleRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/EventEditRuleK -event_edit_rule ( 2-.google.analytics.admin.v1alpha.EventEditRuleBA" -UpdateEventEditRuleRequestK -event_edit_rule ( 2-.google.analytics.admin.v1alpha.EventEditRuleBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"_ -DeleteEventEditRuleRequestA -name ( B3AA- -+analyticsadmin.googleapis.com/EventEditRule"\\ -GetEventEditRuleRequestA -name ( B3AA- -+analyticsadmin.googleapis.com/EventEditRule" -ListEventEditRulesRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/EventEditRule - page_size (BA - -page_token ( BA"~ -ListEventEditRulesResponseG -event_edit_rules ( 2-.google.analytics.admin.v1alpha.EventEditRule -next_page_token ( " -ReorderEventEditRulesRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/EventEditRule -event_edit_rules ( BA" -CreateRollupPropertyRequestF -rollup_property ( 2(.google.analytics.admin.v1alpha.PropertyBA -source_properties ( BA" -CreateRollupPropertyResponseA -rollup_property ( 2(.google.analytics.admin.v1alpha.Property^ -rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink"r -"GetRollupPropertySourceLinkRequestL -name ( B>AA8 -6analyticsadmin.googleapis.com/RollupPropertySourceLink" -$ListRollupPropertySourceLinksRequestN -parent ( B>AA86analyticsadmin.googleapis.com/RollupPropertySourceLink - page_size (BA - -page_token ( BA" -%ListRollupPropertySourceLinksResponse^ -rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink -next_page_token ( " -%CreateRollupPropertySourceLinkRequestN -parent ( B>AA86analyticsadmin.googleapis.com/RollupPropertySourceLinkb -rollup_property_source_link ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLinkBA"u -%DeleteRollupPropertySourceLinkRequestL -name ( B>AA8 -6analyticsadmin.googleapis.com/RollupPropertySourceLink" -ProvisionSubpropertyRequestB - subproperty ( 2(.google.analytics.admin.v1alpha.PropertyBA] -subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBA" -ProvisionSubpropertyResponse= - subproperty ( 2(.google.analytics.admin.v1alpha.PropertyX -subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter" -#CreateSubpropertyEventFilterRequestL -parent ( B.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"+Aname/v1alpha/{name=properties/*} -ListProperties5.google.analytics.admin.v1alpha.ListPropertiesRequest6.google.analytics.admin.v1alpha.ListPropertiesResponse"/v1alpha/properties -CreateProperty5.google.analytics.admin.v1alpha.CreatePropertyRequest(.google.analytics.admin.v1alpha.Property"0Aproperty"/v1alpha/properties:property -DeleteProperty5.google.analytics.admin.v1alpha.DeletePropertyRequest(.google.analytics.admin.v1alpha.Property"+Aname*/v1alpha/{name=properties/*} -UpdateProperty5.google.analytics.admin.v1alpha.UpdatePropertyRequest(.google.analytics.admin.v1alpha.Property"NAproperty,update_mask12%/v1alpha/{property.name=properties/*}:property -CreateFirebaseLink9.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"ZAparent,firebase_link=",/v1alpha/{parent=properties/*}/firebaseLinks: firebase_link -DeleteFirebaseLink9.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.google.protobuf.Empty";Aname.*,/v1alpha/{name=properties/*/firebaseLinks/*} -ListFirebaseLinks8.google.analytics.admin.v1alpha.ListFirebaseLinksRequest9.google.analytics.admin.v1alpha.ListFirebaseLinksResponse"=Aparent.,/v1alpha/{parent=properties/*}/firebaseLinks -GetGlobalSiteTag7.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest-.google.analytics.admin.v1alpha.GlobalSiteTag"GAname:8/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag} -CreateGoogleAdsLink:.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest-.google.analytics.admin.v1alpha.GoogleAdsLink"_Aparent,google_ads_link@"-/v1alpha/{parent=properties/*}/googleAdsLinks:google_ads_link -UpdateGoogleAdsLink:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest-.google.analytics.admin.v1alpha.GoogleAdsLink"tAgoogle_ads_link,update_maskP2=/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}:google_ads_link -DeleteGoogleAdsLink:.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.google.protobuf.Empty"Aparent/-/v1alpha/{parent=properties/*}/googleAdsLinks -GetDataSharingSettings=.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest3.google.analytics.admin.v1alpha.DataSharingSettings"=Aname0./v1alpha/{name=accounts/*/dataSharingSettings} -GetMeasurementProtocolSecretC.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"VAnameIG/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*} -ListMeasurementProtocolSecretsE.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestF.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse"XAparentIG/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets -CreateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"A"parent,measurement_protocol_secretf"G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets:measurement_protocol_secret -DeleteMeasurementProtocolSecretF.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.google.protobuf.Empty"VAnameI*G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*} -UpdateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"A\'measurement_protocol_secret,update_mask2c/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secret -AcknowledgeUserDataCollectionD.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequestE.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse"IC">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:* -#GetSKAdNetworkConversionValueSchemaJ.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"\\AnameOM/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*} -&CreateSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"A*parent,skadnetwork_conversion_value_schemat"M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema:#skadnetwork_conversion_value_schema -&DeleteSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.google.protobuf.Empty"\\AnameO*M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*} -&UpdateSKAdNetworkConversionValueSchemaM.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema"A/skadnetwork_conversion_value_schema,update_mask2q/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}:#skadnetwork_conversion_value_schema -%ListSKAdNetworkConversionValueSchemasL.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequestM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse"^AparentOM/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema -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"AAname42/v1alpha/{name=properties/*/googleSignalsSettings} -UpdateGoogleSignalsSettingsB.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"A#google_signals_settings,update_maske2J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:google_signals_settings -CreateConversionEvent<.google.analytics.admin.v1alpha.CreateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"fAparent,conversion_eventC"//v1alpha/{parent=properties/*}/conversionEvents:conversion_event -UpdateConversionEvent<.google.analytics.admin.v1alpha.UpdateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"|Aconversion_event,update_maskT2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:conversion_event -GetConversionEvent9.google.analytics.admin.v1alpha.GetConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"AAname1//v1alpha/{name=properties/*/conversionEvents/*} -DeleteConversionEvent<.google.analytics.admin.v1alpha.DeleteConversionEventRequest.google.protobuf.Empty"AAname1*//v1alpha/{name=properties/*/conversionEvents/*} -ListConversionEvents;.google.analytics.admin.v1alpha.ListConversionEventsRequest<.google.analytics.admin.v1alpha.ListConversionEventsResponse"CAparent1//v1alpha/{parent=properties/*}/conversionEvents -CreateKeyEvent5.google.analytics.admin.v1alpha.CreateKeyEventRequest(.google.analytics.admin.v1alpha.KeyEvent"NAparent,key_event5"(/v1alpha/{parent=properties/*}/keyEvents: key_event -UpdateKeyEvent5.google.analytics.admin.v1alpha.UpdateKeyEventRequest(.google.analytics.admin.v1alpha.KeyEvent"]Akey_event,update_mask?22/v1alpha/{key_event.name=properties/*/keyEvents/*}: key_event - GetKeyEvent2.google.analytics.admin.v1alpha.GetKeyEventRequest(.google.analytics.admin.v1alpha.KeyEvent"7Aname*(/v1alpha/{name=properties/*/keyEvents/*} -DeleteKeyEvent5.google.analytics.admin.v1alpha.DeleteKeyEventRequest.google.protobuf.Empty"7Aname**(/v1alpha/{name=properties/*/keyEvents/*} - ListKeyEvents4.google.analytics.admin.v1alpha.ListKeyEventsRequest5.google.analytics.admin.v1alpha.ListKeyEventsResponse"9Aparent*(/v1alpha/{parent=properties/*}/keyEvents - GetDisplayVideo360AdvertiserLinkG.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"LAname?=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*} -"ListDisplayVideo360AdvertiserLinksI.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse"NAparent?=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks -#CreateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"A(parent,display_video_360_advertiser_linkb"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_link -#DeleteDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.google.protobuf.Empty"LAname?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*} -#UpdateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"A-display_video_360_advertiser_link,update_mask2_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_link -(GetDisplayVideo360AdvertiserLinkProposalO.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"TAnameGE/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*} -*ListDisplayVideo360AdvertiserLinkProposalsQ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequestR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse"VAparentGE/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals -+CreateDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"A1parent,display_video_360_advertiser_link_proposals"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposal -+DeleteDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.google.protobuf.Empty"TAnameG*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*} -,ApproveDisplayVideo360AdvertiserLinkProposalS.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequestT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse"XR"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:* -+CancelDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"WQ"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:* -CreateCustomDimension<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"cAparent,custom_dimensionC"//v1alpha/{parent=properties/*}/customDimensions:custom_dimension -UpdateCustomDimension<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"yAcustom_dimension,update_maskT2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:custom_dimension -ListCustomDimensions;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse"@Aparent1//v1alpha/{parent=properties/*}/customDimensions -ArchiveCustomDimension=.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.google.protobuf.Empty"IAname<"7/v1alpha/{name=properties/*/customDimensions/*}:archive:* -GetCustomDimension9.google.analytics.admin.v1alpha.GetCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension">Aname1//v1alpha/{name=properties/*/customDimensions/*} -CreateCustomMetric9.google.analytics.admin.v1alpha.CreateCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric"ZAparent,custom_metric=",/v1alpha/{parent=properties/*}/customMetrics: custom_metric -UpdateCustomMetric9.google.analytics.admin.v1alpha.UpdateCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric"mAcustom_metric,update_maskK2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}: custom_metric -ListCustomMetrics8.google.analytics.admin.v1alpha.ListCustomMetricsRequest9.google.analytics.admin.v1alpha.ListCustomMetricsResponse"=Aparent.,/v1alpha/{parent=properties/*}/customMetrics -ArchiveCustomMetric:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.google.protobuf.Empty"FAname9"4/v1alpha/{name=properties/*/customMetrics/*}:archive:* -GetCustomMetric6.google.analytics.admin.v1alpha.GetCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric";Aname.,/v1alpha/{name=properties/*/customMetrics/*} -GetDataRetentionSettings?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"AAname42/v1alpha/{name=properties/*/dataRetentionSettings} -UpdateDataRetentionSettingsB.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"A#data_retention_settings,update_maske2J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:data_retention_settings -CreateDataStream7.google.analytics.admin.v1alpha.CreateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"TAparent,data_stream9"*/v1alpha/{parent=properties/*}/dataStreams: data_stream -DeleteDataStream7.google.analytics.admin.v1alpha.DeleteDataStreamRequest.google.protobuf.Empty"9Aname,**/v1alpha/{name=properties/*/dataStreams/*} -UpdateDataStream7.google.analytics.admin.v1alpha.UpdateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"eAdata_stream,update_maskE26/v1alpha/{data_stream.name=properties/*/dataStreams/*}: data_stream -ListDataStreams6.google.analytics.admin.v1alpha.ListDataStreamsRequest7.google.analytics.admin.v1alpha.ListDataStreamsResponse";Aparent,*/v1alpha/{parent=properties/*}/dataStreams - GetDataStream4.google.analytics.admin.v1alpha.GetDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"9Aname,*/v1alpha/{name=properties/*/dataStreams/*} - GetAudience2.google.analytics.admin.v1alpha.GetAudienceRequest(.google.analytics.admin.v1alpha.Audience"7Aname*(/v1alpha/{name=properties/*/audiences/*} - ListAudiences4.google.analytics.admin.v1alpha.ListAudiencesRequest5.google.analytics.admin.v1alpha.ListAudiencesResponse"9Aparent*(/v1alpha/{parent=properties/*}/audiences -CreateAudience5.google.analytics.admin.v1alpha.CreateAudienceRequest(.google.analytics.admin.v1alpha.Audience"LAparent,audience4"(/v1alpha/{parent=properties/*}/audiences:audience -UpdateAudience5.google.analytics.admin.v1alpha.UpdateAudienceRequest(.google.analytics.admin.v1alpha.Audience"ZAaudience,update_mask=21/v1alpha/{audience.name=properties/*/audiences/*}:audience -ArchiveAudience6.google.analytics.admin.v1alpha.ArchiveAudienceRequest.google.protobuf.Empty";5"0/v1alpha/{name=properties/*/audiences/*}:archive:* -GetSearchAds360Link:.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"?Aname20/v1alpha/{name=properties/*/searchAds360Links/*} -ListSearchAds360Links<.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest=.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse"AAparent20/v1alpha/{parent=properties/*}/searchAds360Links -CreateSearchAds360Link=.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"jAparent,search_ads_360_linkG"0/v1alpha/{parent=properties/*}/searchAds360Links:search_ads_360_link -DeleteSearchAds360Link=.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.google.protobuf.Empty"?Aname2*0/v1alpha/{name=properties/*/searchAds360Links/*} -UpdateSearchAds360Link=.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest0.google.analytics.admin.v1alpha.SearchAds360Link"Asearch_ads_360_link,update_mask[2D/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}:search_ads_360_link -GetAttributionSettings=.google.analytics.admin.v1alpha.GetAttributionSettingsRequest3.google.analytics.admin.v1alpha.AttributionSettings"?Aname20/v1alpha/{name=properties/*/attributionSettings} -UpdateAttributionSettings@.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest3.google.analytics.admin.v1alpha.AttributionSettings"A attribution_settings,update_mask]2E/v1alpha/{attribution_settings.name=properties/*/attributionSettings}:attribution_settings -RunAccessReport6.google.analytics.admin.v1alpha.RunAccessReportRequest7.google.analytics.admin.v1alpha.RunAccessReportResponse"lf"./v1alpha/{entity=properties/*}:runAccessReport:*Z1",/v1alpha/{entity=accounts/*}:runAccessReport:* -CreateAccessBinding:.google.analytics.admin.v1alpha.CreateAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"Aparent,access_binding~"+/v1alpha/{parent=accounts/*}/accessBindings:access_bindingZ?"-/v1alpha/{parent=properties/*}/accessBindings:access_binding -GetAccessBinding7.google.analytics.admin.v1alpha.GetAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"kAname^+/v1alpha/{name=accounts/*/accessBindings/*}Z/-/v1alpha/{name=properties/*/accessBindings/*} -UpdateAccessBinding:.google.analytics.admin.v1alpha.UpdateAccessBindingRequest-.google.analytics.admin.v1alpha.AccessBinding"Aaccess_binding2:/v1alpha/{access_binding.name=accounts/*/accessBindings/*}:access_bindingZN2"9/v1alpha/{parent=properties/*}/accessBindings:batchCreate:* -BatchGetAccessBindings=.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest>.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse"vp4/v1alpha/{parent=accounts/*}/accessBindings:batchGetZ86/v1alpha/{parent=properties/*}/accessBindings:batchGet -BatchUpdateAccessBindings@.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequestA.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse"|"7/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate:*Z>"9/v1alpha/{parent=properties/*}/accessBindings:batchUpdate:* -BatchDeleteAccessBindings@.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.google.protobuf.Empty"|"7/v1alpha/{parent=accounts/*}/accessBindings:batchDelete:*Z>"9/v1alpha/{parent=properties/*}/accessBindings:batchDelete:* -GetExpandedDataSet9.google.analytics.admin.v1alpha.GetExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet">Aname1//v1alpha/{name=properties/*/expandedDataSets/*} -ListExpandedDataSets;.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest<.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse"@Aparent1//v1alpha/{parent=properties/*}/expandedDataSets -CreateExpandedDataSet<.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet"eAparent,expanded_data_setD"//v1alpha/{parent=properties/*}/expandedDataSets:expanded_data_set -UpdateExpandedDataSet<.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest/.google.analytics.admin.v1alpha.ExpandedDataSet"|Aexpanded_data_set,update_maskV2A/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}:expanded_data_set -DeleteExpandedDataSet<.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.google.protobuf.Empty">Aname1*//v1alpha/{name=properties/*/expandedDataSets/*} -GetChannelGroup6.google.analytics.admin.v1alpha.GetChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup";Aname.,/v1alpha/{name=properties/*/channelGroups/*} -ListChannelGroups8.google.analytics.admin.v1alpha.ListChannelGroupsRequest9.google.analytics.admin.v1alpha.ListChannelGroupsResponse"=Aparent.,/v1alpha/{parent=properties/*}/channelGroups -CreateChannelGroup9.google.analytics.admin.v1alpha.CreateChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup"ZAparent,channel_group=",/v1alpha/{parent=properties/*}/channelGroups: channel_group -UpdateChannelGroup9.google.analytics.admin.v1alpha.UpdateChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup"mAchannel_group,update_maskK2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}: channel_group -DeleteChannelGroup9.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.google.protobuf.Empty";Aname.*,/v1alpha/{name=properties/*/channelGroups/*} -"SetAutomatedGa4ConfigurationOptOutI.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequestJ.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse"A;"6/v1alpha/properties:setAutomatedGa4ConfigurationOptOut:* -$FetchAutomatedGa4ConfigurationOptOutK.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequestL.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse"C="8/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut:* -CreateBigQueryLink9.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink"ZAparent,bigquery_link=",/v1alpha/{parent=properties/*}/bigQueryLinks: bigquery_link -GetBigQueryLink6.google.analytics.admin.v1alpha.GetBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink";Aname.,/v1alpha/{name=properties/*/bigQueryLinks/*} -ListBigQueryLinks8.google.analytics.admin.v1alpha.ListBigQueryLinksRequest9.google.analytics.admin.v1alpha.ListBigQueryLinksResponse"=Aparent.,/v1alpha/{parent=properties/*}/bigQueryLinks -DeleteBigQueryLink9.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest.google.protobuf.Empty";Aname.*,/v1alpha/{name=properties/*/bigQueryLinks/*} -UpdateBigQueryLink9.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink"mAbigquery_link,update_maskK2:/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}: bigquery_link -GetEnhancedMeasurementSettingsE.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"UAnameHF/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings} -!UpdateEnhancedMeasurementSettingsH.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"A)enhanced_measurement_settings,update_mask2d/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:enhanced_measurement_settings -CreateConnectedSiteTag=.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest>.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse"5/"*/v1alpha/properties:createConnectedSiteTag:* -DeleteConnectedSiteTag=.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.google.protobuf.Empty"5/"*/v1alpha/properties:deleteConnectedSiteTag:* -ListConnectedSiteTags<.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest=.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse"4.")/v1alpha/properties:listConnectedSiteTags:* -FetchConnectedGa4Property@.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequestA.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse"5/-/v1alpha/properties:fetchConnectedGa4Property -GetAdSenseLink5.google.analytics.admin.v1alpha.GetAdSenseLinkRequest+.google.analytics.admin.v1alpha.AdSenseLink":Aname-+/v1alpha/{name=properties/*/adSenseLinks/*} -CreateAdSenseLink8.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest+.google.analytics.admin.v1alpha.AdSenseLink"WAparent,adsense_link;"+/v1alpha/{parent=properties/*}/adSenseLinks: adsense_link -DeleteAdSenseLink8.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.google.protobuf.Empty":Aname-*+/v1alpha/{name=properties/*/adSenseLinks/*} -ListAdSenseLinks7.google.analytics.admin.v1alpha.ListAdSenseLinksRequest8.google.analytics.admin.v1alpha.ListAdSenseLinksResponse"cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php deleted file mode 100644 index 1a97f75b51a2..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Audience.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php deleted file mode 100644 index 2853f6286213..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ChannelGroup.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php deleted file mode 100644 index 03bc275648c3..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/EventCreateAndEdit.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ExpandedDataSet.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ExpandedDataSet.php deleted file mode 100644 index f0908cce6a05..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/ExpandedDataSet.php and /dev/null differ 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 33ace7abd72a..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/Resources.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/SubpropertyEventFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/SubpropertyEventFilter.php deleted file mode 100644 index e31511a976f6..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/GPBMetadata/Google/Analytics/Admin/V1Alpha/SubpropertyEventFilter.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php deleted file mode 100644 index f3eeb73ab73f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBetweenFilter.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.AccessBetweenFilter - */ -class AccessBetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - protected $from_value = null; - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\NumericValue $from_value - * Begins with this number. - * @type \Google\Analytics\Admin\V1alpha\NumericValue $to_value - * Ends with this number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return \Google\Analytics\Admin\V1alpha\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @param \Google\Analytics\Admin\V1alpha\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return \Google\Analytics\Admin\V1alpha\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @param \Google\Analytics\Admin\V1alpha\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php deleted file mode 100644 index bd42946d1eaf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessBinding.php +++ /dev/null @@ -1,198 +0,0 @@ -google.analytics.admin.v1alpha.AccessBinding - */ -class AccessBinding extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * - * Generated from protobuf field repeated string roles = 3; - */ - private $roles; - protected $access_target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user - * If set, the email address of the user to set roles for. - * Format: "someuser@gmail.com" - * @type string $name - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * @type array|\Google\Protobuf\Internal\RepeatedField $roles - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * If set, the email address of the user to set roles for. - * Format: "someuser@gmail.com" - * - * Generated from protobuf field string user = 2; - * @return string - */ - public function getUser() - { - return $this->readOneof(2); - } - - public function hasUser() - { - return $this->hasOneof(2); - } - - /** - * If set, the email address of the user to set roles for. - * Format: "someuser@gmail.com" - * - * Generated from protobuf field string user = 2; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this binding. - * Format: accounts/{account}/accessBindings/{access_binding} or - * properties/{property}/accessBindings/{access_binding} - * Example: - * "accounts/100/accessBindings/200" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * - * Generated from protobuf field repeated string roles = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoles() - { - return $this->roles; - } - - /** - * A list of roles for to grant to the parent resource. - * Valid values: - * predefinedRoles/viewer - * predefinedRoles/analyst - * predefinedRoles/editor - * predefinedRoles/admin - * predefinedRoles/no-cost-data - * predefinedRoles/no-revenue-data - * For users, if an empty list of roles is set, this AccessBinding will be - * deleted. - * - * Generated from protobuf field repeated string roles = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->roles = $arr; - - return $this; - } - - /** - * @return string - */ - public function getAccessTarget() - { - return $this->whichOneof("access_target"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php deleted file mode 100644 index d0e653ce6bc2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDateRange.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.AccessDateRange - */ -class AccessDateRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - */ - protected $start_date = ''; - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - */ - protected $end_date = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_date - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * @type string $end_date - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @param string $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkString($var, True); - $this->start_date = $var; - - return $this; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @param string $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkString($var, True); - $this->end_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php deleted file mode 100644 index 44449e85e67d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimension.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1alpha.AccessDimension - */ -class AccessDimension extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php deleted file mode 100644 index be9a5f3aee35..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1alpha.AccessDimensionHeader - */ -class AccessDimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The dimension's name; for example 'userEmail'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php deleted file mode 100644 index d68f8597b18e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessDimensionValue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.AccessDimensionValue - */ -class AccessDimensionValue extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php deleted file mode 100644 index 82da5e23d402..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilter.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.admin.v1alpha.AccessFilter - */ -class AccessFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessStringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Admin\V1alpha\AccessInListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Admin\V1alpha\AccessNumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $between_filter - * A filter for two values. - * @type string $field_name - * The dimension name or metric name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessStringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessStringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessStringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\AccessInListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\AccessInListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessInListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AccessNumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(4); - } - - public function hasNumericFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AccessNumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessNumericFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessBetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(5); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessBetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBetweenFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php deleted file mode 100644 index fbdd935d575e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpression.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.admin.v1alpha.AccessFilterExpression - */ -class AccessFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $one_expression; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $and_group - * Each of the FilterExpressions in the and_group has an AND relationship. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $or_group - * Each of the FilterExpressions in the or_group has an OR relationship. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $not_expression - * The FilterExpression is NOT of not_expression. - * @type \Google\Analytics\Admin\V1alpha\AccessFilter $access_filter - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AccessFilter|null - */ - public function getAccessFilter() - { - return $this->readOneof(4); - } - - public function hasAccessFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AccessFilter $var - * @return $this - */ - public function setAccessFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneExpression() - { - return $this->whichOneof("one_expression"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php deleted file mode 100644 index 2eb4395ffca0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.AccessFilterExpressionList - */ -class AccessFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * A list of filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php deleted file mode 100644 index dee5bd8ea6dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessInListFilter.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1alpha.AccessInListFilter - */ -class AccessInListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The list of string values. Must be non-empty. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php deleted file mode 100644 index 190ee537d233..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetric.php +++ /dev/null @@ -1,80 +0,0 @@ -google.analytics.admin.v1alpha.AccessMetric - */ -class AccessMetric extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php deleted file mode 100644 index e05c29ae718d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1alpha.AccessMetricHeader - */ -class AccessMetricHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The metric's name; for example 'accessCount'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php deleted file mode 100644 index abb0fb9e2ec1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessMetricValue.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.AccessMetricValue - */ -class AccessMetricValue extends \Google\Protobuf\Internal\Message -{ - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The measurement value. For example, this value may be '13'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php deleted file mode 100644 index 9187c504683a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.AccessNumericFilter - */ -class AccessNumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - */ - protected $operation = 0; - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * The operation type for this filter. - * @type \Google\Analytics\Admin\V1alpha\NumericValue $value - * A numeric value or a date value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessNumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return \Google\Analytics\Admin\V1alpha\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.NumericValue value = 2; - * @param \Google\Analytics\Admin\V1alpha\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php deleted file mode 100644 index c6d1fa905dea..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessNumericFilter/Operation.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.admin.v1alpha.AccessNumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; - */ - const LESS_THAN_OR_EQUAL = 3; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; - */ - const GREATER_THAN_OR_EQUAL = 5; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Admin\V1alpha\AccessNumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php deleted file mode 100644 index 6703b77c9b81..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy - */ -class AccessOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - */ - protected $desc = false; - protected $one_order_by; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy $metric - * Sorts results by a metric's values. - * @type \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy $dimension - * Sorts results by a dimension's values. - * @type bool $desc - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy|null - */ - public function getMetric() - { - return $this->readOneof(1); - } - - public function hasMetric() - { - return $this->hasOneof(1); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @param \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\MetricOrderBy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy|null - */ - public function getDimension() - { - return $this->readOneof(2); - } - - public function hasDimension() - { - return $this->hasOneof(2); - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @return bool - */ - public function getDesc() - { - return $this->desc; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @param bool $var - * @return $this - */ - public function setDesc($var) - { - GPBUtil::checkBool($var); - $this->desc = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneOrderBy() - { - return $this->whichOneof("one_order_by"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php deleted file mode 100644 index 3d1c23f4cc16..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - */ -class DimensionOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - */ - protected $order_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * A dimension name in the request to order by. - * @type int $order_type - * Controls the rule for dimension value ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return int - */ - public function getOrderType() - { - return $this->order_type; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param int $var - * @return $this - */ - public function setOrderType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessOrderBy\DimensionOrderBy\OrderType::class); - $this->order_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionOrderBy::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_DimensionOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php deleted file mode 100644 index 40d8927a3f97..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/DimensionOrderBy/OrderType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType - */ -class OrderType -{ - /** - * Unspecified. - * - * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; - */ - const ORDER_TYPE_UNSPECIFIED = 0; - /** - * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - * "b" < "z". - * - * Generated from protobuf enum ALPHANUMERIC = 1; - */ - const ALPHANUMERIC = 1; - /** - * Case insensitive alphanumeric sort by lower case Unicode code point. - * For example, "2" < "A" < "b" < "X" < "z". - * - * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - const CASE_INSENSITIVE_ALPHANUMERIC = 2; - /** - * Dimension values are converted to numbers before sorting. For example - * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - * "25". Non-numeric dimension values all have equal ordering value below - * all numeric values. - * - * Generated from protobuf enum NUMERIC = 3; - */ - const NUMERIC = 3; - - private static $valueToName = [ - self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', - self::ALPHANUMERIC => 'ALPHANUMERIC', - self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', - self::NUMERIC => 'NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderType::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_DimensionOrderBy_OrderType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php deleted file mode 100644 index e210588587b2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessOrderBy/MetricOrderBy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy - */ -class MetricOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * A metric name in the request to order by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricOrderBy::class, \Google\Analytics\Admin\V1alpha\AccessOrderBy_MetricOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php deleted file mode 100644 index 388a200c0f81..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuota.php +++ /dev/null @@ -1,283 +0,0 @@ -google.analytics.admin.v1alpha.AccessQuota - */ -class AccessQuota extends \Google\Protobuf\Internal\Message -{ - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - protected $tokens_per_day = null; - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - protected $tokens_per_hour = null; - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - protected $concurrent_requests = null; - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - protected $server_errors_per_project_per_hour = null; - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - protected $tokens_per_project_per_hour = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_day - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_hour - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $concurrent_requests - * Properties can use up to 50 concurrent requests. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $server_errors_per_project_per_hour - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * @type \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $tokens_per_project_per_hour - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getTokensPerDay() - { - return $this->tokens_per_day; - } - - public function hasTokensPerDay() - { - return isset($this->tokens_per_day); - } - - public function clearTokensPerDay() - { - unset($this->tokens_per_day); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerDay($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->tokens_per_day = $var; - - return $this; - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getTokensPerHour() - { - return $this->tokens_per_hour; - } - - public function hasTokensPerHour() - { - return isset($this->tokens_per_hour); - } - - public function clearTokensPerHour() - { - unset($this->tokens_per_hour); - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->tokens_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getConcurrentRequests() - { - return $this->concurrent_requests; - } - - public function hasConcurrentRequests() - { - return isset($this->concurrent_requests); - } - - public function clearConcurrentRequests() - { - unset($this->concurrent_requests); - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setConcurrentRequests($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->concurrent_requests = $var; - - return $this; - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getServerErrorsPerProjectPerHour() - { - return $this->server_errors_per_project_per_hour; - } - - public function hasServerErrorsPerProjectPerHour() - { - return isset($this->server_errors_per_project_per_hour); - } - - public function clearServerErrorsPerProjectPerHour() - { - unset($this->server_errors_per_project_per_hour); - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setServerErrorsPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->server_errors_per_project_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessQuotaStatus|null - */ - public function getTokensPerProjectPerHour() - { - return $this->tokens_per_project_per_hour; - } - - public function hasTokensPerProjectPerHour() - { - return isset($this->tokens_per_project_per_hour); - } - - public function clearTokensPerProjectPerHour() - { - unset($this->tokens_per_project_per_hour); - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuotaStatus::class); - $this->tokens_per_project_per_hour = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php deleted file mode 100644 index ee0694f48b7e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessQuotaStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1alpha.AccessQuotaStatus - */ -class AccessQuotaStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - */ - protected $consumed = 0; - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - */ - protected $remaining = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consumed - * Quota consumed by this request. - * @type int $remaining - * Quota remaining after this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @return int - */ - public function getConsumed() - { - return $this->consumed; - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @param int $var - * @return $this - */ - public function setConsumed($var) - { - GPBUtil::checkInt32($var); - $this->consumed = $var; - - return $this; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @return int - */ - public function getRemaining() - { - return $this->remaining; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @param int $var - * @return $this - */ - public function setRemaining($var) - { - GPBUtil::checkInt32($var); - $this->remaining = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php deleted file mode 100644 index 15f63e19b860..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessRow.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.AccessRow - */ -class AccessRow extends \Google\Protobuf\Internal\Message -{ - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - private $dimension_values; - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - private $metric_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * List of dimension values. These values are in the same order as specified - * in the request. - * @type array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values - * List of metric values. These values are in the same order as specified - * in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValues() - { - return $this->metric_values; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - * @param array<\Google\Analytics\Admin\V1alpha\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetricValue::class); - $this->metric_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php deleted file mode 100644 index 511a01168a39..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.admin.v1alpha.AccessStringFilter - */ -class AccessStringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - */ - protected $match_type = 0; - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * The match type for this filter. - * @type string $value - * The string value used for the matching. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AccessStringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php deleted file mode 100644 index 69c13e765d72..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccessStringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1alpha.AccessStringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full match for the regular expression with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial match for the regular expression with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\AccessStringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php deleted file mode 100644 index 219ecd2ca77a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Account.php +++ /dev/null @@ -1,311 +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; - /** - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * - * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $gmp_organization = ''; - - /** - * 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. - * @type string $gmp_organization - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * } - */ - 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; - } - - /** - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * - * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getGmpOrganization() - { - return $this->gmp_organization; - } - - /** - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * - * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setGmpOrganization($var) - { - GPBUtil::checkString($var, True); - $this->gmp_organization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php deleted file mode 100644 index 9b8c7fc6efc8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AccountSummary.php +++ /dev/null @@ -1,186 +0,0 @@ -google.analytics.admin.v1alpha.AccountSummary - */ -class AccountSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - */ - protected $account = ''; - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - private $property_summaries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * @type string $account - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * @type string $display_name - * Display name for the account referred to in this account summary. - * @type array<\Google\Analytics\Admin\V1alpha\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $property_summaries - * List of summaries for child accounts of this account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPropertySummaries() - { - return $this->property_summaries; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - * @param array<\Google\Analytics\Admin\V1alpha\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPropertySummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\PropertySummary::class); - $this->property_summaries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php deleted file mode 100644 index 98b1ece2a495..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - */ -class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $acknowledgement = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The property for which to acknowledge user data collection. - * @type string $acknowledgement - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAcknowledgement() - { - return $this->acknowledgement; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAcknowledgement($var) - { - GPBUtil::checkString($var, True); - $this->acknowledgement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php deleted file mode 100644 index 4d03c2d230b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AcknowledgeUserDataCollectionResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse - */ -class AcknowledgeUserDataCollectionResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php deleted file mode 100644 index 49253924461b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActionType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.ActionType - */ -class ActionType -{ - /** - * Action type unknown or not specified. - * - * Generated from protobuf enum ACTION_TYPE_UNSPECIFIED = 0; - */ - const ACTION_TYPE_UNSPECIFIED = 0; - /** - * Resource was created in this change. - * - * Generated from protobuf enum CREATED = 1; - */ - const CREATED = 1; - /** - * Resource was updated in this change. - * - * Generated from protobuf enum UPDATED = 2; - */ - const UPDATED = 2; - /** - * Resource was deleted in this change. - * - * Generated from protobuf enum DELETED = 3; - */ - const DELETED = 3; - - private static $valueToName = [ - self::ACTION_TYPE_UNSPECIFIED => 'ACTION_TYPE_UNSPECIFIED', - self::CREATED => 'CREATED', - self::UPDATED => 'UPDATED', - self::DELETED => 'DELETED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php deleted file mode 100644 index f2bc347c5a68..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ActorType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.analytics.admin.v1alpha.ActorType - */ -class ActorType -{ - /** - * Unknown or unspecified actor type. - * - * Generated from protobuf enum ACTOR_TYPE_UNSPECIFIED = 0; - */ - const ACTOR_TYPE_UNSPECIFIED = 0; - /** - * Changes made by the user specified in actor_email. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * Changes made by the Google Analytics system. - * - * Generated from protobuf enum SYSTEM = 2; - */ - const SYSTEM = 2; - /** - * Changes made by Google Analytics support team staff. - * - * Generated from protobuf enum SUPPORT = 3; - */ - const SUPPORT = 3; - - private static $valueToName = [ - self::ACTOR_TYPE_UNSPECIFIED => 'ACTOR_TYPE_UNSPECIFIED', - self::USER => 'USER', - self::SYSTEM => 'SYSTEM', - self::SUPPORT => 'SUPPORT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php deleted file mode 100644 index d761b682fb8d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AdSenseLink.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1alpha.AdSenseLink - */ -class AdSenseLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * - * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ad_client_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * @type string $ad_client_code - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this AdSense Link resource. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/6789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * - * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdClientCode() - { - return $this->ad_client_code; - } - - /** - * Immutable. The AdSense ad client code that the GA4 property is linked to. - * Example format: "ca-pub-1234567890" - * - * Generated from protobuf field string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdClientCode($var) - { - GPBUtil::checkString($var, True); - $this->ad_client_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index a52787771996..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest - */ -class ApproveDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php deleted file mode 100644 index 43bf9175e1d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse - */ -class ApproveDisplayVideo360AdvertiserLinkProposalResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - protected $display_video_360_advertiser_link = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->display_video_360_advertiser_link; - } - - public function hasDisplayVideo360AdvertiserLink() - { - return isset($this->display_video_360_advertiser_link); - } - - public function clearDisplayVideo360AdvertiserLink() - { - unset($this->display_video_360_advertiser_link); - } - - /** - * The DisplayVideo360AdvertiserLink created as a result of approving the - * proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php deleted file mode 100644 index e87bb551c107..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveAudienceRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ArchiveAudienceRequest - */ -class ArchiveAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/audiences/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php deleted file mode 100644 index 0edd74fe7bb8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomDimensionRequest.php +++ /dev/null @@ -1,86 +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 = ''; - - /** - * @param string $name Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ArchiveCustomDimensionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\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 997f8e3cb748..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ArchiveCustomMetricRequest.php +++ /dev/null @@ -1,86 +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 = ''; - - /** - * @param string $name Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ArchiveCustomMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php deleted file mode 100644 index f166baedc5d9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings.php +++ /dev/null @@ -1,240 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings - */ -class AttributionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $acquisition_conversion_event_lookback_window = 0; - /** - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $other_conversion_event_lookback_window = 0; - /** - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reporting_attribution_model = 0; - /** - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ads_web_conversion_data_export_scope = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * @type int $acquisition_conversion_event_lookback_window - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * @type int $other_conversion_event_lookback_window - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * @type int $reporting_attribution_model - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * @type int $ads_web_conversion_data_export_scope - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this attribution settings resource. - * Format: properties/{property_id}/attributionSettings - * Example: "properties/1000/attributionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAcquisitionConversionEventLookbackWindow() - { - return $this->acquisition_conversion_event_lookback_window; - } - - /** - * Required. The lookback window configuration for acquisition conversion - * events. The default window size is 30 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAcquisitionConversionEventLookbackWindow($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\AcquisitionConversionEventLookbackWindow::class); - $this->acquisition_conversion_event_lookback_window = $var; - - return $this; - } - - /** - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOtherConversionEventLookbackWindow() - { - return $this->other_conversion_event_lookback_window; - } - - /** - * Required. The lookback window for all other, non-acquisition conversion - * events. The default window size is 90 days. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOtherConversionEventLookbackWindow($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\OtherConversionEventLookbackWindow::class); - $this->other_conversion_event_lookback_window = $var; - - return $this; - } - - /** - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getReportingAttributionModel() - { - return $this->reporting_attribution_model; - } - - /** - * Required. The reporting attribution model used to calculate conversion - * credit in this property's reports. - * Changing the attribution model will apply to both historical and future - * data. These changes will be reflected in reports with conversion and - * revenue data. User and session data will be unaffected. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setReportingAttributionModel($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\ReportingAttributionModel::class); - $this->reporting_attribution_model = $var; - - return $this; - } - - /** - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAdsWebConversionDataExportScope() - { - return $this->ads_web_conversion_data_export_scope; - } - - /** - * Required. The Conversion Export Scope for data exported to linked Ads - * Accounts. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAdsWebConversionDataExportScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AttributionSettings\AdsWebConversionDataExportScope::class); - $this->ads_web_conversion_data_export_scope = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php deleted file mode 100644 index 27addf5b305e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AcquisitionConversionEventLookbackWindow.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow - */ -class AcquisitionConversionEventLookbackWindow -{ - /** - * Lookback window size unspecified. - * - * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - /** - * 7-day lookback window. - * - * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; - */ - const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; - /** - * 30-day lookback window. - * - * Generated from protobuf enum ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; - */ - const ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; - - private static $valueToName = [ - self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED', - self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS', - self::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS => 'ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AcquisitionConversionEventLookbackWindow::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_AcquisitionConversionEventLookbackWindow::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php deleted file mode 100644 index 71ce27a0c6dc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/AdsWebConversionDataExportScope.php +++ /dev/null @@ -1,77 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope - */ -class AdsWebConversionDataExportScope -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; - */ - const ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; - /** - * No data export scope selected yet. - * Export scope can never be changed back to this value. - * - * Generated from protobuf enum NOT_SELECTED_YET = 1; - */ - const NOT_SELECTED_YET = 1; - /** - * Paid and organic channels are eligible to receive conversion credit, but - * only credit assigned to Google Ads channels will appear in your Ads - * accounts. To learn more, see [Paid and Organic - * channels](https://support.google.com/analytics/answer/10632359). - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS = 2; - */ - const PAID_AND_ORGANIC_CHANNELS = 2; - /** - * Only Google Ads paid channels are eligible to receive conversion credit. - * To learn more, see [Google Paid - * channels](https://support.google.com/analytics/answer/10632359). - * - * Generated from protobuf enum GOOGLE_PAID_CHANNELS = 3; - */ - const GOOGLE_PAID_CHANNELS = 3; - - private static $valueToName = [ - self::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED => 'ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED', - self::NOT_SELECTED_YET => 'NOT_SELECTED_YET', - self::PAID_AND_ORGANIC_CHANNELS => 'PAID_AND_ORGANIC_CHANNELS', - self::GOOGLE_PAID_CHANNELS => 'GOOGLE_PAID_CHANNELS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AdsWebConversionDataExportScope::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_AdsWebConversionDataExportScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php deleted file mode 100644 index 9524df564097..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/OtherConversionEventLookbackWindow.php +++ /dev/null @@ -1,73 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow - */ -class OtherConversionEventLookbackWindow -{ - /** - * Lookback window size unspecified. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - /** - * 30-day lookback window. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; - /** - * 60-day lookback window. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; - /** - * 90-day lookback window. - * - * Generated from protobuf enum OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; - */ - const OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; - - private static $valueToName = [ - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED', - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS', - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS', - self::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS => 'OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OtherConversionEventLookbackWindow::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_OtherConversionEventLookbackWindow::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php deleted file mode 100644 index e803a4d1e47e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AttributionSettings/ReportingAttributionModel.php +++ /dev/null @@ -1,80 +0,0 @@ -google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel - */ -class ReportingAttributionModel -{ - /** - * Reporting attribution model unspecified. - * - * Generated from protobuf enum REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; - */ - const REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; - /** - * Data-driven attribution distributes credit for the conversion based on - * data for each conversion event. Each Data-driven model is specific to - * each advertiser and each conversion event. - * Previously CROSS_CHANNEL_DATA_DRIVEN - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; - */ - const PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; - /** - * Ignores direct traffic and attributes 100% of the conversion value to the - * last channel that the customer clicked through (or engaged view through - * for YouTube) before converting. - * Previously CROSS_CHANNEL_LAST_CLICK - * - * Generated from protobuf enum PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; - */ - const PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; - /** - * Attributes 100% of the conversion value to the last Google Paid channel - * that the customer clicked through before converting. - * Previously ADS_PREFERRED_LAST_CLICK - * - * Generated from protobuf enum GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; - */ - const GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; - - private static $valueToName = [ - self::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED => 'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED', - self::PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN => 'PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN', - self::PAID_AND_ORGANIC_CHANNELS_LAST_CLICK => 'PAID_AND_ORGANIC_CHANNELS_LAST_CLICK', - self::GOOGLE_PAID_CHANNELS_LAST_CLICK => 'GOOGLE_PAID_CHANNELS_LAST_CLICK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReportingAttributionModel::class, \Google\Analytics\Admin\V1alpha\AttributionSettings_ReportingAttributionModel::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php deleted file mode 100644 index 3c0636c0ec42..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience.php +++ /dev/null @@ -1,387 +0,0 @@ -google.analytics.admin.v1alpha.Audience - */ -class Audience extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The display name of the Audience. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The description of the Audience. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $description = ''; - /** - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * - * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $membership_duration_days = 0; - /** - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * - * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ads_personalization_enabled = false; - /** - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $event_trigger = null; - /** - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $exclusion_duration_mode = 0; - /** - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $filter_clauses; - /** - * Output only. Time when the Audience was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.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. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * @type string $display_name - * Required. The display name of the Audience. - * @type string $description - * Required. The description of the Audience. - * @type int $membership_duration_days - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * @type bool $ads_personalization_enabled - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * @type \Google\Analytics\Admin\V1alpha\AudienceEventTrigger $event_trigger - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * @type int $exclusion_duration_mode - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * @type array<\Google\Analytics\Admin\V1alpha\AudienceFilterClause>|\Google\Protobuf\Internal\RepeatedField $filter_clauses - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the Audience was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this Audience resource. - * Format: properties/{propertyId}/audiences/{audienceId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the Audience. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the Audience. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The description of the Audience. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Required. The description of the Audience. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * - * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getMembershipDurationDays() - { - return $this->membership_duration_days; - } - - /** - * Required. Immutable. The duration a user should stay in an Audience. It - * cannot be set to more than 540 days. - * - * Generated from protobuf field int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setMembershipDurationDays($var) - { - GPBUtil::checkInt32($var); - $this->membership_duration_days = $var; - - return $this; - } - - /** - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * - * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - /** - * Output only. It is automatically set by GA to false if this is an NPA - * Audience and is excluded from ads personalization. - * - * Generated from protobuf field bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkBool($var); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1alpha\AudienceEventTrigger|null - */ - public function getEventTrigger() - { - return $this->event_trigger; - } - - public function hasEventTrigger() - { - return isset($this->event_trigger); - } - - public function clearEventTrigger() - { - unset($this->event_trigger); - } - - /** - * Optional. Specifies an event to log when a user joins the Audience. If not - * set, no event is logged when a user joins the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1alpha\AudienceEventTrigger $var - * @return $this - */ - public function setEventTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger::class); - $this->event_trigger = $var; - - return $this; - } - - /** - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getExclusionDurationMode() - { - return $this->exclusion_duration_mode; - } - - /** - * Immutable. Specifies how long an exclusion lasts for users that meet the - * exclusion filter. It is applied to all EXCLUDE filter clauses and is - * ignored when there is no EXCLUDE filter clause in the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setExclusionDurationMode($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\Audience\AudienceExclusionDurationMode::class); - $this->exclusion_duration_mode = $var; - - return $this; - } - - /** - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterClauses() - { - return $this->filter_clauses; - } - - /** - * Required. Immutable. Unordered list. Filter clauses that define the - * Audience. All clauses will be AND’ed together. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @param array<\Google\Analytics\Admin\V1alpha\AudienceFilterClause>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterClauses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceFilterClause::class); - $this->filter_clauses = $arr; - - return $this; - } - - /** - * Output only. Time when the Audience was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.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 Audience was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.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/Audience/AudienceExclusionDurationMode.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php deleted file mode 100644 index 21f2bcb25177..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Audience/AudienceExclusionDurationMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode - */ -class AudienceExclusionDurationMode -{ - /** - * Not specified. - * - * Generated from protobuf enum AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; - */ - const AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; - /** - * Exclude users from the Audience during periods when they meet the - * filter clause. - * - * Generated from protobuf enum EXCLUDE_TEMPORARILY = 1; - */ - const EXCLUDE_TEMPORARILY = 1; - /** - * Exclude users from the Audience if they've ever met the filter clause. - * - * Generated from protobuf enum EXCLUDE_PERMANENTLY = 2; - */ - const EXCLUDE_PERMANENTLY = 2; - - private static $valueToName = [ - self::AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED => 'AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED', - self::EXCLUDE_TEMPORARILY => 'EXCLUDE_TEMPORARILY', - self::EXCLUDE_PERMANENTLY => 'EXCLUDE_PERMANENTLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AudienceExclusionDurationMode::class, \Google\Analytics\Admin\V1alpha\Audience_AudienceExclusionDurationMode::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php deleted file mode 100644 index 40a3b3c74607..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter.php +++ /dev/null @@ -1,350 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - */ -class AudienceDimensionOrMetricFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $field_name = ''; - /** - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * - * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $at_any_point_in_time = false; - /** - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * - * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $in_any_n_day_period = 0; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter $string_filter - * A filter for a string-type dimension that matches a particular pattern. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter $in_list_filter - * A filter for a string dimension that matches a particular list of - * options. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter $numeric_filter - * A filter for numeric or date values on a dimension or metric. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter $between_filter - * A filter for numeric or date values between certain values on a dimension - * or metric. - * @type string $field_name - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * @type bool $at_any_point_in_time - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * @type int $in_any_n_day_period - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\InListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for numeric or date values on a dimension or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(4); - } - - public function hasNumericFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for numeric or date values on a dimension or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for numeric or date values between certain values on a dimension - * or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(5); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for numeric or date values between certain values on a dimension - * or metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\BetweenFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * Required. Immutable. The dimension name or metric name to filter. If the - * field name refers to a custom dimension or metric, a scope prefix will be - * added to the front of the custom dimensions or metric name. For more on - * scope prefixes or custom dimensions/metrics, reference the [Google - * Analytics Data API documentation] - * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * - * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAtAnyPointInTime() - { - return $this->at_any_point_in_time; - } - - /** - * Optional. Indicates whether this filter needs dynamic evaluation or not. If - * set to true, users join the Audience if they ever met the condition (static - * evaluation). If unset or set to false, user evaluation for an Audience is - * dynamic; users are added to an Audience when they meet the conditions and - * then removed when they no longer meet them. - * This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - * - * Generated from protobuf field bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAtAnyPointInTime($var) - { - GPBUtil::checkBool($var); - $this->at_any_point_in_time = $var; - - return $this; - } - - /** - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * - * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getInAnyNDayPeriod() - { - return $this->in_any_n_day_period; - } - - /** - * Optional. If set, specifies the time window for which to evaluate data in - * number of days. If not set, then audience data is evaluated against - * lifetime data (For example, infinite time window). - * For example, if set to 1 day, only the current day's data is evaluated. The - * reference point is the current day when at_any_point_in_time is unset or - * false. - * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - * greater than 60 days. - * - * Generated from protobuf field int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setInAnyNDayPeriod($var) - { - GPBUtil::checkInt32($var); - $this->in_any_n_day_period = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php deleted file mode 100644 index 65db89b7a769..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/BetweenFilter.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter - */ -class BetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Begins with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $from_value = null; - /** - * Required. Ends with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $from_value - * Required. Begins with this number, inclusive. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $to_value - * Required. Ends with this number, inclusive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Begins with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Required. Begins with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Required. Ends with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Required. Ends with this number, inclusive. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BetweenFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_BetweenFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php deleted file mode 100644 index a3669928d13c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/InListFilter.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Required. The list of possible string values to match against. Must be - * non-empty. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php deleted file mode 100644 index e1ef6d8bf551..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - */ -class NumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The operation applied to a numeric filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $operation = 0; - /** - * Required. The numeric or date value to match against. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * Required. The operation applied to a numeric filter. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $value - * Required. The numeric or date value to match against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The operation applied to a numeric filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * Required. The operation applied to a numeric filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * Required. The numeric or date value to match against. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Required. The numeric or date value to match against. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php deleted file mode 100644 index b2b52d8a9dfb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericFilter/Operation.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal. - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than. - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Greater than. - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::GREATER_THAN => 'GREATER_THAN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php deleted file mode 100644 index d65da128ca78..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/NumericValue.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value. - * @type float $double_value - * Double value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Integer value. - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value. - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value. - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value. - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericValue::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_NumericValue::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php deleted file mode 100644 index c491bcd0cde5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter.php +++ /dev/null @@ -1,142 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * Required. The match type for the string filter. - * @type string $value - * Required. The string value to be matched against. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php deleted file mode 100644 index 105fe57e2707..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceDimensionOrMetricFilter/StringFilter/MatchType.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full regular expression matches with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php deleted file mode 100644 index c69832492219..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventFilter.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.AudienceEventFilter - */ -class AudienceEventFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The name of the event to match against. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $event_name = ''; - /** - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $event_parameter_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * Required. Immutable. The name of the event to match against. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $event_parameter_filter_expression - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. The name of the event to match against. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Required. Immutable. The name of the event to match against. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getEventParameterFilterExpression() - { - return $this->event_parameter_filter_expression; - } - - public function hasEventParameterFilterExpression() - { - return isset($this->event_parameter_filter_expression); - } - - public function clearEventParameterFilterExpression() - { - unset($this->event_parameter_filter_expression); - } - - /** - * Optional. If specified, this filter matches events that match both the - * single event name and the parameter filter expressions. AudienceEventFilter - * inside the parameter filter expression cannot be set (For example, nested - * event filters are not supported). This should be a single and_group of - * dimension_or_metric_filter or not_expression; ANDs of ORs are not - * supported. Also, if it includes a filter for "eventCount", only that one - * will be considered; all the other filters will be ignored. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setEventParameterFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->event_parameter_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php deleted file mode 100644 index 59c9d32c6bbc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1alpha.AudienceEventTrigger - */ -class AudienceEventTrigger extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The event name that will be logged. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_name = ''; - /** - * Required. When to log the event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $log_condition = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * Required. The event name that will be logged. - * @type int $log_condition - * Required. When to log the event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. The event name that will be logged. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Required. The event name that will be logged. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Required. When to log the event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLogCondition() - { - return $this->log_condition; - } - - /** - * Required. When to log the event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLogCondition($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger\LogCondition::class); - $this->log_condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php deleted file mode 100644 index 601573c7be47..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceEventTrigger/LogCondition.php +++ /dev/null @@ -1,65 +0,0 @@ -google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition - */ -class LogCondition -{ - /** - * Log condition is not specified. - * - * Generated from protobuf enum LOG_CONDITION_UNSPECIFIED = 0; - */ - const LOG_CONDITION_UNSPECIFIED = 0; - /** - * The event should be logged only when a user is joined. - * - * Generated from protobuf enum AUDIENCE_JOINED = 1; - */ - const AUDIENCE_JOINED = 1; - /** - * The event should be logged whenever the Audience condition is met, even - * if the user is already a member of the Audience. - * - * Generated from protobuf enum AUDIENCE_MEMBERSHIP_RENEWED = 2; - */ - const AUDIENCE_MEMBERSHIP_RENEWED = 2; - - private static $valueToName = [ - self::LOG_CONDITION_UNSPECIFIED => 'LOG_CONDITION_UNSPECIFIED', - self::AUDIENCE_JOINED => 'AUDIENCE_JOINED', - self::AUDIENCE_MEMBERSHIP_RENEWED => 'AUDIENCE_MEMBERSHIP_RENEWED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LogCondition::class, \Google\Analytics\Admin\V1alpha\AudienceEventTrigger_LogCondition::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php deleted file mode 100644 index 678328c5477b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterClause - */ -class AudienceFilterClause extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Specifies whether this is an include or exclude filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $clause_type = 0; - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter $simple_filter - * A simple filter that a user must satisfy to be a member of the Audience. - * @type \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter $sequence_filter - * Filters that must occur in a specific order for the user to be a member - * of the Audience. - * @type int $clause_type - * Required. Specifies whether this is an include or exclude filter clause. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A simple filter that a user must satisfy to be a member of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter|null - */ - public function getSimpleFilter() - { - return $this->readOneof(2); - } - - public function hasSimpleFilter() - { - return $this->hasOneof(2); - } - - /** - * A simple filter that a user must satisfy to be a member of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter $var - * @return $this - */ - public function setSimpleFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceSimpleFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Filters that must occur in a specific order for the user to be a member - * of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter|null - */ - public function getSequenceFilter() - { - return $this->readOneof(3); - } - - public function hasSequenceFilter() - { - return $this->hasOneof(3); - } - - /** - * Filters that must occur in a specific order for the user to be a member - * of the Audience. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter $var - * @return $this - */ - public function setSequenceFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. Specifies whether this is an include or exclude filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getClauseType() - { - return $this->clause_type; - } - - /** - * Required. Specifies whether this is an include or exclude filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setClauseType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterClause\AudienceClauseType::class); - $this->clause_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php deleted file mode 100644 index a15a7e9cb3b7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterClause/AudienceClauseType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType - */ -class AudienceClauseType -{ - /** - * Unspecified clause type. - * - * Generated from protobuf enum AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; - */ - const AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; - /** - * Users will be included in the Audience if the filter clause is met. - * - * Generated from protobuf enum INCLUDE = 1; - */ - const PBINCLUDE = 1; - /** - * Users will be excluded from the Audience if the filter clause is met. - * - * Generated from protobuf enum EXCLUDE = 2; - */ - const EXCLUDE = 2; - - private static $valueToName = [ - self::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED => 'AUDIENCE_CLAUSE_TYPE_UNSPECIFIED', - self::PBINCLUDE => 'INCLUDE', - self::EXCLUDE => 'EXCLUDE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AudienceClauseType::class, \Google\Analytics\Admin\V1alpha\AudienceFilterClause_AudienceClauseType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php deleted file mode 100644 index 6ba4a70db679..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpression.php +++ /dev/null @@ -1,228 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterExpression - */ -class AudienceFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $and_group - * A list of expressions to be AND’ed together. It can only contain - * AudienceFilterExpressions with or_group. This must be set for the top - * level AudienceFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $or_group - * A list of expressions to OR’ed together. It cannot contain - * AudienceFilterExpressions with and_group or or_group. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $not_expression - * A filter expression to be NOT'ed (For example, inverted, complemented). - * It can only include a dimension_or_metric_filter. This cannot be set on - * the top level AudienceFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter $dimension_or_metric_filter - * A filter on a single dimension or metric. This cannot be set on the top - * level AudienceFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\AudienceEventFilter $event_filter - * Creates a filter that matches a specific event. This cannot be set on the - * top level AudienceFilterExpression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * AudienceFilterExpressions with or_group. This must be set for the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * AudienceFilterExpressions with or_group. This must be set for the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * AudienceFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * AudienceFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter expression to be NOT'ed (For example, inverted, complemented). - * It can only include a dimension_or_metric_filter. This cannot be set on - * the top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * A filter expression to be NOT'ed (For example, inverted, complemented). - * It can only include a dimension_or_metric_filter. This cannot be set on - * the top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter on a single dimension or metric. This cannot be set on the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @return \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter|null - */ - public function getDimensionOrMetricFilter() - { - return $this->readOneof(4); - } - - public function hasDimensionOrMetricFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter on a single dimension or metric. This cannot be set on the top - * level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @param \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter $var - * @return $this - */ - public function setDimensionOrMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceDimensionOrMetricFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Creates a filter that matches a specific event. This cannot be set on the - * top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AudienceEventFilter|null - */ - public function getEventFilter() - { - return $this->readOneof(5); - } - - public function hasEventFilter() - { - return $this->hasOneof(5); - } - - /** - * Creates a filter that matches a specific event. This cannot be set on the - * top level AudienceFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AudienceEventFilter $var - * @return $this - */ - public function setEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceEventFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php deleted file mode 100644 index 8b88c4a949e6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterExpressionList - */ -class AudienceFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of Audience filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - private $filter_expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AudienceFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions - * A list of Audience filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * A list of Audience filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterExpressions() - { - return $this->filter_expressions; - } - - /** - * A list of Audience filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AudienceFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->filter_expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php deleted file mode 100644 index c435fdcb3dcb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceFilterScope.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.AudienceFilterScope - */ -class AudienceFilterScope -{ - /** - * Scope is not specified. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; - */ - const AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; - /** - * User joins the Audience if the filter condition is met within one - * event. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; - */ - const AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; - /** - * User joins the Audience if the filter condition is met within one - * session. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; - */ - const AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; - /** - * User joins the Audience if the filter condition is met by any event - * across any session. - * - * Generated from protobuf enum AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; - */ - const AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; - - private static $valueToName = [ - self::AUDIENCE_FILTER_SCOPE_UNSPECIFIED => 'AUDIENCE_FILTER_SCOPE_UNSPECIFIED', - self::AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT => 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT', - self::AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION => 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION', - self::AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS => 'AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php deleted file mode 100644 index 8488446af7a6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1alpha.AudienceSequenceFilter - */ -class AudienceSequenceFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. Defines the time period in which the whole sequence must occur. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sequence_maximum_duration = null; - /** - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $sequence_steps; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Required. Immutable. Specifies the scope for this filter. - * @type \Google\Protobuf\Duration $sequence_maximum_duration - * Optional. Defines the time period in which the whole sequence must occur. - * @type array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $sequence_steps - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Defines the time period in which the whole sequence must occur. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getSequenceMaximumDuration() - { - return $this->sequence_maximum_duration; - } - - public function hasSequenceMaximumDuration() - { - return isset($this->sequence_maximum_duration); - } - - public function clearSequenceMaximumDuration() - { - unset($this->sequence_maximum_duration); - } - - /** - * Optional. Defines the time period in which the whole sequence must occur. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setSequenceMaximumDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->sequence_maximum_duration = $var; - - return $this; - } - - /** - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSequenceSteps() - { - return $this->sequence_steps; - } - - /** - * Required. An ordered sequence of steps. A user must complete each step in - * order to join the sequence filter. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSequenceSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter\AudienceSequenceStep::class); - $this->sequence_steps = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php deleted file mode 100644 index 13ca6308dfd6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSequenceFilter/AudienceSequenceStep.php +++ /dev/null @@ -1,225 +0,0 @@ -google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - */ -class AudienceSequenceStep extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Specifies the scope for this step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * - * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $immediately_follows = false; - /** - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * - * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $constraint_duration = null; - /** - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Required. Immutable. Specifies the scope for this step. - * @type bool $immediately_follows - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * @type \Google\Protobuf\Duration $constraint_duration - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $filter_expression - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Specifies the scope for this step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. Specifies the scope for this step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * - * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getImmediatelyFollows() - { - return $this->immediately_follows; - } - - /** - * Optional. If true, the event satisfying this step must be the very next - * event after the event satisfying the last step. If unset or false, this - * step indirectly follows the prior step; for example, there may be - * events between the prior step and this step. It is ignored for the - * first step. - * - * Generated from protobuf field bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setImmediatelyFollows($var) - { - GPBUtil::checkBool($var); - $this->immediately_follows = $var; - - return $this; - } - - /** - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * - * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getConstraintDuration() - { - return $this->constraint_duration; - } - - public function hasConstraintDuration() - { - return isset($this->constraint_duration); - } - - public function clearConstraintDuration() - { - unset($this->constraint_duration); - } - - /** - * Optional. When set, this step must be satisfied within the - * constraint_duration of the previous step (For example, t[i] - t[i-1] <= - * constraint_duration). If not set, there is no duration requirement (the - * duration is effectively unlimited). It is ignored for the first step. - * - * Generated from protobuf field .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setConstraintDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->constraint_duration = $var; - - return $this; - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getFilterExpression() - { - return $this->filter_expression; - } - - public function hasFilterExpression() - { - return isset($this->filter_expression); - } - - public function clearFilterExpression() - { - unset($this->filter_expression); - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, - * or event filters in each step. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->filter_expression = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AudienceSequenceStep::class, \Google\Analytics\Admin\V1alpha\AudienceSequenceFilter_AudienceSequenceStep::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php deleted file mode 100644 index 26f27aa25a82..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/AudienceSimpleFilter.php +++ /dev/null @@ -1,116 +0,0 @@ -google.analytics.admin.v1alpha.AudienceSimpleFilter - */ -class AudienceSimpleFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Required. Immutable. Specifies the scope for this filter. - * @type \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $filter_expression - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Audience::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. Specifies the scope for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\AudienceFilterScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Analytics\Admin\V1alpha\AudienceFilterExpression|null - */ - public function getFilterExpression() - { - return $this->filter_expression; - } - - public function hasFilterExpression() - { - return isset($this->filter_expression); - } - - public function clearFilterExpression() - { - unset($this->filter_expression); - } - - /** - * Required. Immutable. A logical expression of Audience dimension, metric, or - * event filters. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Analytics\Admin\V1alpha\AudienceFilterExpression $var - * @return $this - */ - public function setFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AudienceFilterExpression::class); - $this->filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php deleted file mode 100644 index 537b7dbd330a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest - */ -class BatchCreateAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @type array<\Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php deleted file mode 100644 index 20b38e1f4086..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchCreateAccessBindingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse - */ -class BatchCreateAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The access bindings created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * The access bindings created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The access bindings created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * The access bindings created. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php deleted file mode 100644 index 4aae0f4947b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchDeleteAccessBindingsRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest - */ -class BatchDeleteAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @type array<\Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php deleted file mode 100644 index b1880eb346b5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest - */ -class BatchGetAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @type array|\Google\Protobuf\Internal\RepeatedField $names - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNames() - { - return $this->names; - } - - /** - * Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php deleted file mode 100644 index 1d081d8da436..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchGetAccessBindingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse - */ -class BatchGetAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested access bindings. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * The requested access bindings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested access bindings. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * The requested access bindings. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php deleted file mode 100644 index a79e2f38d164..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest - */ -class BatchUpdateAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @type array<\Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php deleted file mode 100644 index 9624005bb343..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BatchUpdateAccessBindingsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse - */ -class BatchUpdateAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The access bindings updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * The access bindings updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The access bindings updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * The access bindings updated. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php deleted file mode 100644 index 2cd314d42a6e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/BigQueryLink.php +++ /dev/null @@ -1,435 +0,0 @@ -google.analytics.admin.v1alpha.BigQueryLink - */ -class BigQueryLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $project = ''; - /** - * Output only. Time when the link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * If set true, enables daily data export to the linked Google Cloud project. - * - * Generated from protobuf field bool daily_export_enabled = 4; - */ - protected $daily_export_enabled = false; - /** - * If set true, enables streaming export to the linked Google Cloud project. - * - * Generated from protobuf field bool streaming_export_enabled = 5; - */ - protected $streaming_export_enabled = false; - /** - * If set true, enables fresh daily export to the linked Google Cloud project. - * - * Generated from protobuf field bool fresh_daily_export_enabled = 9; - */ - protected $fresh_daily_export_enabled = false; - /** - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * - * Generated from protobuf field bool include_advertising_id = 6; - */ - protected $include_advertising_id = false; - /** - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * - * Generated from protobuf field repeated string export_streams = 7; - */ - private $export_streams; - /** - * The list of event names that will be excluded from exports. - * - * Generated from protobuf field repeated string excluded_events = 8; - */ - private $excluded_events; - /** - * Required. Immutable. The geographic location where the created BigQuery - * dataset should reside. See https://cloud.google.com/bigquery/docs/locations - * for supported locations. - * - * Generated from protobuf field string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset_location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * @type string $project - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the link was created. - * @type bool $daily_export_enabled - * If set true, enables daily data export to the linked Google Cloud project. - * @type bool $streaming_export_enabled - * If set true, enables streaming export to the linked Google Cloud project. - * @type bool $fresh_daily_export_enabled - * If set true, enables fresh daily export to the linked Google Cloud project. - * @type bool $include_advertising_id - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * @type array|\Google\Protobuf\Internal\RepeatedField $export_streams - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_events - * The list of event names that will be excluded from exports. - * @type string $dataset_location - * Required. Immutable. The geographic location where the created BigQuery - * dataset should reside. See https://cloud.google.com/bigquery/docs/locations - * for supported locations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this BigQuery link. - * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' - * Format: 'properties/1234/bigQueryLinks/abc567' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Immutable. The linked Google Cloud project. When creating a BigQueryLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, the returned project will always - * have a project that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. Time when the link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * If set true, enables daily data export to the linked Google Cloud project. - * - * Generated from protobuf field bool daily_export_enabled = 4; - * @return bool - */ - public function getDailyExportEnabled() - { - return $this->daily_export_enabled; - } - - /** - * If set true, enables daily data export to the linked Google Cloud project. - * - * Generated from protobuf field bool daily_export_enabled = 4; - * @param bool $var - * @return $this - */ - public function setDailyExportEnabled($var) - { - GPBUtil::checkBool($var); - $this->daily_export_enabled = $var; - - return $this; - } - - /** - * If set true, enables streaming export to the linked Google Cloud project. - * - * Generated from protobuf field bool streaming_export_enabled = 5; - * @return bool - */ - public function getStreamingExportEnabled() - { - return $this->streaming_export_enabled; - } - - /** - * If set true, enables streaming export to the linked Google Cloud project. - * - * Generated from protobuf field bool streaming_export_enabled = 5; - * @param bool $var - * @return $this - */ - public function setStreamingExportEnabled($var) - { - GPBUtil::checkBool($var); - $this->streaming_export_enabled = $var; - - return $this; - } - - /** - * If set true, enables fresh daily export to the linked Google Cloud project. - * - * Generated from protobuf field bool fresh_daily_export_enabled = 9; - * @return bool - */ - public function getFreshDailyExportEnabled() - { - return $this->fresh_daily_export_enabled; - } - - /** - * If set true, enables fresh daily export to the linked Google Cloud project. - * - * Generated from protobuf field bool fresh_daily_export_enabled = 9; - * @param bool $var - * @return $this - */ - public function setFreshDailyExportEnabled($var) - { - GPBUtil::checkBool($var); - $this->fresh_daily_export_enabled = $var; - - return $this; - } - - /** - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * - * Generated from protobuf field bool include_advertising_id = 6; - * @return bool - */ - public function getIncludeAdvertisingId() - { - return $this->include_advertising_id; - } - - /** - * If set true, exported data will include advertising identifiers for mobile - * app streams. - * - * Generated from protobuf field bool include_advertising_id = 6; - * @param bool $var - * @return $this - */ - public function setIncludeAdvertisingId($var) - { - GPBUtil::checkBool($var); - $this->include_advertising_id = $var; - - return $this; - } - - /** - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * - * Generated from protobuf field repeated string export_streams = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExportStreams() - { - return $this->export_streams; - } - - /** - * The list of streams under the parent property for which data will be - * exported. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: ['properties/1000/dataStreams/2000'] - * - * Generated from protobuf field repeated string export_streams = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExportStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->export_streams = $arr; - - return $this; - } - - /** - * The list of event names that will be excluded from exports. - * - * Generated from protobuf field repeated string excluded_events = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedEvents() - { - return $this->excluded_events; - } - - /** - * The list of event names that will be excluded from exports. - * - * Generated from protobuf field repeated string excluded_events = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_events = $arr; - - return $this; - } - - /** - * Required. Immutable. The geographic location where the created BigQuery - * dataset should reside. See https://cloud.google.com/bigquery/docs/locations - * for supported locations. - * - * Generated from protobuf field string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasetLocation() - { - return $this->dataset_location; - } - - /** - * Required. Immutable. The geographic location where the created BigQuery - * dataset should reside. See https://cloud.google.com/bigquery/docs/locations - * for supported locations. - * - * Generated from protobuf field string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasetLocation($var) - { - GPBUtil::checkString($var, True); - $this->dataset_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric.php deleted file mode 100644 index 17ac5e25337d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric.php +++ /dev/null @@ -1,361 +0,0 @@ -google.analytics.admin.v1alpha.CalculatedMetric - */ -class CalculatedMetric extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CalculatedMetric. - * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Optional. Description for this calculated metric. - * Max length of 4096 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Display name for this calculated metric as shown in the - * Google Analytics UI. Max length 82 characters. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The ID to use for the calculated metric. In the UI, this is - * referred to as the "API name." - * The calculated_metric_id is used when referencing this calculated metric - * from external APIs. For example, "calcMetric:{calculated_metric_id}". - * - * Generated from protobuf field string calculated_metric_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $calculated_metric_id = ''; - /** - * Required. The type for the calculated metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric.MetricUnit metric_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metric_unit = 0; - /** - * Output only. Types of restricted data that this metric contains. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricType restricted_metric_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $restricted_metric_type; - /** - * Required. The calculated metric's definition. Maximum number of unique - * referenced custom metrics is 5. Formulas supports the following operations: - * + (addition), - (subtraction), - (negative), * (multiplication), / - * (division), () (parenthesis). Any valid real numbers are acceptable that - * fit in a Long (64bit integer) or a Double (64 bit floating point number). - * Example formula: - * "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0" - * - * Generated from protobuf field string formula = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $formula = ''; - /** - * Output only. If true, this calculated metric has a invalid metric - * reference. Anything using a calculated metric with invalid_metric_reference - * set to true may fail, produce warnings, or produce unexpected results. - * - * Generated from protobuf field bool invalid_metric_reference = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $invalid_metric_reference = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CalculatedMetric. - * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' - * @type string $description - * Optional. Description for this calculated metric. - * Max length of 4096 characters. - * @type string $display_name - * Required. Display name for this calculated metric as shown in the - * Google Analytics UI. Max length 82 characters. - * @type string $calculated_metric_id - * Output only. The ID to use for the calculated metric. In the UI, this is - * referred to as the "API name." - * The calculated_metric_id is used when referencing this calculated metric - * from external APIs. For example, "calcMetric:{calculated_metric_id}". - * @type int $metric_unit - * Required. The type for the calculated metric's value. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type - * Output only. Types of restricted data that this metric contains. - * @type string $formula - * Required. The calculated metric's definition. Maximum number of unique - * referenced custom metrics is 5. Formulas supports the following operations: - * + (addition), - (subtraction), - (negative), * (multiplication), / - * (division), () (parenthesis). Any valid real numbers are acceptable that - * fit in a Long (64bit integer) or a Double (64 bit floating point number). - * Example formula: - * "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0" - * @type bool $invalid_metric_reference - * Output only. If true, this calculated metric has a invalid metric - * reference. Anything using a calculated metric with invalid_metric_reference - * set to true may fail, produce warnings, or produce unexpected results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CalculatedMetric. - * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' - * - * 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 CalculatedMetric. - * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_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; - } - - /** - * Optional. Description for this calculated metric. - * Max length of 4096 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this calculated metric. - * Max length of 4096 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Display name for this calculated metric as shown in the - * Google Analytics UI. Max length 82 characters. - * - * 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 calculated metric as shown in the - * Google Analytics UI. Max length 82 characters. - * - * 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; - } - - /** - * Output only. The ID to use for the calculated metric. In the UI, this is - * referred to as the "API name." - * The calculated_metric_id is used when referencing this calculated metric - * from external APIs. For example, "calcMetric:{calculated_metric_id}". - * - * Generated from protobuf field string calculated_metric_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCalculatedMetricId() - { - return $this->calculated_metric_id; - } - - /** - * Output only. The ID to use for the calculated metric. In the UI, this is - * referred to as the "API name." - * The calculated_metric_id is used when referencing this calculated metric - * from external APIs. For example, "calcMetric:{calculated_metric_id}". - * - * Generated from protobuf field string calculated_metric_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCalculatedMetricId($var) - { - GPBUtil::checkString($var, True); - $this->calculated_metric_id = $var; - - return $this; - } - - /** - * Required. The type for the calculated metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric.MetricUnit metric_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMetricUnit() - { - return $this->metric_unit; - } - - /** - * Required. The type for the calculated metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric.MetricUnit metric_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMetricUnit($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CalculatedMetric\MetricUnit::class); - $this->metric_unit = $var; - - return $this; - } - - /** - * Output only. Types of restricted data that this metric contains. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricType restricted_metric_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricType() - { - return $this->restricted_metric_type; - } - - /** - * Output only. Types of restricted data that this metric contains. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricType restricted_metric_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\CalculatedMetric\RestrictedMetricType::class); - $this->restricted_metric_type = $arr; - - return $this; - } - - /** - * Required. The calculated metric's definition. Maximum number of unique - * referenced custom metrics is 5. Formulas supports the following operations: - * + (addition), - (subtraction), - (negative), * (multiplication), / - * (division), () (parenthesis). Any valid real numbers are acceptable that - * fit in a Long (64bit integer) or a Double (64 bit floating point number). - * Example formula: - * "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0" - * - * Generated from protobuf field string formula = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFormula() - { - return $this->formula; - } - - /** - * Required. The calculated metric's definition. Maximum number of unique - * referenced custom metrics is 5. Formulas supports the following operations: - * + (addition), - (subtraction), - (negative), * (multiplication), / - * (division), () (parenthesis). Any valid real numbers are acceptable that - * fit in a Long (64bit integer) or a Double (64 bit floating point number). - * Example formula: - * "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0" - * - * Generated from protobuf field string formula = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFormula($var) - { - GPBUtil::checkString($var, True); - $this->formula = $var; - - return $this; - } - - /** - * Output only. If true, this calculated metric has a invalid metric - * reference. Anything using a calculated metric with invalid_metric_reference - * set to true may fail, produce warnings, or produce unexpected results. - * - * Generated from protobuf field bool invalid_metric_reference = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getInvalidMetricReference() - { - return $this->invalid_metric_reference; - } - - /** - * Output only. If true, this calculated metric has a invalid metric - * reference. Anything using a calculated metric with invalid_metric_reference - * set to true may fail, produce warnings, or produce unexpected results. - * - * Generated from protobuf field bool invalid_metric_reference = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setInvalidMetricReference($var) - { - GPBUtil::checkBool($var); - $this->invalid_metric_reference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric/MetricUnit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric/MetricUnit.php deleted file mode 100644 index d250ca5fa645..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric/MetricUnit.php +++ /dev/null @@ -1,120 +0,0 @@ -google.analytics.admin.v1alpha.CalculatedMetric.MetricUnit - */ -class MetricUnit -{ - /** - * MetricUnit unspecified or missing. - * - * Generated from protobuf enum METRIC_UNIT_UNSPECIFIED = 0; - */ - const METRIC_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 miles. - * - * Generated from protobuf enum MILES = 4; - */ - const MILES = 4; - /** - * This metric measures meters. - * - * Generated from protobuf enum METERS = 5; - */ - const METERS = 5; - /** - * This metric measures kilometers. - * - * Generated from protobuf enum KILOMETERS = 6; - */ - const KILOMETERS = 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::METRIC_UNIT_UNSPECIFIED => 'METRIC_UNIT_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::CURRENCY => 'CURRENCY', - self::FEET => 'FEET', - self::MILES => 'MILES', - self::METERS => 'METERS', - self::KILOMETERS => 'KILOMETERS', - 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(MetricUnit::class, \Google\Analytics\Admin\V1alpha\CalculatedMetric_MetricUnit::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric/RestrictedMetricType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric/RestrictedMetricType.php deleted file mode 100644 index 3443ac49b443..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CalculatedMetric/RestrictedMetricType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Type unknown or unspecified. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Metric reports cost data. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Metric reports revenue data. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestrictedMetricType::class, \Google\Analytics\Admin\V1alpha\CalculatedMetric_RestrictedMetricType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index ef65eb9e7af7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest - */ -class CancelDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php deleted file mode 100644 index a02c687dc6f1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange.php +++ /dev/null @@ -1,197 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryChange - */ -class ChangeHistoryChange extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - */ - protected $resource = ''; - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; - */ - protected $action = 0; - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - protected $resource_before_change = null; - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - protected $resource_after_change = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Resource name of the resource whose changes are described by this entry. - * @type int $action - * The type of action that changed this resource. - * @type \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $resource_before_change - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * @type \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $resource_after_change - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActionType action = 2; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ActionType::class); - $this->action = $var; - - return $this; - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceBeforeChange() - { - return $this->resource_before_change; - } - - public function hasResourceBeforeChange() - { - return isset($this->resource_before_change); - } - - public function clearResourceBeforeChange() - { - unset($this->resource_before_change); - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @param \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceBeforeChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_before_change = $var; - - return $this; - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceAfterChange() - { - return $this->resource_after_change; - } - - public function hasResourceAfterChange() - { - return isset($this->resource_after_change); - } - - public function clearResourceAfterChange() - { - unset($this->resource_after_change); - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @param \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceAfterChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_after_change = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php deleted file mode 100644 index 28c4f33e6054..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php +++ /dev/null @@ -1,880 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - */ -class ChangeHistoryResource extends \Google\Protobuf\Internal\Message -{ - protected $resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Account $account - * A snapshot of an Account resource in change history. - * @type \Google\Analytics\Admin\V1alpha\Property $property - * A snapshot of a Property resource in change history. - * @type \Google\Analytics\Admin\V1alpha\FirebaseLink $firebase_link - * A snapshot of a FirebaseLink resource in change history. - * @type \Google\Analytics\Admin\V1alpha\GoogleAdsLink $google_ads_link - * A snapshot of a GoogleAdsLink resource in change history. - * @type \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $google_signals_settings - * A snapshot of a GoogleSignalsSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * A snapshot of a DisplayVideo360AdvertiserLink resource in change - * history. - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal - * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - * change history. - * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event - * A snapshot of a ConversionEvent resource in change history. - * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret - * A snapshot of a MeasurementProtocolSecret resource in change history. - * @type \Google\Analytics\Admin\V1alpha\CustomDimension $custom_dimension - * A snapshot of a CustomDimension resource in change history. - * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric - * A snapshot of a CustomMetric resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings - * A snapshot of a data retention settings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link - * A snapshot of a SearchAds360Link resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream - * A snapshot of a DataStream resource in change history. - * @type \Google\Analytics\Admin\V1alpha\AttributionSettings $attribution_settings - * A snapshot of AttributionSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set - * A snapshot of an ExpandedDataSet resource in change history. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group - * A snapshot of a ChannelGroup resource in change history. - * @type \Google\Analytics\Admin\V1alpha\BigQueryLink $bigquery_link - * A snapshot of a BigQuery link resource in change history. - * @type \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhanced_measurement_settings - * A snapshot of EnhancedMeasurementSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\DataRedactionSettings $data_redaction_settings - * A snapshot of DataRedactionSettings resource in change history. - * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema - * A snapshot of SKAdNetworkConversionValueSchema resource in change - * history. - * @type \Google\Analytics\Admin\V1alpha\AdSenseLink $adsense_link - * A snapshot of an AdSenseLink resource in change history. - * @type \Google\Analytics\Admin\V1alpha\Audience $audience - * A snapshot of an Audience resource in change history. - * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule - * A snapshot of an EventCreateRule resource in change history. - * @type \Google\Analytics\Admin\V1alpha\CalculatedMetric $calculated_metric - * A snapshot of a CalculatedMetric resource in change history. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @return \Google\Analytics\Admin\V1alpha\Account|null - */ - public function getAccount() - { - return $this->readOneof(1); - } - - public function hasAccount() - { - return $this->hasOneof(1); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @param \Google\Analytics\Admin\V1alpha\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 2; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getProperty() - { - return $this->readOneof(2); - } - - public function hasProperty() - { - return $this->hasOneof(2); - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 2; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return \Google\Analytics\Admin\V1alpha\FirebaseLink|null - */ - public function getFirebaseLink() - { - return $this->readOneof(6); - } - - public function hasFirebaseLink() - { - return $this->hasOneof(6); - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @param \Google\Analytics\Admin\V1alpha\FirebaseLink $var - * @return $this - */ - public function setFirebaseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->readOneof(7); - } - - public function hasGoogleAdsLink() - { - return $this->hasOneof(7); - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * A snapshot of a GoogleSignalsSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings|null - */ - public function getGoogleSignalsSettings() - { - return $this->readOneof(8); - } - - public function hasGoogleSignalsSettings() - { - return $this->hasOneof(8); - } - - /** - * A snapshot of a GoogleSignalsSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @param \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $var - * @return $this - */ - public function setGoogleSignalsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLink resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->readOneof(9); - } - - public function hasDisplayVideo360AdvertiserLink() - { - return $this->hasOneof(9); - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLink resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - * change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null - */ - public function getDisplayVideo360AdvertiserLinkProposal() - { - return $this->readOneof(10); - } - - public function hasDisplayVideo360AdvertiserLinkProposal() - { - return $this->hasOneof(10); - } - - /** - * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - * change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinkProposal($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->readOneof(11); - } - - public function hasConversionEvent() - { - return $this->hasOneof(11); - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->readOneof(12); - } - - public function hasMeasurementProtocolSecret() - { - return $this->hasOneof(12); - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * A snapshot of a CustomDimension resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return \Google\Analytics\Admin\V1alpha\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->readOneof(13); - } - - public function hasCustomDimension() - { - return $this->hasOneof(13); - } - - /** - * A snapshot of a CustomDimension resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @param \Google\Analytics\Admin\V1alpha\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomDimension::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * A snapshot of a CustomMetric resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->readOneof(14); - } - - public function hasCustomMetric() - { - return $this->hasOneof(14); - } - - /** - * A snapshot of a CustomMetric resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->readOneof(15); - } - - public function hasDataRetentionSettings() - { - return $this->hasOneof(15); - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * A snapshot of a SearchAds360Link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null - */ - public function getSearchAds360Link() - { - return $this->readOneof(16); - } - - public function hasSearchAds360Link() - { - return $this->hasOneof(16); - } - - /** - * A snapshot of a SearchAds360Link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var - * @return $this - */ - public function setSearchAds360Link($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return \Google\Analytics\Admin\V1alpha\DataStream|null - */ - public function getDataStream() - { - return $this->readOneof(18); - } - - public function hasDataStream() - { - return $this->hasOneof(18); - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @param \Google\Analytics\Admin\V1alpha\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * A snapshot of AttributionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings|null - */ - public function getAttributionSettings() - { - return $this->readOneof(20); - } - - public function hasAttributionSettings() - { - return $this->hasOneof(20); - } - - /** - * A snapshot of AttributionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @param \Google\Analytics\Admin\V1alpha\AttributionSettings $var - * @return $this - */ - public function setAttributionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AttributionSettings::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * A snapshot of an ExpandedDataSet resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null - */ - public function getExpandedDataSet() - { - return $this->readOneof(21); - } - - public function hasExpandedDataSet() - { - return $this->hasOneof(21); - } - - /** - * A snapshot of an ExpandedDataSet resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var - * @return $this - */ - public function setExpandedDataSet($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * A snapshot of a ChannelGroup resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null - */ - public function getChannelGroup() - { - return $this->readOneof(22); - } - - public function hasChannelGroup() - { - return $this->hasOneof(22); - } - - /** - * A snapshot of a ChannelGroup resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var - * @return $this - */ - public function setChannelGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * A snapshot of a BigQuery link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink|null - */ - public function getBigqueryLink() - { - return $this->readOneof(23); - } - - public function hasBigqueryLink() - { - return $this->hasOneof(23); - } - - /** - * A snapshot of a BigQuery link resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $var - * @return $this - */ - public function setBigqueryLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); - $this->writeOneof(23, $var); - - return $this; - } - - /** - * A snapshot of EnhancedMeasurementSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings|null - */ - public function getEnhancedMeasurementSettings() - { - return $this->readOneof(24); - } - - public function hasEnhancedMeasurementSettings() - { - return $this->hasOneof(24); - } - - /** - * A snapshot of EnhancedMeasurementSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @param \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $var - * @return $this - */ - public function setEnhancedMeasurementSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings::class); - $this->writeOneof(24, $var); - - return $this; - } - - /** - * A snapshot of DataRedactionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null - */ - public function getDataRedactionSettings() - { - return $this->readOneof(25); - } - - public function hasDataRedactionSettings() - { - return $this->hasOneof(25); - } - - /** - * A snapshot of DataRedactionSettings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var - * @return $this - */ - public function setDataRedactionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); - $this->writeOneof(25, $var); - - return $this; - } - - /** - * A snapshot of SKAdNetworkConversionValueSchema resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null - */ - public function getSkadnetworkConversionValueSchema() - { - return $this->readOneof(26); - } - - public function hasSkadnetworkConversionValueSchema() - { - return $this->hasOneof(26); - } - - /** - * A snapshot of SKAdNetworkConversionValueSchema resource in change - * history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var - * @return $this - */ - public function setSkadnetworkConversionValueSchema($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * A snapshot of an AdSenseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink|null - */ - public function getAdsenseLink() - { - return $this->readOneof(27); - } - - public function hasAdsenseLink() - { - return $this->hasOneof(27); - } - - /** - * A snapshot of an AdSenseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @param \Google\Analytics\Admin\V1alpha\AdSenseLink $var - * @return $this - */ - public function setAdsenseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * A snapshot of an Audience resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 28; - * @return \Google\Analytics\Admin\V1alpha\Audience|null - */ - public function getAudience() - { - return $this->readOneof(28); - } - - public function hasAudience() - { - return $this->hasOneof(28); - } - - /** - * A snapshot of an Audience resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 28; - * @param \Google\Analytics\Admin\V1alpha\Audience $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->writeOneof(28, $var); - - return $this; - } - - /** - * A snapshot of an EventCreateRule resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null - */ - public function getEventCreateRule() - { - return $this->readOneof(29); - } - - public function hasEventCreateRule() - { - return $this->hasOneof(29); - } - - /** - * A snapshot of an EventCreateRule resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var - * @return $this - */ - public function setEventCreateRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->writeOneof(29, $var); - - return $this; - } - - /** - * A snapshot of a CalculatedMetric resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 31; - * @return \Google\Analytics\Admin\V1alpha\CalculatedMetric|null - */ - public function getCalculatedMetric() - { - return $this->readOneof(31); - } - - public function hasCalculatedMetric() - { - return $this->hasOneof(31); - } - - /** - * A snapshot of a CalculatedMetric resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 31; - * @param \Google\Analytics\Admin\V1alpha\CalculatedMetric $var - * @return $this - */ - public function setCalculatedMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CalculatedMetric::class); - $this->writeOneof(31, $var); - - return $this; - } - - /** - * @return string - */ - public function getResource() - { - return $this->whichOneof("resource"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChangeHistoryResource::class, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange_ChangeHistoryResource::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php deleted file mode 100644 index d399dea64b76..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryEvent.php +++ /dev/null @@ -1,266 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryEvent - */ -class ChangeHistoryEvent extends \Google\Protobuf\Internal\Message -{ - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - */ - protected $change_time = null; - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; - */ - protected $actor_type = 0; - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - */ - protected $user_actor_email = ''; - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - */ - protected $changes_filtered = false; - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - private $changes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of this change history event. This ID is unique across Google Analytics. - * @type \Google\Protobuf\Timestamp $change_time - * Time when change was made. - * @type int $actor_type - * The type of actor that made this change. - * @type string $user_actor_email - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * @type bool $changes_filtered - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * @type array<\Google\Analytics\Admin\V1alpha\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $changes - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getChangeTime() - { - return $this->change_time; - } - - public function hasChangeTime() - { - return isset($this->change_time); - } - - public function clearChangeTime() - { - unset($this->change_time); - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->change_time = $var; - - return $this; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return int - */ - public function getActorType() - { - return $this->actor_type; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @param int $var - * @return $this - */ - public function setActorType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ActorType::class); - $this->actor_type = $var; - - return $this; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @return string - */ - public function getUserActorEmail() - { - return $this->user_actor_email; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @param string $var - * @return $this - */ - public function setUserActorEmail($var) - { - GPBUtil::checkString($var, True); - $this->user_actor_email = $var; - - return $this; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @return bool - */ - public function getChangesFiltered() - { - return $this->changes_filtered; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @param bool $var - * @return $this - */ - public function setChangesFiltered($var) - { - GPBUtil::checkBool($var); - $this->changes_filtered = $var; - - return $this; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChanges() - { - return $this->changes; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - * @param array<\Google\Analytics\Admin\V1alpha\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChangeHistoryChange::class); - $this->changes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php deleted file mode 100644 index 6235fd7d0824..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChangeHistoryResourceType.php +++ /dev/null @@ -1,222 +0,0 @@ -google.analytics.admin.v1alpha.ChangeHistoryResourceType - */ -class ChangeHistoryResourceType -{ - /** - * Resource type unknown or not specified. - * - * Generated from protobuf enum CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Account resource - * - * Generated from protobuf enum ACCOUNT = 1; - */ - const ACCOUNT = 1; - /** - * Property resource - * - * Generated from protobuf enum PROPERTY = 2; - */ - const PROPERTY = 2; - /** - * FirebaseLink resource - * - * Generated from protobuf enum FIREBASE_LINK = 6; - */ - const FIREBASE_LINK = 6; - /** - * GoogleAdsLink resource - * - * Generated from protobuf enum GOOGLE_ADS_LINK = 7; - */ - const GOOGLE_ADS_LINK = 7; - /** - * GoogleSignalsSettings resource - * - * Generated from protobuf enum GOOGLE_SIGNALS_SETTINGS = 8; - */ - const GOOGLE_SIGNALS_SETTINGS = 8; - /** - * ConversionEvent resource - * - * Generated from protobuf enum CONVERSION_EVENT = 9; - */ - const CONVERSION_EVENT = 9; - /** - * MeasurementProtocolSecret resource - * - * Generated from protobuf enum MEASUREMENT_PROTOCOL_SECRET = 10; - */ - const MEASUREMENT_PROTOCOL_SECRET = 10; - /** - * CustomDimension resource - * - * Generated from protobuf enum CUSTOM_DIMENSION = 11; - */ - const CUSTOM_DIMENSION = 11; - /** - * CustomMetric resource - * - * Generated from protobuf enum CUSTOM_METRIC = 12; - */ - const CUSTOM_METRIC = 12; - /** - * DataRetentionSettings resource - * - * Generated from protobuf enum DATA_RETENTION_SETTINGS = 13; - */ - const DATA_RETENTION_SETTINGS = 13; - /** - * DisplayVideo360AdvertiserLink resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - /** - * DisplayVideo360AdvertiserLinkProposal resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - /** - * SearchAds360Link resource - * - * Generated from protobuf enum SEARCH_ADS_360_LINK = 16; - */ - const SEARCH_ADS_360_LINK = 16; - /** - * DataStream resource - * - * Generated from protobuf enum DATA_STREAM = 18; - */ - const DATA_STREAM = 18; - /** - * AttributionSettings resource - * - * Generated from protobuf enum ATTRIBUTION_SETTINGS = 20; - */ - const ATTRIBUTION_SETTINGS = 20; - /** - * ExpandedDataSet resource - * - * Generated from protobuf enum EXPANDED_DATA_SET = 21; - */ - const EXPANDED_DATA_SET = 21; - /** - * ChannelGroup resource - * - * Generated from protobuf enum CHANNEL_GROUP = 22; - */ - const CHANNEL_GROUP = 22; - /** - * BigQuery link resource - * - * Generated from protobuf enum BIGQUERY_LINK = 23; - */ - const BIGQUERY_LINK = 23; - /** - * EnhancedMeasurementSettings resource - * - * Generated from protobuf enum ENHANCED_MEASUREMENT_SETTINGS = 24; - */ - const ENHANCED_MEASUREMENT_SETTINGS = 24; - /** - * DataRedactionSettings resource - * - * Generated from protobuf enum DATA_REDACTION_SETTINGS = 25; - */ - const DATA_REDACTION_SETTINGS = 25; - /** - * SKAdNetworkConversionValueSchema resource - * - * Generated from protobuf enum SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; - */ - const SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; - /** - * AdSenseLink resource - * - * Generated from protobuf enum ADSENSE_LINK = 27; - */ - const ADSENSE_LINK = 27; - /** - * Audience resource - * - * Generated from protobuf enum AUDIENCE = 28; - */ - const AUDIENCE = 28; - /** - * EventCreateRule resource - * - * Generated from protobuf enum EVENT_CREATE_RULE = 29; - */ - const EVENT_CREATE_RULE = 29; - /** - * CalculatedMetric resource - * - * Generated from protobuf enum CALCULATED_METRIC = 31; - */ - const CALCULATED_METRIC = 31; - - private static $valueToName = [ - self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', - self::ACCOUNT => 'ACCOUNT', - self::PROPERTY => 'PROPERTY', - self::FIREBASE_LINK => 'FIREBASE_LINK', - self::GOOGLE_ADS_LINK => 'GOOGLE_ADS_LINK', - self::GOOGLE_SIGNALS_SETTINGS => 'GOOGLE_SIGNALS_SETTINGS', - self::CONVERSION_EVENT => 'CONVERSION_EVENT', - self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET', - self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION', - self::CUSTOM_METRIC => 'CUSTOM_METRIC', - self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL', - self::SEARCH_ADS_360_LINK => 'SEARCH_ADS_360_LINK', - self::DATA_STREAM => 'DATA_STREAM', - self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS', - self::EXPANDED_DATA_SET => 'EXPANDED_DATA_SET', - self::CHANNEL_GROUP => 'CHANNEL_GROUP', - self::BIGQUERY_LINK => 'BIGQUERY_LINK', - self::ENHANCED_MEASUREMENT_SETTINGS => 'ENHANCED_MEASUREMENT_SETTINGS', - self::DATA_REDACTION_SETTINGS => 'DATA_REDACTION_SETTINGS', - self::SKADNETWORK_CONVERSION_VALUE_SCHEMA => 'SKADNETWORK_CONVERSION_VALUE_SCHEMA', - self::ADSENSE_LINK => 'ADSENSE_LINK', - self::AUDIENCE => 'AUDIENCE', - self::EVENT_CREATE_RULE => 'EVENT_CREATE_RULE', - self::CALCULATED_METRIC => 'CALCULATED_METRIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php deleted file mode 100644 index 2550c1fa1eea..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroup.php +++ /dev/null @@ -1,269 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroup - */ -class ChannelGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * The description of the Channel Group. Max length of 256 characters. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Required. The grouping rules of channels. Maximum number of rules is 50. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $grouping_rule; - /** - * Output only. If true, then this channel group is the Default Channel Group - * predefined by Google Analytics. Display name and grouping rules cannot be - * updated for this channel group. - * - * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $system_defined = false; - /** - * Optional. If true, this channel group will be used as the default channel - * group for reports. Only one channel group can be set as `primary` at any - * time. If the `primary` field gets set on a channel group, it will get unset - * on the previous primary channel group. - * The Google Analytics predefined channel group is the primary by default. - * - * Generated from protobuf field bool primary = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $primary = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * @type string $display_name - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * @type string $description - * The description of the Channel Group. Max length of 256 characters. - * @type array<\Google\Analytics\Admin\V1alpha\GroupingRule>|\Google\Protobuf\Internal\RepeatedField $grouping_rule - * Required. The grouping rules of channels. Maximum number of rules is 50. - * @type bool $system_defined - * Output only. If true, then this channel group is the Default Channel Group - * predefined by Google Analytics. Display name and grouping rules cannot be - * updated for this channel group. - * @type bool $primary - * Optional. If true, this channel group will be used as the default channel - * group for reports. Only one channel group can be set as `primary` at any - * time. If the `primary` field gets set on a channel group, it will get unset - * on the previous primary channel group. - * The Google Analytics predefined channel group is the primary by default. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this Channel Group resource. - * Format: properties/{property}/channelGroups/{channel_group} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the Channel Group. Max length of 80 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The description of the Channel Group. Max length of 256 characters. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the Channel Group. Max length of 256 characters. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The grouping rules of channels. Maximum number of rules is 50. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroupingRule() - { - return $this->grouping_rule; - } - - /** - * Required. The grouping rules of channels. Maximum number of rules is 50. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\GroupingRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroupingRule($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\GroupingRule::class); - $this->grouping_rule = $arr; - - return $this; - } - - /** - * Output only. If true, then this channel group is the Default Channel Group - * predefined by Google Analytics. Display name and grouping rules cannot be - * updated for this channel group. - * - * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSystemDefined() - { - return $this->system_defined; - } - - /** - * Output only. If true, then this channel group is the Default Channel Group - * predefined by Google Analytics. Display name and grouping rules cannot be - * updated for this channel group. - * - * Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSystemDefined($var) - { - GPBUtil::checkBool($var); - $this->system_defined = $var; - - return $this; - } - - /** - * Optional. If true, this channel group will be used as the default channel - * group for reports. Only one channel group can be set as `primary` at any - * time. If the `primary` field gets set on a channel group, it will get unset - * on the previous primary channel group. - * The Google Analytics predefined channel group is the primary by default. - * - * Generated from protobuf field bool primary = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getPrimary() - { - return $this->primary; - } - - /** - * Optional. If true, this channel group will be used as the default channel - * group for reports. Only one channel group can be set as `primary` at any - * time. If the `primary` field gets set on a channel group, it will get unset - * on the previous primary channel group. - * The Google Analytics predefined channel group is the primary by default. - * - * Generated from protobuf field bool primary = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setPrimary($var) - { - GPBUtil::checkBool($var); - $this->primary = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php deleted file mode 100644 index e655e6cf43f8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter.php +++ /dev/null @@ -1,145 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter - */ -class ChannelGroupFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $field_name = ''; - protected $value_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter $string_filter - * A filter for a string-type dimension that matches a particular pattern. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter $in_list_filter - * A filter for a string dimension that matches a particular list of - * options. - * @type string $field_name - * Required. Immutable. The dimension name to filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\InListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. Immutable. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * Required. Immutable. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getValueFilter() - { - return $this->whichOneof("value_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php deleted file mode 100644 index 7a06e006f7a9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/InListFilter.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Required. The list of possible string values to match against. Must be - * non-empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php deleted file mode 100644 index 11bca6c6afa3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * Required. The match type for the string filter. - * @type string $value - * Required. The string value to be matched against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php deleted file mode 100644 index e2be7673eb98..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilter/StringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Default match type. - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full regular expression match with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial regular expression match with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php deleted file mode 100644 index 7b52c2651c2c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpression.php +++ /dev/null @@ -1,192 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilterExpression - */ -class ChannelGroupFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $and_group - * A list of expressions to be AND’ed together. It can only contain - * ChannelGroupFilterExpressions with or_group. This must be set for the - * top level ChannelGroupFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $or_group - * A list of expressions to OR’ed together. It cannot contain - * ChannelGroupFilterExpressions with and_group or or_group. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $not_expression - * A filter expression to be NOT'ed (that is inverted, complemented). It - * can only include a dimension_or_metric_filter. This cannot be set on the - * top level ChannelGroupFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilter $filter - * A filter on a single dimension. This cannot be set on the top - * level ChannelGroupFilterExpression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * ChannelGroupFilterExpressions with or_group. This must be set for the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * A list of expressions to be AND’ed together. It can only contain - * ChannelGroupFilterExpressions with or_group. This must be set for the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * ChannelGroupFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * A list of expressions to OR’ed together. It cannot contain - * ChannelGroupFilterExpressions with and_group or or_group. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter expression to be NOT'ed (that is inverted, complemented). It - * can only include a dimension_or_metric_filter. This cannot be set on the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * A filter expression to be NOT'ed (that is inverted, complemented). It - * can only include a dimension_or_metric_filter. This cannot be set on the - * top level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilter|null - */ - public function getFilter() - { - return $this->readOneof(4); - } - - public function hasFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ChannelGroupFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php deleted file mode 100644 index 4264488a1755..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ChannelGroupFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList - */ -class ChannelGroupFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of Channel Group filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - private $filter_expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions - * A list of Channel Group filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * A list of Channel Group filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterExpressions() - { - return $this->filter_expressions; - } - - /** - * A list of Channel Group filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); - $this->filter_expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php deleted file mode 100644 index fa2d1aab894e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CoarseValue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.CoarseValue - */ -class CoarseValue -{ - /** - * Coarse value not specified. - * - * Generated from protobuf enum COARSE_VALUE_UNSPECIFIED = 0; - */ - const COARSE_VALUE_UNSPECIFIED = 0; - /** - * Coarse value of low. - * - * Generated from protobuf enum COARSE_VALUE_LOW = 1; - */ - const COARSE_VALUE_LOW = 1; - /** - * Coarse value of medium. - * - * Generated from protobuf enum COARSE_VALUE_MEDIUM = 2; - */ - const COARSE_VALUE_MEDIUM = 2; - /** - * Coarse value of high. - * - * Generated from protobuf enum COARSE_VALUE_HIGH = 3; - */ - const COARSE_VALUE_HIGH = 3; - - private static $valueToName = [ - self::COARSE_VALUE_UNSPECIFIED => 'COARSE_VALUE_UNSPECIFIED', - self::COARSE_VALUE_LOW => 'COARSE_VALUE_LOW', - self::COARSE_VALUE_MEDIUM => 'COARSE_VALUE_MEDIUM', - self::COARSE_VALUE_HIGH => 'COARSE_VALUE_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php deleted file mode 100644 index 4e530bbbbbd9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConnectedSiteTag.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ConnectedSiteTag - */ -class ConnectedSiteTag extends \Google\Protobuf\Internal\Message -{ - /** - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tag_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * @type string $tag_id - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. User-provided display name for the connected site tag. Must be - * less than 256 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTagId() - { - return $this->tag_id; - } - - /** - * Required. "Tag ID to forward events to. Also known as the Measurement ID, - * or the "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTagId($var) - { - GPBUtil::checkString($var, True); - $this->tag_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php deleted file mode 100644 index f8805f3e931f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent.php +++ /dev/null @@ -1,331 +0,0 @@ -google.analytics.admin.v1alpha.ConversionEvent - */ -class ConversionEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $event_name = ''; - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletable = false; - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = false; - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $counting_method = 0; - /** - * Optional. Defines a default value/currency for a conversion event. - * - * Generated from protobuf field optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_conversion_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * @type string $event_name - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this conversion event was created in the property. - * @type bool $deletable - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * @type bool $custom - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * @type int $counting_method - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * @type \Google\Analytics\Admin\V1alpha\ConversionEvent\DefaultConversionValue $default_conversion_value - * Optional. Defines a default value/currency for a conversion event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeletable() - { - return $this->deletable; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeletable($var) - { - GPBUtil::checkBool($var); - $this->deletable = $var; - - return $this; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCustom() - { - return $this->custom; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkBool($var); - $this->custom = $var; - - return $this; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCountingMethod() - { - return $this->counting_method; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCountingMethod($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ConversionEvent\ConversionCountingMethod::class); - $this->counting_method = $var; - - return $this; - } - - /** - * Optional. Defines a default value/currency for a conversion event. - * - * Generated from protobuf field optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent\DefaultConversionValue|null - */ - public function getDefaultConversionValue() - { - return $this->default_conversion_value; - } - - public function hasDefaultConversionValue() - { - return isset($this->default_conversion_value); - } - - public function clearDefaultConversionValue() - { - unset($this->default_conversion_value); - } - - /** - * Optional. Defines a default value/currency for a conversion event. - * - * Generated from protobuf field optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent\DefaultConversionValue $var - * @return $this - */ - public function setDefaultConversionValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent\DefaultConversionValue::class); - $this->default_conversion_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php deleted file mode 100644 index b22477370f5a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/ConversionCountingMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod - */ -class ConversionCountingMethod -{ - /** - * Counting method not specified. - * - * Generated from protobuf enum CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - const CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - /** - * Each Event instance is considered a Conversion. - * - * Generated from protobuf enum ONCE_PER_EVENT = 1; - */ - const ONCE_PER_EVENT = 1; - /** - * An Event instance is considered a Conversion at most once per session per - * user. - * - * Generated from protobuf enum ONCE_PER_SESSION = 2; - */ - const ONCE_PER_SESSION = 2; - - private static $valueToName = [ - self::CONVERSION_COUNTING_METHOD_UNSPECIFIED => 'CONVERSION_COUNTING_METHOD_UNSPECIFIED', - self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', - self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConversionCountingMethod::class, \Google\Analytics\Admin\V1alpha\ConversionEvent_ConversionCountingMethod::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/DefaultConversionValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/DefaultConversionValue.php deleted file mode 100644 index cb46b27487eb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionEvent/DefaultConversionValue.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue - */ -class DefaultConversionValue extends \Google\Protobuf\Internal\Message -{ - /** - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * - * Generated from protobuf field optional double value = 1; - */ - protected $value = null; - /** - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * - * Generated from protobuf field optional string currency_code = 2; - */ - protected $currency_code = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $value - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * @type string $currency_code - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * - * Generated from protobuf field optional double value = 1; - * @return float - */ - public function getValue() - { - return isset($this->value) ? $this->value : 0.0; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * - * Generated from protobuf field optional double value = 1; - * @param float $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkDouble($var); - $this->value = $var; - - return $this; - } - - /** - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * - * Generated from protobuf field optional string currency_code = 2; - * @return string - */ - public function getCurrencyCode() - { - return isset($this->currency_code) ? $this->currency_code : ''; - } - - public function hasCurrencyCode() - { - return isset($this->currency_code); - } - - public function clearCurrencyCode() - { - unset($this->currency_code); - } - - /** - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * - * Generated from protobuf field optional string currency_code = 2; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DefaultConversionValue::class, \Google\Analytics\Admin\V1alpha\ConversionEvent_DefaultConversionValue::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php deleted file mode 100644 index 6a01fe7ab131..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ConversionValues.php +++ /dev/null @@ -1,254 +0,0 @@ -google.analytics.admin.v1alpha.ConversionValues - */ -class ConversionValues extends \Google\Protobuf\Internal\Message -{ - /** - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * - * Generated from protobuf field optional int32 fine_value = 2; - */ - protected $fine_value = null; - /** - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $coarse_value = 0; - /** - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; - */ - private $event_mappings; - /** - * If true, the SDK should lock to this conversion value for the current - * postback window. - * - * Generated from protobuf field bool lock_enabled = 5; - */ - protected $lock_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * @type int $fine_value - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * @type int $coarse_value - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * @type array<\Google\Analytics\Admin\V1alpha\EventMapping>|\Google\Protobuf\Internal\RepeatedField $event_mappings - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * @type bool $lock_enabled - * If true, the SDK should lock to this conversion value for the current - * postback window. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name of the SKAdNetwork conversion value. - * The max allowed display name length is 50 UTF-16 code units. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * - * Generated from protobuf field optional int32 fine_value = 2; - * @return int - */ - public function getFineValue() - { - return isset($this->fine_value) ? $this->fine_value : 0; - } - - public function hasFineValue() - { - return isset($this->fine_value); - } - - public function clearFineValue() - { - unset($this->fine_value); - } - - /** - * The fine-grained conversion value. This is applicable only to the first - * postback window. Its valid values are [0,63], both inclusive. It must be - * set for postback window 1, and must not be set for postback window 2 & 3. - * This value is not guaranteed to be unique. - * If the configuration for the first postback window is re-used for second or - * third postback windows this field has no effect. - * - * Generated from protobuf field optional int32 fine_value = 2; - * @param int $var - * @return $this - */ - public function setFineValue($var) - { - GPBUtil::checkInt32($var); - $this->fine_value = $var; - - return $this; - } - - /** - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCoarseValue() - { - return $this->coarse_value; - } - - /** - * Required. A coarse grained conversion value. - * This value is not guaranteed to be unique. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCoarseValue($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CoarseValue::class); - $this->coarse_value = $var; - - return $this; - } - - /** - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventMappings() - { - return $this->event_mappings; - } - - /** - * Event conditions that must be met for this Conversion Value to be achieved. - * The conditions in this list are ANDed together. It must have minimum of 1 - * entry and maximum of 3 entries, if the postback window is enabled. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4; - * @param array<\Google\Analytics\Admin\V1alpha\EventMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventMapping::class); - $this->event_mappings = $arr; - - return $this; - } - - /** - * If true, the SDK should lock to this conversion value for the current - * postback window. - * - * Generated from protobuf field bool lock_enabled = 5; - * @return bool - */ - public function getLockEnabled() - { - return $this->lock_enabled; - } - - /** - * If true, the SDK should lock to this conversion value for the current - * postback window. - * - * Generated from protobuf field bool lock_enabled = 5; - * @param bool $var - * @return $this - */ - public function setLockEnabled($var) - { - GPBUtil::checkBool($var); - $this->lock_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php deleted file mode 100644 index 9fee2c95ca93..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAccessBindingRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.CreateAccessBindingRequest - */ -class CreateAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The access binding to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_binding = null; - - /** - * @param string $parent Required. Formats: - * - accounts/{account} - * - properties/{property} - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\AccessBinding $accessBinding Required. The access binding to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\AccessBinding $accessBinding): self - { - return (new self()) - ->setParent($parent) - ->setAccessBinding($accessBinding); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * @type \Google\Analytics\Admin\V1alpha\AccessBinding $access_binding - * Required. The access binding to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The access binding to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AccessBinding|null - */ - public function getAccessBinding() - { - return $this->access_binding; - } - - public function hasAccessBinding() - { - return isset($this->access_binding); - } - - public function clearAccessBinding() - { - unset($this->access_binding); - } - - /** - * Required. The access binding to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AccessBinding $var - * @return $this - */ - public function setAccessBinding($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_binding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php deleted file mode 100644 index b57d3287654a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAdSenseLinkRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.CreateAdSenseLinkRequest - */ -class CreateAdSenseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The AdSense Link to create - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $adsense_link = null; - - /** - * @param string $parent Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\AdSenseLink $adsenseLink Required. The AdSense Link to create - * - * @return \Google\Analytics\Admin\V1alpha\CreateAdSenseLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\AdSenseLink $adsenseLink): self - { - return (new self()) - ->setParent($parent) - ->setAdsenseLink($adsenseLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\AdSenseLink $adsense_link - * Required. The AdSense Link to create - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The AdSense Link to create - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink|null - */ - public function getAdsenseLink() - { - return $this->adsense_link; - } - - public function hasAdsenseLink() - { - return isset($this->adsense_link); - } - - public function clearAdsenseLink() - { - unset($this->adsense_link); - } - - /** - * Required. The AdSense Link to create - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AdSenseLink $var - * @return $this - */ - public function setAdsenseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); - $this->adsense_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php deleted file mode 100644 index 55799b94bafc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateAudienceRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateAudienceRequest - */ -class CreateAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The audience to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\Audience $audience Required. The audience to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateAudienceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\Audience $audience): self - { - return (new self()) - ->setParent($parent) - ->setAudience($audience); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\Audience $audience - * Required. The audience to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The audience to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Audience|null - */ - public function getAudience() - { - return $this->audience; - } - - public function hasAudience() - { - return isset($this->audience); - } - - public function clearAudience() - { - unset($this->audience); - } - - /** - * Required. The audience to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Audience $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->audience = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateBigQueryLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateBigQueryLinkRequest.php deleted file mode 100644 index abfe1cadb865..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateBigQueryLinkRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateBigQueryLinkRequest - */ -class CreateBigQueryLinkRequest 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 BigQueryLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bigquery_link = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink Required. The BigQueryLink to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateBigQueryLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink): self - { - return (new self()) - ->setParent($parent) - ->setBigqueryLink($bigqueryLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\BigQueryLink $bigquery_link - * Required. The BigQueryLink 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 BigQueryLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink|null - */ - public function getBigqueryLink() - { - return $this->bigquery_link; - } - - public function hasBigqueryLink() - { - return isset($this->bigquery_link); - } - - public function clearBigqueryLink() - { - unset($this->bigquery_link); - } - - /** - * Required. The BigQueryLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $var - * @return $this - */ - public function setBigqueryLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); - $this->bigquery_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCalculatedMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCalculatedMetricRequest.php deleted file mode 100644 index f24127edd615..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCalculatedMetricRequest.php +++ /dev/null @@ -1,199 +0,0 @@ -google.analytics.admin.v1alpha.CreateCalculatedMetricRequest - */ -class CreateCalculatedMetricRequest 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 ID to use for the calculated metric which will become the - * final component of the calculated metric's resource name. - * This value should be 1-80 characters and valid characters are - * /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - * between all calculated metrics under a property. The calculated_metric_id - * is used when referencing this calculated metric from external APIs, for - * example, "calcMetric:{calculated_metric_id}". - * - * Generated from protobuf field string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $calculated_metric_id = ''; - /** - * Required. The CalculatedMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $calculated_metric = null; - - /** - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\CalculatedMetric $calculatedMetric Required. The CalculatedMetric to create. - * @param string $calculatedMetricId Required. The ID to use for the calculated metric which will become the - * final component of the calculated metric's resource name. - * - * This value should be 1-80 characters and valid characters are - * /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - * between all calculated metrics under a property. The calculated_metric_id - * is used when referencing this calculated metric from external APIs, for - * example, "calcMetric:{calculated_metric_id}". - * - * @return \Google\Analytics\Admin\V1alpha\CreateCalculatedMetricRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\CalculatedMetric $calculatedMetric, string $calculatedMetricId): self - { - return (new self()) - ->setParent($parent) - ->setCalculatedMetric($calculatedMetric) - ->setCalculatedMetricId($calculatedMetricId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @type string $calculated_metric_id - * Required. The ID to use for the calculated metric which will become the - * final component of the calculated metric's resource name. - * This value should be 1-80 characters and valid characters are - * /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - * between all calculated metrics under a property. The calculated_metric_id - * is used when referencing this calculated metric from external APIs, for - * example, "calcMetric:{calculated_metric_id}". - * @type \Google\Analytics\Admin\V1alpha\CalculatedMetric $calculated_metric - * Required. The CalculatedMetric 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 ID to use for the calculated metric which will become the - * final component of the calculated metric's resource name. - * This value should be 1-80 characters and valid characters are - * /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - * between all calculated metrics under a property. The calculated_metric_id - * is used when referencing this calculated metric from external APIs, for - * example, "calcMetric:{calculated_metric_id}". - * - * Generated from protobuf field string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCalculatedMetricId() - { - return $this->calculated_metric_id; - } - - /** - * Required. The ID to use for the calculated metric which will become the - * final component of the calculated metric's resource name. - * This value should be 1-80 characters and valid characters are - * /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - * between all calculated metrics under a property. The calculated_metric_id - * is used when referencing this calculated metric from external APIs, for - * example, "calcMetric:{calculated_metric_id}". - * - * Generated from protobuf field string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCalculatedMetricId($var) - { - GPBUtil::checkString($var, True); - $this->calculated_metric_id = $var; - - return $this; - } - - /** - * Required. The CalculatedMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\CalculatedMetric|null - */ - public function getCalculatedMetric() - { - return $this->calculated_metric; - } - - public function hasCalculatedMetric() - { - return isset($this->calculated_metric); - } - - public function clearCalculatedMetric() - { - unset($this->calculated_metric); - } - - /** - * Required. The CalculatedMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\CalculatedMetric $var - * @return $this - */ - public function setCalculatedMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CalculatedMetric::class); - $this->calculated_metric = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php deleted file mode 100644 index 37275d6d2c0e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateChannelGroupRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1alpha.CreateChannelGroupRequest - */ -class CreateChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ChannelGroup to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel_group = null; - - /** - * @param string $parent Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $channelGroup Required. The ChannelGroup to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateChannelGroupRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\ChannelGroup $channelGroup): self - { - return (new self()) - ->setParent($parent) - ->setChannelGroup($channelGroup); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group - * Required. The ChannelGroup to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ChannelGroup to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null - */ - public function getChannelGroup() - { - return $this->channel_group; - } - - public function hasChannelGroup() - { - return isset($this->channel_group); - } - - public function clearChannelGroup() - { - unset($this->channel_group); - } - - /** - * Required. The ChannelGroup to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var - * @return $this - */ - public function setChannelGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->channel_group = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php deleted file mode 100644 index d69c7da0b80d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagRequest.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest - */ -class CreateConnectedSiteTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Required. The tag to add to the Universal Analytics property - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connected_site_tag = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $connected_site_tag - * Required. The tag to add to the Universal Analytics property - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Required. The tag to add to the Universal Analytics property - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ConnectedSiteTag|null - */ - public function getConnectedSiteTag() - { - return $this->connected_site_tag; - } - - public function hasConnectedSiteTag() - { - return isset($this->connected_site_tag); - } - - public function clearConnectedSiteTag() - { - unset($this->connected_site_tag); - } - - /** - * Required. The tag to add to the Universal Analytics property - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ConnectedSiteTag $var - * @return $this - */ - public function setConnectedSiteTag($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConnectedSiteTag::class); - $this->connected_site_tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php deleted file mode 100644 index b3f4637fa867..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConnectedSiteTagResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse - */ -class CreateConnectedSiteTagResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php deleted file mode 100644 index 97206d63902b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateConversionEventRequest.php +++ /dev/null @@ -1,132 +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 = ''; - - /** - * @param string $parent Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $conversionEvent Required. The conversion event to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateConversionEventRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\ConversionEvent $conversionEvent): self - { - return (new self()) - ->setParent($parent) - ->setConversionEvent($conversionEvent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\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 c01fdf0d60ae..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomDimensionRequest.php +++ /dev/null @@ -1,127 +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; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\CustomDimension $customDimension Required. The CustomDimension to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateCustomDimensionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\CustomDimension $customDimension): self - { - return (new self()) - ->setParent($parent) - ->setCustomDimension($customDimension); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\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 7125a58ea752..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateCustomMetricRequest.php +++ /dev/null @@ -1,127 +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; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $customMetric Required. The CustomMetric to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateCustomMetricRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\CustomMetric $customMetric): self - { - return (new self()) - ->setParent($parent) - ->setCustomMetric($customMetric); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric - * Required. The CustomMetric to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php deleted file mode 100644 index f07fea597654..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDataStreamRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateDataStreamRequest - */ -class CreateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_stream = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\DataStream $dataStream Required. The DataStream to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateDataStreamRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\DataStream $dataStream): self - { - return (new self()) - ->setParent($parent) - ->setDataStream($dataStream); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream - * Required. The DataStream to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->data_stream = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index bc37f9877f43..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest - */ -class CreateDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_video_360_advertiser_link_proposal = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $displayVideo360AdvertiserLinkProposal Required. The DisplayVideo360AdvertiserLinkProposal to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $displayVideo360AdvertiserLinkProposal): self - { - return (new self()) - ->setParent($parent) - ->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null - */ - public function getDisplayVideo360AdvertiserLinkProposal() - { - return $this->display_video_360_advertiser_link_proposal; - } - - public function hasDisplayVideo360AdvertiserLinkProposal() - { - return isset($this->display_video_360_advertiser_link_proposal); - } - - public function clearDisplayVideo360AdvertiserLinkProposal() - { - unset($this->display_video_360_advertiser_link_proposal); - } - - /** - * Required. The DisplayVideo360AdvertiserLinkProposal to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinkProposal($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); - $this->display_video_360_advertiser_link_proposal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index 5222d347753b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest - */ -class CreateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DisplayVideo360AdvertiserLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_video_360_advertiser_link = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink): self - { - return (new self()) - ->setParent($parent) - ->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * Required. The DisplayVideo360AdvertiserLink to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DisplayVideo360AdvertiserLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->display_video_360_advertiser_link; - } - - public function hasDisplayVideo360AdvertiserLink() - { - return isset($this->display_video_360_advertiser_link); - } - - public function clearDisplayVideo360AdvertiserLink() - { - unset($this->display_video_360_advertiser_link); - } - - /** - * Required. The DisplayVideo360AdvertiserLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php deleted file mode 100644 index c3a79ad610c7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventCreateRuleRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateEventCreateRuleRequest - */ -class CreateEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The EventCreateRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_create_rule = null; - - /** - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $eventCreateRule Required. The EventCreateRule to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateEventCreateRuleRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\EventCreateRule $eventCreateRule): self - { - return (new self()) - ->setParent($parent) - ->setEventCreateRule($eventCreateRule); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/123/dataStreams/456 - * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule - * Required. The EventCreateRule to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The EventCreateRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null - */ - public function getEventCreateRule() - { - return $this->event_create_rule; - } - - public function hasEventCreateRule() - { - return isset($this->event_create_rule); - } - - public function clearEventCreateRule() - { - unset($this->event_create_rule); - } - - /** - * Required. The EventCreateRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var - * @return $this - */ - public function setEventCreateRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->event_create_rule = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventEditRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventEditRuleRequest.php deleted file mode 100644 index 7ef52ade8aae..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateEventEditRuleRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateEventEditRuleRequest - */ -class CreateEventEditRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The EventEditRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_edit_rule = null; - - /** - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule Required. The EventEditRule to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateEventEditRuleRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule): self - { - return (new self()) - ->setParent($parent) - ->setEventEditRule($eventEditRule); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/123/dataStreams/456 - * @type \Google\Analytics\Admin\V1alpha\EventEditRule $event_edit_rule - * Required. The EventEditRule to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The EventEditRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EventEditRule|null - */ - public function getEventEditRule() - { - return $this->event_edit_rule; - } - - public function hasEventEditRule() - { - return isset($this->event_edit_rule); - } - - public function clearEventEditRule() - { - unset($this->event_edit_rule); - } - - /** - * Required. The EventEditRule to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EventEditRule $var - * @return $this - */ - public function setEventEditRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventEditRule::class); - $this->event_edit_rule = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php deleted file mode 100644 index e7938ba317e9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateExpandedDataSetRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateExpandedDataSetRequest - */ -class CreateExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ExpandedDataSet to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expanded_data_set = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateExpandedDataSetRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expandedDataSet): self - { - return (new self()) - ->setParent($parent) - ->setExpandedDataSet($expandedDataSet); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set - * Required. The ExpandedDataSet to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ExpandedDataSet to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null - */ - public function getExpandedDataSet() - { - return $this->expanded_data_set; - } - - public function hasExpandedDataSet() - { - return isset($this->expanded_data_set); - } - - public function clearExpandedDataSet() - { - unset($this->expanded_data_set); - } - - /** - * Required. The ExpandedDataSet to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var - * @return $this - */ - public function setExpandedDataSet($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->expanded_data_set = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php deleted file mode 100644 index ae89618d2d47..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateFirebaseLinkRequest.php +++ /dev/null @@ -1,133 +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; - - /** - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\FirebaseLink $firebaseLink Required. The Firebase link to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\FirebaseLink $firebaseLink): self - { - return (new self()) - ->setParent($parent) - ->setFirebaseLink($firebaseLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * @type \Google\Analytics\Admin\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 fa512c6d25ba..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,127 +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; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\GoogleAdsLink $googleAdsLink): self - { - return (new self()) - ->setParent($parent) - ->setGoogleAdsLink($googleAdsLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\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/CreateKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateKeyEventRequest.php deleted file mode 100644 index f6062561ffaf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateKeyEventRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1alpha.CreateKeyEventRequest - */ -class CreateKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Key Event to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_event = null; - /** - * Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * @param string $parent Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent Required. The Key Event to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateKeyEventRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent): self - { - return (new self()) - ->setParent($parent) - ->setKeyEvent($keyEvent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\KeyEvent $key_event - * Required. The Key Event to create. - * @type string $parent - * Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Key Event to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\KeyEvent|null - */ - public function getKeyEvent() - { - return $this->key_event; - } - - public function hasKeyEvent() - { - return isset($this->key_event); - } - - public function clearKeyEvent() - { - unset($this->key_event); - } - - /** - * Required. The Key Event to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\KeyEvent $var - * @return $this - */ - public function setKeyEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\KeyEvent::class); - $this->key_event = $var; - - return $this; - } - - /** - * Required. The resource name of the parent property where this Key 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 Key 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/CreateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php deleted file mode 100644 index 8ab18fc88e70..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest - */ -class CreateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - - /** - * @param string $parent Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurementProtocolSecret): self - { - return (new self()) - ->setParent($parent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php deleted file mode 100644 index 985af6f74894..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreatePropertyRequest.php +++ /dev/null @@ -1,95 +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; - - /** - * @param \Google\Analytics\Admin\V1alpha\Property $property Required. The property to create. - * Note: the supplied property must specify its parent. - * - * @return \Google\Analytics\Admin\V1alpha\CreatePropertyRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\Property $property): self - { - return (new self()) - ->setProperty($property); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $property - * Required. The property to create. - * Note: the supplied property must specify its parent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php deleted file mode 100644 index 1790318a4c79..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.CreateRollupPropertyRequest - */ -class CreateRollupPropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The roll-up property to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rollup_property = null; - /** - * Optional. The resource names of properties that will be sources to the - * created roll-up property. - * - * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $source_properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $rollup_property - * Required. The roll-up property to create. - * @type array|\Google\Protobuf\Internal\RepeatedField $source_properties - * Optional. The resource names of properties that will be sources to the - * created roll-up property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The roll-up property to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getRollupProperty() - { - return $this->rollup_property; - } - - public function hasRollupProperty() - { - return isset($this->rollup_property); - } - - public function clearRollupProperty() - { - unset($this->rollup_property); - } - - /** - * Required. The roll-up property to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setRollupProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->rollup_property = $var; - - return $this; - } - - /** - * Optional. The resource names of properties that will be sources to the - * created roll-up property. - * - * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSourceProperties() - { - return $this->source_properties; - } - - /** - * Optional. The resource names of properties that will be sources to the - * created roll-up property. - * - * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSourceProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->source_properties = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php deleted file mode 100644 index 9b604c83153e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertyResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.CreateRollupPropertyResponse - */ -class CreateRollupPropertyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The created roll-up property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - protected $rollup_property = null; - /** - * The created roll-up property source links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - private $rollup_property_source_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $rollup_property - * The created roll-up property. - * @type array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $rollup_property_source_links - * The created roll-up property source links. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The created roll-up property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getRollupProperty() - { - return $this->rollup_property; - } - - public function hasRollupProperty() - { - return isset($this->rollup_property); - } - - public function clearRollupProperty() - { - unset($this->rollup_property); - } - - /** - * The created roll-up property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setRollupProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->rollup_property = $var; - - return $this; - } - - /** - * The created roll-up property source links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRollupPropertySourceLinks() - { - return $this->rollup_property_source_links; - } - - /** - * The created roll-up property source links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - * @param array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRollupPropertySourceLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); - $this->rollup_property_source_links = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php deleted file mode 100644 index 0b6b1f9715f7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateRollupPropertySourceLinkRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest - */ -class CreateRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The roll-up property source link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rollup_property_source_link = null; - - /** - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $rollupPropertySourceLink Required. The roll-up property source link to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateRollupPropertySourceLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $rollupPropertySourceLink): self - { - return (new self()) - ->setParent($parent) - ->setRollupPropertySourceLink($rollupPropertySourceLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $rollup_property_source_link - * Required. The roll-up property source link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The roll-up property source link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink|null - */ - public function getRollupPropertySourceLink() - { - return $this->rollup_property_source_link; - } - - public function hasRollupPropertySourceLink() - { - return isset($this->rollup_property_source_link); - } - - public function clearRollupPropertySourceLink() - { - unset($this->rollup_property_source_link); - } - - /** - * Required. The roll-up property source link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $var - * @return $this - */ - public function setRollupPropertySourceLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); - $this->rollup_property_source_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index 0cf6dfe6ab63..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest - */ -class CreateSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. SKAdNetwork conversion value schema to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $skadnetwork_conversion_value_schema = null; - - /** - * @param string $parent Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateSKAdNetworkConversionValueSchemaRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema): self - { - return (new self()) - ->setParent($parent) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema - * Required. SKAdNetwork conversion value schema to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. SKAdNetwork conversion value schema to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null - */ - public function getSkadnetworkConversionValueSchema() - { - return $this->skadnetwork_conversion_value_schema; - } - - public function hasSkadnetworkConversionValueSchema() - { - return isset($this->skadnetwork_conversion_value_schema); - } - - public function clearSkadnetworkConversionValueSchema() - { - unset($this->skadnetwork_conversion_value_schema); - } - - /** - * Required. SKAdNetwork conversion value schema to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var - * @return $this - */ - public function setSkadnetworkConversionValueSchema($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->skadnetwork_conversion_value_schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php deleted file mode 100644 index bfe7c2823c53..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSearchAds360LinkRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest - */ -class CreateSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The SearchAds360Link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $search_ads_360_link = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $searchAds360Link Required. The SearchAds360Link to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateSearchAds360LinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\SearchAds360Link $searchAds360Link): self - { - return (new self()) - ->setParent($parent) - ->setSearchAds360Link($searchAds360Link); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link - * Required. The SearchAds360Link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The SearchAds360Link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null - */ - public function getSearchAds360Link() - { - return $this->search_ads_360_link; - } - - public function hasSearchAds360Link() - { - return isset($this->search_ads_360_link); - } - - public function clearSearchAds360Link() - { - unset($this->search_ads_360_link); - } - - /** - * Required. The SearchAds360Link to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var - * @return $this - */ - public function setSearchAds360Link($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->search_ads_360_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php deleted file mode 100644 index a1ab70fe50d8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CreateSubpropertyEventFilterRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest - */ -class CreateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ordinary property for which to create a subproperty event - * filter. Format: properties/property_id Example: properties/123 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The subproperty event filter to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subproperty_event_filter = null; - - /** - * @param string $parent Required. The ordinary property for which to create a subproperty event - * filter. Format: properties/property_id Example: properties/123 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter to create. - * - * @return \Google\Analytics\Admin\V1alpha\CreateSubpropertyEventFilterRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subpropertyEventFilter): self - { - return (new self()) - ->setParent($parent) - ->setSubpropertyEventFilter($subpropertyEventFilter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The ordinary property for which to create a subproperty event - * filter. Format: properties/property_id Example: properties/123 - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter - * Required. The subproperty event filter to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ordinary property for which to create a subproperty event - * filter. Format: properties/property_id Example: properties/123 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The ordinary property for which to create a subproperty event - * filter. Format: properties/property_id Example: properties/123 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The subproperty event filter to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null - */ - public function getSubpropertyEventFilter() - { - return $this->subproperty_event_filter; - } - - public function hasSubpropertyEventFilter() - { - return isset($this->subproperty_event_filter); - } - - public function clearSubpropertyEventFilter() - { - unset($this->subproperty_event_filter); - } - - /** - * Required. The subproperty event filter to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var - * @return $this - */ - public function setSubpropertyEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); - $this->subproperty_event_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php deleted file mode 100644 index ba0a444737d8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension.php +++ /dev/null @@ -1,301 +0,0 @@ -google.analytics.admin.v1alpha.CustomDimension - */ -class CustomDimension extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disallow_ads_personalization = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * @type string $parameter_name - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * @type string $display_name - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * @type int $scope - * Required. Immutable. The scope of this dimension. - * @type bool $disallow_ads_personalization - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomDimension\DimensionScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisallowAdsPersonalization() - { - return $this->disallow_ads_personalization; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisallowAdsPersonalization($var) - { - GPBUtil::checkBool($var); - $this->disallow_ads_personalization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php deleted file mode 100644 index a623e13b2358..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomDimension/DimensionScope.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.CustomDimension.DimensionScope - */ -class DimensionScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - const DIMENSION_SCOPE_UNSPECIFIED = 0; - /** - * Dimension scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - /** - * Dimension scoped to a user. - * - * Generated from protobuf enum USER = 2; - */ - const USER = 2; - /** - * Dimension scoped to eCommerce items - * - * Generated from protobuf enum ITEM = 3; - */ - const ITEM = 3; - - private static $valueToName = [ - self::DIMENSION_SCOPE_UNSPECIFIED => 'DIMENSION_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - self::USER => 'USER', - self::ITEM => 'ITEM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionScope::class, \Google\Analytics\Admin\V1alpha\CustomDimension_DimensionScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php deleted file mode 100644 index 473e4273ef7a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric.php +++ /dev/null @@ -1,319 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric - */ -class CustomMetric extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_unit = 0; - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $restricted_metric_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * @type string $parameter_name - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * @type string $display_name - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * @type int $measurement_unit - * Required. The type for the custom metric's value. - * @type int $scope - * Required. Immutable. The scope of this custom metric. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMeasurementUnit() - { - return $this->measurement_unit; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMeasurementUnit($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MeasurementUnit::class); - $this->measurement_unit = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MetricScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricType() - { - return $this->restricted_metric_type; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\CustomMetric\RestrictedMetricType::class); - $this->restricted_metric_type = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php deleted file mode 100644 index 5d27e4dc0f14..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MeasurementUnit.php +++ /dev/null @@ -1,122 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit - */ -class MeasurementUnit -{ - /** - * MeasurementUnit unspecified or missing. - * - * Generated from protobuf enum MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - const MEASUREMENT_UNIT_UNSPECIFIED = 0; - /** - * This metric uses default units. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * This metric measures a currency. - * - * Generated from protobuf enum CURRENCY = 2; - */ - const CURRENCY = 2; - /** - * This metric measures feet. - * - * Generated from protobuf enum FEET = 3; - */ - const FEET = 3; - /** - * This metric measures meters. - * - * Generated from protobuf enum METERS = 4; - */ - const METERS = 4; - /** - * This metric measures kilometers. - * - * Generated from protobuf enum KILOMETERS = 5; - */ - const KILOMETERS = 5; - /** - * This metric measures miles. - * - * Generated from protobuf enum MILES = 6; - */ - const MILES = 6; - /** - * This metric measures milliseconds. - * - * Generated from protobuf enum MILLISECONDS = 7; - */ - const MILLISECONDS = 7; - /** - * This metric measures seconds. - * - * Generated from protobuf enum SECONDS = 8; - */ - const SECONDS = 8; - /** - * This metric measures minutes. - * - * Generated from protobuf enum MINUTES = 9; - */ - const MINUTES = 9; - /** - * This metric measures hours. - * - * Generated from protobuf enum HOURS = 10; - */ - const HOURS = 10; - - private static $valueToName = [ - self::MEASUREMENT_UNIT_UNSPECIFIED => 'MEASUREMENT_UNIT_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::CURRENCY => 'CURRENCY', - self::FEET => 'FEET', - self::METERS => 'METERS', - self::KILOMETERS => 'KILOMETERS', - self::MILES => 'MILES', - self::MILLISECONDS => 'MILLISECONDS', - self::SECONDS => 'SECONDS', - self::MINUTES => 'MINUTES', - self::HOURS => 'HOURS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MeasurementUnit::class, \Google\Analytics\Admin\V1alpha\CustomMetric_MeasurementUnit::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php deleted file mode 100644 index 362df05131af..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/MetricScope.php +++ /dev/null @@ -1,57 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric.MetricScope - */ -class MetricScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum METRIC_SCOPE_UNSPECIFIED = 0; - */ - const METRIC_SCOPE_UNSPECIFIED = 0; - /** - * Metric scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - - private static $valueToName = [ - self::METRIC_SCOPE_UNSPECIFIED => 'METRIC_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricScope::class, \Google\Analytics\Admin\V1alpha\CustomMetric_MetricScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php deleted file mode 100644 index 06006742e548..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/CustomMetric/RestrictedMetricType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Type unknown or unspecified. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Metric reports cost data. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Metric reports revenue data. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestrictedMetricType::class, \Google\Analytics\Admin\V1alpha\CustomMetric_RestrictedMetricType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php deleted file mode 100644 index bed20b2d2baf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRedactionSettings.php +++ /dev/null @@ -1,210 +0,0 @@ -google.analytics.admin.v1alpha.DataRedactionSettings - */ -class DataRedactionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of this Data Redaction Settings resource. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * If enabled, any event parameter or user property values that look like an - * email will be redacted. - * - * Generated from protobuf field bool email_redaction_enabled = 2; - */ - protected $email_redaction_enabled = false; - /** - * Query Parameter redaction removes the key and value portions of a - * query parameter if it is in the configured set of query parameters. - * If enabled, URL query replacement logic will be run for the Stream. Any - * query parameters defined in query_parameter_keys will be redacted. - * - * Generated from protobuf field bool query_parameter_redaction_enabled = 3; - */ - protected $query_parameter_redaction_enabled = false; - /** - * The query parameter keys to apply redaction logic to if present in the URL. - * Query parameter matching is case-insensitive. - * Must contain at least one element if query_parameter_replacement_enabled - * is true. Keys cannot contain commas. - * - * Generated from protobuf field repeated string query_parameter_keys = 4; - */ - private $query_parameter_keys; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of this Data Redaction Settings resource. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * @type bool $email_redaction_enabled - * If enabled, any event parameter or user property values that look like an - * email will be redacted. - * @type bool $query_parameter_redaction_enabled - * Query Parameter redaction removes the key and value portions of a - * query parameter if it is in the configured set of query parameters. - * If enabled, URL query replacement logic will be run for the Stream. Any - * query parameters defined in query_parameter_keys will be redacted. - * @type array|\Google\Protobuf\Internal\RepeatedField $query_parameter_keys - * The query parameter keys to apply redaction logic to if present in the URL. - * Query parameter matching is case-insensitive. - * Must contain at least one element if query_parameter_replacement_enabled - * is true. Keys cannot contain commas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of this Data Redaction Settings resource. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of this Data Redaction Settings resource. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * If enabled, any event parameter or user property values that look like an - * email will be redacted. - * - * Generated from protobuf field bool email_redaction_enabled = 2; - * @return bool - */ - public function getEmailRedactionEnabled() - { - return $this->email_redaction_enabled; - } - - /** - * If enabled, any event parameter or user property values that look like an - * email will be redacted. - * - * Generated from protobuf field bool email_redaction_enabled = 2; - * @param bool $var - * @return $this - */ - public function setEmailRedactionEnabled($var) - { - GPBUtil::checkBool($var); - $this->email_redaction_enabled = $var; - - return $this; - } - - /** - * Query Parameter redaction removes the key and value portions of a - * query parameter if it is in the configured set of query parameters. - * If enabled, URL query replacement logic will be run for the Stream. Any - * query parameters defined in query_parameter_keys will be redacted. - * - * Generated from protobuf field bool query_parameter_redaction_enabled = 3; - * @return bool - */ - public function getQueryParameterRedactionEnabled() - { - return $this->query_parameter_redaction_enabled; - } - - /** - * Query Parameter redaction removes the key and value portions of a - * query parameter if it is in the configured set of query parameters. - * If enabled, URL query replacement logic will be run for the Stream. Any - * query parameters defined in query_parameter_keys will be redacted. - * - * Generated from protobuf field bool query_parameter_redaction_enabled = 3; - * @param bool $var - * @return $this - */ - public function setQueryParameterRedactionEnabled($var) - { - GPBUtil::checkBool($var); - $this->query_parameter_redaction_enabled = $var; - - return $this; - } - - /** - * The query parameter keys to apply redaction logic to if present in the URL. - * Query parameter matching is case-insensitive. - * Must contain at least one element if query_parameter_replacement_enabled - * is true. Keys cannot contain commas. - * - * Generated from protobuf field repeated string query_parameter_keys = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQueryParameterKeys() - { - return $this->query_parameter_keys; - } - - /** - * The query parameter keys to apply redaction logic to if present in the URL. - * Query parameter matching is case-insensitive. - * Must contain at least one element if query_parameter_replacement_enabled - * is true. Keys cannot contain commas. - * - * Generated from protobuf field repeated string query_parameter_keys = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQueryParameterKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->query_parameter_keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php deleted file mode 100644 index 596562959ce5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings.php +++ /dev/null @@ -1,143 +0,0 @@ -google.analytics.admin.v1alpha.DataRetentionSettings - */ -class DataRetentionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - */ - protected $event_data_retention = 0; - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - */ - protected $reset_user_data_on_new_activity = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * @type int $event_data_retention - * The length of time that event-level data is retained. - * @type bool $reset_user_data_on_new_activity - * If true, reset the retention period for the user identifier with every - * event from that user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return int - */ - public function getEventDataRetention() - { - return $this->event_data_retention; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param int $var - * @return $this - */ - public function setEventDataRetention($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings\RetentionDuration::class); - $this->event_data_retention = $var; - - return $this; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @return bool - */ - public function getResetUserDataOnNewActivity() - { - return $this->reset_user_data_on_new_activity; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @param bool $var - * @return $this - */ - public function setResetUserDataOnNewActivity($var) - { - GPBUtil::checkBool($var); - $this->reset_user_data_on_new_activity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php deleted file mode 100644 index be5f9eb42de3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataRetentionSettings/RetentionDuration.php +++ /dev/null @@ -1,88 +0,0 @@ -google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration - */ -class RetentionDuration -{ - /** - * Data retention time duration is not specified. - * - * Generated from protobuf enum RETENTION_DURATION_UNSPECIFIED = 0; - */ - const RETENTION_DURATION_UNSPECIFIED = 0; - /** - * The data retention time duration is 2 months. - * - * Generated from protobuf enum TWO_MONTHS = 1; - */ - const TWO_MONTHS = 1; - /** - * The data retention time duration is 14 months. - * - * Generated from protobuf enum FOURTEEN_MONTHS = 3; - */ - const FOURTEEN_MONTHS = 3; - /** - * The data retention time duration is 26 months. - * Available to 360 properties only. - * - * Generated from protobuf enum TWENTY_SIX_MONTHS = 4; - */ - const TWENTY_SIX_MONTHS = 4; - /** - * The data retention time duration is 38 months. - * Available to 360 properties only. - * - * Generated from protobuf enum THIRTY_EIGHT_MONTHS = 5; - */ - const THIRTY_EIGHT_MONTHS = 5; - /** - * The data retention time duration is 50 months. - * Available to 360 properties only. - * - * Generated from protobuf enum FIFTY_MONTHS = 6; - */ - const FIFTY_MONTHS = 6; - - private static $valueToName = [ - self::RETENTION_DURATION_UNSPECIFIED => 'RETENTION_DURATION_UNSPECIFIED', - self::TWO_MONTHS => 'TWO_MONTHS', - self::FOURTEEN_MONTHS => 'FOURTEEN_MONTHS', - self::TWENTY_SIX_MONTHS => 'TWENTY_SIX_MONTHS', - self::THIRTY_EIGHT_MONTHS => 'THIRTY_EIGHT_MONTHS', - self::FIFTY_MONTHS => 'FIFTY_MONTHS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RetentionDuration::class, \Google\Analytics\Admin\V1alpha\DataRetentionSettings_RetentionDuration::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php deleted file mode 100644 index 8dd6943a2104..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataSharingSettings.php +++ /dev/null @@ -1,262 +0,0 @@ -google.analytics.admin.v1alpha.DataSharingSettings - */ -class DataSharingSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - */ - protected $sharing_with_google_support_enabled = false; - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - */ - protected $sharing_with_google_assigned_sales_enabled = false; - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - */ - protected $sharing_with_google_any_sales_enabled = false; - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - */ - protected $sharing_with_google_products_enabled = false; - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - */ - protected $sharing_with_others_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * @type bool $sharing_with_google_support_enabled - * Allows Google support to access the data in order to help troubleshoot - * issues. - * @type bool $sharing_with_google_assigned_sales_enabled - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * @type bool $sharing_with_google_any_sales_enabled - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * @type bool $sharing_with_google_products_enabled - * Allows Google to use the data to improve other Google products or services. - * @type bool $sharing_with_others_enabled - * Allows Google to share the data anonymously in aggregate form with others. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @return bool - */ - public function getSharingWithGoogleSupportEnabled() - { - return $this->sharing_with_google_support_enabled; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleSupportEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_support_enabled = $var; - - return $this; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @return bool - */ - public function getSharingWithGoogleAssignedSalesEnabled() - { - return $this->sharing_with_google_assigned_sales_enabled; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAssignedSalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_assigned_sales_enabled = $var; - - return $this; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @return bool - */ - public function getSharingWithGoogleAnySalesEnabled() - { - return $this->sharing_with_google_any_sales_enabled; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAnySalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_any_sales_enabled = $var; - - return $this; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @return bool - */ - public function getSharingWithGoogleProductsEnabled() - { - return $this->sharing_with_google_products_enabled; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleProductsEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_products_enabled = $var; - - return $this; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @return bool - */ - public function getSharingWithOthersEnabled() - { - return $this->sharing_with_others_enabled; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @param bool $var - * @return $this - */ - public function setSharingWithOthersEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_others_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php deleted file mode 100644 index 334525308793..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream.php +++ /dev/null @@ -1,356 +0,0 @@ -google.analytics.admin.v1alpha.DataStream - */ -class DataStream extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - protected $stream_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $web_stream_data - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * @type \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $android_app_stream_data - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * @type \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $ios_app_stream_data - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * @type string $name - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * @type int $type - * Required. Immutable. The type of this DataStream resource. - * @type string $display_name - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this stream was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when stream payload fields were last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData|null - */ - public function getWebStreamData() - { - return $this->readOneof(6); - } - - public function hasWebStreamData() - { - return $this->hasOneof(6); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @param \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $var - * @return $this - */ - public function setWebStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData|null - */ - public function getAndroidAppStreamData() - { - return $this->readOneof(7); - } - - public function hasAndroidAppStreamData() - { - return $this->hasOneof(7); - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @param \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $var - * @return $this - */ - public function setAndroidAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData|null - */ - public function getIosAppStreamData() - { - return $this->readOneof(8); - } - - public function hasIosAppStreamData() - { - return $this->hasOneof(8); - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @param \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $var - * @return $this - */ - public function setIosAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataStream\DataStreamType::class); - $this->type = $var; - - return $this; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getStreamData() - { - return $this->whichOneof("stream_data"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php deleted file mode 100644 index 05430a617fbc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/AndroidAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - */ -class AndroidAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $package_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * @type string $package_name - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AndroidAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_AndroidAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php deleted file mode 100644 index 40b9025b6d49..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/DataStreamType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.DataStreamType - */ -class DataStreamType -{ - /** - * Type unknown or not specified. - * - * Generated from protobuf enum DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - const DATA_STREAM_TYPE_UNSPECIFIED = 0; - /** - * Web data stream. - * - * Generated from protobuf enum WEB_DATA_STREAM = 1; - */ - const WEB_DATA_STREAM = 1; - /** - * Android app data stream. - * - * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 2; - */ - const ANDROID_APP_DATA_STREAM = 2; - /** - * iOS app data stream. - * - * Generated from protobuf enum IOS_APP_DATA_STREAM = 3; - */ - const IOS_APP_DATA_STREAM = 3; - - private static $valueToName = [ - self::DATA_STREAM_TYPE_UNSPECIFIED => 'DATA_STREAM_TYPE_UNSPECIFIED', - self::WEB_DATA_STREAM => 'WEB_DATA_STREAM', - self::ANDROID_APP_DATA_STREAM => 'ANDROID_APP_DATA_STREAM', - self::IOS_APP_DATA_STREAM => 'IOS_APP_DATA_STREAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataStreamType::class, \Google\Analytics\Admin\V1alpha\DataStream_DataStreamType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php deleted file mode 100644 index e7abc7c8e336..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/IosAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.IosAppStreamData - */ -class IosAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $bundle_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * @type string $bundle_id - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBundleId() - { - return $this->bundle_id; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBundleId($var) - { - GPBUtil::checkString($var, True); - $this->bundle_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IosAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_IosAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php deleted file mode 100644 index 792c187d85dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DataStream/WebStreamData.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1alpha.DataStream.WebStreamData - */ -class WebStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $measurement_id = ''; - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - */ - protected $default_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $measurement_id - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * @type string $firebase_app_id - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * @type string $default_uri - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeasurementId() - { - return $this->measurement_id; - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeasurementId($var) - { - GPBUtil::checkString($var, True); - $this->measurement_id = $var; - - return $this; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @return string - */ - public function getDefaultUri() - { - return $this->default_uri; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @param string $var - * @return $this - */ - public function setDefaultUri($var) - { - GPBUtil::checkString($var, True); - $this->default_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WebStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_WebStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php deleted file mode 100644 index ed2ac9e8f19b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccessBindingRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.DeleteAccessBindingRequest - */ -class DeleteAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * Please see {@see AnalyticsAdminServiceClient::accessBindingName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php deleted file mode 100644 index 78951dd2c825..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAccountRequest.php +++ /dev/null @@ -1,91 +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 = ''; - - /** - * @param string $name Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteAccountRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php deleted file mode 100644 index abcd87d373e8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteAdSenseLinkRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest - */ -class DeleteAdSenseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::adSenseLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteAdSenseLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteBigQueryLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteBigQueryLinkRequest.php deleted file mode 100644 index 824fe851d0d8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteBigQueryLinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest - */ -class DeleteBigQueryLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The BigQueryLink to delete. - * Example format: properties/1234/bigQueryLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The BigQueryLink to delete. - * Example format: properties/1234/bigQueryLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::bigQueryLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteBigQueryLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The BigQueryLink to delete. - * Example format: properties/1234/bigQueryLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The BigQueryLink to delete. - * Example format: properties/1234/bigQueryLinks/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 BigQueryLink to delete. - * Example format: properties/1234/bigQueryLinks/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/DeleteCalculatedMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteCalculatedMetricRequest.php deleted file mode 100644 index 04b753961214..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteCalculatedMetricRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest - */ -class DeleteCalculatedMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CalculatedMetric to delete. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CalculatedMetric to delete. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * Please see {@see AnalyticsAdminServiceClient::calculatedMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteCalculatedMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CalculatedMetric to delete. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CalculatedMetric to delete. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * - * 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 CalculatedMetric to delete. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php deleted file mode 100644 index 325ec0cd8ba6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteChannelGroupRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.DeleteChannelGroupRequest - */ -class DeleteChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * Please see {@see AnalyticsAdminServiceClient::channelGroupName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteChannelGroupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php deleted file mode 100644 index 19d55fea7d9d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConnectedSiteTagRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest - */ -class DeleteConnectedSiteTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2; - */ - protected $tag_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type string $tag_id - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2; - * @return string - */ - public function getTagId() - { - return $this->tag_id; - } - - /** - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * - * Generated from protobuf field string tag_id = 2; - * @param string $var - * @return $this - */ - public function setTagId($var) - { - GPBUtil::checkString($var, True); - $this->tag_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php deleted file mode 100644 index 9d6de61cb354..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteConversionEventRequest.php +++ /dev/null @@ -1,91 +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 = ''; - - /** - * @param string $name Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteConversionEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php deleted file mode 100644 index 39297c7804f7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDataStreamRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.DeleteDataStreamRequest - */ -class DeleteDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index 9919c26cb01d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest - */ -class DeleteDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * Please see {@see AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index 36ae92ceb434..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest - */ -class DeleteDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php deleted file mode 100644 index ebf012c1be2c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventCreateRuleRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest - */ -class DeleteEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * Please see {@see AnalyticsAdminServiceClient::eventCreateRuleName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteEventCreateRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventEditRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventEditRuleRequest.php deleted file mode 100644 index e75d1856e39f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteEventEditRuleRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1alpha.DeleteEventEditRuleRequest - */ -class DeleteEventEditRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - * Please see {@see AnalyticsAdminServiceClient::eventEditRuleName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteEventEditRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php deleted file mode 100644 index b635f61d6a9d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteExpandedDataSetRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest - */ -class DeleteExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Example format: properties/1234/expandedDataSets/5678 - * Please see {@see AnalyticsAdminServiceClient::expandedDataSetName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteExpandedDataSetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/expandedDataSets/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php deleted file mode 100644 index 31ceb191cee4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteFirebaseLinkRequest.php +++ /dev/null @@ -1,87 +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 = ''; - - /** - * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * - * Example: `properties/1234/firebaseLinks/5678` - * Please see {@see AnalyticsAdminServiceClient::firebaseLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: `properties/1234/firebaseLinks/5678` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\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 04dbf0efeb1d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteGoogleAdsLinkRequest.php +++ /dev/null @@ -1,81 +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 = ''; - - /** - * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::googleAdsLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/googleAdsLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\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/DeleteKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteKeyEventRequest.php deleted file mode 100644 index f01af4a03ca0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteKeyEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.DeleteKeyEventRequest - */ -class DeleteKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * Please see {@see AnalyticsAdminServiceClient::keyEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteKeyEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/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 Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/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 bebadcf7c6b6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest - */ -class DeleteMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php deleted file mode 100644 index b02529405170..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeletePropertyRequest.php +++ /dev/null @@ -1,91 +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 = ''; - - /** - * @param string $name Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeletePropertyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php deleted file mode 100644 index c72ba364639c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteRollupPropertySourceLinkRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest - */ -class DeleteRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/1234/rollupPropertySourceLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/1234/rollupPropertySourceLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::rollupPropertySourceLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteRollupPropertySourceLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/1234/rollupPropertySourceLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/1234/rollupPropertySourceLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/1234/rollupPropertySourceLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index 19aa61ab4479..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest - */ -class DeleteSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * Please see {@see AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteSKAdNetworkConversionValueSchemaRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php deleted file mode 100644 index 253c2ef837f3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSearchAds360LinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest - */ -class DeleteSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * Please see {@see AnalyticsAdminServiceClient::searchAds360LinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteSearchAds360LinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php deleted file mode 100644 index 553862e67311..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DeleteSubpropertyEventFilterRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest - */ -class DeleteSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the subproperty event filter to delete. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the subproperty event filter to delete. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * Please see {@see AnalyticsAdminServiceClient::subpropertyEventFilterName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\DeleteSubpropertyEventFilterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the subproperty event filter to delete. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the subproperty event filter to delete. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the subproperty event filter to delete. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php deleted file mode 100644 index db07c2123059..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLink.php +++ /dev/null @@ -1,408 +0,0 @@ -google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink - */ -class DisplayVideo360AdvertiserLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $advertiser_id = ''; - /** - * Output only. The display name of the Display & Video 360 Advertiser. - * - * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $advertiser_display_name = ''; - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - protected $ads_personalization_enabled = null; - /** - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $campaign_data_sharing_enabled = null; - /** - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cost_data_sharing_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * @type string $advertiser_id - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * @type string $advertiser_display_name - * Output only. The display name of the Display & Video 360 Advertiser. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this DisplayVideo360AdvertiserLink - * resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} - * Note: linkId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdvertiserId() - { - return $this->advertiser_id; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdvertiserId($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_id = $var; - - return $this; - } - - /** - * Output only. The display name of the Display & Video 360 Advertiser. - * - * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdvertiserDisplayName() - { - return $this->advertiser_display_name; - } - - /** - * Output only. The display name of the Display & Video 360 Advertiser. - * - * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdvertiserDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_display_name = $var; - - return $this; - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enables personalized advertising features with this integration. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCampaignDataSharingEnabled() - { - return $this->campaign_data_sharing_enabled; - } - - public function hasCampaignDataSharingEnabled() - { - return isset($this->campaign_data_sharing_enabled); - } - - public function clearCampaignDataSharingEnabled() - { - unset($this->campaign_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCampaignDataSharingEnabled() - - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCampaignDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("campaign_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCampaignDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->campaign_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of campaign data from Display & Video 360 - * into the GA4 property. After link creation, this can only be updated from - * the Display & Video 360 product. If this field is not set on create, it - * will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCampaignDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("campaign_data_sharing_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCostDataSharingEnabled() - { - return $this->cost_data_sharing_enabled; - } - - public function hasCostDataSharingEnabled() - { - return isset($this->cost_data_sharing_enabled); - } - - public function clearCostDataSharingEnabled() - { - unset($this->cost_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCostDataSharingEnabled() - - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCostDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("cost_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCostDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cost_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of cost data from Display & Video 360 into - * the GA4 property. This can only be enabled if campaign_data_sharing_enabled - * is enabled. After link creation, this can only be updated from the Display - * & Video 360 product. If this field is not set on create, it will be - * defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCostDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("cost_data_sharing_enabled", $var); - return $this;} - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php deleted file mode 100644 index ff6821888ae0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/DisplayVideo360AdvertiserLinkProposal.php +++ /dev/null @@ -1,490 +0,0 @@ -google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - */ -class DisplayVideo360AdvertiserLinkProposal extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $advertiser_id = ''; - /** - * Output only. The status information for this link proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $link_proposal_status_details = null; - /** - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * - * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $advertiser_display_name = ''; - /** - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * - * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $validation_email = ''; - /** - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $ads_personalization_enabled = null; - /** - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $campaign_data_sharing_enabled = null; - /** - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cost_data_sharing_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * @type string $advertiser_id - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * @type \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $link_proposal_status_details - * Output only. The status information for this link proposal. - * @type string $advertiser_display_name - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * @type string $validation_email - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this - * DisplayVideo360AdvertiserLinkProposal resource. Format: - * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} - * Note: proposalId is not the Display & Video 360 Advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdvertiserId() - { - return $this->advertiser_id; - } - - /** - * Immutable. The Display & Video 360 Advertiser's advertiser ID. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdvertiserId($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_id = $var; - - return $this; - } - - /** - * Output only. The status information for this link proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails|null - */ - public function getLinkProposalStatusDetails() - { - return $this->link_proposal_status_details; - } - - public function hasLinkProposalStatusDetails() - { - return isset($this->link_proposal_status_details); - } - - public function clearLinkProposalStatusDetails() - { - unset($this->link_proposal_status_details); - } - - /** - * Output only. The status information for this link proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $var - * @return $this - */ - public function setLinkProposalStatusDetails($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails::class); - $this->link_proposal_status_details = $var; - - return $this; - } - - /** - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * - * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdvertiserDisplayName() - { - return $this->advertiser_display_name; - } - - /** - * Output only. The display name of the Display & Video Advertiser. - * Only populated for proposals that originated from Display & Video 360. - * - * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdvertiserDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_display_name = $var; - - return $this; - } - - /** - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * - * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getValidationEmail() - { - return $this->validation_email; - } - - /** - * Input only. On a proposal being sent to Display & Video 360, this field - * must be set to the email address of an admin on the target advertiser. This - * is used to verify that the Google Analytics admin is aware of at least one - * admin on the Display & Video 360 Advertiser. This does not restrict - * approval of the proposal to a single user. Any admin on the Display & Video - * 360 Advertiser may approve the proposal. - * - * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setValidationEmail($var) - { - GPBUtil::checkString($var, True); - $this->validation_email = $var; - - return $this; - } - - /** - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCampaignDataSharingEnabled() - { - return $this->campaign_data_sharing_enabled; - } - - public function hasCampaignDataSharingEnabled() - { - return isset($this->campaign_data_sharing_enabled); - } - - public function clearCampaignDataSharingEnabled() - { - unset($this->campaign_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCampaignDataSharingEnabled() - - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCampaignDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("campaign_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCampaignDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->campaign_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of campaign data from Display & Video 360. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCampaignDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("campaign_data_sharing_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCostDataSharingEnabled() - { - return $this->cost_data_sharing_enabled; - } - - public function hasCostDataSharingEnabled() - { - return isset($this->cost_data_sharing_enabled); - } - - public function clearCostDataSharingEnabled() - { - unset($this->cost_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCostDataSharingEnabled() - - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCostDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("cost_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCostDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cost_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of cost data from Display & Video 360. - * This can only be enabled if campaign_data_sharing_enabled is enabled. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCostDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("cost_data_sharing_enabled", $var); - return $this;} - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php deleted file mode 100644 index b210cd61041e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EnhancedMeasurementSettings.php +++ /dev/null @@ -1,472 +0,0 @@ -google.analytics.admin.v1alpha.EnhancedMeasurementSettings - */ -class EnhancedMeasurementSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * - * Generated from protobuf field bool stream_enabled = 2; - */ - protected $stream_enabled = false; - /** - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * - * Generated from protobuf field bool scrolls_enabled = 3; - */ - protected $scrolls_enabled = false; - /** - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * - * Generated from protobuf field bool outbound_clicks_enabled = 4; - */ - protected $outbound_clicks_enabled = false; - /** - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * - * Generated from protobuf field bool site_search_enabled = 5; - */ - protected $site_search_enabled = false; - /** - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * - * Generated from protobuf field bool video_engagement_enabled = 6; - */ - protected $video_engagement_enabled = false; - /** - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * - * Generated from protobuf field bool file_downloads_enabled = 7; - */ - protected $file_downloads_enabled = false; - /** - * If enabled, capture a page view event each time the website changes the - * browser history state. - * - * Generated from protobuf field bool page_changes_enabled = 8; - */ - protected $page_changes_enabled = false; - /** - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * - * Generated from protobuf field bool form_interactions_enabled = 9; - */ - protected $form_interactions_enabled = false; - /** - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * - * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $search_query_parameter = ''; - /** - * Additional URL query parameters. - * Max length is 1024 characters. - * - * Generated from protobuf field string uri_query_parameter = 11; - */ - protected $uri_query_parameter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * @type bool $stream_enabled - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * @type bool $scrolls_enabled - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * @type bool $outbound_clicks_enabled - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * @type bool $site_search_enabled - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * @type bool $video_engagement_enabled - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * @type bool $file_downloads_enabled - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * @type bool $page_changes_enabled - * If enabled, capture a page view event each time the website changes the - * browser history state. - * @type bool $form_interactions_enabled - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * @type string $search_query_parameter - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * @type string $uri_query_parameter - * Additional URL query parameters. - * Max length is 1024 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the Enhanced Measurement Settings. - * Format: - * properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * - * Generated from protobuf field bool stream_enabled = 2; - * @return bool - */ - public function getStreamEnabled() - { - return $this->stream_enabled; - } - - /** - * Indicates whether Enhanced Measurement Settings will be used to - * automatically measure interactions and content on this web stream. - * Changing this value does not affect the settings themselves, but determines - * whether they are respected. - * - * Generated from protobuf field bool stream_enabled = 2; - * @param bool $var - * @return $this - */ - public function setStreamEnabled($var) - { - GPBUtil::checkBool($var); - $this->stream_enabled = $var; - - return $this; - } - - /** - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * - * Generated from protobuf field bool scrolls_enabled = 3; - * @return bool - */ - public function getScrollsEnabled() - { - return $this->scrolls_enabled; - } - - /** - * If enabled, capture scroll events each time a visitor gets to the bottom of - * a page. - * - * Generated from protobuf field bool scrolls_enabled = 3; - * @param bool $var - * @return $this - */ - public function setScrollsEnabled($var) - { - GPBUtil::checkBool($var); - $this->scrolls_enabled = $var; - - return $this; - } - - /** - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * - * Generated from protobuf field bool outbound_clicks_enabled = 4; - * @return bool - */ - public function getOutboundClicksEnabled() - { - return $this->outbound_clicks_enabled; - } - - /** - * If enabled, capture an outbound click event each time a visitor clicks a - * link that leads them away from your domain. - * - * Generated from protobuf field bool outbound_clicks_enabled = 4; - * @param bool $var - * @return $this - */ - public function setOutboundClicksEnabled($var) - { - GPBUtil::checkBool($var); - $this->outbound_clicks_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * - * Generated from protobuf field bool site_search_enabled = 5; - * @return bool - */ - public function getSiteSearchEnabled() - { - return $this->site_search_enabled; - } - - /** - * If enabled, capture a view search results event each time a visitor - * performs a search on your site (based on a query parameter). - * - * Generated from protobuf field bool site_search_enabled = 5; - * @param bool $var - * @return $this - */ - public function setSiteSearchEnabled($var) - { - GPBUtil::checkBool($var); - $this->site_search_enabled = $var; - - return $this; - } - - /** - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * - * Generated from protobuf field bool video_engagement_enabled = 6; - * @return bool - */ - public function getVideoEngagementEnabled() - { - return $this->video_engagement_enabled; - } - - /** - * If enabled, capture video play, progress, and complete events as visitors - * view embedded videos on your site. - * - * Generated from protobuf field bool video_engagement_enabled = 6; - * @param bool $var - * @return $this - */ - public function setVideoEngagementEnabled($var) - { - GPBUtil::checkBool($var); - $this->video_engagement_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * - * Generated from protobuf field bool file_downloads_enabled = 7; - * @return bool - */ - public function getFileDownloadsEnabled() - { - return $this->file_downloads_enabled; - } - - /** - * If enabled, capture a file download event each time a link is clicked with - * a common document, compressed file, application, video, or audio extension. - * - * Generated from protobuf field bool file_downloads_enabled = 7; - * @param bool $var - * @return $this - */ - public function setFileDownloadsEnabled($var) - { - GPBUtil::checkBool($var); - $this->file_downloads_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a page view event each time the website changes the - * browser history state. - * - * Generated from protobuf field bool page_changes_enabled = 8; - * @return bool - */ - public function getPageChangesEnabled() - { - return $this->page_changes_enabled; - } - - /** - * If enabled, capture a page view event each time the website changes the - * browser history state. - * - * Generated from protobuf field bool page_changes_enabled = 8; - * @param bool $var - * @return $this - */ - public function setPageChangesEnabled($var) - { - GPBUtil::checkBool($var); - $this->page_changes_enabled = $var; - - return $this; - } - - /** - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * - * Generated from protobuf field bool form_interactions_enabled = 9; - * @return bool - */ - public function getFormInteractionsEnabled() - { - return $this->form_interactions_enabled; - } - - /** - * If enabled, capture a form interaction event each time a visitor interacts - * with a form on your website. - * False by default. - * - * Generated from protobuf field bool form_interactions_enabled = 9; - * @param bool $var - * @return $this - */ - public function setFormInteractionsEnabled($var) - { - GPBUtil::checkBool($var); - $this->form_interactions_enabled = $var; - - return $this; - } - - /** - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * - * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSearchQueryParameter() - { - return $this->search_query_parameter; - } - - /** - * Required. URL query parameters to interpret as site search parameters. - * Max length is 1024 characters. Must not be empty. - * - * Generated from protobuf field string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSearchQueryParameter($var) - { - GPBUtil::checkString($var, True); - $this->search_query_parameter = $var; - - return $this; - } - - /** - * Additional URL query parameters. - * Max length is 1024 characters. - * - * Generated from protobuf field string uri_query_parameter = 11; - * @return string - */ - public function getUriQueryParameter() - { - return $this->uri_query_parameter; - } - - /** - * Additional URL query parameters. - * Max length is 1024 characters. - * - * Generated from protobuf field string uri_query_parameter = 11; - * @param string $var - * @return $this - */ - public function setUriQueryParameter($var) - { - GPBUtil::checkString($var, True); - $this->uri_query_parameter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php deleted file mode 100644 index f5101fcff128..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventCreateRule.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1alpha.EventCreateRule - */ -class EventCreateRule extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * - * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination_event = ''; - /** - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $event_conditions; - /** - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * - * Generated from protobuf field bool source_copy_parameters = 4; - */ - protected $source_copy_parameters = false; - /** - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - private $parameter_mutations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * @type string $destination_event - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * @type array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $event_conditions - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * @type bool $source_copy_parameters - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * @type array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $parameter_mutations - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this EventCreateRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * - * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDestinationEvent() - { - return $this->destination_event; - } - - /** - * Required. The name of the new event to be created. - * This value must: - * * be less than 40 characters - * * consist only of letters, digits or _ (underscores) - * * start with a letter - * - * Generated from protobuf field string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDestinationEvent($var) - { - GPBUtil::checkString($var, True); - $this->destination_event = $var; - - return $this; - } - - /** - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventConditions() - { - return $this->event_conditions; - } - - /** - * Required. Must have at least one condition, and can have up to 10 max. - * Conditions on the source event must match for this rule to be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MatchingCondition::class); - $this->event_conditions = $arr; - - return $this; - } - - /** - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * - * Generated from protobuf field bool source_copy_parameters = 4; - * @return bool - */ - public function getSourceCopyParameters() - { - return $this->source_copy_parameters; - } - - /** - * If true, the source parameters are copied to the new event. - * If false, or unset, all non-internal parameters are not copied from the - * source event. Parameter mutations are applied after the parameters have - * been copied. - * - * Generated from protobuf field bool source_copy_parameters = 4; - * @param bool $var - * @return $this - */ - public function setSourceCopyParameters($var) - { - GPBUtil::checkBool($var); - $this->source_copy_parameters = $var; - - return $this; - } - - /** - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameterMutations() - { - return $this->parameter_mutations; - } - - /** - * Parameter mutations define parameter behavior on the new event, and - * are applied in order. - * A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - * @param array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameterMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ParameterMutation::class); - $this->parameter_mutations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventEditRule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventEditRule.php deleted file mode 100644 index 02c24124702c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventEditRule.php +++ /dev/null @@ -1,245 +0,0 @@ -google.analytics.admin.v1alpha.EventEditRule - */ -class EventEditRule extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name for this EventEditRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The display name of this event edit rule. Maximum of 255 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. Conditions on the source event must match for this rule to be - * applied. Must have at least one condition, and can have up to 10 max. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $event_conditions; - /** - * Required. Parameter mutations define parameter behavior on the new event, - * and are applied in order. A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $parameter_mutations; - /** - * Output only. The order for which this rule will be processed. Rules with an - * order value lower than this will be processed before this rule, rules with - * an order value higher than this will be processed after this rule. New - * event edit rules will be assigned an order value at the end of the order. - * This value does not apply to event create rules. - * - * Generated from protobuf field int64 processing_order = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $processing_order = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name for this EventEditRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule} - * @type string $display_name - * Required. The display name of this event edit rule. Maximum of 255 - * characters. - * @type array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $event_conditions - * Required. Conditions on the source event must match for this rule to be - * applied. Must have at least one condition, and can have up to 10 max. - * @type array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $parameter_mutations - * Required. Parameter mutations define parameter behavior on the new event, - * and are applied in order. A maximum of 20 mutations can be applied. - * @type int|string $processing_order - * Output only. The order for which this rule will be processed. Rules with an - * order value lower than this will be processed before this rule, rules with - * an order value higher than this will be processed after this rule. New - * event edit rules will be assigned an order value at the end of the order. - * This value does not apply to event create rules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name for this EventEditRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name for this EventEditRule resource. - * Format: - * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of this event edit rule. Maximum of 255 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of this event edit rule. Maximum of 255 - * characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Conditions on the source event must match for this rule to be - * applied. Must have at least one condition, and can have up to 10 max. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventConditions() - { - return $this->event_conditions; - } - - /** - * Required. Conditions on the source event must match for this rule to be - * applied. Must have at least one condition, and can have up to 10 max. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MatchingCondition::class); - $this->event_conditions = $arr; - - return $this; - } - - /** - * Required. Parameter mutations define parameter behavior on the new event, - * and are applied in order. A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameterMutations() - { - return $this->parameter_mutations; - } - - /** - * Required. Parameter mutations define parameter behavior on the new event, - * and are applied in order. A maximum of 20 mutations can be applied. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameterMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ParameterMutation::class); - $this->parameter_mutations = $arr; - - return $this; - } - - /** - * Output only. The order for which this rule will be processed. Rules with an - * order value lower than this will be processed before this rule, rules with - * an order value higher than this will be processed after this rule. New - * event edit rules will be assigned an order value at the end of the order. - * This value does not apply to event create rules. - * - * Generated from protobuf field int64 processing_order = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getProcessingOrder() - { - return $this->processing_order; - } - - /** - * Output only. The order for which this rule will be processed. Rules with an - * order value lower than this will be processed before this rule, rules with - * an order value higher than this will be processed after this rule. New - * event edit rules will be assigned an order value at the end of the order. - * This value does not apply to event create rules. - * - * Generated from protobuf field int64 processing_order = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setProcessingOrder($var) - { - GPBUtil::checkInt64($var); - $this->processing_order = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php deleted file mode 100644 index 62800a21cb3f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/EventMapping.php +++ /dev/null @@ -1,279 +0,0 @@ -google.analytics.admin.v1alpha.EventMapping - */ -class EventMapping extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_name = ''; - /** - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * - * Generated from protobuf field optional int64 min_event_count = 2; - */ - protected $min_event_count = null; - /** - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * - * Generated from protobuf field optional int64 max_event_count = 3; - */ - protected $max_event_count = null; - /** - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * - * Generated from protobuf field optional double min_event_value = 4; - */ - protected $min_event_value = null; - /** - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * - * Generated from protobuf field optional double max_event_value = 5; - */ - protected $max_event_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * @type int|string $min_event_count - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * @type int|string $max_event_count - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * @type float $min_event_value - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * @type float $max_event_value - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Required. Name of the GA4 event. It must always be set. - * The max allowed display name length is 40 UTF-16 code units. - * - * Generated from protobuf field string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * - * Generated from protobuf field optional int64 min_event_count = 2; - * @return int|string - */ - public function getMinEventCount() - { - return isset($this->min_event_count) ? $this->min_event_count : 0; - } - - public function hasMinEventCount() - { - return isset($this->min_event_count); - } - - public function clearMinEventCount() - { - unset($this->min_event_count); - } - - /** - * At least one of the following four min/max values must be set. The - * values set will be ANDed together to qualify an event. - * The minimum number of times the event occurred. If not set, minimum event - * count won't be checked. - * - * Generated from protobuf field optional int64 min_event_count = 2; - * @param int|string $var - * @return $this - */ - public function setMinEventCount($var) - { - GPBUtil::checkInt64($var); - $this->min_event_count = $var; - - return $this; - } - - /** - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * - * Generated from protobuf field optional int64 max_event_count = 3; - * @return int|string - */ - public function getMaxEventCount() - { - return isset($this->max_event_count) ? $this->max_event_count : 0; - } - - public function hasMaxEventCount() - { - return isset($this->max_event_count); - } - - public function clearMaxEventCount() - { - unset($this->max_event_count); - } - - /** - * The maximum number of times the event occurred. If not set, maximum event - * count won't be checked. - * - * Generated from protobuf field optional int64 max_event_count = 3; - * @param int|string $var - * @return $this - */ - public function setMaxEventCount($var) - { - GPBUtil::checkInt64($var); - $this->max_event_count = $var; - - return $this; - } - - /** - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * - * Generated from protobuf field optional double min_event_value = 4; - * @return float - */ - public function getMinEventValue() - { - return isset($this->min_event_value) ? $this->min_event_value : 0.0; - } - - public function hasMinEventValue() - { - return isset($this->min_event_value); - } - - public function clearMinEventValue() - { - unset($this->min_event_value); - } - - /** - * The minimum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, minimum event value won't be - * checked. - * - * Generated from protobuf field optional double min_event_value = 4; - * @param float $var - * @return $this - */ - public function setMinEventValue($var) - { - GPBUtil::checkDouble($var); - $this->min_event_value = $var; - - return $this; - } - - /** - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * - * Generated from protobuf field optional double max_event_value = 5; - * @return float - */ - public function getMaxEventValue() - { - return isset($this->max_event_value) ? $this->max_event_value : 0.0; - } - - public function hasMaxEventValue() - { - return isset($this->max_event_value); - } - - public function clearMaxEventValue() - { - unset($this->max_event_value); - } - - /** - * The maximum revenue generated due to the event. Revenue currency will be - * defined at the property level. If not set, maximum event value won't be - * checked. - * - * Generated from protobuf field optional double max_event_value = 5; - * @param float $var - * @return $this - */ - public function setMaxEventValue($var) - { - GPBUtil::checkDouble($var); - $this->max_event_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php deleted file mode 100644 index 0c24c2b5a748..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSet.php +++ /dev/null @@ -1,339 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSet - */ -class ExpandedDataSet extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $dimension_names; - /** - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * - * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $metric_names; - /** - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $dimension_filter_expression = null; - /** - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * - * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_collection_start_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * @type string $display_name - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * @type string $description - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * @type array|\Google\Protobuf\Internal\RepeatedField $dimension_names - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_names - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $dimension_filter_expression - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * @type \Google\Protobuf\Timestamp $data_collection_start_time - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this ExpandedDataSet resource. - * Format: properties/{property_id}/expandedDataSets/{expanded_data_set} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the ExpandedDataSet. - * Max 200 chars. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the ExpandedDataSet. - * Max 50 chars. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionNames() - { - return $this->dimension_names; - } - - /** - * Immutable. The list of dimensions included in the ExpandedDataSet. - * See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->dimension_names = $arr; - - return $this; - } - - /** - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * - * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricNames() - { - return $this->metric_names; - } - - /** - * Immutable. The list of metrics included in the ExpandedDataSet. - * See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of dimension names. - * - * Generated from protobuf field repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metric_names = $arr; - - return $this; - } - - /** - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression|null - */ - public function getDimensionFilterExpression() - { - return $this->dimension_filter_expression; - } - - public function hasDimensionFilterExpression() - { - return isset($this->dimension_filter_expression); - } - - public function clearDimensionFilterExpression() - { - unset($this->dimension_filter_expression); - } - - /** - * Immutable. A logical expression of ExpandedDataSet filters applied to - * dimension included in the ExpandedDataSet. This filter is used to reduce - * the number of rows and thus the chance of encountering `other` row. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $var - * @return $this - */ - public function setDimensionFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); - $this->dimension_filter_expression = $var; - - return $this; - } - - /** - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * - * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDataCollectionStartTime() - { - return $this->data_collection_start_time; - } - - public function hasDataCollectionStartTime() - { - return isset($this->data_collection_start_time); - } - - public function clearDataCollectionStartTime() - { - unset($this->data_collection_start_time); - } - - /** - * Output only. Time when expanded data set began (or will begin) collecing - * data. - * - * Generated from protobuf field .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDataCollectionStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->data_collection_start_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php deleted file mode 100644 index 22aed1babf03..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter.php +++ /dev/null @@ -1,145 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter - */ -class ExpandedDataSetFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter $string_filter - * A filter for a string-type dimension that matches a particular pattern. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter $in_list_filter - * A filter for a string dimension that matches a particular list of - * options. - * @type string $field_name - * Required. The dimension name to filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for a string dimension that matches a particular list of - * options. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\InListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * Required. The dimension name to filter. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php deleted file mode 100644 index 1e242378d9a8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/InListFilter.php +++ /dev/null @@ -1,116 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Required. The list of possible string values to match against. Must be - * non-empty. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The list of possible string values to match against. Must be - * non-empty. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true. - * - * Generated from protobuf field bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php deleted file mode 100644 index 7010e52a8334..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * Required. The match type for the string filter. - * @type string $value - * Required. The string value to be matched against. - * @type bool $case_sensitive - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The string value to be matched against. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the match is case-sensitive. If false, the match is - * case-insensitive. - * Must be true when match_type is EXACT. - * Must be false when match_type is CONTAINS. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php deleted file mode 100644 index b8c07512fb95..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilter/StringFilter/MatchType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 2; - */ - const CONTAINS = 2; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::CONTAINS => 'CONTAINS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php deleted file mode 100644 index 599f633a8477..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpression.php +++ /dev/null @@ -1,159 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression - */ -class ExpandedDataSetFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList $and_group - * A list of expressions to be AND’ed together. It must contain a - * ExpandedDataSetFilterExpression with either not_expression or - * dimension_filter. This must be set for the top level - * ExpandedDataSetFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $not_expression - * A filter expression to be NOT'ed (that is, inverted, complemented). It - * must include a dimension_filter. This cannot be set on the - * top level ExpandedDataSetFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter $filter - * A filter on a single dimension. This cannot be set on the top - * level ExpandedDataSetFilterExpression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * A list of expressions to be AND’ed together. It must contain a - * ExpandedDataSetFilterExpression with either not_expression or - * dimension_filter. This must be set for the top level - * ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * A list of expressions to be AND’ed together. It must contain a - * ExpandedDataSetFilterExpression with either not_expression or - * dimension_filter. This must be set for the top level - * ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A filter expression to be NOT'ed (that is, inverted, complemented). It - * must include a dimension_filter. This cannot be set on the - * top level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(2); - } - - public function hasNotExpression() - { - return $this->hasOneof(2); - } - - /** - * A filter expression to be NOT'ed (that is, inverted, complemented). It - * must include a dimension_filter. This cannot be set on the - * top level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter|null - */ - public function getFilter() - { - return $this->readOneof(3); - } - - public function hasFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter on a single dimension. This cannot be set on the top - * level ExpandedDataSetFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php deleted file mode 100644 index 90185029e2a9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ExpandedDataSetFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList - */ -class ExpandedDataSetFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of ExpandedDataSet filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - private $filter_expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions - * A list of ExpandedDataSet filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); - parent::__construct($data); - } - - /** - * A list of ExpandedDataSet filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterExpressions() - { - return $this->filter_expressions; - } - - /** - * A list of ExpandedDataSet filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ExpandedDataSetFilterExpression::class); - $this->filter_expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php deleted file mode 100644 index 54c09a227427..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest - */ -class FetchAutomatedGa4ConfigurationOptOutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php deleted file mode 100644 index aa38497d6e9b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse - */ -class FetchAutomatedGa4ConfigurationOptOutResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The opt out status for the UA property. - * - * Generated from protobuf field bool opt_out = 1; - */ - protected $opt_out = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $opt_out - * The opt out status for the UA property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The opt out status for the UA property. - * - * Generated from protobuf field bool opt_out = 1; - * @return bool - */ - public function getOptOut() - { - return $this->opt_out; - } - - /** - * The opt out status for the UA property. - * - * Generated from protobuf field bool opt_out = 1; - * @param bool $var - * @return $this - */ - public function setOptOut($var) - { - GPBUtil::checkBool($var); - $this->opt_out = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php deleted file mode 100644 index 61191cef5a19..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest - */ -class FetchConnectedGa4PropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php deleted file mode 100644 index a94bf8de4550..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FetchConnectedGa4PropertyResponse.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse - */ -class FetchConnectedGa4PropertyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The GA4 property connected to the UA property. An empty string is returned - * when there is no connected GA4 property. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php deleted file mode 100644 index 741cb2628234..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/FirebaseLink.php +++ /dev/null @@ -1,165 +0,0 @@ -google.analytics.admin.v1alpha.FirebaseLink - */ -class FirebaseLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $project = ''; - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Example format: properties/1234/firebaseLinks/5678 - * @type string $project - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this FirebaseLink was originally created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php deleted file mode 100644 index 8f69c685ecfb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccessBindingRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1alpha.GetAccessBindingRequest - */ -class GetAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * Please see {@see AnalyticsAdminServiceClient::accessBindingName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetAccessBindingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php deleted file mode 100644 index 94871e66cafa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAccountRequest.php +++ /dev/null @@ -1,91 +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 = ''; - - /** - * @param string $name Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetAccountRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php deleted file mode 100644 index d959c3d1843c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAdSenseLinkRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.GetAdSenseLinkRequest - */ -class GetAdSenseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::adSenseLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetAdSenseLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php deleted file mode 100644 index afb58ccbe10c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAttributionSettingsRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetAttributionSettingsRequest - */ -class GetAttributionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * Please see {@see AnalyticsAdminServiceClient::attributionSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetAttributionSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php deleted file mode 100644 index 12efac2e0cad..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetAudienceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetAudienceRequest - */ -class GetAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * Please see {@see AnalyticsAdminServiceClient::audienceName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetAudienceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php deleted file mode 100644 index 7e7a7525512d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetBigQueryLinkRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.GetBigQueryLinkRequest - */ -class GetBigQueryLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * Please see {@see AnalyticsAdminServiceClient::bigQueryLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetBigQueryLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCalculatedMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCalculatedMetricRequest.php deleted file mode 100644 index 2209a609ba9a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCalculatedMetricRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.GetCalculatedMetricRequest - */ -class GetCalculatedMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CalculatedMetric to get. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CalculatedMetric to get. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * Please see {@see AnalyticsAdminServiceClient::calculatedMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetCalculatedMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CalculatedMetric to get. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CalculatedMetric to get. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * - * 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 CalculatedMetric to get. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php deleted file mode 100644 index 9943c32f2cf7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetChannelGroupRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetChannelGroupRequest - */ -class GetChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * Please see {@see AnalyticsAdminServiceClient::channelGroupName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetChannelGroupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php deleted file mode 100644 index d1af3b6035e6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetConversionEventRequest.php +++ /dev/null @@ -1,91 +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 = ''; - - /** - * @param string $name Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetConversionEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\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 791adbf2d967..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomDimensionRequest.php +++ /dev/null @@ -1,86 +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 = ''; - - /** - * @param string $name Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetCustomDimensionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\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 45434fc9c31c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetCustomMetricRequest.php +++ /dev/null @@ -1,86 +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 = ''; - - /** - * @param string $name Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetCustomMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php deleted file mode 100644 index e87cdcdf2829..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRedactionSettingsRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest - */ -class GetDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * Please see {@see AnalyticsAdminServiceClient::dataRedactionSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetDataRedactionSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php deleted file mode 100644 index c8a5a140ad9b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataRetentionSettingsRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest - */ -class GetDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * Please see {@see AnalyticsAdminServiceClient::dataRetentionSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php deleted file mode 100644 index 4ab1c339196f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataSharingSettingsRequest.php +++ /dev/null @@ -1,92 +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 = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * - * Example: `accounts/1000/dataSharingSettings` - * Please see {@see AnalyticsAdminServiceClient::dataSharingSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: `accounts/1000/dataSharingSettings` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: `accounts/1000/dataSharingSettings` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: `accounts/1000/dataSharingSettings` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php deleted file mode 100644 index a7c04b39bf4a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDataStreamRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetDataStreamRequest - */ -class GetDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetDataStreamRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php deleted file mode 100644 index 616f3e26e35a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest - */ -class GetDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * Please see {@see AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index 7741175491e5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest - */ -class GetDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * Please see {@see AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php deleted file mode 100644 index 69e4a08246f4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEnhancedMeasurementSettingsRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - */ -class GetEnhancedMeasurementSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * Please see {@see AnalyticsAdminServiceClient::enhancedMeasurementSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php deleted file mode 100644 index be3e7b1f59cc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventCreateRuleRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetEventCreateRuleRequest - */ -class GetEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * Please see {@see AnalyticsAdminServiceClient::eventCreateRuleName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetEventCreateRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventEditRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventEditRuleRequest.php deleted file mode 100644 index 45e296fdfb3c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetEventEditRuleRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetEventEditRuleRequest - */ -class GetEventEditRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the EventEditRule to get. - * Example format: properties/123/dataStreams/456/eventEditRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the EventEditRule to get. - * Example format: properties/123/dataStreams/456/eventEditRules/789 - * Please see {@see AnalyticsAdminServiceClient::eventEditRuleName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetEventEditRuleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the EventEditRule to get. - * Example format: properties/123/dataStreams/456/eventEditRules/789 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the EventEditRule to get. - * Example format: properties/123/dataStreams/456/eventEditRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the EventEditRule to get. - * Example format: properties/123/dataStreams/456/eventEditRules/789 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php deleted file mode 100644 index 8c794ae9e17d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetExpandedDataSetRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetExpandedDataSetRequest - */ -class GetExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * Please see {@see AnalyticsAdminServiceClient::expandedDataSetName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetExpandedDataSetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php deleted file mode 100644 index 3bdd7333a4e0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGlobalSiteTagRequest.php +++ /dev/null @@ -1,97 +0,0 @@ -google.analytics.admin.v1alpha.GetGlobalSiteTagRequest - */ -class GetGlobalSiteTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: `properties/123/dataStreams/456/globalSiteTag` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * - * Example: `properties/123/dataStreams/456/globalSiteTag` - * Please see {@see AnalyticsAdminServiceClient::globalSiteTagName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: `properties/123/dataStreams/456/globalSiteTag` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: `properties/123/dataStreams/456/globalSiteTag` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: `properties/123/dataStreams/456/globalSiteTag` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php deleted file mode 100644 index b99c6d935119..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetGoogleSignalsSettingsRequest.php +++ /dev/null @@ -1,86 +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 = ''; - - /** - * @param string $name Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * Please see {@see AnalyticsAdminServiceClient::googleSignalsSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the 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/GetKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetKeyEventRequest.php deleted file mode 100644 index 02c7398a12b3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetKeyEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.GetKeyEventRequest - */ -class GetKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * Please see {@see AnalyticsAdminServiceClient::keyEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetKeyEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/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 Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/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 9977c327a3c2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest - */ -class GetMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php deleted file mode 100644 index 73353be2afe4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetPropertyRequest.php +++ /dev/null @@ -1,91 +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 = ''; - - /** - * @param string $name Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetPropertyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php deleted file mode 100644 index 84278fa33855..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetRollupPropertySourceLinkRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest - */ -class GetRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the roll-up property source link to lookup. - * Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/123/rollupPropertySourceLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the roll-up property source link to lookup. - * Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/123/rollupPropertySourceLinks/456 - * Please see {@see AnalyticsAdminServiceClient::rollupPropertySourceLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetRollupPropertySourceLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the roll-up property source link to lookup. - * Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/123/rollupPropertySourceLinks/456 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the roll-up property source link to lookup. - * Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/123/rollupPropertySourceLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the roll-up property source link to lookup. - * Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/123/rollupPropertySourceLinks/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index 14cedd41c311..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest - */ -class GetSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * Please see {@see AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetSKAdNetworkConversionValueSchemaRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php deleted file mode 100644 index e27be0bf9b48..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSearchAds360LinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1alpha.GetSearchAds360LinkRequest - */ -class GetSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * Please see {@see AnalyticsAdminServiceClient::searchAds360LinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetSearchAds360LinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php deleted file mode 100644 index d8f8e4d82ad3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GetSubpropertyEventFilterRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest - */ -class GetSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the subproperty event filter to lookup. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the subproperty event filter to lookup. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * Please see {@see AnalyticsAdminServiceClient::subpropertyEventFilterName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\GetSubpropertyEventFilterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the subproperty event filter to lookup. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the subproperty event filter to lookup. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the subproperty event filter to lookup. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php deleted file mode 100644 index ff41c254253b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GlobalSiteTag.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.admin.v1alpha.GlobalSiteTag - */ -class GlobalSiteTag extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * - * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $snippet = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * @type string $snippet - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this GlobalSiteTag resource. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * Example: "properties/123/dataStreams/456/globalSiteTag" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * - * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getSnippet() - { - return $this->snippet; - } - - /** - * Immutable. JavaScript code snippet to be pasted as the first item into the - * head tag of every webpage to measure. - * - * Generated from protobuf field string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setSnippet($var) - { - GPBUtil::checkString($var, True); - $this->snippet = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php deleted file mode 100644 index 8c768dd1afb0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleAdsLink.php +++ /dev/null @@ -1,358 +0,0 @@ -google.analytics.admin.v1alpha.GoogleAdsLink - */ -class GoogleAdsLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $customer_id = ''; - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $can_manage_clients = false; - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - protected $ads_personalization_enabled = null; - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creator_email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * @type string $customer_id - * Immutable. Google Ads customer ID. - * @type bool $can_manage_clients - * Output only. If true, this link is for a Google Ads manager account. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this link was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when this link was last updated. - * @type string $creator_email_address - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setCustomerId($var) - { - GPBUtil::checkString($var, True); - $this->customer_id = $var; - - return $this; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCanManageClients() - { - return $this->can_manage_clients; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCanManageClients($var) - { - GPBUtil::checkBool($var); - $this->can_manage_clients = $var; - - return $this; - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreatorEmailAddress() - { - return $this->creator_email_address; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreatorEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->creator_email_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php deleted file mode 100644 index 025db1938708..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsConsent.php +++ /dev/null @@ -1,63 +0,0 @@ -google.analytics.admin.v1alpha.GoogleSignalsConsent - */ -class GoogleSignalsConsent -{ - /** - * Google Signals consent value defaults to - * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as - * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. - * - * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; - */ - const GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; - /** - * Terms of service have been accepted - * - * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; - */ - const GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; - /** - * Terms of service have not been accepted - * - * Generated from protobuf enum GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; - */ - const GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; - - private static $valueToName = [ - self::GOOGLE_SIGNALS_CONSENT_UNSPECIFIED => 'GOOGLE_SIGNALS_CONSENT_UNSPECIFIED', - self::GOOGLE_SIGNALS_CONSENT_CONSENTED => 'GOOGLE_SIGNALS_CONSENT_CONSENTED', - self::GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED => 'GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php deleted file mode 100644 index 24556ce9639c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsSettings.php +++ /dev/null @@ -1,143 +0,0 @@ -google.analytics.admin.v1alpha.GoogleSignalsSettings - */ -class GoogleSignalsSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Status of this setting. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - */ - protected $state = 0; - /** - * Output only. Terms of Service acceptance. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $consent = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * @type int $state - * Status of this setting. - * @type int $consent - * Output only. Terms of Service acceptance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this setting. - * Format: properties/{property_id}/googleSignalsSettings - * Example: "properties/1000/googleSignalsSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Status of this setting. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Status of this setting. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Terms of Service acceptance. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getConsent() - { - return $this->consent; - } - - /** - * Output only. Terms of Service acceptance. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setConsent($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsConsent::class); - $this->consent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php deleted file mode 100644 index 1e9442bfdf87..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GoogleSignalsState.php +++ /dev/null @@ -1,62 +0,0 @@ -google.analytics.admin.v1alpha.GoogleSignalsState - */ -class GoogleSignalsState -{ - /** - * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to - * represent that the user has not made an explicit choice. - * - * Generated from protobuf enum GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; - */ - const GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; - /** - * Google Signals is enabled. - * - * Generated from protobuf enum GOOGLE_SIGNALS_ENABLED = 1; - */ - const GOOGLE_SIGNALS_ENABLED = 1; - /** - * Google Signals is disabled. - * - * Generated from protobuf enum GOOGLE_SIGNALS_DISABLED = 2; - */ - const GOOGLE_SIGNALS_DISABLED = 2; - - private static $valueToName = [ - self::GOOGLE_SIGNALS_STATE_UNSPECIFIED => 'GOOGLE_SIGNALS_STATE_UNSPECIFIED', - self::GOOGLE_SIGNALS_ENABLED => 'GOOGLE_SIGNALS_ENABLED', - self::GOOGLE_SIGNALS_DISABLED => 'GOOGLE_SIGNALS_DISABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php deleted file mode 100644 index 079662ea4784..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/GroupingRule.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1alpha.GroupingRule - */ -class GroupingRule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Customer defined display name for the channel. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The Filter Expression that defines the Grouping Rule. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. Customer defined display name for the channel. - * @type \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $expression - * Required. The Filter Expression that defines the Grouping Rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\ChannelGroup::initOnce(); - parent::__construct($data); - } - - /** - * Required. Customer defined display name for the channel. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Customer defined display name for the channel. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The Filter Expression that defines the Grouping Rule. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression|null - */ - public function getExpression() - { - return $this->expression; - } - - public function hasExpression() - { - return isset($this->expression); - } - - public function clearExpression() - { - unset($this->expression); - } - - /** - * Required. The Filter Expression that defines the Grouping Rule. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroupFilterExpression::class); - $this->expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php deleted file mode 100644 index fd5a44904895..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/IndustryCategory.php +++ /dev/null @@ -1,229 +0,0 @@ -google.analytics.admin.v1alpha.IndustryCategory - */ -class IndustryCategory -{ - /** - * Industry category unspecified - * - * Generated from protobuf enum INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - const INDUSTRY_CATEGORY_UNSPECIFIED = 0; - /** - * Automotive - * - * Generated from protobuf enum AUTOMOTIVE = 1; - */ - const AUTOMOTIVE = 1; - /** - * Business and industrial markets - * - * Generated from protobuf enum BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - const BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - /** - * Finance - * - * Generated from protobuf enum FINANCE = 3; - */ - const FINANCE = 3; - /** - * Healthcare - * - * Generated from protobuf enum HEALTHCARE = 4; - */ - const HEALTHCARE = 4; - /** - * Technology - * - * Generated from protobuf enum TECHNOLOGY = 5; - */ - const TECHNOLOGY = 5; - /** - * Travel - * - * Generated from protobuf enum TRAVEL = 6; - */ - const TRAVEL = 6; - /** - * Other - * - * Generated from protobuf enum OTHER = 7; - */ - const OTHER = 7; - /** - * Arts and entertainment - * - * Generated from protobuf enum ARTS_AND_ENTERTAINMENT = 8; - */ - const ARTS_AND_ENTERTAINMENT = 8; - /** - * Beauty and fitness - * - * Generated from protobuf enum BEAUTY_AND_FITNESS = 9; - */ - const BEAUTY_AND_FITNESS = 9; - /** - * Books and literature - * - * Generated from protobuf enum BOOKS_AND_LITERATURE = 10; - */ - const BOOKS_AND_LITERATURE = 10; - /** - * Food and drink - * - * Generated from protobuf enum FOOD_AND_DRINK = 11; - */ - const FOOD_AND_DRINK = 11; - /** - * Games - * - * Generated from protobuf enum GAMES = 12; - */ - const GAMES = 12; - /** - * Hobbies and leisure - * - * Generated from protobuf enum HOBBIES_AND_LEISURE = 13; - */ - const HOBBIES_AND_LEISURE = 13; - /** - * Home and garden - * - * Generated from protobuf enum HOME_AND_GARDEN = 14; - */ - const HOME_AND_GARDEN = 14; - /** - * Internet and telecom - * - * Generated from protobuf enum INTERNET_AND_TELECOM = 15; - */ - const INTERNET_AND_TELECOM = 15; - /** - * Law and government - * - * Generated from protobuf enum LAW_AND_GOVERNMENT = 16; - */ - const LAW_AND_GOVERNMENT = 16; - /** - * News - * - * Generated from protobuf enum NEWS = 17; - */ - const NEWS = 17; - /** - * Online communities - * - * Generated from protobuf enum ONLINE_COMMUNITIES = 18; - */ - const ONLINE_COMMUNITIES = 18; - /** - * People and society - * - * Generated from protobuf enum PEOPLE_AND_SOCIETY = 19; - */ - const PEOPLE_AND_SOCIETY = 19; - /** - * Pets and animals - * - * Generated from protobuf enum PETS_AND_ANIMALS = 20; - */ - const PETS_AND_ANIMALS = 20; - /** - * Real estate - * - * Generated from protobuf enum REAL_ESTATE = 21; - */ - const REAL_ESTATE = 21; - /** - * Reference - * - * Generated from protobuf enum REFERENCE = 22; - */ - const REFERENCE = 22; - /** - * Science - * - * Generated from protobuf enum SCIENCE = 23; - */ - const SCIENCE = 23; - /** - * Sports - * - * Generated from protobuf enum SPORTS = 24; - */ - const SPORTS = 24; - /** - * Jobs and education - * - * Generated from protobuf enum JOBS_AND_EDUCATION = 25; - */ - const JOBS_AND_EDUCATION = 25; - /** - * Shopping - * - * Generated from protobuf enum SHOPPING = 26; - */ - const SHOPPING = 26; - - private static $valueToName = [ - self::INDUSTRY_CATEGORY_UNSPECIFIED => 'INDUSTRY_CATEGORY_UNSPECIFIED', - self::AUTOMOTIVE => 'AUTOMOTIVE', - self::BUSINESS_AND_INDUSTRIAL_MARKETS => 'BUSINESS_AND_INDUSTRIAL_MARKETS', - self::FINANCE => 'FINANCE', - self::HEALTHCARE => 'HEALTHCARE', - self::TECHNOLOGY => 'TECHNOLOGY', - self::TRAVEL => 'TRAVEL', - self::OTHER => 'OTHER', - self::ARTS_AND_ENTERTAINMENT => 'ARTS_AND_ENTERTAINMENT', - self::BEAUTY_AND_FITNESS => 'BEAUTY_AND_FITNESS', - self::BOOKS_AND_LITERATURE => 'BOOKS_AND_LITERATURE', - self::FOOD_AND_DRINK => 'FOOD_AND_DRINK', - self::GAMES => 'GAMES', - self::HOBBIES_AND_LEISURE => 'HOBBIES_AND_LEISURE', - self::HOME_AND_GARDEN => 'HOME_AND_GARDEN', - self::INTERNET_AND_TELECOM => 'INTERNET_AND_TELECOM', - self::LAW_AND_GOVERNMENT => 'LAW_AND_GOVERNMENT', - self::NEWS => 'NEWS', - self::ONLINE_COMMUNITIES => 'ONLINE_COMMUNITIES', - self::PEOPLE_AND_SOCIETY => 'PEOPLE_AND_SOCIETY', - self::PETS_AND_ANIMALS => 'PETS_AND_ANIMALS', - self::REAL_ESTATE => 'REAL_ESTATE', - self::REFERENCE => 'REFERENCE', - self::SCIENCE => 'SCIENCE', - self::SPORTS => 'SPORTS', - self::JOBS_AND_EDUCATION => 'JOBS_AND_EDUCATION', - self::SHOPPING => 'SHOPPING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent.php deleted file mode 100644 index 455cac9d9a97..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent.php +++ /dev/null @@ -1,323 +0,0 @@ -google.analytics.admin.v1alpha.KeyEvent - */ -class KeyEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this key event. - * Format: properties/{property}/keyEvents/{key_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The event name for this key 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 key 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 to true, this event can be deleted. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletable = false; - /** - * Output only. If set to true, this key event refers to a custom event. If - * set to false, this key 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 key events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = false; - /** - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $counting_method = 0; - /** - * Optional. Defines a default value/currency for a key event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this key event. - * Format: properties/{property}/keyEvents/{key_event} - * @type string $event_name - * Immutable. The event name for this key event. - * Examples: 'click', 'purchase' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this key event was created in the property. - * @type bool $deletable - * Output only. If set to true, this event can be deleted. - * @type bool $custom - * Output only. If set to true, this key event refers to a custom event. If - * set to false, this key 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 key events that may be created per property. - * @type int $counting_method - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * @type \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue $default_value - * Optional. Defines a default value/currency for a key event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this key event. - * Format: properties/{property}/keyEvents/{key_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 key event. - * Format: properties/{property}/keyEvents/{key_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 key 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 key 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 key 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 key 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 to true, this event can be deleted. - * - * 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 to true, this event can be deleted. - * - * 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 key event refers to a custom event. If - * set to false, this key 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 key 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 key event refers to a custom event. If - * set to false, this key 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 key 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; - } - - /** - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCountingMethod() - { - return $this->counting_method; - } - - /** - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCountingMethod($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\KeyEvent\CountingMethod::class); - $this->counting_method = $var; - - return $this; - } - - /** - * Optional. Defines a default value/currency for a key event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue|null - */ - public function getDefaultValue() - { - return $this->default_value; - } - - public function hasDefaultValue() - { - return isset($this->default_value); - } - - public function clearDefaultValue() - { - unset($this->default_value); - } - - /** - * Optional. Defines a default value/currency for a key event. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue $var - * @return $this - */ - public function setDefaultValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue::class); - $this->default_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent/CountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent/CountingMethod.php deleted file mode 100644 index 2dcf7fa2ee5d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent/CountingMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1alpha.KeyEvent.CountingMethod - */ -class CountingMethod -{ - /** - * Counting method not specified. - * - * Generated from protobuf enum COUNTING_METHOD_UNSPECIFIED = 0; - */ - const COUNTING_METHOD_UNSPECIFIED = 0; - /** - * Each Event instance is considered a Key Event. - * - * Generated from protobuf enum ONCE_PER_EVENT = 1; - */ - const ONCE_PER_EVENT = 1; - /** - * An Event instance is considered a Key Event at most once per session per - * user. - * - * Generated from protobuf enum ONCE_PER_SESSION = 2; - */ - const ONCE_PER_SESSION = 2; - - private static $valueToName = [ - self::COUNTING_METHOD_UNSPECIFIED => 'COUNTING_METHOD_UNSPECIFIED', - self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', - self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CountingMethod::class, \Google\Analytics\Admin\V1alpha\KeyEvent_CountingMethod::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent/DefaultValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent/DefaultValue.php deleted file mode 100644 index 1a1b0b7162bb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/KeyEvent/DefaultValue.php +++ /dev/null @@ -1,124 +0,0 @@ -google.analytics.admin.v1alpha.KeyEvent.DefaultValue - */ -class DefaultValue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * - * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $numeric_value = 0.0; - /** - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * - * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $currency_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $numeric_value - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * @type string $currency_code - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * - * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return float - */ - public function getNumericValue() - { - return $this->numeric_value; - } - - /** - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * - * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param float $var - * @return $this - */ - public function setNumericValue($var) - { - GPBUtil::checkDouble($var); - $this->numeric_value = $var; - - return $this; - } - - /** - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * - * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * - * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DefaultValue::class, \Google\Analytics\Admin\V1alpha\KeyEvent_DefaultValue::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php deleted file mode 100644 index 19dac5a16098..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalInitiatingProduct.php +++ /dev/null @@ -1,62 +0,0 @@ -google.analytics.admin.v1alpha.LinkProposalInitiatingProduct - */ -class LinkProposalInitiatingProduct -{ - /** - * Unspecified product. - * - * Generated from protobuf enum LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; - */ - const LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; - /** - * This proposal was created by a user from Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS = 1; - */ - const GOOGLE_ANALYTICS = 1; - /** - * This proposal was created by a user from a linked product (not Google - * Analytics). - * - * Generated from protobuf enum LINKED_PRODUCT = 2; - */ - const LINKED_PRODUCT = 2; - - private static $valueToName = [ - self::LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED => 'LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED', - self::GOOGLE_ANALYTICS => 'GOOGLE_ANALYTICS', - self::LINKED_PRODUCT => 'LINKED_PRODUCT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php deleted file mode 100644 index 5143339967af..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalState.php +++ /dev/null @@ -1,97 +0,0 @@ -google.analytics.admin.v1alpha.LinkProposalState - */ -class LinkProposalState -{ - /** - * Unspecified state - * - * Generated from protobuf enum LINK_PROPOSAL_STATE_UNSPECIFIED = 0; - */ - const LINK_PROPOSAL_STATE_UNSPECIFIED = 0; - /** - * This proposal is awaiting review from a Google Analytics user. This - * proposal will automatically expire after some time. - * - * Generated from protobuf enum AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; - */ - const AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; - /** - * This proposal is awaiting review from a user of a linked product. This - * proposal will automatically expire after some time. - * - * Generated from protobuf enum AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; - */ - const AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; - /** - * This proposal has been withdrawn by an admin on the initiating product. - * This proposal will be automatically deleted after some time. - * - * Generated from protobuf enum WITHDRAWN = 3; - */ - const WITHDRAWN = 3; - /** - * This proposal has been declined by an admin on the receiving product. This - * proposal will be automatically deleted after some time. - * - * Generated from protobuf enum DECLINED = 4; - */ - const DECLINED = 4; - /** - * This proposal expired due to lack of response from an admin on the - * receiving product. This proposal will be automatically deleted after some - * time. - * - * Generated from protobuf enum EXPIRED = 5; - */ - const EXPIRED = 5; - /** - * This proposal has become obsolete because a link was directly created to - * the same external product resource that this proposal specifies. This - * proposal will be automatically deleted after some time. - * - * Generated from protobuf enum OBSOLETE = 6; - */ - const OBSOLETE = 6; - - private static $valueToName = [ - self::LINK_PROPOSAL_STATE_UNSPECIFIED => 'LINK_PROPOSAL_STATE_UNSPECIFIED', - self::AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS => 'AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS', - self::AWAITING_REVIEW_FROM_LINKED_PRODUCT => 'AWAITING_REVIEW_FROM_LINKED_PRODUCT', - self::WITHDRAWN => 'WITHDRAWN', - self::DECLINED => 'DECLINED', - self::EXPIRED => 'EXPIRED', - self::OBSOLETE => 'OBSOLETE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php deleted file mode 100644 index 0aa42293c25a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/LinkProposalStatusDetails.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.admin.v1alpha.LinkProposalStatusDetails - */ -class LinkProposalStatusDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The source of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $link_proposal_initiating_product = 0; - /** - * Output only. The email address of the user that proposed this linkage. - * - * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requestor_email = ''; - /** - * Output only. The state of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $link_proposal_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $link_proposal_initiating_product - * Output only. The source of this proposal. - * @type string $requestor_email - * Output only. The email address of the user that proposed this linkage. - * @type int $link_proposal_state - * Output only. The state of this proposal. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The source of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLinkProposalInitiatingProduct() - { - return $this->link_proposal_initiating_product; - } - - /** - * Output only. The source of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLinkProposalInitiatingProduct($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalInitiatingProduct::class); - $this->link_proposal_initiating_product = $var; - - return $this; - } - - /** - * Output only. The email address of the user that proposed this linkage. - * - * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRequestorEmail() - { - return $this->requestor_email; - } - - /** - * Output only. The email address of the user that proposed this linkage. - * - * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRequestorEmail($var) - { - GPBUtil::checkString($var, True); - $this->requestor_email = $var; - - return $this; - } - - /** - * Output only. The state of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLinkProposalState() - { - return $this->link_proposal_state; - } - - /** - * Output only. The state of this proposal. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLinkProposalState($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalState::class); - $this->link_proposal_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php deleted file mode 100644 index 4e7426d13fb0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.analytics.admin.v1alpha.ListAccessBindingsRequest - */ -class ListAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Formats: - * - accounts/{account} - * - properties/{property} - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListAccessBindingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * @type int $page_size - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * @type string $page_token - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Formats: - * - accounts/{account} - * - properties/{property} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php deleted file mode 100644 index d311f7612c7e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccessBindingsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListAccessBindingsResponse - */ -class ListAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - private $access_bindings; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $access_bindings - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessBindings() - { - return $this->access_bindings; - } - - /** - * List of AccessBindings. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_bindings = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php deleted file mode 100644 index b58e30527c68..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountSummariesRequest - */ -class ListAccountSummariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php deleted file mode 100644 index 070ea0702270..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountSummariesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountSummariesResponse - */ -class ListAccountSummariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - private $account_summaries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $account_summaries - * Account summaries of all accounts the caller has access to. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccountSummaries() - { - return $this->account_summaries; - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccountSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccountSummary::class); - $this->account_summaries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php deleted file mode 100644 index 83b851ab5536..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountsRequest - */ -class ListAccountsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php deleted file mode 100644 index 3796927d5fc4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAccountsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAccountsResponse - */ -class ListAccountsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - private $accounts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\Account>|\Google\Protobuf\Internal\RepeatedField $accounts - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccounts() - { - return $this->accounts; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Account accounts = 1; - * @param array<\Google\Analytics\Admin\V1alpha\Account>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Account::class); - $this->accounts = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php deleted file mode 100644 index cffc9c3070b8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.admin.v1alpha.ListAdSenseLinksRequest - */ -class ListAdSenseLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListAdSenseLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token received from a previous `ListAdSenseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAdSenseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php deleted file mode 100644 index be6c763e5625..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAdSenseLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAdSenseLinksResponse - */ -class ListAdSenseLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of AdSenseLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - private $adsense_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AdSenseLink>|\Google\Protobuf\Internal\RepeatedField $adsense_links - * List of AdSenseLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of AdSenseLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdsenseLinks() - { - return $this->adsense_links; - } - - /** - * List of AdSenseLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AdSenseLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdsenseLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AdSenseLink::class); - $this->adsense_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php deleted file mode 100644 index f15cbf657417..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1alpha.ListAudiencesRequest - */ -class ListAudiencesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListAudiencesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudiences` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php deleted file mode 100644 index d20f7ee05b42..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListAudiencesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListAudiencesResponse - */ -class ListAudiencesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Audiences. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - private $audiences; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\Audience>|\Google\Protobuf\Internal\RepeatedField $audiences - * List of Audiences. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of Audiences. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * List of Audiences. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - * @param array<\Google\Analytics\Admin\V1alpha\Audience>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudiences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->audiences = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php deleted file mode 100644 index a99efe75c653..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.analytics.admin.v1alpha.ListBigQueryLinksRequest - */ -class ListBigQueryLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListBigQueryLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php deleted file mode 100644 index cf3486ac78cd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListBigQueryLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListBigQueryLinksResponse - */ -class ListBigQueryLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of BigQueryLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - private $bigquery_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\BigQueryLink>|\Google\Protobuf\Internal\RepeatedField $bigquery_links - * List of BigQueryLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of BigQueryLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBigqueryLinks() - { - return $this->bigquery_links; - } - - /** - * List of BigQueryLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\BigQueryLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBigqueryLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); - $this->bigquery_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCalculatedMetricsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCalculatedMetricsRequest.php deleted file mode 100644 index ba47706ca733..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCalculatedMetricsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1alpha.ListCalculatedMetricsRequest - */ -class ListCalculatedMetricsRequest 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 = ''; - /** - * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCalculatedMetrics` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCalculatedMetrics` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListCalculatedMetricsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * Optional. 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 - * Optional. A page token, received from a previous `ListCalculatedMetrics` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCalculatedMetrics` - * 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; - } - - /** - * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. 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 [(.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 `ListCalculatedMetrics` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCalculatedMetrics` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCalculatedMetrics` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCalculatedMetrics` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCalculatedMetricsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCalculatedMetricsResponse.php deleted file mode 100644 index f12cb7a1a4d7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCalculatedMetricsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListCalculatedMetricsResponse - */ -class ListCalculatedMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CalculatedMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CalculatedMetric calculated_metrics = 1; - */ - private $calculated_metrics; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\CalculatedMetric>|\Google\Protobuf\Internal\RepeatedField $calculated_metrics - * List of CalculatedMetrics. - * @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 CalculatedMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CalculatedMetric calculated_metrics = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCalculatedMetrics() - { - return $this->calculated_metrics; - } - - /** - * List of CalculatedMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CalculatedMetric calculated_metrics = 1; - * @param array<\Google\Analytics\Admin\V1alpha\CalculatedMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCalculatedMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CalculatedMetric::class); - $this->calculated_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/ListChannelGroupsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php deleted file mode 100644 index 868c9f2c522a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.analytics.admin.v1alpha.ListChannelGroupsRequest - */ -class ListChannelGroupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListChannelGroupsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php deleted file mode 100644 index b92ffc9b5ad8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListChannelGroupsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListChannelGroupsResponse - */ -class ListChannelGroupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - private $channel_groups; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ChannelGroup>|\Google\Protobuf\Internal\RepeatedField $channel_groups - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannelGroups() - { - return $this->channel_groups; - } - - /** - * List of ChannelGroup. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ChannelGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannelGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->channel_groups = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php deleted file mode 100644 index e86202e1d53e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsRequest.php +++ /dev/null @@ -1,79 +0,0 @@ -google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest - */ -class ListConnectedSiteTagsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php deleted file mode 100644 index 3d0778010cbe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConnectedSiteTagsResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse - */ -class ListConnectedSiteTagsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - private $connected_site_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ConnectedSiteTag>|\Google\Protobuf\Internal\RepeatedField $connected_site_tags - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConnectedSiteTags() - { - return $this->connected_site_tags; - } - - /** - * The site tags for the Universal Analytics property. A maximum of 20 - * connected site tags will be returned. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ConnectedSiteTag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConnectedSiteTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConnectedSiteTag::class); - $this->connected_site_tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php deleted file mode 100644 index ad032627d8cd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsRequest.php +++ /dev/null @@ -1,174 +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 = ''; - - /** - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListConversionEventsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent property. - * Example: 'properties/123' - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php deleted file mode 100644 index 4965a76b1303..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListConversionEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListConversionEventsResponse - */ -class ListConversionEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - private $conversion_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $conversion_events - * The requested conversion events - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConversionEvents() - { - return $this->conversion_events; - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConversionEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); - $this->conversion_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php deleted file mode 100644 index dcfa4039da29..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsRequest.php +++ /dev/null @@ -1,169 +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 = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListCustomDimensionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php deleted file mode 100644 index a7f3bf197e86..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomDimensionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListCustomDimensionsResponse - */ -class ListCustomDimensionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - private $custom_dimensions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $custom_dimensions - * List of CustomDimensions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomDimensions() - { - return $this->custom_dimensions; - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - * @param array<\Google\Analytics\Admin\V1alpha\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CustomDimension::class); - $this->custom_dimensions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php deleted file mode 100644 index def5bafc6997..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsRequest.php +++ /dev/null @@ -1,169 +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 = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListCustomMetricsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php deleted file mode 100644 index ecaaa9829a28..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListCustomMetricsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListCustomMetricsResponse - */ -class ListCustomMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - private $custom_metrics; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $custom_metrics - * List of CustomMetrics. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomMetrics() - { - return $this->custom_metrics; - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - * @param array<\Google\Analytics\Admin\V1alpha\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->custom_metrics = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php deleted file mode 100644 index c86cfe9b12ff..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1alpha.ListDataStreamsRequest - */ -class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListDataStreamsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php deleted file mode 100644 index c3e6f6522afb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDataStreamsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListDataStreamsResponse - */ -class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - private $data_streams; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\DataStream>|\Google\Protobuf\Internal\RepeatedField $data_streams - * List of DataStreams. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStreams() - { - return $this->data_streams; - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - * @param array<\Google\Analytics\Admin\V1alpha\DataStream>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->data_streams = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php deleted file mode 100644 index b9ceea36de86..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest - */ -class ListDisplayVideo360AdvertiserLinkProposalsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php deleted file mode 100644 index 8d9711d2a2c3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse - */ -class ListDisplayVideo360AdvertiserLinkProposalsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DisplayVideo360AdvertiserLinkProposals. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - private $display_video_360_advertiser_link_proposals; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal>|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_link_proposals - * List of DisplayVideo360AdvertiserLinkProposals. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DisplayVideo360AdvertiserLinkProposals. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisplayVideo360AdvertiserLinkProposals() - { - return $this->display_video_360_advertiser_link_proposals; - } - - /** - * List of DisplayVideo360AdvertiserLinkProposals. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - * @param array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinkProposals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class); - $this->display_video_360_advertiser_link_proposals = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php deleted file mode 100644 index 86ff11e2dbfb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest - */ -class ListDisplayVideo360AdvertiserLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php deleted file mode 100644 index 2bfab58804dc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse - */ -class ListDisplayVideo360AdvertiserLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DisplayVideo360AdvertiserLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - private $display_video_360_advertiser_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink>|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_links - * List of DisplayVideo360AdvertiserLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DisplayVideo360AdvertiserLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisplayVideo360AdvertiserLinks() - { - return $this->display_video_360_advertiser_links; - } - - /** - * List of DisplayVideo360AdvertiserLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php deleted file mode 100644 index 4c5387a45a89..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1alpha.ListEventCreateRulesRequest - */ -class ListEventCreateRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListEventCreateRulesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/123/dataStreams/456 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListEventCreateRules` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventCreateRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php deleted file mode 100644 index ede402275d7b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventCreateRulesResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListEventCreateRulesResponse - */ -class ListEventCreateRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - private $event_create_rules; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\EventCreateRule>|\Google\Protobuf\Internal\RepeatedField $event_create_rules - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventCreateRules() - { - return $this->event_create_rules; - } - - /** - * List of EventCreateRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - * @param array<\Google\Analytics\Admin\V1alpha\EventCreateRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventCreateRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->event_create_rules = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventEditRulesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventEditRulesRequest.php deleted file mode 100644 index 8583c4b7267d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventEditRulesRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1alpha.ListEventEditRulesRequest - */ -class ListEventEditRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListEventEditRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventEditRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListEventEditRulesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/123/dataStreams/456 - * @type int $page_size - * Optional. 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 - * Optional. A page token, received from a previous `ListEventEditRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventEditRules` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. 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 [(.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 `ListEventEditRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventEditRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListEventEditRules` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListEventEditRules` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventEditRulesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventEditRulesResponse.php deleted file mode 100644 index 8732259d5aa3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListEventEditRulesResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListEventEditRulesResponse - */ -class ListEventEditRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of EventEditRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventEditRule event_edit_rules = 1; - */ - private $event_edit_rules; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\EventEditRule>|\Google\Protobuf\Internal\RepeatedField $event_edit_rules - * List of EventEditRules. 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 EventEditRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventEditRule event_edit_rules = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventEditRules() - { - return $this->event_edit_rules; - } - - /** - * List of EventEditRules. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventEditRule event_edit_rules = 1; - * @param array<\Google\Analytics\Admin\V1alpha\EventEditRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventEditRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventEditRule::class); - $this->event_edit_rules = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php deleted file mode 100644 index 6d04f0256adc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1alpha.ListExpandedDataSetsRequest - */ -class ListExpandedDataSetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListExpandedDataSetsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php deleted file mode 100644 index 08667102b0c4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListExpandedDataSetsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ListExpandedDataSetsResponse - */ -class ListExpandedDataSetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - private $expanded_data_sets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ExpandedDataSet>|\Google\Protobuf\Internal\RepeatedField $expanded_data_sets - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpandedDataSets() - { - return $this->expanded_data_sets; - } - - /** - * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - * order. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ExpandedDataSet>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpandedDataSets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->expanded_data_sets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php deleted file mode 100644 index a88d2402151d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.admin.v1alpha.ListFirebaseLinksRequest - */ -class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php deleted file mode 100644 index 3a0d33be83fb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListFirebaseLinksResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1alpha.ListFirebaseLinksResponse - */ -class ListFirebaseLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - private $firebase_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $firebase_links - * List of FirebaseLinks. This will have at most one value. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFirebaseLinks() - { - return $this->firebase_links; - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFirebaseLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\FirebaseLink::class); - $this->firebase_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php deleted file mode 100644 index 89c94ad77a71..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksRequest.php +++ /dev/null @@ -1,169 +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 = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php deleted file mode 100644 index c3d31c7fdb0c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListGoogleAdsLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse - */ -class ListGoogleAdsLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - private $google_ads_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $google_ads_links - * List of GoogleAdsLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGoogleAdsLinks() - { - return $this->google_ads_links; - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGoogleAdsLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\GoogleAdsLink::class); - $this->google_ads_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListKeyEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListKeyEventsRequest.php deleted file mode 100644 index ec7a040779e7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListKeyEventsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.analytics.admin.v1alpha.ListKeyEventsRequest - */ -class ListKeyEventsRequest 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 `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListKeyEventsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent property. - * Example: 'properties/123' - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * 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 `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * 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 `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * 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/ListKeyEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListKeyEventsResponse.php deleted file mode 100644 index 71524eb0f029..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListKeyEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListKeyEventsResponse - */ -class ListKeyEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested Key Events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.KeyEvent key_events = 1; - */ - private $key_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\KeyEvent>|\Google\Protobuf\Internal\RepeatedField $key_events - * The requested Key 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 Key Events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.KeyEvent key_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeyEvents() - { - return $this->key_events; - } - - /** - * The requested Key Events - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.KeyEvent key_events = 1; - * @param array<\Google\Analytics\Admin\V1alpha\KeyEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeyEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\KeyEvent::class); - $this->key_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/ListMeasurementProtocolSecretsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php deleted file mode 100644 index 76a06b8bd3d2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest - */ -class ListMeasurementProtocolSecretsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * @type string $page_token - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php deleted file mode 100644 index 5cc554ad270c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListMeasurementProtocolSecretsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse - */ -class ListMeasurementProtocolSecretsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - private $measurement_protocol_secrets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $measurement_protocol_secrets - * A list of secrets for the parent stream specified in the request. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMeasurementProtocolSecrets() - { - return $this->measurement_protocol_secrets; - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @param array<\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMeasurementProtocolSecrets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->measurement_protocol_secrets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php deleted file mode 100644 index 4b1b37feb740..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1alpha.ListPropertiesRequest - */ -class ListPropertiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php deleted file mode 100644 index ecfb989f75b6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListPropertiesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListPropertiesResponse - */ -class ListPropertiesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - private $properties; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\Property>|\Google\Protobuf\Internal\RepeatedField $properties - * Results that matched the filter criteria and were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.Property properties = 1; - * @param array<\Google\Analytics\Admin\V1alpha\Property>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\Property::class); - $this->properties = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php deleted file mode 100644 index f5add884aba6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksRequest.php +++ /dev/null @@ -1,182 +0,0 @@ -google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest - */ -class ListRollupPropertySourceLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the roll-up property to list roll-up property source - * links under. Format: properties/{property_id} Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListRollupPropertySourceLinks` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListRollupPropertySourceLinks` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the roll-up property to list roll-up property source - * links under. Format: properties/{property_id} Example: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the roll-up property to list roll-up property source - * links under. Format: properties/{property_id} Example: properties/1234 - * @type int $page_size - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * Optional. A page token, received from a previous - * `ListRollupPropertySourceLinks` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListRollupPropertySourceLinks` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the roll-up property to list roll-up property source - * links under. Format: properties/{property_id} Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the roll-up property to list roll-up property source - * links under. Format: properties/{property_id} Example: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListRollupPropertySourceLinks` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListRollupPropertySourceLinks` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListRollupPropertySourceLinks` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListRollupPropertySourceLinks` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php deleted file mode 100644 index f66db6affbd0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListRollupPropertySourceLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse - */ -class ListRollupPropertySourceLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of RollupPropertySourceLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - private $rollup_property_source_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $rollup_property_source_links - * List of RollupPropertySourceLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of RollupPropertySourceLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRollupPropertySourceLinks() - { - return $this->rollup_property_source_links; - } - - /** - * List of RollupPropertySourceLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRollupPropertySourceLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); - $this->rollup_property_source_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php deleted file mode 100644 index 1024b2f84a4c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php +++ /dev/null @@ -1,192 +0,0 @@ -google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest - */ -class ListSKAdNetworkConversionValueSchemasRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous - * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * `ListSKAdNetworkConversionValueSchema` must match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php deleted file mode 100644 index f5b74fde223e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSKAdNetworkConversionValueSchemasResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse - */ -class ListSKAdNetworkConversionValueSchemasResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - private $skadnetwork_conversion_value_schemas; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema>|\Google\Protobuf\Internal\RepeatedField $skadnetwork_conversion_value_schemas - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkadnetworkConversionValueSchemas() - { - return $this->skadnetwork_conversion_value_schemas; - } - - /** - * List of SKAdNetworkConversionValueSchemas. This will have at most one - * value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - * @param array<\Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkadnetworkConversionValueSchemas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->skadnetwork_conversion_value_schemas = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one - * SKAdNetworkConversionValueSchema per dataStream, so this will never be - * populated. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php deleted file mode 100644 index da971d20a08d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.analytics.admin.v1alpha.ListSearchAds360LinksRequest - */ -class ListSearchAds360LinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListSearchAds360LinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php deleted file mode 100644 index 7a95c6bd2faa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSearchAds360LinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListSearchAds360LinksResponse - */ -class ListSearchAds360LinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of SearchAds360Links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - private $search_ads_360_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\SearchAds360Link>|\Google\Protobuf\Internal\RepeatedField $search_ads_360_links - * List of SearchAds360Links. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of SearchAds360Links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSearchAds360Links() - { - return $this->search_ads_360_links; - } - - /** - * List of SearchAds360Links. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - * @param array<\Google\Analytics\Admin\V1alpha\SearchAds360Link>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSearchAds360Links($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->search_ads_360_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php deleted file mode 100644 index a853b8804a40..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest - */ -class ListSubpropertyEventFiltersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the ordinary property. - * Format: properties/property_id - * Example: properties/123 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. If unspecified, - * at most 50 resources will be returned. The maximum value is 200; (higher - * values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `ListSubpropertyEventFilters` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Resource name of the ordinary property. - * Format: properties/property_id - * Example: properties/123 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1alpha\ListSubpropertyEventFiltersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the ordinary property. - * Format: properties/property_id - * Example: properties/123 - * @type int $page_size - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. If unspecified, - * at most 50 resources will be returned. The maximum value is 200; (higher - * values will be coerced to the maximum) - * @type string $page_token - * Optional. A page token, received from a previous - * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `ListSubpropertyEventFilters` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the ordinary property. - * Format: properties/property_id - * Example: properties/123 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the ordinary property. - * Format: properties/property_id - * Example: properties/123 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. If unspecified, - * at most 50 resources will be returned. The maximum value is 200; (higher - * values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. If unspecified, - * at most 50 resources will be returned. The maximum value is 200; (higher - * values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `ListSubpropertyEventFilters` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `ListSubpropertyEventFilters` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php deleted file mode 100644 index 3ee9fd68a4f3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ListSubpropertyEventFiltersResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse - */ -class ListSubpropertyEventFiltersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of subproperty event filters. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - private $subproperty_event_filters; - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilter>|\Google\Protobuf\Internal\RepeatedField $subproperty_event_filters - * List of subproperty event filters. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of subproperty event filters. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubpropertyEventFilters() - { - return $this->subproperty_event_filters; - } - - /** - * List of subproperty event filters. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubpropertyEventFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); - $this->subproperty_event_filters = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php deleted file mode 100644 index 03a1db1ac1e2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition.php +++ /dev/null @@ -1,202 +0,0 @@ -google.analytics.admin.v1alpha.MatchingCondition - */ -class MatchingCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = ''; - /** - * Required. The type of comparison to be applied to the value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $comparison_type = 0; - /** - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * - * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * - * Generated from protobuf field bool negated = 4; - */ - protected $negated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * @type int $comparison_type - * Required. The type of comparison to be applied to the value. - * @type string $value - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * @type bool $negated - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Required. The name of the field that is compared against for the condition. - * If 'event_name' is specified this condition will apply to the name of the - * event. Otherwise the condition will apply to a parameter with the - * specified name. - * This value cannot contain spaces. - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * Required. The type of comparison to be applied to the value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getComparisonType() - { - return $this->comparison_type; - } - - /** - * Required. The type of comparison to be applied to the value. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setComparisonType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\MatchingCondition\ComparisonType::class); - $this->comparison_type = $var; - - return $this; - } - - /** - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * - * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The value being compared against for this condition. The runtime - * implementation may perform type coercion of this value to evaluate this - * condition based on the type of the parameter value. - * - * Generated from protobuf field string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * - * Generated from protobuf field bool negated = 4; - * @return bool - */ - public function getNegated() - { - return $this->negated; - } - - /** - * Whether or not the result of the comparison should be negated. For example, - * if `negated` is true, then 'equals' comparisons would function as 'not - * equals'. - * - * Generated from protobuf field bool negated = 4; - * @param bool $var - * @return $this - */ - public function setNegated($var) - { - GPBUtil::checkBool($var); - $this->negated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php deleted file mode 100644 index 98caa42ead0a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MatchingCondition/ComparisonType.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1alpha.MatchingCondition.ComparisonType - */ -class ComparisonType -{ - /** - * Unknown - * - * Generated from protobuf enum COMPARISON_TYPE_UNSPECIFIED = 0; - */ - const COMPARISON_TYPE_UNSPECIFIED = 0; - /** - * Equals, case sensitive - * - * Generated from protobuf enum EQUALS = 1; - */ - const EQUALS = 1; - /** - * Equals, case insensitive - * - * Generated from protobuf enum EQUALS_CASE_INSENSITIVE = 2; - */ - const EQUALS_CASE_INSENSITIVE = 2; - /** - * Contains, case sensitive - * - * Generated from protobuf enum CONTAINS = 3; - */ - const CONTAINS = 3; - /** - * Contains, case insensitive - * - * Generated from protobuf enum CONTAINS_CASE_INSENSITIVE = 4; - */ - const CONTAINS_CASE_INSENSITIVE = 4; - /** - * Starts with, case sensitive - * - * Generated from protobuf enum STARTS_WITH = 5; - */ - const STARTS_WITH = 5; - /** - * Starts with, case insensitive - * - * Generated from protobuf enum STARTS_WITH_CASE_INSENSITIVE = 6; - */ - const STARTS_WITH_CASE_INSENSITIVE = 6; - /** - * Ends with, case sensitive - * - * Generated from protobuf enum ENDS_WITH = 7; - */ - const ENDS_WITH = 7; - /** - * Ends with, case insensitive - * - * Generated from protobuf enum ENDS_WITH_CASE_INSENSITIVE = 8; - */ - const ENDS_WITH_CASE_INSENSITIVE = 8; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 9; - */ - const GREATER_THAN = 9; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 10; - */ - const GREATER_THAN_OR_EQUAL = 10; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 11; - */ - const LESS_THAN = 11; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 12; - */ - const LESS_THAN_OR_EQUAL = 12; - /** - * regular expression. Only supported for web streams. - * - * Generated from protobuf enum REGULAR_EXPRESSION = 13; - */ - const REGULAR_EXPRESSION = 13; - /** - * regular expression, case insensitive. Only supported for web streams. - * - * Generated from protobuf enum REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; - */ - const REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; - - private static $valueToName = [ - self::COMPARISON_TYPE_UNSPECIFIED => 'COMPARISON_TYPE_UNSPECIFIED', - self::EQUALS => 'EQUALS', - self::EQUALS_CASE_INSENSITIVE => 'EQUALS_CASE_INSENSITIVE', - self::CONTAINS => 'CONTAINS', - self::CONTAINS_CASE_INSENSITIVE => 'CONTAINS_CASE_INSENSITIVE', - self::STARTS_WITH => 'STARTS_WITH', - self::STARTS_WITH_CASE_INSENSITIVE => 'STARTS_WITH_CASE_INSENSITIVE', - self::ENDS_WITH => 'ENDS_WITH', - self::ENDS_WITH_CASE_INSENSITIVE => 'ENDS_WITH_CASE_INSENSITIVE', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::REGULAR_EXPRESSION => 'REGULAR_EXPRESSION', - self::REGULAR_EXPRESSION_CASE_INSENSITIVE => 'REGULAR_EXPRESSION_CASE_INSENSITIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ComparisonType::class, \Google\Analytics\Admin\V1alpha\MatchingCondition_ComparisonType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php deleted file mode 100644 index 8c2a728f23d4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/MeasurementProtocolSecret.php +++ /dev/null @@ -1,151 +0,0 @@ -google.analytics.admin.v1alpha.MeasurementProtocolSecret - */ -class MeasurementProtocolSecret extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $secret_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @type string $display_name - * Required. Human-readable display name for this secret. - * @type string $secret_value - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSecretValue() - { - return $this->secret_value; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSecretValue($var) - { - GPBUtil::checkString($var, True); - $this->secret_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php deleted file mode 100644 index b6c9c747fd14..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/NumericValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.admin.v1alpha.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value - * @type float $double_value - * Double value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php deleted file mode 100644 index 3cdcaa9dcc3f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ParameterMutation.php +++ /dev/null @@ -1,145 +0,0 @@ -google.analytics.admin.v1alpha.ParameterMutation - */ -class ParameterMutation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * - * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parameter = ''; - /** - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * - * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parameter_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parameter - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * @type string $parameter_value - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * - * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParameter() - { - return $this->parameter; - } - - /** - * Required. The name of the parameter to mutate. - * This value must: - * * be less than 40 characters. - * * be unique across across all mutations within the rule - * * consist only of letters, digits or _ (underscores) - * For event edit rules, the name may also be set to 'event_name' to modify - * the event_name in place. - * - * Generated from protobuf field string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParameter($var) - { - GPBUtil::checkString($var, True); - $this->parameter = $var; - - return $this; - } - - /** - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * - * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParameterValue() - { - return $this->parameter_value; - } - - /** - * Required. The value mutation to perform. - * * Must be less than 100 characters. - * * To specify a constant value for the param, use the value's string. - * * To copy value from another parameter, use syntax like - * "[[other_parameter]]" For more details, see this [help center - * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - * - * Generated from protobuf field string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParameterValue($var) - { - GPBUtil::checkString($var, True); - $this->parameter_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php deleted file mode 100644 index 2dabbb8fd24d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PostbackWindow.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.admin.v1alpha.PostbackWindow - */ -class PostbackWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; - */ - private $conversion_values; - /** - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * - * Generated from protobuf field bool postback_window_settings_enabled = 2; - */ - protected $postback_window_settings_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ConversionValues>|\Google\Protobuf\Internal\RepeatedField $conversion_values - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * @type bool $postback_window_settings_enabled - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConversionValues() - { - return $this->conversion_values; - } - - /** - * Ordering of the repeated field will be used to prioritize the conversion - * value settings. Lower indexed entries are prioritized higher. The first - * conversion value setting that evaluates to true will be selected. It must - * have at least one entry if enable_postback_window_settings is set to - * true. It can have maximum of 128 entries. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ConversionValues>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConversionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ConversionValues::class); - $this->conversion_values = $arr; - - return $this; - } - - /** - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * - * Generated from protobuf field bool postback_window_settings_enabled = 2; - * @return bool - */ - public function getPostbackWindowSettingsEnabled() - { - return $this->postback_window_settings_enabled; - } - - /** - * If enable_postback_window_settings is true, conversion_values - * must be populated and will be used for determining when and how to set the - * Conversion Value on a client device and exporting schema to linked Ads - * accounts. If false, the settings are not used, but are retained in case - * they may be used in the future. This must always be true for - * postback_window_one. - * - * Generated from protobuf field bool postback_window_settings_enabled = 2; - * @param bool $var - * @return $this - */ - public function setPostbackWindowSettingsEnabled($var) - { - GPBUtil::checkBool($var); - $this->postback_window_settings_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php deleted file mode 100644 index f1d7004f0129..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/Property.php +++ /dev/null @@ -1,607 +0,0 @@ -google.analytics.admin.v1alpha.Property - */ -class Property extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $property_type = 0; - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parent = ''; - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - */ - protected $industry_category = 0; - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_zone = ''; - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - */ - protected $currency_code = ''; - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_level = 0; - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $account = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * @type int $property_type - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the entity was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when entity payload fields were last updated. - * @type string $parent - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * @type string $display_name - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * @type int $industry_category - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * @type string $time_zone - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * @type string $currency_code - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * @type int $service_level - * Output only. The Google Analytics service level that applies to this - * property. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * @type string $account - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return int - */ - public function getIndustryCategory() - { - return $this->industry_category; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @param int $var - * @return $this - */ - public function setIndustryCategory($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\IndustryCategory::class); - $this->industry_category = $var; - - return $this; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getServiceLevel() - { - return $this->service_level; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setServiceLevel($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ServiceLevel::class); - $this->service_level = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php deleted file mode 100644 index 05311403f27a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertySummary.php +++ /dev/null @@ -1,189 +0,0 @@ -google.analytics.admin.v1alpha.PropertySummary - */ -class PropertySummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; - */ - protected $property_type = 0; - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * @type string $display_name - * Display name for the property referred to in this property summary. - * @type int $property_type - * The property's property type. - * @type string $parent - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php deleted file mode 100644 index 0b02428ed369..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/PropertyType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1alpha.PropertyType - */ -class PropertyType -{ - /** - * Unknown or unspecified property type - * - * Generated from protobuf enum PROPERTY_TYPE_UNSPECIFIED = 0; - */ - const PROPERTY_TYPE_UNSPECIFIED = 0; - /** - * Ordinary GA4 property - * - * Generated from protobuf enum PROPERTY_TYPE_ORDINARY = 1; - */ - const PROPERTY_TYPE_ORDINARY = 1; - /** - * GA4 subproperty - * - * Generated from protobuf enum PROPERTY_TYPE_SUBPROPERTY = 2; - */ - const PROPERTY_TYPE_SUBPROPERTY = 2; - /** - * GA4 rollup property - * - * Generated from protobuf enum PROPERTY_TYPE_ROLLUP = 3; - */ - const PROPERTY_TYPE_ROLLUP = 3; - - private static $valueToName = [ - self::PROPERTY_TYPE_UNSPECIFIED => 'PROPERTY_TYPE_UNSPECIFIED', - self::PROPERTY_TYPE_ORDINARY => 'PROPERTY_TYPE_ORDINARY', - self::PROPERTY_TYPE_SUBPROPERTY => 'PROPERTY_TYPE_SUBPROPERTY', - self::PROPERTY_TYPE_ROLLUP => 'PROPERTY_TYPE_ROLLUP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php deleted file mode 100644 index f1741f8e243e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1alpha.ProvisionAccountTicketRequest - */ -class ProvisionAccountTicketRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - */ - protected $account = null; - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - */ - protected $redirect_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Account $account - * The account to create. - * @type string $redirect_uri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @return \Google\Analytics\Admin\V1alpha\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1; - * @param \Google\Analytics\Admin\V1alpha\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @return string - */ - public function getRedirectUri() - { - return $this->redirect_uri; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @param string $var - * @return $this - */ - public function setRedirectUri($var) - { - GPBUtil::checkString($var, True); - $this->redirect_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php deleted file mode 100644 index 22408ea9bcb1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionAccountTicketResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.ProvisionAccountTicketResponse - */ -class ProvisionAccountTicketResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - */ - protected $account_ticket_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_ticket_id - * The param to be passed in the ToS link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @return string - */ - public function getAccountTicketId() - { - return $this->account_ticket_id; - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @param string $var - * @return $this - */ - public function setAccountTicketId($var) - { - GPBUtil::checkString($var, True); - $this->account_ticket_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionSubpropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionSubpropertyRequest.php deleted file mode 100644 index 6602ec17d606..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionSubpropertyRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.ProvisionSubpropertyRequest - */ -class ProvisionSubpropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The subproperty to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subproperty = null; - /** - * Optional. The subproperty event filter to create on an ordinary property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $subproperty_event_filter = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $subproperty - * Required. The subproperty to create. - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter - * Optional. The subproperty event filter to create on an ordinary property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The subproperty to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getSubproperty() - { - return $this->subproperty; - } - - public function hasSubproperty() - { - return isset($this->subproperty); - } - - public function clearSubproperty() - { - unset($this->subproperty); - } - - /** - * Required. The subproperty to create. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setSubproperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->subproperty = $var; - - return $this; - } - - /** - * Optional. The subproperty event filter to create on an ordinary property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null - */ - public function getSubpropertyEventFilter() - { - return $this->subproperty_event_filter; - } - - public function hasSubpropertyEventFilter() - { - return isset($this->subproperty_event_filter); - } - - public function clearSubpropertyEventFilter() - { - unset($this->subproperty_event_filter); - } - - /** - * Optional. The subproperty event filter to create on an ordinary property. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var - * @return $this - */ - public function setSubpropertyEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); - $this->subproperty_event_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionSubpropertyResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionSubpropertyResponse.php deleted file mode 100644 index bda7be04665e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ProvisionSubpropertyResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.ProvisionSubpropertyResponse - */ -class ProvisionSubpropertyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The created subproperty. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - protected $subproperty = null; - /** - * The created subproperty event filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - protected $subproperty_event_filter = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $subproperty - * The created subproperty. - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter - * The created subproperty event filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The created subproperty. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getSubproperty() - { - return $this->subproperty; - } - - public function hasSubproperty() - { - return isset($this->subproperty); - } - - public function clearSubproperty() - { - unset($this->subproperty); - } - - /** - * The created subproperty. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setSubproperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->subproperty = $var; - - return $this; - } - - /** - * The created subproperty event filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null - */ - public function getSubpropertyEventFilter() - { - return $this->subproperty_event_filter; - } - - public function hasSubpropertyEventFilter() - { - return isset($this->subproperty_event_filter); - } - - public function clearSubpropertyEventFilter() - { - unset($this->subproperty_event_filter); - } - - /** - * The created subproperty event filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var - * @return $this - */ - public function setSubpropertyEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); - $this->subproperty_event_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ReorderEventEditRulesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ReorderEventEditRulesRequest.php deleted file mode 100644 index ac1ffe9ac729..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ReorderEventEditRulesRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1alpha.ReorderEventEditRulesRequest - */ -class ReorderEventEditRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. EventEditRule resource names for the specified data stream, in - * the needed processing order. All EventEditRules for the stream must be - * present in the list. - * - * Generated from protobuf field repeated string event_edit_rules = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $event_edit_rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/123/dataStreams/456 - * @type array|\Google\Protobuf\Internal\RepeatedField $event_edit_rules - * Required. EventEditRule resource names for the specified data stream, in - * the needed processing order. All EventEditRules for the stream must be - * present in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/123/dataStreams/456 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. EventEditRule resource names for the specified data stream, in - * the needed processing order. All EventEditRules for the stream must be - * present in the list. - * - * Generated from protobuf field repeated string event_edit_rules = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventEditRules() - { - return $this->event_edit_rules; - } - - /** - * Required. EventEditRule resource names for the specified data stream, in - * the needed processing order. All EventEditRules for the stream must be - * present in the list. - * - * Generated from protobuf field repeated string event_edit_rules = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventEditRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->event_edit_rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php deleted file mode 100644 index e947593952ba..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RollupPropertySourceLink.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1alpha.RollupPropertySourceLink - */ -class RollupPropertySourceLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this RollupPropertySourceLink. - * Format: - * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' - * Format: 'properties/123/rollupPropertySourceLinks/456' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Resource name of the source property. - * Format: properties/{property_id} - * Example: "properties/789" - * - * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $source_property = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this RollupPropertySourceLink. - * Format: - * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' - * Format: 'properties/123/rollupPropertySourceLinks/456' - * @type string $source_property - * Immutable. Resource name of the source property. - * Format: properties/{property_id} - * Example: "properties/789" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this RollupPropertySourceLink. - * Format: - * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' - * Format: 'properties/123/rollupPropertySourceLinks/456' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this RollupPropertySourceLink. - * Format: - * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' - * Format: 'properties/123/rollupPropertySourceLinks/456' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Resource name of the source property. - * Format: properties/{property_id} - * Example: "properties/789" - * - * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getSourceProperty() - { - return $this->source_property; - } - - /** - * Immutable. Resource name of the source property. - * Format: properties/{property_id} - * Example: "properties/789" - * - * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setSourceProperty($var) - { - GPBUtil::checkString($var, True); - $this->source_property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php deleted file mode 100644 index 63807d0a47dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportRequest.php +++ /dev/null @@ -1,679 +0,0 @@ -google.analytics.admin.v1alpha.RunAccessReportRequest - */ -class RunAccessReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - */ - protected $entity = ''; - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - private $metrics; - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - protected $dimension_filter = null; - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - protected $metric_filter = null; - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - */ - protected $offset = 0; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - */ - protected $limit = 0; - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - */ - protected $time_zone = ''; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - private $order_bys; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - */ - protected $return_entity_quota = false; - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $include_all_users = false; - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expand_groups = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type array<\Google\Analytics\Admin\V1alpha\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type array<\Google\Analytics\Admin\V1alpha\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type array<\Google\Analytics\Admin\V1alpha\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $dimension_filter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type \Google\Analytics\Admin\V1alpha\AccessFilterExpression $metric_filter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $time_zone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type array<\Google\Analytics\Admin\V1alpha\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type bool $return_entity_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * @type bool $include_all_users - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * @type bool $expand_groups - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @return string - */ - public function getEntity() - { - return $this->entity; - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->entity = $var; - - return $this; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - * @param array<\Google\Analytics\Admin\V1alpha\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return \Google\Analytics\Admin\V1alpha\AccessFilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @param \Google\Analytics\Admin\V1alpha\AccessFilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessFilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - * @param array<\Google\Analytics\Admin\V1alpha\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessOrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @return bool - */ - public function getReturnEntityQuota() - { - return $this->return_entity_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @param bool $var - * @return $this - */ - public function setReturnEntityQuota($var) - { - GPBUtil::checkBool($var); - $this->return_entity_quota = $var; - - return $this; - } - - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIncludeAllUsers() - { - return $this->include_all_users; - } - - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIncludeAllUsers($var) - { - GPBUtil::checkBool($var); - $this->include_all_users = $var; - - return $this; - } - - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExpandGroups() - { - return $this->expand_groups; - } - - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExpandGroups($var) - { - GPBUtil::checkBool($var); - $this->expand_groups = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php deleted file mode 100644 index 1817890154d9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/RunAccessReportResponse.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1alpha.RunAccessReportResponse - */ -class RunAccessReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - private $rows; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - */ - protected $row_count = 0; - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - protected $quota = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * @type array<\Google\Analytics\Admin\V1alpha\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * @type array<\Google\Analytics\Admin\V1alpha\AccessRow>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type \Google\Analytics\Admin\V1alpha\AccessQuota $quota - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Admin\V1alpha\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessDimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Admin\V1alpha\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessMetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - * @param array<\Google\Analytics\Admin\V1alpha\AccessRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\AccessRow::class); - $this->rows = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return \Google\Analytics\Admin\V1alpha\AccessQuota|null - */ - public function getQuota() - { - return $this->quota; - } - - public function hasQuota() - { - return isset($this->quota); - } - - public function clearQuota() - { - unset($this->quota); - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @param \Google\Analytics\Admin\V1alpha\AccessQuota $var - * @return $this - */ - public function setQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessQuota::class); - $this->quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php deleted file mode 100644 index 23b7b418dd4d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SKAdNetworkConversionValueSchema.php +++ /dev/null @@ -1,309 +0,0 @@ -google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema - */ -class SKAdNetworkConversionValueSchema extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $postback_window_one = null; - /** - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - protected $postback_window_two = null; - /** - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - protected $postback_window_three = null; - /** - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * - * Generated from protobuf field bool apply_conversion_values = 5; - */ - protected $apply_conversion_values = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_one - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_two - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * @type \Google\Analytics\Admin\V1alpha\PostbackWindow $postback_window_three - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * @type bool $apply_conversion_values - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the schema. This will be child of ONLY an iOS - * stream, and there can be at most one such child under an iOS stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null - */ - public function getPostbackWindowOne() - { - return $this->postback_window_one; - } - - public function hasPostbackWindowOne() - { - return isset($this->postback_window_one); - } - - public function clearPostbackWindowOne() - { - unset($this->postback_window_one); - } - - /** - * Required. The conversion value settings for the first postback window. - * These differ from values for postback window two and three in that they - * contain a "Fine" grained conversion value (a numeric value). - * Conversion values for this postback window must be set. The other windows - * are optional and may inherit this window's settings if unset or disabled. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var - * @return $this - */ - public function setPostbackWindowOne($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); - $this->postback_window_one = $var; - - return $this; - } - - /** - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null - */ - public function getPostbackWindowTwo() - { - return $this->postback_window_two; - } - - public function hasPostbackWindowTwo() - { - return isset($this->postback_window_two); - } - - public function clearPostbackWindowTwo() - { - unset($this->postback_window_two); - } - - /** - * The conversion value settings for the second postback window. - * This field should only be configured if there is a need to define different - * conversion values for this postback window. - * If enable_postback_window_settings is set to false for this postback - * window, the values from postback_window_one will be used. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var - * @return $this - */ - public function setPostbackWindowTwo($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); - $this->postback_window_two = $var; - - return $this; - } - - /** - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @return \Google\Analytics\Admin\V1alpha\PostbackWindow|null - */ - public function getPostbackWindowThree() - { - return $this->postback_window_three; - } - - public function hasPostbackWindowThree() - { - return isset($this->postback_window_three); - } - - public function clearPostbackWindowThree() - { - unset($this->postback_window_three); - } - - /** - * The conversion value settings for the third postback window. - * This field should only be set if the user chose to define different - * conversion values for this postback window. It is allowed to configure - * window 3 without setting window 2. In case window 1 & 2 settings are set - * and enable_postback_window_settings for this postback window is set to - * false, the schema will inherit settings from postback_window_two. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @param \Google\Analytics\Admin\V1alpha\PostbackWindow $var - * @return $this - */ - public function setPostbackWindowThree($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\PostbackWindow::class); - $this->postback_window_three = $var; - - return $this; - } - - /** - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * - * Generated from protobuf field bool apply_conversion_values = 5; - * @return bool - */ - public function getApplyConversionValues() - { - return $this->apply_conversion_values; - } - - /** - * If enabled, the GA SDK will set conversion values using this schema - * definition, and schema will be exported to any Google Ads accounts linked - * to this property. If disabled, the GA SDK will not automatically set - * conversion values, and also the schema will not be exported to Ads. - * - * Generated from protobuf field bool apply_conversion_values = 5; - * @param bool $var - * @return $this - */ - public function setApplyConversionValues($var) - { - GPBUtil::checkBool($var); - $this->apply_conversion_values = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php deleted file mode 100644 index 3861de1b8129..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchAds360Link.php +++ /dev/null @@ -1,489 +0,0 @@ -google.analytics.admin.v1alpha.SearchAds360Link - */ -class SearchAds360Link extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $advertiser_id = ''; - /** - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $campaign_data_sharing_enabled = null; - /** - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $cost_data_sharing_enabled = null; - /** - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * - * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $advertiser_display_name = ''; - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - protected $ads_personalization_enabled = null; - /** - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - protected $site_stats_sharing_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * @type string $advertiser_id - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * @type string $advertiser_display_name - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * @type \Google\Protobuf\BoolValue $site_stats_sharing_enabled - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name for this SearchAds360Link resource. - * Format: properties/{propertyId}/searchAds360Links/{linkId} - * Note: linkId is not the Search Ads 360 advertiser ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAdvertiserId() - { - return $this->advertiser_id; - } - - /** - * Immutable. This field represents the Advertiser ID of the Search Ads 360 - * Advertiser. that has been linked. - * - * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAdvertiserId($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_id = $var; - - return $this; - } - - /** - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCampaignDataSharingEnabled() - { - return $this->campaign_data_sharing_enabled; - } - - public function hasCampaignDataSharingEnabled() - { - return isset($this->campaign_data_sharing_enabled); - } - - public function clearCampaignDataSharingEnabled() - { - unset($this->campaign_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCampaignDataSharingEnabled() - - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCampaignDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("campaign_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCampaignDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->campaign_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of campaign data from Search Ads 360 into the - * GA4 property. After link creation, this can only be updated from the Search - * Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCampaignDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("campaign_data_sharing_enabled", $var); - return $this;} - - /** - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCostDataSharingEnabled() - { - return $this->cost_data_sharing_enabled; - } - - public function hasCostDataSharingEnabled() - { - return isset($this->cost_data_sharing_enabled); - } - - public function clearCostDataSharingEnabled() - { - unset($this->cost_data_sharing_enabled); - } - - /** - * Returns the unboxed value from getCostDataSharingEnabled() - - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool|null - */ - public function getCostDataSharingEnabledUnwrapped() - { - return $this->readWrapperValue("cost_data_sharing_enabled"); - } - - /** - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCostDataSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cost_data_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 - * property. This can only be enabled if campaign_data_sharing_enabled is - * enabled. After link creation, this can only be updated from - * the Search Ads 360 product. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool|null $var - * @return $this - */ - public function setCostDataSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("cost_data_sharing_enabled", $var); - return $this;} - - /** - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * - * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAdvertiserDisplayName() - { - return $this->advertiser_display_name; - } - - /** - * Output only. The display name of the Search Ads 360 Advertiser. - * Allows users to easily identify the linked resource. - * - * Generated from protobuf field string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAdvertiserDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->advertiser_display_name = $var; - - return $this; - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enables personalized advertising features with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return \Google\Protobuf\BoolValue|null - */ - public function getSiteStatsSharingEnabled() - { - return $this->site_stats_sharing_enabled; - } - - public function hasSiteStatsSharingEnabled() - { - return isset($this->site_stats_sharing_enabled); - } - - public function clearSiteStatsSharingEnabled() - { - unset($this->site_stats_sharing_enabled); - } - - /** - * Returns the unboxed value from getSiteStatsSharingEnabled() - - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return bool|null - */ - public function getSiteStatsSharingEnabledUnwrapped() - { - return $this->readWrapperValue("site_stats_sharing_enabled"); - } - - /** - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setSiteStatsSharingEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->site_stats_sharing_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enables export of site stats with this integration. - * If this field is not set on create, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @param bool|null $var - * @return $this - */ - public function setSiteStatsSharingEnabledUnwrapped($var) - { - $this->writeWrapperValue("site_stats_sharing_enabled", $var); - return $this;} - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php deleted file mode 100644 index a6289173d9c9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsRequest.php +++ /dev/null @@ -1,419 +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. Format: accounts/{account} - * Example: `accounts/100` - * - * 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. - * Format: properties/{propertyId} - * Example: `properties/100` - * - * 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. Format: accounts/{account} - * Example: `accounts/100` - * @type string $property - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * Format: properties/{propertyId} - * Example: `properties/100` - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_type - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * @type array|\Google\Protobuf\Internal\RepeatedField $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * @type array|\Google\Protobuf\Internal\RepeatedField $actor_email - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type \Google\Protobuf\Timestamp $earliest_change_time - * Optional. If set, only return changes made after this time (inclusive). - * @type \Google\Protobuf\Timestamp $latest_change_time - * Optional. If set, only return changes made before this time (inclusive). - * @type int $page_size - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account resource for which to return change history - * resources. Format: accounts/{account} - * Example: `accounts/100` - * - * 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. Format: accounts/{account} - * Example: `accounts/100` - * - * 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. - * Format: properties/{propertyId} - * Example: `properties/100` - * - * 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. - * Format: properties/{propertyId} - * Example: `properties/100` - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\ChangeHistoryResourceType::class); - $this->resource_type = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAction() - { - return $this->action; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAction($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\ActionType::class); - $this->action = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActorEmail() - { - return $this->actor_email; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActorEmail($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actor_email = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEarliestChangeTime() - { - return $this->earliest_change_time; - } - - public function hasEarliestChangeTime() - { - return isset($this->earliest_change_time); - } - - public function clearEarliestChangeTime() - { - unset($this->earliest_change_time); - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEarliestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->earliest_change_time = $var; - - return $this; - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestChangeTime() - { - return $this->latest_change_time; - } - - public function hasLatestChangeTime() - { - return isset($this->latest_change_time); - } - - public function clearLatestChangeTime() - { - unset($this->latest_change_time); - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_change_time = $var; - - return $this; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php deleted file mode 100644 index d26a3e0bd325..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SearchChangeHistoryEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse - */ -class SearchChangeHistoryEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - private $change_history_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $change_history_events - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChangeHistoryEvents() - { - return $this->change_history_events; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - * @param array<\Google\Analytics\Admin\V1alpha\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChangeHistoryEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ChangeHistoryEvent::class); - $this->change_history_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php deleted file mode 100644 index d7e00a48d589..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/ServiceLevel.php +++ /dev/null @@ -1,61 +0,0 @@ -google.analytics.admin.v1alpha.ServiceLevel - */ -class ServiceLevel -{ - /** - * Service level not specified or invalid. - * - * Generated from protobuf enum SERVICE_LEVEL_UNSPECIFIED = 0; - */ - const SERVICE_LEVEL_UNSPECIFIED = 0; - /** - * The standard version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_STANDARD = 1; - */ - const GOOGLE_ANALYTICS_STANDARD = 1; - /** - * The paid, premium version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_360 = 2; - */ - const GOOGLE_ANALYTICS_360 = 2; - - private static $valueToName = [ - self::SERVICE_LEVEL_UNSPECIFIED => 'SERVICE_LEVEL_UNSPECIFIED', - self::GOOGLE_ANALYTICS_STANDARD => 'GOOGLE_ANALYTICS_STANDARD', - self::GOOGLE_ANALYTICS_360 => 'GOOGLE_ANALYTICS_360', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php deleted file mode 100644 index 0dd8afa71817..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutRequest.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest - */ -class SetAutomatedGa4ConfigurationOptOutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = ''; - /** - * The status to set. - * - * Generated from protobuf field bool opt_out = 2; - */ - protected $opt_out = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * @type bool $opt_out - * The status to set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The status to set. - * - * Generated from protobuf field bool opt_out = 2; - * @return bool - */ - public function getOptOut() - { - return $this->opt_out; - } - - /** - * The status to set. - * - * Generated from protobuf field bool opt_out = 2; - * @param bool $var - * @return $this - */ - public function setOptOut($var) - { - GPBUtil::checkBool($var); - $this->opt_out = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php deleted file mode 100644 index 481c502c84c4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SetAutomatedGa4ConfigurationOptOutResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse - */ -class SetAutomatedGa4ConfigurationOptOutResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php deleted file mode 100644 index 0dbeeb33e198..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilter.php +++ /dev/null @@ -1,161 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilter - */ -class SubpropertyEventFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Format: - * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} - * Example: properties/1234/subpropertyEventFilters/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Resource name of the Subproperty that uses this filter. - * - * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $apply_to_property = null; - /** - * Required. Unordered list. Filter clauses that define the - * SubpropertyEventFilter. All clauses are AND'ed together to determine what - * data is sent to the subproperty. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $filter_clauses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Format: - * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} - * Example: properties/1234/subpropertyEventFilters/5678 - * @type string $apply_to_property - * Immutable. Resource name of the Subproperty that uses this filter. - * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause>|\Google\Protobuf\Internal\RepeatedField $filter_clauses - * Required. Unordered list. Filter clauses that define the - * SubpropertyEventFilter. All clauses are AND'ed together to determine what - * data is sent to the subproperty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Format: - * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} - * Example: properties/1234/subpropertyEventFilters/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Format: - * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} - * Example: properties/1234/subpropertyEventFilters/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Resource name of the Subproperty that uses this filter. - * - * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getApplyToProperty() - { - return isset($this->apply_to_property) ? $this->apply_to_property : ''; - } - - public function hasApplyToProperty() - { - return isset($this->apply_to_property); - } - - public function clearApplyToProperty() - { - unset($this->apply_to_property); - } - - /** - * Immutable. Resource name of the Subproperty that uses this filter. - * - * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setApplyToProperty($var) - { - GPBUtil::checkString($var, True); - $this->apply_to_property = $var; - - return $this; - } - - /** - * Required. Unordered list. Filter clauses that define the - * SubpropertyEventFilter. All clauses are AND'ed together to determine what - * data is sent to the subproperty. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterClauses() - { - return $this->filter_clauses; - } - - /** - * Required. Unordered list. Filter clauses that define the - * SubpropertyEventFilter. All clauses are AND'ed together to determine what - * data is sent to the subproperty. - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterClauses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause::class); - $this->filter_clauses = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php deleted file mode 100644 index 6b72ca9d1f44..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause.php +++ /dev/null @@ -1,118 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilterClause - */ -class SubpropertyEventFilterClause extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The type for the filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter_clause_type = 0; - /** - * Required. The logical expression for what events are sent to the - * subproperty. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $filter_clause_type - * Required. The type for the filter clause. - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $filter_expression - * Required. The logical expression for what events are sent to the - * subproperty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); - parent::__construct($data); - } - - /** - * Required. The type for the filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getFilterClauseType() - { - return $this->filter_clause_type; - } - - /** - * Required. The type for the filter clause. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setFilterClauseType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause\FilterClauseType::class); - $this->filter_clause_type = $var; - - return $this; - } - - /** - * Required. The logical expression for what events are sent to the - * subproperty. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression|null - */ - public function getFilterExpression() - { - return $this->filter_expression; - } - - public function hasFilterExpression() - { - return isset($this->filter_expression); - } - - public function clearFilterExpression() - { - unset($this->filter_expression); - } - - /** - * Required. The logical expression for what events are sent to the - * subproperty. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $var - * @return $this - */ - public function setFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); - $this->filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php deleted file mode 100644 index 51d997db1a75..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType - */ -class FilterClauseType -{ - /** - * Filter clause type unknown or not specified. - * - * Generated from protobuf enum FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; - */ - const FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; - /** - * Events will be included in the Sub property if the filter clause is met. - * - * Generated from protobuf enum INCLUDE = 1; - */ - const PBINCLUDE = 1; - /** - * Events will be excluded from the Sub property if the filter clause is - * met. - * - * Generated from protobuf enum EXCLUDE = 2; - */ - const EXCLUDE = 2; - - private static $valueToName = [ - self::FILTER_CLAUSE_TYPE_UNSPECIFIED => 'FILTER_CLAUSE_TYPE_UNSPECIFIED', - self::PBINCLUDE => 'INCLUDE', - self::EXCLUDE => 'EXCLUDE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FilterClauseType::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause_FilterClauseType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php deleted file mode 100644 index ddec2d765ae3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition.php +++ /dev/null @@ -1,142 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilterCondition - */ -class SubpropertyEventFilterCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The field that is being filtered. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $null_filter - * A filter for null values. - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $string_filter - * A filter for a string-type dimension that matches a particular pattern. - * @type string $field_name - * Required. The field that is being filtered. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); - parent::__construct($data); - } - - /** - * A filter for null values. - * - * Generated from protobuf field bool null_filter = 2; - * @return bool - */ - public function getNullFilter() - { - return $this->readOneof(2); - } - - public function hasNullFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter for null values. - * - * Generated from protobuf field bool null_filter = 2; - * @param bool $var - * @return $this - */ - public function setNullFilter($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(3); - } - - public function hasStringFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for a string-type dimension that matches a particular pattern. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The field that is being filtered. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * Required. The field that is being filtered. - * - * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php deleted file mode 100644 index 0ef40e1b4af1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter.php +++ /dev/null @@ -1,142 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_type = 0; - /** - * Required. The string value used for the matching. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Optional. If true, the string value is case sensitive. If false, the - * match is case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * Required. The match type for the string filter. - * @type string $value - * Required. The string value used for the matching. - * @type bool $case_sensitive - * Optional. If true, the string value is case sensitive. If false, the - * match is case-insensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); - parent::__construct($data); - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * Required. The match type for the string filter. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * Required. The string value used for the matching. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The string value used for the matching. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. If true, the string value is case sensitive. If false, the - * match is case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * Optional. If true, the string value is case sensitive. If false, the - * match is case-insensitive. - * - * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php deleted file mode 100644 index 797642e0b851..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType - */ -class MatchType -{ - /** - * Match type unknown or not specified. - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full regular expression matches with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial regular expression matches with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php deleted file mode 100644 index ebc66bfd4234..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpression.php +++ /dev/null @@ -1,153 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilterExpression - */ -class SubpropertyEventFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList $or_group - * A list of expressions to OR’ed together. Must only contain - * not_expression or filter_condition expressions. - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $not_expression - * A filter expression to be NOT'ed (inverted, complemented). It can only - * include a filter. This cannot be set on the top level - * SubpropertyEventFilterExpression. - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition $filter_condition - * Creates a filter that matches a specific event. This cannot be set on the - * top level SubpropertyEventFilterExpression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); - parent::__construct($data); - } - - /** - * A list of expressions to OR’ed together. Must only contain - * not_expression or filter_condition expressions. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(1); - } - - public function hasOrGroup() - { - return $this->hasOneof(1); - } - - /** - * A list of expressions to OR’ed together. Must only contain - * not_expression or filter_condition expressions. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A filter expression to be NOT'ed (inverted, complemented). It can only - * include a filter. This cannot be set on the top level - * SubpropertyEventFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(2); - } - - public function hasNotExpression() - { - return $this->hasOneof(2); - } - - /** - * A filter expression to be NOT'ed (inverted, complemented). It can only - * include a filter. This cannot be set on the top level - * SubpropertyEventFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Creates a filter that matches a specific event. This cannot be set on the - * top level SubpropertyEventFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition|null - */ - public function getFilterCondition() - { - return $this->readOneof(3); - } - - public function hasFilterCondition() - { - return $this->hasOneof(3); - } - - /** - * Creates a filter that matches a specific event. This cannot be set on the - * top level SubpropertyEventFilterExpression. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition $var - * @return $this - */ - public function setFilterCondition($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php deleted file mode 100644 index 1b0505f27ca9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/SubpropertyEventFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList - */ -class SubpropertyEventFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unordered list. A list of Subproperty event filter expressions - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $filter_expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions - * Required. Unordered list. A list of Subproperty event filter expressions - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unordered list. A list of Subproperty event filter expressions - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilterExpressions() - { - return $this->filter_expressions; - } - - /** - * Required. Unordered list. A list of Subproperty event filter expressions - * - * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); - $this->filter_expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php deleted file mode 100644 index 703f9a10e407..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccessBindingRequest.php +++ /dev/null @@ -1,90 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAccessBindingRequest - */ -class UpdateAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The access binding to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_binding = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\AccessBinding $accessBinding Required. The access binding to update. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\AccessBinding $accessBinding): self - { - return (new self()) - ->setAccessBinding($accessBinding); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AccessBinding $access_binding - * Required. The access binding to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The access binding to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AccessBinding|null - */ - public function getAccessBinding() - { - return $this->access_binding; - } - - public function hasAccessBinding() - { - return isset($this->access_binding); - } - - public function clearAccessBinding() - { - unset($this->access_binding); - } - - /** - * Required. The access binding to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AccessBinding $var - * @return $this - */ - public function setAccessBinding($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AccessBinding::class); - $this->access_binding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php deleted file mode 100644 index a925a866ced4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAccountRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAccountRequest - */ -class UpdateAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $account = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\Account $account Required. The account to update. - * The account's `name` field is used to identify the account. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateAccountRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\Account $account, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAccount($account) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Account $account - * Required. The account to update. - * The account's `name` field is used to identify the account. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php deleted file mode 100644 index 9ba0cbd25641..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAttributionSettingsRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest - */ -class UpdateAttributionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attribution_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\AttributionSettings $attributionSettings Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateAttributionSettingsRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\AttributionSettings $attributionSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAttributionSettings($attributionSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\AttributionSettings $attribution_settings - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings|null - */ - public function getAttributionSettings() - { - return $this->attribution_settings; - } - - public function hasAttributionSettings() - { - return isset($this->attribution_settings); - } - - public function clearAttributionSettings() - { - unset($this->attribution_settings); - } - - /** - * Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\AttributionSettings $var - * @return $this - */ - public function setAttributionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\AttributionSettings::class); - $this->attribution_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php deleted file mode 100644 index b47a66d82822..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateAudienceRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateAudienceRequest - */ -class UpdateAudienceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\Audience $audience Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateAudienceRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\Audience $audience, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAudience($audience) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Audience $audience - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Audience|null - */ - public function getAudience() - { - return $this->audience; - } - - public function hasAudience() - { - return isset($this->audience); - } - - public function clearAudience() - { - unset($this->audience); - } - - /** - * Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Audience $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Audience::class); - $this->audience = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateBigQueryLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateBigQueryLinkRequest.php deleted file mode 100644 index 70353be2ca57..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateBigQueryLinkRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest - */ -class UpdateBigQueryLinkRequest 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.BigQueryLink bigquery_link = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bigquery_link = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateBigQueryLinkRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setBigqueryLink($bigqueryLink) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\BigQueryLink $bigquery_link - * 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.BigQueryLink bigquery_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink|null - */ - public function getBigqueryLink() - { - return $this->bigquery_link; - } - - public function hasBigqueryLink() - { - return isset($this->bigquery_link); - } - - public function clearBigqueryLink() - { - unset($this->bigquery_link); - } - - /** - * 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.BigQueryLink bigquery_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $var - * @return $this - */ - public function setBigqueryLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\BigQueryLink::class); - $this->bigquery_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/UpdateCalculatedMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCalculatedMetricRequest.php deleted file mode 100644 index e255738be0c2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCalculatedMetricRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest - */ -class UpdateCalculatedMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The CalculatedMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $calculated_metric = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\CalculatedMetric $calculatedMetric Required. The CalculatedMetric to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateCalculatedMetricRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\CalculatedMetric $calculatedMetric, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCalculatedMetric($calculatedMetric) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\CalculatedMetric $calculated_metric - * Required. The CalculatedMetric 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); - } - - /** - * Required. The CalculatedMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\CalculatedMetric|null - */ - public function getCalculatedMetric() - { - return $this->calculated_metric; - } - - public function hasCalculatedMetric() - { - return isset($this->calculated_metric); - } - - public function clearCalculatedMetric() - { - unset($this->calculated_metric); - } - - /** - * Required. The CalculatedMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\CalculatedMetric $var - * @return $this - */ - public function setCalculatedMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CalculatedMetric::class); - $this->calculated_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/UpdateChannelGroupRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php deleted file mode 100644 index e87b4c86f25c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateChannelGroupRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.analytics.admin.v1alpha.UpdateChannelGroupRequest - */ -class UpdateChannelGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel_group = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $channelGroup Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateChannelGroupRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\ChannelGroup $channelGroup, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setChannelGroup($channelGroup) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ChannelGroup $channel_group - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup|null - */ - public function getChannelGroup() - { - return $this->channel_group; - } - - public function hasChannelGroup() - { - return isset($this->channel_group); - } - - public function clearChannelGroup() - { - unset($this->channel_group); - } - - /** - * Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ChannelGroup $var - * @return $this - */ - public function setChannelGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ChannelGroup::class); - $this->channel_group = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php deleted file mode 100644 index b3fb1ab8cc6a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateConversionEventRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateConversionEventRequest - */ -class UpdateConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversion_event = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $conversionEvent Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateConversionEventRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\ConversionEvent $conversionEvent, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->conversion_event; - } - - public function hasConversionEvent() - { - return isset($this->conversion_event); - } - - public function clearConversionEvent() - { - unset($this->conversion_event); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ConversionEvent::class); - $this->conversion_event = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php deleted file mode 100644 index 9969ffc83ba4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomDimensionRequest.php +++ /dev/null @@ -1,146 +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; - - /** - * @param \Google\Analytics\Admin\V1alpha\CustomDimension $customDimension The CustomDimension to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateCustomDimensionRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\CustomDimension $customDimension, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCustomDimension($customDimension) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\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 ffc2ef443b16..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateCustomMetricRequest.php +++ /dev/null @@ -1,146 +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; - - /** - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $customMetric The CustomMetric to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateCustomMetricRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\CustomMetric $customMetric, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCustomMetric($customMetric) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric - * The CustomMetric to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return \Google\Analytics\Admin\V1alpha\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @param \Google\Analytics\Admin\V1alpha\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php deleted file mode 100644 index 90c4fe834725..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRedactionSettingsRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest - */ -class UpdateDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_redaction_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $dataRedactionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateDataRedactionSettingsRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\DataRedactionSettings $dataRedactionSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataRedactionSettings($dataRedactionSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DataRedactionSettings $data_redaction_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null - */ - public function getDataRedactionSettings() - { - return $this->data_redaction_settings; - } - - public function hasDataRedactionSettings() - { - return isset($this->data_redaction_settings); - } - - public function clearDataRedactionSettings() - { - unset($this->data_redaction_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var - * @return $this - */ - public function setDataRedactionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); - $this->data_redaction_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php deleted file mode 100644 index 271212d6515c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataRetentionSettingsRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest - */ -class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_retention_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $dataRetentionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\DataRetentionSettings $dataRetentionSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->data_retention_settings; - } - - public function hasDataRetentionSettings() - { - return isset($this->data_retention_settings); - } - - public function clearDataRetentionSettings() - { - unset($this->data_retention_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class); - $this->data_retention_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php deleted file mode 100644 index 300412851b61..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDataStreamRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1alpha.UpdateDataStreamRequest - */ -class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - protected $data_stream = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\DataStream $dataStream The DataStream to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\DataStream $dataStream, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataStream($dataStream) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream - * The DataStream to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return \Google\Analytics\Admin\V1alpha\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @param \Google\Analytics\Admin\V1alpha\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class); - $this->data_stream = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php deleted file mode 100644 index 2bfc911cb99f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest - */ -class UpdateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The DisplayVideo360AdvertiserLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - protected $display_video_360_advertiser_link = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink The DisplayVideo360AdvertiserLink to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link - * The DisplayVideo360AdvertiserLink to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DisplayVideo360AdvertiserLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null - */ - public function getDisplayVideo360AdvertiserLink() - { - return $this->display_video_360_advertiser_link; - } - - public function hasDisplayVideo360AdvertiserLink() - { - return isset($this->display_video_360_advertiser_link); - } - - public function clearDisplayVideo360AdvertiserLink() - { - unset($this->display_video_360_advertiser_link); - } - - /** - * The DisplayVideo360AdvertiserLink to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var - * @return $this - */ - public function setDisplayVideo360AdvertiserLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class); - $this->display_video_360_advertiser_link = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php deleted file mode 100644 index 45f8e6b8639c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEnhancedMeasurementSettingsRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - */ -class UpdateEnhancedMeasurementSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enhanced_measurement_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhancedMeasurementSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhancedMeasurementSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEnhancedMeasurementSettings($enhancedMeasurementSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhanced_measurement_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings|null - */ - public function getEnhancedMeasurementSettings() - { - return $this->enhanced_measurement_settings; - } - - public function hasEnhancedMeasurementSettings() - { - return isset($this->enhanced_measurement_settings); - } - - public function clearEnhancedMeasurementSettings() - { - unset($this->enhanced_measurement_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $var - * @return $this - */ - public function setEnhancedMeasurementSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings::class); - $this->enhanced_measurement_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php deleted file mode 100644 index 290a939cfa3c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventCreateRuleRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest - */ -class UpdateEventCreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_create_rule = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $eventCreateRule Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateEventCreateRuleRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\EventCreateRule $eventCreateRule, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEventCreateRule($eventCreateRule) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\EventCreateRule $event_create_rule - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule|null - */ - public function getEventCreateRule() - { - return $this->event_create_rule; - } - - public function hasEventCreateRule() - { - return isset($this->event_create_rule); - } - - public function clearEventCreateRule() - { - unset($this->event_create_rule); - } - - /** - * Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EventCreateRule $var - * @return $this - */ - public function setEventCreateRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventCreateRule::class); - $this->event_create_rule = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventEditRuleRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventEditRuleRequest.php deleted file mode 100644 index 807ad7d6f3ed..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateEventEditRuleRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.analytics.admin.v1alpha.UpdateEventEditRuleRequest - */ -class UpdateEventEditRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The EventEditRule to update. - * The resource's `name` field is used to identify the EventEditRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_edit_rule = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule Required. The EventEditRule to update. - * The resource's `name` field is used to identify the EventEditRule to be - * updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateEventEditRuleRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEventEditRule($eventEditRule) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\EventEditRule $event_edit_rule - * Required. The EventEditRule to update. - * The resource's `name` field is used to identify the EventEditRule 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 EventEditRule to update. - * The resource's `name` field is used to identify the EventEditRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\EventEditRule|null - */ - public function getEventEditRule() - { - return $this->event_edit_rule; - } - - public function hasEventEditRule() - { - return isset($this->event_edit_rule); - } - - public function clearEventEditRule() - { - unset($this->event_edit_rule); - } - - /** - * Required. The EventEditRule to update. - * The resource's `name` field is used to identify the EventEditRule to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\EventEditRule $var - * @return $this - */ - public function setEventEditRule($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventEditRule::class); - $this->event_edit_rule = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php deleted file mode 100644 index f313b97f288e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateExpandedDataSetRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest - */ -class UpdateExpandedDataSetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expanded_data_set = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateExpandedDataSetRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\ExpandedDataSet $expandedDataSet, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setExpandedDataSet($expandedDataSet) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\ExpandedDataSet $expanded_data_set - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet|null - */ - public function getExpandedDataSet() - { - return $this->expanded_data_set; - } - - public function hasExpandedDataSet() - { - return isset($this->expanded_data_set); - } - - public function clearExpandedDataSet() - { - unset($this->expanded_data_set); - } - - /** - * Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\ExpandedDataSet $var - * @return $this - */ - public function setExpandedDataSet($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\ExpandedDataSet::class); - $this->expanded_data_set = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php deleted file mode 100644 index a9c80b56b789..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,151 +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; - - /** - * @param \Google\Analytics\Admin\V1alpha\GoogleAdsLink $googleAdsLink The GoogleAdsLink to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\GoogleAdsLink $googleAdsLink, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGoogleAdsLink($googleAdsLink) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\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 b8db45e5ea71..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateGoogleSignalsSettingsRequest.php +++ /dev/null @@ -1,156 +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; - - /** - * @param \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $googleSignalsSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $googleSignalsSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGoogleSignalsSettings($googleSignalsSettings) - ->setUpdateMask($updateMask); - } - - /** - * 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/UpdateKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateKeyEventRequest.php deleted file mode 100644 index 3b2c09343dfe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateKeyEventRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1alpha.UpdateKeyEventRequest - */ -class UpdateKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_event = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateKeyEventRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\KeyEvent $key_event - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\KeyEvent|null - */ - public function getKeyEvent() - { - return $this->key_event; - } - - public function hasKeyEvent() - { - return isset($this->key_event); - } - - public function clearKeyEvent() - { - unset($this->key_event); - } - - /** - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\KeyEvent $var - * @return $this - */ - public function setKeyEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\KeyEvent::class); - $this->key_event = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php deleted file mode 100644 index f5debcd30595..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest - */ -class UpdateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurementProtocolSecret, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php deleted file mode 100644 index b2bda9b05c60..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdatePropertyRequest.php +++ /dev/null @@ -1,161 +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; - - /** - * @param \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. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdatePropertyRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\Property $property, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setProperty($property) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\Property $property - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); - $this->property = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php deleted file mode 100644 index c7993c2b69ac..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest - */ -class UpdateSKAdNetworkConversionValueSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. SKAdNetwork conversion value schema to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $skadnetwork_conversion_value_schema = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateSKAdNetworkConversionValueSchemaRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema - * Required. SKAdNetwork conversion value schema to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. SKAdNetwork conversion value schema to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema|null - */ - public function getSkadnetworkConversionValueSchema() - { - return $this->skadnetwork_conversion_value_schema; - } - - public function hasSkadnetworkConversionValueSchema() - { - return isset($this->skadnetwork_conversion_value_schema); - } - - public function clearSkadnetworkConversionValueSchema() - { - unset($this->skadnetwork_conversion_value_schema); - } - - /** - * Required. SKAdNetwork conversion value schema to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $var - * @return $this - */ - public function setSkadnetworkConversionValueSchema($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema::class); - $this->skadnetwork_conversion_value_schema = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php deleted file mode 100644 index 51802652a25a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSearchAds360LinkRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest - */ -class UpdateSearchAds360LinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The SearchAds360Link to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - protected $search_ads_360_link = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $searchAds360Link The SearchAds360Link to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateSearchAds360LinkRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\SearchAds360Link $searchAds360Link, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSearchAds360Link($searchAds360Link) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\SearchAds360Link $search_ads_360_link - * The SearchAds360Link to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The SearchAds360Link to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link|null - */ - public function getSearchAds360Link() - { - return $this->search_ads_360_link; - } - - public function hasSearchAds360Link() - { - return isset($this->search_ads_360_link); - } - - public function clearSearchAds360Link() - { - unset($this->search_ads_360_link); - } - - /** - * The SearchAds360Link to update - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @param \Google\Analytics\Admin\V1alpha\SearchAds360Link $var - * @return $this - */ - public function setSearchAds360Link($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SearchAds360Link::class); - $this->search_ads_360_link = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php deleted file mode 100644 index e24ad736c9a4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/proto/src/Google/Analytics/Admin/V1alpha/UpdateSubpropertyEventFilterRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest - */ -class UpdateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The subproperty event filter to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subproperty_event_filter = null; - /** - * Required. The list of fields to update. Field names must be in snake case - * (for example, "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. Field names must be in snake case - * (for example, "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1alpha\UpdateSubpropertyEventFilterRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subpropertyEventFilter, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSubpropertyEventFilter($subpropertyEventFilter) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter - * Required. The subproperty event filter to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. Field names must be in snake case - * (for example, "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The subproperty event filter to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null - */ - public function getSubpropertyEventFilter() - { - return $this->subproperty_event_filter; - } - - public function hasSubpropertyEventFilter() - { - return isset($this->subproperty_event_filter); - } - - public function clearSubpropertyEventFilter() - { - unset($this->subproperty_event_filter); - } - - /** - * Required. The subproperty event filter to update. - * - * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var - * @return $this - */ - public function setSubpropertyEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); - $this->subproperty_event_filter = $var; - - return $this; - } - - /** - * Required. The list of fields to update. Field names must be in snake case - * (for example, "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. Field names must be in snake case - * (for example, "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php deleted file mode 100644 index 1e1d3bc88c64..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php +++ /dev/null @@ -1,87 +0,0 @@ -setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - - // Call the API and handle any network failures. - try { - /** @var AcknowledgeUserDataCollectionResponse $response */ - $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $acknowledgement = '[ACKNOWLEDGEMENT]'; - - acknowledge_user_data_collection_sample($formattedProperty, $acknowledgement); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php deleted file mode 100644 index 4f9b445e93a2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApproveDisplayVideo360AdvertiserLinkProposalResponse $response */ - $response = $analyticsAdminServiceClient->approveDisplayVideo360AdvertiserLinkProposal($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - approve_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php deleted file mode 100644 index 5d2f5562a7de..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->archiveAudience($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - archive_audience_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php deleted file mode 100644 index df7b7c1bba1e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->archiveCustomDimension($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - archive_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php deleted file mode 100644 index 80a00137c519..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->archiveCustomMetric($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - archive_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php deleted file mode 100644 index 10ccb330fa32..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedRequestsParent) - ->setAccessBinding($requestsAccessBinding); - $requests = [$createAccessBindingRequest,]; - $request = (new BatchCreateAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BatchCreateAccessBindingsResponse $response */ - $response = $analyticsAdminServiceClient->batchCreateAccessBindings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - $formattedRequestsParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - batch_create_access_bindings_sample($formattedParent, $formattedRequestsParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php deleted file mode 100644 index 8efa139ee93d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedRequestsName); - $requests = [$deleteAccessBindingRequest,]; - $request = (new BatchDeleteAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->batchDeleteAccessBindings($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - $formattedRequestsName = AnalyticsAdminServiceClient::accessBindingName( - '[ACCOUNT]', - '[ACCESS_BINDING]' - ); - - batch_delete_access_bindings_sample($formattedParent, $formattedRequestsName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php deleted file mode 100644 index 2339efc02dfa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent) - ->setNames($formattedNames); - - // Call the API and handle any network failures. - try { - /** @var BatchGetAccessBindingsResponse $response */ - $response = $analyticsAdminServiceClient->batchGetAccessBindings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - $formattedNamesElement = AnalyticsAdminServiceClient::accessBindingName( - '[ACCOUNT]', - '[ACCESS_BINDING]' - ); - - batch_get_access_bindings_sample($formattedParent, $formattedNamesElement); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php deleted file mode 100644 index 35b67e6e41bb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php +++ /dev/null @@ -1,84 +0,0 @@ -setAccessBinding($requestsAccessBinding); - $requests = [$updateAccessBindingRequest,]; - $request = (new BatchUpdateAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var BatchUpdateAccessBindingsResponse $response */ - $response = $analyticsAdminServiceClient->batchUpdateAccessBindings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - batch_update_access_bindings_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php deleted file mode 100644 index 6adf3f132471..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DisplayVideo360AdvertiserLinkProposal $response */ - $response = $analyticsAdminServiceClient->cancelDisplayVideo360AdvertiserLinkProposal($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - cancel_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php deleted file mode 100644 index 55bd756468d3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent) - ->setAccessBinding($accessBinding); - - // Call the API and handle any network failures. - try { - /** @var AccessBinding $response */ - $response = $analyticsAdminServiceClient->createAccessBinding($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - create_access_binding_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php deleted file mode 100644 index 47fda86a0254..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent) - ->setAdsenseLink($adsenseLink); - - // Call the API and handle any network failures. - try { - /** @var AdSenseLink $response */ - $response = $analyticsAdminServiceClient->createAdSenseLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_ad_sense_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php deleted file mode 100644 index 632909ff0ba9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php +++ /dev/null @@ -1,102 +0,0 @@ -setClauseType($audienceFilterClausesClauseType); - $audienceFilterClauses = [$audienceFilterClause,]; - $audience = (new Audience()) - ->setDisplayName($audienceDisplayName) - ->setDescription($audienceDescription) - ->setMembershipDurationDays($audienceMembershipDurationDays) - ->setFilterClauses($audienceFilterClauses); - $request = (new CreateAudienceRequest()) - ->setParent($formattedParent) - ->setAudience($audience); - - // Call the API and handle any network failures. - try { - /** @var Audience $response */ - $response = $analyticsAdminServiceClient->createAudience($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $audienceDisplayName = '[DISPLAY_NAME]'; - $audienceDescription = '[DESCRIPTION]'; - $audienceMembershipDurationDays = 0; - $audienceFilterClausesClauseType = AudienceClauseType::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; - - create_audience_sample( - $formattedParent, - $audienceDisplayName, - $audienceDescription, - $audienceMembershipDurationDays, - $audienceFilterClausesClauseType - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php deleted file mode 100644 index 0ed5adac9643..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php +++ /dev/null @@ -1,80 +0,0 @@ -setDatasetLocation($bigqueryLinkDatasetLocation); - $request = (new CreateBigQueryLinkRequest()) - ->setParent($formattedParent) - ->setBigqueryLink($bigqueryLink); - - // Call the API and handle any network failures. - try { - /** @var BigQueryLink $response */ - $response = $analyticsAdminServiceClient->createBigQueryLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $bigqueryLinkDatasetLocation = '[DATASET_LOCATION]'; - - create_big_query_link_sample($formattedParent, $bigqueryLinkDatasetLocation); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_calculated_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_calculated_metric.php deleted file mode 100644 index 9b4c8e486e1d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_calculated_metric.php +++ /dev/null @@ -1,112 +0,0 @@ -setDisplayName($calculatedMetricDisplayName) - ->setMetricUnit($calculatedMetricMetricUnit) - ->setFormula($calculatedMetricFormula); - $request = (new CreateCalculatedMetricRequest()) - ->setParent($formattedParent) - ->setCalculatedMetricId($calculatedMetricId) - ->setCalculatedMetric($calculatedMetric); - - // Call the API and handle any network failures. - try { - /** @var CalculatedMetric $response */ - $response = $analyticsAdminServiceClient->createCalculatedMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $calculatedMetricId = '[CALCULATED_METRIC_ID]'; - $calculatedMetricDisplayName = '[DISPLAY_NAME]'; - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetricFormula = '[FORMULA]'; - - create_calculated_metric_sample( - $formattedParent, - $calculatedMetricId, - $calculatedMetricDisplayName, - $calculatedMetricMetricUnit, - $calculatedMetricFormula - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php deleted file mode 100644 index 7780730cf0aa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php +++ /dev/null @@ -1,95 +0,0 @@ -setDisplayName($channelGroupGroupingRuleDisplayName) - ->setExpression($channelGroupGroupingRuleExpression); - $channelGroupGroupingRule = [$groupingRule,]; - $channelGroup = (new ChannelGroup()) - ->setDisplayName($channelGroupDisplayName) - ->setGroupingRule($channelGroupGroupingRule); - $request = (new CreateChannelGroupRequest()) - ->setParent($formattedParent) - ->setChannelGroup($channelGroup); - - // Call the API and handle any network failures. - try { - /** @var ChannelGroup $response */ - $response = $analyticsAdminServiceClient->createChannelGroup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $channelGroupDisplayName = '[DISPLAY_NAME]'; - $channelGroupGroupingRuleDisplayName = '[DISPLAY_NAME]'; - - create_channel_group_sample( - $formattedParent, - $channelGroupDisplayName, - $channelGroupGroupingRuleDisplayName - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php deleted file mode 100644 index 7c4ef453d7b7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php +++ /dev/null @@ -1,82 +0,0 @@ -setDisplayName($connectedSiteTagDisplayName) - ->setTagId($connectedSiteTagTagId); - $request = (new CreateConnectedSiteTagRequest()) - ->setConnectedSiteTag($connectedSiteTag); - - // Call the API and handle any network failures. - try { - /** @var CreateConnectedSiteTagResponse $response */ - $response = $analyticsAdminServiceClient->createConnectedSiteTag($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $connectedSiteTagDisplayName = '[DISPLAY_NAME]'; - $connectedSiteTagTagId = '[TAG_ID]'; - - create_connected_site_tag_sample($connectedSiteTagDisplayName, $connectedSiteTagTagId); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConnectedSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php deleted file mode 100644 index 65675662bf11..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php +++ /dev/null @@ -1,75 +0,0 @@ -setConversionEvent($conversionEvent) - ->setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->createConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_conversion_event_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php deleted file mode 100644 index 721070aef367..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php +++ /dev/null @@ -1,107 +0,0 @@ -setParameterName($customDimensionParameterName) - ->setDisplayName($customDimensionDisplayName) - ->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->createCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customDimensionParameterName = '[PARAMETER_NAME]'; - $customDimensionDisplayName = '[DISPLAY_NAME]'; - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - - create_custom_dimension_sample( - $formattedParent, - $customDimensionParameterName, - $customDimensionDisplayName, - $customDimensionScope - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php deleted file mode 100644 index 5847de268b55..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php +++ /dev/null @@ -1,108 +0,0 @@ -setParameterName($customMetricParameterName) - ->setDisplayName($customMetricDisplayName) - ->setMeasurementUnit($customMetricMeasurementUnit) - ->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->createCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customMetricParameterName = '[PARAMETER_NAME]'; - $customMetricDisplayName = '[DISPLAY_NAME]'; - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - - create_custom_metric_sample( - $formattedParent, - $customMetricParameterName, - $customMetricDisplayName, - $customMetricMeasurementUnit, - $customMetricScope - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php deleted file mode 100644 index 2d08ffd044c9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php +++ /dev/null @@ -1,77 +0,0 @@ -setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->createDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - - create_data_stream_sample($formattedParent, $dataStreamType); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php deleted file mode 100644 index 882ae97f3e39..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent) - ->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink); - - // Call the API and handle any network failures. - try { - /** @var DisplayVideo360AdvertiserLink $response */ - $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_display_video360_advertiser_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php deleted file mode 100644 index 46f5df41c4c1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,73 +0,0 @@ -setParent($formattedParent) - ->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal); - - // Call the API and handle any network failures. - try { - /** @var DisplayVideo360AdvertiserLinkProposal $response */ - $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLinkProposal($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_display_video360_advertiser_link_proposal_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php deleted file mode 100644 index c0ea21829b8c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php +++ /dev/null @@ -1,113 +0,0 @@ -setField($eventCreateRuleEventConditionsField) - ->setComparisonType($eventCreateRuleEventConditionsComparisonType) - ->setValue($eventCreateRuleEventConditionsValue); - $eventCreateRuleEventConditions = [$matchingCondition,]; - $eventCreateRule = (new EventCreateRule()) - ->setDestinationEvent($eventCreateRuleDestinationEvent) - ->setEventConditions($eventCreateRuleEventConditions); - $request = (new CreateEventCreateRuleRequest()) - ->setParent($formattedParent) - ->setEventCreateRule($eventCreateRule); - - // Call the API and handle any network failures. - try { - /** @var EventCreateRule $response */ - $response = $analyticsAdminServiceClient->createEventCreateRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRuleDestinationEvent = '[DESTINATION_EVENT]'; - $eventCreateRuleEventConditionsField = '[FIELD]'; - $eventCreateRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; - $eventCreateRuleEventConditionsValue = '[VALUE]'; - - create_event_create_rule_sample( - $formattedParent, - $eventCreateRuleDestinationEvent, - $eventCreateRuleEventConditionsField, - $eventCreateRuleEventConditionsComparisonType, - $eventCreateRuleEventConditionsValue - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php deleted file mode 100644 index 80b80c1c25c5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php +++ /dev/null @@ -1,134 +0,0 @@ -setField($eventEditRuleEventConditionsField) - ->setComparisonType($eventEditRuleEventConditionsComparisonType) - ->setValue($eventEditRuleEventConditionsValue); - $eventEditRuleEventConditions = [$matchingCondition,]; - $parameterMutation = (new ParameterMutation()) - ->setParameter($eventEditRuleParameterMutationsParameter) - ->setParameterValue($eventEditRuleParameterMutationsParameterValue); - $eventEditRuleParameterMutations = [$parameterMutation,]; - $eventEditRule = (new EventEditRule()) - ->setDisplayName($eventEditRuleDisplayName) - ->setEventConditions($eventEditRuleEventConditions) - ->setParameterMutations($eventEditRuleParameterMutations); - $request = (new CreateEventEditRuleRequest()) - ->setParent($formattedParent) - ->setEventEditRule($eventEditRule); - - // Call the API and handle any network failures. - try { - /** @var EventEditRule $response */ - $response = $analyticsAdminServiceClient->createEventEditRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRuleDisplayName = '[DISPLAY_NAME]'; - $eventEditRuleEventConditionsField = '[FIELD]'; - $eventEditRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; - $eventEditRuleEventConditionsValue = '[VALUE]'; - $eventEditRuleParameterMutationsParameter = '[PARAMETER]'; - $eventEditRuleParameterMutationsParameterValue = '[PARAMETER_VALUE]'; - - create_event_edit_rule_sample( - $formattedParent, - $eventEditRuleDisplayName, - $eventEditRuleEventConditionsField, - $eventEditRuleEventConditionsComparisonType, - $eventEditRuleEventConditionsValue, - $eventEditRuleParameterMutationsParameter, - $eventEditRuleParameterMutationsParameterValue - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php deleted file mode 100644 index 768cbaf5080d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php +++ /dev/null @@ -1,79 +0,0 @@ -setDisplayName($expandedDataSetDisplayName); - $request = (new CreateExpandedDataSetRequest()) - ->setParent($formattedParent) - ->setExpandedDataSet($expandedDataSet); - - // Call the API and handle any network failures. - try { - /** @var ExpandedDataSet $response */ - $response = $analyticsAdminServiceClient->createExpandedDataSet($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $expandedDataSetDisplayName = '[DISPLAY_NAME]'; - - create_expanded_data_set_sample($formattedParent, $expandedDataSetDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php deleted file mode 100644 index 6e67bd6b7537..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - - // Call the API and handle any network failures. - try { - /** @var FirebaseLink $response */ - $response = $analyticsAdminServiceClient->createFirebaseLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_firebase_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php deleted file mode 100644 index e427e76cda27..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - - // Call the API and handle any network failures. - try { - /** @var GoogleAdsLink $response */ - $response = $analyticsAdminServiceClient->createGoogleAdsLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_google_ads_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php deleted file mode 100644 index f38d2d4a677b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php +++ /dev/null @@ -1,79 +0,0 @@ -setCountingMethod($keyEventCountingMethod); - $request = (new CreateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var KeyEvent $response */ - $response = $analyticsAdminServiceClient->createKeyEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_key_event_sample($keyEventCountingMethod, $formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php deleted file mode 100644 index 79fc02e25527..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php +++ /dev/null @@ -1,79 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - create_measurement_protocol_secret_sample($formattedParent, $measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php deleted file mode 100644 index c1aa3456bdb4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php +++ /dev/null @@ -1,85 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->createProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - create_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php deleted file mode 100644 index 9f4d9a2f1e55..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php +++ /dev/null @@ -1,88 +0,0 @@ -setDisplayName($rollupPropertyDisplayName) - ->setTimeZone($rollupPropertyTimeZone); - $request = (new CreateRollupPropertyRequest()) - ->setRollupProperty($rollupProperty); - - // Call the API and handle any network failures. - try { - /** @var CreateRollupPropertyResponse $response */ - $response = $analyticsAdminServiceClient->createRollupProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $rollupPropertyDisplayName = '[DISPLAY_NAME]'; - $rollupPropertyTimeZone = '[TIME_ZONE]'; - - create_rollup_property_sample($rollupPropertyDisplayName, $rollupPropertyTimeZone); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php deleted file mode 100644 index d57635da09ef..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent) - ->setRollupPropertySourceLink($rollupPropertySourceLink); - - // Call the API and handle any network failures. - try { - /** @var RollupPropertySourceLink $response */ - $response = $analyticsAdminServiceClient->createRollupPropertySourceLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_rollup_property_source_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php deleted file mode 100644 index 30db02573305..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setParent($formattedParent) - ->setSearchAds360Link($searchAds360Link); - - // Call the API and handle any network failures. - try { - /** @var SearchAds360Link $response */ - $response = $analyticsAdminServiceClient->createSearchAds360Link($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_search_ads360_link_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index a3b09d55425f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,77 +0,0 @@ -setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $request = (new CreateSKAdNetworkConversionValueSchemaRequest()) - ->setParent($formattedParent) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - - // Call the API and handle any network failures. - try { - /** @var SKAdNetworkConversionValueSchema $response */ - $response = $analyticsAdminServiceClient->createSKAdNetworkConversionValueSchema($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - create_sk_ad_network_conversion_value_schema_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php deleted file mode 100644 index 929e08368698..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php +++ /dev/null @@ -1,90 +0,0 @@ -setFilterClauseType($subpropertyEventFilterFilterClausesFilterClauseType) - ->setFilterExpression($subpropertyEventFilterFilterClausesFilterExpression); - $subpropertyEventFilterFilterClauses = [$subpropertyEventFilterClause,]; - $subpropertyEventFilter = (new SubpropertyEventFilter()) - ->setFilterClauses($subpropertyEventFilterFilterClauses); - $request = (new CreateSubpropertyEventFilterRequest()) - ->setParent($formattedParent) - ->setSubpropertyEventFilter($subpropertyEventFilter); - - // Call the API and handle any network failures. - try { - /** @var SubpropertyEventFilter $response */ - $response = $analyticsAdminServiceClient->createSubpropertyEventFilter($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $subpropertyEventFilterFilterClausesFilterClauseType = FilterClauseType::FILTER_CLAUSE_TYPE_UNSPECIFIED; - - create_subproperty_event_filter_sample( - $formattedParent, - $subpropertyEventFilterFilterClausesFilterClauseType - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php deleted file mode 100644 index c7b6e02d482f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteAccessBinding($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - - delete_access_binding_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php deleted file mode 100644 index ca9a1177ccbf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteAccount($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - delete_account_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php deleted file mode 100644 index 0844f39a24fc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteAdSenseLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - - delete_ad_sense_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php deleted file mode 100644 index 602fd5305708..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteBigQueryLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - - delete_big_query_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_calculated_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_calculated_metric.php deleted file mode 100644 index 851bdbfeed77..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_calculated_metric.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteCalculatedMetric($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::calculatedMetricName( - '[PROPERTY]', - '[CALCULATED_METRIC]' - ); - - delete_calculated_metric_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php deleted file mode 100644 index 428f3a5ee6e6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteChannelGroup($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - - delete_channel_group_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php deleted file mode 100644 index f1ed8c2e4fa4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php +++ /dev/null @@ -1,56 +0,0 @@ -deleteConnectedSiteTag($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConnectedSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php deleted file mode 100644 index 4e5d81644cb5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteConversionEvent($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - delete_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php deleted file mode 100644 index 5a5f4d0963c7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteDataStream($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - delete_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php deleted file mode 100644 index a1c85ce2b065..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK]' - ); - - delete_display_video360_advertiser_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php deleted file mode 100644 index 9235f5f6d000..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLinkProposal($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - delete_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php deleted file mode 100644 index 5c8e781e4948..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteEventCreateRule($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::eventCreateRuleName( - '[PROPERTY]', - '[DATA_STREAM]', - '[EVENT_CREATE_RULE]' - ); - - delete_event_create_rule_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php deleted file mode 100644 index e7c754b51bd5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteEventEditRule($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::eventEditRuleName( - '[PROPERTY]', - '[DATA_STREAM]', - '[EVENT_EDIT_RULE]' - ); - - delete_event_edit_rule_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php deleted file mode 100644 index 0a5392ca1149..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteExpandedDataSet($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::expandedDataSetName( - '[PROPERTY]', - '[EXPANDED_DATA_SET]' - ); - - delete_expanded_data_set_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php deleted file mode 100644 index 247c1f498ce8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteFirebaseLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - - delete_firebase_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php deleted file mode 100644 index 3cfddf2c1be2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteGoogleAdsLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - - delete_google_ads_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php deleted file mode 100644 index 9b897cc93f37..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteKeyEvent($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::keyEventName('[PROPERTY]', '[KEY_EVENT]'); - - delete_key_event_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php deleted file mode 100644 index fd09568e628d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - delete_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php deleted file mode 100644 index 8978b1d7d42c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->deleteProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - delete_property_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php deleted file mode 100644 index b517caf415d7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteRollupPropertySourceLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::rollupPropertySourceLinkName( - '[PROPERTY]', - '[ROLLUP_PROPERTY_SOURCE_LINK]' - ); - - delete_rollup_property_source_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php deleted file mode 100644 index 08ce4132705b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteSearchAds360Link($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::searchAds360LinkName( - '[PROPERTY]', - '[SEARCH_ADS_360_LINK]' - ); - - delete_search_ads360_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index 15c871b2513f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteSKAdNetworkConversionValueSchema($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName( - '[PROPERTY]', - '[DATA_STREAM]', - '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]' - ); - - delete_sk_ad_network_conversion_value_schema_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php deleted file mode 100644 index 7817cf51755d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteSubpropertyEventFilter($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::subpropertyEventFilterName( - '[PROPERTY]', - '[SUB_PROPERTY_EVENT_FILTER]' - ); - - delete_subproperty_event_filter_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php deleted file mode 100644 index b88a4ce90e76..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php +++ /dev/null @@ -1,75 +0,0 @@ -setProperty($property); - - // Call the API and handle any network failures. - try { - /** @var FetchAutomatedGa4ConfigurationOptOutResponse $response */ - $response = $analyticsAdminServiceClient->fetchAutomatedGa4ConfigurationOptOut($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $property = '[PROPERTY]'; - - fetch_automated_ga4_configuration_opt_out_sample($property); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchAutomatedGa4ConfigurationOptOut_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php deleted file mode 100644 index 02efc939831f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php +++ /dev/null @@ -1,76 +0,0 @@ -setProperty($formattedProperty); - - // Call the API and handle any network failures. - try { - /** @var FetchConnectedGa4PropertyResponse $response */ - $response = $analyticsAdminServiceClient->fetchConnectedGa4Property($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - fetch_connected_ga4_property_sample($formattedProperty); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_FetchConnectedGa4Property_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php deleted file mode 100644 index ac9d62716d25..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AccessBinding $response */ - $response = $analyticsAdminServiceClient->getAccessBinding($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - - get_access_binding_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php deleted file mode 100644 index 467877f030c2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_account.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Account $response */ - $response = $analyticsAdminServiceClient->getAccount($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - get_account_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php deleted file mode 100644 index f135af8a011a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AdSenseLink $response */ - $response = $analyticsAdminServiceClient->getAdSenseLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - - get_ad_sense_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php deleted file mode 100644 index 2eeca8bd7202..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AttributionSettings $response */ - $response = $analyticsAdminServiceClient->getAttributionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::attributionSettingsName('[PROPERTY]'); - - get_attribution_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php deleted file mode 100644 index 4fa775c13386..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Audience $response */ - $response = $analyticsAdminServiceClient->getAudience($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::audienceName('[PROPERTY]', '[AUDIENCE]'); - - get_audience_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php deleted file mode 100644 index f0c5f36506fe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var BigQueryLink $response */ - $response = $analyticsAdminServiceClient->getBigQueryLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - - get_big_query_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_calculated_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_calculated_metric.php deleted file mode 100644 index 84bd845aea62..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_calculated_metric.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CalculatedMetric $response */ - $response = $analyticsAdminServiceClient->getCalculatedMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::calculatedMetricName( - '[PROPERTY]', - '[CALCULATED_METRIC]' - ); - - get_calculated_metric_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php deleted file mode 100644 index 7ecb581e7461..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ChannelGroup $response */ - $response = $analyticsAdminServiceClient->getChannelGroup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - - get_channel_group_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php deleted file mode 100644 index 1811a012d7cf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->getConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - get_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php deleted file mode 100644 index 6f2880172eeb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->getCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - get_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php deleted file mode 100644 index 2524bf9aa17a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->getCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - get_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php deleted file mode 100644 index 6fc4aaf581d2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataRedactionSettings $response */ - $response = $analyticsAdminServiceClient->getDataRedactionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataRedactionSettingsName( - '[PROPERTY]', - '[DATA_STREAM]' - ); - - get_data_redaction_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php deleted file mode 100644 index 5f5a800afdd2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataRetentionSettings $response */ - $response = $analyticsAdminServiceClient->getDataRetentionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataRetentionSettingsName('[PROPERTY]'); - - get_data_retention_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php deleted file mode 100644 index d2256ead2d52..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataSharingSettings $response */ - $response = $analyticsAdminServiceClient->getDataSharingSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataSharingSettingsName('[ACCOUNT]'); - - get_data_sharing_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php deleted file mode 100644 index 90cdddad8166..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->getDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - get_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php deleted file mode 100644 index 46bac71cd68d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DisplayVideo360AdvertiserLink $response */ - $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK]' - ); - - get_display_video360_advertiser_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php deleted file mode 100644 index f5e7271b0d7d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DisplayVideo360AdvertiserLinkProposal $response */ - $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLinkProposal($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::displayVideo360AdvertiserLinkProposalName( - '[PROPERTY]', - '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]' - ); - - get_display_video360_advertiser_link_proposal_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php deleted file mode 100644 index 10f535a6dde6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EnhancedMeasurementSettings $response */ - $response = $analyticsAdminServiceClient->getEnhancedMeasurementSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::enhancedMeasurementSettingsName( - '[PROPERTY]', - '[DATA_STREAM]' - ); - - get_enhanced_measurement_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php deleted file mode 100644 index d093dfe46675..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EventCreateRule $response */ - $response = $analyticsAdminServiceClient->getEventCreateRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::eventCreateRuleName( - '[PROPERTY]', - '[DATA_STREAM]', - '[EVENT_CREATE_RULE]' - ); - - get_event_create_rule_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php deleted file mode 100644 index 227e79f09958..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EventEditRule $response */ - $response = $analyticsAdminServiceClient->getEventEditRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::eventEditRuleName( - '[PROPERTY]', - '[DATA_STREAM]', - '[EVENT_EDIT_RULE]' - ); - - get_event_edit_rule_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php deleted file mode 100644 index b98a06e58bc7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ExpandedDataSet $response */ - $response = $analyticsAdminServiceClient->getExpandedDataSet($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::expandedDataSetName( - '[PROPERTY]', - '[EXPANDED_DATA_SET]' - ); - - get_expanded_data_set_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php deleted file mode 100644 index db7dd4aeb1b7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GlobalSiteTag $response */ - $response = $analyticsAdminServiceClient->getGlobalSiteTag($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - - get_global_site_tag_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php deleted file mode 100644 index c7e5ec3442df..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GoogleSignalsSettings $response */ - $response = $analyticsAdminServiceClient->getGoogleSignalsSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::googleSignalsSettingsName('[PROPERTY]'); - - get_google_signals_settings_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php deleted file mode 100644 index 157ac2ee0c80..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var KeyEvent $response */ - $response = $analyticsAdminServiceClient->getKeyEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::keyEventName('[PROPERTY]', '[KEY_EVENT]'); - - get_key_event_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php deleted file mode 100644 index 552696c3affa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - get_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php deleted file mode 100644 index 0e4ea553c802..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_property.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->getProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - get_property_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php deleted file mode 100644 index 1d41c0ecdaa0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var RollupPropertySourceLink $response */ - $response = $analyticsAdminServiceClient->getRollupPropertySourceLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::rollupPropertySourceLinkName( - '[PROPERTY]', - '[ROLLUP_PROPERTY_SOURCE_LINK]' - ); - - get_rollup_property_source_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php deleted file mode 100644 index a937973cb022..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SearchAds360Link $response */ - $response = $analyticsAdminServiceClient->getSearchAds360Link($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::searchAds360LinkName( - '[PROPERTY]', - '[SEARCH_ADS_360_LINK]' - ); - - get_search_ads360_link_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index cb74a4ef1717..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SKAdNetworkConversionValueSchema $response */ - $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::sKAdNetworkConversionValueSchemaName( - '[PROPERTY]', - '[DATA_STREAM]', - '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]' - ); - - get_sk_ad_network_conversion_value_schema_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_subproperty_event_filter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_subproperty_event_filter.php deleted file mode 100644 index 5ff23953d632..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/get_subproperty_event_filter.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SubpropertyEventFilter $response */ - $response = $analyticsAdminServiceClient->getSubpropertyEventFilter($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::subpropertyEventFilterName( - '[PROPERTY]', - '[SUB_PROPERTY_EVENT_FILTER]' - ); - - get_subproperty_event_filter_sample($formattedName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php deleted file mode 100644 index 11e0ac16fdd4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listAccessBindings($request); - - /** @var AccessBinding $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - list_access_bindings_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php deleted file mode 100644 index f499321817c7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php +++ /dev/null @@ -1,62 +0,0 @@ -listAccountSummaries($request); - - /** @var AccountSummary $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php deleted file mode 100644 index b3ce0488a14b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php +++ /dev/null @@ -1,66 +0,0 @@ -listAccounts($request); - - /** @var Account $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php deleted file mode 100644 index f171149e5016..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listAdSenseLinks($request); - - /** @var AdSenseLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_ad_sense_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php deleted file mode 100644 index 80b24747e1a4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listAudiences($request); - - /** @var Audience $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_audiences_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php deleted file mode 100644 index e65cb11d3ec2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listBigQueryLinks($request); - - /** @var BigQueryLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_big_query_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_calculated_metrics.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_calculated_metrics.php deleted file mode 100644 index f140df8b4c96..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_calculated_metrics.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listCalculatedMetrics($request); - - /** @var CalculatedMetric $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_calculated_metrics_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php deleted file mode 100644 index 5d5ff03169e7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listChannelGroups($request); - - /** @var ChannelGroup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_channel_groups_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php deleted file mode 100644 index 3a76a6c5a887..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php +++ /dev/null @@ -1,59 +0,0 @@ -listConnectedSiteTags($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConnectedSiteTags_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php deleted file mode 100644 index 4eb1e19fda62..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listConversionEvents($request); - - /** @var ConversionEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_conversion_events_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php deleted file mode 100644 index a9c6e1eebc7f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listCustomDimensions($request); - - /** @var CustomDimension $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_dimensions_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php deleted file mode 100644 index b2114cb20c99..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listCustomMetrics($request); - - /** @var CustomMetric $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_metrics_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php deleted file mode 100644 index fe391ac7b38d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listDataStreams($request); - - /** @var DataStream $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_data_streams_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php deleted file mode 100644 index 156de97a3a8e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($request); - - /** @var DisplayVideo360AdvertiserLinkProposal $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_display_video360_advertiser_link_proposals_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php deleted file mode 100644 index 494b65c60d3e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($request); - - /** @var DisplayVideo360AdvertiserLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_display_video360_advertiser_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php deleted file mode 100644 index 98dabc66f91f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listEventCreateRules($request); - - /** @var EventCreateRule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_event_create_rules_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php deleted file mode 100644 index eb16f295457e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listEventEditRules($request); - - /** @var EventEditRule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_event_edit_rules_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php deleted file mode 100644 index bcdba6aa98b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listExpandedDataSets($request); - - /** @var ExpandedDataSet $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_expanded_data_sets_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php deleted file mode 100644 index f1e3707d37d1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listFirebaseLinks($request); - - /** @var FirebaseLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_firebase_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php deleted file mode 100644 index 8bf848808270..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listGoogleAdsLinks($request); - - /** @var GoogleAdsLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_google_ads_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php deleted file mode 100644 index 5115b81efd97..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listKeyEvents($request); - - /** @var KeyEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_key_events_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php deleted file mode 100644 index 35482f7e5fd5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($request); - - /** @var MeasurementProtocolSecret $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_measurement_protocol_secrets_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php deleted file mode 100644 index 2a4f24ae6984..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php +++ /dev/null @@ -1,95 +0,0 @@ -setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listProperties($request); - - /** @var Property $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $filter = '[FILTER]'; - - list_properties_sample($filter); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php deleted file mode 100644 index 064b5b4f4c6a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listRollupPropertySourceLinks($request); - - /** @var RollupPropertySourceLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_rollup_property_source_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php deleted file mode 100644 index 1348e268a2f6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listSearchAds360Links($request); - - /** @var SearchAds360Link $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_search_ads360_links_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php deleted file mode 100644 index 8336d6bc47ee..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($request); - - /** @var SKAdNetworkConversionValueSchema $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_sk_ad_network_conversion_value_schemas_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_subproperty_event_filters.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_subproperty_event_filters.php deleted file mode 100644 index eda92e0a46ee..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/list_subproperty_event_filters.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listSubpropertyEventFilters($request); - - /** @var SubpropertyEventFilter $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_subproperty_event_filters_sample($formattedParent); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php deleted file mode 100644 index e0bb929b4653..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php +++ /dev/null @@ -1,57 +0,0 @@ -provisionAccountTicket($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php deleted file mode 100644 index efced67c49a2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php +++ /dev/null @@ -1,89 +0,0 @@ -setDisplayName($subpropertyDisplayName) - ->setTimeZone($subpropertyTimeZone); - $request = (new ProvisionSubpropertyRequest()) - ->setSubproperty($subproperty); - - // Call the API and handle any network failures. - try { - /** @var ProvisionSubpropertyResponse $response */ - $response = $analyticsAdminServiceClient->provisionSubproperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $subpropertyDisplayName = '[DISPLAY_NAME]'; - $subpropertyTimeZone = '[TIME_ZONE]'; - - provision_subproperty_sample($subpropertyDisplayName, $subpropertyTimeZone); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php deleted file mode 100644 index 03b7503be467..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent) - ->setEventEditRules($eventEditRules); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->reorderEventEditRules($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRulesElement = '[EVENT_EDIT_RULES]'; - - reorder_event_edit_rules_sample($formattedParent, $eventEditRulesElement); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php deleted file mode 100644 index 6dba54d8c53b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php +++ /dev/null @@ -1,71 +0,0 @@ -runAccessReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php deleted file mode 100644 index a4c458b673df..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php +++ /dev/null @@ -1,80 +0,0 @@ -setAccount($formattedAccount); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->searchChangeHistoryEvents($request); - - /** @var ChangeHistoryEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedAccount = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - search_change_history_events_sample($formattedAccount); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php deleted file mode 100644 index cda6a70f1510..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php +++ /dev/null @@ -1,75 +0,0 @@ -setProperty($property); - - // Call the API and handle any network failures. - try { - /** @var SetAutomatedGa4ConfigurationOptOutResponse $response */ - $response = $analyticsAdminServiceClient->setAutomatedGa4ConfigurationOptOut($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $property = '[PROPERTY]'; - - set_automated_ga4_configuration_opt_out_sample($property); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SetAutomatedGa4ConfigurationOptOut_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php deleted file mode 100644 index c1feb627674a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php +++ /dev/null @@ -1,59 +0,0 @@ -setAccessBinding($accessBinding); - - // Call the API and handle any network failures. - try { - /** @var AccessBinding $response */ - $response = $analyticsAdminServiceClient->updateAccessBinding($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php deleted file mode 100644 index 371013c62d65..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php +++ /dev/null @@ -1,75 +0,0 @@ -setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Account $response */ - $response = $analyticsAdminServiceClient->updateAccount($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $accountDisplayName = '[DISPLAY_NAME]'; - - update_account_sample($accountDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php deleted file mode 100644 index fa9a53e5d12f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php +++ /dev/null @@ -1,107 +0,0 @@ -setAcquisitionConversionEventLookbackWindow( - $attributionSettingsAcquisitionConversionEventLookbackWindow - ) - ->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow) - ->setReportingAttributionModel($attributionSettingsReportingAttributionModel) - ->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - $request = (new UpdateAttributionSettingsRequest()) - ->setAttributionSettings($attributionSettings) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var AttributionSettings $response */ - $response = $analyticsAdminServiceClient->updateAttributionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - - update_attribution_settings_sample( - $attributionSettingsAcquisitionConversionEventLookbackWindow, - $attributionSettingsOtherConversionEventLookbackWindow, - $attributionSettingsReportingAttributionModel, - $attributionSettingsAdsWebConversionDataExportScope - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php deleted file mode 100644 index ac065a497037..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php +++ /dev/null @@ -1,99 +0,0 @@ -setClauseType($audienceFilterClausesClauseType); - $audienceFilterClauses = [$audienceFilterClause,]; - $audience = (new Audience()) - ->setDisplayName($audienceDisplayName) - ->setDescription($audienceDescription) - ->setMembershipDurationDays($audienceMembershipDurationDays) - ->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - $request = (new UpdateAudienceRequest()) - ->setAudience($audience) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Audience $response */ - $response = $analyticsAdminServiceClient->updateAudience($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $audienceDisplayName = '[DISPLAY_NAME]'; - $audienceDescription = '[DESCRIPTION]'; - $audienceMembershipDurationDays = 0; - $audienceFilterClausesClauseType = AudienceClauseType::AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; - - update_audience_sample( - $audienceDisplayName, - $audienceDescription, - $audienceMembershipDurationDays, - $audienceFilterClausesClauseType - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php deleted file mode 100644 index cb862d87f7b8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php +++ /dev/null @@ -1,77 +0,0 @@ -setDatasetLocation($bigqueryLinkDatasetLocation); - $updateMask = new FieldMask(); - $request = (new UpdateBigQueryLinkRequest()) - ->setBigqueryLink($bigqueryLink) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var BigQueryLink $response */ - $response = $analyticsAdminServiceClient->updateBigQueryLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $bigqueryLinkDatasetLocation = '[DATASET_LOCATION]'; - - update_big_query_link_sample($bigqueryLinkDatasetLocation); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_calculated_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_calculated_metric.php deleted file mode 100644 index 3d911647f31d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_calculated_metric.php +++ /dev/null @@ -1,96 +0,0 @@ -setDisplayName($calculatedMetricDisplayName) - ->setMetricUnit($calculatedMetricMetricUnit) - ->setFormula($calculatedMetricFormula); - $updateMask = new FieldMask(); - $request = (new UpdateCalculatedMetricRequest()) - ->setCalculatedMetric($calculatedMetric) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var CalculatedMetric $response */ - $response = $analyticsAdminServiceClient->updateCalculatedMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $calculatedMetricDisplayName = '[DISPLAY_NAME]'; - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetricFormula = '[FORMULA]'; - - update_calculated_metric_sample( - $calculatedMetricDisplayName, - $calculatedMetricMetricUnit, - $calculatedMetricFormula - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php deleted file mode 100644 index ab2447f0ec05..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php +++ /dev/null @@ -1,88 +0,0 @@ -setDisplayName($channelGroupGroupingRuleDisplayName) - ->setExpression($channelGroupGroupingRuleExpression); - $channelGroupGroupingRule = [$groupingRule,]; - $channelGroup = (new ChannelGroup()) - ->setDisplayName($channelGroupDisplayName) - ->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - $request = (new UpdateChannelGroupRequest()) - ->setChannelGroup($channelGroup) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var ChannelGroup $response */ - $response = $analyticsAdminServiceClient->updateChannelGroup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $channelGroupDisplayName = '[DISPLAY_NAME]'; - $channelGroupGroupingRuleDisplayName = '[DISPLAY_NAME]'; - - update_channel_group_sample($channelGroupDisplayName, $channelGroupGroupingRuleDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php deleted file mode 100644 index c7b86ca8e709..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php +++ /dev/null @@ -1,63 +0,0 @@ -setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->updateConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php deleted file mode 100644 index d92b511b56a5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->updateCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php deleted file mode 100644 index 51a785b4986d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->updateCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php deleted file mode 100644 index fcff6cadc31e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php +++ /dev/null @@ -1,62 +0,0 @@ -setDataRedactionSettings($dataRedactionSettings) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DataRedactionSettings $response */ - $response = $analyticsAdminServiceClient->updateDataRedactionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php deleted file mode 100644 index db865c654b5d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php +++ /dev/null @@ -1,62 +0,0 @@ -setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DataRetentionSettings $response */ - $response = $analyticsAdminServiceClient->updateDataRetentionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php deleted file mode 100644 index 12a60a10f245..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->updateDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php deleted file mode 100644 index 078e78d35627..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DisplayVideo360AdvertiserLink $response */ - $response = $analyticsAdminServiceClient->updateDisplayVideo360AdvertiserLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php deleted file mode 100644 index 61bedfd4a8a3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php +++ /dev/null @@ -1,79 +0,0 @@ -setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - $request = (new UpdateEnhancedMeasurementSettingsRequest()) - ->setEnhancedMeasurementSettings($enhancedMeasurementSettings) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var EnhancedMeasurementSettings $response */ - $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $enhancedMeasurementSettingsSearchQueryParameter = '[SEARCH_QUERY_PARAMETER]'; - - update_enhanced_measurement_settings_sample($enhancedMeasurementSettingsSearchQueryParameter); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php deleted file mode 100644 index a5e5dfd37926..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php +++ /dev/null @@ -1,110 +0,0 @@ -setField($eventCreateRuleEventConditionsField) - ->setComparisonType($eventCreateRuleEventConditionsComparisonType) - ->setValue($eventCreateRuleEventConditionsValue); - $eventCreateRuleEventConditions = [$matchingCondition,]; - $eventCreateRule = (new EventCreateRule()) - ->setDestinationEvent($eventCreateRuleDestinationEvent) - ->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - $request = (new UpdateEventCreateRuleRequest()) - ->setEventCreateRule($eventCreateRule) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var EventCreateRule $response */ - $response = $analyticsAdminServiceClient->updateEventCreateRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $eventCreateRuleDestinationEvent = '[DESTINATION_EVENT]'; - $eventCreateRuleEventConditionsField = '[FIELD]'; - $eventCreateRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; - $eventCreateRuleEventConditionsValue = '[VALUE]'; - - update_event_create_rule_sample( - $eventCreateRuleDestinationEvent, - $eventCreateRuleEventConditionsField, - $eventCreateRuleEventConditionsComparisonType, - $eventCreateRuleEventConditionsValue - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php deleted file mode 100644 index 04dd92c05351..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php +++ /dev/null @@ -1,131 +0,0 @@ -setField($eventEditRuleEventConditionsField) - ->setComparisonType($eventEditRuleEventConditionsComparisonType) - ->setValue($eventEditRuleEventConditionsValue); - $eventEditRuleEventConditions = [$matchingCondition,]; - $parameterMutation = (new ParameterMutation()) - ->setParameter($eventEditRuleParameterMutationsParameter) - ->setParameterValue($eventEditRuleParameterMutationsParameterValue); - $eventEditRuleParameterMutations = [$parameterMutation,]; - $eventEditRule = (new EventEditRule()) - ->setDisplayName($eventEditRuleDisplayName) - ->setEventConditions($eventEditRuleEventConditions) - ->setParameterMutations($eventEditRuleParameterMutations); - $updateMask = new FieldMask(); - $request = (new UpdateEventEditRuleRequest()) - ->setEventEditRule($eventEditRule) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var EventEditRule $response */ - $response = $analyticsAdminServiceClient->updateEventEditRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $eventEditRuleDisplayName = '[DISPLAY_NAME]'; - $eventEditRuleEventConditionsField = '[FIELD]'; - $eventEditRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED; - $eventEditRuleEventConditionsValue = '[VALUE]'; - $eventEditRuleParameterMutationsParameter = '[PARAMETER]'; - $eventEditRuleParameterMutationsParameterValue = '[PARAMETER_VALUE]'; - - update_event_edit_rule_sample( - $eventEditRuleDisplayName, - $eventEditRuleEventConditionsField, - $eventEditRuleEventConditionsComparisonType, - $eventEditRuleEventConditionsValue, - $eventEditRuleParameterMutationsParameter, - $eventEditRuleParameterMutationsParameterValue - ); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php deleted file mode 100644 index ab10fbbbd689..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php +++ /dev/null @@ -1,76 +0,0 @@ -setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateExpandedDataSetRequest()) - ->setExpandedDataSet($expandedDataSet) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var ExpandedDataSet $response */ - $response = $analyticsAdminServiceClient->updateExpandedDataSet($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $expandedDataSetDisplayName = '[DISPLAY_NAME]'; - - update_expanded_data_set_sample($expandedDataSetDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php deleted file mode 100644 index f1faa59400b5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var GoogleAdsLink $response */ - $response = $analyticsAdminServiceClient->updateGoogleAdsLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php deleted file mode 100644 index cd8dbd68962b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php +++ /dev/null @@ -1,62 +0,0 @@ -setGoogleSignalsSettings($googleSignalsSettings) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var GoogleSignalsSettings $response */ - $response = $analyticsAdminServiceClient->updateGoogleSignalsSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php deleted file mode 100644 index ee0863969287..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php +++ /dev/null @@ -1,77 +0,0 @@ -setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $request = (new UpdateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var KeyEvent $response */ - $response = $analyticsAdminServiceClient->updateKeyEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - - update_key_event_sample($keyEventCountingMethod); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php deleted file mode 100644 index 3a730a4ea87c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php +++ /dev/null @@ -1,76 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - update_measurement_protocol_secret_sample($measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php deleted file mode 100644 index 72edebd41bd7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php +++ /dev/null @@ -1,88 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->updateProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - update_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php deleted file mode 100644 index b57dec0a2871..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var SearchAds360Link $response */ - $response = $analyticsAdminServiceClient->updateSearchAds360Link($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php deleted file mode 100644 index 72da0c7acf73..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php +++ /dev/null @@ -1,65 +0,0 @@ -setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - $request = (new UpdateSKAdNetworkConversionValueSchemaRequest()) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var SKAdNetworkConversionValueSchema $response */ - $response = $analyticsAdminServiceClient->updateSKAdNetworkConversionValueSchema($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_subproperty_event_filter.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_subproperty_event_filter.php deleted file mode 100644 index 1a7e1c32fe39..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/samples/V1alpha/AnalyticsAdminServiceClient/update_subproperty_event_filter.php +++ /dev/null @@ -1,84 +0,0 @@ -setFilterClauseType($subpropertyEventFilterFilterClausesFilterClauseType) - ->setFilterExpression($subpropertyEventFilterFilterClausesFilterExpression); - $subpropertyEventFilterFilterClauses = [$subpropertyEventFilterClause,]; - $subpropertyEventFilter = (new SubpropertyEventFilter()) - ->setFilterClauses($subpropertyEventFilterFilterClauses); - $updateMask = new FieldMask(); - $request = (new UpdateSubpropertyEventFilterRequest()) - ->setSubpropertyEventFilter($subpropertyEventFilter) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var SubpropertyEventFilter $response */ - $response = $analyticsAdminServiceClient->updateSubpropertyEventFilter($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $subpropertyEventFilterFilterClausesFilterClauseType = FilterClauseType::FILTER_CLAUSE_TYPE_UNSPECIFIED; - - update_subproperty_event_filter_sample($subpropertyEventFilterFilterClausesFilterClauseType); -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php deleted file mode 100644 index f5442bfb4df0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/AnalyticsAdminServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ - acknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface approveDisplayVideo360AdvertiserLinkProposalAsync(ApproveDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveAudienceAsync(ArchiveAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomDimensionAsync(ArchiveCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomMetricAsync(ArchiveCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchCreateAccessBindingsAsync(BatchCreateAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchDeleteAccessBindingsAsync(BatchDeleteAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchGetAccessBindingsAsync(BatchGetAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchUpdateAccessBindingsAsync(BatchUpdateAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelDisplayVideo360AdvertiserLinkProposalAsync(CancelDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAccessBindingAsync(CreateAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAdSenseLinkAsync(CreateAdSenseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAudienceAsync(CreateAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBigQueryLinkAsync(CreateBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCalculatedMetricAsync(CreateCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createChannelGroupAsync(CreateChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConnectedSiteTagAsync(CreateConnectedSiteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConversionEventAsync(CreateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomDimensionAsync(CreateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomMetricAsync(CreateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataStreamAsync(CreateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDisplayVideo360AdvertiserLinkAsync(CreateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDisplayVideo360AdvertiserLinkProposalAsync(CreateDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEventCreateRuleAsync(CreateEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEventEditRuleAsync(CreateEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface createExpandedDataSetAsync(CreateExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFirebaseLinkAsync(CreateFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createKeyEventAsync(CreateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPropertyAsync(CreatePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRollupPropertyAsync(CreateRollupPropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRollupPropertySourceLinkAsync(CreateRollupPropertySourceLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSKAdNetworkConversionValueSchemaAsync(CreateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSearchAds360LinkAsync(CreateSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSubpropertyEventFilterAsync(CreateSubpropertyEventFilterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessBindingAsync(DeleteAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccountAsync(DeleteAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAdSenseLinkAsync(DeleteAdSenseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBigQueryLinkAsync(DeleteBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteCalculatedMetricAsync(DeleteCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteChannelGroupAsync(DeleteChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectedSiteTagAsync(DeleteConnectedSiteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversionEventAsync(DeleteConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataStreamAsync(DeleteDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDisplayVideo360AdvertiserLinkAsync(DeleteDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDisplayVideo360AdvertiserLinkProposalAsync(DeleteDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEventCreateRuleAsync(DeleteEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEventEditRuleAsync(DeleteEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteExpandedDataSetAsync(DeleteExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFirebaseLinkAsync(DeleteFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteKeyEventAsync(DeleteKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePropertyAsync(DeletePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRollupPropertySourceLinkAsync(DeleteRollupPropertySourceLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSKAdNetworkConversionValueSchemaAsync(DeleteSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSearchAds360LinkAsync(DeleteSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSubpropertyEventFilterAsync(DeleteSubpropertyEventFilterRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchAutomatedGa4ConfigurationOptOutAsync(FetchAutomatedGa4ConfigurationOptOutRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchConnectedGa4PropertyAsync(FetchConnectedGa4PropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccessBindingAsync(GetAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccountAsync(GetAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAdSenseLinkAsync(GetAdSenseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttributionSettingsAsync(GetAttributionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAudienceAsync(GetAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBigQueryLinkAsync(GetBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCalculatedMetricAsync(GetCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface getChannelGroupAsync(GetChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversionEventAsync(GetConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomDimensionAsync(GetCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomMetricAsync(GetCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataRedactionSettingsAsync(GetDataRedactionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataRetentionSettingsAsync(GetDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataSharingSettingsAsync(GetDataSharingSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataStreamAsync(GetDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDisplayVideo360AdvertiserLinkAsync(GetDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDisplayVideo360AdvertiserLinkProposalAsync(GetDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEventCreateRuleAsync(GetEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEventEditRuleAsync(GetEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getExpandedDataSetAsync(GetExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGlobalSiteTagAsync(GetGlobalSiteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGoogleSignalsSettingsAsync(GetGoogleSignalsSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyEventAsync(GetKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPropertyAsync(GetPropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRollupPropertySourceLinkAsync(GetRollupPropertySourceLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSKAdNetworkConversionValueSchemaAsync(GetSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSearchAds360LinkAsync(GetSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSubpropertyEventFilterAsync(GetSubpropertyEventFilterRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessBindingsAsync(ListAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountSummariesAsync(ListAccountSummariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountsAsync(ListAccountsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAdSenseLinksAsync(ListAdSenseLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAudiencesAsync(ListAudiencesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBigQueryLinksAsync(ListBigQueryLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCalculatedMetricsAsync(ListCalculatedMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listChannelGroupsAsync(ListChannelGroupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectedSiteTagsAsync(ListConnectedSiteTagsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversionEventsAsync(ListConversionEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomDimensionsAsync(ListCustomDimensionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomMetricsAsync(ListCustomMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataStreamsAsync(ListDataStreamsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDisplayVideo360AdvertiserLinkProposalsAsync(ListDisplayVideo360AdvertiserLinkProposalsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDisplayVideo360AdvertiserLinksAsync(ListDisplayVideo360AdvertiserLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEventCreateRulesAsync(ListEventCreateRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEventEditRulesAsync(ListEventEditRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listExpandedDataSetsAsync(ListExpandedDataSetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFirebaseLinksAsync(ListFirebaseLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGoogleAdsLinksAsync(ListGoogleAdsLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listKeyEventsAsync(ListKeyEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMeasurementProtocolSecretsAsync(ListMeasurementProtocolSecretsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPropertiesAsync(ListPropertiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRollupPropertySourceLinksAsync(ListRollupPropertySourceLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSKAdNetworkConversionValueSchemasAsync(ListSKAdNetworkConversionValueSchemasRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSearchAds360LinksAsync(ListSearchAds360LinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSubpropertyEventFiltersAsync(ListSubpropertyEventFiltersRequest $request, array $optionalArgs = []) - * @method PromiseInterface provisionAccountTicketAsync(ProvisionAccountTicketRequest $request, array $optionalArgs = []) - * @method PromiseInterface provisionSubpropertyAsync(ProvisionSubpropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface reorderEventEditRulesAsync(ReorderEventEditRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface runAccessReportAsync(RunAccessReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchChangeHistoryEventsAsync(SearchChangeHistoryEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setAutomatedGa4ConfigurationOptOutAsync(SetAutomatedGa4ConfigurationOptOutRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessBindingAsync(UpdateAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccountAsync(UpdateAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAttributionSettingsAsync(UpdateAttributionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAudienceAsync(UpdateAudienceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBigQueryLinkAsync(UpdateBigQueryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCalculatedMetricAsync(UpdateCalculatedMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateChannelGroupAsync(UpdateChannelGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConversionEventAsync(UpdateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomDimensionAsync(UpdateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomMetricAsync(UpdateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataRedactionSettingsAsync(UpdateDataRedactionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataRetentionSettingsAsync(UpdateDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataStreamAsync(UpdateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDisplayVideo360AdvertiserLinkAsync(UpdateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEventCreateRuleAsync(UpdateEventCreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEventEditRuleAsync(UpdateEventEditRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateExpandedDataSetAsync(UpdateExpandedDataSetRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleSignalsSettingsAsync(UpdateGoogleSignalsSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateKeyEventAsync(UpdateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSKAdNetworkConversionValueSchemaAsync(UpdateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSearchAds360LinkAsync(UpdateSearchAds360LinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSubpropertyEventFilterAsync(UpdateSubpropertyEventFilterRequest $request, array $optionalArgs = []) - */ -final class AnalyticsAdminServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.analytics.admin.v1alpha.AnalyticsAdminService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsadmin.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private 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 function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * access_binding resource. - * - * @param string $account - * @param string $accessBinding - * - * @return string The formatted access_binding resource. - * - * @experimental - */ - public static function accessBindingName(string $account, string $accessBinding): string - { - return self::getPathTemplate('accessBinding')->render([ - 'account' => $account, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName(string $account): string - { - return self::getPathTemplate('account')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * account_access_binding resource. - * - * @param string $account - * @param string $accessBinding - * - * @return string The formatted account_access_binding resource. - * - * @experimental - */ - public static function accountAccessBindingName(string $account, string $accessBinding): string - { - return self::getPathTemplate('accountAccessBinding')->render([ - 'account' => $account, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * ad_sense_link resource. - * - * @param string $property - * @param string $adsenseLink - * - * @return string The formatted ad_sense_link resource. - * - * @experimental - */ - public static function adSenseLinkName(string $property, string $adsenseLink): string - { - return self::getPathTemplate('adSenseLink')->render([ - 'property' => $property, - 'adsense_link' => $adsenseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * attribution_settings resource. - * - * @param string $property - * - * @return string The formatted attribution_settings resource. - * - * @experimental - */ - public static function attributionSettingsName(string $property): string - { - return self::getPathTemplate('attributionSettings')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a audience - * resource. - * - * @param string $property - * @param string $audience - * - * @return string The formatted audience resource. - * - * @experimental - */ - public static function audienceName(string $property, string $audience): string - { - return self::getPathTemplate('audience')->render([ - 'property' => $property, - 'audience' => $audience, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * big_query_link resource. - * - * @param string $property - * @param string $bigqueryLink - * - * @return string The formatted big_query_link resource. - * - * @experimental - */ - public static function bigQueryLinkName(string $property, string $bigqueryLink): string - { - return self::getPathTemplate('bigQueryLink')->render([ - 'property' => $property, - 'bigquery_link' => $bigqueryLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * calculated_metric resource. - * - * @param string $property - * @param string $calculatedMetric - * - * @return string The formatted calculated_metric resource. - * - * @experimental - */ - public static function calculatedMetricName(string $property, string $calculatedMetric): string - { - return self::getPathTemplate('calculatedMetric')->render([ - 'property' => $property, - 'calculated_metric' => $calculatedMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * channel_group resource. - * - * @param string $property - * @param string $channelGroup - * - * @return string The formatted channel_group resource. - * - * @experimental - */ - public static function channelGroupName(string $property, string $channelGroup): string - { - return self::getPathTemplate('channelGroup')->render([ - 'property' => $property, - 'channel_group' => $channelGroup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conversion_event resource. - * - * @param string $property - * @param string $conversionEvent - * - * @return string The formatted conversion_event resource. - * - * @experimental - */ - public static function conversionEventName(string $property, string $conversionEvent): string - { - return self::getPathTemplate('conversionEvent')->render([ - 'property' => $property, - 'conversion_event' => $conversionEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_dimension resource. - * - * @param string $property - * @param string $customDimension - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName(string $property, string $customDimension): string - { - return self::getPathTemplate('customDimension')->render([ - 'property' => $property, - 'custom_dimension' => $customDimension, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * @param string $customMetric - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName(string $property, string $customMetric): string - { - return self::getPathTemplate('customMetric')->render([ - 'property' => $property, - 'custom_metric' => $customMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_redaction_settings resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_redaction_settings resource. - * - * @experimental - */ - public static function dataRedactionSettingsName(string $property, string $dataStream): string - { - return self::getPathTemplate('dataRedactionSettings')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_retention_settings resource. - * - * @param string $property - * - * @return string The formatted data_retention_settings resource. - * - * @experimental - */ - public static function dataRetentionSettingsName(string $property): string - { - return self::getPathTemplate('dataRetentionSettings')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_sharing_settings resource. - * - * @param string $account - * - * @return string The formatted data_sharing_settings resource. - * - * @experimental - */ - public static function dataSharingSettingsName(string $account): string - { - return self::getPathTemplate('dataSharingSettings')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_stream - * resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_stream resource. - * - * @experimental - */ - public static function dataStreamName(string $property, string $dataStream): string - { - return self::getPathTemplate('dataStream')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * 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(string $property, string $displayVideo360AdvertiserLink): string - { - return self::getPathTemplate('displayVideo360AdvertiserLink')->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(string $property, string $displayVideo360AdvertiserLinkProposal): string - { - return self::getPathTemplate('displayVideo360AdvertiserLinkProposal')->render([ - 'property' => $property, - 'display_video_360_advertiser_link_proposal' => $displayVideo360AdvertiserLinkProposal, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * enhanced_measurement_settings resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted enhanced_measurement_settings resource. - * - * @experimental - */ - public static function enhancedMeasurementSettingsName(string $property, string $dataStream): string - { - return self::getPathTemplate('enhancedMeasurementSettings')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * event_create_rule resource. - * - * @param string $property - * @param string $dataStream - * @param string $eventCreateRule - * - * @return string The formatted event_create_rule resource. - * - * @experimental - */ - public static function eventCreateRuleName(string $property, string $dataStream, string $eventCreateRule): string - { - return self::getPathTemplate('eventCreateRule')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'event_create_rule' => $eventCreateRule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * event_edit_rule resource. - * - * @param string $property - * @param string $dataStream - * @param string $eventEditRule - * - * @return string The formatted event_edit_rule resource. - * - * @experimental - */ - public static function eventEditRuleName(string $property, string $dataStream, string $eventEditRule): string - { - return self::getPathTemplate('eventEditRule')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'event_edit_rule' => $eventEditRule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * expanded_data_set resource. - * - * @param string $property - * @param string $expandedDataSet - * - * @return string The formatted expanded_data_set resource. - * - * @experimental - */ - public static function expandedDataSetName(string $property, string $expandedDataSet): string - { - return self::getPathTemplate('expandedDataSet')->render([ - 'property' => $property, - 'expanded_data_set' => $expandedDataSet, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * firebase_link resource. - * - * @param string $property - * @param string $firebaseLink - * - * @return string The formatted firebase_link resource. - * - * @experimental - */ - public static function firebaseLinkName(string $property, string $firebaseLink): string - { - return self::getPathTemplate('firebaseLink')->render([ - 'property' => $property, - 'firebase_link' => $firebaseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * global_site_tag resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted global_site_tag resource. - * - * @experimental - */ - public static function globalSiteTagName(string $property, string $dataStream): string - { - return self::getPathTemplate('globalSiteTag')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_ads_link resource. - * - * @param string $property - * @param string $googleAdsLink - * - * @return string The formatted google_ads_link resource. - * - * @experimental - */ - public static function googleAdsLinkName(string $property, string $googleAdsLink): string - { - return self::getPathTemplate('googleAdsLink')->render([ - 'property' => $property, - 'google_ads_link' => $googleAdsLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_signals_settings resource. - * - * @param string $property - * - * @return string The formatted google_signals_settings resource. - * - * @experimental - */ - public static function googleSignalsSettingsName(string $property): string - { - return self::getPathTemplate('googleSignalsSettings')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a key_event - * resource. - * - * @param string $property - * @param string $keyEvent - * - * @return string The formatted key_event resource. - * - * @experimental - */ - public static function keyEventName(string $property, string $keyEvent): string - { - return self::getPathTemplate('keyEvent')->render([ - 'property' => $property, - 'key_event' => $keyEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $dataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName(string $property, string $dataStream, string $measurementProtocolSecret): string - { - return self::getPathTemplate('measurementProtocolSecret')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'measurement_protocol_secret' => $measurementProtocolSecret, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - * - * @experimental - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName(string $property): string - { - return self::getPathTemplate('property')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * property_access_binding resource. - * - * @param string $property - * @param string $accessBinding - * - * @return string The formatted property_access_binding resource. - * - * @experimental - */ - public static function propertyAccessBindingName(string $property, string $accessBinding): string - { - return self::getPathTemplate('propertyAccessBinding')->render([ - 'property' => $property, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * rollup_property_source_link resource. - * - * @param string $property - * @param string $rollupPropertySourceLink - * - * @return string The formatted rollup_property_source_link resource. - * - * @experimental - */ - public static function rollupPropertySourceLinkName(string $property, string $rollupPropertySourceLink): string - { - return self::getPathTemplate('rollupPropertySourceLink')->render([ - 'property' => $property, - 'rollup_property_source_link' => $rollupPropertySourceLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * sk_ad_network_conversion_value_schema resource. - * - * @param string $property - * @param string $dataStream - * @param string $skadnetworkConversionValueSchema - * - * @return string The formatted sk_ad_network_conversion_value_schema resource. - * - * @experimental - */ - public static function sKAdNetworkConversionValueSchemaName(string $property, string $dataStream, string $skadnetworkConversionValueSchema): string - { - return self::getPathTemplate('sKAdNetworkConversionValueSchema')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'skadnetwork_conversion_value_schema' => $skadnetworkConversionValueSchema, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * search_ads360_link resource. - * - * @param string $property - * @param string $searchAds360Link - * - * @return string The formatted search_ads360_link resource. - * - * @experimental - */ - public static function searchAds360LinkName(string $property, string $searchAds360Link): string - { - return self::getPathTemplate('searchAds360Link')->render([ - 'property' => $property, - 'search_ads_360_link' => $searchAds360Link, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * subproperty_event_filter resource. - * - * @param string $property - * @param string $subPropertyEventFilter - * - * @return string The formatted subproperty_event_filter resource. - * - * @experimental - */ - public static function subpropertyEventFilterName(string $property, string $subPropertyEventFilter): string - { - return self::getPathTemplate('subpropertyEventFilter')->render([ - 'property' => $property, - 'sub_property_event_filter' => $subPropertyEventFilter, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - accessBinding: accounts/{account}/accessBindings/{access_binding} - * - account: accounts/{account} - * - accountAccessBinding: accounts/{account}/accessBindings/{access_binding} - * - adSenseLink: properties/{property}/adSenseLinks/{adsense_link} - * - attributionSettings: properties/{property}/attributionSettings - * - audience: properties/{property}/audiences/{audience} - * - bigQueryLink: properties/{property}/bigQueryLinks/{bigquery_link} - * - calculatedMetric: properties/{property}/calculatedMetrics/{calculated_metric} - * - channelGroup: properties/{property}/channelGroups/{channel_group} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions/{custom_dimension} - * - customMetric: properties/{property}/customMetrics/{custom_metric} - * - dataRedactionSettings: properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * - dataRetentionSettings: properties/{property}/dataRetentionSettings - * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - dataStream: properties/{property}/dataStreams/{data_stream} - * - displayVideo360AdvertiserLink: properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link} - * - displayVideo360AdvertiserLinkProposal: properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal} - * - enhancedMeasurementSettings: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * - eventCreateRule: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - eventEditRule: properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule} - * - expandedDataSet: properties/{property}/expandedDataSets/{expanded_data_set} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - globalSiteTag: properties/{property}/dataStreams/{data_stream}/globalSiteTag - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - googleSignalsSettings: properties/{property}/googleSignalsSettings - * - keyEvent: properties/{property}/keyEvents/{key_event} - * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - organization: organizations/{organization} - * - property: properties/{property} - * - propertyAccessBinding: properties/{property}/accessBindings/{access_binding} - * - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link} - * - sKAdNetworkConversionValueSchema: properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - searchAds360Link: properties/{property}/searchAds360Links/{search_ads_360_link} - * - subpropertyEventFilter: properties/{property}/subpropertyEventFilters/{sub_property_event_filter} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsadmin.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or through this API) before MeasurementProtocolSecret resources may be - * created. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::acknowledgeUserDataCollectionAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php - * - * @param AcknowledgeUserDataCollectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AcknowledgeUserDataCollectionResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest $request, array $callOptions = []): AcknowledgeUserDataCollectionResponse - { - return $this->startApiCall('AcknowledgeUserDataCollection', $request, $callOptions)->wait(); - } - - /** - * Approves a DisplayVideo360AdvertiserLinkProposal. - * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - * DisplayVideo360AdvertiserLink will be created. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::approveDisplayVideo360AdvertiserLinkProposalAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/approve_display_video360_advertiser_link_proposal.php - * - * @param ApproveDisplayVideo360AdvertiserLinkProposalRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApproveDisplayVideo360AdvertiserLinkProposalResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function approveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest $request, array $callOptions = []): ApproveDisplayVideo360AdvertiserLinkProposalResponse - { - return $this->startApiCall('ApproveDisplayVideo360AdvertiserLinkProposal', $request, $callOptions)->wait(); - } - - /** - * Archives an Audience on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::archiveAudienceAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/archive_audience.php - * - * @param ArchiveAudienceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function archiveAudience(ArchiveAudienceRequest $request, array $callOptions = []): void - { - $this->startApiCall('ArchiveAudience', $request, $callOptions)->wait(); - } - - /** - * Archives a CustomDimension on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::archiveCustomDimensionAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_dimension.php - * - * @param ArchiveCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function archiveCustomDimension(ArchiveCustomDimensionRequest $request, array $callOptions = []): void - { - $this->startApiCall('ArchiveCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Archives a CustomMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::archiveCustomMetricAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/archive_custom_metric.php - * - * @param ArchiveCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function archiveCustomMetric(ArchiveCustomMetricRequest $request, array $callOptions = []): void - { - $this->startApiCall('ArchiveCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Creates information about multiple access bindings to an account or - * property. - * - * This method is transactional. If any AccessBinding cannot be created, none - * of the AccessBindings will be created. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::batchCreateAccessBindingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php - * - * @param BatchCreateAccessBindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchCreateAccessBindingsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchCreateAccessBindings(BatchCreateAccessBindingsRequest $request, array $callOptions = []): BatchCreateAccessBindingsResponse - { - return $this->startApiCall('BatchCreateAccessBindings', $request, $callOptions)->wait(); - } - - /** - * Deletes information about multiple users' links to an account or property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::batchDeleteAccessBindingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php - * - * @param BatchDeleteAccessBindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest $request, array $callOptions = []): void - { - $this->startApiCall('BatchDeleteAccessBindings', $request, $callOptions)->wait(); - } - - /** - * Gets information about multiple access bindings to an account or property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::batchGetAccessBindingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php - * - * @param BatchGetAccessBindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchGetAccessBindingsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchGetAccessBindings(BatchGetAccessBindingsRequest $request, array $callOptions = []): BatchGetAccessBindingsResponse - { - return $this->startApiCall('BatchGetAccessBindings', $request, $callOptions)->wait(); - } - - /** - * Updates information about multiple access bindings to an account or - * property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::batchUpdateAccessBindingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php - * - * @param BatchUpdateAccessBindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchUpdateAccessBindingsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchUpdateAccessBindings(BatchUpdateAccessBindingsRequest $request, array $callOptions = []): BatchUpdateAccessBindingsResponse - { - return $this->startApiCall('BatchUpdateAccessBindings', $request, $callOptions)->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. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::cancelDisplayVideo360AdvertiserLinkProposalAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/cancel_display_video360_advertiser_link_proposal.php - * - * @param CancelDisplayVideo360AdvertiserLinkProposalRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function cancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest $request, array $callOptions = []): DisplayVideo360AdvertiserLinkProposal - { - return $this->startApiCall('CancelDisplayVideo360AdvertiserLinkProposal', $request, $callOptions)->wait(); - } - - /** - * Creates an access binding on an account or property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createAccessBindingAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php - * - * @param CreateAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessBinding - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createAccessBinding(CreateAccessBindingRequest $request, array $callOptions = []): AccessBinding - { - return $this->startApiCall('CreateAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Creates an AdSenseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createAdSenseLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_ad_sense_link.php - * - * @param CreateAdSenseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdSenseLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createAdSenseLink(CreateAdSenseLinkRequest $request, array $callOptions = []): AdSenseLink - { - return $this->startApiCall('CreateAdSenseLink', $request, $callOptions)->wait(); - } - - /** - * Creates an Audience. - * - * The async variant is {@see AnalyticsAdminServiceClient::createAudienceAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php - * - * @param CreateAudienceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Audience - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createAudience(CreateAudienceRequest $request, array $callOptions = []): Audience - { - return $this->startApiCall('CreateAudience', $request, $callOptions)->wait(); - } - - /** - * Creates a BigQueryLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createBigQueryLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php - * - * @param CreateBigQueryLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BigQueryLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createBigQueryLink(CreateBigQueryLinkRequest $request, array $callOptions = []): BigQueryLink - { - return $this->startApiCall('CreateBigQueryLink', $request, $callOptions)->wait(); - } - - /** - * Creates a CalculatedMetric. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createCalculatedMetricAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_calculated_metric.php - * - * @param CreateCalculatedMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CalculatedMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCalculatedMetric(CreateCalculatedMetricRequest $request, array $callOptions = []): CalculatedMetric - { - return $this->startApiCall('CreateCalculatedMetric', $request, $callOptions)->wait(); - } - - /** - * Creates a ChannelGroup. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createChannelGroupAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php - * - * @param CreateChannelGroupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ChannelGroup - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createChannelGroup(CreateChannelGroupRequest $request, array $callOptions = []): ChannelGroup - { - return $this->startApiCall('CreateChannelGroup', $request, $callOptions)->wait(); - } - - /** - * Creates a connected site tag for a Universal Analytics property. You can - * create a maximum of 20 connected site tags per property. - * Note: This API cannot be used on GA4 properties. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createConnectedSiteTagAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php - * - * @param CreateConnectedSiteTagRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CreateConnectedSiteTagResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createConnectedSiteTag(CreateConnectedSiteTagRequest $request, array $callOptions = []): CreateConnectedSiteTagResponse - { - return $this->startApiCall('CreateConnectedSiteTag', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `CreateKeyEvent` instead. - * Creates a conversion event with the specified attributes. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createConversionEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php - * - * @param CreateConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function createConversionEvent(CreateConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('CreateConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Creates a CustomDimension. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createCustomDimensionAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php - * - * @param CreateCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCustomDimension(CreateCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('CreateCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Creates a CustomMetric. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createCustomMetricAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php - * - * @param CreateCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCustomMetric(CreateCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('CreateCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Creates a DataStream. - * - * The async variant is {@see AnalyticsAdminServiceClient::createDataStreamAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php - * - * @param CreateDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createDataStream(CreateDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('CreateDataStream', $request, $callOptions)->wait(); - } - - /** - * Creates a 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. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createDisplayVideo360AdvertiserLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php - * - * @param CreateDisplayVideo360AdvertiserLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DisplayVideo360AdvertiserLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createDisplayVideo360AdvertiserLink(CreateDisplayVideo360AdvertiserLinkRequest $request, array $callOptions = []): DisplayVideo360AdvertiserLink - { - return $this->startApiCall('CreateDisplayVideo360AdvertiserLink', $request, $callOptions)->wait(); - } - - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createDisplayVideo360AdvertiserLinkProposalAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php - * - * @param CreateDisplayVideo360AdvertiserLinkProposalRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest $request, array $callOptions = []): DisplayVideo360AdvertiserLinkProposal - { - return $this->startApiCall('CreateDisplayVideo360AdvertiserLinkProposal', $request, $callOptions)->wait(); - } - - /** - * Creates an EventCreateRule. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createEventCreateRuleAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_event_create_rule.php - * - * @param CreateEventCreateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EventCreateRule - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createEventCreateRule(CreateEventCreateRuleRequest $request, array $callOptions = []): EventCreateRule - { - return $this->startApiCall('CreateEventCreateRule', $request, $callOptions)->wait(); - } - - /** - * Creates an EventEditRule. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createEventEditRuleAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php - * - * @param CreateEventEditRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EventEditRule - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createEventEditRule(CreateEventEditRuleRequest $request, array $callOptions = []): EventEditRule - { - return $this->startApiCall('CreateEventEditRule', $request, $callOptions)->wait(); - } - - /** - * Creates a ExpandedDataSet. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createExpandedDataSetAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php - * - * @param CreateExpandedDataSetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExpandedDataSet - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createExpandedDataSet(CreateExpandedDataSetRequest $request, array $callOptions = []): ExpandedDataSet - { - return $this->startApiCall('CreateExpandedDataSet', $request, $callOptions)->wait(); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createFirebaseLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php - * - * @param CreateFirebaseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FirebaseLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createFirebaseLink(CreateFirebaseLinkRequest $request, array $callOptions = []): FirebaseLink - { - return $this->startApiCall('CreateFirebaseLink', $request, $callOptions)->wait(); - } - - /** - * Creates a GoogleAdsLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createGoogleAdsLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php - * - * @param CreateGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleAdsLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createGoogleAdsLink(CreateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink - { - return $this->startApiCall('CreateGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Creates a Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::createKeyEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php - * - * @param CreateKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return KeyEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createKeyEvent(CreateKeyEventRequest $request, array $callOptions = []): KeyEvent - { - return $this->startApiCall('CreateKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Creates a measurement protocol secret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createMeasurementProtocolSecretAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php - * - * @param CreateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('CreateMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * - * The async variant is {@see AnalyticsAdminServiceClient::createPropertyAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_property.php - * - * @param CreatePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createProperty(CreatePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('CreateProperty', $request, $callOptions)->wait(); - } - - /** - * Create a roll-up property and all roll-up property source links. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createRollupPropertyAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php - * - * @param CreateRollupPropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CreateRollupPropertyResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createRollupProperty(CreateRollupPropertyRequest $request, array $callOptions = []): CreateRollupPropertyResponse - { - return $this->startApiCall('CreateRollupProperty', $request, $callOptions)->wait(); - } - - /** - * Creates a roll-up property source link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createRollupPropertySourceLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php - * - * @param CreateRollupPropertySourceLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RollupPropertySourceLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createRollupPropertySourceLink(CreateRollupPropertySourceLinkRequest $request, array $callOptions = []): RollupPropertySourceLink - { - return $this->startApiCall('CreateRollupPropertySourceLink', $request, $callOptions)->wait(); - } - - /** - * Creates a SKAdNetworkConversionValueSchema. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createSKAdNetworkConversionValueSchemaAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_sk_ad_network_conversion_value_schema.php - * - * @param CreateSKAdNetworkConversionValueSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SKAdNetworkConversionValueSchema - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createSKAdNetworkConversionValueSchema(CreateSKAdNetworkConversionValueSchemaRequest $request, array $callOptions = []): SKAdNetworkConversionValueSchema - { - return $this->startApiCall('CreateSKAdNetworkConversionValueSchema', $request, $callOptions)->wait(); - } - - /** - * Creates a SearchAds360Link. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createSearchAds360LinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php - * - * @param CreateSearchAds360LinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SearchAds360Link - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createSearchAds360Link(CreateSearchAds360LinkRequest $request, array $callOptions = []): SearchAds360Link - { - return $this->startApiCall('CreateSearchAds360Link', $request, $callOptions)->wait(); - } - - /** - * Creates a subproperty Event Filter. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createSubpropertyEventFilterAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php - * - * @param CreateSubpropertyEventFilterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SubpropertyEventFilter - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createSubpropertyEventFilter(CreateSubpropertyEventFilterRequest $request, array $callOptions = []): SubpropertyEventFilter - { - return $this->startApiCall('CreateSubpropertyEventFilter', $request, $callOptions)->wait(); - } - - /** - * Deletes an access binding on an account or property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteAccessBindingAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_access_binding.php - * - * @param DeleteAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteAccessBinding(DeleteAccessBindingRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * AccessBindings) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteAccountAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php - * - * @param DeleteAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteAccount(DeleteAccountRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAccount', $request, $callOptions)->wait(); - } - - /** - * Deletes an AdSenseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteAdSenseLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_ad_sense_link.php - * - * @param DeleteAdSenseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteAdSenseLink(DeleteAdSenseLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAdSenseLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a BigQueryLink on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteBigQueryLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php - * - * @param DeleteBigQueryLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteBigQueryLink(DeleteBigQueryLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteBigQueryLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a CalculatedMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteCalculatedMetricAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_calculated_metric.php - * - * @param DeleteCalculatedMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteCalculatedMetric(DeleteCalculatedMetricRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteCalculatedMetric', $request, $callOptions)->wait(); - } - - /** - * Deletes a ChannelGroup on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteChannelGroupAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_channel_group.php - * - * @param DeleteChannelGroupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteChannelGroup(DeleteChannelGroupRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteChannelGroup', $request, $callOptions)->wait(); - } - - /** - * Deletes a connected site tag for a Universal Analytics property. - * Note: this has no effect on GA4 properties. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteConnectedSiteTagAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_connected_site_tag.php - * - * @param DeleteConnectedSiteTagRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteConnectedSiteTag(DeleteConnectedSiteTagRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConnectedSiteTag', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `DeleteKeyEvent` instead. - * Deletes a conversion event in a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteConversionEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php - * - * @param DeleteConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function deleteConversionEvent(DeleteConversionEventRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Deletes a DataStream on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteDataStreamAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_data_stream.php - * - * @param DeleteDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteDataStream(DeleteDataStreamRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataStream', $request, $callOptions)->wait(); - } - - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteDisplayVideo360AdvertiserLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link.php - * - * @param DeleteDisplayVideo360AdvertiserLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDisplayVideo360AdvertiserLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - * This can only be used on cancelled proposals. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteDisplayVideo360AdvertiserLinkProposalAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_display_video360_advertiser_link_proposal.php - * - * @param DeleteDisplayVideo360AdvertiserLinkProposalRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDisplayVideo360AdvertiserLinkProposal', $request, $callOptions)->wait(); - } - - /** - * Deletes an EventCreateRule. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteEventCreateRuleAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_event_create_rule.php - * - * @param DeleteEventCreateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteEventCreateRule(DeleteEventCreateRuleRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteEventCreateRule', $request, $callOptions)->wait(); - } - - /** - * Deletes an EventEditRule. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteEventEditRuleAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php - * - * @param DeleteEventEditRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteEventEditRule(DeleteEventEditRuleRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteEventEditRule', $request, $callOptions)->wait(); - } - - /** - * Deletes a ExpandedDataSet on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteExpandedDataSetAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_expanded_data_set.php - * - * @param DeleteExpandedDataSetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteExpandedDataSet(DeleteExpandedDataSetRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteExpandedDataSet', $request, $callOptions)->wait(); - } - - /** - * Deletes a FirebaseLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteFirebaseLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php - * - * @param DeleteFirebaseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteFirebaseLink(DeleteFirebaseLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFirebaseLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a GoogleAdsLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteGoogleAdsLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_google_ads_link.php - * - * @param DeleteGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteKeyEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php - * - * @param DeleteKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteKeyEvent(DeleteKeyEventRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteMeasurementProtocolSecretAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php - * - * @param DeleteMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Marks target Property as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted properties. - * However, they can be restored using the Trash Can UI. - * - * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - * will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found, or is not a GA4 Property. - * - * The async variant is {@see AnalyticsAdminServiceClient::deletePropertyAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php - * - * @param DeletePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteProperty(DeletePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('DeleteProperty', $request, $callOptions)->wait(); - } - - /** - * Deletes a roll-up property source link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteRollupPropertySourceLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php - * - * @param DeleteRollupPropertySourceLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteRollupPropertySourceLink(DeleteRollupPropertySourceLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteRollupPropertySourceLink', $request, $callOptions)->wait(); - } - - /** - * Deletes target SKAdNetworkConversionValueSchema. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteSKAdNetworkConversionValueSchemaAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_sk_ad_network_conversion_value_schema.php - * - * @param DeleteSKAdNetworkConversionValueSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteSKAdNetworkConversionValueSchema(DeleteSKAdNetworkConversionValueSchemaRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSKAdNetworkConversionValueSchema', $request, $callOptions)->wait(); - } - - /** - * Deletes a SearchAds360Link on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteSearchAds360LinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_search_ads360_link.php - * - * @param DeleteSearchAds360LinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteSearchAds360Link(DeleteSearchAds360LinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSearchAds360Link', $request, $callOptions)->wait(); - } - - /** - * Deletes a subproperty event filter. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteSubpropertyEventFilterAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php - * - * @param DeleteSubpropertyEventFilterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteSubpropertyEventFilter(DeleteSubpropertyEventFilterRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSubpropertyEventFilter', $request, $callOptions)->wait(); - } - - /** - * Fetches the opt out status for the automated GA4 setup process for a UA - * property. - * Note: this has no effect on GA4 property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::fetchAutomatedGa4ConfigurationOptOutAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/fetch_automated_ga4_configuration_opt_out.php - * - * @param FetchAutomatedGa4ConfigurationOptOutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchAutomatedGa4ConfigurationOptOutResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function fetchAutomatedGa4ConfigurationOptOut(FetchAutomatedGa4ConfigurationOptOutRequest $request, array $callOptions = []): FetchAutomatedGa4ConfigurationOptOutResponse - { - return $this->startApiCall('FetchAutomatedGa4ConfigurationOptOut', $request, $callOptions)->wait(); - } - - /** - * Given a specified UA property, looks up the GA4 property connected to it. - * Note: this cannot be used with GA4 properties. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::fetchConnectedGa4PropertyAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/fetch_connected_ga4_property.php - * - * @param FetchConnectedGa4PropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchConnectedGa4PropertyResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function fetchConnectedGa4Property(FetchConnectedGa4PropertyRequest $request, array $callOptions = []): FetchConnectedGa4PropertyResponse - { - return $this->startApiCall('FetchConnectedGa4Property', $request, $callOptions)->wait(); - } - - /** - * Gets information about an access binding. - * - * The async variant is {@see AnalyticsAdminServiceClient::getAccessBindingAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_access_binding.php - * - * @param GetAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessBinding - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAccessBinding(GetAccessBindingRequest $request, array $callOptions = []): AccessBinding - { - return $this->startApiCall('GetAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single Account. - * - * The async variant is {@see AnalyticsAdminServiceClient::getAccountAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_account.php - * - * @param GetAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Account - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAccount(GetAccountRequest $request, array $callOptions = []): Account - { - return $this->startApiCall('GetAccount', $request, $callOptions)->wait(); - } - - /** - * Looks up a single AdSenseLink. - * - * The async variant is {@see AnalyticsAdminServiceClient::getAdSenseLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_ad_sense_link.php - * - * @param GetAdSenseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdSenseLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAdSenseLink(GetAdSenseLinkRequest $request, array $callOptions = []): AdSenseLink - { - return $this->startApiCall('GetAdSenseLink', $request, $callOptions)->wait(); - } - - /** - * Lookup for a AttributionSettings singleton. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getAttributionSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_attribution_settings.php - * - * @param GetAttributionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AttributionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAttributionSettings(GetAttributionSettingsRequest $request, array $callOptions = []): AttributionSettings - { - return $this->startApiCall('GetAttributionSettings', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single Audience. - * Audiences created before 2020 may not be supported. - * Default audiences will not show filter definitions. - * - * The async variant is {@see AnalyticsAdminServiceClient::getAudienceAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_audience.php - * - * @param GetAudienceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Audience - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAudience(GetAudienceRequest $request, array $callOptions = []): Audience - { - return $this->startApiCall('GetAudience', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single BigQuery Link. - * - * The async variant is {@see AnalyticsAdminServiceClient::getBigQueryLinkAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_big_query_link.php - * - * @param GetBigQueryLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BigQueryLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getBigQueryLink(GetBigQueryLinkRequest $request, array $callOptions = []): BigQueryLink - { - return $this->startApiCall('GetBigQueryLink', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single CalculatedMetric. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getCalculatedMetricAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_calculated_metric.php - * - * @param GetCalculatedMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CalculatedMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCalculatedMetric(GetCalculatedMetricRequest $request, array $callOptions = []): CalculatedMetric - { - return $this->startApiCall('GetCalculatedMetric', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single ChannelGroup. - * - * The async variant is {@see AnalyticsAdminServiceClient::getChannelGroupAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_channel_group.php - * - * @param GetChannelGroupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ChannelGroup - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getChannelGroup(GetChannelGroupRequest $request, array $callOptions = []): ChannelGroup - { - return $this->startApiCall('GetChannelGroup', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `GetKeyEvent` instead. - * Retrieve a single conversion event. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getConversionEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php - * - * @param GetConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function getConversionEvent(GetConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('GetConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single CustomDimension. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getCustomDimensionAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_custom_dimension.php - * - * @param GetCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCustomDimension(GetCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('GetCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single CustomMetric. - * - * The async variant is {@see AnalyticsAdminServiceClient::getCustomMetricAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_custom_metric.php - * - * @param GetCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCustomMetric(GetCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('GetCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single DataRedactionSettings. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDataRedactionSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php - * - * @param GetDataRedactionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRedactionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataRedactionSettings(GetDataRedactionSettingsRequest $request, array $callOptions = []): DataRedactionSettings - { - return $this->startApiCall('GetDataRedactionSettings', $request, $callOptions)->wait(); - } - - /** - * Returns the singleton data retention settings for this property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDataRetentionSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_data_retention_settings.php - * - * @param GetDataRetentionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRetentionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataRetentionSettings(GetDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings - { - return $this->startApiCall('GetDataRetentionSettings', $request, $callOptions)->wait(); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDataSharingSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php - * - * @param GetDataSharingSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataSharingSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataSharingSettings(GetDataSharingSettingsRequest $request, array $callOptions = []): DataSharingSettings - { - return $this->startApiCall('GetDataSharingSettings', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single DataStream. - * - * The async variant is {@see AnalyticsAdminServiceClient::getDataStreamAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_data_stream.php - * - * @param GetDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataStream(GetDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('GetDataStream', $request, $callOptions)->wait(); - } - - /** - * Look up a single DisplayVideo360AdvertiserLink - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDisplayVideo360AdvertiserLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link.php - * - * @param GetDisplayVideo360AdvertiserLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DisplayVideo360AdvertiserLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest $request, array $callOptions = []): DisplayVideo360AdvertiserLink - { - return $this->startApiCall('GetDisplayVideo360AdvertiserLink', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDisplayVideo360AdvertiserLinkProposalAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_display_video360_advertiser_link_proposal.php - * - * @param GetDisplayVideo360AdvertiserLinkProposalRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest $request, array $callOptions = []): DisplayVideo360AdvertiserLinkProposal - { - return $this->startApiCall('GetDisplayVideo360AdvertiserLinkProposal', $request, $callOptions)->wait(); - } - - /** - * Returns the enhanced measurement settings for this data stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getEnhancedMeasurementSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_enhanced_measurement_settings.php - * - * @param GetEnhancedMeasurementSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EnhancedMeasurementSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest $request, array $callOptions = []): EnhancedMeasurementSettings - { - return $this->startApiCall('GetEnhancedMeasurementSettings', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single EventCreateRule. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getEventCreateRuleAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_event_create_rule.php - * - * @param GetEventCreateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EventCreateRule - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getEventCreateRule(GetEventCreateRuleRequest $request, array $callOptions = []): EventCreateRule - { - return $this->startApiCall('GetEventCreateRule', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single EventEditRule. - * - * The async variant is {@see AnalyticsAdminServiceClient::getEventEditRuleAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php - * - * @param GetEventEditRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EventEditRule - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getEventEditRule(GetEventEditRuleRequest $request, array $callOptions = []): EventEditRule - { - return $this->startApiCall('GetEventEditRule', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single ExpandedDataSet. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getExpandedDataSetAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_expanded_data_set.php - * - * @param GetExpandedDataSetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExpandedDataSet - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getExpandedDataSet(GetExpandedDataSetRequest $request, array $callOptions = []): ExpandedDataSet - { - return $this->startApiCall('GetExpandedDataSet', $request, $callOptions)->wait(); - } - - /** - * Returns the Site Tag for the specified web stream. - * Site Tags are immutable singletons. - * - * The async variant is {@see AnalyticsAdminServiceClient::getGlobalSiteTagAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php - * - * @param GetGlobalSiteTagRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GlobalSiteTag - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getGlobalSiteTag(GetGlobalSiteTagRequest $request, array $callOptions = []): GlobalSiteTag - { - return $this->startApiCall('GetGlobalSiteTag', $request, $callOptions)->wait(); - } - - /** - * Lookup for Google Signals settings for a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getGoogleSignalsSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_google_signals_settings.php - * - * @param GetGoogleSignalsSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleSignalsSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getGoogleSignalsSettings(GetGoogleSignalsSettingsRequest $request, array $callOptions = []): GoogleSignalsSettings - { - return $this->startApiCall('GetGoogleSignalsSettings', $request, $callOptions)->wait(); - } - - /** - * Retrieve a single Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::getKeyEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php - * - * @param GetKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return KeyEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getKeyEvent(GetKeyEventRequest $request, array $callOptions = []): KeyEvent - { - return $this->startApiCall('GetKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getMeasurementProtocolSecretAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php - * - * @param GetMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('GetMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single "GA4" Property. - * - * The async variant is {@see AnalyticsAdminServiceClient::getPropertyAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_property.php - * - * @param GetPropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getProperty(GetPropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('GetProperty', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single roll-up property source Link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getRollupPropertySourceLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php - * - * @param GetRollupPropertySourceLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RollupPropertySourceLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getRollupPropertySourceLink(GetRollupPropertySourceLinkRequest $request, array $callOptions = []): RollupPropertySourceLink - { - return $this->startApiCall('GetRollupPropertySourceLink', $request, $callOptions)->wait(); - } - - /** - * Looks up a single SKAdNetworkConversionValueSchema. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getSKAdNetworkConversionValueSchemaAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_sk_ad_network_conversion_value_schema.php - * - * @param GetSKAdNetworkConversionValueSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SKAdNetworkConversionValueSchema - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getSKAdNetworkConversionValueSchema(GetSKAdNetworkConversionValueSchemaRequest $request, array $callOptions = []): SKAdNetworkConversionValueSchema - { - return $this->startApiCall('GetSKAdNetworkConversionValueSchema', $request, $callOptions)->wait(); - } - - /** - * Look up a single SearchAds360Link - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getSearchAds360LinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_search_ads360_link.php - * - * @param GetSearchAds360LinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SearchAds360Link - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getSearchAds360Link(GetSearchAds360LinkRequest $request, array $callOptions = []): SearchAds360Link - { - return $this->startApiCall('GetSearchAds360Link', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single subproperty Event Filter. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getSubpropertyEventFilterAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/get_subproperty_event_filter.php - * - * @param GetSubpropertyEventFilterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SubpropertyEventFilter - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getSubpropertyEventFilter(GetSubpropertyEventFilterRequest $request, array $callOptions = []): SubpropertyEventFilter - { - return $this->startApiCall('GetSubpropertyEventFilter', $request, $callOptions)->wait(); - } - - /** - * Lists all access bindings on an account or property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listAccessBindingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_access_bindings.php - * - * @param ListAccessBindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAccessBindings(ListAccessBindingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccessBindings', $request, $callOptions); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listAccountSummariesAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_account_summaries.php - * - * @param ListAccountSummariesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAccountSummaries(ListAccountSummariesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccountSummaries', $request, $callOptions); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listAccountsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_accounts.php - * - * @param ListAccountsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAccounts(ListAccountsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccounts', $request, $callOptions); - } - - /** - * Lists AdSenseLinks on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::listAdSenseLinksAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_ad_sense_links.php - * - * @param ListAdSenseLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAdSenseLinks(ListAdSenseLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAdSenseLinks', $request, $callOptions); - } - - /** - * Lists Audiences on a property. - * Audiences created before 2020 may not be supported. - * Default audiences will not show filter definitions. - * - * The async variant is {@see AnalyticsAdminServiceClient::listAudiencesAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_audiences.php - * - * @param ListAudiencesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAudiences(ListAudiencesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAudiences', $request, $callOptions); - } - - /** - * Lists BigQuery Links on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listBigQueryLinksAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_big_query_links.php - * - * @param ListBigQueryLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listBigQueryLinks(ListBigQueryLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBigQueryLinks', $request, $callOptions); - } - - /** - * Lists CalculatedMetrics on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listCalculatedMetricsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_calculated_metrics.php - * - * @param ListCalculatedMetricsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCalculatedMetrics(ListCalculatedMetricsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCalculatedMetrics', $request, $callOptions); - } - - /** - * Lists ChannelGroups on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listChannelGroupsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_channel_groups.php - * - * @param ListChannelGroupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listChannelGroups(ListChannelGroupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListChannelGroups', $request, $callOptions); - } - - /** - * Lists the connected site tags for a Universal Analytics property. A maximum - * of 20 connected site tags will be returned. Note: this has no effect on GA4 - * property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listConnectedSiteTagsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_connected_site_tags.php - * - * @param ListConnectedSiteTagsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListConnectedSiteTagsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listConnectedSiteTags(ListConnectedSiteTagsRequest $request, array $callOptions = []): ListConnectedSiteTagsResponse - { - return $this->startApiCall('ListConnectedSiteTags', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `ListKeyEvents` instead. - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listConversionEventsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php - * - * @param ListConversionEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function listConversionEvents(ListConversionEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConversionEvents', $request, $callOptions); - } - - /** - * Lists CustomDimensions on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listCustomDimensionsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_custom_dimensions.php - * - * @param ListCustomDimensionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCustomDimensions(ListCustomDimensionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomDimensions', $request, $callOptions); - } - - /** - * Lists CustomMetrics on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listCustomMetricsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_custom_metrics.php - * - * @param ListCustomMetricsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCustomMetrics(ListCustomMetricsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomMetrics', $request, $callOptions); - } - - /** - * Lists DataStreams on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::listDataStreamsAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_data_streams.php - * - * @param ListDataStreamsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listDataStreams(ListDataStreamsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataStreams', $request, $callOptions); - } - - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listDisplayVideo360AdvertiserLinkProposalsAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_link_proposals.php - * - * @param ListDisplayVideo360AdvertiserLinkProposalsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDisplayVideo360AdvertiserLinkProposals', $request, $callOptions); - } - - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listDisplayVideo360AdvertiserLinksAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_display_video360_advertiser_links.php - * - * @param ListDisplayVideo360AdvertiserLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDisplayVideo360AdvertiserLinks', $request, $callOptions); - } - - /** - * Lists EventCreateRules on a web data stream. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listEventCreateRulesAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_event_create_rules.php - * - * @param ListEventCreateRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listEventCreateRules(ListEventCreateRulesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEventCreateRules', $request, $callOptions); - } - - /** - * Lists EventEditRules on a web data stream. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listEventEditRulesAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php - * - * @param ListEventEditRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listEventEditRules(ListEventEditRulesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEventEditRules', $request, $callOptions); - } - - /** - * Lists ExpandedDataSets on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listExpandedDataSetsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_expanded_data_sets.php - * - * @param ListExpandedDataSetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listExpandedDataSets(ListExpandedDataSetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListExpandedDataSets', $request, $callOptions); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listFirebaseLinksAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php - * - * @param ListFirebaseLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listFirebaseLinks(ListFirebaseLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFirebaseLinks', $request, $callOptions); - } - - /** - * Lists GoogleAdsLinks on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listGoogleAdsLinksAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_google_ads_links.php - * - * @param ListGoogleAdsLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listGoogleAdsLinks(ListGoogleAdsLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGoogleAdsLinks', $request, $callOptions); - } - - /** - * Returns a list of Key Events in the specified parent property. - * Returns an empty list if no Key Events are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listKeyEventsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php - * - * @param ListKeyEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listKeyEvents(ListKeyEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListKeyEvents', $request, $callOptions); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listMeasurementProtocolSecretsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php - * - * @param ListMeasurementProtocolSecretsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMeasurementProtocolSecrets', $request, $callOptions); - } - - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listPropertiesAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_properties.php - * - * @param ListPropertiesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listProperties(ListPropertiesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProperties', $request, $callOptions); - } - - /** - * Lists roll-up property source Links on a property. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listRollupPropertySourceLinksAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php - * - * @param ListRollupPropertySourceLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listRollupPropertySourceLinks(ListRollupPropertySourceLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRollupPropertySourceLinks', $request, $callOptions); - } - - /** - * Lists SKAdNetworkConversionValueSchema on a stream. - * Properties can have at most one SKAdNetworkConversionValueSchema. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listSKAdNetworkConversionValueSchemasAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php - * - * @param ListSKAdNetworkConversionValueSchemasRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listSKAdNetworkConversionValueSchemas(ListSKAdNetworkConversionValueSchemasRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSKAdNetworkConversionValueSchemas', $request, $callOptions); - } - - /** - * Lists all SearchAds360Links on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listSearchAds360LinksAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_search_ads360_links.php - * - * @param ListSearchAds360LinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listSearchAds360Links(ListSearchAds360LinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSearchAds360Links', $request, $callOptions); - } - - /** - * List all subproperty Event Filters on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listSubpropertyEventFiltersAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/list_subproperty_event_filters.php - * - * @param ListSubpropertyEventFiltersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listSubpropertyEventFilters(ListSubpropertyEventFiltersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSubpropertyEventFilters', $request, $callOptions); - } - - /** - * Requests a ticket for creating an account. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::provisionAccountTicketAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/provision_account_ticket.php - * - * @param ProvisionAccountTicketRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProvisionAccountTicketResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function provisionAccountTicket(ProvisionAccountTicketRequest $request, array $callOptions = []): ProvisionAccountTicketResponse - { - return $this->startApiCall('ProvisionAccountTicket', $request, $callOptions)->wait(); - } - - /** - * Create a subproperty and a subproperty event filter that applies to the - * created subproperty. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::provisionSubpropertyAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php - * - * @param ProvisionSubpropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProvisionSubpropertyResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function provisionSubproperty(ProvisionSubpropertyRequest $request, array $callOptions = []): ProvisionSubpropertyResponse - { - return $this->startApiCall('ProvisionSubproperty', $request, $callOptions)->wait(); - } - - /** - * Changes the processing order of event edit rules on the specified stream. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::reorderEventEditRulesAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php - * - * @param ReorderEventEditRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function reorderEventEditRules(ReorderEventEditRulesRequest $request, array $callOptions = []): void - { - $this->startApiCall('ReorderEventEditRules', $request, $callOptions)->wait(); - } - - /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. Reports may be - * requested for any property, but dimensions that aren't related to quota can - * only be requested on Google Analytics 360 properties. This method is only - * available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - * - * The async variant is {@see AnalyticsAdminServiceClient::runAccessReportAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/run_access_report.php - * - * @param RunAccessReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunAccessReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runAccessReport(RunAccessReportRequest $request, array $callOptions = []): RunAccessReportResponse - { - return $this->startApiCall('RunAccessReport', $request, $callOptions)->wait(); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::searchChangeHistoryEventsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php - * - * @param SearchChangeHistoryEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function searchChangeHistoryEvents(SearchChangeHistoryEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchChangeHistoryEvents', $request, $callOptions); - } - - /** - * Sets the opt out status for the automated GA4 setup process for a UA - * property. - * Note: this has no effect on GA4 property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::setAutomatedGa4ConfigurationOptOutAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/set_automated_ga4_configuration_opt_out.php - * - * @param SetAutomatedGa4ConfigurationOptOutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SetAutomatedGa4ConfigurationOptOutResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function setAutomatedGa4ConfigurationOptOut(SetAutomatedGa4ConfigurationOptOutRequest $request, array $callOptions = []): SetAutomatedGa4ConfigurationOptOutResponse - { - return $this->startApiCall('SetAutomatedGa4ConfigurationOptOut', $request, $callOptions)->wait(); - } - - /** - * Updates an access binding on an account or property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateAccessBindingAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php - * - * @param UpdateAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessBinding - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateAccessBinding(UpdateAccessBindingRequest $request, array $callOptions = []): AccessBinding - { - return $this->startApiCall('UpdateAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Updates an account. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateAccountAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_account.php - * - * @param UpdateAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Account - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateAccount(UpdateAccountRequest $request, array $callOptions = []): Account - { - return $this->startApiCall('UpdateAccount', $request, $callOptions)->wait(); - } - - /** - * Updates attribution settings on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateAttributionSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php - * - * @param UpdateAttributionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AttributionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateAttributionSettings(UpdateAttributionSettingsRequest $request, array $callOptions = []): AttributionSettings - { - return $this->startApiCall('UpdateAttributionSettings', $request, $callOptions)->wait(); - } - - /** - * Updates an Audience on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateAudienceAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php - * - * @param UpdateAudienceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Audience - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateAudience(UpdateAudienceRequest $request, array $callOptions = []): Audience - { - return $this->startApiCall('UpdateAudience', $request, $callOptions)->wait(); - } - - /** - * Updates a BigQueryLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateBigQueryLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php - * - * @param UpdateBigQueryLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BigQueryLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateBigQueryLink(UpdateBigQueryLinkRequest $request, array $callOptions = []): BigQueryLink - { - return $this->startApiCall('UpdateBigQueryLink', $request, $callOptions)->wait(); - } - - /** - * Updates a CalculatedMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateCalculatedMetricAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_calculated_metric.php - * - * @param UpdateCalculatedMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CalculatedMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateCalculatedMetric(UpdateCalculatedMetricRequest $request, array $callOptions = []): CalculatedMetric - { - return $this->startApiCall('UpdateCalculatedMetric', $request, $callOptions)->wait(); - } - - /** - * Updates a ChannelGroup. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateChannelGroupAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php - * - * @param UpdateChannelGroupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ChannelGroup - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateChannelGroup(UpdateChannelGroupRequest $request, array $callOptions = []): ChannelGroup - { - return $this->startApiCall('UpdateChannelGroup', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `UpdateKeyEvent` instead. - * Updates a conversion event with the specified attributes. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateConversionEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php - * - * @param UpdateConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function updateConversionEvent(UpdateConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('UpdateConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Updates a CustomDimension on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateCustomDimensionAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php - * - * @param UpdateCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateCustomDimension(UpdateCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('UpdateCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Updates a CustomMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateCustomMetricAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php - * - * @param UpdateCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateCustomMetric(UpdateCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('UpdateCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Updates a DataRedactionSettings on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateDataRedactionSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php - * - * @param UpdateDataRedactionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRedactionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataRedactionSettings(UpdateDataRedactionSettingsRequest $request, array $callOptions = []): DataRedactionSettings - { - return $this->startApiCall('UpdateDataRedactionSettings', $request, $callOptions)->wait(); - } - - /** - * Updates the singleton data retention settings for this property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateDataRetentionSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php - * - * @param UpdateDataRetentionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRetentionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataRetentionSettings(UpdateDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings - { - return $this->startApiCall('UpdateDataRetentionSettings', $request, $callOptions)->wait(); - } - - /** - * Updates a DataStream on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateDataStreamAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php - * - * @param UpdateDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataStream(UpdateDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('UpdateDataStream', $request, $callOptions)->wait(); - } - - /** - * Updates a DisplayVideo360AdvertiserLink on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateDisplayVideo360AdvertiserLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php - * - * @param UpdateDisplayVideo360AdvertiserLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DisplayVideo360AdvertiserLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest $request, array $callOptions = []): DisplayVideo360AdvertiserLink - { - return $this->startApiCall('UpdateDisplayVideo360AdvertiserLink', $request, $callOptions)->wait(); - } - - /** - * Updates the enhanced measurement settings for this data stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateEnhancedMeasurementSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php - * - * @param UpdateEnhancedMeasurementSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EnhancedMeasurementSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest $request, array $callOptions = []): EnhancedMeasurementSettings - { - return $this->startApiCall('UpdateEnhancedMeasurementSettings', $request, $callOptions)->wait(); - } - - /** - * Updates an EventCreateRule. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateEventCreateRuleAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_event_create_rule.php - * - * @param UpdateEventCreateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EventCreateRule - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateEventCreateRule(UpdateEventCreateRuleRequest $request, array $callOptions = []): EventCreateRule - { - return $this->startApiCall('UpdateEventCreateRule', $request, $callOptions)->wait(); - } - - /** - * Updates an EventEditRule. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateEventEditRuleAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php - * - * @param UpdateEventEditRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return EventEditRule - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateEventEditRule(UpdateEventEditRuleRequest $request, array $callOptions = []): EventEditRule - { - return $this->startApiCall('UpdateEventEditRule', $request, $callOptions)->wait(); - } - - /** - * Updates a ExpandedDataSet on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateExpandedDataSetAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php - * - * @param UpdateExpandedDataSetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExpandedDataSet - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateExpandedDataSet(UpdateExpandedDataSetRequest $request, array $callOptions = []): ExpandedDataSet - { - return $this->startApiCall('UpdateExpandedDataSet', $request, $callOptions)->wait(); - } - - /** - * Updates a GoogleAdsLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateGoogleAdsLinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php - * - * @param UpdateGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleAdsLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateGoogleAdsLink(UpdateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink - { - return $this->startApiCall('UpdateGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Updates Google Signals settings for a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateGoogleSignalsSettingsAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php - * - * @param UpdateGoogleSignalsSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleSignalsSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest $request, array $callOptions = []): GoogleSignalsSettings - { - return $this->startApiCall('UpdateGoogleSignalsSettings', $request, $callOptions)->wait(); - } - - /** - * Updates a Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateKeyEventAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php - * - * @param UpdateKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return KeyEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateKeyEvent(UpdateKeyEventRequest $request, array $callOptions = []): KeyEvent - { - return $this->startApiCall('UpdateKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateMeasurementProtocolSecretAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php - * - * @param UpdateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('UpdateMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Updates a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::updatePropertyAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_property.php - * - * @param UpdatePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateProperty(UpdatePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('UpdateProperty', $request, $callOptions)->wait(); - } - - /** - * Updates a SKAdNetworkConversionValueSchema. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateSKAdNetworkConversionValueSchemaAsync()} - * . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_sk_ad_network_conversion_value_schema.php - * - * @param UpdateSKAdNetworkConversionValueSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SKAdNetworkConversionValueSchema - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateSKAdNetworkConversionValueSchema(UpdateSKAdNetworkConversionValueSchemaRequest $request, array $callOptions = []): SKAdNetworkConversionValueSchema - { - return $this->startApiCall('UpdateSKAdNetworkConversionValueSchema', $request, $callOptions)->wait(); - } - - /** - * Updates a SearchAds360Link on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateSearchAds360LinkAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php - * - * @param UpdateSearchAds360LinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SearchAds360Link - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateSearchAds360Link(UpdateSearchAds360LinkRequest $request, array $callOptions = []): SearchAds360Link - { - return $this->startApiCall('UpdateSearchAds360Link', $request, $callOptions)->wait(); - } - - /** - * Updates a subproperty Event Filter. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateSubpropertyEventFilterAsync()} . - * - * @example samples/V1alpha/AnalyticsAdminServiceClient/update_subproperty_event_filter.php - * - * @param UpdateSubpropertyEventFilterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SubpropertyEventFilter - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateSubpropertyEventFilter(UpdateSubpropertyEventFilterRequest $request, array $callOptions = []): SubpropertyEventFilter - { - return $this->startApiCall('UpdateSubpropertyEventFilter', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php deleted file mode 100644 index d44b8dd7ad50..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php +++ /dev/null @@ -1,9215 +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 - * - * @deprecated Please use the new service client {@see \Google\Analytics\Admin\V1alpha\Client\AnalyticsAdminServiceClient}. - */ -class AnalyticsAdminServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.analytics.admin.v1alpha.AnalyticsAdminService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsadmin.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics.edit', - 'https://www.googleapis.com/auth/analytics.manage.users', - 'https://www.googleapis.com/auth/analytics.manage.users.readonly', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private static $accessBindingNameTemplate; - - private static $accountNameTemplate; - - private static $accountAccessBindingNameTemplate; - - private static $adSenseLinkNameTemplate; - - private static $attributionSettingsNameTemplate; - - private static $audienceNameTemplate; - - private static $bigQueryLinkNameTemplate; - - private static $calculatedMetricNameTemplate; - - private static $channelGroupNameTemplate; - - private static $conversionEventNameTemplate; - - private static $customDimensionNameTemplate; - - private static $customMetricNameTemplate; - - private static $dataRedactionSettingsNameTemplate; - - private static $dataRetentionSettingsNameTemplate; - - private static $dataSharingSettingsNameTemplate; - - private static $dataStreamNameTemplate; - - private static $displayVideo360AdvertiserLinkNameTemplate; - - private static $displayVideo360AdvertiserLinkProposalNameTemplate; - - private static $enhancedMeasurementSettingsNameTemplate; - - private static $eventCreateRuleNameTemplate; - - private static $eventEditRuleNameTemplate; - - private static $expandedDataSetNameTemplate; - - private static $firebaseLinkNameTemplate; - - private static $globalSiteTagNameTemplate; - - private static $googleAdsLinkNameTemplate; - - private static $googleSignalsSettingsNameTemplate; - - private static $keyEventNameTemplate; - - private static $measurementProtocolSecretNameTemplate; - - private static $organizationNameTemplate; - - private static $propertyNameTemplate; - - private static $propertyAccessBindingNameTemplate; - - private static $rollupPropertySourceLinkNameTemplate; - - private static $sKAdNetworkConversionValueSchemaNameTemplate; - - private static $searchAds360LinkNameTemplate; - - private static $subpropertyEventFilterNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getAccessBindingNameTemplate() - { - if (self::$accessBindingNameTemplate == null) { - self::$accessBindingNameTemplate = new PathTemplate('accounts/{account}/accessBindings/{access_binding}'); - } - - return self::$accessBindingNameTemplate; - } - - private static function getAccountNameTemplate() - { - if (self::$accountNameTemplate == null) { - self::$accountNameTemplate = new PathTemplate('accounts/{account}'); - } - - return self::$accountNameTemplate; - } - - private static function getAccountAccessBindingNameTemplate() - { - if (self::$accountAccessBindingNameTemplate == null) { - self::$accountAccessBindingNameTemplate = new PathTemplate('accounts/{account}/accessBindings/{access_binding}'); - } - - return self::$accountAccessBindingNameTemplate; - } - - private static function getAdSenseLinkNameTemplate() - { - if (self::$adSenseLinkNameTemplate == null) { - self::$adSenseLinkNameTemplate = new PathTemplate('properties/{property}/adSenseLinks/{adsense_link}'); - } - - return self::$adSenseLinkNameTemplate; - } - - private static function getAttributionSettingsNameTemplate() - { - if (self::$attributionSettingsNameTemplate == null) { - self::$attributionSettingsNameTemplate = new PathTemplate('properties/{property}/attributionSettings'); - } - - return self::$attributionSettingsNameTemplate; - } - - private static function getAudienceNameTemplate() - { - if (self::$audienceNameTemplate == null) { - self::$audienceNameTemplate = new PathTemplate('properties/{property}/audiences/{audience}'); - } - - return self::$audienceNameTemplate; - } - - private static function getBigQueryLinkNameTemplate() - { - if (self::$bigQueryLinkNameTemplate == null) { - self::$bigQueryLinkNameTemplate = new PathTemplate('properties/{property}/bigQueryLinks/{bigquery_link}'); - } - - return self::$bigQueryLinkNameTemplate; - } - - private static function getCalculatedMetricNameTemplate() - { - if (self::$calculatedMetricNameTemplate == null) { - self::$calculatedMetricNameTemplate = new PathTemplate('properties/{property}/calculatedMetrics/{calculated_metric}'); - } - - return self::$calculatedMetricNameTemplate; - } - - private static function getChannelGroupNameTemplate() - { - if (self::$channelGroupNameTemplate == null) { - self::$channelGroupNameTemplate = new PathTemplate('properties/{property}/channelGroups/{channel_group}'); - } - - return self::$channelGroupNameTemplate; - } - - private static function getConversionEventNameTemplate() - { - if (self::$conversionEventNameTemplate == null) { - self::$conversionEventNameTemplate = new PathTemplate('properties/{property}/conversionEvents/{conversion_event}'); - } - - return self::$conversionEventNameTemplate; - } - - private static function getCustomDimensionNameTemplate() - { - if (self::$customDimensionNameTemplate == null) { - self::$customDimensionNameTemplate = new PathTemplate('properties/{property}/customDimensions/{custom_dimension}'); - } - - return self::$customDimensionNameTemplate; - } - - private static function getCustomMetricNameTemplate() - { - if (self::$customMetricNameTemplate == null) { - self::$customMetricNameTemplate = new PathTemplate('properties/{property}/customMetrics/{custom_metric}'); - } - - return self::$customMetricNameTemplate; - } - - private static function getDataRedactionSettingsNameTemplate() - { - if (self::$dataRedactionSettingsNameTemplate == null) { - self::$dataRedactionSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/dataRedactionSettings'); - } - - return self::$dataRedactionSettingsNameTemplate; - } - - private static function getDataRetentionSettingsNameTemplate() - { - if (self::$dataRetentionSettingsNameTemplate == null) { - self::$dataRetentionSettingsNameTemplate = new PathTemplate('properties/{property}/dataRetentionSettings'); - } - - return self::$dataRetentionSettingsNameTemplate; - } - - private static function getDataSharingSettingsNameTemplate() - { - if (self::$dataSharingSettingsNameTemplate == null) { - self::$dataSharingSettingsNameTemplate = new PathTemplate('accounts/{account}/dataSharingSettings'); - } - - return self::$dataSharingSettingsNameTemplate; - } - - private static function getDataStreamNameTemplate() - { - if (self::$dataStreamNameTemplate == null) { - self::$dataStreamNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}'); - } - - return self::$dataStreamNameTemplate; - } - - private static function getDisplayVideo360AdvertiserLinkNameTemplate() - { - if (self::$displayVideo360AdvertiserLinkNameTemplate == null) { - self::$displayVideo360AdvertiserLinkNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}'); - } - - return self::$displayVideo360AdvertiserLinkNameTemplate; - } - - private static function getDisplayVideo360AdvertiserLinkProposalNameTemplate() - { - if (self::$displayVideo360AdvertiserLinkProposalNameTemplate == null) { - self::$displayVideo360AdvertiserLinkProposalNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}'); - } - - return self::$displayVideo360AdvertiserLinkProposalNameTemplate; - } - - private static function getEnhancedMeasurementSettingsNameTemplate() - { - if (self::$enhancedMeasurementSettingsNameTemplate == null) { - self::$enhancedMeasurementSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings'); - } - - return self::$enhancedMeasurementSettingsNameTemplate; - } - - private static function getEventCreateRuleNameTemplate() - { - if (self::$eventCreateRuleNameTemplate == null) { - self::$eventCreateRuleNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}'); - } - - return self::$eventCreateRuleNameTemplate; - } - - private static function getEventEditRuleNameTemplate() - { - if (self::$eventEditRuleNameTemplate == null) { - self::$eventEditRuleNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}'); - } - - return self::$eventEditRuleNameTemplate; - } - - private static function getExpandedDataSetNameTemplate() - { - if (self::$expandedDataSetNameTemplate == null) { - self::$expandedDataSetNameTemplate = new PathTemplate('properties/{property}/expandedDataSets/{expanded_data_set}'); - } - - return self::$expandedDataSetNameTemplate; - } - - private static function getFirebaseLinkNameTemplate() - { - if (self::$firebaseLinkNameTemplate == null) { - self::$firebaseLinkNameTemplate = new PathTemplate('properties/{property}/firebaseLinks/{firebase_link}'); - } - - return self::$firebaseLinkNameTemplate; - } - - private static function getGlobalSiteTagNameTemplate() - { - if (self::$globalSiteTagNameTemplate == null) { - self::$globalSiteTagNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/globalSiteTag'); - } - - return self::$globalSiteTagNameTemplate; - } - - private static function getGoogleAdsLinkNameTemplate() - { - if (self::$googleAdsLinkNameTemplate == null) { - self::$googleAdsLinkNameTemplate = new PathTemplate('properties/{property}/googleAdsLinks/{google_ads_link}'); - } - - return self::$googleAdsLinkNameTemplate; - } - - private static function getGoogleSignalsSettingsNameTemplate() - { - if (self::$googleSignalsSettingsNameTemplate == null) { - self::$googleSignalsSettingsNameTemplate = new PathTemplate('properties/{property}/googleSignalsSettings'); - } - - return self::$googleSignalsSettingsNameTemplate; - } - - private static function getKeyEventNameTemplate() - { - if (self::$keyEventNameTemplate == null) { - self::$keyEventNameTemplate = new PathTemplate('properties/{property}/keyEvents/{key_event}'); - } - - return self::$keyEventNameTemplate; - } - - private static function getMeasurementProtocolSecretNameTemplate() - { - if (self::$measurementProtocolSecretNameTemplate == null) { - self::$measurementProtocolSecretNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}'); - } - - return self::$measurementProtocolSecretNameTemplate; - } - - private static function getOrganizationNameTemplate() - { - if (self::$organizationNameTemplate == null) { - self::$organizationNameTemplate = new PathTemplate('organizations/{organization}'); - } - - return self::$organizationNameTemplate; - } - - private static function getPropertyNameTemplate() - { - if (self::$propertyNameTemplate == null) { - self::$propertyNameTemplate = new PathTemplate('properties/{property}'); - } - - return self::$propertyNameTemplate; - } - - private static function getPropertyAccessBindingNameTemplate() - { - if (self::$propertyAccessBindingNameTemplate == null) { - self::$propertyAccessBindingNameTemplate = new PathTemplate('properties/{property}/accessBindings/{access_binding}'); - } - - return self::$propertyAccessBindingNameTemplate; - } - - private static function getRollupPropertySourceLinkNameTemplate() - { - if (self::$rollupPropertySourceLinkNameTemplate == null) { - self::$rollupPropertySourceLinkNameTemplate = new PathTemplate('properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}'); - } - - return self::$rollupPropertySourceLinkNameTemplate; - } - - private static function getSKAdNetworkConversionValueSchemaNameTemplate() - { - if (self::$sKAdNetworkConversionValueSchemaNameTemplate == null) { - self::$sKAdNetworkConversionValueSchemaNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}'); - } - - return self::$sKAdNetworkConversionValueSchemaNameTemplate; - } - - private static function getSearchAds360LinkNameTemplate() - { - if (self::$searchAds360LinkNameTemplate == null) { - self::$searchAds360LinkNameTemplate = new PathTemplate('properties/{property}/searchAds360Links/{search_ads_360_link}'); - } - - return self::$searchAds360LinkNameTemplate; - } - - private static function getSubpropertyEventFilterNameTemplate() - { - if (self::$subpropertyEventFilterNameTemplate == null) { - self::$subpropertyEventFilterNameTemplate = new PathTemplate('properties/{property}/subpropertyEventFilters/{sub_property_event_filter}'); - } - - return self::$subpropertyEventFilterNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'accessBinding' => self::getAccessBindingNameTemplate(), - 'account' => self::getAccountNameTemplate(), - 'accountAccessBinding' => self::getAccountAccessBindingNameTemplate(), - 'adSenseLink' => self::getAdSenseLinkNameTemplate(), - 'attributionSettings' => self::getAttributionSettingsNameTemplate(), - 'audience' => self::getAudienceNameTemplate(), - 'bigQueryLink' => self::getBigQueryLinkNameTemplate(), - 'calculatedMetric' => self::getCalculatedMetricNameTemplate(), - 'channelGroup' => self::getChannelGroupNameTemplate(), - 'conversionEvent' => self::getConversionEventNameTemplate(), - 'customDimension' => self::getCustomDimensionNameTemplate(), - 'customMetric' => self::getCustomMetricNameTemplate(), - 'dataRedactionSettings' => self::getDataRedactionSettingsNameTemplate(), - 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), - 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), - 'dataStream' => self::getDataStreamNameTemplate(), - 'displayVideo360AdvertiserLink' => self::getDisplayVideo360AdvertiserLinkNameTemplate(), - 'displayVideo360AdvertiserLinkProposal' => self::getDisplayVideo360AdvertiserLinkProposalNameTemplate(), - 'enhancedMeasurementSettings' => self::getEnhancedMeasurementSettingsNameTemplate(), - 'eventCreateRule' => self::getEventCreateRuleNameTemplate(), - 'eventEditRule' => self::getEventEditRuleNameTemplate(), - 'expandedDataSet' => self::getExpandedDataSetNameTemplate(), - 'firebaseLink' => self::getFirebaseLinkNameTemplate(), - 'globalSiteTag' => self::getGlobalSiteTagNameTemplate(), - 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), - 'googleSignalsSettings' => self::getGoogleSignalsSettingsNameTemplate(), - 'keyEvent' => self::getKeyEventNameTemplate(), - 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), - 'organization' => self::getOrganizationNameTemplate(), - 'property' => self::getPropertyNameTemplate(), - 'propertyAccessBinding' => self::getPropertyAccessBindingNameTemplate(), - 'rollupPropertySourceLink' => self::getRollupPropertySourceLinkNameTemplate(), - 'sKAdNetworkConversionValueSchema' => self::getSKAdNetworkConversionValueSchemaNameTemplate(), - 'searchAds360Link' => self::getSearchAds360LinkNameTemplate(), - 'subpropertyEventFilter' => self::getSubpropertyEventFilterNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * access_binding resource. - * - * @param string $account - * @param string $accessBinding - * - * @return string The formatted access_binding resource. - * - * @experimental - */ - public static function accessBindingName($account, $accessBinding) - { - return self::getAccessBindingNameTemplate()->render([ - 'account' => $account, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName($account) - { - return self::getAccountNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * account_access_binding resource. - * - * @param string $account - * @param string $accessBinding - * - * @return string The formatted account_access_binding resource. - * - * @experimental - */ - public static function accountAccessBindingName($account, $accessBinding) - { - return self::getAccountAccessBindingNameTemplate()->render([ - 'account' => $account, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * ad_sense_link resource. - * - * @param string $property - * @param string $adsenseLink - * - * @return string The formatted ad_sense_link resource. - * - * @experimental - */ - public static function adSenseLinkName($property, $adsenseLink) - { - return self::getAdSenseLinkNameTemplate()->render([ - 'property' => $property, - 'adsense_link' => $adsenseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * attribution_settings resource. - * - * @param string $property - * - * @return string The formatted attribution_settings resource. - * - * @experimental - */ - public static function attributionSettingsName($property) - { - return self::getAttributionSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a audience - * resource. - * - * @param string $property - * @param string $audience - * - * @return string The formatted audience resource. - * - * @experimental - */ - public static function audienceName($property, $audience) - { - return self::getAudienceNameTemplate()->render([ - 'property' => $property, - 'audience' => $audience, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * big_query_link resource. - * - * @param string $property - * @param string $bigqueryLink - * - * @return string The formatted big_query_link resource. - * - * @experimental - */ - public static function bigQueryLinkName($property, $bigqueryLink) - { - return self::getBigQueryLinkNameTemplate()->render([ - 'property' => $property, - 'bigquery_link' => $bigqueryLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * calculated_metric resource. - * - * @param string $property - * @param string $calculatedMetric - * - * @return string The formatted calculated_metric resource. - * - * @experimental - */ - public static function calculatedMetricName($property, $calculatedMetric) - { - return self::getCalculatedMetricNameTemplate()->render([ - 'property' => $property, - 'calculated_metric' => $calculatedMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * channel_group resource. - * - * @param string $property - * @param string $channelGroup - * - * @return string The formatted channel_group resource. - * - * @experimental - */ - public static function channelGroupName($property, $channelGroup) - { - return self::getChannelGroupNameTemplate()->render([ - 'property' => $property, - 'channel_group' => $channelGroup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conversion_event resource. - * - * @param string $property - * @param string $conversionEvent - * - * @return string The formatted conversion_event resource. - * - * @experimental - */ - public static function conversionEventName($property, $conversionEvent) - { - return self::getConversionEventNameTemplate()->render([ - 'property' => $property, - 'conversion_event' => $conversionEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_dimension resource. - * - * @param string $property - * @param string $customDimension - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName($property, $customDimension) - { - return self::getCustomDimensionNameTemplate()->render([ - 'property' => $property, - 'custom_dimension' => $customDimension, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * @param string $customMetric - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName($property, $customMetric) - { - return self::getCustomMetricNameTemplate()->render([ - 'property' => $property, - 'custom_metric' => $customMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_redaction_settings resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_redaction_settings resource. - * - * @experimental - */ - public static function dataRedactionSettingsName($property, $dataStream) - { - return self::getDataRedactionSettingsNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_retention_settings resource. - * - * @param string $property - * - * @return string The formatted data_retention_settings resource. - * - * @experimental - */ - public static function dataRetentionSettingsName($property) - { - return self::getDataRetentionSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_sharing_settings resource. - * - * @param string $account - * - * @return string The formatted data_sharing_settings resource. - * - * @experimental - */ - public static function dataSharingSettingsName($account) - { - return self::getDataSharingSettingsNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_stream - * resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_stream resource. - * - * @experimental - */ - public static function dataStreamName($property, $dataStream) - { - return self::getDataStreamNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * display_video360_advertiser_link resource. - * - * @param string $property - * @param string $displayVideo360AdvertiserLink - * - * @return string The formatted display_video360_advertiser_link resource. - * - * @experimental - */ - public static function displayVideo360AdvertiserLinkName($property, $displayVideo360AdvertiserLink) - { - return self::getDisplayVideo360AdvertiserLinkNameTemplate()->render([ - 'property' => $property, - 'display_video_360_advertiser_link' => $displayVideo360AdvertiserLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * display_video360_advertiser_link_proposal resource. - * - * @param string $property - * @param string $displayVideo360AdvertiserLinkProposal - * - * @return string The formatted display_video360_advertiser_link_proposal resource. - * - * @experimental - */ - public static function displayVideo360AdvertiserLinkProposalName($property, $displayVideo360AdvertiserLinkProposal) - { - return self::getDisplayVideo360AdvertiserLinkProposalNameTemplate()->render([ - 'property' => $property, - 'display_video_360_advertiser_link_proposal' => $displayVideo360AdvertiserLinkProposal, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * enhanced_measurement_settings resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted enhanced_measurement_settings resource. - * - * @experimental - */ - public static function enhancedMeasurementSettingsName($property, $dataStream) - { - return self::getEnhancedMeasurementSettingsNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * event_create_rule resource. - * - * @param string $property - * @param string $dataStream - * @param string $eventCreateRule - * - * @return string The formatted event_create_rule resource. - * - * @experimental - */ - public static function eventCreateRuleName($property, $dataStream, $eventCreateRule) - { - return self::getEventCreateRuleNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'event_create_rule' => $eventCreateRule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * event_edit_rule resource. - * - * @param string $property - * @param string $dataStream - * @param string $eventEditRule - * - * @return string The formatted event_edit_rule resource. - * - * @experimental - */ - public static function eventEditRuleName($property, $dataStream, $eventEditRule) - { - return self::getEventEditRuleNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'event_edit_rule' => $eventEditRule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * expanded_data_set resource. - * - * @param string $property - * @param string $expandedDataSet - * - * @return string The formatted expanded_data_set resource. - * - * @experimental - */ - public static function expandedDataSetName($property, $expandedDataSet) - { - return self::getExpandedDataSetNameTemplate()->render([ - 'property' => $property, - 'expanded_data_set' => $expandedDataSet, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * firebase_link resource. - * - * @param string $property - * @param string $firebaseLink - * - * @return string The formatted firebase_link resource. - * - * @experimental - */ - public static function firebaseLinkName($property, $firebaseLink) - { - return self::getFirebaseLinkNameTemplate()->render([ - 'property' => $property, - 'firebase_link' => $firebaseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * global_site_tag resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted global_site_tag resource. - * - * @experimental - */ - public static function globalSiteTagName($property, $dataStream) - { - return self::getGlobalSiteTagNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_ads_link resource. - * - * @param string $property - * @param string $googleAdsLink - * - * @return string The formatted google_ads_link resource. - * - * @experimental - */ - public static function googleAdsLinkName($property, $googleAdsLink) - { - return self::getGoogleAdsLinkNameTemplate()->render([ - 'property' => $property, - 'google_ads_link' => $googleAdsLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_signals_settings resource. - * - * @param string $property - * - * @return string The formatted google_signals_settings resource. - * - * @experimental - */ - public static function googleSignalsSettingsName($property) - { - return self::getGoogleSignalsSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a key_event - * resource. - * - * @param string $property - * @param string $keyEvent - * - * @return string The formatted key_event resource. - * - * @experimental - */ - public static function keyEventName($property, $keyEvent) - { - return self::getKeyEventNameTemplate()->render([ - 'property' => $property, - 'key_event' => $keyEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $dataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName($property, $dataStream, $measurementProtocolSecret) - { - return self::getMeasurementProtocolSecretNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'measurement_protocol_secret' => $measurementProtocolSecret, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - * - * @experimental - */ - public static function organizationName($organization) - { - return self::getOrganizationNameTemplate()->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName($property) - { - return self::getPropertyNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * property_access_binding resource. - * - * @param string $property - * @param string $accessBinding - * - * @return string The formatted property_access_binding resource. - * - * @experimental - */ - public static function propertyAccessBindingName($property, $accessBinding) - { - return self::getPropertyAccessBindingNameTemplate()->render([ - 'property' => $property, - 'access_binding' => $accessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * rollup_property_source_link resource. - * - * @param string $property - * @param string $rollupPropertySourceLink - * - * @return string The formatted rollup_property_source_link resource. - * - * @experimental - */ - public static function rollupPropertySourceLinkName($property, $rollupPropertySourceLink) - { - return self::getRollupPropertySourceLinkNameTemplate()->render([ - 'property' => $property, - 'rollup_property_source_link' => $rollupPropertySourceLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * sk_ad_network_conversion_value_schema resource. - * - * @param string $property - * @param string $dataStream - * @param string $skadnetworkConversionValueSchema - * - * @return string The formatted sk_ad_network_conversion_value_schema resource. - * - * @experimental - */ - public static function sKAdNetworkConversionValueSchemaName($property, $dataStream, $skadnetworkConversionValueSchema) - { - return self::getSKAdNetworkConversionValueSchemaNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'skadnetwork_conversion_value_schema' => $skadnetworkConversionValueSchema, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * search_ads360_link resource. - * - * @param string $property - * @param string $searchAds360Link - * - * @return string The formatted search_ads360_link resource. - * - * @experimental - */ - public static function searchAds360LinkName($property, $searchAds360Link) - { - return self::getSearchAds360LinkNameTemplate()->render([ - 'property' => $property, - 'search_ads_360_link' => $searchAds360Link, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * subproperty_event_filter resource. - * - * @param string $property - * @param string $subPropertyEventFilter - * - * @return string The formatted subproperty_event_filter resource. - * - * @experimental - */ - public static function subpropertyEventFilterName($property, $subPropertyEventFilter) - { - return self::getSubpropertyEventFilterNameTemplate()->render([ - 'property' => $property, - 'sub_property_event_filter' => $subPropertyEventFilter, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - accessBinding: accounts/{account}/accessBindings/{access_binding} - * - account: accounts/{account} - * - accountAccessBinding: accounts/{account}/accessBindings/{access_binding} - * - adSenseLink: properties/{property}/adSenseLinks/{adsense_link} - * - attributionSettings: properties/{property}/attributionSettings - * - audience: properties/{property}/audiences/{audience} - * - bigQueryLink: properties/{property}/bigQueryLinks/{bigquery_link} - * - calculatedMetric: properties/{property}/calculatedMetrics/{calculated_metric} - * - channelGroup: properties/{property}/channelGroups/{channel_group} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions/{custom_dimension} - * - customMetric: properties/{property}/customMetrics/{custom_metric} - * - dataRedactionSettings: properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * - dataRetentionSettings: properties/{property}/dataRetentionSettings - * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - dataStream: properties/{property}/dataStreams/{data_stream} - * - displayVideo360AdvertiserLink: properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link} - * - displayVideo360AdvertiserLinkProposal: properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal} - * - enhancedMeasurementSettings: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * - eventCreateRule: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} - * - eventEditRule: properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule} - * - expandedDataSet: properties/{property}/expandedDataSets/{expanded_data_set} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - globalSiteTag: properties/{property}/dataStreams/{data_stream}/globalSiteTag - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - googleSignalsSettings: properties/{property}/googleSignalsSettings - * - keyEvent: properties/{property}/keyEvents/{key_event} - * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - organization: organizations/{organization} - * - property: properties/{property} - * - propertyAccessBinding: properties/{property}/accessBindings/{access_binding} - * - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link} - * - sKAdNetworkConversionValueSchema: properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * - searchAds360Link: properties/{property}/searchAds360Links/{search_ads_360_link} - * - subpropertyEventFilter: properties/{property}/subpropertyEventFilters/{sub_property_event_filter} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsadmin.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or through this API) before MeasurementProtocolSecret resources may be - * created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $acknowledgement = 'acknowledgement'; - * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The property for which to acknowledge user data collection. - * @param string $acknowledgement Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function acknowledgeUserDataCollection($property, $acknowledgement, array $optionalArgs = []) - { - $request = new AcknowledgeUserDataCollectionRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setAcknowledgement($acknowledgement); - $requestParamHeaders['property'] = $property; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('AcknowledgeUserDataCollection', AcknowledgeUserDataCollectionResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Approves a DisplayVideo360AdvertiserLinkProposal. - * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - * DisplayVideo360AdvertiserLink will be created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $response = $analyticsAdminServiceClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function approveDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new ApproveDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ApproveDisplayVideo360AdvertiserLinkProposal', ApproveDisplayVideo360AdvertiserLinkProposalResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives an Audience on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $analyticsAdminServiceClient->archiveAudience($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/audiences/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveAudience($name, array $optionalArgs = []) - { - $request = new ArchiveAudienceRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveAudience', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $analyticsAdminServiceClient->archiveCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomDimension($name, array $optionalArgs = []) - { - $request = new ArchiveCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomDimension', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $analyticsAdminServiceClient->archiveCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomMetric($name, array $optionalArgs = []) - { - $request = new ArchiveCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates information about multiple access bindings to an account or - * property. - * - * This method is transactional. If any AccessBinding cannot be created, none - * of the AccessBindings will be created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchCreateAccessBindings($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * field in the CreateAccessBindingRequest messages must either be empty or - * match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @param CreateAccessBindingRequest[] $requests Required. The requests specifying the access bindings to create. - * A maximum of 1000 access bindings can be created in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchCreateAccessBindings($parent, $requests, array $optionalArgs = []) - { - $request = new BatchCreateAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchCreateAccessBindings', BatchCreateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $analyticsAdminServiceClient->batchDeleteAccessBindings($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field in DeleteAccessBindingRequest - * messages must match this field. Formats: - * - accounts/{account} - * - properties/{property} - * @param DeleteAccessBindingRequest[] $requests Required. The requests specifying the access bindings to delete. - * A maximum of 1000 access bindings can be deleted in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchDeleteAccessBindings($parent, $requests, array $optionalArgs = []) - { - $request = new BatchDeleteAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchDeleteAccessBindings', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets information about multiple access bindings to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $formattedNames = [ - * $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - * ]; - * $response = $analyticsAdminServiceClient->batchGetAccessBindings($formattedParent, $formattedNames); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * of all provided values for the 'names' field must match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @param string[] $names Required. The names of the access bindings to retrieve. - * A maximum of 1000 access bindings can be retrieved in a batch. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchGetAccessBindings($parent, $names, array $optionalArgs = []) - { - $request = new BatchGetAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setNames($names); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchGetAccessBindings', BatchGetAccessBindingsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates information about multiple access bindings to an account or - * property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchUpdateAccessBindings($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that owns the access bindings. The parent - * of all provided AccessBinding in UpdateAccessBindingRequest messages must - * match this field. - * Formats: - * - accounts/{account} - * - properties/{property} - * @param UpdateAccessBindingRequest[] $requests Required. The requests specifying the access bindings to update. - * A maximum of 1000 access bindings can be updated in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchUpdateAccessBindings($parent, $requests, array $optionalArgs = []) - { - $request = new BatchUpdateAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchUpdateAccessBindings', BatchUpdateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Cancels a DisplayVideo360AdvertiserLinkProposal. - * Cancelling can mean either: - * - Declining a proposal initiated from Display & Video 360 - * - Withdrawing a proposal initiated from Google Analytics - * After being cancelled, a proposal will eventually be deleted automatically. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $response = $analyticsAdminServiceClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function cancelDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new CancelDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CancelDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an access binding on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $accessBinding = new AccessBinding(); - * $response = $analyticsAdminServiceClient->createAccessBinding($formattedParent, $accessBinding); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Formats: - * - accounts/{account} - * - properties/{property} - * @param AccessBinding $accessBinding Required. The access binding to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AccessBinding - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAccessBinding($parent, $accessBinding, array $optionalArgs = []) - { - $request = new CreateAccessBindingRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAccessBinding($accessBinding); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an AdSenseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $adsenseLink = new AdSenseLink(); - * $response = $analyticsAdminServiceClient->createAdSenseLink($formattedParent, $adsenseLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The property for which to create an AdSense Link. - * Format: properties/{propertyId} - * Example: properties/1234 - * @param AdSenseLink $adsenseLink Required. The AdSense Link to create - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAdSenseLink($parent, $adsenseLink, array $optionalArgs = []) - { - $request = new CreateAdSenseLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAdsenseLink($adsenseLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateAdSenseLink', AdSenseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an Audience. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $audience = new Audience(); - * $response = $analyticsAdminServiceClient->createAudience($formattedParent, $audience); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param Audience $audience Required. The audience to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Audience - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAudience($parent, $audience, array $optionalArgs = []) - { - $request = new CreateAudienceRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAudience($audience); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateAudience', Audience::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a BigQueryLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $bigqueryLink = new BigQueryLink(); - * $response = $analyticsAdminServiceClient->createBigQueryLink($formattedParent, $bigqueryLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param BigQueryLink $bigqueryLink Required. The BigQueryLink to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createBigQueryLink($parent, $bigqueryLink, array $optionalArgs = []) - { - $request = new CreateBigQueryLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setBigqueryLink($bigqueryLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateBigQueryLink', BigQueryLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CalculatedMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $calculatedMetricId = 'calculated_metric_id'; - * $calculatedMetric = new CalculatedMetric(); - * $response = $analyticsAdminServiceClient->createCalculatedMetric($formattedParent, $calculatedMetricId, $calculatedMetric); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * @param string $calculatedMetricId Required. The ID to use for the calculated metric which will become the - * final component of the calculated metric's resource name. - * - * This value should be 1-80 characters and valid characters are - * /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - * between all calculated metrics under a property. The calculated_metric_id - * is used when referencing this calculated metric from external APIs, for - * example, "calcMetric:{calculated_metric_id}". - * @param CalculatedMetric $calculatedMetric Required. The CalculatedMetric to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CalculatedMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCalculatedMetric($parent, $calculatedMetricId, $calculatedMetric, array $optionalArgs = []) - { - $request = new CreateCalculatedMetricRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCalculatedMetricId($calculatedMetricId); - $request->setCalculatedMetric($calculatedMetric); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCalculatedMetric', CalculatedMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a ChannelGroup. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $channelGroup = new ChannelGroup(); - * $response = $analyticsAdminServiceClient->createChannelGroup($formattedParent, $channelGroup); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The property for which to create a ChannelGroup. - * Example format: properties/1234 - * @param ChannelGroup $channelGroup Required. The ChannelGroup to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createChannelGroup($parent, $channelGroup, array $optionalArgs = []) - { - $request = new CreateChannelGroupRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setChannelGroup($channelGroup); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a connected site tag for a Universal Analytics property. You can - * create a maximum of 20 connected site tags per property. - * Note: This API cannot be used on GA4 properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $connectedSiteTag = new ConnectedSiteTag(); - * $response = $analyticsAdminServiceClient->createConnectedSiteTag($connectedSiteTag); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConnectedSiteTag $connectedSiteTag Required. The tag to add to the Universal Analytics property - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * The Universal Analytics property to create connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createConnectedSiteTag($connectedSiteTag, array $optionalArgs = []) - { - $request = new CreateConnectedSiteTagRequest(); - $request->setConnectedSiteTag($connectedSiteTag); - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - return $this->startCall('CreateConnectedSiteTag', CreateConnectedSiteTagResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `CreateKeyEvent` instead. - * Creates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->createConversionEvent($conversionEvent, $formattedParent); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to create. - * @param string $parent Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function createConversionEvent($conversionEvent, $parent, array $optionalArgs = []) - { - $request = new CreateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customDimension = new CustomDimension(); - * $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomDimension $customDimension Required. The CustomDimension to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomDimension($parent, $customDimension, array $optionalArgs = []) - { - $request = new CreateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomDimension($customDimension); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customMetric = new CustomMetric(); - * $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomMetric $customMetric Required. The CustomMetric to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomMetric($parent, $customMetric, array $optionalArgs = []) - { - $request = new CreateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomMetric($customMetric); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $dataStream = new DataStream(); - * $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DataStream $dataStream Required. The DataStream to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDataStream($parent, $dataStream, array $optionalArgs = []) - { - $request = new CreateDataStreamRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDataStream($dataStream); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DisplayVideo360AdvertiserLink. - * This can only be utilized by users who have proper authorization both on - * the Google Analytics property and on the Display & Video 360 advertiser. - * Users who do not have access to the Display & Video 360 advertiser should - * instead seek to create a DisplayVideo360LinkProposal. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDisplayVideo360AdvertiserLink($parent, $displayVideo360AdvertiserLink, array $optionalArgs = []) - { - $request = new CreateDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DisplayVideo360AdvertiserLinkProposal $displayVideo360AdvertiserLinkProposal Required. The DisplayVideo360AdvertiserLinkProposal to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDisplayVideo360AdvertiserLinkProposal($parent, $displayVideo360AdvertiserLinkProposal, array $optionalArgs = []) - { - $request = new CreateDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $eventCreateRule = new EventCreateRule(); - * $response = $analyticsAdminServiceClient->createEventCreateRule($formattedParent, $eventCreateRule); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * @param EventCreateRule $eventCreateRule Required. The EventCreateRule to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createEventCreateRule($parent, $eventCreateRule, array $optionalArgs = []) - { - $request = new CreateEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setEventCreateRule($eventCreateRule); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an EventEditRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $eventEditRule = new EventEditRule(); - * $response = $analyticsAdminServiceClient->createEventEditRule($formattedParent, $eventEditRule); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * @param EventEditRule $eventEditRule Required. The EventEditRule to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventEditRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createEventEditRule($parent, $eventEditRule, array $optionalArgs = []) - { - $request = new CreateEventEditRuleRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setEventEditRule($eventEditRule); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateEventEditRule', EventEditRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a ExpandedDataSet. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $expandedDataSet = new ExpandedDataSet(); - * $response = $analyticsAdminServiceClient->createExpandedDataSet($formattedParent, $expandedDataSet); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createExpandedDataSet($parent, $expandedDataSet, array $optionalArgs = []) - { - $request = new CreateExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setExpandedDataSet($expandedDataSet); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $firebaseLink = new FirebaseLink(); - * $response = $analyticsAdminServiceClient->createFirebaseLink($formattedParent, $firebaseLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * @param FirebaseLink $firebaseLink Required. The Firebase link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\FirebaseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createFirebaseLink($parent, $firebaseLink, array $optionalArgs = []) - { - $request = new CreateFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setFirebaseLink($firebaseLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a GoogleAdsLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $googleAdsLink = new GoogleAdsLink(); - * $response = $analyticsAdminServiceClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createGoogleAdsLink($parent, $googleAdsLink, array $optionalArgs = []) - { - $request = new CreateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setGoogleAdsLink($googleAdsLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $keyEvent = new KeyEvent(); - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->createKeyEvent($keyEvent, $formattedParent); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param KeyEvent $keyEvent Required. The Key Event to create. - * @param string $parent Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\KeyEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createKeyEvent($keyEvent, $parent, array $optionalArgs = []) - { - $request = new CreateKeyEventRequest(); - $requestParamHeaders = []; - $request->setKeyEvent($keyEvent); - $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('CreateKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createMeasurementProtocolSecret($parent, $measurementProtocolSecret, array $optionalArgs = []) - { - $request = new CreateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $response = $analyticsAdminServiceClient->createProperty($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to create. - * Note: the supplied property must specify its parent. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createProperty($property, array $optionalArgs = []) - { - $request = new CreatePropertyRequest(); - $request->setProperty($property); - return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Create a roll-up property and all roll-up property source links. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $rollupProperty = new Property(); - * $response = $analyticsAdminServiceClient->createRollupProperty($rollupProperty); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $rollupProperty Required. The roll-up property to create. - * @param array $optionalArgs { - * Optional. - * - * @type string[] $sourceProperties - * Optional. The resource names of properties that will be sources to the - * created roll-up property. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createRollupProperty($rollupProperty, array $optionalArgs = []) - { - $request = new CreateRollupPropertyRequest(); - $request->setRollupProperty($rollupProperty); - if (isset($optionalArgs['sourceProperties'])) { - $request->setSourceProperties($optionalArgs['sourceProperties']); - } - - return $this->startCall('CreateRollupProperty', CreateRollupPropertyResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a roll-up property source link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $rollupPropertySourceLink = new RollupPropertySourceLink(); - * $response = $analyticsAdminServiceClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * Example: properties/1234 - * @param RollupPropertySourceLink $rollupPropertySourceLink Required. The roll-up property source link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createRollupPropertySourceLink($parent, $rollupPropertySourceLink, array $optionalArgs = []) - { - $request = new CreateRollupPropertySourceLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRollupPropertySourceLink($rollupPropertySourceLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - * $response = $analyticsAdminServiceClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this schema will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @param SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createSKAdNetworkConversionValueSchema($parent, $skadnetworkConversionValueSchema, array $optionalArgs = []) - { - $request = new CreateSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a SearchAds360Link. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $searchAds360Link = new SearchAds360Link(); - * $response = $analyticsAdminServiceClient->createSearchAds360Link($formattedParent, $searchAds360Link); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param SearchAds360Link $searchAds360Link Required. The SearchAds360Link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createSearchAds360Link($parent, $searchAds360Link, array $optionalArgs = []) - { - $request = new CreateSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setSearchAds360Link($searchAds360Link); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a subproperty Event Filter. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $subpropertyEventFilter = new SubpropertyEventFilter(); - * $response = $analyticsAdminServiceClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The ordinary property for which to create a subproperty event - * filter. Format: properties/property_id Example: properties/123 - * @param SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createSubpropertyEventFilter($parent, $subpropertyEventFilter, array $optionalArgs = []) - { - $request = new CreateSubpropertyEventFilterRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setSubpropertyEventFilter($subpropertyEventFilter); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateSubpropertyEventFilter', SubpropertyEventFilter::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes an access binding on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - * $analyticsAdminServiceClient->deleteAccessBinding($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAccessBinding($name, array $optionalArgs = []) - { - $request = new DeleteAccessBindingRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAccessBinding', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * AccessBindings) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $analyticsAdminServiceClient->deleteAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAccount($name, array $optionalArgs = []) - { - $request = new DeleteAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAccount', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes an AdSenseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - * $analyticsAdminServiceClient->deleteAdSenseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Unique identifier for the AdSense Link to be deleted. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAdSenseLink($name, array $optionalArgs = []) - { - $request = new DeleteAdSenseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAdSenseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a BigQueryLink on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - * $analyticsAdminServiceClient->deleteBigQueryLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The BigQueryLink to delete. - * Example format: properties/1234/bigQueryLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteBigQueryLink($name, array $optionalArgs = []) - { - $request = new DeleteBigQueryLinkRequest(); - $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('DeleteBigQueryLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a CalculatedMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - * $analyticsAdminServiceClient->deleteCalculatedMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CalculatedMetric to delete. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteCalculatedMetric($name, array $optionalArgs = []) - { - $request = new DeleteCalculatedMetricRequest(); - $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('DeleteCalculatedMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a ChannelGroup on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - * $analyticsAdminServiceClient->deleteChannelGroup($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The ChannelGroup to delete. - * Example format: properties/1234/channelGroups/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteChannelGroup($name, array $optionalArgs = []) - { - $request = new DeleteChannelGroupRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteChannelGroup', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a connected site tag for a Universal Analytics property. - * Note: this has no effect on GA4 properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $analyticsAdminServiceClient->deleteConnectedSiteTag(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * The Universal Analytics property to delete connected site tags for. - * This API does not support GA4 properties. - * Format: properties/{universalAnalyticsPropertyId} - * Example: properties/1234 - * @type string $tagId - * Tag ID to forward events to. Also known as the Measurement ID, or the - * "G-ID" (For example: G-12345). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteConnectedSiteTag(array $optionalArgs = []) - { - $request = new DeleteConnectedSiteTagRequest(); - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - if (isset($optionalArgs['tagId'])) { - $request->setTagId($optionalArgs['tagId']); - } - - return $this->startCall('DeleteConnectedSiteTag', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `DeleteKeyEvent` instead. - * Deletes a conversion event in a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $analyticsAdminServiceClient->deleteConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function deleteConversionEvent($name, array $optionalArgs = []) - { - $request = new DeleteConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteConversionEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $analyticsAdminServiceClient->deleteDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDataStream($name, array $optionalArgs = []) - { - $request = new DeleteDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDataStream', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDisplayVideo360AdvertiserLink($name, array $optionalArgs = []) - { - $request = new DeleteDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDisplayVideo360AdvertiserLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - * This can only be used on cancelled proposals. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new DeleteDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDisplayVideo360AdvertiserLinkProposal', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes an EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - * $analyticsAdminServiceClient->deleteEventCreateRule($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteEventCreateRule($name, array $optionalArgs = []) - { - $request = new DeleteEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteEventCreateRule', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes an EventEditRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - * $analyticsAdminServiceClient->deleteEventEditRule($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteEventEditRule($name, array $optionalArgs = []) - { - $request = new DeleteEventEditRuleRequest(); - $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('DeleteEventEditRule', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a ExpandedDataSet on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - * $analyticsAdminServiceClient->deleteExpandedDataSet($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/expandedDataSets/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteExpandedDataSet($name, array $optionalArgs = []) - { - $request = new DeleteExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteExpandedDataSet', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a FirebaseLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * - * Example: `properties/1234/firebaseLinks/5678` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteFirebaseLink($name, array $optionalArgs = []) - { - $request = new DeleteFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteFirebaseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - * $analyticsAdminServiceClient->deleteGoogleAdsLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteGoogleAdsLink($name, array $optionalArgs = []) - { - $request = new DeleteGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteGoogleAdsLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - * $analyticsAdminServiceClient->deleteKeyEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteKeyEvent($name, array $optionalArgs = []) - { - $request = new DeleteKeyEventRequest(); - $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('DeleteKeyEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new DeleteMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteMeasurementProtocolSecret', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Property as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted properties. - * However, they can be restored using the Trash Can UI. - * - * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - * will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found, or is not a GA4 Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->deleteProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteProperty($name, array $optionalArgs = []) - { - $request = new DeletePropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a roll-up property source link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - * $analyticsAdminServiceClient->deleteRollupPropertySourceLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/1234/rollupPropertySourceLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteRollupPropertySourceLink($name, array $optionalArgs = []) - { - $request = new DeleteRollupPropertySourceLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteRollupPropertySourceLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes target SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - * $analyticsAdminServiceClient->deleteSKAdNetworkConversionValueSchema($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the SKAdNetworkConversionValueSchema to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) - { - $request = new DeleteSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteSKAdNetworkConversionValueSchema', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a SearchAds360Link on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - * $analyticsAdminServiceClient->deleteSearchAds360Link($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the SearchAds360Link to delete. - * Example format: properties/1234/SearchAds360Links/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteSearchAds360Link($name, array $optionalArgs = []) - { - $request = new DeleteSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteSearchAds360Link', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a subproperty event filter. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - * $analyticsAdminServiceClient->deleteSubpropertyEventFilter($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Resource name of the subproperty event filter to delete. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteSubpropertyEventFilter($name, array $optionalArgs = []) - { - $request = new DeleteSubpropertyEventFilterRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteSubpropertyEventFilter', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Fetches the opt out status for the automated GA4 setup process for a UA - * property. - * Note: this has no effect on GA4 property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = 'property'; - * $response = $analyticsAdminServiceClient->fetchAutomatedGa4ConfigurationOptOut($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The UA property to get the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function fetchAutomatedGa4ConfigurationOptOut($property, array $optionalArgs = []) - { - $request = new FetchAutomatedGa4ConfigurationOptOutRequest(); - $request->setProperty($property); - return $this->startCall('FetchAutomatedGa4ConfigurationOptOut', FetchAutomatedGa4ConfigurationOptOutResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Given a specified UA property, looks up the GA4 property connected to it. - * Note: this cannot be used with GA4 properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->fetchConnectedGa4Property($formattedProperty); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The UA property for which to look up the connected GA4 property. - * Note this request uses the - * internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internal_web_property_id} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\FetchConnectedGa4PropertyResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function fetchConnectedGa4Property($property, array $optionalArgs = []) - { - $request = new FetchConnectedGa4PropertyRequest(); - $request->setProperty($property); - return $this->startCall('FetchConnectedGa4Property', FetchConnectedGa4PropertyResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets information about an access binding. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - * $response = $analyticsAdminServiceClient->getAccessBinding($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the access binding to retrieve. - * Formats: - * - accounts/{account}/accessBindings/{accessBinding} - * - properties/{property}/accessBindings/{accessBinding} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AccessBinding - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAccessBinding($name, array $optionalArgs = []) - { - $request = new GetAccessBindingRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single Account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAccount($name, array $optionalArgs = []) - { - $request = new GetAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Looks up a single AdSenseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - * $response = $analyticsAdminServiceClient->getAdSenseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Unique identifier for the AdSense Link requested. - * Format: properties/{propertyId}/adSenseLinks/{linkId} - * Example: properties/1234/adSenseLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AdSenseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAdSenseLink($name, array $optionalArgs = []) - { - $request = new GetAdSenseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAdSenseLink', AdSenseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a AttributionSettings singleton. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->attributionSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getAttributionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the attribution settings to retrieve. - * Format: properties/{property}/attributionSettings - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAttributionSettings($name, array $optionalArgs = []) - { - $request = new GetAttributionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAttributionSettings', AttributionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single Audience. - * Audiences created before 2020 may not be supported. - * Default audiences will not show filter definitions. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - * $response = $analyticsAdminServiceClient->getAudience($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Audience to get. - * Example format: properties/1234/audiences/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Audience - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAudience($name, array $optionalArgs = []) - { - $request = new GetAudienceRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAudience', Audience::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single BigQuery Link. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - * $response = $analyticsAdminServiceClient->getBigQueryLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the BigQuery link to lookup. - * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id} - * Example: properties/123/bigQueryLinks/456 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getBigQueryLink($name, array $optionalArgs = []) - { - $request = new GetBigQueryLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetBigQueryLink', BigQueryLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CalculatedMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - * $response = $analyticsAdminServiceClient->getCalculatedMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CalculatedMetric to get. - * Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} - * Example: properties/1234/calculatedMetrics/Metric01 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CalculatedMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCalculatedMetric($name, array $optionalArgs = []) - { - $request = new GetCalculatedMetricRequest(); - $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('GetCalculatedMetric', CalculatedMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single ChannelGroup. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - * $response = $analyticsAdminServiceClient->getChannelGroup($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The ChannelGroup to get. - * Example format: properties/1234/channelGroups/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getChannelGroup($name, array $optionalArgs = []) - { - $request = new GetChannelGroupRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `GetKeyEvent` instead. - * Retrieve a single conversion event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $response = $analyticsAdminServiceClient->getConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function getConversionEvent($name, array $optionalArgs = []) - { - $request = new GetConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $response = $analyticsAdminServiceClient->getCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomDimension($name, array $optionalArgs = []) - { - $request = new GetCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $response = $analyticsAdminServiceClient->getCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomMetric($name, array $optionalArgs = []) - { - $request = new GetCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DataRedactionSettings. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getDataRedactionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings - * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataRedactionSettings($name, array $optionalArgs = []) - { - $request = new GetDataRedactionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataRetentionSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getDataRetentionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataRetentionSettings($name, array $optionalArgs = []) - { - $request = new GetDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataSharingSettingsName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getDataSharingSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * - * Example: `accounts/1000/dataSharingSettings` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataSharingSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataSharingSettings($name, array $optionalArgs = []) - { - $request = new GetDataSharingSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataStream($name, array $optionalArgs = []) - { - $request = new GetDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Look up a single DisplayVideo360AdvertiserLink - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to get. - * Example format: properties/1234/displayVideo360AdvertiserLink/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDisplayVideo360AdvertiserLink($name, array $optionalArgs = []) - { - $request = new GetDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = []) - { - $request = new GetDisplayVideo360AdvertiserLinkProposalRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the enhanced measurement settings for this data stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getEnhancedMeasurementSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings - * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getEnhancedMeasurementSettings($name, array $optionalArgs = []) - { - $request = new GetEnhancedMeasurementSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - * $response = $analyticsAdminServiceClient->getEventCreateRule($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the EventCreateRule to get. - * Example format: properties/123/dataStreams/456/eventCreateRules/789 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getEventCreateRule($name, array $optionalArgs = []) - { - $request = new GetEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single EventEditRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - * $response = $analyticsAdminServiceClient->getEventEditRule($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the EventEditRule to get. - * Example format: properties/123/dataStreams/456/eventEditRules/789 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventEditRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getEventEditRule($name, array $optionalArgs = []) - { - $request = new GetEventEditRuleRequest(); - $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('GetEventEditRule', EventEditRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single ExpandedDataSet. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - * $response = $analyticsAdminServiceClient->getExpandedDataSet($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the ExpandedDataSet to get. - * Example format: properties/1234/expandedDataSets/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getExpandedDataSet($name, array $optionalArgs = []) - { - $request = new GetExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the Site Tag for the specified web stream. - * Site Tags are immutable singletons. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getGlobalSiteTag($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the site tag to lookup. - * Note that site tags are singletons and do not have unique IDs. - * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag - * - * Example: `properties/123/dataStreams/456/globalSiteTag` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GlobalSiteTag - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getGlobalSiteTag($name, array $optionalArgs = []) - { - $request = new GetGlobalSiteTagRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetGlobalSiteTag', GlobalSiteTag::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for Google Signals settings for a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->googleSignalsSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getGoogleSignalsSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the google signals settings to retrieve. - * Format: properties/{property}/googleSignalsSettings - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getGoogleSignalsSettings($name, array $optionalArgs = []) - { - $request = new GetGoogleSignalsSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieve a single Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - * $response = $analyticsAdminServiceClient->getKeyEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\KeyEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getKeyEvent($name, array $optionalArgs = []) - { - $request = new GetKeyEventRequest(); - $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('GetKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new GetMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getProperty($name, array $optionalArgs = []) - { - $request = new GetPropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single roll-up property source Link. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - * $response = $analyticsAdminServiceClient->getRollupPropertySourceLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the roll-up property source link to lookup. - * Format: - * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} - * Example: properties/123/rollupPropertySourceLinks/456 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getRollupPropertySourceLink($name, array $optionalArgs = []) - { - $request = new GetRollupPropertySourceLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Looks up a single SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - * $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) - { - $request = new GetSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); - } - - /** - * Look up a single SearchAds360Link - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - * $response = $analyticsAdminServiceClient->getSearchAds360Link($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getSearchAds360Link($name, array $optionalArgs = []) - { - $request = new GetSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single subproperty Event Filter. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - * $response = $analyticsAdminServiceClient->getSubpropertyEventFilter($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Resource name of the subproperty event filter to lookup. - * Format: - * properties/property_id/subpropertyEventFilters/subproperty_event_filter - * Example: properties/123/subpropertyEventFilters/456 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getSubpropertyEventFilter($name, array $optionalArgs = []) - { - $request = new GetSubpropertyEventFilterRequest(); - $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('GetSubpropertyEventFilter', SubpropertyEventFilter::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all access bindings on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccessBindings($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccessBindings($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Formats: - * - accounts/{account} - * - properties/{property} - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccessBindings($parent, array $optionalArgs = []) - { - $request = new ListAccessBindingsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAccessBindings', $optionalArgs, ListAccessBindingsResponse::class, $request); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccountSummaries(array $optionalArgs = []) - { - $request = new ListAccountSummariesRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - return $this->getPagedListResponse('ListAccountSummaries', $optionalArgs, ListAccountSummariesResponse::class, $request); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccounts(array $optionalArgs = []) - { - $request = new ListAccountsRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListAccounts', $optionalArgs, ListAccountsResponse::class, $request); - } - - /** - * Lists AdSenseLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAdSenseLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAdSenseLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Resource name of the parent property. - * Format: properties/{propertyId} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAdSenseLinks($parent, array $optionalArgs = []) - { - $request = new ListAdSenseLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAdSenseLinks', $optionalArgs, ListAdSenseLinksResponse::class, $request); - } - - /** - * Lists Audiences on a property. - * Audiences created before 2020 may not be supported. - * Default audiences will not show filter definitions. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAudiences($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAudiences($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAudiences($parent, array $optionalArgs = []) - { - $request = new ListAudiencesRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListAudiences', $optionalArgs, ListAudiencesResponse::class, $request); - } - - /** - * Lists BigQuery Links on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listBigQueryLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listBigQueryLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listBigQueryLinks($parent, array $optionalArgs = []) - { - $request = new ListBigQueryLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListBigQueryLinks', $optionalArgs, ListBigQueryLinksResponse::class, $request); - } - - /** - * Lists CalculatedMetrics on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCalculatedMetrics($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCalculatedMetrics($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCalculatedMetrics($parent, array $optionalArgs = []) - { - $request = new ListCalculatedMetricsRequest(); - $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('ListCalculatedMetrics', $optionalArgs, ListCalculatedMetricsResponse::class, $request); - } - - /** - * Lists ChannelGroups on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listChannelGroups($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listChannelGroups($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The property for which to list ChannelGroups. - * Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listChannelGroups($parent, array $optionalArgs = []) - { - $request = new ListChannelGroupsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListChannelGroups', $optionalArgs, ListChannelGroupsResponse::class, $request); - } - - /** - * Lists the connected site tags for a Universal Analytics property. A maximum - * of 20 connected site tags will be returned. Note: this has no effect on GA4 - * property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->listConnectedSiteTags(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * The Universal Analytics property to fetch connected site tags for. - * This does not work on GA4 properties. A maximum of 20 connected site tags - * will be returned. - * Example Format: `properties/1234` - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ListConnectedSiteTagsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listConnectedSiteTags(array $optionalArgs = []) - { - $request = new ListConnectedSiteTagsRequest(); - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - return $this->startCall('ListConnectedSiteTags', ListConnectedSiteTagsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `ListKeyEvents` instead. - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function listConversionEvents($parent, array $optionalArgs = []) - { - $request = new ListConversionEventsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListConversionEvents', $optionalArgs, ListConversionEventsResponse::class, $request); - } - - /** - * Lists CustomDimensions on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomDimensions($parent, array $optionalArgs = []) - { - $request = new ListCustomDimensionsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomDimensions', $optionalArgs, ListCustomDimensionsResponse::class, $request); - } - - /** - * Lists CustomMetrics on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomMetrics($parent, array $optionalArgs = []) - { - $request = new ListCustomMetricsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomMetrics', $optionalArgs, ListCustomMetricsResponse::class, $request); - } - - /** - * Lists DataStreams on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDataStreams($parent, array $optionalArgs = []) - { - $request = new ListDataStreamsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDataStreams', $optionalArgs, ListDataStreamsResponse::class, $request); - } - - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDisplayVideo360AdvertiserLinkProposals($parent, array $optionalArgs = []) - { - $request = new ListDisplayVideo360AdvertiserLinkProposalsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinkProposals', $optionalArgs, ListDisplayVideo360AdvertiserLinkProposalsResponse::class, $request); - } - - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDisplayVideo360AdvertiserLinks($parent, array $optionalArgs = []) - { - $request = new ListDisplayVideo360AdvertiserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinks', $optionalArgs, ListDisplayVideo360AdvertiserLinksResponse::class, $request); - } - - /** - * Lists EventCreateRules on a web data stream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listEventCreateRules($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listEventCreateRules($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listEventCreateRules($parent, array $optionalArgs = []) - { - $request = new ListEventCreateRulesRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListEventCreateRules', $optionalArgs, ListEventCreateRulesResponse::class, $request); - } - - /** - * Lists EventEditRules on a web data stream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listEventEditRules($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listEventEditRules($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listEventEditRules($parent, array $optionalArgs = []) - { - $request = new ListEventEditRulesRequest(); - $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('ListEventEditRules', $optionalArgs, ListEventEditRulesResponse::class, $request); - } - - /** - * Lists ExpandedDataSets on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listExpandedDataSets($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listExpandedDataSets($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listExpandedDataSets($parent, array $optionalArgs = []) - { - $request = new ListExpandedDataSetsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListExpandedDataSets', $optionalArgs, ListExpandedDataSetsResponse::class, $request); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listFirebaseLinks($parent, array $optionalArgs = []) - { - $request = new ListFirebaseLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListFirebaseLinks', $optionalArgs, ListFirebaseLinksResponse::class, $request); - } - - /** - * Lists GoogleAdsLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listGoogleAdsLinks($parent, array $optionalArgs = []) - { - $request = new ListGoogleAdsLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListGoogleAdsLinks', $optionalArgs, ListGoogleAdsLinksResponse::class, $request); - } - - /** - * Returns a list of Key Events in the specified parent property. - * Returns an empty list if no Key Events are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listKeyEvents($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listKeyEvents($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listKeyEvents($parent, array $optionalArgs = []) - { - $request = new ListKeyEventsRequest(); - $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('ListKeyEvents', $optionalArgs, ListKeyEventsResponse::class, $request); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listMeasurementProtocolSecrets($parent, array $optionalArgs = []) - { - $request = new ListMeasurementProtocolSecretsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListMeasurementProtocolSecrets', $optionalArgs, ListMeasurementProtocolSecretsResponse::class, $request); - } - - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $filter = 'filter'; - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $filter Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listProperties($filter, array $optionalArgs = []) - { - $request = new ListPropertiesRequest(); - $request->setFilter($filter); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListProperties', $optionalArgs, ListPropertiesResponse::class, $request); - } - - /** - * Lists roll-up property source Links on a property. - * Only roll-up properties can have source links, so this method will throw an - * error if used on other types of properties. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The name of the roll-up property to list roll-up property source - * links under. Format: properties/{property_id} Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listRollupPropertySourceLinks($parent, array $optionalArgs = []) - { - $request = new ListRollupPropertySourceLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListRollupPropertySourceLinks', $optionalArgs, ListRollupPropertySourceLinksResponse::class, $request); - } - - /** - * Lists SKAdNetworkConversionValueSchema on a stream. - * Properties can have at most one SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The DataStream resource to list schemas for. - * Format: - * properties/{property_id}/dataStreams/{dataStream} - * Example: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listSKAdNetworkConversionValueSchemas($parent, array $optionalArgs = []) - { - $request = new ListSKAdNetworkConversionValueSchemasRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSKAdNetworkConversionValueSchemas', $optionalArgs, ListSKAdNetworkConversionValueSchemasResponse::class, $request); - } - - /** - * Lists all SearchAds360Links on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listSearchAds360Links($parent, array $optionalArgs = []) - { - $request = new ListSearchAds360LinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSearchAds360Links', $optionalArgs, ListSearchAds360LinksResponse::class, $request); - } - - /** - * List all subproperty Event Filters on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSubpropertyEventFilters($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSubpropertyEventFilters($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Resource name of the ordinary property. - * Format: properties/property_id - * Example: properties/123 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listSubpropertyEventFilters($parent, array $optionalArgs = []) - { - $request = new ListSubpropertyEventFiltersRequest(); - $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('ListSubpropertyEventFilters', $optionalArgs, ListSubpropertyEventFiltersResponse::class, $request); - } - - /** - * Requests a ticket for creating an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->provisionAccountTicket(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type Account $account - * The account to create. - * @type string $redirectUri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function provisionAccountTicket(array $optionalArgs = []) - { - $request = new ProvisionAccountTicketRequest(); - if (isset($optionalArgs['account'])) { - $request->setAccount($optionalArgs['account']); - } - - if (isset($optionalArgs['redirectUri'])) { - $request->setRedirectUri($optionalArgs['redirectUri']); - } - - return $this->startCall('ProvisionAccountTicket', ProvisionAccountTicketResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Create a subproperty and a subproperty event filter that applies to the - * created subproperty. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $subproperty = new Property(); - * $response = $analyticsAdminServiceClient->provisionSubproperty($subproperty); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $subproperty Required. The subproperty to create. - * @param array $optionalArgs { - * Optional. - * - * @type SubpropertyEventFilter $subpropertyEventFilter - * Optional. The subproperty event filter to create on an ordinary property. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function provisionSubproperty($subproperty, array $optionalArgs = []) - { - $request = new ProvisionSubpropertyRequest(); - $request->setSubproperty($subproperty); - if (isset($optionalArgs['subpropertyEventFilter'])) { - $request->setSubpropertyEventFilter($optionalArgs['subpropertyEventFilter']); - } - - return $this->startCall('ProvisionSubproperty', ProvisionSubpropertyResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Changes the processing order of event edit rules on the specified stream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $eventEditRules = []; - * $analyticsAdminServiceClient->reorderEventEditRules($formattedParent, $eventEditRules); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/123/dataStreams/456 - * @param string[] $eventEditRules Required. EventEditRule resource names for the specified data stream, in - * the needed processing order. All EventEditRules for the stream must be - * present in the list. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function reorderEventEditRules($parent, $eventEditRules, array $optionalArgs = []) - { - $request = new ReorderEventEditRulesRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setEventEditRules($eventEditRules); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ReorderEventEditRules', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. Reports may be - * requested for any property, but dimensions that aren't related to quota can - * only be requested on Google Analytics 360 properties. This method is only - * available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->runAccessReport(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type AccessDimension[] $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type AccessMetric[] $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type AccessDateRange[] $dateRanges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type AccessFilterExpression $dimensionFilter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type AccessFilterExpression $metricFilter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $timeZone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type AccessOrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type bool $returnEntityQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * @type bool $includeAllUsers - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * @type bool $expandGroups - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\RunAccessReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runAccessReport(array $optionalArgs = []) - { - $request = new RunAccessReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['entity'])) { - $request->setEntity($optionalArgs['entity']); - $requestParamHeaders['entity'] = $optionalArgs['entity']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['timeZone'])) { - $request->setTimeZone($optionalArgs['timeZone']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['returnEntityQuota'])) { - $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); - } - - if (isset($optionalArgs['includeAllUsers'])) { - $request->setIncludeAllUsers($optionalArgs['includeAllUsers']); - } - - if (isset($optionalArgs['expandGroups'])) { - $request->setExpandGroups($optionalArgs['expandGroups']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedAccount = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $account Required. The account resource for which to return change history - * resources. Format: accounts/{account} - * - * Example: `accounts/100` - * @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. - * Format: properties/{propertyId} - * - * Example: `properties/100` - * @type int[] $resourceType - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1alpha\ChangeHistoryResourceType} - * @type int[] $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1alpha\ActionType} - * @type string[] $actorEmail - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type Timestamp $earliestChangeTime - * Optional. If set, only return changes made after this time (inclusive). - * @type Timestamp $latestChangeTime - * Optional. If set, only return changes made before this time (inclusive). - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function searchChangeHistoryEvents($account, array $optionalArgs = []) - { - $request = new SearchChangeHistoryEventsRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $requestParamHeaders['account'] = $account; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - if (isset($optionalArgs['resourceType'])) { - $request->setResourceType($optionalArgs['resourceType']); - } - - if (isset($optionalArgs['action'])) { - $request->setAction($optionalArgs['action']); - } - - if (isset($optionalArgs['actorEmail'])) { - $request->setActorEmail($optionalArgs['actorEmail']); - } - - if (isset($optionalArgs['earliestChangeTime'])) { - $request->setEarliestChangeTime($optionalArgs['earliestChangeTime']); - } - - if (isset($optionalArgs['latestChangeTime'])) { - $request->setLatestChangeTime($optionalArgs['latestChangeTime']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('SearchChangeHistoryEvents', $optionalArgs, SearchChangeHistoryEventsResponse::class, $request); - } - - /** - * Sets the opt out status for the automated GA4 setup process for a UA - * property. - * Note: this has no effect on GA4 property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = 'property'; - * $response = $analyticsAdminServiceClient->setAutomatedGa4ConfigurationOptOut($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The UA property to set the opt out status. Note this request uses - * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - * Format: properties/{internalWebPropertyId} - * Example: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type bool $optOut - * The status to set. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function setAutomatedGa4ConfigurationOptOut($property, array $optionalArgs = []) - { - $request = new SetAutomatedGa4ConfigurationOptOutRequest(); - $request->setProperty($property); - if (isset($optionalArgs['optOut'])) { - $request->setOptOut($optionalArgs['optOut']); - } - - return $this->startCall('SetAutomatedGa4ConfigurationOptOut', SetAutomatedGa4ConfigurationOptOutResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an access binding on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $accessBinding = new AccessBinding(); - * $response = $analyticsAdminServiceClient->updateAccessBinding($accessBinding); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param AccessBinding $accessBinding Required. The access binding to update. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AccessBinding - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAccessBinding($accessBinding, array $optionalArgs = []) - { - $request = new UpdateAccessBindingRequest(); - $requestParamHeaders = []; - $request->setAccessBinding($accessBinding); - $requestParamHeaders['access_binding.name'] = $accessBinding->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAccessBinding', AccessBinding::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $account = new Account(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Account $account Required. The account to update. - * The account's `name` field is used to identify the account. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAccount($account, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAccountRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $request->setUpdateMask($updateMask); - $requestParamHeaders['account.name'] = $account->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates attribution settings on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $attributionSettings = new AttributionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAttributionSettings($attributionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param AttributionSettings $attributionSettings Required. The attribution settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\AttributionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAttributionSettings($attributionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAttributionSettingsRequest(); - $requestParamHeaders = []; - $request->setAttributionSettings($attributionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['attribution_settings.name'] = $attributionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAttributionSettings', AttributionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an Audience on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $audience = new Audience(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAudience($audience, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Audience $audience Required. The audience to update. - * The audience's `name` field is used to identify the audience to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Audience - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAudience($audience, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAudienceRequest(); - $requestParamHeaders = []; - $request->setAudience($audience); - $request->setUpdateMask($updateMask); - $requestParamHeaders['audience.name'] = $audience->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAudience', Audience::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a BigQueryLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $bigqueryLink = new BigQueryLink(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateBigQueryLink($bigqueryLink, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param BigQueryLink $bigqueryLink Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\BigQueryLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateBigQueryLink($bigqueryLink, $updateMask, array $optionalArgs = []) - { - $request = new UpdateBigQueryLinkRequest(); - $requestParamHeaders = []; - $request->setBigqueryLink($bigqueryLink); - $request->setUpdateMask($updateMask); - $requestParamHeaders['bigquery_link.name'] = $bigqueryLink->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateBigQueryLink', BigQueryLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CalculatedMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $calculatedMetric = new CalculatedMetric(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCalculatedMetric($calculatedMetric, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param CalculatedMetric $calculatedMetric Required. The CalculatedMetric to update - * @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 RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CalculatedMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCalculatedMetric($calculatedMetric, $updateMask, array $optionalArgs = []) - { - $request = new UpdateCalculatedMetricRequest(); - $requestParamHeaders = []; - $request->setCalculatedMetric($calculatedMetric); - $request->setUpdateMask($updateMask); - $requestParamHeaders['calculated_metric.name'] = $calculatedMetric->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCalculatedMetric', CalculatedMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a ChannelGroup. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $channelGroup = new ChannelGroup(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateChannelGroup($channelGroup, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ChannelGroup $channelGroup Required. The ChannelGroup to update. - * The resource's `name` field is used to identify the ChannelGroup to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ChannelGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateChannelGroup($channelGroup, $updateMask, array $optionalArgs = []) - { - $request = new UpdateChannelGroupRequest(); - $requestParamHeaders = []; - $request->setChannelGroup($channelGroup); - $request->setUpdateMask($updateMask); - $requestParamHeaders['channel_group.name'] = $channelGroup->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateChannelGroup', ChannelGroup::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `UpdateKeyEvent` instead. - * Updates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateConversionEvent($conversionEvent, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function updateConversionEvent($conversionEvent, $updateMask, array $optionalArgs = []) - { - $request = new UpdateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setUpdateMask($updateMask); - $requestParamHeaders['conversion_event.name'] = $conversionEvent->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomDimension($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomDimension $customDimension - * The CustomDimension to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomDimension($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customDimension'])) { - $request->setCustomDimension($optionalArgs['customDimension']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomMetric($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomMetric $customMetric - * The CustomMetric to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomMetric($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customMetric'])) { - $request->setCustomMetric($optionalArgs['customMetric']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DataRedactionSettings on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $dataRedactionSettings = new DataRedactionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param DataRedactionSettings $dataRedactionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataRedactionSettings($dataRedactionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateDataRedactionSettingsRequest(); - $requestParamHeaders = []; - $request->setDataRedactionSettings($dataRedactionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['data_redaction_settings.name'] = $dataRedactionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $dataRetentionSettings = new DataRetentionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param DataRetentionSettings $dataRetentionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setDataRetentionSettings($dataRetentionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['data_retention_settings.name'] = $dataRetentionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataStream($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type DataStream $dataStream - * The DataStream to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataStream($updateMask, array $optionalArgs = []) - { - $request = new UpdateDataStreamRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['dataStream'])) { - $request->setDataStream($optionalArgs['dataStream']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DisplayVideo360AdvertiserLink on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDisplayVideo360AdvertiserLink($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink - * The DisplayVideo360AdvertiserLink to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDisplayVideo360AdvertiserLink($updateMask, array $optionalArgs = []) - { - $request = new UpdateDisplayVideo360AdvertiserLinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['displayVideo360AdvertiserLink'])) { - $request->setDisplayVideo360AdvertiserLink($optionalArgs['displayVideo360AdvertiserLink']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the enhanced measurement settings for this data stream. - * Note that the stream must enable enhanced measurement for these settings to - * take effect. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param EnhancedMeasurementSettings $enhancedMeasurementSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateEnhancedMeasurementSettingsRequest(); - $requestParamHeaders = []; - $request->setEnhancedMeasurementSettings($enhancedMeasurementSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['enhanced_measurement_settings.name'] = $enhancedMeasurementSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an EventCreateRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $eventCreateRule = new EventCreateRule(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateEventCreateRule($eventCreateRule, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param EventCreateRule $eventCreateRule Required. The EventCreateRule to update. - * The resource's `name` field is used to identify the EventCreateRule to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventCreateRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateEventCreateRule($eventCreateRule, $updateMask, array $optionalArgs = []) - { - $request = new UpdateEventCreateRuleRequest(); - $requestParamHeaders = []; - $request->setEventCreateRule($eventCreateRule); - $request->setUpdateMask($updateMask); - $requestParamHeaders['event_create_rule.name'] = $eventCreateRule->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates an EventEditRule. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $eventEditRule = new EventEditRule(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateEventEditRule($eventEditRule, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param EventEditRule $eventEditRule Required. The EventEditRule to update. - * The resource's `name` field is used to identify the EventEditRule to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\EventEditRule - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateEventEditRule($eventEditRule, $updateMask, array $optionalArgs = []) - { - $request = new UpdateEventEditRuleRequest(); - $requestParamHeaders = []; - $request->setEventEditRule($eventEditRule); - $request->setUpdateMask($updateMask); - $requestParamHeaders['event_edit_rule.name'] = $eventEditRule->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateEventEditRule', EventEditRule::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a ExpandedDataSet on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $expandedDataSet = new ExpandedDataSet(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateExpandedDataSet($expandedDataSet, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ExpandedDataSet $expandedDataSet Required. The ExpandedDataSet to update. - * The resource's `name` field is used to identify the ExpandedDataSet to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\ExpandedDataSet - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateExpandedDataSet($expandedDataSet, $updateMask, array $optionalArgs = []) - { - $request = new UpdateExpandedDataSetRequest(); - $requestParamHeaders = []; - $request->setExpandedDataSet($expandedDataSet); - $request->setUpdateMask($updateMask); - $requestParamHeaders['expanded_data_set.name'] = $expandedDataSet->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateExpandedDataSet', ExpandedDataSet::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateGoogleAdsLink($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type GoogleAdsLink $googleAdsLink - * The GoogleAdsLink to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateGoogleAdsLink($updateMask, array $optionalArgs = []) - { - $request = new UpdateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['googleAdsLink'])) { - $request->setGoogleAdsLink($optionalArgs['googleAdsLink']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates Google Signals settings for a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $googleSignalsSettings = new GoogleSignalsSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param GoogleSignalsSettings $googleSignalsSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateGoogleSignalsSettings($googleSignalsSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateGoogleSignalsSettingsRequest(); - $requestParamHeaders = []; - $request->setGoogleSignalsSettings($googleSignalsSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['google_signals_settings.name'] = $googleSignalsSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $keyEvent = new KeyEvent(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateKeyEvent($keyEvent, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param KeyEvent $keyEvent Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\KeyEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateKeyEvent($keyEvent, $updateMask, array $optionalArgs = []) - { - $request = new UpdateKeyEventRequest(); - $requestParamHeaders = []; - $request->setKeyEvent($keyEvent); - $request->setUpdateMask($updateMask); - $requestParamHeaders['key_event.name'] = $keyEvent->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask, array $optionalArgs = []) - { - $request = new UpdateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $request->setUpdateMask($updateMask); - $requestParamHeaders['measurement_protocol_secret.name'] = $measurementProtocolSecret->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateProperty($property, $updateMask, array $optionalArgs = []) - { - $request = new UpdatePropertyRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setUpdateMask($updateMask); - $requestParamHeaders['property.name'] = $property->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a SKAdNetworkConversionValueSchema. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param SKAdNetworkConversionValueSchema $skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to update. - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask, array $optionalArgs = []) - { - $request = new UpdateSKAdNetworkConversionValueSchemaRequest(); - $requestParamHeaders = []; - $request->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - $request->setUpdateMask($updateMask); - $requestParamHeaders['skadnetwork_conversion_value_schema.name'] = $skadnetworkConversionValueSchema->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a SearchAds360Link on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateSearchAds360Link($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type SearchAds360Link $searchAds360Link - * The SearchAds360Link to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateSearchAds360Link($updateMask, array $optionalArgs = []) - { - $request = new UpdateSearchAds360LinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['searchAds360Link'])) { - $request->setSearchAds360Link($optionalArgs['searchAds360Link']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a subproperty Event Filter. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $subpropertyEventFilter = new SubpropertyEventFilter(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateSubpropertyEventFilter($subpropertyEventFilter, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter to update. - * @param FieldMask $updateMask Required. The list of fields to update. Field names must be in snake case - * (for example, "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateSubpropertyEventFilter($subpropertyEventFilter, $updateMask, array $optionalArgs = []) - { - $request = new UpdateSubpropertyEventFilterRequest(); - $requestParamHeaders = []; - $request->setSubpropertyEventFilter($subpropertyEventFilter); - $request->setUpdateMask($updateMask); - $requestParamHeaders['subproperty_event_filter.name'] = $subpropertyEventFilter->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateSubpropertyEventFilter', SubpropertyEventFilter::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 2d0ee0a353b0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/gapic_metadata.json +++ /dev/null @@ -1,768 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.analytics.admin.v1alpha", - "libraryPackage": "Google\\Analytics\\Admin\\V1alpha", - "services": { - "AnalyticsAdminService": { - "clients": { - "grpc": { - "libraryClient": "AnalyticsAdminServiceGapicClient", - "rpcs": { - "AcknowledgeUserDataCollection": { - "methods": [ - "acknowledgeUserDataCollection" - ] - }, - "ApproveDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "approveDisplayVideo360AdvertiserLinkProposal" - ] - }, - "ArchiveAudience": { - "methods": [ - "archiveAudience" - ] - }, - "ArchiveCustomDimension": { - "methods": [ - "archiveCustomDimension" - ] - }, - "ArchiveCustomMetric": { - "methods": [ - "archiveCustomMetric" - ] - }, - "BatchCreateAccessBindings": { - "methods": [ - "batchCreateAccessBindings" - ] - }, - "BatchDeleteAccessBindings": { - "methods": [ - "batchDeleteAccessBindings" - ] - }, - "BatchGetAccessBindings": { - "methods": [ - "batchGetAccessBindings" - ] - }, - "BatchUpdateAccessBindings": { - "methods": [ - "batchUpdateAccessBindings" - ] - }, - "CancelDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "cancelDisplayVideo360AdvertiserLinkProposal" - ] - }, - "CreateAccessBinding": { - "methods": [ - "createAccessBinding" - ] - }, - "CreateAdSenseLink": { - "methods": [ - "createAdSenseLink" - ] - }, - "CreateAudience": { - "methods": [ - "createAudience" - ] - }, - "CreateBigQueryLink": { - "methods": [ - "createBigQueryLink" - ] - }, - "CreateCalculatedMetric": { - "methods": [ - "createCalculatedMetric" - ] - }, - "CreateChannelGroup": { - "methods": [ - "createChannelGroup" - ] - }, - "CreateConnectedSiteTag": { - "methods": [ - "createConnectedSiteTag" - ] - }, - "CreateConversionEvent": { - "methods": [ - "createConversionEvent" - ] - }, - "CreateCustomDimension": { - "methods": [ - "createCustomDimension" - ] - }, - "CreateCustomMetric": { - "methods": [ - "createCustomMetric" - ] - }, - "CreateDataStream": { - "methods": [ - "createDataStream" - ] - }, - "CreateDisplayVideo360AdvertiserLink": { - "methods": [ - "createDisplayVideo360AdvertiserLink" - ] - }, - "CreateDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "createDisplayVideo360AdvertiserLinkProposal" - ] - }, - "CreateEventCreateRule": { - "methods": [ - "createEventCreateRule" - ] - }, - "CreateEventEditRule": { - "methods": [ - "createEventEditRule" - ] - }, - "CreateExpandedDataSet": { - "methods": [ - "createExpandedDataSet" - ] - }, - "CreateFirebaseLink": { - "methods": [ - "createFirebaseLink" - ] - }, - "CreateGoogleAdsLink": { - "methods": [ - "createGoogleAdsLink" - ] - }, - "CreateKeyEvent": { - "methods": [ - "createKeyEvent" - ] - }, - "CreateMeasurementProtocolSecret": { - "methods": [ - "createMeasurementProtocolSecret" - ] - }, - "CreateProperty": { - "methods": [ - "createProperty" - ] - }, - "CreateRollupProperty": { - "methods": [ - "createRollupProperty" - ] - }, - "CreateRollupPropertySourceLink": { - "methods": [ - "createRollupPropertySourceLink" - ] - }, - "CreateSKAdNetworkConversionValueSchema": { - "methods": [ - "createSKAdNetworkConversionValueSchema" - ] - }, - "CreateSearchAds360Link": { - "methods": [ - "createSearchAds360Link" - ] - }, - "CreateSubpropertyEventFilter": { - "methods": [ - "createSubpropertyEventFilter" - ] - }, - "DeleteAccessBinding": { - "methods": [ - "deleteAccessBinding" - ] - }, - "DeleteAccount": { - "methods": [ - "deleteAccount" - ] - }, - "DeleteAdSenseLink": { - "methods": [ - "deleteAdSenseLink" - ] - }, - "DeleteBigQueryLink": { - "methods": [ - "deleteBigQueryLink" - ] - }, - "DeleteCalculatedMetric": { - "methods": [ - "deleteCalculatedMetric" - ] - }, - "DeleteChannelGroup": { - "methods": [ - "deleteChannelGroup" - ] - }, - "DeleteConnectedSiteTag": { - "methods": [ - "deleteConnectedSiteTag" - ] - }, - "DeleteConversionEvent": { - "methods": [ - "deleteConversionEvent" - ] - }, - "DeleteDataStream": { - "methods": [ - "deleteDataStream" - ] - }, - "DeleteDisplayVideo360AdvertiserLink": { - "methods": [ - "deleteDisplayVideo360AdvertiserLink" - ] - }, - "DeleteDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "deleteDisplayVideo360AdvertiserLinkProposal" - ] - }, - "DeleteEventCreateRule": { - "methods": [ - "deleteEventCreateRule" - ] - }, - "DeleteEventEditRule": { - "methods": [ - "deleteEventEditRule" - ] - }, - "DeleteExpandedDataSet": { - "methods": [ - "deleteExpandedDataSet" - ] - }, - "DeleteFirebaseLink": { - "methods": [ - "deleteFirebaseLink" - ] - }, - "DeleteGoogleAdsLink": { - "methods": [ - "deleteGoogleAdsLink" - ] - }, - "DeleteKeyEvent": { - "methods": [ - "deleteKeyEvent" - ] - }, - "DeleteMeasurementProtocolSecret": { - "methods": [ - "deleteMeasurementProtocolSecret" - ] - }, - "DeleteProperty": { - "methods": [ - "deleteProperty" - ] - }, - "DeleteRollupPropertySourceLink": { - "methods": [ - "deleteRollupPropertySourceLink" - ] - }, - "DeleteSKAdNetworkConversionValueSchema": { - "methods": [ - "deleteSKAdNetworkConversionValueSchema" - ] - }, - "DeleteSearchAds360Link": { - "methods": [ - "deleteSearchAds360Link" - ] - }, - "DeleteSubpropertyEventFilter": { - "methods": [ - "deleteSubpropertyEventFilter" - ] - }, - "FetchAutomatedGa4ConfigurationOptOut": { - "methods": [ - "fetchAutomatedGa4ConfigurationOptOut" - ] - }, - "FetchConnectedGa4Property": { - "methods": [ - "fetchConnectedGa4Property" - ] - }, - "GetAccessBinding": { - "methods": [ - "getAccessBinding" - ] - }, - "GetAccount": { - "methods": [ - "getAccount" - ] - }, - "GetAdSenseLink": { - "methods": [ - "getAdSenseLink" - ] - }, - "GetAttributionSettings": { - "methods": [ - "getAttributionSettings" - ] - }, - "GetAudience": { - "methods": [ - "getAudience" - ] - }, - "GetBigQueryLink": { - "methods": [ - "getBigQueryLink" - ] - }, - "GetCalculatedMetric": { - "methods": [ - "getCalculatedMetric" - ] - }, - "GetChannelGroup": { - "methods": [ - "getChannelGroup" - ] - }, - "GetConversionEvent": { - "methods": [ - "getConversionEvent" - ] - }, - "GetCustomDimension": { - "methods": [ - "getCustomDimension" - ] - }, - "GetCustomMetric": { - "methods": [ - "getCustomMetric" - ] - }, - "GetDataRedactionSettings": { - "methods": [ - "getDataRedactionSettings" - ] - }, - "GetDataRetentionSettings": { - "methods": [ - "getDataRetentionSettings" - ] - }, - "GetDataSharingSettings": { - "methods": [ - "getDataSharingSettings" - ] - }, - "GetDataStream": { - "methods": [ - "getDataStream" - ] - }, - "GetDisplayVideo360AdvertiserLink": { - "methods": [ - "getDisplayVideo360AdvertiserLink" - ] - }, - "GetDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "getDisplayVideo360AdvertiserLinkProposal" - ] - }, - "GetEnhancedMeasurementSettings": { - "methods": [ - "getEnhancedMeasurementSettings" - ] - }, - "GetEventCreateRule": { - "methods": [ - "getEventCreateRule" - ] - }, - "GetEventEditRule": { - "methods": [ - "getEventEditRule" - ] - }, - "GetExpandedDataSet": { - "methods": [ - "getExpandedDataSet" - ] - }, - "GetGlobalSiteTag": { - "methods": [ - "getGlobalSiteTag" - ] - }, - "GetGoogleSignalsSettings": { - "methods": [ - "getGoogleSignalsSettings" - ] - }, - "GetKeyEvent": { - "methods": [ - "getKeyEvent" - ] - }, - "GetMeasurementProtocolSecret": { - "methods": [ - "getMeasurementProtocolSecret" - ] - }, - "GetProperty": { - "methods": [ - "getProperty" - ] - }, - "GetRollupPropertySourceLink": { - "methods": [ - "getRollupPropertySourceLink" - ] - }, - "GetSKAdNetworkConversionValueSchema": { - "methods": [ - "getSKAdNetworkConversionValueSchema" - ] - }, - "GetSearchAds360Link": { - "methods": [ - "getSearchAds360Link" - ] - }, - "GetSubpropertyEventFilter": { - "methods": [ - "getSubpropertyEventFilter" - ] - }, - "ListAccessBindings": { - "methods": [ - "listAccessBindings" - ] - }, - "ListAccountSummaries": { - "methods": [ - "listAccountSummaries" - ] - }, - "ListAccounts": { - "methods": [ - "listAccounts" - ] - }, - "ListAdSenseLinks": { - "methods": [ - "listAdSenseLinks" - ] - }, - "ListAudiences": { - "methods": [ - "listAudiences" - ] - }, - "ListBigQueryLinks": { - "methods": [ - "listBigQueryLinks" - ] - }, - "ListCalculatedMetrics": { - "methods": [ - "listCalculatedMetrics" - ] - }, - "ListChannelGroups": { - "methods": [ - "listChannelGroups" - ] - }, - "ListConnectedSiteTags": { - "methods": [ - "listConnectedSiteTags" - ] - }, - "ListConversionEvents": { - "methods": [ - "listConversionEvents" - ] - }, - "ListCustomDimensions": { - "methods": [ - "listCustomDimensions" - ] - }, - "ListCustomMetrics": { - "methods": [ - "listCustomMetrics" - ] - }, - "ListDataStreams": { - "methods": [ - "listDataStreams" - ] - }, - "ListDisplayVideo360AdvertiserLinkProposals": { - "methods": [ - "listDisplayVideo360AdvertiserLinkProposals" - ] - }, - "ListDisplayVideo360AdvertiserLinks": { - "methods": [ - "listDisplayVideo360AdvertiserLinks" - ] - }, - "ListEventCreateRules": { - "methods": [ - "listEventCreateRules" - ] - }, - "ListEventEditRules": { - "methods": [ - "listEventEditRules" - ] - }, - "ListExpandedDataSets": { - "methods": [ - "listExpandedDataSets" - ] - }, - "ListFirebaseLinks": { - "methods": [ - "listFirebaseLinks" - ] - }, - "ListGoogleAdsLinks": { - "methods": [ - "listGoogleAdsLinks" - ] - }, - "ListKeyEvents": { - "methods": [ - "listKeyEvents" - ] - }, - "ListMeasurementProtocolSecrets": { - "methods": [ - "listMeasurementProtocolSecrets" - ] - }, - "ListProperties": { - "methods": [ - "listProperties" - ] - }, - "ListRollupPropertySourceLinks": { - "methods": [ - "listRollupPropertySourceLinks" - ] - }, - "ListSKAdNetworkConversionValueSchemas": { - "methods": [ - "listSKAdNetworkConversionValueSchemas" - ] - }, - "ListSearchAds360Links": { - "methods": [ - "listSearchAds360Links" - ] - }, - "ListSubpropertyEventFilters": { - "methods": [ - "listSubpropertyEventFilters" - ] - }, - "ProvisionAccountTicket": { - "methods": [ - "provisionAccountTicket" - ] - }, - "ProvisionSubproperty": { - "methods": [ - "provisionSubproperty" - ] - }, - "ReorderEventEditRules": { - "methods": [ - "reorderEventEditRules" - ] - }, - "RunAccessReport": { - "methods": [ - "runAccessReport" - ] - }, - "SearchChangeHistoryEvents": { - "methods": [ - "searchChangeHistoryEvents" - ] - }, - "SetAutomatedGa4ConfigurationOptOut": { - "methods": [ - "setAutomatedGa4ConfigurationOptOut" - ] - }, - "UpdateAccessBinding": { - "methods": [ - "updateAccessBinding" - ] - }, - "UpdateAccount": { - "methods": [ - "updateAccount" - ] - }, - "UpdateAttributionSettings": { - "methods": [ - "updateAttributionSettings" - ] - }, - "UpdateAudience": { - "methods": [ - "updateAudience" - ] - }, - "UpdateBigQueryLink": { - "methods": [ - "updateBigQueryLink" - ] - }, - "UpdateCalculatedMetric": { - "methods": [ - "updateCalculatedMetric" - ] - }, - "UpdateChannelGroup": { - "methods": [ - "updateChannelGroup" - ] - }, - "UpdateConversionEvent": { - "methods": [ - "updateConversionEvent" - ] - }, - "UpdateCustomDimension": { - "methods": [ - "updateCustomDimension" - ] - }, - "UpdateCustomMetric": { - "methods": [ - "updateCustomMetric" - ] - }, - "UpdateDataRedactionSettings": { - "methods": [ - "updateDataRedactionSettings" - ] - }, - "UpdateDataRetentionSettings": { - "methods": [ - "updateDataRetentionSettings" - ] - }, - "UpdateDataStream": { - "methods": [ - "updateDataStream" - ] - }, - "UpdateDisplayVideo360AdvertiserLink": { - "methods": [ - "updateDisplayVideo360AdvertiserLink" - ] - }, - "UpdateEnhancedMeasurementSettings": { - "methods": [ - "updateEnhancedMeasurementSettings" - ] - }, - "UpdateEventCreateRule": { - "methods": [ - "updateEventCreateRule" - ] - }, - "UpdateEventEditRule": { - "methods": [ - "updateEventEditRule" - ] - }, - "UpdateExpandedDataSet": { - "methods": [ - "updateExpandedDataSet" - ] - }, - "UpdateGoogleAdsLink": { - "methods": [ - "updateGoogleAdsLink" - ] - }, - "UpdateGoogleSignalsSettings": { - "methods": [ - "updateGoogleSignalsSettings" - ] - }, - "UpdateKeyEvent": { - "methods": [ - "updateKeyEvent" - ] - }, - "UpdateMeasurementProtocolSecret": { - "methods": [ - "updateMeasurementProtocolSecret" - ] - }, - "UpdateProperty": { - "methods": [ - "updateProperty" - ] - }, - "UpdateSKAdNetworkConversionValueSchema": { - "methods": [ - "updateSKAdNetworkConversionValueSchema" - ] - }, - "UpdateSearchAds360Link": { - "methods": [ - "updateSearchAds360Link" - ] - }, - "UpdateSubpropertyEventFilter": { - "methods": [ - "updateSubpropertyEventFilter" - ] - } - } - } - } - } - } -} \ 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 b328e35311d9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_client_config.json +++ /dev/null @@ -1,795 +0,0 @@ -{ - "interfaces": { - "google.analytics.admin.v1alpha.AnalyticsAdminService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "UNKNOWN" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AcknowledgeUserDataCollection": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ApproveDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchCreateAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchDeleteAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchGetAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchUpdateAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CancelDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateAdSenseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateBigQueryLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCalculatedMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateConnectedSiteTag": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateEventEditRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRollupProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateRollupPropertySourceLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSubpropertyEventFilter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAdSenseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteBigQueryLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteCalculatedMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConnectedSiteTag": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteEventEditRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteRollupPropertySourceLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSubpropertyEventFilter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FetchAutomatedGa4ConfigurationOptOut": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FetchConnectedGa4Property": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAdSenseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAttributionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetBigQueryLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCalculatedMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataRedactionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataSharingSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDisplayVideo360AdvertiserLinkProposal": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetEnhancedMeasurementSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetEventEditRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetGlobalSiteTag": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetGoogleSignalsSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetRollupPropertySourceLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSubpropertyEventFilter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccountSummaries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccounts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAdSenseLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAudiences": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBigQueryLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCalculatedMetrics": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListChannelGroups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConnectedSiteTags": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConversionEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomDimensions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomMetrics": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDisplayVideo360AdvertiserLinkProposals": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDisplayVideo360AdvertiserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListEventCreateRules": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListEventEditRules": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListExpandedDataSets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFirebaseLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListGoogleAdsLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListKeyEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMeasurementProtocolSecrets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProperties": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListRollupPropertySourceLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSKAdNetworkConversionValueSchemas": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSearchAds360Links": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSubpropertyEventFilters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ProvisionAccountTicket": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ProvisionSubproperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReorderEventEditRules": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RunAccessReport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchChangeHistoryEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetAutomatedGa4ConfigurationOptOut": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAccount": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAttributionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAudience": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateBigQueryLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCalculatedMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateChannelGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataRedactionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDisplayVideo360AdvertiserLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateEnhancedMeasurementSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateEventCreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateEventEditRule": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateExpandedDataSet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateGoogleSignalsSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateSKAdNetworkConversionValueSchema": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSearchAds360Link": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSubpropertyEventFilter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php deleted file mode 100644 index 38157874e306..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_descriptor_config.php +++ /dev/null @@ -1,2003 +0,0 @@ - [ - 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ - 'AcknowledgeUserDataCollection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'ApproveDisplayVideo360AdvertiserLinkProposal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveAudience' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'BatchCreateAccessBindings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeleteAccessBindings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchGetAccessBindings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateAccessBindings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CancelDisplayVideo360AdvertiserLinkProposal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateAccessBinding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AccessBinding', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAdSenseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AdSenseLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAudience' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Audience', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateBigQueryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\BigQueryLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCalculatedMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CalculatedMetric', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateChannelGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ChannelGroup', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConnectedSiteTag' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagResponse', - ], - 'CreateConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDisplayVideo360AdvertiserLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDisplayVideo360AdvertiserLinkProposal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEventCreateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EventCreateRule', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEventEditRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EventEditRule', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateExpandedDataSet' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ExpandedDataSet', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFirebaseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\FirebaseLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\GoogleAdsLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\KeyEvent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Property', - ], - 'CreateRollupProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse', - ], - 'CreateRollupPropertySourceLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\RollupPropertySourceLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSKAdNetworkConversionValueSchema' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSearchAds360Link' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SearchAds360Link', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSubpropertyEventFilter' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SubpropertyEventFilter', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAccessBinding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAdSenseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBigQueryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteCalculatedMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteChannelGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteConnectedSiteTag' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - ], - 'DeleteConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDisplayVideo360AdvertiserLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDisplayVideo360AdvertiserLinkProposal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEventCreateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEventEditRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteExpandedDataSet' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Property', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRollupPropertySourceLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSKAdNetworkConversionValueSchema' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSearchAds360Link' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSubpropertyEventFilter' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchAutomatedGa4ConfigurationOptOut' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse', - ], - 'FetchConnectedGa4Property' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\FetchConnectedGa4PropertyResponse', - ], - 'GetAccessBinding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AccessBinding', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Account', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAdSenseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AdSenseLink', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAttributionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AttributionSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAudience' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Audience', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetBigQueryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\BigQueryLink', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCalculatedMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CalculatedMetric', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetChannelGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ChannelGroup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRedactionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataRedactionSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRetentionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataRetentionSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSharingSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataSharingSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDisplayVideo360AdvertiserLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDisplayVideo360AdvertiserLinkProposal' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEnhancedMeasurementSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEventCreateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EventCreateRule', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEventEditRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EventEditRule', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetExpandedDataSet' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ExpandedDataSet', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGlobalSiteTag' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\GlobalSiteTag', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleSignalsSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\GoogleSignalsSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\KeyEvent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Property', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRollupPropertySourceLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\RollupPropertySourceLink', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSKAdNetworkConversionValueSchema' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSearchAds360Link' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SearchAds360Link', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSubpropertyEventFilter' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SubpropertyEventFilter', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAccessBindings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccessBindings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListAccessBindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccountSummaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListAccountSummariesResponse', - ], - 'ListAccounts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccounts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListAccountsResponse', - ], - 'ListAdSenseLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAdsenseLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListAdSenseLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAudiences' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAudiences', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListAudiencesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListBigQueryLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBigqueryLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListBigQueryLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCalculatedMetrics' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCalculatedMetrics', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListCalculatedMetricsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListChannelGroups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChannelGroups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListChannelGroupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListConnectedSiteTags' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListConnectedSiteTagsResponse', - ], - 'ListConversionEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConversionEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListConversionEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomDimensions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomDimensions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListCustomDimensionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomMetrics' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomMetrics', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListCustomMetricsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataStreams' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataStreams', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListDataStreamsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDisplayVideo360AdvertiserLinkProposals' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinkProposals', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDisplayVideo360AdvertiserLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListEventCreateRules' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEventCreateRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListEventCreateRulesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListEventEditRules' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEventEditRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListEventEditRulesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListExpandedDataSets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getExpandedDataSets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListExpandedDataSetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFirebaseLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGoogleAdsLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListKeyEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getKeyEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListKeyEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMeasurementProtocolSecrets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProperties', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListPropertiesResponse', - ], - 'ListRollupPropertySourceLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRollupPropertySourceLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSKAdNetworkConversionValueSchemas' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSkadnetworkConversionValueSchemas', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSearchAds360Links' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSearchAds360Links', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListSearchAds360LinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSubpropertyEventFilters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSubpropertyEventFilters', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ListSubpropertyEventFiltersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ProvisionAccountTicket' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse', - ], - 'ProvisionSubproperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse', - ], - 'ReorderEventEditRules' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RunAccessReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\RunAccessReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'entity', - 'fieldAccessors' => [ - 'getEntity', - ], - ], - ], - ], - 'SearchChangeHistoryEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChangeHistoryEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'account', - 'fieldAccessors' => [ - 'getAccount', - ], - ], - ], - ], - 'SetAutomatedGa4ConfigurationOptOut' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse', - ], - 'UpdateAccessBinding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AccessBinding', - 'headerParams' => [ - [ - 'keyName' => 'access_binding.name', - 'fieldAccessors' => [ - 'getAccessBinding', - 'getName', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Account', - 'headerParams' => [ - [ - 'keyName' => 'account.name', - 'fieldAccessors' => [ - 'getAccount', - 'getName', - ], - ], - ], - ], - 'UpdateAttributionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\AttributionSettings', - 'headerParams' => [ - [ - 'keyName' => 'attribution_settings.name', - 'fieldAccessors' => [ - 'getAttributionSettings', - 'getName', - ], - ], - ], - ], - 'UpdateAudience' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Audience', - 'headerParams' => [ - [ - 'keyName' => 'audience.name', - 'fieldAccessors' => [ - 'getAudience', - 'getName', - ], - ], - ], - ], - 'UpdateBigQueryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\BigQueryLink', - 'headerParams' => [ - [ - 'keyName' => 'bigquery_link.name', - 'fieldAccessors' => [ - 'getBigqueryLink', - 'getName', - ], - ], - ], - ], - 'UpdateCalculatedMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CalculatedMetric', - 'headerParams' => [ - [ - 'keyName' => 'calculated_metric.name', - 'fieldAccessors' => [ - 'getCalculatedMetric', - 'getName', - ], - ], - ], - ], - 'UpdateChannelGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ChannelGroup', - 'headerParams' => [ - [ - 'keyName' => 'channel_group.name', - 'fieldAccessors' => [ - 'getChannelGroup', - 'getName', - ], - ], - ], - ], - 'UpdateConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'conversion_event.name', - 'fieldAccessors' => [ - 'getConversionEvent', - 'getName', - ], - ], - ], - ], - 'UpdateCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'custom_dimension.name', - 'fieldAccessors' => [ - 'getCustomDimension', - 'getName', - ], - ], - ], - ], - 'UpdateCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'custom_metric.name', - 'fieldAccessors' => [ - 'getCustomMetric', - 'getName', - ], - ], - ], - ], - 'UpdateDataRedactionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataRedactionSettings', - 'headerParams' => [ - [ - 'keyName' => 'data_redaction_settings.name', - 'fieldAccessors' => [ - 'getDataRedactionSettings', - 'getName', - ], - ], - ], - ], - 'UpdateDataRetentionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataRetentionSettings', - 'headerParams' => [ - [ - 'keyName' => 'data_retention_settings.name', - 'fieldAccessors' => [ - 'getDataRetentionSettings', - 'getName', - ], - ], - ], - ], - 'UpdateDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'data_stream.name', - 'fieldAccessors' => [ - 'getDataStream', - 'getName', - ], - ], - ], - ], - 'UpdateDisplayVideo360AdvertiserLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', - 'headerParams' => [ - [ - 'keyName' => 'display_video_360_advertiser_link.name', - 'fieldAccessors' => [ - 'getDisplayVideo360AdvertiserLink', - 'getName', - ], - ], - ], - ], - 'UpdateEnhancedMeasurementSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings', - 'headerParams' => [ - [ - 'keyName' => 'enhanced_measurement_settings.name', - 'fieldAccessors' => [ - 'getEnhancedMeasurementSettings', - 'getName', - ], - ], - ], - ], - 'UpdateEventCreateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EventCreateRule', - 'headerParams' => [ - [ - 'keyName' => 'event_create_rule.name', - 'fieldAccessors' => [ - 'getEventCreateRule', - 'getName', - ], - ], - ], - ], - 'UpdateEventEditRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\EventEditRule', - 'headerParams' => [ - [ - 'keyName' => 'event_edit_rule.name', - 'fieldAccessors' => [ - 'getEventEditRule', - 'getName', - ], - ], - ], - ], - 'UpdateExpandedDataSet' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\ExpandedDataSet', - 'headerParams' => [ - [ - 'keyName' => 'expanded_data_set.name', - 'fieldAccessors' => [ - 'getExpandedDataSet', - 'getName', - ], - ], - ], - ], - 'UpdateGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\GoogleAdsLink', - 'headerParams' => [ - [ - 'keyName' => 'google_ads_link.name', - 'fieldAccessors' => [ - 'getGoogleAdsLink', - 'getName', - ], - ], - ], - ], - 'UpdateGoogleSignalsSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\GoogleSignalsSettings', - 'headerParams' => [ - [ - 'keyName' => 'google_signals_settings.name', - 'fieldAccessors' => [ - 'getGoogleSignalsSettings', - 'getName', - ], - ], - ], - ], - 'UpdateKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\KeyEvent', - 'headerParams' => [ - [ - 'keyName' => 'key_event.name', - 'fieldAccessors' => [ - 'getKeyEvent', - 'getName', - ], - ], - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'measurement_protocol_secret.name', - 'fieldAccessors' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - ], - 'UpdateProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\Property', - 'headerParams' => [ - [ - 'keyName' => 'property.name', - 'fieldAccessors' => [ - 'getProperty', - 'getName', - ], - ], - ], - ], - 'UpdateSKAdNetworkConversionValueSchema' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema', - 'headerParams' => [ - [ - 'keyName' => 'skadnetwork_conversion_value_schema.name', - 'fieldAccessors' => [ - 'getSkadnetworkConversionValueSchema', - 'getName', - ], - ], - ], - ], - 'UpdateSearchAds360Link' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SearchAds360Link', - 'headerParams' => [ - [ - 'keyName' => 'search_ads_360_link.name', - 'fieldAccessors' => [ - 'getSearchAds360Link', - 'getName', - ], - ], - ], - ], - 'UpdateSubpropertyEventFilter' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1alpha\SubpropertyEventFilter', - 'headerParams' => [ - [ - 'keyName' => 'subproperty_event_filter.name', - 'fieldAccessors' => [ - 'getSubpropertyEventFilter', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'accessBinding' => 'accounts/{account}/accessBindings/{access_binding}', - 'account' => 'accounts/{account}', - 'accountAccessBinding' => 'accounts/{account}/accessBindings/{access_binding}', - 'adSenseLink' => 'properties/{property}/adSenseLinks/{adsense_link}', - 'attributionSettings' => 'properties/{property}/attributionSettings', - 'audience' => 'properties/{property}/audiences/{audience}', - 'bigQueryLink' => 'properties/{property}/bigQueryLinks/{bigquery_link}', - 'calculatedMetric' => 'properties/{property}/calculatedMetrics/{calculated_metric}', - 'channelGroup' => 'properties/{property}/channelGroups/{channel_group}', - 'conversionEvent' => 'properties/{property}/conversionEvents/{conversion_event}', - 'customDimension' => 'properties/{property}/customDimensions/{custom_dimension}', - 'customMetric' => 'properties/{property}/customMetrics/{custom_metric}', - 'dataRedactionSettings' => 'properties/{property}/dataStreams/{data_stream}/dataRedactionSettings', - 'dataRetentionSettings' => 'properties/{property}/dataRetentionSettings', - 'dataSharingSettings' => 'accounts/{account}/dataSharingSettings', - 'dataStream' => 'properties/{property}/dataStreams/{data_stream}', - 'displayVideo360AdvertiserLink' => 'properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}', - 'displayVideo360AdvertiserLinkProposal' => 'properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}', - 'enhancedMeasurementSettings' => 'properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings', - 'eventCreateRule' => 'properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}', - 'eventEditRule' => 'properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}', - 'expandedDataSet' => 'properties/{property}/expandedDataSets/{expanded_data_set}', - 'firebaseLink' => 'properties/{property}/firebaseLinks/{firebase_link}', - 'globalSiteTag' => 'properties/{property}/dataStreams/{data_stream}/globalSiteTag', - 'googleAdsLink' => 'properties/{property}/googleAdsLinks/{google_ads_link}', - 'googleSignalsSettings' => 'properties/{property}/googleSignalsSettings', - 'keyEvent' => 'properties/{property}/keyEvents/{key_event}', - 'measurementProtocolSecret' => 'properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}', - 'organization' => 'organizations/{organization}', - 'property' => 'properties/{property}', - 'propertyAccessBinding' => 'properties/{property}/accessBindings/{access_binding}', - 'rollupPropertySourceLink' => 'properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}', - 'sKAdNetworkConversionValueSchema' => 'properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}', - 'searchAds360Link' => 'properties/{property}/searchAds360Links/{search_ads_360_link}', - 'subpropertyEventFilter' => 'properties/{property}/subpropertyEventFilters/{sub_property_event_filter}', - ], - ], - ], -]; 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 59d0280987b1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/src/V1alpha/resources/analytics_admin_service_rest_client_config.php +++ /dev/null @@ -1,1831 +0,0 @@ - [ - 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ - 'AcknowledgeUserDataCollection' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{property=properties/*}:acknowledgeUserDataCollection', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'ApproveDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveAudience' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/audiences/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/customMetrics/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'BatchCreateAccessBindings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchDeleteAccessBindings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchDelete', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchDelete', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchGetAccessBindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchGet', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchGet', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchUpdateAccessBindings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings:batchUpdate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CancelDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateAccessBinding' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings', - 'body' => 'access_binding', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings', - 'body' => 'access_binding', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAdSenseLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/adSenseLinks', - 'body' => 'adsense_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAudience' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/audiences', - 'body' => 'audience', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateBigQueryLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/bigQueryLinks', - 'body' => 'bigquery_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCalculatedMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/calculatedMetrics', - 'body' => 'calculated_metric', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'calculated_metric_id', - ], - ], - 'CreateChannelGroup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/channelGroups', - 'body' => 'channel_group', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConnectedSiteTag' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:createConnectedSiteTag', - 'body' => '*', - ], - 'CreateConversionEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents', - 'body' => 'conversion_event', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customDimensions', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customMetrics', - 'body' => 'custom_metric', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataStream' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams', - 'body' => 'data_stream', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDisplayVideo360AdvertiserLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks', - 'body' => 'display_video_360_advertiser_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals', - 'body' => 'display_video_360_advertiser_link_proposal', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEventCreateRule' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules', - 'body' => 'event_create_rule', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEventEditRule' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules', - 'body' => 'event_edit_rule', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateExpandedDataSet' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets', - 'body' => 'expanded_data_set', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFirebaseLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', - 'body' => 'firebase_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleAdsLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/googleAdsLinks', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateKeyEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/keyEvents', - 'body' => 'key_event', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMeasurementProtocolSecret' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties', - 'body' => 'property', - ], - 'CreateRollupProperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:createRollupProperty', - 'body' => '*', - ], - 'CreateRollupPropertySourceLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', - 'body' => 'rollup_property_source_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSKAdNetworkConversionValueSchema' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', - 'body' => 'skadnetwork_conversion_value_schema', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSearchAds360Link' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', - 'body' => 'search_ads_360_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSubpropertyEventFilter' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/subpropertyEventFilters', - 'body' => 'subproperty_event_filter', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAccessBinding' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*/accessBindings/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/accessBindings/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAccount' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAdSenseLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/adSenseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBigQueryLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/bigQueryLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteCalculatedMetric' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/calculatedMetrics/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteChannelGroup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/channelGroups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteConnectedSiteTag' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:deleteConnectedSiteTag', - 'body' => '*', - ], - 'DeleteConversionEvent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataStream' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDisplayVideo360AdvertiserLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEventCreateRule' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEventEditRule' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteExpandedDataSet' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/firebaseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/googleAdsLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteKeyEvent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/keyEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRollupPropertySourceLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSKAdNetworkConversionValueSchema' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSearchAds360Link' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSubpropertyEventFilter' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/subpropertyEventFilters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchAutomatedGa4ConfigurationOptOut' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut', - 'body' => '*', - ], - 'FetchConnectedGa4Property' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/properties:fetchConnectedGa4Property', - ], - 'GetAccessBinding' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*/accessBindings/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/accessBindings/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAdSenseLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/adSenseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAttributionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/attributionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAudience' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/audiences/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetBigQueryLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/bigQueryLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCalculatedMetric' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/calculatedMetrics/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetChannelGroup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/channelGroups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConversionEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomDimension' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomMetric' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/customMetrics/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRedactionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRetentionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataRetentionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSharingSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*/dataSharingSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStream' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDisplayVideo360AdvertiserLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDisplayVideo360AdvertiserLinkProposal' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEnhancedMeasurementSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEventCreateRule' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEventEditRule' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetExpandedDataSet' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGlobalSiteTag' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleSignalsSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/googleSignalsSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetKeyEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/keyEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRollupPropertySourceLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSKAdNetworkConversionValueSchema' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSearchAds360Link' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSubpropertyEventFilter' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/subpropertyEventFilters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAccessBindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/accessBindings', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/accountSummaries', - ], - 'ListAccounts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/accounts', - ], - 'ListAdSenseLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/adSenseLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAudiences' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/audiences', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListBigQueryLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/bigQueryLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCalculatedMetrics' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/calculatedMetrics', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListChannelGroups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/channelGroups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListConnectedSiteTags' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:listConnectedSiteTags', - 'body' => '*', - ], - 'ListConversionEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomDimensions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customDimensions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomMetrics' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/customMetrics', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataStreams' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDisplayVideo360AdvertiserLinkProposals' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDisplayVideo360AdvertiserLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListEventCreateRules' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListEventEditRules' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListExpandedDataSets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/googleAdsLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListKeyEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/keyEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/properties', - 'queryParams' => [ - 'filter', - ], - ], - 'ListRollupPropertySourceLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSKAdNetworkConversionValueSchemas' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSearchAds360Links' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSubpropertyEventFilters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/subpropertyEventFilters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ProvisionAccountTicket' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/accounts:provisionAccountTicket', - 'body' => '*', - ], - 'ProvisionSubproperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:provisionSubproperty', - 'body' => '*', - ], - 'ReorderEventEditRules' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:reorder', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RunAccessReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{entity=properties/*}:runAccessReport', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{entity=accounts/*}:runAccessReport', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'entity' => [ - 'getters' => [ - 'getEntity', - ], - ], - ], - ], - 'SearchChangeHistoryEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{account=accounts/*}:searchChangeHistoryEvents', - 'body' => '*', - 'placeholders' => [ - 'account' => [ - 'getters' => [ - 'getAccount', - ], - ], - ], - ], - 'SetAutomatedGa4ConfigurationOptOut' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/properties:setAutomatedGa4ConfigurationOptOut', - 'body' => '*', - ], - 'UpdateAccessBinding' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{access_binding.name=accounts/*/accessBindings/*}', - 'body' => 'access_binding', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{access_binding.name=properties/*/accessBindings/*}', - 'body' => 'access_binding', - ], - ], - 'placeholders' => [ - 'access_binding.name' => [ - 'getters' => [ - 'getAccessBinding', - 'getName', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{account.name=accounts/*}', - 'body' => 'account', - 'placeholders' => [ - 'account.name' => [ - 'getters' => [ - 'getAccount', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAttributionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{attribution_settings.name=properties/*/attributionSettings}', - 'body' => 'attribution_settings', - 'placeholders' => [ - 'attribution_settings.name' => [ - 'getters' => [ - 'getAttributionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAudience' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{audience.name=properties/*/audiences/*}', - 'body' => 'audience', - 'placeholders' => [ - 'audience.name' => [ - 'getters' => [ - 'getAudience', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateBigQueryLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}', - 'body' => 'bigquery_link', - 'placeholders' => [ - 'bigquery_link.name' => [ - 'getters' => [ - 'getBigqueryLink', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCalculatedMetric' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{calculated_metric.name=properties/*/calculatedMetrics/*}', - 'body' => 'calculated_metric', - 'placeholders' => [ - 'calculated_metric.name' => [ - 'getters' => [ - 'getCalculatedMetric', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateChannelGroup' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{channel_group.name=properties/*/channelGroups/*}', - 'body' => 'channel_group', - 'placeholders' => [ - 'channel_group.name' => [ - 'getters' => [ - 'getChannelGroup', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateConversionEvent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}', - 'body' => 'conversion_event', - 'placeholders' => [ - 'conversion_event.name' => [ - 'getters' => [ - 'getConversionEvent', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomDimension' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'custom_dimension.name' => [ - 'getters' => [ - 'getCustomDimension', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomMetric' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{custom_metric.name=properties/*/customMetrics/*}', - 'body' => 'custom_metric', - 'placeholders' => [ - 'custom_metric.name' => [ - 'getters' => [ - 'getCustomMetric', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataRedactionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}', - 'body' => 'data_redaction_settings', - 'placeholders' => [ - 'data_redaction_settings.name' => [ - 'getters' => [ - 'getDataRedactionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataRetentionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}', - 'body' => 'data_retention_settings', - 'placeholders' => [ - 'data_retention_settings.name' => [ - 'getters' => [ - 'getDataRetentionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataStream' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{data_stream.name=properties/*/dataStreams/*}', - 'body' => 'data_stream', - 'placeholders' => [ - 'data_stream.name' => [ - 'getters' => [ - 'getDataStream', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDisplayVideo360AdvertiserLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}', - 'body' => 'display_video_360_advertiser_link', - 'placeholders' => [ - 'display_video_360_advertiser_link.name' => [ - 'getters' => [ - 'getDisplayVideo360AdvertiserLink', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateEnhancedMeasurementSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}', - 'body' => 'enhanced_measurement_settings', - 'placeholders' => [ - 'enhanced_measurement_settings.name' => [ - 'getters' => [ - 'getEnhancedMeasurementSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateEventCreateRule' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}', - 'body' => 'event_create_rule', - 'placeholders' => [ - 'event_create_rule.name' => [ - 'getters' => [ - 'getEventCreateRule', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateEventEditRule' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{event_edit_rule.name=properties/*/dataStreams/*/eventEditRules/*}', - 'body' => 'event_edit_rule', - 'placeholders' => [ - 'event_edit_rule.name' => [ - 'getters' => [ - 'getEventEditRule', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateExpandedDataSet' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}', - 'body' => 'expanded_data_set', - 'placeholders' => [ - 'expanded_data_set.name' => [ - 'getters' => [ - 'getExpandedDataSet', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGoogleAdsLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'google_ads_link.name' => [ - 'getters' => [ - 'getGoogleAdsLink', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGoogleSignalsSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}', - 'body' => 'google_signals_settings', - 'placeholders' => [ - 'google_signals_settings.name' => [ - 'getters' => [ - 'getGoogleSignalsSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateKeyEvent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{key_event.name=properties/*/keyEvents/*}', - 'body' => 'key_event', - 'placeholders' => [ - 'key_event.name' => [ - 'getters' => [ - 'getKeyEvent', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'measurement_protocol_secret.name' => [ - 'getters' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateProperty' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{property.name=properties/*}', - 'body' => 'property', - 'placeholders' => [ - 'property.name' => [ - 'getters' => [ - 'getProperty', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSKAdNetworkConversionValueSchema' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', - 'body' => 'skadnetwork_conversion_value_schema', - 'placeholders' => [ - 'skadnetwork_conversion_value_schema.name' => [ - 'getters' => [ - 'getSkadnetworkConversionValueSchema', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSearchAds360Link' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}', - 'body' => 'search_ads_360_link', - 'placeholders' => [ - 'search_ads_360_link.name' => [ - 'getters' => [ - 'getSearchAds360Link', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSubpropertyEventFilter' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{subproperty_event_filter.name=properties/*/subpropertyEventFilters/*}', - 'body' => 'subproperty_event_filter', - 'placeholders' => [ - 'subproperty_event_filter.name' => [ - 'getters' => [ - 'getSubpropertyEventFilter', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php deleted file mode 100644 index 9e2ac2e54a5c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,10132 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AnalyticsAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AnalyticsAdminServiceClient($options); - } - - /** @test */ - public function acknowledgeUserDataCollectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $response = $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - try { - $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $gapicClient->archiveAudience($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->archiveAudience($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $gapicClient->archiveCustomDimension($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->archiveCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $gapicClient->archiveCustomMetric($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->archiveCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchCreateAccessBindings($formattedParent, $requests); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchCreateAccessBindings($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $gapicClient->batchDeleteAccessBindings($formattedParent, $requests); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchDeleteAccessBindings($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - ]; - $response = $gapicClient->batchGetAccessBindings($formattedParent, $formattedNames); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - ]; - try { - $gapicClient->batchGetAccessBindings($formattedParent, $formattedNames); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchUpdateAccessBindings($formattedParent, $requests); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchUpdateAccessBindings($formattedParent, $requests); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name = 'name3373707'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $accessBinding = new AccessBinding(); - $response = $gapicClient->createAccessBinding($formattedParent, $accessBinding); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAccessBinding(); - $this->assertProtobufEquals($accessBinding, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $accessBinding = new AccessBinding(); - try { - $gapicClient->createAccessBinding($formattedParent, $accessBinding); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $adClientCode = 'adClientCode-1866307643'; - $expectedResponse = new AdSenseLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdClientCode($adClientCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $adsenseLink = new AdSenseLink(); - $response = $gapicClient->createAdSenseLink($formattedParent, $adsenseLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAdsenseLink(); - $this->assertProtobufEquals($adsenseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $adsenseLink = new AdSenseLink(); - try { - $gapicClient->createAdSenseLink($formattedParent, $adsenseLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $response = $gapicClient->createAudience($formattedParent, $audience); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAudience(); - $this->assertProtobufEquals($audience, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - try { - $gapicClient->createAudience($formattedParent, $audience); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $dailyExportEnabled = true; - $streamingExportEnabled = false; - $freshDailyExportEnabled = false; - $includeAdvertisingId = false; - $datasetLocation = 'datasetLocation1011262364'; - $expectedResponse = new BigQueryLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $expectedResponse->setDailyExportEnabled($dailyExportEnabled); - $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); - $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); - $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); - $expectedResponse->setDatasetLocation($datasetLocation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - $response = $gapicClient->createBigQueryLink($formattedParent, $bigqueryLink); - $this->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/CreateBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getBigqueryLink(); - $this->assertProtobufEquals($bigqueryLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - try { - $gapicClient->createBigQueryLink($formattedParent, $bigqueryLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $calculatedMetricId2 = 'calculatedMetricId2-706401732'; - $formula = 'formula-677424794'; - $invalidMetricReference = true; - $expectedResponse = new CalculatedMetric(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCalculatedMetricId($calculatedMetricId2); - $expectedResponse->setFormula($formula); - $expectedResponse->setInvalidMetricReference($invalidMetricReference); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $calculatedMetricId = 'calculatedMetricId8203465'; - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - $response = $gapicClient->createCalculatedMetric($formattedParent, $calculatedMetricId, $calculatedMetric); - $this->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/CreateCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCalculatedMetricId(); - $this->assertProtobufEquals($calculatedMetricId, $actualValue); - $actualValue = $actualRequestObject->getCalculatedMetric(); - $this->assertProtobufEquals($calculatedMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $calculatedMetricId = 'calculatedMetricId8203465'; - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - try { - $gapicClient->createCalculatedMetric($formattedParent, $calculatedMetricId, $calculatedMetric); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $primary = true; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $expectedResponse->setPrimary($primary); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $response = $gapicClient->createChannelGroup($formattedParent, $channelGroup); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getChannelGroup(); - $this->assertProtobufEquals($channelGroup, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - try { - $gapicClient->createChannelGroup($formattedParent, $channelGroup); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectedSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CreateConnectedSiteTagResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $connectedSiteTag = new ConnectedSiteTag(); - $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; - $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); - $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; - $connectedSiteTag->setTagId($connectedSiteTagTagId); - $response = $gapicClient->createConnectedSiteTag($connectedSiteTag); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag', $actualFuncCall); - $actualValue = $actualRequestObject->getConnectedSiteTag(); - $this->assertProtobufEquals($connectedSiteTag, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectedSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $connectedSiteTag = new ConnectedSiteTag(); - $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; - $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); - $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; - $connectedSiteTag->setTagId($connectedSiteTagTagId); - try { - $gapicClient->createConnectedSiteTag($connectedSiteTag); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $response = $gapicClient->createCustomDimension($formattedParent, $customDimension); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomDimension(); - $this->assertProtobufEquals($customDimension, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - try { - $gapicClient->createCustomDimension($formattedParent, $customDimension); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $response = $gapicClient->createCustomMetric($formattedParent, $customMetric); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomMetric(); - $this->assertProtobufEquals($customMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - try { - $gapicClient->createCustomMetric($formattedParent, $customMetric); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $response = $gapicClient->createDataStream($formattedParent, $dataStream); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataStream(); - $this->assertProtobufEquals($dataStream, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - try { - $gapicClient->createDataStream($formattedParent, $dataStream); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - $response = $gapicClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLink(); - $this->assertProtobufEquals($displayVideo360AdvertiserLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - try { - $gapicClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - $response = $gapicClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLinkProposal(); - $this->assertProtobufEquals($displayVideo360AdvertiserLinkProposal, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - try { - $gapicClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $response = $gapicClient->createEventCreateRule($formattedParent, $eventCreateRule); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEventCreateRule(); - $this->assertProtobufEquals($eventCreateRule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - try { - $gapicClient->createEventCreateRule($formattedParent, $eventCreateRule); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $processingOrder = 334545118; - $expectedResponse = new EventEditRule(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProcessingOrder($processingOrder); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - $response = $gapicClient->createEventEditRule($formattedParent, $eventEditRule); - $this->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/CreateEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEventEditRule(); - $this->assertProtobufEquals($eventEditRule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - try { - $gapicClient->createEventEditRule($formattedParent, $eventEditRule); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $response = $gapicClient->createExpandedDataSet($formattedParent, $expandedDataSet); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getExpandedDataSet(); - $this->assertProtobufEquals($expandedDataSet, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - try { - $gapicClient->createExpandedDataSet($formattedParent, $expandedDataSet); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $response = $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - try { - $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $response = $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - try { - $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->createKeyEvent($keyEvent, $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/CreateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->createKeyEvent($keyEvent, $formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $response = $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - try { - $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $response = $gapicClient->createProperty($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - try { - $gapicClient->createProperty($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CreateRollupPropertyResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $rollupProperty = new Property(); - $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; - $rollupProperty->setDisplayName($rollupPropertyDisplayName); - $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; - $rollupProperty->setTimeZone($rollupPropertyTimeZone); - $response = $gapicClient->createRollupProperty($rollupProperty); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getRollupProperty(); - $this->assertProtobufEquals($rollupProperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $rollupProperty = new Property(); - $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; - $rollupProperty->setDisplayName($rollupPropertyDisplayName); - $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; - $rollupProperty->setTimeZone($rollupPropertyTimeZone); - try { - $gapicClient->createRollupProperty($rollupProperty); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $sourceProperty = 'sourceProperty2069271929'; - $expectedResponse = new RollupPropertySourceLink(); - $expectedResponse->setName($name); - $expectedResponse->setSourceProperty($sourceProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $rollupPropertySourceLink = new RollupPropertySourceLink(); - $response = $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRollupPropertySourceLink(); - $this->assertProtobufEquals($rollupPropertySourceLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $rollupPropertySourceLink = new RollupPropertySourceLink(); - try { - $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $response = $gapicClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); - $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - try { - $gapicClient->createSKAdNetworkConversionValueSchema($formattedParent, $skadnetworkConversionValueSchema); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $searchAds360Link = new SearchAds360Link(); - $response = $gapicClient->createSearchAds360Link($formattedParent, $searchAds360Link); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSearchAds360Link(); - $this->assertProtobufEquals($searchAds360Link, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $searchAds360Link = new SearchAds360Link(); - try { - $gapicClient->createSearchAds360Link($formattedParent, $searchAds360Link); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyToProperty = 'applyToProperty-1639692344'; - $expectedResponse = new SubpropertyEventFilter(); - $expectedResponse->setName($name); - $expectedResponse->setApplyToProperty($applyToProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $response = $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSubpropertyEventFilter(); - $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - try { - $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $gapicClient->deleteAccessBinding($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - try { - $gapicClient->deleteAccessBinding($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $gapicClient->deleteAccount($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->deleteAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $gapicClient->deleteAdSenseLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - try { - $gapicClient->deleteAdSenseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - $gapicClient->deleteBigQueryLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - try { - $gapicClient->deleteBigQueryLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - $gapicClient->deleteCalculatedMetric($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - try { - $gapicClient->deleteCalculatedMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $gapicClient->deleteChannelGroup($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - try { - $gapicClient->deleteChannelGroup($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectedSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $gapicClient->deleteConnectedSiteTag(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectedSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->deleteConnectedSiteTag(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $gapicClient->deleteConversionEvent($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->deleteConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $gapicClient->deleteDataStream($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->deleteDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $gapicClient->deleteDisplayVideo360AdvertiserLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - try { - $gapicClient->deleteDisplayVideo360AdvertiserLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $gapicClient->deleteEventCreateRule($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - try { - $gapicClient->deleteEventCreateRule($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - $gapicClient->deleteEventEditRule($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - try { - $gapicClient->deleteEventEditRule($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $gapicClient->deleteExpandedDataSet($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - try { - $gapicClient->deleteExpandedDataSet($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $gapicClient->deleteFirebaseLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - try { - $gapicClient->deleteFirebaseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $gapicClient->deleteGoogleAdsLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - try { - $gapicClient->deleteGoogleAdsLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $gapicClient->deleteKeyEvent($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - try { - $gapicClient->deleteKeyEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->deleteProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->deleteProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $gapicClient->deleteRollupPropertySourceLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - try { - $gapicClient->deleteRollupPropertySourceLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $gapicClient->deleteSKAdNetworkConversionValueSchema($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - try { - $gapicClient->deleteSKAdNetworkConversionValueSchema($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $gapicClient->deleteSearchAds360Link($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - try { - $gapicClient->deleteSearchAds360Link($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - $gapicClient->deleteSubpropertyEventFilter($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - try { - $gapicClient->deleteSubpropertyEventFilter($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchAutomatedGa4ConfigurationOptOutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $optOut = true; - $expectedResponse = new FetchAutomatedGa4ConfigurationOptOutResponse(); - $expectedResponse->setOptOut($optOut); - $transport->addResponse($expectedResponse); - // Mock request - $property = 'property-993141291'; - $response = $gapicClient->fetchAutomatedGa4ConfigurationOptOut($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchAutomatedGa4ConfigurationOptOutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = 'property-993141291'; - try { - $gapicClient->fetchAutomatedGa4ConfigurationOptOut($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchConnectedGa4PropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $property2 = 'property2-926037944'; - $expectedResponse = new FetchConnectedGa4PropertyResponse(); - $expectedResponse->setProperty($property2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->fetchConnectedGa4Property($formattedProperty); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchConnectedGa4PropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->fetchConnectedGa4Property($formattedProperty); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name2 = 'name2-1052831874'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $response = $gapicClient->getAccessBinding($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - try { - $gapicClient->getAccessBinding($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->getAccount($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->getAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adClientCode = 'adClientCode-1866307643'; - $expectedResponse = new AdSenseLink(); - $expectedResponse->setName($name2); - $expectedResponse->setAdClientCode($adClientCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $response = $gapicClient->getAdSenseLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - try { - $gapicClient->getAdSenseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AttributionSettings(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); - $response = $gapicClient->getAttributionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); - try { - $gapicClient->getAttributionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - $response = $gapicClient->getAudience($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - try { - $gapicClient->getAudience($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $project = 'project-309310695'; - $dailyExportEnabled = true; - $streamingExportEnabled = false; - $freshDailyExportEnabled = false; - $includeAdvertisingId = false; - $datasetLocation = 'datasetLocation1011262364'; - $expectedResponse = new BigQueryLink(); - $expectedResponse->setName($name2); - $expectedResponse->setProject($project); - $expectedResponse->setDailyExportEnabled($dailyExportEnabled); - $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); - $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); - $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); - $expectedResponse->setDatasetLocation($datasetLocation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - $response = $gapicClient->getBigQueryLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - try { - $gapicClient->getBigQueryLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $calculatedMetricId = 'calculatedMetricId8203465'; - $formula = 'formula-677424794'; - $invalidMetricReference = true; - $expectedResponse = new CalculatedMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCalculatedMetricId($calculatedMetricId); - $expectedResponse->setFormula($formula); - $expectedResponse->setInvalidMetricReference($invalidMetricReference); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - $response = $gapicClient->getCalculatedMetric($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/GetCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - try { - $gapicClient->getCalculatedMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $primary = true; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $expectedResponse->setPrimary($primary); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $response = $gapicClient->getChannelGroup($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - try { - $gapicClient->getChannelGroup($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $response = $gapicClient->getConversionEvent($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->getConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $response = $gapicClient->getCustomDimension($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->getCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $response = $gapicClient->getCustomMetric($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->getCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRedactionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $emailRedactionEnabled = true; - $queryParameterRedactionEnabled = true; - $expectedResponse = new DataRedactionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); - $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getDataRedactionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRedactionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getDataRedactionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $response = $gapicClient->getDataRetentionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - try { - $gapicClient->getDataRetentionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sharingWithGoogleSupportEnabled = false; - $sharingWithGoogleAssignedSalesEnabled = false; - $sharingWithGoogleAnySalesEnabled = false; - $sharingWithGoogleProductsEnabled = true; - $sharingWithOthersEnabled = false; - $expectedResponse = new DataSharingSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); - $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); - $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); - $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); - $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $response = $gapicClient->getDataSharingSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - try { - $gapicClient->getDataSharingSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getDataStream($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $response = $gapicClient->getDisplayVideo360AdvertiserLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - try { - $gapicClient->getDisplayVideo360AdvertiserLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $response = $gapicClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - try { - $gapicClient->getDisplayVideo360AdvertiserLinkProposal($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnhancedMeasurementSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $streamEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageChangesEnabled = false; - $formInteractionsEnabled = true; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getEnhancedMeasurementSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnhancedMeasurementSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getEnhancedMeasurementSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name2); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $response = $gapicClient->getEventCreateRule($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - try { - $gapicClient->getEventCreateRule($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $processingOrder = 334545118; - $expectedResponse = new EventEditRule(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProcessingOrder($processingOrder); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - $response = $gapicClient->getEventEditRule($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/GetEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - try { - $gapicClient->getEventEditRule($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $response = $gapicClient->getExpandedDataSet($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - try { - $gapicClient->getExpandedDataSet($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlobalSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $snippet = 'snippet-2061635299'; - $expectedResponse = new GlobalSiteTag(); - $expectedResponse->setName($name2); - $expectedResponse->setSnippet($snippet); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getGlobalSiteTag($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlobalSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getGlobalSiteTag($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleSignalsSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new GoogleSignalsSettings(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); - $response = $gapicClient->getGoogleSignalsSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleSignalsSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); - try { - $gapicClient->getGoogleSignalsSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $response = $gapicClient->getKeyEvent($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/GetKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - try { - $gapicClient->getKeyEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $response = $gapicClient->getMeasurementProtocolSecret($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->getMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->getProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->getProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sourceProperty = 'sourceProperty2069271929'; - $expectedResponse = new RollupPropertySourceLink(); - $expectedResponse->setName($name2); - $expectedResponse->setSourceProperty($sourceProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $response = $gapicClient->getRollupPropertySourceLink($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - try { - $gapicClient->getRollupPropertySourceLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name2); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $response = $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - try { - $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $response = $gapicClient->getSearchAds360Link($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - try { - $gapicClient->getSearchAds360Link($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $applyToProperty = 'applyToProperty-1639692344'; - $expectedResponse = new SubpropertyEventFilter(); - $expectedResponse->setName($name2); - $expectedResponse->setApplyToProperty($applyToProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - $response = $gapicClient->getSubpropertyEventFilter($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/GetSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - try { - $gapicClient->getSubpropertyEventFilter($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accessBindingsElement = new AccessBinding(); - $accessBindings = [ - $accessBindingsElement, - ]; - $expectedResponse = new ListAccessBindingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccessBindings($accessBindings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->listAccessBindings($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccessBindings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->listAccessBindings($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountSummariesElement = new AccountSummary(); - $accountSummaries = [ - $accountSummariesElement, - ]; - $expectedResponse = new ListAccountSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccountSummaries($accountSummaries); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccountSummaries(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccountSummaries(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountsElement = new Account(); - $accounts = [ - $accountsElement, - ]; - $expectedResponse = new ListAccountsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccounts($accounts); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccounts(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccounts(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdSenseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $adsenseLinksElement = new AdSenseLink(); - $adsenseLinks = [ - $adsenseLinksElement, - ]; - $expectedResponse = new ListAdSenseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAdsenseLinks($adsenseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listAdSenseLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdsenseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdSenseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listAdSenseLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudiencesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $audiencesElement = new Audience(); - $audiences = [ - $audiencesElement, - ]; - $expectedResponse = new ListAudiencesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAudiences($audiences); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listAudiences($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAudiences()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudiencesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listAudiences($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBigQueryLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $bigqueryLinksElement = new BigQueryLink(); - $bigqueryLinks = [ - $bigqueryLinksElement, - ]; - $expectedResponse = new ListBigQueryLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBigqueryLinks($bigqueryLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listBigQueryLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBigqueryLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBigQueryLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listBigQueryLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCalculatedMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $calculatedMetricsElement = new CalculatedMetric(); - $calculatedMetrics = [ - $calculatedMetricsElement, - ]; - $expectedResponse = new ListCalculatedMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCalculatedMetrics($calculatedMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCalculatedMetrics($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCalculatedMetrics()[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/ListCalculatedMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCalculatedMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCalculatedMetrics($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelGroupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $channelGroupsElement = new ChannelGroup(); - $channelGroups = [ - $channelGroupsElement, - ]; - $expectedResponse = new ListChannelGroupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChannelGroups($channelGroups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listChannelGroups($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChannelGroups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelGroupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listChannelGroups($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectedSiteTagsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListConnectedSiteTagsResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listConnectedSiteTags(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectedSiteTagsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listConnectedSiteTags(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversionEventsElement = new ConversionEvent(); - $conversionEvents = [ - $conversionEventsElement, - ]; - $expectedResponse = new ListConversionEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversionEvents($conversionEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listConversionEvents($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listConversionEvents($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customDimensionsElement = new CustomDimension(); - $customDimensions = [ - $customDimensionsElement, - ]; - $expectedResponse = new ListCustomDimensionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomDimensions($customDimensions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomDimensions($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomDimensions($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customMetricsElement = new CustomMetric(); - $customMetrics = [ - $customMetricsElement, - ]; - $expectedResponse = new ListCustomMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomMetrics($customMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomMetrics($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomMetrics($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStreamsElement = new DataStream(); - $dataStreams = [ - $dataStreamsElement, - ]; - $expectedResponse = new ListDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStreams($dataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDataStreams($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDataStreams($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinkProposalsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $displayVideo360AdvertiserLinkProposalsElement = new DisplayVideo360AdvertiserLinkProposal(); - $displayVideo360AdvertiserLinkProposals = [ - $displayVideo360AdvertiserLinkProposalsElement, - ]; - $expectedResponse = new ListDisplayVideo360AdvertiserLinkProposalsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDisplayVideo360AdvertiserLinkProposals($displayVideo360AdvertiserLinkProposals); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinkProposals()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinkProposalsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $displayVideo360AdvertiserLinksElement = new DisplayVideo360AdvertiserLink(); - $displayVideo360AdvertiserLinks = [ - $displayVideo360AdvertiserLinksElement, - ]; - $expectedResponse = new ListDisplayVideo360AdvertiserLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDisplayVideo360AdvertiserLinks($displayVideo360AdvertiserLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDisplayVideo360AdvertiserLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDisplayVideo360AdvertiserLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventCreateRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $eventCreateRulesElement = new EventCreateRule(); - $eventCreateRules = [ - $eventCreateRulesElement, - ]; - $expectedResponse = new ListEventCreateRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEventCreateRules($eventCreateRules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listEventCreateRules($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEventCreateRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventCreateRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listEventCreateRules($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventEditRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $eventEditRulesElement = new EventEditRule(); - $eventEditRules = [ - $eventEditRulesElement, - ]; - $expectedResponse = new ListEventEditRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEventEditRules($eventEditRules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listEventEditRules($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEventEditRules()[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/ListEventEditRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventEditRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listEventEditRules($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExpandedDataSetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $expandedDataSetsElement = new ExpandedDataSet(); - $expandedDataSets = [ - $expandedDataSetsElement, - ]; - $expectedResponse = new ListExpandedDataSetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setExpandedDataSets($expandedDataSets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listExpandedDataSets($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getExpandedDataSets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExpandedDataSetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listExpandedDataSets($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $firebaseLinksElement = new FirebaseLink(); - $firebaseLinks = [ - $firebaseLinksElement, - ]; - $expectedResponse = new ListFirebaseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFirebaseLinks($firebaseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listFirebaseLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listFirebaseLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleAdsLinksElement = new GoogleAdsLink(); - $googleAdsLinks = [ - $googleAdsLinksElement, - ]; - $expectedResponse = new ListGoogleAdsLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleAdsLinks($googleAdsLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listGoogleAdsLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listGoogleAdsLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $keyEventsElement = new KeyEvent(); - $keyEvents = [ - $keyEventsElement, - ]; - $expectedResponse = new ListKeyEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setKeyEvents($keyEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listKeyEvents($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getKeyEvents()[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/ListKeyEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listKeyEvents($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); - $measurementProtocolSecrets = [ - $measurementProtocolSecretsElement, - ]; - $expectedResponse = new ListMeasurementProtocolSecretsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listMeasurementProtocolSecrets($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listMeasurementProtocolSecrets($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $propertiesElement = new Property(); - $properties = [ - $propertiesElement, - ]; - $expectedResponse = new ListPropertiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProperties($properties); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $response = $gapicClient->listProperties($filter); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - try { - $gapicClient->listProperties($filter); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRollupPropertySourceLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rollupPropertySourceLinksElement = new RollupPropertySourceLink(); - $rollupPropertySourceLinks = [ - $rollupPropertySourceLinksElement, - ]; - $expectedResponse = new ListRollupPropertySourceLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRollupPropertySourceLinks($rollupPropertySourceLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listRollupPropertySourceLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRollupPropertySourceLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRollupPropertySourceLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listRollupPropertySourceLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSKAdNetworkConversionValueSchemasTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemas = [ - $skadnetworkConversionValueSchemasElement, - ]; - $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSKAdNetworkConversionValueSchemasExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSearchAds360LinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $searchAds360LinksElement = new SearchAds360Link(); - $searchAds360Links = [ - $searchAds360LinksElement, - ]; - $expectedResponse = new ListSearchAds360LinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchAds360Links($searchAds360Links); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listSearchAds360Links($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchAds360Links()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSearchAds360LinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listSearchAds360Links($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubpropertyEventFiltersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subpropertyEventFiltersElement = new SubpropertyEventFilter(); - $subpropertyEventFilters = [ - $subpropertyEventFiltersElement, - ]; - $expectedResponse = new ListSubpropertyEventFiltersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubpropertyEventFilters($subpropertyEventFilters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listSubpropertyEventFilters($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubpropertyEventFilters()[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/ListSubpropertyEventFilters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubpropertyEventFiltersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listSubpropertyEventFilters($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $response = $gapicClient->provisionAccountTicket(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->provisionAccountTicket(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionSubpropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ProvisionSubpropertyResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $subproperty = new Property(); - $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; - $subproperty->setDisplayName($subpropertyDisplayName); - $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; - $subproperty->setTimeZone($subpropertyTimeZone); - $response = $gapicClient->provisionSubproperty($subproperty); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionSubproperty', $actualFuncCall); - $actualValue = $actualRequestObject->getSubproperty(); - $this->assertProtobufEquals($subproperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionSubpropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $subproperty = new Property(); - $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; - $subproperty->setDisplayName($subpropertyDisplayName); - $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; - $subproperty->setTimeZone($subpropertyTimeZone); - try { - $gapicClient->provisionSubproperty($subproperty); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reorderEventEditRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRules = []; - $gapicClient->reorderEventEditRules($formattedParent, $eventEditRules); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ReorderEventEditRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEventEditRules(); - $this->assertProtobufEquals($eventEditRules, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reorderEventEditRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRules = []; - try { - $gapicClient->reorderEventEditRules($formattedParent, $eventEditRules); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new RunAccessReportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runAccessReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runAccessReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $changeHistoryEventsElement = new ChangeHistoryEvent(); - $changeHistoryEvents = [ - $changeHistoryEventsElement, - ]; - $expectedResponse = new SearchChangeHistoryEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->searchChangeHistoryEvents($formattedAccount); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($formattedAccount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->searchChangeHistoryEvents($formattedAccount); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAutomatedGa4ConfigurationOptOutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SetAutomatedGa4ConfigurationOptOutResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $property = 'property-993141291'; - $response = $gapicClient->setAutomatedGa4ConfigurationOptOut($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAutomatedGa4ConfigurationOptOutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = 'property-993141291'; - try { - $gapicClient->setAutomatedGa4ConfigurationOptOut($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name = 'name3373707'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $accessBinding = new AccessBinding(); - $response = $gapicClient->updateAccessBinding($accessBinding); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getAccessBinding(); - $this->assertProtobufEquals($accessBinding, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $accessBinding = new AccessBinding(); - try { - $gapicClient->updateAccessBinding($accessBinding); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAccount($account, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($account, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAccount($account, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new AttributionSettings(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $attributionSettings = new AttributionSettings(); - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAttributionSettings($attributionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getAttributionSettings(); - $this->assertProtobufEquals($attributionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $attributionSettings = new AttributionSettings(); - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAttributionSettings($attributionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAudience($audience, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getAudience(); - $this->assertProtobufEquals($audience, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAudience($audience, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $dailyExportEnabled = true; - $streamingExportEnabled = false; - $freshDailyExportEnabled = false; - $includeAdvertisingId = false; - $datasetLocation = 'datasetLocation1011262364'; - $expectedResponse = new BigQueryLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $expectedResponse->setDailyExportEnabled($dailyExportEnabled); - $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); - $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); - $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); - $expectedResponse->setDatasetLocation($datasetLocation); - $transport->addResponse($expectedResponse); - // Mock request - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - $updateMask = new FieldMask(); - $response = $gapicClient->updateBigQueryLink($bigqueryLink, $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/UpdateBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getBigqueryLink(); - $this->assertProtobufEquals($bigqueryLink, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - $updateMask = new FieldMask(); - try { - $gapicClient->updateBigQueryLink($bigqueryLink, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $calculatedMetricId = 'calculatedMetricId8203465'; - $formula = 'formula-677424794'; - $invalidMetricReference = true; - $expectedResponse = new CalculatedMetric(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCalculatedMetricId($calculatedMetricId); - $expectedResponse->setFormula($formula); - $expectedResponse->setInvalidMetricReference($invalidMetricReference); - $transport->addResponse($expectedResponse); - // Mock request - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - $updateMask = new FieldMask(); - $response = $gapicClient->updateCalculatedMetric($calculatedMetric, $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/UpdateCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getCalculatedMetric(); - $this->assertProtobufEquals($calculatedMetric, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - $updateMask = new FieldMask(); - try { - $gapicClient->updateCalculatedMetric($calculatedMetric, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $primary = true; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $expectedResponse->setPrimary($primary); - $transport->addResponse($expectedResponse); - // Mock request - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - $response = $gapicClient->updateChannelGroup($channelGroup, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getChannelGroup(); - $this->assertProtobufEquals($channelGroup, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - try { - $gapicClient->updateChannelGroup($channelGroup, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomDimension($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomDimension($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomMetric($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomMetric($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRedactionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $emailRedactionEnabled = true; - $queryParameterRedactionEnabled = true; - $expectedResponse = new DataRedactionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); - $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $dataRedactionSettings = new DataRedactionSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRedactionSettings(); - $this->assertProtobufEquals($dataRedactionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRedactionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRedactionSettings = new DataRedactionSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRetentionSettings(); - $this->assertProtobufEquals($dataRetentionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataStream($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataStream($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateDisplayVideo360AdvertiserLink($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateDisplayVideo360AdvertiserLink($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEnhancedMeasurementSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $streamEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageChangesEnabled = false; - $formInteractionsEnabled = true; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); - $expectedResponse->setName($name); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); - $transport->addResponse($expectedResponse); - // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - $response = $gapicClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getEnhancedMeasurementSettings(); - $this->assertProtobufEquals($enhancedMeasurementSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEnhancedMeasurementSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - try { - $gapicClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - $response = $gapicClient->updateEventCreateRule($eventCreateRule, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getEventCreateRule(); - $this->assertProtobufEquals($eventCreateRule, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - try { - $gapicClient->updateEventCreateRule($eventCreateRule, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $processingOrder = 334545118; - $expectedResponse = new EventEditRule(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProcessingOrder($processingOrder); - $transport->addResponse($expectedResponse); - // Mock request - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - $updateMask = new FieldMask(); - $response = $gapicClient->updateEventEditRule($eventEditRule, $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/UpdateEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getEventEditRule(); - $this->assertProtobufEquals($eventEditRule, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - $updateMask = new FieldMask(); - try { - $gapicClient->updateEventEditRule($eventEditRule, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateExpandedDataSet($expandedDataSet, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getExpandedDataSet(); - $this->assertProtobufEquals($expandedDataSet, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateExpandedDataSet($expandedDataSet, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateGoogleAdsLink($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateGoogleAdsLink($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleSignalsSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new GoogleSignalsSettings(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $googleSignalsSettings = new GoogleSignalsSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getGoogleSignalsSettings(); - $this->assertProtobufEquals($googleSignalsSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleSignalsSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $googleSignalsSettings = new GoogleSignalsSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateGoogleSignalsSettings($googleSignalsSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $response = $gapicClient->updateKeyEvent($keyEvent, $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/UpdateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - try { - $gapicClient->updateKeyEvent($keyEvent, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $response = $gapicClient->updateProperty($property, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - try { - $gapicClient->updateProperty($property, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - $response = $gapicClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); - $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - try { - $gapicClient->updateSKAdNetworkConversionValueSchema($skadnetworkConversionValueSchema, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateSearchAds360Link($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateSearchAds360Link($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyToProperty = 'applyToProperty-1639692344'; - $expectedResponse = new SubpropertyEventFilter(); - $expectedResponse->setName($name); - $expectedResponse->setApplyToProperty($applyToProperty); - $transport->addResponse($expectedResponse); - // Mock request - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $updateMask = new FieldMask(); - $response = $gapicClient->updateSubpropertyEventFilter($subpropertyEventFilter, $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/UpdateSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getSubpropertyEventFilter(); - $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $updateMask = new FieldMask(); - try { - $gapicClient->updateSubpropertyEventFilter($subpropertyEventFilter, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/Client/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/Client/AnalyticsAdminServiceClientTest.php deleted file mode 100644 index a9fd25499f65..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1alpha/tests/Unit/V1alpha/Client/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,10999 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AnalyticsAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AnalyticsAdminServiceClient($options); - } - - /** @test */ - public function acknowledgeUserDataCollectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - $response = $gapicClient->acknowledgeUserDataCollection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - try { - $gapicClient->acknowledgeUserDataCollection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new ApproveDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - $response = $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new ApproveDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - try { - $gapicClient->approveDisplayVideo360AdvertiserLinkProposal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ArchiveAudienceRequest()) - ->setName($formattedName); - $gapicClient->archiveAudience($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ArchiveAudienceRequest()) - ->setName($formattedName); - try { - $gapicClient->archiveAudience($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new ArchiveCustomDimensionRequest()) - ->setName($formattedName); - $gapicClient->archiveCustomDimension($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new ArchiveCustomDimensionRequest()) - ->setName($formattedName); - try { - $gapicClient->archiveCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new ArchiveCustomMetricRequest()) - ->setName($formattedName); - $gapicClient->archiveCustomMetric($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new ArchiveCustomMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->archiveCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $request = (new BatchCreateAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateAccessBindings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $request = (new BatchCreateAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchCreateAccessBindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $request = (new BatchDeleteAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $gapicClient->batchDeleteAccessBindings($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $request = (new BatchDeleteAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchDeleteAccessBindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - ]; - $request = (new BatchGetAccessBindingsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - $response = $gapicClient->batchGetAccessBindings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'), - ]; - $request = (new BatchGetAccessBindingsRequest()) - ->setParent($formattedParent) - ->setNames($formattedNames); - try { - $gapicClient->batchGetAccessBindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateAccessBindingsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $request = (new BatchUpdateAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchUpdateAccessBindings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $request = (new BatchUpdateAccessBindingsRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - try { - $gapicClient->batchUpdateAccessBindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new CancelDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new CancelDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelDisplayVideo360AdvertiserLinkProposal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name = 'name3373707'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $accessBinding = new AccessBinding(); - $request = (new CreateAccessBindingRequest()) - ->setParent($formattedParent) - ->setAccessBinding($accessBinding); - $response = $gapicClient->createAccessBinding($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAccessBinding(); - $this->assertProtobufEquals($accessBinding, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $accessBinding = new AccessBinding(); - $request = (new CreateAccessBindingRequest()) - ->setParent($formattedParent) - ->setAccessBinding($accessBinding); - try { - $gapicClient->createAccessBinding($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $adClientCode = 'adClientCode-1866307643'; - $expectedResponse = new AdSenseLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdClientCode($adClientCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $adsenseLink = new AdSenseLink(); - $request = (new CreateAdSenseLinkRequest()) - ->setParent($formattedParent) - ->setAdsenseLink($adsenseLink); - $response = $gapicClient->createAdSenseLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAdsenseLink(); - $this->assertProtobufEquals($adsenseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $adsenseLink = new AdSenseLink(); - $request = (new CreateAdSenseLinkRequest()) - ->setParent($formattedParent) - ->setAdsenseLink($adsenseLink); - try { - $gapicClient->createAdSenseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $request = (new CreateAudienceRequest()) - ->setParent($formattedParent) - ->setAudience($audience); - $response = $gapicClient->createAudience($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAudience(); - $this->assertProtobufEquals($audience, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $request = (new CreateAudienceRequest()) - ->setParent($formattedParent) - ->setAudience($audience); - try { - $gapicClient->createAudience($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $dailyExportEnabled = true; - $streamingExportEnabled = false; - $freshDailyExportEnabled = false; - $includeAdvertisingId = false; - $datasetLocation = 'datasetLocation1011262364'; - $expectedResponse = new BigQueryLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $expectedResponse->setDailyExportEnabled($dailyExportEnabled); - $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); - $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); - $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); - $expectedResponse->setDatasetLocation($datasetLocation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - $request = (new CreateBigQueryLinkRequest()) - ->setParent($formattedParent) - ->setBigqueryLink($bigqueryLink); - $response = $gapicClient->createBigQueryLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getBigqueryLink(); - $this->assertProtobufEquals($bigqueryLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - $request = (new CreateBigQueryLinkRequest()) - ->setParent($formattedParent) - ->setBigqueryLink($bigqueryLink); - try { - $gapicClient->createBigQueryLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $calculatedMetricId2 = 'calculatedMetricId2-706401732'; - $formula = 'formula-677424794'; - $invalidMetricReference = true; - $expectedResponse = new CalculatedMetric(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCalculatedMetricId($calculatedMetricId2); - $expectedResponse->setFormula($formula); - $expectedResponse->setInvalidMetricReference($invalidMetricReference); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $calculatedMetricId = 'calculatedMetricId8203465'; - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - $request = (new CreateCalculatedMetricRequest()) - ->setParent($formattedParent) - ->setCalculatedMetricId($calculatedMetricId) - ->setCalculatedMetric($calculatedMetric); - $response = $gapicClient->createCalculatedMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCalculatedMetricId(); - $this->assertProtobufEquals($calculatedMetricId, $actualValue); - $actualValue = $actualRequestObject->getCalculatedMetric(); - $this->assertProtobufEquals($calculatedMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $calculatedMetricId = 'calculatedMetricId8203465'; - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - $request = (new CreateCalculatedMetricRequest()) - ->setParent($formattedParent) - ->setCalculatedMetricId($calculatedMetricId) - ->setCalculatedMetric($calculatedMetric); - try { - $gapicClient->createCalculatedMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $primary = true; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $expectedResponse->setPrimary($primary); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $request = (new CreateChannelGroupRequest()) - ->setParent($formattedParent) - ->setChannelGroup($channelGroup); - $response = $gapicClient->createChannelGroup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getChannelGroup(); - $this->assertProtobufEquals($channelGroup, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $request = (new CreateChannelGroupRequest()) - ->setParent($formattedParent) - ->setChannelGroup($channelGroup); - try { - $gapicClient->createChannelGroup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectedSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CreateConnectedSiteTagResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $connectedSiteTag = new ConnectedSiteTag(); - $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; - $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); - $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; - $connectedSiteTag->setTagId($connectedSiteTagTagId); - $request = (new CreateConnectedSiteTagRequest()) - ->setConnectedSiteTag($connectedSiteTag); - $response = $gapicClient->createConnectedSiteTag($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag', $actualFuncCall); - $actualValue = $actualRequestObject->getConnectedSiteTag(); - $this->assertProtobufEquals($connectedSiteTag, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectedSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $connectedSiteTag = new ConnectedSiteTag(); - $connectedSiteTagDisplayName = 'connectedSiteTagDisplayName-1608704893'; - $connectedSiteTag->setDisplayName($connectedSiteTagDisplayName); - $connectedSiteTagTagId = 'connectedSiteTagTagId-937600789'; - $connectedSiteTag->setTagId($connectedSiteTagTagId); - $request = (new CreateConnectedSiteTagRequest()) - ->setConnectedSiteTag($connectedSiteTag); - try { - $gapicClient->createConnectedSiteTag($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setParent($formattedParent); - $response = $gapicClient->createConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setParent($formattedParent); - try { - $gapicClient->createConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - $response = $gapicClient->createCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomDimension(); - $this->assertProtobufEquals($customDimension, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - try { - $gapicClient->createCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - $response = $gapicClient->createCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomMetric(); - $this->assertProtobufEquals($customMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - try { - $gapicClient->createCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - $response = $gapicClient->createDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataStream(); - $this->assertProtobufEquals($dataStream, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - try { - $gapicClient->createDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - $request = (new CreateDisplayVideo360AdvertiserLinkRequest()) - ->setParent($formattedParent) - ->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink); - $response = $gapicClient->createDisplayVideo360AdvertiserLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLink(); - $this->assertProtobufEquals($displayVideo360AdvertiserLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); - $request = (new CreateDisplayVideo360AdvertiserLinkRequest()) - ->setParent($formattedParent) - ->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink); - try { - $gapicClient->createDisplayVideo360AdvertiserLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - $request = (new CreateDisplayVideo360AdvertiserLinkProposalRequest()) - ->setParent($formattedParent) - ->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal); - $response = $gapicClient->createDisplayVideo360AdvertiserLinkProposal($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLinkProposal(); - $this->assertProtobufEquals($displayVideo360AdvertiserLinkProposal, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); - $request = (new CreateDisplayVideo360AdvertiserLinkProposalRequest()) - ->setParent($formattedParent) - ->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal); - try { - $gapicClient->createDisplayVideo360AdvertiserLinkProposal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $request = (new CreateEventCreateRuleRequest()) - ->setParent($formattedParent) - ->setEventCreateRule($eventCreateRule); - $response = $gapicClient->createEventCreateRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEventCreateRule(); - $this->assertProtobufEquals($eventCreateRule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $request = (new CreateEventCreateRuleRequest()) - ->setParent($formattedParent) - ->setEventCreateRule($eventCreateRule); - try { - $gapicClient->createEventCreateRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $processingOrder = 334545118; - $expectedResponse = new EventEditRule(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProcessingOrder($processingOrder); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - $request = (new CreateEventEditRuleRequest()) - ->setParent($formattedParent) - ->setEventEditRule($eventEditRule); - $response = $gapicClient->createEventEditRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEventEditRule(); - $this->assertProtobufEquals($eventEditRule, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - $request = (new CreateEventEditRuleRequest()) - ->setParent($formattedParent) - ->setEventEditRule($eventEditRule); - try { - $gapicClient->createEventEditRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $request = (new CreateExpandedDataSetRequest()) - ->setParent($formattedParent) - ->setExpandedDataSet($expandedDataSet); - $response = $gapicClient->createExpandedDataSet($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getExpandedDataSet(); - $this->assertProtobufEquals($expandedDataSet, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $request = (new CreateExpandedDataSetRequest()) - ->setParent($formattedParent) - ->setExpandedDataSet($expandedDataSet); - try { - $gapicClient->createExpandedDataSet($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $request = (new CreateFirebaseLinkRequest()) - ->setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - $response = $gapicClient->createFirebaseLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $request = (new CreateFirebaseLinkRequest()) - ->setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - try { - $gapicClient->createFirebaseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $request = (new CreateGoogleAdsLinkRequest()) - ->setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - $response = $gapicClient->createGoogleAdsLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $request = (new CreateGoogleAdsLinkRequest()) - ->setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - try { - $gapicClient->createGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setParent($formattedParent); - $response = $gapicClient->createKeyEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setParent($formattedParent); - try { - $gapicClient->createKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - $response = $gapicClient->createMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - try { - $gapicClient->createMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - $response = $gapicClient->createProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - try { - $gapicClient->createProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CreateRollupPropertyResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $rollupProperty = new Property(); - $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; - $rollupProperty->setDisplayName($rollupPropertyDisplayName); - $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; - $rollupProperty->setTimeZone($rollupPropertyTimeZone); - $request = (new CreateRollupPropertyRequest()) - ->setRollupProperty($rollupProperty); - $response = $gapicClient->createRollupProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getRollupProperty(); - $this->assertProtobufEquals($rollupProperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $rollupProperty = new Property(); - $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; - $rollupProperty->setDisplayName($rollupPropertyDisplayName); - $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; - $rollupProperty->setTimeZone($rollupPropertyTimeZone); - $request = (new CreateRollupPropertyRequest()) - ->setRollupProperty($rollupProperty); - try { - $gapicClient->createRollupProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $sourceProperty = 'sourceProperty2069271929'; - $expectedResponse = new RollupPropertySourceLink(); - $expectedResponse->setName($name); - $expectedResponse->setSourceProperty($sourceProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $rollupPropertySourceLink = new RollupPropertySourceLink(); - $request = (new CreateRollupPropertySourceLinkRequest()) - ->setParent($formattedParent) - ->setRollupPropertySourceLink($rollupPropertySourceLink); - $response = $gapicClient->createRollupPropertySourceLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRollupPropertySourceLink(); - $this->assertProtobufEquals($rollupPropertySourceLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $rollupPropertySourceLink = new RollupPropertySourceLink(); - $request = (new CreateRollupPropertySourceLinkRequest()) - ->setParent($formattedParent) - ->setRollupPropertySourceLink($rollupPropertySourceLink); - try { - $gapicClient->createRollupPropertySourceLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $request = (new CreateSKAdNetworkConversionValueSchemaRequest()) - ->setParent($formattedParent) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - $response = $gapicClient->createSKAdNetworkConversionValueSchema($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); - $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $request = (new CreateSKAdNetworkConversionValueSchemaRequest()) - ->setParent($formattedParent) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema); - try { - $gapicClient->createSKAdNetworkConversionValueSchema($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $searchAds360Link = new SearchAds360Link(); - $request = (new CreateSearchAds360LinkRequest()) - ->setParent($formattedParent) - ->setSearchAds360Link($searchAds360Link); - $response = $gapicClient->createSearchAds360Link($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSearchAds360Link(); - $this->assertProtobufEquals($searchAds360Link, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $searchAds360Link = new SearchAds360Link(); - $request = (new CreateSearchAds360LinkRequest()) - ->setParent($formattedParent) - ->setSearchAds360Link($searchAds360Link); - try { - $gapicClient->createSearchAds360Link($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyToProperty = 'applyToProperty-1639692344'; - $expectedResponse = new SubpropertyEventFilter(); - $expectedResponse->setName($name); - $expectedResponse->setApplyToProperty($applyToProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $request = (new CreateSubpropertyEventFilterRequest()) - ->setParent($formattedParent) - ->setSubpropertyEventFilter($subpropertyEventFilter); - $response = $gapicClient->createSubpropertyEventFilter($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSubpropertyEventFilter(); - $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $request = (new CreateSubpropertyEventFilterRequest()) - ->setParent($formattedParent) - ->setSubpropertyEventFilter($subpropertyEventFilter); - try { - $gapicClient->createSubpropertyEventFilter($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $request = (new DeleteAccessBindingRequest()) - ->setName($formattedName); - $gapicClient->deleteAccessBinding($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $request = (new DeleteAccessBindingRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAccessBinding($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new DeleteAccountRequest()) - ->setName($formattedName); - $gapicClient->deleteAccount($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new DeleteAccountRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $request = (new DeleteAdSenseLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteAdSenseLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $request = (new DeleteAdSenseLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAdSenseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - $request = (new DeleteBigQueryLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteBigQueryLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - $request = (new DeleteBigQueryLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteBigQueryLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - $request = (new DeleteCalculatedMetricRequest()) - ->setName($formattedName); - $gapicClient->deleteCalculatedMetric($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - $request = (new DeleteCalculatedMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteCalculatedMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $request = (new DeleteChannelGroupRequest()) - ->setName($formattedName); - $gapicClient->deleteChannelGroup($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $request = (new DeleteChannelGroupRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteChannelGroup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectedSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new DeleteConnectedSiteTagRequest(); - $gapicClient->deleteConnectedSiteTag($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectedSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DeleteConnectedSiteTagRequest(); - try { - $gapicClient->deleteConnectedSiteTag($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new DeleteConversionEventRequest()) - ->setName($formattedName); - $gapicClient->deleteConversionEvent($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new DeleteConversionEventRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new DeleteDataStreamRequest()) - ->setName($formattedName); - $gapicClient->deleteDataStream($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new DeleteDataStreamRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $request = (new DeleteDisplayVideo360AdvertiserLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteDisplayVideo360AdvertiserLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $request = (new DeleteDisplayVideo360AdvertiserLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDisplayVideo360AdvertiserLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new DeleteDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new DeleteDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDisplayVideo360AdvertiserLinkProposal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $request = (new DeleteEventCreateRuleRequest()) - ->setName($formattedName); - $gapicClient->deleteEventCreateRule($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $request = (new DeleteEventCreateRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteEventCreateRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - $request = (new DeleteEventEditRuleRequest()) - ->setName($formattedName); - $gapicClient->deleteEventEditRule($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - $request = (new DeleteEventEditRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteEventEditRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $request = (new DeleteExpandedDataSetRequest()) - ->setName($formattedName); - $gapicClient->deleteExpandedDataSet($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $request = (new DeleteExpandedDataSetRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteExpandedDataSet($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $request = (new DeleteFirebaseLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteFirebaseLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $request = (new DeleteFirebaseLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFirebaseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $request = (new DeleteGoogleAdsLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteGoogleAdsLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $request = (new DeleteGoogleAdsLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new DeleteKeyEventRequest()) - ->setName($formattedName); - $gapicClient->deleteKeyEvent($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new DeleteKeyEventRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new DeleteMeasurementProtocolSecretRequest()) - ->setName($formattedName); - $gapicClient->deleteMeasurementProtocolSecret($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new DeleteMeasurementProtocolSecretRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new DeletePropertyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new DeletePropertyRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $request = (new DeleteRollupPropertySourceLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteRollupPropertySourceLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $request = (new DeleteRollupPropertySourceLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteRollupPropertySourceLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $request = (new DeleteSKAdNetworkConversionValueSchemaRequest()) - ->setName($formattedName); - $gapicClient->deleteSKAdNetworkConversionValueSchema($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $request = (new DeleteSKAdNetworkConversionValueSchemaRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSKAdNetworkConversionValueSchema($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $request = (new DeleteSearchAds360LinkRequest()) - ->setName($formattedName); - $gapicClient->deleteSearchAds360Link($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $request = (new DeleteSearchAds360LinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSearchAds360Link($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - $request = (new DeleteSubpropertyEventFilterRequest()) - ->setName($formattedName); - $gapicClient->deleteSubpropertyEventFilter($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - $request = (new DeleteSubpropertyEventFilterRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSubpropertyEventFilter($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchAutomatedGa4ConfigurationOptOutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $optOut = true; - $expectedResponse = new FetchAutomatedGa4ConfigurationOptOutResponse(); - $expectedResponse->setOptOut($optOut); - $transport->addResponse($expectedResponse); - // Mock request - $property = 'property-993141291'; - $request = (new FetchAutomatedGa4ConfigurationOptOutRequest()) - ->setProperty($property); - $response = $gapicClient->fetchAutomatedGa4ConfigurationOptOut($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchAutomatedGa4ConfigurationOptOutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = 'property-993141291'; - $request = (new FetchAutomatedGa4ConfigurationOptOutRequest()) - ->setProperty($property); - try { - $gapicClient->fetchAutomatedGa4ConfigurationOptOut($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchConnectedGa4PropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $property2 = 'property2-926037944'; - $expectedResponse = new FetchConnectedGa4PropertyResponse(); - $expectedResponse->setProperty($property2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $request = (new FetchConnectedGa4PropertyRequest()) - ->setProperty($formattedProperty); - $response = $gapicClient->fetchConnectedGa4Property($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchConnectedGa4PropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $request = (new FetchConnectedGa4PropertyRequest()) - ->setProperty($formattedProperty); - try { - $gapicClient->fetchConnectedGa4Property($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name2 = 'name2-1052831874'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $request = (new GetAccessBindingRequest()) - ->setName($formattedName); - $response = $gapicClient->getAccessBinding($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessBindingName('[ACCOUNT]', '[ACCESS_BINDING]'); - $request = (new GetAccessBindingRequest()) - ->setName($formattedName); - try { - $gapicClient->getAccessBinding($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new GetAccountRequest()) - ->setName($formattedName); - $response = $gapicClient->getAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new GetAccountRequest()) - ->setName($formattedName); - try { - $gapicClient->getAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdSenseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $adClientCode = 'adClientCode-1866307643'; - $expectedResponse = new AdSenseLink(); - $expectedResponse->setName($name2); - $expectedResponse->setAdClientCode($adClientCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $request = (new GetAdSenseLinkRequest()) - ->setName($formattedName); - $response = $gapicClient->getAdSenseLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAdSenseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->adSenseLinkName('[PROPERTY]', '[ADSENSE_LINK]'); - $request = (new GetAdSenseLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->getAdSenseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new AttributionSettings(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); - $request = (new GetAttributionSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getAttributionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attributionSettingsName('[PROPERTY]'); - $request = (new GetAttributionSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getAttributionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - $request = (new GetAudienceRequest()) - ->setName($formattedName); - $response = $gapicClient->getAudience($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceName('[PROPERTY]', '[AUDIENCE]'); - $request = (new GetAudienceRequest()) - ->setName($formattedName); - try { - $gapicClient->getAudience($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $project = 'project-309310695'; - $dailyExportEnabled = true; - $streamingExportEnabled = false; - $freshDailyExportEnabled = false; - $includeAdvertisingId = false; - $datasetLocation = 'datasetLocation1011262364'; - $expectedResponse = new BigQueryLink(); - $expectedResponse->setName($name2); - $expectedResponse->setProject($project); - $expectedResponse->setDailyExportEnabled($dailyExportEnabled); - $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); - $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); - $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); - $expectedResponse->setDatasetLocation($datasetLocation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - $request = (new GetBigQueryLinkRequest()) - ->setName($formattedName); - $response = $gapicClient->getBigQueryLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]'); - $request = (new GetBigQueryLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->getBigQueryLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $calculatedMetricId = 'calculatedMetricId8203465'; - $formula = 'formula-677424794'; - $invalidMetricReference = true; - $expectedResponse = new CalculatedMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCalculatedMetricId($calculatedMetricId); - $expectedResponse->setFormula($formula); - $expectedResponse->setInvalidMetricReference($invalidMetricReference); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - $request = (new GetCalculatedMetricRequest()) - ->setName($formattedName); - $response = $gapicClient->getCalculatedMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]'); - $request = (new GetCalculatedMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->getCalculatedMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $primary = true; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $expectedResponse->setPrimary($primary); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $request = (new GetChannelGroupRequest()) - ->setName($formattedName); - $response = $gapicClient->getChannelGroup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]'); - $request = (new GetChannelGroupRequest()) - ->setName($formattedName); - try { - $gapicClient->getChannelGroup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new GetConversionEventRequest()) - ->setName($formattedName); - $response = $gapicClient->getConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new GetConversionEventRequest()) - ->setName($formattedName); - try { - $gapicClient->getConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new GetCustomDimensionRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new GetCustomDimensionRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new GetCustomMetricRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new GetCustomMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRedactionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $emailRedactionEnabled = true; - $queryParameterRedactionEnabled = true; - $expectedResponse = new DataRedactionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); - $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataRedactionSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataRedactionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRedactionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataRedactionSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataRedactionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $request = (new GetDataRetentionSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataRetentionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $request = (new GetDataRetentionSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataRetentionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sharingWithGoogleSupportEnabled = false; - $sharingWithGoogleAssignedSalesEnabled = false; - $sharingWithGoogleAnySalesEnabled = false; - $sharingWithGoogleProductsEnabled = true; - $sharingWithOthersEnabled = false; - $expectedResponse = new DataSharingSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); - $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); - $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); - $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); - $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $request = (new GetDataSharingSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataSharingSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $request = (new GetDataSharingSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataSharingSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataStreamRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataStreamRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $request = (new GetDisplayVideo360AdvertiserLinkRequest()) - ->setName($formattedName); - $response = $gapicClient->getDisplayVideo360AdvertiserLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]'); - $request = (new GetDisplayVideo360AdvertiserLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->getDisplayVideo360AdvertiserLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkProposalTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $validationEmail = 'validationEmail2105669718'; - $expectedResponse = new DisplayVideo360AdvertiserLinkProposal(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $expectedResponse->setValidationEmail($validationEmail); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new GetDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - $response = $gapicClient->getDisplayVideo360AdvertiserLinkProposal($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDisplayVideo360AdvertiserLinkProposalExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]'); - $request = (new GetDisplayVideo360AdvertiserLinkProposalRequest()) - ->setName($formattedName); - try { - $gapicClient->getDisplayVideo360AdvertiserLinkProposal($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnhancedMeasurementSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $streamEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageChangesEnabled = false; - $formInteractionsEnabled = true; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetEnhancedMeasurementSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getEnhancedMeasurementSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnhancedMeasurementSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->enhancedMeasurementSettingsName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetEnhancedMeasurementSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getEnhancedMeasurementSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name2); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $request = (new GetEventCreateRuleRequest()) - ->setName($formattedName); - $response = $gapicClient->getEventCreateRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventCreateRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_CREATE_RULE]'); - $request = (new GetEventCreateRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->getEventCreateRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $processingOrder = 334545118; - $expectedResponse = new EventEditRule(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProcessingOrder($processingOrder); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - $request = (new GetEventEditRuleRequest()) - ->setName($formattedName); - $response = $gapicClient->getEventEditRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]'); - $request = (new GetEventEditRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->getEventEditRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $request = (new GetExpandedDataSetRequest()) - ->setName($formattedName); - $response = $gapicClient->getExpandedDataSet($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]'); - $request = (new GetExpandedDataSetRequest()) - ->setName($formattedName); - try { - $gapicClient->getExpandedDataSet($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlobalSiteTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $snippet = 'snippet-2061635299'; - $expectedResponse = new GlobalSiteTag(); - $expectedResponse->setName($name2); - $expectedResponse->setSnippet($snippet); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetGlobalSiteTagRequest()) - ->setName($formattedName); - $response = $gapicClient->getGlobalSiteTag($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlobalSiteTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->globalSiteTagName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetGlobalSiteTagRequest()) - ->setName($formattedName); - try { - $gapicClient->getGlobalSiteTag($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleSignalsSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new GoogleSignalsSettings(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); - $request = (new GetGoogleSignalsSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getGoogleSignalsSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleSignalsSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleSignalsSettingsName('[PROPERTY]'); - $request = (new GetGoogleSignalsSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getGoogleSignalsSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new GetKeyEventRequest()) - ->setName($formattedName); - $response = $gapicClient->getKeyEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new GetKeyEventRequest()) - ->setName($formattedName); - try { - $gapicClient->getKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new GetMeasurementProtocolSecretRequest()) - ->setName($formattedName); - $response = $gapicClient->getMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new GetMeasurementProtocolSecretRequest()) - ->setName($formattedName); - try { - $gapicClient->getMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new GetPropertyRequest()) - ->setName($formattedName); - $response = $gapicClient->getProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new GetPropertyRequest()) - ->setName($formattedName); - try { - $gapicClient->getProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRollupPropertySourceLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sourceProperty = 'sourceProperty2069271929'; - $expectedResponse = new RollupPropertySourceLink(); - $expectedResponse->setName($name2); - $expectedResponse->setSourceProperty($sourceProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $request = (new GetRollupPropertySourceLinkRequest()) - ->setName($formattedName); - $response = $gapicClient->getRollupPropertySourceLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRollupPropertySourceLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); - $request = (new GetRollupPropertySourceLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->getRollupPropertySourceLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name2); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $request = (new GetSKAdNetworkConversionValueSchemaRequest()) - ->setName($formattedName); - $response = $gapicClient->getSKAdNetworkConversionValueSchema($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $request = (new GetSKAdNetworkConversionValueSchemaRequest()) - ->setName($formattedName); - try { - $gapicClient->getSKAdNetworkConversionValueSchema($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $request = (new GetSearchAds360LinkRequest()) - ->setName($formattedName); - $response = $gapicClient->getSearchAds360Link($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $request = (new GetSearchAds360LinkRequest()) - ->setName($formattedName); - try { - $gapicClient->getSearchAds360Link($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $applyToProperty = 'applyToProperty-1639692344'; - $expectedResponse = new SubpropertyEventFilter(); - $expectedResponse->setName($name2); - $expectedResponse->setApplyToProperty($applyToProperty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - $request = (new GetSubpropertyEventFilterRequest()) - ->setName($formattedName); - $response = $gapicClient->getSubpropertyEventFilter($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); - $request = (new GetSubpropertyEventFilterRequest()) - ->setName($formattedName); - try { - $gapicClient->getSubpropertyEventFilter($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accessBindingsElement = new AccessBinding(); - $accessBindings = [ - $accessBindingsElement, - ]; - $expectedResponse = new ListAccessBindingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccessBindings($accessBindings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $request = (new ListAccessBindingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAccessBindings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccessBindings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $request = (new ListAccessBindingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAccessBindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountSummariesElement = new AccountSummary(); - $accountSummaries = [ - $accountSummariesElement, - ]; - $expectedResponse = new ListAccountSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccountSummaries($accountSummaries); - $transport->addResponse($expectedResponse); - $request = new ListAccountSummariesRequest(); - $response = $gapicClient->listAccountSummaries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAccountSummariesRequest(); - try { - $gapicClient->listAccountSummaries($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountsElement = new Account(); - $accounts = [ - $accountsElement, - ]; - $expectedResponse = new ListAccountsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccounts($accounts); - $transport->addResponse($expectedResponse); - $request = new ListAccountsRequest(); - $response = $gapicClient->listAccounts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAccountsRequest(); - try { - $gapicClient->listAccounts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdSenseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $adsenseLinksElement = new AdSenseLink(); - $adsenseLinks = [ - $adsenseLinksElement, - ]; - $expectedResponse = new ListAdSenseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAdsenseLinks($adsenseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAdSenseLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAdSenseLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAdsenseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAdSenseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAdSenseLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAdSenseLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudiencesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $audiencesElement = new Audience(); - $audiences = [ - $audiencesElement, - ]; - $expectedResponse = new ListAudiencesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAudiences($audiences); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAudiencesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAudiences($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAudiences()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudiencesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAudiencesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAudiences($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBigQueryLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $bigqueryLinksElement = new BigQueryLink(); - $bigqueryLinks = [ - $bigqueryLinksElement, - ]; - $expectedResponse = new ListBigQueryLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBigqueryLinks($bigqueryLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListBigQueryLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBigQueryLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBigqueryLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBigQueryLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListBigQueryLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBigQueryLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCalculatedMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $calculatedMetricsElement = new CalculatedMetric(); - $calculatedMetrics = [ - $calculatedMetricsElement, - ]; - $expectedResponse = new ListCalculatedMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCalculatedMetrics($calculatedMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCalculatedMetricsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCalculatedMetrics($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCalculatedMetrics()[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/ListCalculatedMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCalculatedMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCalculatedMetricsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCalculatedMetrics($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelGroupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $channelGroupsElement = new ChannelGroup(); - $channelGroups = [ - $channelGroupsElement, - ]; - $expectedResponse = new ListChannelGroupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChannelGroups($channelGroups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListChannelGroupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listChannelGroups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChannelGroups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelGroupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListChannelGroupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listChannelGroups($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectedSiteTagsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListConnectedSiteTagsResponse(); - $transport->addResponse($expectedResponse); - $request = new ListConnectedSiteTagsRequest(); - $response = $gapicClient->listConnectedSiteTags($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectedSiteTagsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListConnectedSiteTagsRequest(); - try { - $gapicClient->listConnectedSiteTags($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversionEventsElement = new ConversionEvent(); - $conversionEvents = [ - $conversionEventsElement, - ]; - $expectedResponse = new ListConversionEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversionEvents($conversionEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListConversionEventsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConversionEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListConversionEventsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConversionEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customDimensionsElement = new CustomDimension(); - $customDimensions = [ - $customDimensionsElement, - ]; - $expectedResponse = new ListCustomDimensionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomDimensions($customDimensions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomDimensionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomDimensions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomDimensionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomDimensions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customMetricsElement = new CustomMetric(); - $customMetrics = [ - $customMetricsElement, - ]; - $expectedResponse = new ListCustomMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomMetrics($customMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomMetricsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomMetrics($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomMetricsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomMetrics($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStreamsElement = new DataStream(); - $dataStreams = [ - $dataStreamsElement, - ]; - $expectedResponse = new ListDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStreams($dataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDataStreamsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataStreams($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDataStreamsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataStreams($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinkProposalsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $displayVideo360AdvertiserLinkProposalsElement = new DisplayVideo360AdvertiserLinkProposal(); - $displayVideo360AdvertiserLinkProposals = [ - $displayVideo360AdvertiserLinkProposalsElement, - ]; - $expectedResponse = new ListDisplayVideo360AdvertiserLinkProposalsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDisplayVideo360AdvertiserLinkProposals($displayVideo360AdvertiserLinkProposals); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDisplayVideo360AdvertiserLinkProposalsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDisplayVideo360AdvertiserLinkProposals($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinkProposals()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinkProposalsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDisplayVideo360AdvertiserLinkProposalsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDisplayVideo360AdvertiserLinkProposals($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $displayVideo360AdvertiserLinksElement = new DisplayVideo360AdvertiserLink(); - $displayVideo360AdvertiserLinks = [ - $displayVideo360AdvertiserLinksElement, - ]; - $expectedResponse = new ListDisplayVideo360AdvertiserLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDisplayVideo360AdvertiserLinks($displayVideo360AdvertiserLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDisplayVideo360AdvertiserLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDisplayVideo360AdvertiserLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDisplayVideo360AdvertiserLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDisplayVideo360AdvertiserLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDisplayVideo360AdvertiserLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventCreateRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $eventCreateRulesElement = new EventCreateRule(); - $eventCreateRules = [ - $eventCreateRulesElement, - ]; - $expectedResponse = new ListEventCreateRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEventCreateRules($eventCreateRules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListEventCreateRulesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEventCreateRules($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEventCreateRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventCreateRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListEventCreateRulesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEventCreateRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventEditRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $eventEditRulesElement = new EventEditRule(); - $eventEditRules = [ - $eventEditRulesElement, - ]; - $expectedResponse = new ListEventEditRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEventEditRules($eventEditRules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListEventEditRulesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEventEditRules($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEventEditRules()[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/ListEventEditRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventEditRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListEventEditRulesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEventEditRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExpandedDataSetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $expandedDataSetsElement = new ExpandedDataSet(); - $expandedDataSets = [ - $expandedDataSetsElement, - ]; - $expectedResponse = new ListExpandedDataSetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setExpandedDataSets($expandedDataSets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListExpandedDataSetsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listExpandedDataSets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getExpandedDataSets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExpandedDataSetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListExpandedDataSetsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listExpandedDataSets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $firebaseLinksElement = new FirebaseLink(); - $firebaseLinks = [ - $firebaseLinksElement, - ]; - $expectedResponse = new ListFirebaseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFirebaseLinks($firebaseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListFirebaseLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFirebaseLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListFirebaseLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFirebaseLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleAdsLinksElement = new GoogleAdsLink(); - $googleAdsLinks = [ - $googleAdsLinksElement, - ]; - $expectedResponse = new ListGoogleAdsLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleAdsLinks($googleAdsLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListGoogleAdsLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGoogleAdsLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListGoogleAdsLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGoogleAdsLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $keyEventsElement = new KeyEvent(); - $keyEvents = [ - $keyEventsElement, - ]; - $expectedResponse = new ListKeyEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setKeyEvents($keyEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListKeyEventsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listKeyEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getKeyEvents()[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/ListKeyEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListKeyEventsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listKeyEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); - $measurementProtocolSecrets = [ - $measurementProtocolSecretsElement, - ]; - $expectedResponse = new ListMeasurementProtocolSecretsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListMeasurementProtocolSecretsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMeasurementProtocolSecrets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListMeasurementProtocolSecretsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMeasurementProtocolSecrets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $propertiesElement = new Property(); - $properties = [ - $propertiesElement, - ]; - $expectedResponse = new ListPropertiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProperties($properties); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListPropertiesRequest()) - ->setFilter($filter); - $response = $gapicClient->listProperties($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListPropertiesRequest()) - ->setFilter($filter); - try { - $gapicClient->listProperties($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRollupPropertySourceLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rollupPropertySourceLinksElement = new RollupPropertySourceLink(); - $rollupPropertySourceLinks = [ - $rollupPropertySourceLinksElement, - ]; - $expectedResponse = new ListRollupPropertySourceLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRollupPropertySourceLinks($rollupPropertySourceLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListRollupPropertySourceLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRollupPropertySourceLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRollupPropertySourceLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRollupPropertySourceLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListRollupPropertySourceLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRollupPropertySourceLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSKAdNetworkConversionValueSchemasTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemas = [ - $skadnetworkConversionValueSchemasElement, - ]; - $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListSKAdNetworkConversionValueSchemasRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSKAdNetworkConversionValueSchemas($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSKAdNetworkConversionValueSchemasExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListSKAdNetworkConversionValueSchemasRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSKAdNetworkConversionValueSchemas($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSearchAds360LinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $searchAds360LinksElement = new SearchAds360Link(); - $searchAds360Links = [ - $searchAds360LinksElement, - ]; - $expectedResponse = new ListSearchAds360LinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchAds360Links($searchAds360Links); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListSearchAds360LinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSearchAds360Links($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchAds360Links()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSearchAds360LinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListSearchAds360LinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSearchAds360Links($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubpropertyEventFiltersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subpropertyEventFiltersElement = new SubpropertyEventFilter(); - $subpropertyEventFilters = [ - $subpropertyEventFiltersElement, - ]; - $expectedResponse = new ListSubpropertyEventFiltersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubpropertyEventFilters($subpropertyEventFilters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListSubpropertyEventFiltersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSubpropertyEventFilters($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubpropertyEventFilters()[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/ListSubpropertyEventFilters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubpropertyEventFiltersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListSubpropertyEventFiltersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSubpropertyEventFilters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $request = new ProvisionAccountTicketRequest(); - $response = $gapicClient->provisionAccountTicket($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ProvisionAccountTicketRequest(); - try { - $gapicClient->provisionAccountTicket($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionSubpropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ProvisionSubpropertyResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $subproperty = new Property(); - $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; - $subproperty->setDisplayName($subpropertyDisplayName); - $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; - $subproperty->setTimeZone($subpropertyTimeZone); - $request = (new ProvisionSubpropertyRequest()) - ->setSubproperty($subproperty); - $response = $gapicClient->provisionSubproperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionSubproperty', $actualFuncCall); - $actualValue = $actualRequestObject->getSubproperty(); - $this->assertProtobufEquals($subproperty, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionSubpropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $subproperty = new Property(); - $subpropertyDisplayName = 'subpropertyDisplayName-1859570920'; - $subproperty->setDisplayName($subpropertyDisplayName); - $subpropertyTimeZone = 'subpropertyTimeZone-1143367858'; - $subproperty->setTimeZone($subpropertyTimeZone); - $request = (new ProvisionSubpropertyRequest()) - ->setSubproperty($subproperty); - try { - $gapicClient->provisionSubproperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reorderEventEditRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRules = []; - $request = (new ReorderEventEditRulesRequest()) - ->setParent($formattedParent) - ->setEventEditRules($eventEditRules); - $gapicClient->reorderEventEditRules($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ReorderEventEditRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEventEditRules(); - $this->assertProtobufEquals($eventEditRules, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reorderEventEditRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $eventEditRules = []; - $request = (new ReorderEventEditRulesRequest()) - ->setParent($formattedParent) - ->setEventEditRules($eventEditRules); - try { - $gapicClient->reorderEventEditRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new RunAccessReportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - $request = new RunAccessReportRequest(); - $response = $gapicClient->runAccessReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunAccessReportRequest(); - try { - $gapicClient->runAccessReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $changeHistoryEventsElement = new ChangeHistoryEvent(); - $changeHistoryEvents = [ - $changeHistoryEventsElement, - ]; - $expectedResponse = new SearchChangeHistoryEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $request = (new SearchChangeHistoryEventsRequest()) - ->setAccount($formattedAccount); - $response = $gapicClient->searchChangeHistoryEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($formattedAccount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $request = (new SearchChangeHistoryEventsRequest()) - ->setAccount($formattedAccount); - try { - $gapicClient->searchChangeHistoryEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAutomatedGa4ConfigurationOptOutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SetAutomatedGa4ConfigurationOptOutResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $property = 'property-993141291'; - $request = (new SetAutomatedGa4ConfigurationOptOutRequest()) - ->setProperty($property); - $response = $gapicClient->setAutomatedGa4ConfigurationOptOut($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAutomatedGa4ConfigurationOptOutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = 'property-993141291'; - $request = (new SetAutomatedGa4ConfigurationOptOutRequest()) - ->setProperty($property); - try { - $gapicClient->setAutomatedGa4ConfigurationOptOut($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $user = 'user3599307'; - $name = 'name3373707'; - $expectedResponse = new AccessBinding(); - $expectedResponse->setUser($user); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $accessBinding = new AccessBinding(); - $request = (new UpdateAccessBindingRequest()) - ->setAccessBinding($accessBinding); - $response = $gapicClient->updateAccessBinding($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getAccessBinding(); - $this->assertProtobufEquals($accessBinding, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $accessBinding = new AccessBinding(); - $request = (new UpdateAccessBindingRequest()) - ->setAccessBinding($accessBinding); - try { - $gapicClient->updateAccessBinding($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($account, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new AttributionSettings(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $attributionSettings = new AttributionSettings(); - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - $request = (new UpdateAttributionSettingsRequest()) - ->setAttributionSettings($attributionSettings) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAttributionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getAttributionSettings(); - $this->assertProtobufEquals($attributionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $attributionSettings = new AttributionSettings(); - $attributionSettingsAcquisitionConversionEventLookbackWindow = AcquisitionConversionEventLookbackWindow::ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setAcquisitionConversionEventLookbackWindow($attributionSettingsAcquisitionConversionEventLookbackWindow); - $attributionSettingsOtherConversionEventLookbackWindow = OtherConversionEventLookbackWindow::OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - $attributionSettings->setOtherConversionEventLookbackWindow($attributionSettingsOtherConversionEventLookbackWindow); - $attributionSettingsReportingAttributionModel = ReportingAttributionModel::REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - $attributionSettings->setReportingAttributionModel($attributionSettingsReportingAttributionModel); - $attributionSettingsAdsWebConversionDataExportScope = AdsWebConversionDataExportScope::ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - $attributionSettings->setAdsWebConversionDataExportScope($attributionSettingsAdsWebConversionDataExportScope); - $updateMask = new FieldMask(); - $request = (new UpdateAttributionSettingsRequest()) - ->setAttributionSettings($attributionSettings) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateAttributionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAudienceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $membershipDurationDays = 1702404985; - $adsPersonalizationEnabled = false; - $expectedResponse = new Audience(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setMembershipDurationDays($membershipDurationDays); - $expectedResponse->setAdsPersonalizationEnabled($adsPersonalizationEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - $request = (new UpdateAudienceRequest()) - ->setAudience($audience) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAudience($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience', $actualFuncCall); - $actualValue = $actualRequestObject->getAudience(); - $this->assertProtobufEquals($audience, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAudienceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $audience = new Audience(); - $audienceDisplayName = 'audienceDisplayName1537141193'; - $audience->setDisplayName($audienceDisplayName); - $audienceDescription = 'audienceDescription-1901553832'; - $audience->setDescription($audienceDescription); - $audienceMembershipDurationDays = 1530655195; - $audience->setMembershipDurationDays($audienceMembershipDurationDays); - $audienceFilterClauses = []; - $audience->setFilterClauses($audienceFilterClauses); - $updateMask = new FieldMask(); - $request = (new UpdateAudienceRequest()) - ->setAudience($audience) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateAudience($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateBigQueryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $dailyExportEnabled = true; - $streamingExportEnabled = false; - $freshDailyExportEnabled = false; - $includeAdvertisingId = false; - $datasetLocation = 'datasetLocation1011262364'; - $expectedResponse = new BigQueryLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $expectedResponse->setDailyExportEnabled($dailyExportEnabled); - $expectedResponse->setStreamingExportEnabled($streamingExportEnabled); - $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled); - $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId); - $expectedResponse->setDatasetLocation($datasetLocation); - $transport->addResponse($expectedResponse); - // Mock request - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - $updateMask = new FieldMask(); - $request = (new UpdateBigQueryLinkRequest()) - ->setBigqueryLink($bigqueryLink) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateBigQueryLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateBigQueryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getBigqueryLink(); - $this->assertProtobufEquals($bigqueryLink, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateBigQueryLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $bigqueryLink = new BigQueryLink(); - $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843'; - $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation); - $updateMask = new FieldMask(); - $request = (new UpdateBigQueryLinkRequest()) - ->setBigqueryLink($bigqueryLink) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateBigQueryLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCalculatedMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $calculatedMetricId = 'calculatedMetricId8203465'; - $formula = 'formula-677424794'; - $invalidMetricReference = true; - $expectedResponse = new CalculatedMetric(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCalculatedMetricId($calculatedMetricId); - $expectedResponse->setFormula($formula); - $expectedResponse->setInvalidMetricReference($invalidMetricReference); - $transport->addResponse($expectedResponse); - // Mock request - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - $updateMask = new FieldMask(); - $request = (new UpdateCalculatedMetricRequest()) - ->setCalculatedMetric($calculatedMetric) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCalculatedMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCalculatedMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getCalculatedMetric(); - $this->assertProtobufEquals($calculatedMetric, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCalculatedMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $calculatedMetric = new CalculatedMetric(); - $calculatedMetricDisplayName = 'calculatedMetricDisplayName-1927551873'; - $calculatedMetric->setDisplayName($calculatedMetricDisplayName); - $calculatedMetricMetricUnit = MetricUnit::METRIC_UNIT_UNSPECIFIED; - $calculatedMetric->setMetricUnit($calculatedMetricMetricUnit); - $calculatedMetricFormula = 'calculatedMetricFormula752695416'; - $calculatedMetric->setFormula($calculatedMetricFormula); - $updateMask = new FieldMask(); - $request = (new UpdateCalculatedMetricRequest()) - ->setCalculatedMetric($calculatedMetric) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCalculatedMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateChannelGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $systemDefined = false; - $primary = true; - $expectedResponse = new ChannelGroup(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSystemDefined($systemDefined); - $expectedResponse->setPrimary($primary); - $transport->addResponse($expectedResponse); - // Mock request - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - $request = (new UpdateChannelGroupRequest()) - ->setChannelGroup($channelGroup) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateChannelGroup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getChannelGroup(); - $this->assertProtobufEquals($channelGroup, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateChannelGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $channelGroup = new ChannelGroup(); - $channelGroupDisplayName = 'channelGroupDisplayName1156787601'; - $channelGroup->setDisplayName($channelGroupDisplayName); - $channelGroupGroupingRule = []; - $channelGroup->setGroupingRule($channelGroupGroupingRule); - $updateMask = new FieldMask(); - $request = (new UpdateChannelGroupRequest()) - ->setChannelGroup($channelGroup) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateChannelGroup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $request = (new UpdateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $request = (new UpdateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomDimensionRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomDimensionRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomMetricRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomMetricRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRedactionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $emailRedactionEnabled = true; - $queryParameterRedactionEnabled = true; - $expectedResponse = new DataRedactionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); - $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $dataRedactionSettings = new DataRedactionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRedactionSettingsRequest()) - ->setDataRedactionSettings($dataRedactionSettings) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataRedactionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRedactionSettings(); - $this->assertProtobufEquals($dataRedactionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRedactionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRedactionSettings = new DataRedactionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRedactionSettingsRequest()) - ->setDataRedactionSettings($dataRedactionSettings) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataRedactionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRetentionSettingsRequest()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataRetentionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRetentionSettings(); - $this->assertProtobufEquals($dataRetentionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRetentionSettingsRequest()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataRetentionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDataStreamRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDataStreamRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDisplayVideo360AdvertiserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new DisplayVideo360AdvertiserLink(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDisplayVideo360AdvertiserLinkRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDisplayVideo360AdvertiserLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDisplayVideo360AdvertiserLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDisplayVideo360AdvertiserLinkRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDisplayVideo360AdvertiserLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEnhancedMeasurementSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $streamEnabled = true; - $scrollsEnabled = true; - $outboundClicksEnabled = true; - $siteSearchEnabled = true; - $videoEngagementEnabled = false; - $fileDownloadsEnabled = true; - $pageChangesEnabled = false; - $formInteractionsEnabled = true; - $searchQueryParameter = 'searchQueryParameter638048347'; - $uriQueryParameter = 'uriQueryParameter964636703'; - $expectedResponse = new EnhancedMeasurementSettings(); - $expectedResponse->setName($name); - $expectedResponse->setStreamEnabled($streamEnabled); - $expectedResponse->setScrollsEnabled($scrollsEnabled); - $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled); - $expectedResponse->setSiteSearchEnabled($siteSearchEnabled); - $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled); - $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled); - $expectedResponse->setPageChangesEnabled($pageChangesEnabled); - $expectedResponse->setFormInteractionsEnabled($formInteractionsEnabled); - $expectedResponse->setSearchQueryParameter($searchQueryParameter); - $expectedResponse->setUriQueryParameter($uriQueryParameter); - $transport->addResponse($expectedResponse); - // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - $request = (new UpdateEnhancedMeasurementSettingsRequest()) - ->setEnhancedMeasurementSettings($enhancedMeasurementSettings) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEnhancedMeasurementSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getEnhancedMeasurementSettings(); - $this->assertProtobufEquals($enhancedMeasurementSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEnhancedMeasurementSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $enhancedMeasurementSettings = new EnhancedMeasurementSettings(); - $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938'; - $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); - $updateMask = new FieldMask(); - $request = (new UpdateEnhancedMeasurementSettingsRequest()) - ->setEnhancedMeasurementSettings($enhancedMeasurementSettings) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateEnhancedMeasurementSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventCreateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $destinationEvent = 'destinationEvent-1300408535'; - $sourceCopyParameters = true; - $expectedResponse = new EventCreateRule(); - $expectedResponse->setName($name); - $expectedResponse->setDestinationEvent($destinationEvent); - $expectedResponse->setSourceCopyParameters($sourceCopyParameters); - $transport->addResponse($expectedResponse); - // Mock request - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - $request = (new UpdateEventCreateRuleRequest()) - ->setEventCreateRule($eventCreateRule) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEventCreateRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getEventCreateRule(); - $this->assertProtobufEquals($eventCreateRule, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventCreateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $eventCreateRule = new EventCreateRule(); - $eventCreateRuleDestinationEvent = 'eventCreateRuleDestinationEvent598875038'; - $eventCreateRule->setDestinationEvent($eventCreateRuleDestinationEvent); - $eventCreateRuleEventConditions = []; - $eventCreateRule->setEventConditions($eventCreateRuleEventConditions); - $updateMask = new FieldMask(); - $request = (new UpdateEventCreateRuleRequest()) - ->setEventCreateRule($eventCreateRule) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateEventCreateRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventEditRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $processingOrder = 334545118; - $expectedResponse = new EventEditRule(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setProcessingOrder($processingOrder); - $transport->addResponse($expectedResponse); - // Mock request - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - $updateMask = new FieldMask(); - $request = (new UpdateEventEditRuleRequest()) - ->setEventEditRule($eventEditRule) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEventEditRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventEditRule', $actualFuncCall); - $actualValue = $actualRequestObject->getEventEditRule(); - $this->assertProtobufEquals($eventEditRule, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEventEditRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $eventEditRule = new EventEditRule(); - $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781'; - $eventEditRule->setDisplayName($eventEditRuleDisplayName); - $eventEditRuleEventConditions = []; - $eventEditRule->setEventConditions($eventEditRuleEventConditions); - $eventEditRuleParameterMutations = []; - $eventEditRule->setParameterMutations($eventEditRuleParameterMutations); - $updateMask = new FieldMask(); - $request = (new UpdateEventEditRuleRequest()) - ->setEventEditRule($eventEditRule) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateEventEditRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExpandedDataSetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExpandedDataSet(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateExpandedDataSetRequest()) - ->setExpandedDataSet($expandedDataSet) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateExpandedDataSet($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet', $actualFuncCall); - $actualValue = $actualRequestObject->getExpandedDataSet(); - $this->assertProtobufEquals($expandedDataSet, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExpandedDataSetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $expandedDataSet = new ExpandedDataSet(); - $expandedDataSetDisplayName = 'expandedDataSetDisplayName629188494'; - $expandedDataSet->setDisplayName($expandedDataSetDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateExpandedDataSetRequest()) - ->setExpandedDataSet($expandedDataSet) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateExpandedDataSet($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateGoogleAdsLinkRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGoogleAdsLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateGoogleAdsLinkRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleSignalsSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new GoogleSignalsSettings(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $googleSignalsSettings = new GoogleSignalsSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateGoogleSignalsSettingsRequest()) - ->setGoogleSignalsSettings($googleSignalsSettings) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGoogleSignalsSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getGoogleSignalsSettings(); - $this->assertProtobufEquals($googleSignalsSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleSignalsSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $googleSignalsSettings = new GoogleSignalsSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateGoogleSignalsSettingsRequest()) - ->setGoogleSignalsSettings($googleSignalsSettings) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateGoogleSignalsSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $request = (new UpdateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateKeyEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $request = (new UpdateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSKAdNetworkConversionValueSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); - $expectedResponse->setName($name); - $expectedResponse->setApplyConversionValues($applyConversionValues); - $transport->addResponse($expectedResponse); - // Mock request - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - $request = (new UpdateSKAdNetworkConversionValueSchemaRequest()) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSKAdNetworkConversionValueSchema($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getSkadnetworkConversionValueSchema(); - $this->assertProtobufEquals($skadnetworkConversionValueSchema, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSKAdNetworkConversionValueSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $skadnetworkConversionValueSchema = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemaPostbackWindowOne = new PostbackWindow(); - $skadnetworkConversionValueSchema->setPostbackWindowOne($skadnetworkConversionValueSchemaPostbackWindowOne); - $updateMask = new FieldMask(); - $request = (new UpdateSKAdNetworkConversionValueSchemaRequest()) - ->setSkadnetworkConversionValueSchema($skadnetworkConversionValueSchema) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSKAdNetworkConversionValueSchema($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSearchAds360LinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); - $expectedResponse->setName($name); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateSearchAds360LinkRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSearchAds360Link($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSearchAds360LinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateSearchAds360LinkRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSearchAds360Link($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSubpropertyEventFilterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $applyToProperty = 'applyToProperty-1639692344'; - $expectedResponse = new SubpropertyEventFilter(); - $expectedResponse->setName($name); - $expectedResponse->setApplyToProperty($applyToProperty); - $transport->addResponse($expectedResponse); - // Mock request - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $updateMask = new FieldMask(); - $request = (new UpdateSubpropertyEventFilterRequest()) - ->setSubpropertyEventFilter($subpropertyEventFilter) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSubpropertyEventFilter($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSubpropertyEventFilter', $actualFuncCall); - $actualValue = $actualRequestObject->getSubpropertyEventFilter(); - $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSubpropertyEventFilterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $subpropertyEventFilter = new SubpropertyEventFilter(); - $subpropertyEventFilterFilterClauses = []; - $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); - $updateMask = new FieldMask(); - $request = (new UpdateSubpropertyEventFilterRequest()) - ->setSubpropertyEventFilter($subpropertyEventFilter) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSubpropertyEventFilter($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - $response = $gapicClient->acknowledgeUserDataCollectionAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php deleted file mode 100644 index 46280e17b9d2..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AccessReport.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php deleted file mode 100644 index ce8544422673..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/AnalyticsAdmin.php +++ /dev/null @@ -1,346 +0,0 @@ -internalAddGeneratedFile( - ' -Ƨ -3google/analytics/admin/v1beta/analytics_admin.protogoogle.analytics.admin.v1beta-google/analytics/admin/v1beta/resources.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto" -RunAccessReportRequest -entity ( B - -dimensions ( 2..google.analytics.admin.v1beta.AccessDimension< -metrics ( 2+.google.analytics.admin.v1beta.AccessMetricC - date_ranges ( 2..google.analytics.admin.v1beta.AccessDateRangeO -dimension_filter ( 25.google.analytics.admin.v1beta.AccessFilterExpressionL - metric_filter ( 25.google.analytics.admin.v1beta.AccessFilterExpression -offset ( -limit ( - time_zone ( ? - order_bys - ( 2,.google.analytics.admin.v1beta.AccessOrderBy -return_entity_quota ( -include_all_users (BA - expand_groups (BA" -RunAccessReportResponseO -dimension_headers ( 24.google.analytics.admin.v1beta.AccessDimensionHeaderI -metric_headers ( 21.google.analytics.admin.v1beta.AccessMetricHeader6 -rows ( 2(.google.analytics.admin.v1beta.AccessRow - row_count (9 -quota ( 2*.google.analytics.admin.v1beta.AccessQuota"P -GetAccountRequest; -name ( B-AA\' -%analyticsadmin.googleapis.com/Account"R -ListAccountsRequest - page_size ( - -page_token (  - show_deleted ("i -ListAccountsResponse8 -accounts ( 2&.google.analytics.admin.v1beta.Account -next_page_token ( "S -DeleteAccountRequest; -name ( B-AA\' -%analyticsadmin.googleapis.com/Account" -UpdateAccountRequest< -account ( 2&.google.analytics.admin.v1beta.AccountBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"n -ProvisionAccountTicketRequest7 -account ( 2&.google.analytics.admin.v1beta.Account - redirect_uri ( "; -ProvisionAccountTicketResponse -account_ticket_id ( "R -GetPropertyRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/Property"i -ListPropertiesRequest -filter ( BA - page_size ( - -page_token (  - show_deleted ("n -ListPropertiesResponse; - -properties ( 2\'.google.analytics.admin.v1beta.Property -next_page_token ( " -UpdatePropertyRequest> -property ( 2\'.google.analytics.admin.v1beta.PropertyBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"W -CreatePropertyRequest> -property ( 2\'.google.analytics.admin.v1beta.PropertyBA"U -DeletePropertyRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/Property" -CreateFirebaseLinkRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/FirebaseLinkG - firebase_link ( 2+.google.analytics.admin.v1beta.FirebaseLinkBA"] -DeleteFirebaseLinkRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/FirebaseLink" -ListFirebaseLinksRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/FirebaseLink - page_size ( - -page_token ( "y -ListFirebaseLinksResponseC -firebase_links ( 2+.google.analytics.admin.v1beta.FirebaseLink -next_page_token ( " -CreateGoogleAdsLinkRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/GoogleAdsLinkJ -google_ads_link ( 2,.google.analytics.admin.v1beta.GoogleAdsLinkBA" -UpdateGoogleAdsLinkRequestE -google_ads_link ( 2,.google.analytics.admin.v1beta.GoogleAdsLink4 - update_mask ( 2.google.protobuf.FieldMaskBA"_ -DeleteGoogleAdsLinkRequestA -name ( B3AA- -+analyticsadmin.googleapis.com/GoogleAdsLink" -ListGoogleAdsLinksRequestC -parent ( B3AA-+analyticsadmin.googleapis.com/GoogleAdsLink - page_size ( - -page_token ( "} -ListGoogleAdsLinksResponseF -google_ads_links ( 2,.google.analytics.admin.v1beta.GoogleAdsLink -next_page_token ( "h -GetDataSharingSettingsRequestG -name ( B9AA3 -1analyticsadmin.googleapis.com/DataSharingSettings"D -ListAccountSummariesRequest - page_size ( - -page_token ( " -ListAccountSummariesResponseH -account_summaries ( 2-.google.analytics.admin.v1beta.AccountSummary -next_page_token ( " -$AcknowledgeUserDataCollectionRequest@ -property ( B.AA( -&analyticsadmin.googleapis.com/Property -acknowledgement ( BA"\' -%AcknowledgeUserDataCollectionResponse" - SearchChangeHistoryEventsRequest> -account ( B-AA\' -%analyticsadmin.googleapis.com/Account@ -property ( B.AA( -&analyticsadmin.googleapis.com/PropertyT - resource_type (28.google.analytics.admin.v1beta.ChangeHistoryResourceTypeBA> -action (2).google.analytics.admin.v1beta.ActionTypeBA - actor_email ( BA= -earliest_change_time ( 2.google.protobuf.TimestampBA; -latest_change_time ( 2.google.protobuf.TimestampBA - page_size (BA - -page_token ( BA" -!SearchChangeHistoryEventsResponseP -change_history_events ( 21.google.analytics.admin.v1beta.ChangeHistoryEvent -next_page_token ( "t -#GetMeasurementProtocolSecretRequestM -name ( B?AA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret" -&CreateMeasurementProtocolSecretRequestO -parent ( B?AA97analyticsadmin.googleapis.com/MeasurementProtocolSecretb -measurement_protocol_secret ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecretBA"w -&DeleteMeasurementProtocolSecretRequestM -name ( B?AA9 -7analyticsadmin.googleapis.com/MeasurementProtocolSecret" -&UpdateMeasurementProtocolSecretRequestb -measurement_protocol_secret ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecretBA4 - update_mask ( 2.google.protobuf.FieldMaskBA" -%ListMeasurementProtocolSecretsRequestO -parent ( B?AA97analyticsadmin.googleapis.com/MeasurementProtocolSecret - page_size ( - -page_token ( " -&ListMeasurementProtocolSecretsResponse^ -measurement_protocol_secrets ( 28.google.analytics.admin.v1beta.MeasurementProtocolSecret -next_page_token ( " -CreateConversionEventRequestM -conversion_event ( 2..google.analytics.admin.v1beta.ConversionEventBAE -parent ( B5AA/-analyticsadmin.googleapis.com/ConversionEvent" -UpdateConversionEventRequestM -conversion_event ( 2..google.analytics.admin.v1beta.ConversionEventBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"` -GetConversionEventRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/ConversionEvent"c -DeleteConversionEventRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/ConversionEvent" -ListConversionEventsRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/ConversionEvent - page_size ( - -page_token ( " -ListConversionEventsResponseI -conversion_events ( 2..google.analytics.admin.v1beta.ConversionEvent -next_page_token ( " -CreateKeyEventRequest? - key_event ( 2\'.google.analytics.admin.v1beta.KeyEventBA> -parent ( B.AA(&analyticsadmin.googleapis.com/KeyEvent" -UpdateKeyEventRequest? - key_event ( 2\'.google.analytics.admin.v1beta.KeyEventBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"R -GetKeyEventRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/KeyEvent"U -DeleteKeyEventRequest< -name ( B.AA( -&analyticsadmin.googleapis.com/KeyEvent"} -ListKeyEventsRequest> -parent ( B.AA(&analyticsadmin.googleapis.com/KeyEvent - page_size ( - -page_token ( "m -ListKeyEventsResponse; - -key_events ( 2\'.google.analytics.admin.v1beta.KeyEvent -next_page_token ( " -CreateCustomDimensionRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/CustomDimensionM -custom_dimension ( 2..google.analytics.admin.v1beta.CustomDimensionBA" -UpdateCustomDimensionRequestH -custom_dimension ( 2..google.analytics.admin.v1beta.CustomDimension4 - update_mask ( 2.google.protobuf.FieldMaskBA" -ListCustomDimensionsRequestE -parent ( B5AA/-analyticsadmin.googleapis.com/CustomDimension - page_size ( - -page_token ( " -ListCustomDimensionsResponseI -custom_dimensions ( 2..google.analytics.admin.v1beta.CustomDimension -next_page_token ( "d -ArchiveCustomDimensionRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/CustomDimension"` -GetCustomDimensionRequestC -name ( B5AA/ --analyticsadmin.googleapis.com/CustomDimension" -CreateCustomMetricRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/CustomMetricG - custom_metric ( 2+.google.analytics.admin.v1beta.CustomMetricBA" -UpdateCustomMetricRequestB - custom_metric ( 2+.google.analytics.admin.v1beta.CustomMetric4 - update_mask ( 2.google.protobuf.FieldMaskBA" -ListCustomMetricsRequestB -parent ( B2AA,*analyticsadmin.googleapis.com/CustomMetric - page_size ( - -page_token ( "y -ListCustomMetricsResponseC -custom_metrics ( 2+.google.analytics.admin.v1beta.CustomMetric -next_page_token ( "^ -ArchiveCustomMetricRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/CustomMetric"Z -GetCustomMetricRequest@ -name ( B2AA, -*analyticsadmin.googleapis.com/CustomMetric"l -GetDataRetentionSettingsRequestI -name ( B;AA5 -3analyticsadmin.googleapis.com/DataRetentionSettings" -"UpdateDataRetentionSettingsRequestZ -data_retention_settings ( 24.google.analytics.admin.v1beta.DataRetentionSettingsBA4 - update_mask ( 2.google.protobuf.FieldMaskBA" -CreateDataStreamRequest@ -parent ( B0AA*(analyticsadmin.googleapis.com/DataStreamC - data_stream ( 2).google.analytics.admin.v1beta.DataStreamBA"Y -DeleteDataStreamRequest> -name ( B0AA* -(analyticsadmin.googleapis.com/DataStream" -UpdateDataStreamRequest> - data_stream ( 2).google.analytics.admin.v1beta.DataStream4 - update_mask ( 2.google.protobuf.FieldMaskBA" -ListDataStreamsRequest@ -parent ( B0AA*(analyticsadmin.googleapis.com/DataStream - page_size ( - -page_token ( "s -ListDataStreamsResponse? - data_streams ( 2).google.analytics.admin.v1beta.DataStream -next_page_token ( "V -GetDataStreamRequest> -name ( B0AA* -(analyticsadmin.googleapis.com/DataStream2W -AnalyticsAdminService - -GetAccount0.google.analytics.admin.v1beta.GetAccountRequest&.google.analytics.admin.v1beta.Account"(Aname/v1beta/{name=accounts/*} - ListAccounts2.google.analytics.admin.v1beta.ListAccountsRequest3.google.analytics.admin.v1beta.ListAccountsResponse"/v1beta/accounts - DeleteAccount3.google.analytics.admin.v1beta.DeleteAccountRequest.google.protobuf.Empty"(Aname*/v1beta/{name=accounts/*} - UpdateAccount3.google.analytics.admin.v1beta.UpdateAccountRequest&.google.analytics.admin.v1beta.Account"HAaccount,update_mask,2!/v1beta/{account.name=accounts/*}:account -ProvisionAccountTicket<.google.analytics.admin.v1beta.ProvisionAccountTicketRequest=.google.analytics.admin.v1beta.ProvisionAccountTicketResponse"2,"\'/v1beta/accounts:provisionAccountTicket:* -ListAccountSummaries:.google.analytics.admin.v1beta.ListAccountSummariesRequest;.google.analytics.admin.v1beta.ListAccountSummariesResponse" /v1beta/accountSummaries - GetProperty1.google.analytics.admin.v1beta.GetPropertyRequest\'.google.analytics.admin.v1beta.Property"*Aname/v1beta/{name=properties/*} -ListProperties4.google.analytics.admin.v1beta.ListPropertiesRequest5.google.analytics.admin.v1beta.ListPropertiesResponse"/v1beta/properties -CreateProperty4.google.analytics.admin.v1beta.CreatePropertyRequest\'.google.analytics.admin.v1beta.Property"/Aproperty"/v1beta/properties:property -DeleteProperty4.google.analytics.admin.v1beta.DeletePropertyRequest\'.google.analytics.admin.v1beta.Property"*Aname*/v1beta/{name=properties/*} -UpdateProperty4.google.analytics.admin.v1beta.UpdatePropertyRequest\'.google.analytics.admin.v1beta.Property"MAproperty,update_mask02$/v1beta/{property.name=properties/*}:property -CreateFirebaseLink8.google.analytics.admin.v1beta.CreateFirebaseLinkRequest+.google.analytics.admin.v1beta.FirebaseLink"YAparent,firebase_link<"+/v1beta/{parent=properties/*}/firebaseLinks: firebase_link -DeleteFirebaseLink8.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.google.protobuf.Empty":Aname-*+/v1beta/{name=properties/*/firebaseLinks/*} -ListFirebaseLinks7.google.analytics.admin.v1beta.ListFirebaseLinksRequest8.google.analytics.admin.v1beta.ListFirebaseLinksResponse"21/v1beta/{key_event.name=properties/*/keyEvents/*}: key_event - GetKeyEvent1.google.analytics.admin.v1beta.GetKeyEventRequest\'.google.analytics.admin.v1beta.KeyEvent"6Aname)\'/v1beta/{name=properties/*/keyEvents/*} -DeleteKeyEvent4.google.analytics.admin.v1beta.DeleteKeyEventRequest.google.protobuf.Empty"6Aname)*\'/v1beta/{name=properties/*/keyEvents/*} - ListKeyEvents3.google.analytics.admin.v1beta.ListKeyEventsRequest4.google.analytics.admin.v1beta.ListKeyEventsResponse"8Aparent)\'/v1beta/{parent=properties/*}/keyEvents -CreateCustomDimension;.google.analytics.admin.v1beta.CreateCustomDimensionRequest..google.analytics.admin.v1beta.CustomDimension"bAparent,custom_dimensionB"./v1beta/{parent=properties/*}/customDimensions:custom_dimension -UpdateCustomDimension;.google.analytics.admin.v1beta.UpdateCustomDimensionRequest..google.analytics.admin.v1beta.CustomDimension"xAcustom_dimension,update_maskS2?/v1beta/{custom_dimension.name=properties/*/customDimensions/*}:custom_dimension -ListCustomDimensions:.google.analytics.admin.v1beta.ListCustomDimensionsRequest;.google.analytics.admin.v1beta.ListCustomDimensionsResponse"?Aparent0./v1beta/{parent=properties/*}/customDimensions -ArchiveCustomDimension<.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.google.protobuf.Empty"HAname;"6/v1beta/{name=properties/*/customDimensions/*}:archive:* -GetCustomDimension8.google.analytics.admin.v1beta.GetCustomDimensionRequest..google.analytics.admin.v1beta.CustomDimension"=Aname0./v1beta/{name=properties/*/customDimensions/*} -CreateCustomMetric8.google.analytics.admin.v1beta.CreateCustomMetricRequest+.google.analytics.admin.v1beta.CustomMetric"YAparent,custom_metric<"+/v1beta/{parent=properties/*}/customMetrics: custom_metric -UpdateCustomMetric8.google.analytics.admin.v1beta.UpdateCustomMetricRequest+.google.analytics.admin.v1beta.CustomMetric"lAcustom_metric,update_maskJ29/v1beta/{custom_metric.name=properties/*/customMetrics/*}: custom_metric -ListCustomMetrics7.google.analytics.admin.v1beta.ListCustomMetricsRequest8.google.analytics.admin.v1beta.ListCustomMetricsResponse".google.analytics.admin.v1beta.GetDataRetentionSettingsRequest4.google.analytics.admin.v1beta.DataRetentionSettings"@Aname31/v1beta/{name=properties/*/dataRetentionSettings} -UpdateDataRetentionSettingsA.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest4.google.analytics.admin.v1beta.DataRetentionSettings"A#data_retention_settings,update_maskd2I/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}:data_retention_settings -CreateDataStream6.google.analytics.admin.v1beta.CreateDataStreamRequest).google.analytics.admin.v1beta.DataStream"SAparent,data_stream8")/v1beta/{parent=properties/*}/dataStreams: data_stream -DeleteDataStream6.google.analytics.admin.v1beta.DeleteDataStreamRequest.google.protobuf.Empty"8Aname+*)/v1beta/{name=properties/*/dataStreams/*} -UpdateDataStream6.google.analytics.admin.v1beta.UpdateDataStreamRequest).google.analytics.admin.v1beta.DataStream"dAdata_stream,update_maskD25/v1beta/{data_stream.name=properties/*/dataStreams/*}: data_stream -ListDataStreams5.google.analytics.admin.v1beta.ListDataStreamsRequest6.google.analytics.admin.v1beta.ListDataStreamsResponse":Aparent+)/v1beta/{parent=properties/*}/dataStreams - GetDataStream3.google.analytics.admin.v1beta.GetDataStreamRequest).google.analytics.admin.v1beta.DataStream"8Aname+)/v1beta/{name=properties/*/dataStreams/*} -RunAccessReport5.google.analytics.admin.v1beta.RunAccessReportRequest6.google.analytics.admin.v1beta.RunAccessReportResponse"jd"-/v1beta/{entity=properties/*}:runAccessReport:*Z0"+/v1beta/{entity=accounts/*}:runAccessReport:*Aanalyticsadmin.googleapis.comAahttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.readonlyBy -!com.google.analytics.admin.v1betaBAnalyticsAdminProtoPZ=cloud.google.com/go/analytics/admin/apiv1beta/adminpb;adminpbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php deleted file mode 100644 index fee33d6952e3..000000000000 Binary files a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/GPBMetadata/Google/Analytics/Admin/V1Beta/Resources.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php deleted file mode 100644 index 3e44c7218fb7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessBetweenFilter.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.admin.v1beta.AccessBetweenFilter - */ -class AccessBetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - protected $from_value = null; - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\NumericValue $from_value - * Begins with this number. - * @type \Google\Analytics\Admin\V1beta\NumericValue $to_value - * Ends with this number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return \Google\Analytics\Admin\V1beta\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @param \Google\Analytics\Admin\V1beta\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return \Google\Analytics\Admin\V1beta\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @param \Google\Analytics\Admin\V1beta\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php deleted file mode 100644 index 2693ac3c1401..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDateRange.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1beta.AccessDateRange - */ -class AccessDateRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - */ - protected $start_date = ''; - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - */ - protected $end_date = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_date - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * @type string $end_date - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the current time - * in the request's time zone. - * - * Generated from protobuf field string start_date = 1; - * @param string $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkString($var, True); - $this->start_date = $var; - - return $this; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the current - * time in the request's time zone. - * - * Generated from protobuf field string end_date = 2; - * @param string $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkString($var, True); - $this->end_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php deleted file mode 100644 index ad8fa116e91b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimension.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1beta.AccessDimension - */ -class AccessDimension extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The API name of the dimension. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of dimensions supported in this API. - * Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php deleted file mode 100644 index 5c89abc67615..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1beta.AccessDimensionHeader - */ -class AccessDimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * The dimension's name; for example 'userEmail'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * The dimension's name; for example 'userEmail'. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php deleted file mode 100644 index 3c878103a7ef..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessDimensionValue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1beta.AccessDimensionValue - */ -class AccessDimensionValue extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The dimension value. For example, this value may be 'France' for the - * 'country' dimension. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php deleted file mode 100644 index 7555f3b7e5bb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilter.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.admin.v1beta.AccessFilter - */ -class AccessFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessStringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Admin\V1beta\AccessInListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Admin\V1beta\AccessNumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Admin\V1beta\AccessBetweenFilter $between_filter - * A filter for two values. - * @type string $field_name - * The dimension name or metric name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return \Google\Analytics\Admin\V1beta\AccessStringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @param \Google\Analytics\Admin\V1beta\AccessStringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessStringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return \Google\Analytics\Admin\V1beta\AccessInListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @param \Google\Analytics\Admin\V1beta\AccessInListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessInListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return \Google\Analytics\Admin\V1beta\AccessNumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(4); - } - - public function hasNumericFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @param \Google\Analytics\Admin\V1beta\AccessNumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessNumericFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return \Google\Analytics\Admin\V1beta\AccessBetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(5); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @param \Google\Analytics\Admin\V1beta\AccessBetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessBetweenFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php deleted file mode 100644 index 60c37583b955..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpression.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.admin.v1beta.AccessFilterExpression - */ -class AccessFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $one_expression; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $and_group - * Each of the FilterExpressions in the and_group has an AND relationship. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $or_group - * Each of the FilterExpressions in the or_group has an OR relationship. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $not_expression - * The FilterExpression is NOT of not_expression. - * @type \Google\Analytics\Admin\V1beta\AccessFilter $access_filter - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * Each of the FilterExpressions in the and_group has an AND relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * Each of the FilterExpressions in the or_group has an OR relationship. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return \Google\Analytics\Admin\V1beta\AccessFilter|null - */ - public function getAccessFilter() - { - return $this->readOneof(4); - } - - public function hasAccessFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @param \Google\Analytics\Admin\V1beta\AccessFilter $var - * @return $this - */ - public function setAccessFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneExpression() - { - return $this->whichOneof("one_expression"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php deleted file mode 100644 index dc507c8ce069..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1beta.AccessFilterExpressionList - */ -class AccessFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * A list of filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccessFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php deleted file mode 100644 index 81057b5c955e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessInListFilter.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1beta.AccessInListFilter - */ -class AccessInListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The list of string values. Must be non-empty. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The list of string values. Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php deleted file mode 100644 index fefa95685fec..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetric.php +++ /dev/null @@ -1,80 +0,0 @@ -google.analytics.admin.v1beta.AccessMetric - */ -class AccessMetric extends \Google\Protobuf\Internal\Message -{ - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The API name of the metric. See [Data Access - * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - * for the list of metrics supported in this API. - * Metrics are referenced by name in `metricFilter` & `orderBys`. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php deleted file mode 100644 index 93fb29069548..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1beta.AccessMetricHeader - */ -class AccessMetricHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The metric's name; for example 'accessCount'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * The metric's name; for example 'accessCount'. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php deleted file mode 100644 index 39d8d6f9da45..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessMetricValue.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1beta.AccessMetricValue - */ -class AccessMetricValue extends \Google\Protobuf\Internal\Message -{ - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The measurement value. For example, this value may be '13'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The measurement value. For example, this value may be '13'. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php deleted file mode 100644 index 0e21c7cada03..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.admin.v1beta.AccessNumericFilter - */ -class AccessNumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - */ - protected $operation = 0; - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * The operation type for this filter. - * @type \Google\Analytics\Admin\V1beta\NumericValue $value - * A numeric value or a date value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessNumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; - * @return \Google\Analytics\Admin\V1beta\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.NumericValue value = 2; - * @param \Google\Analytics\Admin\V1beta\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php deleted file mode 100644 index bb570ffb41cd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessNumericFilter/Operation.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.admin.v1beta.AccessNumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; - */ - const LESS_THAN_OR_EQUAL = 3; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; - */ - const GREATER_THAN_OR_EQUAL = 5; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Admin\V1beta\AccessNumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php deleted file mode 100644 index 6170de42bfbb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy.php +++ /dev/null @@ -1,148 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy - */ -class AccessOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - */ - protected $desc = false; - protected $one_order_by; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy $metric - * Sorts results by a metric's values. - * @type \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy $dimension - * Sorts results by a dimension's values. - * @type bool $desc - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy|null - */ - public function getMetric() - { - return $this->readOneof(1); - } - - public function hasMetric() - { - return $this->hasOneof(1); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @param \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\MetricOrderBy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy|null - */ - public function getDimension() - { - return $this->readOneof(2); - } - - public function hasDimension() - { - return $this->hasOneof(2); - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @param \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @return bool - */ - public function getDesc() - { - return $this->desc; - } - - /** - * If true, sorts by descending order. If false or unspecified, sorts in - * ascending order. - * - * Generated from protobuf field bool desc = 3; - * @param bool $var - * @return $this - */ - public function setDesc($var) - { - GPBUtil::checkBool($var); - $this->desc = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneOrderBy() - { - return $this->whichOneof("one_order_by"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php deleted file mode 100644 index fbaf660231cc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy - */ -class DimensionOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - */ - protected $order_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * A dimension name in the request to order by. - * @type int $order_type - * Controls the rule for dimension value ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return int - */ - public function getOrderType() - { - return $this->order_type; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param int $var - * @return $this - */ - public function setOrderType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessOrderBy\DimensionOrderBy\OrderType::class); - $this->order_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionOrderBy::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_DimensionOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php deleted file mode 100644 index b0fbddbb0c0f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/DimensionOrderBy/OrderType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType - */ -class OrderType -{ - /** - * Unspecified. - * - * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; - */ - const ORDER_TYPE_UNSPECIFIED = 0; - /** - * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - * "b" < "z". - * - * Generated from protobuf enum ALPHANUMERIC = 1; - */ - const ALPHANUMERIC = 1; - /** - * Case insensitive alphanumeric sort by lower case Unicode code point. - * For example, "2" < "A" < "b" < "X" < "z". - * - * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - const CASE_INSENSITIVE_ALPHANUMERIC = 2; - /** - * Dimension values are converted to numbers before sorting. For example - * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - * "25". Non-numeric dimension values all have equal ordering value below - * all numeric values. - * - * Generated from protobuf enum NUMERIC = 3; - */ - const NUMERIC = 3; - - private static $valueToName = [ - self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', - self::ALPHANUMERIC => 'ALPHANUMERIC', - self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', - self::NUMERIC => 'NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderType::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_DimensionOrderBy_OrderType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php deleted file mode 100644 index 3129518dec2d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessOrderBy/MetricOrderBy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy - */ -class MetricOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * A metric name in the request to order by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricOrderBy::class, \Google\Analytics\Admin\V1beta\AccessOrderBy_MetricOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php deleted file mode 100644 index 6da0417338d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuota.php +++ /dev/null @@ -1,283 +0,0 @@ -google.analytics.admin.v1beta.AccessQuota - */ -class AccessQuota extends \Google\Protobuf\Internal\Message -{ - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - protected $tokens_per_day = null; - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - protected $tokens_per_hour = null; - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - protected $concurrent_requests = null; - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - protected $server_errors_per_project_per_hour = null; - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - protected $tokens_per_project_per_hour = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_day - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_hour - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $concurrent_requests - * Properties can use up to 50 concurrent requests. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $server_errors_per_project_per_hour - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * @type \Google\Analytics\Admin\V1beta\AccessQuotaStatus $tokens_per_project_per_hour - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getTokensPerDay() - { - return $this->tokens_per_day; - } - - public function hasTokensPerDay() - { - return isset($this->tokens_per_day); - } - - public function clearTokensPerDay() - { - unset($this->tokens_per_day); - } - - /** - * Properties can use 250,000 tokens per day. Most requests consume fewer than - * 10 tokens. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerDay($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->tokens_per_day = $var; - - return $this; - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getTokensPerHour() - { - return $this->tokens_per_hour; - } - - public function hasTokensPerHour() - { - return isset($this->tokens_per_hour); - } - - public function clearTokensPerHour() - { - unset($this->tokens_per_hour); - } - - /** - * Properties can use 50,000 tokens per hour. An API request consumes a single - * number of tokens, and that number is deducted from all of the hourly, - * daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->tokens_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getConcurrentRequests() - { - return $this->concurrent_requests; - } - - public function hasConcurrentRequests() - { - return isset($this->concurrent_requests); - } - - public function clearConcurrentRequests() - { - unset($this->concurrent_requests); - } - - /** - * Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setConcurrentRequests($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->concurrent_requests = $var; - - return $this; - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getServerErrorsPerProjectPerHour() - { - return $this->server_errors_per_project_per_hour; - } - - public function hasServerErrorsPerProjectPerHour() - { - return isset($this->server_errors_per_project_per_hour); - } - - public function clearServerErrorsPerProjectPerHour() - { - unset($this->server_errors_per_project_per_hour); - } - - /** - * Properties and cloud project pairs can have up to 50 server errors per - * hour. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setServerErrorsPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->server_errors_per_project_per_hour = $var; - - return $this; - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return \Google\Analytics\Admin\V1beta\AccessQuotaStatus|null - */ - public function getTokensPerProjectPerHour() - { - return $this->tokens_per_project_per_hour; - } - - public function hasTokensPerProjectPerHour() - { - return isset($this->tokens_per_project_per_hour); - } - - public function clearTokensPerProjectPerHour() - { - unset($this->tokens_per_project_per_hour); - } - - /** - * Properties can use up to 25% of their tokens per project per hour. This - * amounts to Analytics 360 Properties can use 12,500 tokens per project per - * hour. An API request consumes a single number of tokens, and that number is - * deducted from all of the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @param \Google\Analytics\Admin\V1beta\AccessQuotaStatus $var - * @return $this - */ - public function setTokensPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuotaStatus::class); - $this->tokens_per_project_per_hour = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php deleted file mode 100644 index 7b4a1d173763..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessQuotaStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.admin.v1beta.AccessQuotaStatus - */ -class AccessQuotaStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - */ - protected $consumed = 0; - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - */ - protected $remaining = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consumed - * Quota consumed by this request. - * @type int $remaining - * Quota remaining after this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @return int - */ - public function getConsumed() - { - return $this->consumed; - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @param int $var - * @return $this - */ - public function setConsumed($var) - { - GPBUtil::checkInt32($var); - $this->consumed = $var; - - return $this; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @return int - */ - public function getRemaining() - { - return $this->remaining; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @param int $var - * @return $this - */ - public function setRemaining($var) - { - GPBUtil::checkInt32($var); - $this->remaining = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php deleted file mode 100644 index 2f6666df4c04..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessRow.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.admin.v1beta.AccessRow - */ -class AccessRow extends \Google\Protobuf\Internal\Message -{ - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - private $dimension_values; - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - private $metric_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * List of dimension values. These values are in the same order as specified - * in the request. - * @type array<\Google\Analytics\Admin\V1beta\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values - * List of metric values. These values are in the same order as specified - * in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * List of dimension values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccessDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValues() - { - return $this->metric_values; - } - - /** - * List of metric values. These values are in the same order as specified - * in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - * @param array<\Google\Analytics\Admin\V1beta\AccessMetricValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetricValue::class); - $this->metric_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php deleted file mode 100644 index 0ccae2352c66..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.admin.v1beta.AccessStringFilter - */ -class AccessStringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - */ - protected $match_type = 0; - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * The match type for this filter. - * @type string $value - * The string value used for the matching. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\AccessStringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php deleted file mode 100644 index 1160ce4dab8a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccessStringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1beta.AccessStringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full match for the regular expression with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial match for the regular expression with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Admin\V1beta\AccessStringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php deleted file mode 100644 index 5425f6fae525..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Account.php +++ /dev/null @@ -1,311 +0,0 @@ -google.analytics.admin.v1beta.Account - */ -class Account extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - */ - protected $region_code = ''; - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deleted = false; - /** - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * - * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $gmp_organization = ''; - - /** - * 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. - * @type string $gmp_organization - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this account. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this account was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when account payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this account. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Country of business. Must be a Unicode CLDR region code. - * - * Generated from protobuf field string region_code = 5; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeleted() - { - return $this->deleted; - } - - /** - * Output only. Indicates whether this Account is soft-deleted or not. Deleted - * accounts are excluded from List results unless specifically requested. - * - * Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeleted($var) - { - GPBUtil::checkBool($var); - $this->deleted = $var; - - return $this; - } - - /** - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * - * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getGmpOrganization() - { - return $this->gmp_organization; - } - - /** - * Output only. The URI for a Google Marketing Platform organization resource. - * Only set when this account is connected to a GMP organization. - * Format: marketingplatformadmin.googleapis.com/organizations/{org_id} - * - * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setGmpOrganization($var) - { - GPBUtil::checkString($var, True); - $this->gmp_organization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php deleted file mode 100644 index 39f4d4f56c00..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AccountSummary.php +++ /dev/null @@ -1,186 +0,0 @@ -google.analytics.admin.v1beta.AccountSummary - */ -class AccountSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - */ - protected $account = ''; - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - private $property_summaries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * @type string $account - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * @type string $display_name - * Display name for the account referred to in this account summary. - * @type array<\Google\Analytics\Admin\V1beta\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $property_summaries - * List of summaries for child accounts of this account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for this account summary. - * Format: accountSummaries/{account_id} - * Example: "accountSummaries/1000" - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Resource name of account referred to by this account summary - * Format: accounts/{account_id} - * Example: "accounts/1000" - * - * Generated from protobuf field string account = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the account referred to in this account summary. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPropertySummaries() - { - return $this->property_summaries; - } - - /** - * List of summaries for child accounts of this account. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - * @param array<\Google\Analytics\Admin\V1beta\PropertySummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPropertySummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\PropertySummary::class); - $this->property_summaries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php deleted file mode 100644 index 0b2c9d56ae7f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest - */ -class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $acknowledgement = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Required. The property for which to acknowledge user data collection. - * @type string $acknowledgement - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Required. The property for which to acknowledge user data collection. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAcknowledgement() - { - return $this->acknowledgement; - } - - /** - * Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * - * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAcknowledgement($var) - { - GPBUtil::checkString($var, True); - $this->acknowledgement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php deleted file mode 100644 index b8ff0399f227..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/AcknowledgeUserDataCollectionResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse - */ -class AcknowledgeUserDataCollectionResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php deleted file mode 100644 index 5001ae077d5e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActionType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1beta.ActionType - */ -class ActionType -{ - /** - * Action type unknown or not specified. - * - * Generated from protobuf enum ACTION_TYPE_UNSPECIFIED = 0; - */ - const ACTION_TYPE_UNSPECIFIED = 0; - /** - * Resource was created in this change. - * - * Generated from protobuf enum CREATED = 1; - */ - const CREATED = 1; - /** - * Resource was updated in this change. - * - * Generated from protobuf enum UPDATED = 2; - */ - const UPDATED = 2; - /** - * Resource was deleted in this change. - * - * Generated from protobuf enum DELETED = 3; - */ - const DELETED = 3; - - private static $valueToName = [ - self::ACTION_TYPE_UNSPECIFIED => 'ACTION_TYPE_UNSPECIFIED', - self::CREATED => 'CREATED', - self::UPDATED => 'UPDATED', - self::DELETED => 'DELETED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php deleted file mode 100644 index 0e897307b8c9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ActorType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.analytics.admin.v1beta.ActorType - */ -class ActorType -{ - /** - * Unknown or unspecified actor type. - * - * Generated from protobuf enum ACTOR_TYPE_UNSPECIFIED = 0; - */ - const ACTOR_TYPE_UNSPECIFIED = 0; - /** - * Changes made by the user specified in actor_email. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * Changes made by the Google Analytics system. - * - * Generated from protobuf enum SYSTEM = 2; - */ - const SYSTEM = 2; - /** - * Changes made by Google Analytics support team staff. - * - * Generated from protobuf enum SUPPORT = 3; - */ - const SUPPORT = 3; - - private static $valueToName = [ - self::ACTOR_TYPE_UNSPECIFIED => 'ACTOR_TYPE_UNSPECIFIED', - self::USER => 'USER', - self::SYSTEM => 'SYSTEM', - self::SUPPORT => 'SUPPORT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php deleted file mode 100644 index 2384859824e2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomDimensionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.ArchiveCustomDimensionRequest - */ -class ArchiveCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ArchiveCustomDimensionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php deleted file mode 100644 index 00ad8f6cbc3a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ArchiveCustomMetricRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.ArchiveCustomMetricRequest - */ -class ArchiveCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ArchiveCustomMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php deleted file mode 100644 index 980584249c8c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange.php +++ /dev/null @@ -1,197 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryChange - */ -class ChangeHistoryChange extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - */ - protected $resource = ''; - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; - */ - protected $action = 0; - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - protected $resource_before_change = null; - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - protected $resource_after_change = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Resource name of the resource whose changes are described by this entry. - * @type int $action - * The type of action that changed this resource. - * @type \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $resource_before_change - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * @type \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $resource_after_change - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Resource name of the resource whose changes are described by this entry. - * - * Generated from protobuf field string resource = 1; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The type of action that changed this resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActionType action = 2; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ActionType::class); - $this->action = $var; - - return $this; - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceBeforeChange() - { - return $this->resource_before_change; - } - - public function hasResourceBeforeChange() - { - return isset($this->resource_before_change); - } - - public function clearResourceBeforeChange() - { - unset($this->resource_before_change); - } - - /** - * Resource contents from before the change was made. If this resource was - * created in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @param \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceBeforeChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_before_change = $var; - - return $this; - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource|null - */ - public function getResourceAfterChange() - { - return $this->resource_after_change; - } - - public function hasResourceAfterChange() - { - return isset($this->resource_after_change); - } - - public function clearResourceAfterChange() - { - unset($this->resource_after_change); - } - - /** - * Resource contents from after the change was made. If this resource was - * deleted in this change, this field will be missing. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @param \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource $var - * @return $this - */ - public function setResourceAfterChange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ChangeHistoryChange\ChangeHistoryResource::class); - $this->resource_after_change = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php deleted file mode 100644 index 19765fee14c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryChange/ChangeHistoryResource.php +++ /dev/null @@ -1,310 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource - */ -class ChangeHistoryResource extends \Google\Protobuf\Internal\Message -{ - protected $resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Account $account - * A snapshot of an Account resource in change history. - * @type \Google\Analytics\Admin\V1beta\Property $property - * A snapshot of a Property resource in change history. - * @type \Google\Analytics\Admin\V1beta\FirebaseLink $firebase_link - * A snapshot of a FirebaseLink resource in change history. - * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link - * A snapshot of a GoogleAdsLink resource in change history. - * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event - * A snapshot of a ConversionEvent resource in change history. - * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret - * A snapshot of a MeasurementProtocolSecret resource in change history. - * @type \Google\Analytics\Admin\V1beta\DataRetentionSettings $data_retention_settings - * A snapshot of a data retention settings resource in change history. - * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream - * A snapshot of a DataStream resource in change history. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @return \Google\Analytics\Admin\V1beta\Account|null - */ - public function getAccount() - { - return $this->readOneof(1); - } - - public function hasAccount() - { - return $this->hasOneof(1); - } - - /** - * A snapshot of an Account resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @param \Google\Analytics\Admin\V1beta\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 2; - * @return \Google\Analytics\Admin\V1beta\Property|null - */ - public function getProperty() - { - return $this->readOneof(2); - } - - public function hasProperty() - { - return $this->hasOneof(2); - } - - /** - * A snapshot of a Property resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 2; - * @param \Google\Analytics\Admin\V1beta\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return \Google\Analytics\Admin\V1beta\FirebaseLink|null - */ - public function getFirebaseLink() - { - return $this->readOneof(6); - } - - public function hasFirebaseLink() - { - return $this->hasOneof(6); - } - - /** - * A snapshot of a FirebaseLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @param \Google\Analytics\Admin\V1beta\FirebaseLink $var - * @return $this - */ - public function setFirebaseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\FirebaseLink::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->readOneof(7); - } - - public function hasGoogleAdsLink() - { - return $this->hasOneof(7); - } - - /** - * A snapshot of a GoogleAdsLink resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->readOneof(11); - } - - public function hasConversionEvent() - { - return $this->hasOneof(11); - } - - /** - * A snapshot of a ConversionEvent resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->readOneof(12); - } - - public function hasMeasurementProtocolSecret() - { - return $this->hasOneof(12); - } - - /** - * A snapshot of a MeasurementProtocolSecret resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->readOneof(15); - } - - public function hasDataRetentionSettings() - { - return $this->hasOneof(15); - } - - /** - * A snapshot of a data retention settings resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return \Google\Analytics\Admin\V1beta\DataStream|null - */ - public function getDataStream() - { - return $this->readOneof(18); - } - - public function hasDataStream() - { - return $this->hasOneof(18); - } - - /** - * A snapshot of a DataStream resource in change history. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @param \Google\Analytics\Admin\V1beta\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * @return string - */ - public function getResource() - { - return $this->whichOneof("resource"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChangeHistoryResource::class, \Google\Analytics\Admin\V1beta\ChangeHistoryChange_ChangeHistoryResource::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php deleted file mode 100644 index 92d007549c95..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryEvent.php +++ /dev/null @@ -1,266 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryEvent - */ -class ChangeHistoryEvent extends \Google\Protobuf\Internal\Message -{ - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - */ - protected $change_time = null; - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; - */ - protected $actor_type = 0; - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - */ - protected $user_actor_email = ''; - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - */ - protected $changes_filtered = false; - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - private $changes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of this change history event. This ID is unique across Google Analytics. - * @type \Google\Protobuf\Timestamp $change_time - * Time when change was made. - * @type int $actor_type - * The type of actor that made this change. - * @type string $user_actor_email - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * @type bool $changes_filtered - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * @type array<\Google\Analytics\Admin\V1beta\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $changes - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of this change history event. This ID is unique across Google Analytics. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getChangeTime() - { - return $this->change_time; - } - - public function hasChangeTime() - { - return isset($this->change_time); - } - - public function clearChangeTime() - { - unset($this->change_time); - } - - /** - * Time when change was made. - * - * Generated from protobuf field .google.protobuf.Timestamp change_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->change_time = $var; - - return $this; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return int - */ - public function getActorType() - { - return $this->actor_type; - } - - /** - * The type of actor that made this change. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @param int $var - * @return $this - */ - public function setActorType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ActorType::class); - $this->actor_type = $var; - - return $this; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @return string - */ - public function getUserActorEmail() - { - return $this->user_actor_email; - } - - /** - * Email address of the Google account that made the change. This will be a - * valid email address if the actor field is set to USER, and empty otherwise. - * Google accounts that have been deleted will cause an error. - * - * Generated from protobuf field string user_actor_email = 4; - * @param string $var - * @return $this - */ - public function setUserActorEmail($var) - { - GPBUtil::checkString($var, True); - $this->user_actor_email = $var; - - return $this; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @return bool - */ - public function getChangesFiltered() - { - return $this->changes_filtered; - } - - /** - * If true, then the list of changes returned was filtered, and does not - * represent all changes that occurred in this event. - * - * Generated from protobuf field bool changes_filtered = 5; - * @param bool $var - * @return $this - */ - public function setChangesFiltered($var) - { - GPBUtil::checkBool($var); - $this->changes_filtered = $var; - - return $this; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChanges() - { - return $this->changes; - } - - /** - * A list of changes made in this change history event that fit the filters - * specified in SearchChangeHistoryEventsRequest. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - * @param array<\Google\Analytics\Admin\V1beta\ChangeHistoryChange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ChangeHistoryChange::class); - $this->changes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php deleted file mode 100644 index f592887925dc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ChangeHistoryResourceType.php +++ /dev/null @@ -1,131 +0,0 @@ -google.analytics.admin.v1beta.ChangeHistoryResourceType - */ -class ChangeHistoryResourceType -{ - /** - * Resource type unknown or not specified. - * - * Generated from protobuf enum CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Account resource - * - * Generated from protobuf enum ACCOUNT = 1; - */ - const ACCOUNT = 1; - /** - * Property resource - * - * Generated from protobuf enum PROPERTY = 2; - */ - const PROPERTY = 2; - /** - * FirebaseLink resource - * - * Generated from protobuf enum FIREBASE_LINK = 6; - */ - const FIREBASE_LINK = 6; - /** - * GoogleAdsLink resource - * - * Generated from protobuf enum GOOGLE_ADS_LINK = 7; - */ - const GOOGLE_ADS_LINK = 7; - /** - * GoogleSignalsSettings resource - * - * Generated from protobuf enum GOOGLE_SIGNALS_SETTINGS = 8; - */ - const GOOGLE_SIGNALS_SETTINGS = 8; - /** - * ConversionEvent resource - * - * Generated from protobuf enum CONVERSION_EVENT = 9; - */ - const CONVERSION_EVENT = 9; - /** - * MeasurementProtocolSecret resource - * - * Generated from protobuf enum MEASUREMENT_PROTOCOL_SECRET = 10; - */ - const MEASUREMENT_PROTOCOL_SECRET = 10; - /** - * DataRetentionSettings resource - * - * Generated from protobuf enum DATA_RETENTION_SETTINGS = 13; - */ - const DATA_RETENTION_SETTINGS = 13; - /** - * DisplayVideo360AdvertiserLink resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - /** - * DisplayVideo360AdvertiserLinkProposal resource - * - * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - /** - * DataStream resource - * - * Generated from protobuf enum DATA_STREAM = 18; - */ - const DATA_STREAM = 18; - /** - * AttributionSettings resource - * - * Generated from protobuf enum ATTRIBUTION_SETTINGS = 20; - */ - const ATTRIBUTION_SETTINGS = 20; - - private static $valueToName = [ - self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED', - self::ACCOUNT => 'ACCOUNT', - self::PROPERTY => 'PROPERTY', - self::FIREBASE_LINK => 'FIREBASE_LINK', - self::GOOGLE_ADS_LINK => 'GOOGLE_ADS_LINK', - self::GOOGLE_SIGNALS_SETTINGS => 'GOOGLE_SIGNALS_SETTINGS', - self::CONVERSION_EVENT => 'CONVERSION_EVENT', - self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET', - self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK', - self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL', - self::DATA_STREAM => 'DATA_STREAM', - self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php deleted file mode 100644 index 5574fa488333..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent.php +++ /dev/null @@ -1,331 +0,0 @@ -google.analytics.admin.v1beta.ConversionEvent - */ -class ConversionEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $event_name = ''; - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletable = false; - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = false; - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $counting_method = 0; - /** - * Optional. Defines a default value/currency for a conversion event. - * - * Generated from protobuf field optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_conversion_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * @type string $event_name - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this conversion event was created in the property. - * @type bool $deletable - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * @type bool $custom - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * @type int $counting_method - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * @type \Google\Analytics\Admin\V1beta\ConversionEvent\DefaultConversionValue $default_conversion_value - * Optional. Defines a default value/currency for a conversion event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this conversion event. - * Format: properties/{property}/conversionEvents/{conversion_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEventName() - { - return $this->event_name; - } - - /** - * Immutable. The event name for this conversion event. - * Examples: 'click', 'purchase' - * - * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this conversion event was created in the property. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeletable() - { - return $this->deletable; - } - - /** - * Output only. If set, this event can currently be deleted with - * DeleteConversionEvent. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeletable($var) - { - GPBUtil::checkBool($var); - $this->deletable = $var; - - return $this; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCustom() - { - return $this->custom; - } - - /** - * Output only. If set to true, this conversion event refers to a custom - * event. If set to false, this conversion event refers to a default event in - * GA. Default events typically have special meaning in GA. Default events are - * usually created for you by the GA system, but in some cases can be created - * by property admins. Custom events count towards the maximum number of - * custom conversion events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkBool($var); - $this->custom = $var; - - return $this; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCountingMethod() - { - return $this->counting_method; - } - - /** - * Optional. The method by which conversions will be counted across multiple - * events within a session. If this value is not provided, it will be set to - * `ONCE_PER_EVENT`. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCountingMethod($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ConversionEvent\ConversionCountingMethod::class); - $this->counting_method = $var; - - return $this; - } - - /** - * Optional. Defines a default value/currency for a conversion event. - * - * Generated from protobuf field optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1beta\ConversionEvent\DefaultConversionValue|null - */ - public function getDefaultConversionValue() - { - return $this->default_conversion_value; - } - - public function hasDefaultConversionValue() - { - return isset($this->default_conversion_value); - } - - public function clearDefaultConversionValue() - { - unset($this->default_conversion_value); - } - - /** - * Optional. Defines a default value/currency for a conversion event. - * - * Generated from protobuf field optional .google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1beta\ConversionEvent\DefaultConversionValue $var - * @return $this - */ - public function setDefaultConversionValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent\DefaultConversionValue::class); - $this->default_conversion_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php deleted file mode 100644 index 85ec17148b20..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/ConversionCountingMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod - */ -class ConversionCountingMethod -{ - /** - * Counting method not specified. - * - * Generated from protobuf enum CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - const CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - /** - * Each Event instance is considered a Conversion. - * - * Generated from protobuf enum ONCE_PER_EVENT = 1; - */ - const ONCE_PER_EVENT = 1; - /** - * An Event instance is considered a Conversion at most once per session per - * user. - * - * Generated from protobuf enum ONCE_PER_SESSION = 2; - */ - const ONCE_PER_SESSION = 2; - - private static $valueToName = [ - self::CONVERSION_COUNTING_METHOD_UNSPECIFIED => 'CONVERSION_COUNTING_METHOD_UNSPECIFIED', - self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', - self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConversionCountingMethod::class, \Google\Analytics\Admin\V1beta\ConversionEvent_ConversionCountingMethod::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/DefaultConversionValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/DefaultConversionValue.php deleted file mode 100644 index 326046e262ca..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ConversionEvent/DefaultConversionValue.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1beta.ConversionEvent.DefaultConversionValue - */ -class DefaultConversionValue extends \Google\Protobuf\Internal\Message -{ - /** - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * - * Generated from protobuf field optional double value = 1; - */ - protected $value = null; - /** - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * - * Generated from protobuf field optional string currency_code = 2; - */ - protected $currency_code = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $value - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * @type string $currency_code - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * - * Generated from protobuf field optional double value = 1; - * @return float - */ - public function getValue() - { - return isset($this->value) ? $this->value : 0.0; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * This value will be used to populate the value for all conversions - * of the specified event_name where the event "value" parameter is unset. - * - * Generated from protobuf field optional double value = 1; - * @param float $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkDouble($var); - $this->value = $var; - - return $this; - } - - /** - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * - * Generated from protobuf field optional string currency_code = 2; - * @return string - */ - public function getCurrencyCode() - { - return isset($this->currency_code) ? $this->currency_code : ''; - } - - public function hasCurrencyCode() - { - return isset($this->currency_code); - } - - public function clearCurrencyCode() - { - unset($this->currency_code); - } - - /** - * When a conversion event for this event_name has no set currency, - * this currency will be applied as the default. Must be in ISO 4217 - * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - * more information. - * - * Generated from protobuf field optional string currency_code = 2; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DefaultConversionValue::class, \Google\Analytics\Admin\V1beta\ConversionEvent_DefaultConversionValue::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php deleted file mode 100644 index 8831edba86d8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateConversionEventRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1beta.CreateConversionEventRequest - */ -class CreateConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversion_event = null; - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * @param string $parent Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent Required. The conversion event to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateConversionEventRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent): self - { - return (new self()) - ->setParent($parent) - ->setConversionEvent($conversionEvent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event - * Required. The conversion event to create. - * @type string $parent - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->conversion_event; - } - - public function hasConversionEvent() - { - return isset($this->conversion_event); - } - - public function clearConversionEvent() - { - unset($this->conversion_event); - } - - /** - * Required. The conversion event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->conversion_event = $var; - - return $this; - } - - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php deleted file mode 100644 index fa4ccec2cac8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomDimensionRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateCustomDimensionRequest - */ -class CreateCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_dimension = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\CustomDimension $customDimension Required. The CustomDimension to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateCustomDimensionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\CustomDimension $customDimension): self - { - return (new self()) - ->setParent($parent) - ->setCustomDimension($customDimension); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\CustomDimension $custom_dimension - * Required. The CustomDimension to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->custom_dimension; - } - - public function hasCustomDimension() - { - return isset($this->custom_dimension); - } - - public function clearCustomDimension() - { - unset($this->custom_dimension); - } - - /** - * Required. The CustomDimension to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomDimension::class); - $this->custom_dimension = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php deleted file mode 100644 index 9b5fb5068313..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateCustomMetricRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateCustomMetricRequest - */ -class CreateCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_metric = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\CustomMetric $customMetric Required. The CustomMetric to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateCustomMetricRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\CustomMetric $customMetric): self - { - return (new self()) - ->setParent($parent) - ->setCustomMetric($customMetric); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\CustomMetric $custom_metric - * Required. The CustomMetric to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * Required. The CustomMetric to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php deleted file mode 100644 index 23be6af917a9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateDataStreamRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateDataStreamRequest - */ -class CreateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_stream = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\DataStream $dataStream Required. The DataStream to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateDataStreamRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\DataStream $dataStream): self - { - return (new self()) - ->setParent($parent) - ->setDataStream($dataStream); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream - * Required. The DataStream to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * Required. The DataStream to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->data_stream = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php deleted file mode 100644 index 7a697f7de13f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateFirebaseLinkRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.admin.v1beta.CreateFirebaseLinkRequest - */ -class CreateFirebaseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $firebase_link = null; - - /** - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\FirebaseLink $firebaseLink Required. The Firebase link to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateFirebaseLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\FirebaseLink $firebaseLink): self - { - return (new self()) - ->setParent($parent) - ->setFirebaseLink($firebaseLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * @type \Google\Analytics\Admin\V1beta\FirebaseLink $firebase_link - * Required. The Firebase link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\FirebaseLink|null - */ - public function getFirebaseLink() - { - return $this->firebase_link; - } - - public function hasFirebaseLink() - { - return isset($this->firebase_link); - } - - public function clearFirebaseLink() - { - unset($this->firebase_link); - } - - /** - * Required. The Firebase link to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\FirebaseLink $var - * @return $this - */ - public function setFirebaseLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\FirebaseLink::class); - $this->firebase_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php deleted file mode 100644 index ec369830145e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest - */ -class CreateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_ads_link = null; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink): self - { - return (new self()) - ->setParent($parent) - ->setGoogleAdsLink($googleAdsLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link - * Required. The GoogleAdsLink to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->google_ads_link; - } - - public function hasGoogleAdsLink() - { - return isset($this->google_ads_link); - } - - public function clearGoogleAdsLink() - { - unset($this->google_ads_link); - } - - /** - * Required. The GoogleAdsLink to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->google_ads_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateKeyEventRequest.php deleted file mode 100644 index 91c9ec7685be..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateKeyEventRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1beta.CreateKeyEventRequest - */ -class CreateKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Key Event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_event = null; - /** - * Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * @param string $parent Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\KeyEvent $keyEvent Required. The Key Event to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateKeyEventRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\KeyEvent $keyEvent): self - { - return (new self()) - ->setParent($parent) - ->setKeyEvent($keyEvent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\KeyEvent $key_event - * Required. The Key Event to create. - * @type string $parent - * Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Key Event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\KeyEvent|null - */ - public function getKeyEvent() - { - return $this->key_event; - } - - public function hasKeyEvent() - { - return isset($this->key_event); - } - - public function clearKeyEvent() - { - unset($this->key_event); - } - - /** - * Required. The Key Event to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\KeyEvent $var - * @return $this - */ - public function setKeyEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\KeyEvent::class); - $this->key_event = $var; - - return $this; - } - - /** - * Required. The resource name of the parent property where this Key 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 Key Event - * will be created. Format: properties/123 - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php deleted file mode 100644 index d0df248fba28..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest - */ -class CreateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - - /** - * @param string $parent Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. - * - * @return \Google\Analytics\Admin\V1beta\CreateMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret): self - { - return (new self()) - ->setParent($parent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php deleted file mode 100644 index 0d7a9402770c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CreatePropertyRequest.php +++ /dev/null @@ -1,95 +0,0 @@ -google.analytics.admin.v1beta.CreatePropertyRequest - */ -class CreatePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = null; - - /** - * @param \Google\Analytics\Admin\V1beta\Property $property Required. The property to create. - * Note: the supplied property must specify its parent. - * - * @return \Google\Analytics\Admin\V1beta\CreatePropertyRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\Property $property): self - { - return (new self()) - ->setProperty($property); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Property $property - * Required. The property to create. - * Note: the supplied property must specify its parent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to create. - * Note: the supplied property must specify its parent. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php deleted file mode 100644 index 6d82579f7027..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension.php +++ /dev/null @@ -1,301 +0,0 @@ -google.analytics.admin.v1beta.CustomDimension - */ -class CustomDimension extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disallow_ads_personalization = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * @type string $parameter_name - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * @type string $display_name - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * @type int $scope - * Required. Immutable. The scope of this dimension. - * @type bool $disallow_ads_personalization - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomDimension resource. - * Format: properties/{property}/customDimensions/{customDimension} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging parameter name for this custom dimension. - * If this is a user-scoped dimension, then this is the user property name. - * If this is an event-scoped dimension, then this is the event parameter - * name. - * If this is an item-scoped dimension, then this is the parameter - * name found in the eCommerce items array. - * May only contain alphanumeric and underscore characters, starting with a - * letter. Max length of 24 characters for user-scoped dimensions, 40 - * characters for event-scoped dimensions. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom dimension as shown in the Analytics - * UI. Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. Max length of 150 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this dimension. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomDimension\DimensionScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisallowAdsPersonalization() - { - return $this->disallow_ads_personalization; - } - - /** - * Optional. If set to true, sets this dimension as NPA and excludes it from - * ads personalization. - * This is currently only supported by user-scoped custom dimensions. - * - * Generated from protobuf field bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisallowAdsPersonalization($var) - { - GPBUtil::checkBool($var); - $this->disallow_ads_personalization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php deleted file mode 100644 index 888ee1bbef8d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomDimension/DimensionScope.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1beta.CustomDimension.DimensionScope - */ -class DimensionScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - const DIMENSION_SCOPE_UNSPECIFIED = 0; - /** - * Dimension scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - /** - * Dimension scoped to a user. - * - * Generated from protobuf enum USER = 2; - */ - const USER = 2; - /** - * Dimension scoped to eCommerce items - * - * Generated from protobuf enum ITEM = 3; - */ - const ITEM = 3; - - private static $valueToName = [ - self::DIMENSION_SCOPE_UNSPECIFIED => 'DIMENSION_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - self::USER => 'USER', - self::ITEM => 'ITEM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionScope::class, \Google\Analytics\Admin\V1beta\CustomDimension_DimensionScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php deleted file mode 100644 index d786eb4a8ca0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric.php +++ /dev/null @@ -1,319 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric - */ -class CustomMetric extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parameter_name = ''; - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_unit = 0; - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = 0; - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $restricted_metric_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * @type string $parameter_name - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * @type string $display_name - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * @type string $description - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * @type int $measurement_unit - * Required. The type for the custom metric's value. - * @type int $scope - * Required. Immutable. The scope of this custom metric. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this CustomMetric resource. - * Format: properties/{property}/customMetrics/{customMetric} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParameterName() - { - return $this->parameter_name; - } - - /** - * Required. Immutable. Tagging name for this custom metric. - * If this is an event-scoped metric, then this is the event parameter - * name. - * May only contain alphanumeric and underscore charactes, starting with a - * letter. Max length of 40 characters for event-scoped metrics. - * - * Generated from protobuf field string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParameterName($var) - { - GPBUtil::checkString($var, True); - $this->parameter_name = $var; - - return $this; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name for this custom metric as shown in the Analytics UI. - * Max length of 82 characters, alphanumeric plus space and underscore - * starting with a letter. Legacy system-generated display names may contain - * square brackets, but updates to this field will never permit square - * brackets. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for this custom dimension. - * Max length of 150 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMeasurementUnit() - { - return $this->measurement_unit; - } - - /** - * Required. The type for the custom metric's value. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMeasurementUnit($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomMetric\MeasurementUnit::class); - $this->measurement_unit = $var; - - return $this; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Immutable. The scope of this custom metric. - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\CustomMetric\MetricScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricType() - { - return $this->restricted_metric_type; - } - - /** - * Optional. Types of restricted data that this metric may contain. Required - * for metrics with CURRENCY measurement unit. Must be empty for metrics with - * a non-CURRENCY measurement unit. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\CustomMetric\RestrictedMetricType::class); - $this->restricted_metric_type = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php deleted file mode 100644 index 1a36e23078f2..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MeasurementUnit.php +++ /dev/null @@ -1,122 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric.MeasurementUnit - */ -class MeasurementUnit -{ - /** - * MeasurementUnit unspecified or missing. - * - * Generated from protobuf enum MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - const MEASUREMENT_UNIT_UNSPECIFIED = 0; - /** - * This metric uses default units. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * This metric measures a currency. - * - * Generated from protobuf enum CURRENCY = 2; - */ - const CURRENCY = 2; - /** - * This metric measures feet. - * - * Generated from protobuf enum FEET = 3; - */ - const FEET = 3; - /** - * This metric measures meters. - * - * Generated from protobuf enum METERS = 4; - */ - const METERS = 4; - /** - * This metric measures kilometers. - * - * Generated from protobuf enum KILOMETERS = 5; - */ - const KILOMETERS = 5; - /** - * This metric measures miles. - * - * Generated from protobuf enum MILES = 6; - */ - const MILES = 6; - /** - * This metric measures milliseconds. - * - * Generated from protobuf enum MILLISECONDS = 7; - */ - const MILLISECONDS = 7; - /** - * This metric measures seconds. - * - * Generated from protobuf enum SECONDS = 8; - */ - const SECONDS = 8; - /** - * This metric measures minutes. - * - * Generated from protobuf enum MINUTES = 9; - */ - const MINUTES = 9; - /** - * This metric measures hours. - * - * Generated from protobuf enum HOURS = 10; - */ - const HOURS = 10; - - private static $valueToName = [ - self::MEASUREMENT_UNIT_UNSPECIFIED => 'MEASUREMENT_UNIT_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::CURRENCY => 'CURRENCY', - self::FEET => 'FEET', - self::METERS => 'METERS', - self::KILOMETERS => 'KILOMETERS', - self::MILES => 'MILES', - self::MILLISECONDS => 'MILLISECONDS', - self::SECONDS => 'SECONDS', - self::MINUTES => 'MINUTES', - self::HOURS => 'HOURS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MeasurementUnit::class, \Google\Analytics\Admin\V1beta\CustomMetric_MeasurementUnit::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php deleted file mode 100644 index 4ddabfcd63ec..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/MetricScope.php +++ /dev/null @@ -1,57 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric.MetricScope - */ -class MetricScope -{ - /** - * Scope unknown or not specified. - * - * Generated from protobuf enum METRIC_SCOPE_UNSPECIFIED = 0; - */ - const METRIC_SCOPE_UNSPECIFIED = 0; - /** - * Metric scoped to an event. - * - * Generated from protobuf enum EVENT = 1; - */ - const EVENT = 1; - - private static $valueToName = [ - self::METRIC_SCOPE_UNSPECIFIED => 'METRIC_SCOPE_UNSPECIFIED', - self::EVENT => 'EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricScope::class, \Google\Analytics\Admin\V1beta\CustomMetric_MetricScope::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php deleted file mode 100644 index 7736c4df629b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/CustomMetric/RestrictedMetricType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Type unknown or unspecified. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Metric reports cost data. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Metric reports revenue data. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestrictedMetricType::class, \Google\Analytics\Admin\V1beta\CustomMetric_RestrictedMetricType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php deleted file mode 100644 index f159622c5654..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings.php +++ /dev/null @@ -1,143 +0,0 @@ -google.analytics.admin.v1beta.DataRetentionSettings - */ -class DataRetentionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - */ - protected $event_data_retention = 0; - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - */ - protected $reset_user_data_on_new_activity = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * @type int $event_data_retention - * The length of time that event-level data is retained. - * @type bool $reset_user_data_on_new_activity - * If true, reset the retention period for the user identifier with every - * event from that user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name for this DataRetentionSetting resource. - * Format: properties/{property}/dataRetentionSettings - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return int - */ - public function getEventDataRetention() - { - return $this->event_data_retention; - } - - /** - * The length of time that event-level data is retained. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param int $var - * @return $this - */ - public function setEventDataRetention($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings\RetentionDuration::class); - $this->event_data_retention = $var; - - return $this; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @return bool - */ - public function getResetUserDataOnNewActivity() - { - return $this->reset_user_data_on_new_activity; - } - - /** - * If true, reset the retention period for the user identifier with every - * event from that user. - * - * Generated from protobuf field bool reset_user_data_on_new_activity = 3; - * @param bool $var - * @return $this - */ - public function setResetUserDataOnNewActivity($var) - { - GPBUtil::checkBool($var); - $this->reset_user_data_on_new_activity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php deleted file mode 100644 index 11632b79f46a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataRetentionSettings/RetentionDuration.php +++ /dev/null @@ -1,88 +0,0 @@ -google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration - */ -class RetentionDuration -{ - /** - * Data retention time duration is not specified. - * - * Generated from protobuf enum RETENTION_DURATION_UNSPECIFIED = 0; - */ - const RETENTION_DURATION_UNSPECIFIED = 0; - /** - * The data retention time duration is 2 months. - * - * Generated from protobuf enum TWO_MONTHS = 1; - */ - const TWO_MONTHS = 1; - /** - * The data retention time duration is 14 months. - * - * Generated from protobuf enum FOURTEEN_MONTHS = 3; - */ - const FOURTEEN_MONTHS = 3; - /** - * The data retention time duration is 26 months. - * Available to 360 properties only. - * - * Generated from protobuf enum TWENTY_SIX_MONTHS = 4; - */ - const TWENTY_SIX_MONTHS = 4; - /** - * The data retention time duration is 38 months. - * Available to 360 properties only. - * - * Generated from protobuf enum THIRTY_EIGHT_MONTHS = 5; - */ - const THIRTY_EIGHT_MONTHS = 5; - /** - * The data retention time duration is 50 months. - * Available to 360 properties only. - * - * Generated from protobuf enum FIFTY_MONTHS = 6; - */ - const FIFTY_MONTHS = 6; - - private static $valueToName = [ - self::RETENTION_DURATION_UNSPECIFIED => 'RETENTION_DURATION_UNSPECIFIED', - self::TWO_MONTHS => 'TWO_MONTHS', - self::FOURTEEN_MONTHS => 'FOURTEEN_MONTHS', - self::TWENTY_SIX_MONTHS => 'TWENTY_SIX_MONTHS', - self::THIRTY_EIGHT_MONTHS => 'THIRTY_EIGHT_MONTHS', - self::FIFTY_MONTHS => 'FIFTY_MONTHS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RetentionDuration::class, \Google\Analytics\Admin\V1beta\DataRetentionSettings_RetentionDuration::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php deleted file mode 100644 index 10a5a4775e93..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataSharingSettings.php +++ /dev/null @@ -1,262 +0,0 @@ -google.analytics.admin.v1beta.DataSharingSettings - */ -class DataSharingSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - */ - protected $sharing_with_google_support_enabled = false; - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - */ - protected $sharing_with_google_assigned_sales_enabled = false; - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - */ - protected $sharing_with_google_any_sales_enabled = false; - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - */ - protected $sharing_with_google_products_enabled = false; - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - */ - protected $sharing_with_others_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * @type bool $sharing_with_google_support_enabled - * Allows Google support to access the data in order to help troubleshoot - * issues. - * @type bool $sharing_with_google_assigned_sales_enabled - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * @type bool $sharing_with_google_any_sales_enabled - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * @type bool $sharing_with_google_products_enabled - * Allows Google to use the data to improve other Google products or services. - * @type bool $sharing_with_others_enabled - * Allows Google to share the data anonymously in aggregate form with others. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name. - * Format: accounts/{account}/dataSharingSettings - * Example: "accounts/1000/dataSharingSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @return bool - */ - public function getSharingWithGoogleSupportEnabled() - { - return $this->sharing_with_google_support_enabled; - } - - /** - * Allows Google support to access the data in order to help troubleshoot - * issues. - * - * Generated from protobuf field bool sharing_with_google_support_enabled = 2; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleSupportEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_support_enabled = $var; - - return $this; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @return bool - */ - public function getSharingWithGoogleAssignedSalesEnabled() - { - return $this->sharing_with_google_assigned_sales_enabled; - } - - /** - * Allows Google sales teams that are assigned to the customer to access the - * data in order to suggest configuration changes to improve results. - * Sales team restrictions still apply when enabled. - * - * Generated from protobuf field bool sharing_with_google_assigned_sales_enabled = 3; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAssignedSalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_assigned_sales_enabled = $var; - - return $this; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @return bool - */ - public function getSharingWithGoogleAnySalesEnabled() - { - return $this->sharing_with_google_any_sales_enabled; - } - - /** - * Allows any of Google sales to access the data in order to suggest - * configuration changes to improve results. - * - * Generated from protobuf field bool sharing_with_google_any_sales_enabled = 4; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleAnySalesEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_any_sales_enabled = $var; - - return $this; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @return bool - */ - public function getSharingWithGoogleProductsEnabled() - { - return $this->sharing_with_google_products_enabled; - } - - /** - * Allows Google to use the data to improve other Google products or services. - * - * Generated from protobuf field bool sharing_with_google_products_enabled = 5; - * @param bool $var - * @return $this - */ - public function setSharingWithGoogleProductsEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_google_products_enabled = $var; - - return $this; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @return bool - */ - public function getSharingWithOthersEnabled() - { - return $this->sharing_with_others_enabled; - } - - /** - * Allows Google to share the data anonymously in aggregate form with others. - * - * Generated from protobuf field bool sharing_with_others_enabled = 6; - * @param bool $var - * @return $this - */ - public function setSharingWithOthersEnabled($var) - { - GPBUtil::checkBool($var); - $this->sharing_with_others_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php deleted file mode 100644 index eb97eb73d435..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream.php +++ /dev/null @@ -1,356 +0,0 @@ -google.analytics.admin.v1beta.DataStream - */ -class DataStream extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - protected $stream_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\DataStream\WebStreamData $web_stream_data - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * @type \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData $android_app_stream_data - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * @type \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData $ios_app_stream_data - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * @type string $name - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * @type int $type - * Required. Immutable. The type of this DataStream resource. - * @type string $display_name - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this stream was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when stream payload fields were last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return \Google\Analytics\Admin\V1beta\DataStream\WebStreamData|null - */ - public function getWebStreamData() - { - return $this->readOneof(6); - } - - public function hasWebStreamData() - { - return $this->hasOneof(6); - } - - /** - * Data specific to web streams. Must be populated if type is - * WEB_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @param \Google\Analytics\Admin\V1beta\DataStream\WebStreamData $var - * @return $this - */ - public function setWebStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\WebStreamData::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData|null - */ - public function getAndroidAppStreamData() - { - return $this->readOneof(7); - } - - public function hasAndroidAppStreamData() - { - return $this->hasOneof(7); - } - - /** - * Data specific to Android app streams. Must be populated if type is - * ANDROID_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @param \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData $var - * @return $this - */ - public function setAndroidAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\AndroidAppStreamData::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData|null - */ - public function getIosAppStreamData() - { - return $this->readOneof(8); - } - - public function hasIosAppStreamData() - { - return $this->hasOneof(8); - } - - /** - * Data specific to iOS app streams. Must be populated if type is - * IOS_APP_DATA_STREAM. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @param \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData $var - * @return $this - */ - public function setIosAppStreamData($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream\IosAppStreamData::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this Data Stream. - * Format: properties/{property_id}/dataStreams/{stream_id} - * Example: "properties/1000/dataStreams/2000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The type of this DataStream resource. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\DataStream\DataStreamType::class); - $this->type = $var; - - return $this; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-readable display name for the Data Stream. - * Required for web data streams. - * The max allowed display name length is 255 UTF-16 code units. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this stream was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when stream payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getStreamData() - { - return $this->whichOneof("stream_data"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php deleted file mode 100644 index 41f363424c91..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/AndroidAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1beta.DataStream.AndroidAppStreamData - */ -class AndroidAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $package_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * @type string $package_name - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding Android app in Firebase, if any. - * This ID can change if the Android app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Immutable. The package name for the app being measured. - * Example: "com.example.myandroidapp" - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AndroidAppStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_AndroidAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php deleted file mode 100644 index f56bdc100a42..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/DataStreamType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.admin.v1beta.DataStream.DataStreamType - */ -class DataStreamType -{ - /** - * Type unknown or not specified. - * - * Generated from protobuf enum DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - const DATA_STREAM_TYPE_UNSPECIFIED = 0; - /** - * Web data stream. - * - * Generated from protobuf enum WEB_DATA_STREAM = 1; - */ - const WEB_DATA_STREAM = 1; - /** - * Android app data stream. - * - * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 2; - */ - const ANDROID_APP_DATA_STREAM = 2; - /** - * iOS app data stream. - * - * Generated from protobuf enum IOS_APP_DATA_STREAM = 3; - */ - const IOS_APP_DATA_STREAM = 3; - - private static $valueToName = [ - self::DATA_STREAM_TYPE_UNSPECIFIED => 'DATA_STREAM_TYPE_UNSPECIFIED', - self::WEB_DATA_STREAM => 'WEB_DATA_STREAM', - self::ANDROID_APP_DATA_STREAM => 'ANDROID_APP_DATA_STREAM', - self::IOS_APP_DATA_STREAM => 'IOS_APP_DATA_STREAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataStreamType::class, \Google\Analytics\Admin\V1beta\DataStream_DataStreamType::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php deleted file mode 100644 index 3ca74773442b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/IosAppStreamData.php +++ /dev/null @@ -1,112 +0,0 @@ -google.analytics.admin.v1beta.DataStream.IosAppStreamData - */ -class IosAppStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $bundle_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $firebase_app_id - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * @type string $bundle_id - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding iOS app in Firebase, if any. - * This ID can change if the iOS app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBundleId() - { - return $this->bundle_id; - } - - /** - * Required. Immutable. The Apple App Store Bundle ID for the app - * Example: "com.example.myiosapp" - * - * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBundleId($var) - { - GPBUtil::checkString($var, True); - $this->bundle_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IosAppStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_IosAppStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php deleted file mode 100644 index 26d2801d7bbd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DataStream/WebStreamData.php +++ /dev/null @@ -1,150 +0,0 @@ -google.analytics.admin.v1beta.DataStream.WebStreamData - */ -class WebStreamData extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $measurement_id = ''; - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $firebase_app_id = ''; - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - */ - protected $default_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $measurement_id - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * @type string $firebase_app_id - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * @type string $default_uri - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeasurementId() - { - return $this->measurement_id; - } - - /** - * Output only. Analytics Measurement ID. - * Example: "G-1A2BCD345E" - * - * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeasurementId($var) - { - GPBUtil::checkString($var, True); - $this->measurement_id = $var; - - return $this; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirebaseAppId() - { - return $this->firebase_app_id; - } - - /** - * Output only. ID of the corresponding web app in Firebase, if any. - * This ID can change if the web app is deleted and recreated. - * - * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirebaseAppId($var) - { - GPBUtil::checkString($var, True); - $this->firebase_app_id = $var; - - return $this; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @return string - */ - public function getDefaultUri() - { - return $this->default_uri; - } - - /** - * Domain name of the web app being measured, or empty. - * Example: "http://www.google.com", "https://www.google.com" - * - * Generated from protobuf field string default_uri = 3; - * @param string $var - * @return $this - */ - public function setDefaultUri($var) - { - GPBUtil::checkString($var, True); - $this->default_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WebStreamData::class, \Google\Analytics\Admin\V1beta\DataStream_WebStreamData::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php deleted file mode 100644 index 4e8c387e03ed..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteAccountRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeleteAccountRequest - */ -class DeleteAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteAccountRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php deleted file mode 100644 index c10da9d7155c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteConversionEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeleteConversionEventRequest - */ -class DeleteConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteConversionEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php deleted file mode 100644 index 1743a5808221..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteDataStreamRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.DeleteDataStreamRequest - */ -class DeleteDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteDataStreamRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php deleted file mode 100644 index 56ef0eb223b0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteFirebaseLinkRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.analytics.admin.v1beta.DeleteFirebaseLinkRequest - */ -class DeleteFirebaseLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: `properties/1234/firebaseLinks/5678` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * - * Example: `properties/1234/firebaseLinks/5678` - * Please see {@see AnalyticsAdminServiceClient::firebaseLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteFirebaseLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: `properties/1234/firebaseLinks/5678` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: `properties/1234/firebaseLinks/5678` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: `properties/1234/firebaseLinks/5678` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php deleted file mode 100644 index a0e08a72a199..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteGoogleAdsLinkRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest - */ -class DeleteGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 - * Please see {@see AnalyticsAdminServiceClient::googleAdsLinkName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example format: properties/1234/googleAdsLinks/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example format: properties/1234/googleAdsLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteKeyEventRequest.php deleted file mode 100644 index eedbb5780628..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteKeyEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeleteKeyEventRequest - */ -class DeleteKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * Please see {@see AnalyticsAdminServiceClient::keyEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteKeyEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/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 Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php deleted file mode 100644 index 11d1855ca0c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeleteMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest - */ -class DeleteMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeleteMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php deleted file mode 100644 index 0f1066e9be4c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/DeletePropertyRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.DeletePropertyRequest - */ -class DeletePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\DeletePropertyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php deleted file mode 100644 index fb86b8060dc8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/FirebaseLink.php +++ /dev/null @@ -1,165 +0,0 @@ -google.analytics.admin.v1beta.FirebaseLink - */ -class FirebaseLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $project = ''; - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Example format: properties/1234/firebaseLinks/5678 - * @type string $project - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this FirebaseLink was originally created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Example format: properties/1234/firebaseLinks/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Immutable. Firebase project resource name. When creating a FirebaseLink, - * you may provide this resource name using either a project number or project - * ID. Once this resource has been created, returned FirebaseLinks will always - * have a project_name that contains a project number. - * Format: 'projects/{project number}' - * Example: 'projects/1234' - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this FirebaseLink was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php deleted file mode 100644 index 2d2dff0d7814..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetAccountRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetAccountRequest - */ -class GetAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetAccountRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php deleted file mode 100644 index d93e93e1f55a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetConversionEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetConversionEventRequest - */ -class GetConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * Please see {@see AnalyticsAdminServiceClient::conversionEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetConversionEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php deleted file mode 100644 index 94a2b1021792..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomDimensionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.GetCustomDimensionRequest - */ -class GetCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * Please see {@see AnalyticsAdminServiceClient::customDimensionName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetCustomDimensionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php deleted file mode 100644 index 6610662810be..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetCustomMetricRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.GetCustomMetricRequest - */ -class GetCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * Please see {@see AnalyticsAdminServiceClient::customMetricName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetCustomMetricRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php deleted file mode 100644 index 15828be733b6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataRetentionSettingsRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.analytics.admin.v1beta.GetDataRetentionSettingsRequest - */ -class GetDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * Please see {@see AnalyticsAdminServiceClient::dataRetentionSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetDataRetentionSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php deleted file mode 100644 index 87917ab19209..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataSharingSettingsRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.admin.v1beta.GetDataSharingSettingsRequest - */ -class GetDataSharingSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: `accounts/1000/dataSharingSettings` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * - * Example: `accounts/1000/dataSharingSettings` - * Please see {@see AnalyticsAdminServiceClient::dataSharingSettingsName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetDataSharingSettingsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: `accounts/1000/dataSharingSettings` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: `accounts/1000/dataSharingSettings` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * Example: `accounts/1000/dataSharingSettings` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php deleted file mode 100644 index aab7f2686212..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetDataStreamRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.admin.v1beta.GetDataStreamRequest - */ -class GetDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetDataStreamRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetKeyEventRequest.php deleted file mode 100644 index 9c12dc01c080..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetKeyEventRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetKeyEventRequest - */ -class GetKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * Please see {@see AnalyticsAdminServiceClient::keyEventName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetKeyEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/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 Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php deleted file mode 100644 index 5a1c207ba97a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest - */ -class GetMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Please see {@see AnalyticsAdminServiceClient::measurementProtocolSecretName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php deleted file mode 100644 index 50ce00257946..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GetPropertyRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.analytics.admin.v1beta.GetPropertyRequest - */ -class GetPropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\GetPropertyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php deleted file mode 100644 index 85e6f6f829ea..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/GoogleAdsLink.php +++ /dev/null @@ -1,358 +0,0 @@ -google.analytics.admin.v1beta.GoogleAdsLink - */ -class GoogleAdsLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $customer_id = ''; - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $can_manage_clients = false; - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - protected $ads_personalization_enabled = null; - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creator_email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * @type string $customer_id - * Immutable. Google Ads customer ID. - * @type bool $can_manage_clients - * Output only. If true, this link is for a Google Ads manager account. - * @type \Google\Protobuf\BoolValue $ads_personalization_enabled - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this link was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when this link was last updated. - * @type string $creator_email_address - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Format: - * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - * Note: googleAdsLinkId is not the Google Ads customer ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getCustomerId() - { - return $this->customer_id; - } - - /** - * Immutable. Google Ads customer ID. - * - * Generated from protobuf field string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setCustomerId($var) - { - GPBUtil::checkString($var, True); - $this->customer_id = $var; - - return $this; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCanManageClients() - { - return $this->can_manage_clients; - } - - /** - * Output only. If true, this link is for a Google Ads manager account. - * - * Generated from protobuf field bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCanManageClients($var) - { - GPBUtil::checkBool($var); - $this->can_manage_clients = $var; - - return $this; - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return \Google\Protobuf\BoolValue|null - */ - public function getAdsPersonalizationEnabled() - { - return $this->ads_personalization_enabled; - } - - public function hasAdsPersonalizationEnabled() - { - return isset($this->ads_personalization_enabled); - } - - public function clearAdsPersonalizationEnabled() - { - unset($this->ads_personalization_enabled); - } - - /** - * Returns the unboxed value from getAdsPersonalizationEnabled() - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return bool|null - */ - public function getAdsPersonalizationEnabledUnwrapped() - { - return $this->readWrapperValue("ads_personalization_enabled"); - } - - /** - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setAdsPersonalizationEnabled($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->ads_personalization_enabled = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enable personalized advertising features with this integration. - * Automatically publish my Google Analytics audience lists and Google - * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update, it will be defaulted to true. - * - * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @param bool|null $var - * @return $this - */ - public function setAdsPersonalizationEnabledUnwrapped($var) - { - $this->writeWrapperValue("ads_personalization_enabled", $var); - return $this;} - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when this link was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when this link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreatorEmailAddress() - { - return $this->creator_email_address; - } - - /** - * Output only. Email address of the user that created the link. - * An empty string will be returned if the email address can't be retrieved. - * - * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreatorEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->creator_email_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php deleted file mode 100644 index 887b34452f65..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/IndustryCategory.php +++ /dev/null @@ -1,229 +0,0 @@ -google.analytics.admin.v1beta.IndustryCategory - */ -class IndustryCategory -{ - /** - * Industry category unspecified - * - * Generated from protobuf enum INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - const INDUSTRY_CATEGORY_UNSPECIFIED = 0; - /** - * Automotive - * - * Generated from protobuf enum AUTOMOTIVE = 1; - */ - const AUTOMOTIVE = 1; - /** - * Business and industrial markets - * - * Generated from protobuf enum BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - const BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - /** - * Finance - * - * Generated from protobuf enum FINANCE = 3; - */ - const FINANCE = 3; - /** - * Healthcare - * - * Generated from protobuf enum HEALTHCARE = 4; - */ - const HEALTHCARE = 4; - /** - * Technology - * - * Generated from protobuf enum TECHNOLOGY = 5; - */ - const TECHNOLOGY = 5; - /** - * Travel - * - * Generated from protobuf enum TRAVEL = 6; - */ - const TRAVEL = 6; - /** - * Other - * - * Generated from protobuf enum OTHER = 7; - */ - const OTHER = 7; - /** - * Arts and entertainment - * - * Generated from protobuf enum ARTS_AND_ENTERTAINMENT = 8; - */ - const ARTS_AND_ENTERTAINMENT = 8; - /** - * Beauty and fitness - * - * Generated from protobuf enum BEAUTY_AND_FITNESS = 9; - */ - const BEAUTY_AND_FITNESS = 9; - /** - * Books and literature - * - * Generated from protobuf enum BOOKS_AND_LITERATURE = 10; - */ - const BOOKS_AND_LITERATURE = 10; - /** - * Food and drink - * - * Generated from protobuf enum FOOD_AND_DRINK = 11; - */ - const FOOD_AND_DRINK = 11; - /** - * Games - * - * Generated from protobuf enum GAMES = 12; - */ - const GAMES = 12; - /** - * Hobbies and leisure - * - * Generated from protobuf enum HOBBIES_AND_LEISURE = 13; - */ - const HOBBIES_AND_LEISURE = 13; - /** - * Home and garden - * - * Generated from protobuf enum HOME_AND_GARDEN = 14; - */ - const HOME_AND_GARDEN = 14; - /** - * Internet and telecom - * - * Generated from protobuf enum INTERNET_AND_TELECOM = 15; - */ - const INTERNET_AND_TELECOM = 15; - /** - * Law and government - * - * Generated from protobuf enum LAW_AND_GOVERNMENT = 16; - */ - const LAW_AND_GOVERNMENT = 16; - /** - * News - * - * Generated from protobuf enum NEWS = 17; - */ - const NEWS = 17; - /** - * Online communities - * - * Generated from protobuf enum ONLINE_COMMUNITIES = 18; - */ - const ONLINE_COMMUNITIES = 18; - /** - * People and society - * - * Generated from protobuf enum PEOPLE_AND_SOCIETY = 19; - */ - const PEOPLE_AND_SOCIETY = 19; - /** - * Pets and animals - * - * Generated from protobuf enum PETS_AND_ANIMALS = 20; - */ - const PETS_AND_ANIMALS = 20; - /** - * Real estate - * - * Generated from protobuf enum REAL_ESTATE = 21; - */ - const REAL_ESTATE = 21; - /** - * Reference - * - * Generated from protobuf enum REFERENCE = 22; - */ - const REFERENCE = 22; - /** - * Science - * - * Generated from protobuf enum SCIENCE = 23; - */ - const SCIENCE = 23; - /** - * Sports - * - * Generated from protobuf enum SPORTS = 24; - */ - const SPORTS = 24; - /** - * Jobs and education - * - * Generated from protobuf enum JOBS_AND_EDUCATION = 25; - */ - const JOBS_AND_EDUCATION = 25; - /** - * Shopping - * - * Generated from protobuf enum SHOPPING = 26; - */ - const SHOPPING = 26; - - private static $valueToName = [ - self::INDUSTRY_CATEGORY_UNSPECIFIED => 'INDUSTRY_CATEGORY_UNSPECIFIED', - self::AUTOMOTIVE => 'AUTOMOTIVE', - self::BUSINESS_AND_INDUSTRIAL_MARKETS => 'BUSINESS_AND_INDUSTRIAL_MARKETS', - self::FINANCE => 'FINANCE', - self::HEALTHCARE => 'HEALTHCARE', - self::TECHNOLOGY => 'TECHNOLOGY', - self::TRAVEL => 'TRAVEL', - self::OTHER => 'OTHER', - self::ARTS_AND_ENTERTAINMENT => 'ARTS_AND_ENTERTAINMENT', - self::BEAUTY_AND_FITNESS => 'BEAUTY_AND_FITNESS', - self::BOOKS_AND_LITERATURE => 'BOOKS_AND_LITERATURE', - self::FOOD_AND_DRINK => 'FOOD_AND_DRINK', - self::GAMES => 'GAMES', - self::HOBBIES_AND_LEISURE => 'HOBBIES_AND_LEISURE', - self::HOME_AND_GARDEN => 'HOME_AND_GARDEN', - self::INTERNET_AND_TELECOM => 'INTERNET_AND_TELECOM', - self::LAW_AND_GOVERNMENT => 'LAW_AND_GOVERNMENT', - self::NEWS => 'NEWS', - self::ONLINE_COMMUNITIES => 'ONLINE_COMMUNITIES', - self::PEOPLE_AND_SOCIETY => 'PEOPLE_AND_SOCIETY', - self::PETS_AND_ANIMALS => 'PETS_AND_ANIMALS', - self::REAL_ESTATE => 'REAL_ESTATE', - self::REFERENCE => 'REFERENCE', - self::SCIENCE => 'SCIENCE', - self::SPORTS => 'SPORTS', - self::JOBS_AND_EDUCATION => 'JOBS_AND_EDUCATION', - self::SHOPPING => 'SHOPPING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent.php deleted file mode 100644 index 9b7d818e3abb..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent.php +++ /dev/null @@ -1,323 +0,0 @@ -google.analytics.admin.v1beta.KeyEvent - */ -class KeyEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this key event. - * Format: properties/{property}/keyEvents/{key_event} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The event name for this key 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 key 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 to true, this event can be deleted. - * - * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletable = false; - /** - * Output only. If set to true, this key event refers to a custom event. If - * set to false, this key 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 key events that may be created per property. - * - * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = false; - /** - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $counting_method = 0; - /** - * Optional. Defines a default value/currency for a key event. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this key event. - * Format: properties/{property}/keyEvents/{key_event} - * @type string $event_name - * Immutable. The event name for this key event. - * Examples: 'click', 'purchase' - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when this key event was created in the property. - * @type bool $deletable - * Output only. If set to true, this event can be deleted. - * @type bool $custom - * Output only. If set to true, this key event refers to a custom event. If - * set to false, this key 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 key events that may be created per property. - * @type int $counting_method - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * @type \Google\Analytics\Admin\V1beta\KeyEvent\DefaultValue $default_value - * Optional. Defines a default value/currency for a key event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this key event. - * Format: properties/{property}/keyEvents/{key_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 key event. - * Format: properties/{property}/keyEvents/{key_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 key 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 key 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 key 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 key 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 to true, this event can be deleted. - * - * 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 to true, this event can be deleted. - * - * 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 key event refers to a custom event. If - * set to false, this key 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 key 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 key event refers to a custom event. If - * set to false, this key 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 key 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; - } - - /** - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCountingMethod() - { - return $this->counting_method; - } - - /** - * Required. The method by which Key Events will be counted across multiple - * events within a session. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCountingMethod($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\KeyEvent\CountingMethod::class); - $this->counting_method = $var; - - return $this; - } - - /** - * Optional. Defines a default value/currency for a key event. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Admin\V1beta\KeyEvent\DefaultValue|null - */ - public function getDefaultValue() - { - return $this->default_value; - } - - public function hasDefaultValue() - { - return isset($this->default_value); - } - - public function clearDefaultValue() - { - unset($this->default_value); - } - - /** - * Optional. Defines a default value/currency for a key event. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Admin\V1beta\KeyEvent\DefaultValue $var - * @return $this - */ - public function setDefaultValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\KeyEvent\DefaultValue::class); - $this->default_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent/CountingMethod.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent/CountingMethod.php deleted file mode 100644 index 15e03f561ab0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent/CountingMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.admin.v1beta.KeyEvent.CountingMethod - */ -class CountingMethod -{ - /** - * Counting method not specified. - * - * Generated from protobuf enum COUNTING_METHOD_UNSPECIFIED = 0; - */ - const COUNTING_METHOD_UNSPECIFIED = 0; - /** - * Each Event instance is considered a Key Event. - * - * Generated from protobuf enum ONCE_PER_EVENT = 1; - */ - const ONCE_PER_EVENT = 1; - /** - * An Event instance is considered a Key Event at most once per session per - * user. - * - * Generated from protobuf enum ONCE_PER_SESSION = 2; - */ - const ONCE_PER_SESSION = 2; - - private static $valueToName = [ - self::COUNTING_METHOD_UNSPECIFIED => 'COUNTING_METHOD_UNSPECIFIED', - self::ONCE_PER_EVENT => 'ONCE_PER_EVENT', - self::ONCE_PER_SESSION => 'ONCE_PER_SESSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CountingMethod::class, \Google\Analytics\Admin\V1beta\KeyEvent_CountingMethod::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent/DefaultValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent/DefaultValue.php deleted file mode 100644 index 0788a272fb16..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/KeyEvent/DefaultValue.php +++ /dev/null @@ -1,124 +0,0 @@ -google.analytics.admin.v1beta.KeyEvent.DefaultValue - */ -class DefaultValue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * - * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $numeric_value = 0.0; - /** - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * - * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $currency_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $numeric_value - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * @type string $currency_code - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * - * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return float - */ - public function getNumericValue() - { - return $this->numeric_value; - } - - /** - * Required. This will be used to populate the "value" parameter for all - * occurrences of this Key Event (specified by event_name) where that - * parameter is unset. - * - * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param float $var - * @return $this - */ - public function setNumericValue($var) - { - GPBUtil::checkDouble($var); - $this->numeric_value = $var; - - return $this; - } - - /** - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * - * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Required. When an occurrence of this Key Event (specified by event_name) - * has no set currency this currency will be applied as the default. Must be - * in ISO 4217 currency code format. - * See https://en.wikipedia.org/wiki/ISO_4217 for more information. - * - * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DefaultValue::class, \Google\Analytics\Admin\V1beta\KeyEvent_DefaultValue::class); - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php deleted file mode 100644 index 5a9b57747f11..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.analytics.admin.v1beta.ListAccountSummariesRequest - */ -class ListAccountSummariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php deleted file mode 100644 index 134ce7115217..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountSummariesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListAccountSummariesResponse - */ -class ListAccountSummariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - private $account_summaries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $account_summaries - * Account summaries of all accounts the caller has access to. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccountSummaries() - { - return $this->account_summaries; - } - - /** - * Account summaries of all accounts the caller has access to. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccountSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccountSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccountSummary::class); - $this->account_summaries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php deleted file mode 100644 index ad5ace2c52d0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.analytics.admin.v1beta.ListAccountsRequest - */ -class ListAccountsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 1; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * - * Generated from protobuf field bool show_deleted = 3; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php deleted file mode 100644 index e6172f138b63..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListAccountsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListAccountsResponse - */ -class ListAccountsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - private $accounts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\Account>|\Google\Protobuf\Internal\RepeatedField $accounts - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccounts() - { - return $this->accounts; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Account accounts = 1; - * @param array<\Google\Analytics\Admin\V1beta\Account>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\Account::class); - $this->accounts = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php deleted file mode 100644 index 33bf19c74838..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.analytics.admin.v1beta.ListConversionEventsRequest - */ -class ListConversionEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListConversionEventsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent property. - * Example: 'properties/123' - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php deleted file mode 100644 index 8c2c55e646f6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListConversionEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListConversionEventsResponse - */ -class ListConversionEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - private $conversion_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $conversion_events - * The requested conversion events - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConversionEvents() - { - return $this->conversion_events; - } - - /** - * The requested conversion events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - * @param array<\Google\Analytics\Admin\V1beta\ConversionEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConversionEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->conversion_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php deleted file mode 100644 index b0a3860f8064..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListCustomDimensionsRequest - */ -class ListCustomDimensionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListCustomDimensionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomDimensions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php deleted file mode 100644 index 94d2a87c2a86..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomDimensionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListCustomDimensionsResponse - */ -class ListCustomDimensionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - private $custom_dimensions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $custom_dimensions - * List of CustomDimensions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomDimensions() - { - return $this->custom_dimensions; - } - - /** - * List of CustomDimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - * @param array<\Google\Analytics\Admin\V1beta\CustomDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\CustomDimension::class); - $this->custom_dimensions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php deleted file mode 100644 index 5020f949e437..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListCustomMetricsRequest - */ -class ListCustomMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListCustomMetricsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCustomMetrics` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php deleted file mode 100644 index 595e81384613..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListCustomMetricsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListCustomMetricsResponse - */ -class ListCustomMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - private $custom_metrics; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $custom_metrics - * List of CustomMetrics. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomMetrics() - { - return $this->custom_metrics; - } - - /** - * List of CustomMetrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - * @param array<\Google\Analytics\Admin\V1beta\CustomMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\CustomMetric::class); - $this->custom_metrics = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php deleted file mode 100644 index a7fd9dae8a76..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListDataStreamsRequest - */ -class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListDataStreamsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php deleted file mode 100644 index 5ccce411e91d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListDataStreamsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListDataStreamsResponse - */ -class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - private $data_streams; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\DataStream>|\Google\Protobuf\Internal\RepeatedField $data_streams - * List of DataStreams. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStreams() - { - return $this->data_streams; - } - - /** - * List of DataStreams. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - * @param array<\Google\Analytics\Admin\V1beta\DataStream>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStreams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->data_streams = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php deleted file mode 100644 index bd603d00055a..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.admin.v1beta.ListFirebaseLinksRequest - */ -class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListFirebaseLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Format: properties/{property_id} - * Example: `properties/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php deleted file mode 100644 index b320bb008f5c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListFirebaseLinksResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.admin.v1beta.ListFirebaseLinksResponse - */ -class ListFirebaseLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - private $firebase_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $firebase_links - * List of FirebaseLinks. This will have at most one value. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFirebaseLinks() - { - return $this->firebase_links; - } - - /** - * List of FirebaseLinks. This will have at most one value. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - * @param array<\Google\Analytics\Admin\V1beta\FirebaseLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFirebaseLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\FirebaseLink::class); - $this->firebase_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * Currently, Google Analytics supports only one FirebaseLink per property, - * so this will never be populated. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php deleted file mode 100644 index 5db7e835bc8e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.analytics.admin.v1beta.ListGoogleAdsLinksRequest - */ -class ListGoogleAdsLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example format: properties/1234 - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListGoogleAdsLinksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example format: properties/1234 - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example format: properties/1234 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php deleted file mode 100644 index 83af6ed59375..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListGoogleAdsLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListGoogleAdsLinksResponse - */ -class ListGoogleAdsLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - private $google_ads_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $google_ads_links - * List of GoogleAdsLinks. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGoogleAdsLinks() - { - return $this->google_ads_links; - } - - /** - * List of GoogleAdsLinks. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - * @param array<\Google\Analytics\Admin\V1beta\GoogleAdsLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGoogleAdsLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->google_ads_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListKeyEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListKeyEventsRequest.php deleted file mode 100644 index d2a4dfa83287..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListKeyEventsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.analytics.admin.v1beta.ListKeyEventsRequest - */ -class ListKeyEventsRequest 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 `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListKeyEventsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent property. - * Example: 'properties/123' - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent property. - * Example: 'properties/123' - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * 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 `ListKeyEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListKeyEvents` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListKeyEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListKeyEventsResponse.php deleted file mode 100644 index ac7d7c5f4941..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListKeyEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListKeyEventsResponse - */ -class ListKeyEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested Key Events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; - */ - private $key_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\KeyEvent>|\Google\Protobuf\Internal\RepeatedField $key_events - * The requested Key Events - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The requested Key Events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeyEvents() - { - return $this->key_events; - } - - /** - * The requested Key Events - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.KeyEvent key_events = 1; - * @param array<\Google\Analytics\Admin\V1beta\KeyEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeyEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\KeyEvent::class); - $this->key_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php deleted file mode 100644 index 7b63fb17d190..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest - */ -class ListMeasurementProtocolSecretsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. - * - * @return \Google\Analytics\Admin\V1beta\ListMeasurementProtocolSecretsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @type int $page_size - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * @type string $page_token - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php deleted file mode 100644 index 0a841ff0b82c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListMeasurementProtocolSecretsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse - */ -class ListMeasurementProtocolSecretsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - private $measurement_protocol_secrets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $measurement_protocol_secrets - * A list of secrets for the parent stream specified in the request. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMeasurementProtocolSecrets() - { - return $this->measurement_protocol_secrets; - } - - /** - * A list of secrets for the parent stream specified in the request. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - * @param array<\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMeasurementProtocolSecrets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->measurement_protocol_secrets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php deleted file mode 100644 index 66946ecd9fb9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1beta.ListPropertiesRequest - */ -class ListPropertiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - */ - protected $show_deleted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @type int $page_size - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @type string $page_token - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * @type bool $show_deleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListProperties` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * - * Generated from protobuf field bool show_deleted = 4; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php deleted file mode 100644 index f0bf255bc083..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ListPropertiesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.ListPropertiesResponse - */ -class ListPropertiesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - private $properties; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\Property>|\Google\Protobuf\Internal\RepeatedField $properties - * Results that matched the filter criteria and were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Results that matched the filter criteria and were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.Property properties = 1; - * @param array<\Google\Analytics\Admin\V1beta\Property>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\Property::class); - $this->properties = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php deleted file mode 100644 index 79a409a5548e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/MeasurementProtocolSecret.php +++ /dev/null @@ -1,151 +0,0 @@ -google.analytics.admin.v1beta.MeasurementProtocolSecret - */ -class MeasurementProtocolSecret extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $secret_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @type string $display_name - * Required. Human-readable display name for this secret. - * @type string $secret_value - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this secret. This secret may be a child of - * any type of stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this secret. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSecretValue() - { - return $this->secret_value; - } - - /** - * Output only. The measurement protocol secret value. Pass this value to the - * api_secret field of the Measurement Protocol API when sending hits to this - * secret's parent property. - * - * Generated from protobuf field string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSecretValue($var) - { - GPBUtil::checkString($var, True); - $this->secret_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php deleted file mode 100644 index 0952ee5c779c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/NumericValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.admin.v1beta.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value - * @type float $double_value - * Double value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AccessReport::initOnce(); - parent::__construct($data); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php deleted file mode 100644 index a7570b8db524..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/Property.php +++ /dev/null @@ -1,607 +0,0 @@ -google.analytics.admin.v1beta.Property - */ -class Property extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $property_type = 0; - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parent = ''; - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - */ - protected $industry_category = 0; - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_zone = ''; - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - */ - protected $currency_code = ''; - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_level = 0; - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $account = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * @type int $property_type - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the entity was originally created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when entity payload fields were last updated. - * @type string $parent - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * @type string $display_name - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * @type int $industry_category - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * @type string $time_zone - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * @type string $currency_code - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * @type int $service_level - * Output only. The Google Analytics service level that applies to this - * property. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * @type string $account - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of this property. - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * Immutable. The property type for this Property resource. When creating a - * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the entity was originally created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time when entity payload fields were last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Immutable. Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/101" - * - * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human-readable display name for this property. - * The max allowed display name length is 100 UTF-16 code units. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return int - */ - public function getIndustryCategory() - { - return $this->industry_category; - } - - /** - * Industry associated with this property - * Example: AUTOMOTIVE, FOOD_AND_DRINK - * - * Generated from protobuf field .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @param int $var - * @return $this - */ - public function setIndustryCategory($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\IndustryCategory::class); - $this->industry_category = $var; - - return $this; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Required. Reporting Time Zone, used as the day boundary for reports, - * regardless of where the data originates. If the time zone honors DST, - * Analytics will automatically adjust for the changes. - * NOTE: Changing the time zone only affects data going forward, and is not - * applied retroactively. - * Format: https://www.iana.org/time-zones - * Example: "America/Los_Angeles" - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * The currency type used in reports involving monetary values. - * Format: https://en.wikipedia.org/wiki/ISO_4217 - * Examples: "USD", "EUR", "JPY" - * - * Generated from protobuf field string currency_code = 8; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getServiceLevel() - { - return $this->service_level; - } - - /** - * Output only. The Google Analytics service level that applies to this - * property. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setServiceLevel($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\ServiceLevel::class); - $this->service_level = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. If set, the time at which this property was trashed. If not - * set, then this property is not currently in the trash can. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Output only. If set, the time at which this trashed property will be - * permanently deleted. If not set, then this property is not currently in the - * trash can and is not slated to be deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getAccount() - { - return $this->account; - } - - /** - * Immutable. The resource name of the parent account - * Format: accounts/{account_id} - * Example: "accounts/123" - * - * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkString($var, True); - $this->account = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php deleted file mode 100644 index 2b198f304695..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertySummary.php +++ /dev/null @@ -1,189 +0,0 @@ -google.analytics.admin.v1beta.PropertySummary - */ -class PropertySummary extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; - */ - protected $property_type = 0; - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * @type string $display_name - * Display name for the property referred to in this property summary. - * @type int $property_type - * The property's property type. - * @type string $parent - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Resource name of property referred to by this property summary - * Format: properties/{property_id} - * Example: "properties/1000" - * - * Generated from protobuf field string property = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name for the property referred to in this property summary. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return int - */ - public function getPropertyType() - { - return $this->property_type; - } - - /** - * The property's property type. - * - * Generated from protobuf field .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @param int $var - * @return $this - */ - public function setPropertyType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1beta\PropertyType::class); - $this->property_type = $var; - - return $this; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Resource name of this property's logical parent. - * Note: The Property-Moving UI can be used to change the parent. - * Format: accounts/{account}, properties/{property} - * Example: "accounts/100", "properties/200" - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php deleted file mode 100644 index 746a8078f25e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/PropertyType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.analytics.admin.v1beta.PropertyType - */ -class PropertyType -{ - /** - * Unknown or unspecified property type - * - * Generated from protobuf enum PROPERTY_TYPE_UNSPECIFIED = 0; - */ - const PROPERTY_TYPE_UNSPECIFIED = 0; - /** - * Ordinary GA4 property - * - * Generated from protobuf enum PROPERTY_TYPE_ORDINARY = 1; - */ - const PROPERTY_TYPE_ORDINARY = 1; - /** - * GA4 subproperty - * - * Generated from protobuf enum PROPERTY_TYPE_SUBPROPERTY = 2; - */ - const PROPERTY_TYPE_SUBPROPERTY = 2; - /** - * GA4 rollup property - * - * Generated from protobuf enum PROPERTY_TYPE_ROLLUP = 3; - */ - const PROPERTY_TYPE_ROLLUP = 3; - - private static $valueToName = [ - self::PROPERTY_TYPE_UNSPECIFIED => 'PROPERTY_TYPE_UNSPECIFIED', - self::PROPERTY_TYPE_ORDINARY => 'PROPERTY_TYPE_ORDINARY', - self::PROPERTY_TYPE_SUBPROPERTY => 'PROPERTY_TYPE_SUBPROPERTY', - self::PROPERTY_TYPE_ROLLUP => 'PROPERTY_TYPE_ROLLUP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php deleted file mode 100644 index 0005e6b70010..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.admin.v1beta.ProvisionAccountTicketRequest - */ -class ProvisionAccountTicketRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - */ - protected $account = null; - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - */ - protected $redirect_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Account $account - * The account to create. - * @type string $redirect_uri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @return \Google\Analytics\Admin\V1beta\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * The account to create. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1; - * @param \Google\Analytics\Admin\V1beta\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @return string - */ - public function getRedirectUri() - { - return $this->redirect_uri; - } - - /** - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * - * Generated from protobuf field string redirect_uri = 2; - * @param string $var - * @return $this - */ - public function setRedirectUri($var) - { - GPBUtil::checkString($var, True); - $this->redirect_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php deleted file mode 100644 index 6a82de170909..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ProvisionAccountTicketResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.admin.v1beta.ProvisionAccountTicketResponse - */ -class ProvisionAccountTicketResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - */ - protected $account_ticket_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_ticket_id - * The param to be passed in the ToS link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @return string - */ - public function getAccountTicketId() - { - return $this->account_ticket_id; - } - - /** - * The param to be passed in the ToS link. - * - * Generated from protobuf field string account_ticket_id = 1; - * @param string $var - * @return $this - */ - public function setAccountTicketId($var) - { - GPBUtil::checkString($var, True); - $this->account_ticket_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php deleted file mode 100644 index d7dda45520de..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportRequest.php +++ /dev/null @@ -1,679 +0,0 @@ -google.analytics.admin.v1beta.RunAccessReportRequest - */ -class RunAccessReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - */ - protected $entity = ''; - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - private $metrics; - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - protected $dimension_filter = null; - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - protected $metric_filter = null; - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - */ - protected $offset = 0; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - */ - protected $limit = 0; - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - */ - protected $time_zone = ''; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - private $order_bys; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - */ - protected $return_entity_quota = false; - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $include_all_users = false; - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expand_groups = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type array<\Google\Analytics\Admin\V1beta\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type array<\Google\Analytics\Admin\V1beta\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type array<\Google\Analytics\Admin\V1beta\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $dimension_filter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type \Google\Analytics\Admin\V1beta\AccessFilterExpression $metric_filter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $time_zone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type array<\Google\Analytics\Admin\V1beta\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type bool $return_entity_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * @type bool $include_all_users - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * @type bool $expand_groups - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @return string - */ - public function getEntity() - { - return $this->entity; - } - - /** - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * - * Generated from protobuf field string entity = 1; - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->entity = $var; - - return $this; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - * @param array<\Google\Analytics\Admin\V1beta\AccessDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - * @param array<\Google\Analytics\Admin\V1beta\AccessMetric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - * @param array<\Google\Analytics\Admin\V1beta\AccessDateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return \Google\Analytics\Admin\V1beta\AccessFilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @param \Google\Analytics\Admin\V1beta\AccessFilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessFilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * - * Generated from protobuf field string time_zone = 9; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - * @param array<\Google\Analytics\Admin\V1beta\AccessOrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessOrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @return bool - */ - public function getReturnEntityQuota() - { - return $this->return_entity_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * - * Generated from protobuf field bool return_entity_quota = 11; - * @param bool $var - * @return $this - */ - public function setReturnEntityQuota($var) - { - GPBUtil::checkBool($var); - $this->return_entity_quota = $var; - - return $this; - } - - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIncludeAllUsers() - { - return $this->include_all_users; - } - - /** - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * - * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIncludeAllUsers($var) - { - GPBUtil::checkBool($var); - $this->include_all_users = $var; - - return $this; - } - - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExpandGroups() - { - return $this->expand_groups; - } - - /** - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * - * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExpandGroups($var) - { - GPBUtil::checkBool($var); - $this->expand_groups = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php deleted file mode 100644 index 32d64a075493..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/RunAccessReportResponse.php +++ /dev/null @@ -1,257 +0,0 @@ -google.analytics.admin.v1beta.RunAccessReportResponse - */ -class RunAccessReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - private $rows; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - */ - protected $row_count = 0; - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - protected $quota = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * @type array<\Google\Analytics\Admin\V1beta\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * @type array<\Google\Analytics\Admin\V1beta\AccessRow>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type \Google\Analytics\Admin\V1beta\AccessQuota $quota - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * dimension. The number of DimensionHeaders and ordering of DimensionHeaders - * matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Admin\V1beta\AccessDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessDimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * The header for a column in the report that corresponds to a specific - * metric. The number of MetricHeaders and ordering of MetricHeaders matches - * the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Admin\V1beta\AccessMetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessMetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - * @param array<\Google\Analytics\Admin\V1beta\AccessRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\AccessRow::class); - $this->rows = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 4; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return \Google\Analytics\Admin\V1beta\AccessQuota|null - */ - public function getQuota() - { - return $this->quota; - } - - public function hasQuota() - { - return isset($this->quota); - } - - public function clearQuota() - { - unset($this->quota); - } - - /** - * The quota state for this Analytics property including this request. This - * field doesn't work with account-level requests. - * - * Generated from protobuf field .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @param \Google\Analytics\Admin\V1beta\AccessQuota $var - * @return $this - */ - public function setQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\AccessQuota::class); - $this->quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php deleted file mode 100644 index b8d57e6282d3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsRequest.php +++ /dev/null @@ -1,419 +0,0 @@ -google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest - */ -class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account resource for which to return change history - * resources. Format: accounts/{account} - * Example: `accounts/100` - * - * 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. - * Format: properties/{propertyId} - * Example: `properties/100` - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $property = ''; - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_type; - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $action; - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $actor_email; - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $earliest_change_time = null; - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latest_change_time = null; - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account - * Required. The account resource for which to return change history - * resources. Format: accounts/{account} - * Example: `accounts/100` - * @type string $property - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * Format: properties/{propertyId} - * Example: `properties/100` - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_type - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * @type array|\Google\Protobuf\Internal\RepeatedField $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * @type array|\Google\Protobuf\Internal\RepeatedField $actor_email - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type \Google\Protobuf\Timestamp $earliest_change_time - * Optional. If set, only return changes made after this time (inclusive). - * @type \Google\Protobuf\Timestamp $latest_change_time - * Optional. If set, only return changes made before this time (inclusive). - * @type int $page_size - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * @type string $page_token - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account resource for which to return change history - * resources. Format: accounts/{account} - * Example: `accounts/100` - * - * 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. Format: accounts/{account} - * Example: `accounts/100` - * - * 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. - * Format: properties/{propertyId} - * Example: `properties/100` - * - * 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. - * Format: properties/{propertyId} - * Example: `properties/100` - * - * Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\ChangeHistoryResourceType::class); - $this->resource_type = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAction() - { - return $this->action; - } - - /** - * Optional. If set, only return changes that match one or more of these types - * of actions. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAction($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1beta\ActionType::class); - $this->action = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActorEmail() - { - return $this->actor_email; - } - - /** - * Optional. If set, only return changes if they are made by a user in this - * list. - * - * Generated from protobuf field repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActorEmail($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actor_email = $arr; - - return $this; - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEarliestChangeTime() - { - return $this->earliest_change_time; - } - - public function hasEarliestChangeTime() - { - return isset($this->earliest_change_time); - } - - public function clearEarliestChangeTime() - { - unset($this->earliest_change_time); - } - - /** - * Optional. If set, only return changes made after this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEarliestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->earliest_change_time = $var; - - return $this; - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestChangeTime() - { - return $this->latest_change_time; - } - - public function hasLatestChangeTime() - { - return isset($this->latest_change_time); - } - - public function clearLatestChangeTime() - { - unset($this->latest_change_time); - } - - /** - * Optional. If set, only return changes made before this time (inclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestChangeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_change_time = $var; - - return $this; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php deleted file mode 100644 index 446954be0938..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/SearchChangeHistoryEventsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse - */ -class SearchChangeHistoryEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - private $change_history_events; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Admin\V1beta\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $change_history_events - * Results that were accessible to the caller. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChangeHistoryEvents() - { - return $this->change_history_events; - } - - /** - * Results that were accessible to the caller. - * - * Generated from protobuf field repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - * @param array<\Google\Analytics\Admin\V1beta\ChangeHistoryEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChangeHistoryEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1beta\ChangeHistoryEvent::class); - $this->change_history_events = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php deleted file mode 100644 index 4ff6e7266ab6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/ServiceLevel.php +++ /dev/null @@ -1,61 +0,0 @@ -google.analytics.admin.v1beta.ServiceLevel - */ -class ServiceLevel -{ - /** - * Service level not specified or invalid. - * - * Generated from protobuf enum SERVICE_LEVEL_UNSPECIFIED = 0; - */ - const SERVICE_LEVEL_UNSPECIFIED = 0; - /** - * The standard version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_STANDARD = 1; - */ - const GOOGLE_ANALYTICS_STANDARD = 1; - /** - * The paid, premium version of Google Analytics. - * - * Generated from protobuf enum GOOGLE_ANALYTICS_360 = 2; - */ - const GOOGLE_ANALYTICS_360 = 2; - - private static $valueToName = [ - self::SERVICE_LEVEL_UNSPECIFIED => 'SERVICE_LEVEL_UNSPECIFIED', - self::GOOGLE_ANALYTICS_STANDARD => 'GOOGLE_ANALYTICS_STANDARD', - self::GOOGLE_ANALYTICS_360 => 'GOOGLE_ANALYTICS_360', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php deleted file mode 100644 index 26003ae8efe1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateAccountRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1beta.UpdateAccountRequest - */ -class UpdateAccountRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $account = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\Account $account Required. The account to update. - * The account's `name` field is used to identify the account. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateAccountRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\Account $account, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAccount($account) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Account $account - * Required. The account to update. - * The account's `name` field is used to identify the account. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\Account|null - */ - public function getAccount() - { - return $this->account; - } - - public function hasAccount() - { - return isset($this->account); - } - - public function clearAccount() - { - unset($this->account); - } - - /** - * Required. The account to update. - * The account's `name` field is used to identify the account. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\Account $var - * @return $this - */ - public function setAccount($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Account::class); - $this->account = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php deleted file mode 100644 index 7446a39035e8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateConversionEventRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1beta.UpdateConversionEventRequest - */ -class UpdateConversionEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversion_event = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateConversionEventRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\ConversionEvent $conversionEvent, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\ConversionEvent $conversion_event - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\ConversionEvent|null - */ - public function getConversionEvent() - { - return $this->conversion_event; - } - - public function hasConversionEvent() - { - return isset($this->conversion_event); - } - - public function clearConversionEvent() - { - unset($this->conversion_event); - } - - /** - * Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\ConversionEvent $var - * @return $this - */ - public function setConversionEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\ConversionEvent::class); - $this->conversion_event = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php deleted file mode 100644 index 8f5570a83572..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomDimensionRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1beta.UpdateCustomDimensionRequest - */ -class UpdateCustomDimensionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - protected $custom_dimension = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\CustomDimension $customDimension The CustomDimension to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateCustomDimensionRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\CustomDimension $customDimension, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCustomDimension($customDimension) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\CustomDimension $custom_dimension - * The CustomDimension to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return \Google\Analytics\Admin\V1beta\CustomDimension|null - */ - public function getCustomDimension() - { - return $this->custom_dimension; - } - - public function hasCustomDimension() - { - return isset($this->custom_dimension); - } - - public function clearCustomDimension() - { - unset($this->custom_dimension); - } - - /** - * The CustomDimension to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @param \Google\Analytics\Admin\V1beta\CustomDimension $var - * @return $this - */ - public function setCustomDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomDimension::class); - $this->custom_dimension = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php deleted file mode 100644 index 2a6a68a15fbe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateCustomMetricRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1beta.UpdateCustomMetricRequest - */ -class UpdateCustomMetricRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - protected $custom_metric = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\CustomMetric $customMetric The CustomMetric to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateCustomMetricRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\CustomMetric $customMetric, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCustomMetric($customMetric) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\CustomMetric $custom_metric - * The CustomMetric to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return \Google\Analytics\Admin\V1beta\CustomMetric|null - */ - public function getCustomMetric() - { - return $this->custom_metric; - } - - public function hasCustomMetric() - { - return isset($this->custom_metric); - } - - public function clearCustomMetric() - { - unset($this->custom_metric); - } - - /** - * The CustomMetric to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @param \Google\Analytics\Admin\V1beta\CustomMetric $var - * @return $this - */ - public function setCustomMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\CustomMetric::class); - $this->custom_metric = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php deleted file mode 100644 index 62465168648e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataRetentionSettingsRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest - */ -class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_retention_settings = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $dataRetentionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateDataRetentionSettingsRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\DataRetentionSettings $dataRetentionSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\DataRetentionSettings $data_retention_settings - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings|null - */ - public function getDataRetentionSettings() - { - return $this->data_retention_settings; - } - - public function hasDataRetentionSettings() - { - return isset($this->data_retention_settings); - } - - public function clearDataRetentionSettings() - { - unset($this->data_retention_settings); - } - - /** - * Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\DataRetentionSettings $var - * @return $this - */ - public function setDataRetentionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataRetentionSettings::class); - $this->data_retention_settings = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php deleted file mode 100644 index 75f89f3ac6b9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateDataStreamRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.analytics.admin.v1beta.UpdateDataStreamRequest - */ -class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - protected $data_stream = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\DataStream $dataStream The DataStream to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateDataStreamRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\DataStream $dataStream, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataStream($dataStream) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\DataStream $data_stream - * The DataStream to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return \Google\Analytics\Admin\V1beta\DataStream|null - */ - public function getDataStream() - { - return $this->data_stream; - } - - public function hasDataStream() - { - return isset($this->data_stream); - } - - public function clearDataStream() - { - unset($this->data_stream); - } - - /** - * The DataStream to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @param \Google\Analytics\Admin\V1beta\DataStream $var - * @return $this - */ - public function setDataStream($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\DataStream::class); - $this->data_stream = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php deleted file mode 100644 index 74207c5be17f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateGoogleAdsLinkRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest - */ -class UpdateGoogleAdsLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - protected $google_ads_link = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink The GoogleAdsLink to update - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateGoogleAdsLinkRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\GoogleAdsLink $googleAdsLink, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGoogleAdsLink($googleAdsLink) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\GoogleAdsLink $google_ads_link - * The GoogleAdsLink to update - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink|null - */ - public function getGoogleAdsLink() - { - return $this->google_ads_link; - } - - public function hasGoogleAdsLink() - { - return isset($this->google_ads_link); - } - - public function clearGoogleAdsLink() - { - unset($this->google_ads_link); - } - - /** - * The GoogleAdsLink to update - * - * Generated from protobuf field .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @param \Google\Analytics\Admin\V1beta\GoogleAdsLink $var - * @return $this - */ - public function setGoogleAdsLink($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\GoogleAdsLink::class); - $this->google_ads_link = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateKeyEventRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateKeyEventRequest.php deleted file mode 100644 index 3f42572f10bc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateKeyEventRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.analytics.admin.v1beta.UpdateKeyEventRequest - */ -class UpdateKeyEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_event = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\KeyEvent $keyEvent Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdateKeyEventRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\KeyEvent $keyEvent, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\KeyEvent $key_event - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\KeyEvent|null - */ - public function getKeyEvent() - { - return $this->key_event; - } - - public function hasKeyEvent() - { - return isset($this->key_event); - } - - public function clearKeyEvent() - { - unset($this->key_event); - } - - /** - * Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\KeyEvent $var - * @return $this - */ - public function setKeyEvent($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\KeyEvent::class); - $this->key_event = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php deleted file mode 100644 index ea5707e1ccd1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdateMeasurementProtocolSecretRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest - */ -class UpdateMeasurementProtocolSecretRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $measurement_protocol_secret = null; - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * @return \Google\Analytics\Admin\V1beta\UpdateMeasurementProtocolSecretRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurementProtocolSecret, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $measurement_protocol_secret - * Required. The measurement protocol secret to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null - */ - public function getMeasurementProtocolSecret() - { - return $this->measurement_protocol_secret; - } - - public function hasMeasurementProtocolSecret() - { - return isset($this->measurement_protocol_secret); - } - - public function clearMeasurementProtocolSecret() - { - unset($this->measurement_protocol_secret); - } - - /** - * Required. The measurement protocol secret to update. - * - * Generated from protobuf field .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret $var - * @return $this - */ - public function setMeasurementProtocolSecret($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret::class); - $this->measurement_protocol_secret = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Omitted fields will not be - * updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php deleted file mode 100644 index f876aa7fa4c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/proto/src/Google/Analytics/Admin/V1beta/UpdatePropertyRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.analytics.admin.v1beta.UpdatePropertyRequest - */ -class UpdatePropertyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $property = null; - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Analytics\Admin\V1beta\Property $property Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * @return \Google\Analytics\Admin\V1beta\UpdatePropertyRequest - * - * @experimental - */ - public static function build(\Google\Analytics\Admin\V1beta\Property $property, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setProperty($property) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Admin\V1beta\Property $property - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Admin\V1Beta\AnalyticsAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Admin\V1beta\Property|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * - * Generated from protobuf field .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Admin\V1beta\Property $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1beta\Property::class); - $this->property = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php deleted file mode 100644 index 0bedd678e9fc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php +++ /dev/null @@ -1,87 +0,0 @@ -setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - - // Call the API and handle any network failures. - try { - /** @var AcknowledgeUserDataCollectionResponse $response */ - $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProperty = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $acknowledgement = '[ACKNOWLEDGEMENT]'; - - acknowledge_user_data_collection_sample($formattedProperty, $acknowledgement); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php deleted file mode 100644 index d470a818a8f9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->archiveCustomDimension($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - archive_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php deleted file mode 100644 index b32359be73ce..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->archiveCustomMetric($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - archive_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php deleted file mode 100644 index 8e9eb038f0d8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php +++ /dev/null @@ -1,75 +0,0 @@ -setConversionEvent($conversionEvent) - ->setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->createConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_conversion_event_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php deleted file mode 100644 index a5ea8e51fe38..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php +++ /dev/null @@ -1,107 +0,0 @@ -setParameterName($customDimensionParameterName) - ->setDisplayName($customDimensionDisplayName) - ->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->createCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customDimensionParameterName = '[PARAMETER_NAME]'; - $customDimensionDisplayName = '[DISPLAY_NAME]'; - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - - create_custom_dimension_sample( - $formattedParent, - $customDimensionParameterName, - $customDimensionDisplayName, - $customDimensionScope - ); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php deleted file mode 100644 index b9b32613fce6..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php +++ /dev/null @@ -1,108 +0,0 @@ -setParameterName($customMetricParameterName) - ->setDisplayName($customMetricDisplayName) - ->setMeasurementUnit($customMetricMeasurementUnit) - ->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->createCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $customMetricParameterName = '[PARAMETER_NAME]'; - $customMetricDisplayName = '[DISPLAY_NAME]'; - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - - create_custom_metric_sample( - $formattedParent, - $customMetricParameterName, - $customMetricDisplayName, - $customMetricMeasurementUnit, - $customMetricScope - ); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php deleted file mode 100644 index 1c3ce95795b3..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php +++ /dev/null @@ -1,77 +0,0 @@ -setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->createDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - - create_data_stream_sample($formattedParent, $dataStreamType); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php deleted file mode 100644 index 0d6d7dcf27c8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - - // Call the API and handle any network failures. - try { - /** @var FirebaseLink $response */ - $response = $analyticsAdminServiceClient->createFirebaseLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_firebase_link_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php deleted file mode 100644 index 93aff21e7cac..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php +++ /dev/null @@ -1,73 +0,0 @@ -setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - - // Call the API and handle any network failures. - try { - /** @var GoogleAdsLink $response */ - $response = $analyticsAdminServiceClient->createGoogleAdsLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_google_ads_link_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_key_event.php deleted file mode 100644 index dd976e04a716..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_key_event.php +++ /dev/null @@ -1,79 +0,0 @@ -setCountingMethod($keyEventCountingMethod); - $request = (new CreateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var KeyEvent $response */ - $response = $analyticsAdminServiceClient->createKeyEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - create_key_event_sample($keyEventCountingMethod, $formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php deleted file mode 100644 index 7b5c086cf8b1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php +++ /dev/null @@ -1,79 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - create_measurement_protocol_secret_sample($formattedParent, $measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php deleted file mode 100644 index 11567147cbb7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/create_property.php +++ /dev/null @@ -1,85 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->createProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - create_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php deleted file mode 100644 index 6e380dcfad2e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_account.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteAccount($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - delete_account_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php deleted file mode 100644 index 6591b6f586ca..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteConversionEvent($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - delete_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php deleted file mode 100644 index 1be2e976fb43..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteDataStream($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - delete_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php deleted file mode 100644 index 6ff6ffa23f35..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteFirebaseLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - - delete_firebase_link_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php deleted file mode 100644 index c6ec8d839380..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteGoogleAdsLink($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - - delete_google_ads_link_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_key_event.php deleted file mode 100644 index 5a4371f71cd5..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_key_event.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteKeyEvent($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::keyEventName('[PROPERTY]', '[KEY_EVENT]'); - - delete_key_event_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php deleted file mode 100644 index 760a9b6f0a16..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - delete_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php deleted file mode 100644 index e30a938753c7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/delete_property.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->deleteProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - delete_property_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php deleted file mode 100644 index 98490ee9eac7..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_account.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Account $response */ - $response = $analyticsAdminServiceClient->getAccount($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - get_account_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php deleted file mode 100644 index 6133f284247e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->getConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::conversionEventName( - '[PROPERTY]', - '[CONVERSION_EVENT]' - ); - - get_conversion_event_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php deleted file mode 100644 index c5a3248affe9..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->getCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customDimensionName( - '[PROPERTY]', - '[CUSTOM_DIMENSION]' - ); - - get_custom_dimension_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php deleted file mode 100644 index 2dd7f1a59d4e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->getCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - - get_custom_metric_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php deleted file mode 100644 index e7936627d440..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataRetentionSettings $response */ - $response = $analyticsAdminServiceClient->getDataRetentionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataRetentionSettingsName('[PROPERTY]'); - - get_data_retention_settings_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php deleted file mode 100644 index 259c2d1cb2fe..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataSharingSettings $response */ - $response = $analyticsAdminServiceClient->getDataSharingSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataSharingSettingsName('[ACCOUNT]'); - - get_data_sharing_settings_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php deleted file mode 100644 index 2300ec84fe60..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->getDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - get_data_stream_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_key_event.php deleted file mode 100644 index 06134c5a3efc..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_key_event.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var KeyEvent $response */ - $response = $analyticsAdminServiceClient->getKeyEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::keyEventName('[PROPERTY]', '[KEY_EVENT]'); - - get_key_event_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php deleted file mode 100644 index 0ebb9104c73c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::measurementProtocolSecretName( - '[PROPERTY]', - '[DATA_STREAM]', - '[MEASUREMENT_PROTOCOL_SECRET]' - ); - - get_measurement_protocol_secret_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php deleted file mode 100644 index fafff96c507d..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/get_property.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->getProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - get_property_sample($formattedName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php deleted file mode 100644 index 599804da49e8..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php +++ /dev/null @@ -1,62 +0,0 @@ -listAccountSummaries($request); - - /** @var AccountSummary $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php deleted file mode 100644 index 317c64f863ee..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php +++ /dev/null @@ -1,66 +0,0 @@ -listAccounts($request); - - /** @var Account $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php deleted file mode 100644 index d42da7d95a59..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listConversionEvents($request); - - /** @var ConversionEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_conversion_events_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php deleted file mode 100644 index 372836430f4c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listCustomDimensions($request); - - /** @var CustomDimension $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_dimensions_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php deleted file mode 100644 index a7b4446cbf1e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listCustomMetrics($request); - - /** @var CustomMetric $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_custom_metrics_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php deleted file mode 100644 index 899102eb3122..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listDataStreams($request); - - /** @var DataStream $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_data_streams_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php deleted file mode 100644 index b03c5a99a9dd..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listFirebaseLinks($request); - - /** @var FirebaseLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_firebase_links_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php deleted file mode 100644 index ac5a35e9a1c0..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listGoogleAdsLinks($request); - - /** @var GoogleAdsLink $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_google_ads_links_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_key_events.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_key_events.php deleted file mode 100644 index d75224a6b67e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_key_events.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listKeyEvents($request); - - /** @var KeyEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]'); - - list_key_events_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php deleted file mode 100644 index efba09ad5567..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($request); - - /** @var MeasurementProtocolSecret $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - - list_measurement_protocol_secrets_sample($formattedParent); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php deleted file mode 100644 index c7ee888c86f4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/list_properties.php +++ /dev/null @@ -1,95 +0,0 @@ -setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->listProperties($request); - - /** @var Property $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $filter = '[FILTER]'; - - list_properties_sample($filter); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php deleted file mode 100644 index 67f77eac6d49..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php +++ /dev/null @@ -1,57 +0,0 @@ -provisionAccountTicket($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php deleted file mode 100644 index ad5f9019edd4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php +++ /dev/null @@ -1,71 +0,0 @@ -runAccessReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php deleted file mode 100644 index ecfc72d5fcbf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php +++ /dev/null @@ -1,80 +0,0 @@ -setAccount($formattedAccount); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $analyticsAdminServiceClient->searchChangeHistoryEvents($request); - - /** @var ChangeHistoryEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedAccount = AnalyticsAdminServiceClient::accountName('[ACCOUNT]'); - - search_change_history_events_sample($formattedAccount); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php deleted file mode 100644 index e4b3933b39d4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_account.php +++ /dev/null @@ -1,75 +0,0 @@ -setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Account $response */ - $response = $analyticsAdminServiceClient->updateAccount($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $accountDisplayName = '[DISPLAY_NAME]'; - - update_account_sample($accountDisplayName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php deleted file mode 100644 index d5c529473c1b..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php +++ /dev/null @@ -1,63 +0,0 @@ -setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var ConversionEvent $response */ - $response = $analyticsAdminServiceClient->updateConversionEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php deleted file mode 100644 index f1ea6a5b794c..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var CustomDimension $response */ - $response = $analyticsAdminServiceClient->updateCustomDimension($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php deleted file mode 100644 index 54a89a3c1719..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var CustomMetric $response */ - $response = $analyticsAdminServiceClient->updateCustomMetric($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php deleted file mode 100644 index 388d9549bf68..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php +++ /dev/null @@ -1,62 +0,0 @@ -setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DataRetentionSettings $response */ - $response = $analyticsAdminServiceClient->updateDataRetentionSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php deleted file mode 100644 index 0445da831a98..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var DataStream $response */ - $response = $analyticsAdminServiceClient->updateDataStream($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php deleted file mode 100644 index a8a32db43dc1..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var GoogleAdsLink $response */ - $response = $analyticsAdminServiceClient->updateGoogleAdsLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_key_event.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_key_event.php deleted file mode 100644 index 141965b8b344..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_key_event.php +++ /dev/null @@ -1,77 +0,0 @@ -setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $request = (new UpdateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var KeyEvent $response */ - $response = $analyticsAdminServiceClient->updateKeyEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - - update_key_event_sample($keyEventCountingMethod); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php deleted file mode 100644 index ca6bfa77b263..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php +++ /dev/null @@ -1,76 +0,0 @@ -setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var MeasurementProtocolSecret $response */ - $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $measurementProtocolSecretDisplayName = '[DISPLAY_NAME]'; - - update_measurement_protocol_secret_sample($measurementProtocolSecretDisplayName); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php b/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php deleted file mode 100644 index cdecf9feef8e..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/samples/V1beta/AnalyticsAdminServiceClient/update_property.php +++ /dev/null @@ -1,88 +0,0 @@ -setDisplayName($propertyDisplayName) - ->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Property $response */ - $response = $analyticsAdminServiceClient->updateProperty($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $propertyDisplayName = '[DISPLAY_NAME]'; - $propertyTimeZone = '[TIME_ZONE]'; - - update_property_sample($propertyDisplayName, $propertyTimeZone); -} -// [END analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php deleted file mode 100644 index 81c424c46fe4..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/AnalyticsAdminServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ - acknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomDimensionAsync(ArchiveCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface archiveCustomMetricAsync(ArchiveCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConversionEventAsync(CreateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomDimensionAsync(CreateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomMetricAsync(CreateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataStreamAsync(CreateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFirebaseLinkAsync(CreateFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createKeyEventAsync(CreateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPropertyAsync(CreatePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccountAsync(DeleteAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversionEventAsync(DeleteConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataStreamAsync(DeleteDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFirebaseLinkAsync(DeleteFirebaseLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteKeyEventAsync(DeleteKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePropertyAsync(DeletePropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccountAsync(GetAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversionEventAsync(GetConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomDimensionAsync(GetCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomMetricAsync(GetCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataRetentionSettingsAsync(GetDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataSharingSettingsAsync(GetDataSharingSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataStreamAsync(GetDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyEventAsync(GetKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPropertyAsync(GetPropertyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountSummariesAsync(ListAccountSummariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccountsAsync(ListAccountsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversionEventsAsync(ListConversionEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomDimensionsAsync(ListCustomDimensionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomMetricsAsync(ListCustomMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataStreamsAsync(ListDataStreamsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFirebaseLinksAsync(ListFirebaseLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGoogleAdsLinksAsync(ListGoogleAdsLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listKeyEventsAsync(ListKeyEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMeasurementProtocolSecretsAsync(ListMeasurementProtocolSecretsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPropertiesAsync(ListPropertiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface provisionAccountTicketAsync(ProvisionAccountTicketRequest $request, array $optionalArgs = []) - * @method PromiseInterface runAccessReportAsync(RunAccessReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchChangeHistoryEventsAsync(SearchChangeHistoryEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccountAsync(UpdateAccountRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConversionEventAsync(UpdateConversionEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomDimensionAsync(UpdateCustomDimensionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomMetricAsync(UpdateCustomMetricRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataRetentionSettingsAsync(UpdateDataRetentionSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataStreamAsync(UpdateDataStreamRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateKeyEventAsync(UpdateKeyEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = []) - */ -final class AnalyticsAdminServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.analytics.admin.v1beta.AnalyticsAdminService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsadmin.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics.edit', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName(string $account): string - { - return self::getPathTemplate('account')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conversion_event resource. - * - * @param string $property - * @param string $conversionEvent - * - * @return string The formatted conversion_event resource. - * - * @experimental - */ - public static function conversionEventName(string $property, string $conversionEvent): string - { - return self::getPathTemplate('conversionEvent')->render([ - 'property' => $property, - 'conversion_event' => $conversionEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_dimension resource. - * - * @param string $property - * @param string $customDimension - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName(string $property, string $customDimension): string - { - return self::getPathTemplate('customDimension')->render([ - 'property' => $property, - 'custom_dimension' => $customDimension, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * @param string $customMetric - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName(string $property, string $customMetric): string - { - return self::getPathTemplate('customMetric')->render([ - 'property' => $property, - 'custom_metric' => $customMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_retention_settings resource. - * - * @param string $property - * - * @return string The formatted data_retention_settings resource. - * - * @experimental - */ - public static function dataRetentionSettingsName(string $property): string - { - return self::getPathTemplate('dataRetentionSettings')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_sharing_settings resource. - * - * @param string $account - * - * @return string The formatted data_sharing_settings resource. - * - * @experimental - */ - public static function dataSharingSettingsName(string $account): string - { - return self::getPathTemplate('dataSharingSettings')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_stream - * resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_stream resource. - * - * @experimental - */ - public static function dataStreamName(string $property, string $dataStream): string - { - return self::getPathTemplate('dataStream')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * firebase_link resource. - * - * @param string $property - * @param string $firebaseLink - * - * @return string The formatted firebase_link resource. - * - * @experimental - */ - public static function firebaseLinkName(string $property, string $firebaseLink): string - { - return self::getPathTemplate('firebaseLink')->render([ - 'property' => $property, - 'firebase_link' => $firebaseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_ads_link resource. - * - * @param string $property - * @param string $googleAdsLink - * - * @return string The formatted google_ads_link resource. - * - * @experimental - */ - public static function googleAdsLinkName(string $property, string $googleAdsLink): string - { - return self::getPathTemplate('googleAdsLink')->render([ - 'property' => $property, - 'google_ads_link' => $googleAdsLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a key_event - * resource. - * - * @param string $property - * @param string $keyEvent - * - * @return string The formatted key_event resource. - * - * @experimental - */ - public static function keyEventName(string $property, string $keyEvent): string - { - return self::getPathTemplate('keyEvent')->render([ - 'property' => $property, - 'key_event' => $keyEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $dataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName(string $property, string $dataStream, string $measurementProtocolSecret): string - { - return self::getPathTemplate('measurementProtocolSecret')->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'measurement_protocol_secret' => $measurementProtocolSecret, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - * - * @experimental - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName(string $property): string - { - return self::getPathTemplate('property')->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - account: accounts/{account} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions/{custom_dimension} - * - customMetric: properties/{property}/customMetrics/{custom_metric} - * - dataRetentionSettings: properties/{property}/dataRetentionSettings - * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - dataStream: properties/{property}/dataStreams/{data_stream} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - keyEvent: properties/{property}/keyEvents/{key_event} - * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - organization: organizations/{organization} - * - property: properties/{property} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsadmin.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or through this API) before MeasurementProtocolSecret resources may be - * created. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::acknowledgeUserDataCollectionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/acknowledge_user_data_collection.php - * - * @param AcknowledgeUserDataCollectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AcknowledgeUserDataCollectionResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function acknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest $request, array $callOptions = []): AcknowledgeUserDataCollectionResponse - { - return $this->startApiCall('AcknowledgeUserDataCollection', $request, $callOptions)->wait(); - } - - /** - * Archives a CustomDimension on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::archiveCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/archive_custom_dimension.php - * - * @param ArchiveCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function archiveCustomDimension(ArchiveCustomDimensionRequest $request, array $callOptions = []): void - { - $this->startApiCall('ArchiveCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Archives a CustomMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::archiveCustomMetricAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/archive_custom_metric.php - * - * @param ArchiveCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function archiveCustomMetric(ArchiveCustomMetricRequest $request, array $callOptions = []): void - { - $this->startApiCall('ArchiveCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `CreateKeyEvent` instead. - * Creates a conversion event with the specified attributes. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php - * - * @param CreateConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function createConversionEvent(CreateConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('CreateConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Creates a CustomDimension. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php - * - * @param CreateCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCustomDimension(CreateCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('CreateCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Creates a CustomMetric. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createCustomMetricAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php - * - * @param CreateCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCustomMetric(CreateCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('CreateCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Creates a DataStream. - * - * The async variant is {@see AnalyticsAdminServiceClient::createDataStreamAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php - * - * @param CreateDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createDataStream(CreateDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('CreateDataStream', $request, $callOptions)->wait(); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createFirebaseLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php - * - * @param CreateFirebaseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FirebaseLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createFirebaseLink(CreateFirebaseLinkRequest $request, array $callOptions = []): FirebaseLink - { - return $this->startApiCall('CreateFirebaseLink', $request, $callOptions)->wait(); - } - - /** - * Creates a GoogleAdsLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createGoogleAdsLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php - * - * @param CreateGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleAdsLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createGoogleAdsLink(CreateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink - { - return $this->startApiCall('CreateGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Creates a Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::createKeyEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_key_event.php - * - * @param CreateKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return KeyEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createKeyEvent(CreateKeyEventRequest $request, array $callOptions = []): KeyEvent - { - return $this->startApiCall('CreateKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Creates a measurement protocol secret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::createMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php - * - * @param CreateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('CreateMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * - * The async variant is {@see AnalyticsAdminServiceClient::createPropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/create_property.php - * - * @param CreatePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createProperty(CreatePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('CreateProperty', $request, $callOptions)->wait(); - } - - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * AccessBindings) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteAccountAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_account.php - * - * @param DeleteAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteAccount(DeleteAccountRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAccount', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `DeleteKeyEvent` instead. - * Deletes a conversion event in a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_conversion_event.php - * - * @param DeleteConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function deleteConversionEvent(DeleteConversionEventRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Deletes a DataStream on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteDataStreamAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_data_stream.php - * - * @param DeleteDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteDataStream(DeleteDataStreamRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDataStream', $request, $callOptions)->wait(); - } - - /** - * Deletes a FirebaseLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteFirebaseLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_firebase_link.php - * - * @param DeleteFirebaseLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteFirebaseLink(DeleteFirebaseLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFirebaseLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a GoogleAdsLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteGoogleAdsLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_google_ads_link.php - * - * @param DeleteGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Deletes a Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::deleteKeyEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_key_event.php - * - * @param DeleteKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteKeyEvent(DeleteKeyEventRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::deleteMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_measurement_protocol_secret.php - * - * @param DeleteMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Marks target Property as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted properties. - * However, they can be restored using the Trash Can UI. - * - * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - * will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found, or is not a GA4 Property. - * - * The async variant is {@see AnalyticsAdminServiceClient::deletePropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/delete_property.php - * - * @param DeletePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteProperty(DeletePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('DeleteProperty', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single Account. - * - * The async variant is {@see AnalyticsAdminServiceClient::getAccountAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_account.php - * - * @param GetAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Account - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAccount(GetAccountRequest $request, array $callOptions = []): Account - { - return $this->startApiCall('GetAccount', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `GetKeyEvent` instead. - * Retrieve a single conversion event. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_conversion_event.php - * - * @param GetConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function getConversionEvent(GetConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('GetConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single CustomDimension. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_custom_dimension.php - * - * @param GetCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCustomDimension(GetCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('GetCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single CustomMetric. - * - * The async variant is {@see AnalyticsAdminServiceClient::getCustomMetricAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_custom_metric.php - * - * @param GetCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCustomMetric(GetCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('GetCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Returns the singleton data retention settings for this property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDataRetentionSettingsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_retention_settings.php - * - * @param GetDataRetentionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRetentionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataRetentionSettings(GetDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings - { - return $this->startApiCall('GetDataRetentionSettings', $request, $callOptions)->wait(); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getDataSharingSettingsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_sharing_settings.php - * - * @param GetDataSharingSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataSharingSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataSharingSettings(GetDataSharingSettingsRequest $request, array $callOptions = []): DataSharingSettings - { - return $this->startApiCall('GetDataSharingSettings', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single DataStream. - * - * The async variant is {@see AnalyticsAdminServiceClient::getDataStreamAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_data_stream.php - * - * @param GetDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getDataStream(GetDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('GetDataStream', $request, $callOptions)->wait(); - } - - /** - * Retrieve a single Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::getKeyEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_key_event.php - * - * @param GetKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return KeyEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getKeyEvent(GetKeyEventRequest $request, array $callOptions = []): KeyEvent - { - return $this->startApiCall('GetKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::getMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_measurement_protocol_secret.php - * - * @param GetMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('GetMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single "GA4" Property. - * - * The async variant is {@see AnalyticsAdminServiceClient::getPropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/get_property.php - * - * @param GetPropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getProperty(GetPropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('GetProperty', $request, $callOptions)->wait(); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listAccountSummariesAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_account_summaries.php - * - * @param ListAccountSummariesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAccountSummaries(ListAccountSummariesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccountSummaries', $request, $callOptions); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listAccountsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_accounts.php - * - * @param ListAccountsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAccounts(ListAccountsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccounts', $request, $callOptions); - } - - /** - * Deprecated: Use `ListKeyEvents` instead. - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listConversionEventsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_conversion_events.php - * - * @param ListConversionEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function listConversionEvents(ListConversionEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConversionEvents', $request, $callOptions); - } - - /** - * Lists CustomDimensions on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listCustomDimensionsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_custom_dimensions.php - * - * @param ListCustomDimensionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCustomDimensions(ListCustomDimensionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomDimensions', $request, $callOptions); - } - - /** - * Lists CustomMetrics on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listCustomMetricsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_custom_metrics.php - * - * @param ListCustomMetricsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCustomMetrics(ListCustomMetricsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomMetrics', $request, $callOptions); - } - - /** - * Lists DataStreams on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::listDataStreamsAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_data_streams.php - * - * @param ListDataStreamsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listDataStreams(ListDataStreamsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataStreams', $request, $callOptions); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listFirebaseLinksAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_firebase_links.php - * - * @param ListFirebaseLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listFirebaseLinks(ListFirebaseLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFirebaseLinks', $request, $callOptions); - } - - /** - * Lists GoogleAdsLinks on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listGoogleAdsLinksAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_google_ads_links.php - * - * @param ListGoogleAdsLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listGoogleAdsLinks(ListGoogleAdsLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGoogleAdsLinks', $request, $callOptions); - } - - /** - * Returns a list of Key Events in the specified parent property. - * Returns an empty list if no Key Events are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listKeyEventsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_key_events.php - * - * @param ListKeyEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listKeyEvents(ListKeyEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListKeyEvents', $request, $callOptions); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::listMeasurementProtocolSecretsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_measurement_protocol_secrets.php - * - * @param ListMeasurementProtocolSecretsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMeasurementProtocolSecrets', $request, $callOptions); - } - - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * The async variant is {@see AnalyticsAdminServiceClient::listPropertiesAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/list_properties.php - * - * @param ListPropertiesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listProperties(ListPropertiesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProperties', $request, $callOptions); - } - - /** - * Requests a ticket for creating an account. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::provisionAccountTicketAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/provision_account_ticket.php - * - * @param ProvisionAccountTicketRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProvisionAccountTicketResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function provisionAccountTicket(ProvisionAccountTicketRequest $request, array $callOptions = []): ProvisionAccountTicketResponse - { - return $this->startApiCall('ProvisionAccountTicket', $request, $callOptions)->wait(); - } - - /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. Reports may be - * requested for any property, but dimensions that aren't related to quota can - * only be requested on Google Analytics 360 properties. This method is only - * available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - * - * The async variant is {@see AnalyticsAdminServiceClient::runAccessReportAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/run_access_report.php - * - * @param RunAccessReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunAccessReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runAccessReport(RunAccessReportRequest $request, array $callOptions = []): RunAccessReportResponse - { - return $this->startApiCall('RunAccessReport', $request, $callOptions)->wait(); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::searchChangeHistoryEventsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/search_change_history_events.php - * - * @param SearchChangeHistoryEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function searchChangeHistoryEvents(SearchChangeHistoryEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchChangeHistoryEvents', $request, $callOptions); - } - - /** - * Updates an account. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateAccountAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_account.php - * - * @param UpdateAccountRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Account - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateAccount(UpdateAccountRequest $request, array $callOptions = []): Account - { - return $this->startApiCall('UpdateAccount', $request, $callOptions)->wait(); - } - - /** - * Deprecated: Use `UpdateKeyEvent` instead. - * Updates a conversion event with the specified attributes. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateConversionEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_conversion_event.php - * - * @param UpdateConversionEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConversionEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function updateConversionEvent(UpdateConversionEventRequest $request, array $callOptions = []): ConversionEvent - { - return $this->startApiCall('UpdateConversionEvent', $request, $callOptions)->wait(); - } - - /** - * Updates a CustomDimension on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateCustomDimensionAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php - * - * @param UpdateCustomDimensionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomDimension - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateCustomDimension(UpdateCustomDimensionRequest $request, array $callOptions = []): CustomDimension - { - return $this->startApiCall('UpdateCustomDimension', $request, $callOptions)->wait(); - } - - /** - * Updates a CustomMetric on a property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateCustomMetricAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php - * - * @param UpdateCustomMetricRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomMetric - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateCustomMetric(UpdateCustomMetricRequest $request, array $callOptions = []): CustomMetric - { - return $this->startApiCall('UpdateCustomMetric', $request, $callOptions)->wait(); - } - - /** - * Updates the singleton data retention settings for this property. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateDataRetentionSettingsAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php - * - * @param UpdateDataRetentionSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataRetentionSettings - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataRetentionSettings(UpdateDataRetentionSettingsRequest $request, array $callOptions = []): DataRetentionSettings - { - return $this->startApiCall('UpdateDataRetentionSettings', $request, $callOptions)->wait(); - } - - /** - * Updates a DataStream on a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateDataStreamAsync()} - * . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php - * - * @param UpdateDataStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStream - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateDataStream(UpdateDataStreamRequest $request, array $callOptions = []): DataStream - { - return $this->startApiCall('UpdateDataStream', $request, $callOptions)->wait(); - } - - /** - * Updates a GoogleAdsLink on a property - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateGoogleAdsLinkAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php - * - * @param UpdateGoogleAdsLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleAdsLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateGoogleAdsLink(UpdateGoogleAdsLinkRequest $request, array $callOptions = []): GoogleAdsLink - { - return $this->startApiCall('UpdateGoogleAdsLink', $request, $callOptions)->wait(); - } - - /** - * Updates a Key Event. - * - * The async variant is {@see AnalyticsAdminServiceClient::updateKeyEventAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_key_event.php - * - * @param UpdateKeyEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return KeyEvent - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateKeyEvent(UpdateKeyEventRequest $request, array $callOptions = []): KeyEvent - { - return $this->startApiCall('UpdateKeyEvent', $request, $callOptions)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * The async variant is - * {@see AnalyticsAdminServiceClient::updateMeasurementProtocolSecretAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php - * - * @param UpdateMeasurementProtocolSecretRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MeasurementProtocolSecret - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest $request, array $callOptions = []): MeasurementProtocolSecret - { - return $this->startApiCall('UpdateMeasurementProtocolSecret', $request, $callOptions)->wait(); - } - - /** - * Updates a property. - * - * The async variant is {@see AnalyticsAdminServiceClient::updatePropertyAsync()} . - * - * @example samples/V1beta/AnalyticsAdminServiceClient/update_property.php - * - * @param UpdatePropertyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Property - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateProperty(UpdatePropertyRequest $request, array $callOptions = []): Property - { - return $this->startApiCall('UpdateProperty', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php deleted file mode 100644 index dd9413e70a47..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php +++ /dev/null @@ -1,3678 +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 - * - * @deprecated Please use the new service client {@see \Google\Analytics\Admin\V1beta\Client\AnalyticsAdminServiceClient}. - */ -class AnalyticsAdminServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.analytics.admin.v1beta.AnalyticsAdminService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'analyticsadmin.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsadmin.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics.edit', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private static $accountNameTemplate; - - private static $conversionEventNameTemplate; - - private static $customDimensionNameTemplate; - - private static $customMetricNameTemplate; - - private static $dataRetentionSettingsNameTemplate; - - private static $dataSharingSettingsNameTemplate; - - private static $dataStreamNameTemplate; - - private static $firebaseLinkNameTemplate; - - private static $googleAdsLinkNameTemplate; - - private static $keyEventNameTemplate; - - private static $measurementProtocolSecretNameTemplate; - - private static $organizationNameTemplate; - - private static $propertyNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/analytics_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/analytics_admin_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getAccountNameTemplate() - { - if (self::$accountNameTemplate == null) { - self::$accountNameTemplate = new PathTemplate('accounts/{account}'); - } - - return self::$accountNameTemplate; - } - - private static function getConversionEventNameTemplate() - { - if (self::$conversionEventNameTemplate == null) { - self::$conversionEventNameTemplate = new PathTemplate('properties/{property}/conversionEvents/{conversion_event}'); - } - - return self::$conversionEventNameTemplate; - } - - private static function getCustomDimensionNameTemplate() - { - if (self::$customDimensionNameTemplate == null) { - self::$customDimensionNameTemplate = new PathTemplate('properties/{property}/customDimensions/{custom_dimension}'); - } - - return self::$customDimensionNameTemplate; - } - - private static function getCustomMetricNameTemplate() - { - if (self::$customMetricNameTemplate == null) { - self::$customMetricNameTemplate = new PathTemplate('properties/{property}/customMetrics/{custom_metric}'); - } - - return self::$customMetricNameTemplate; - } - - private static function getDataRetentionSettingsNameTemplate() - { - if (self::$dataRetentionSettingsNameTemplate == null) { - self::$dataRetentionSettingsNameTemplate = new PathTemplate('properties/{property}/dataRetentionSettings'); - } - - return self::$dataRetentionSettingsNameTemplate; - } - - private static function getDataSharingSettingsNameTemplate() - { - if (self::$dataSharingSettingsNameTemplate == null) { - self::$dataSharingSettingsNameTemplate = new PathTemplate('accounts/{account}/dataSharingSettings'); - } - - return self::$dataSharingSettingsNameTemplate; - } - - private static function getDataStreamNameTemplate() - { - if (self::$dataStreamNameTemplate == null) { - self::$dataStreamNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}'); - } - - return self::$dataStreamNameTemplate; - } - - private static function getFirebaseLinkNameTemplate() - { - if (self::$firebaseLinkNameTemplate == null) { - self::$firebaseLinkNameTemplate = new PathTemplate('properties/{property}/firebaseLinks/{firebase_link}'); - } - - return self::$firebaseLinkNameTemplate; - } - - private static function getGoogleAdsLinkNameTemplate() - { - if (self::$googleAdsLinkNameTemplate == null) { - self::$googleAdsLinkNameTemplate = new PathTemplate('properties/{property}/googleAdsLinks/{google_ads_link}'); - } - - return self::$googleAdsLinkNameTemplate; - } - - private static function getKeyEventNameTemplate() - { - if (self::$keyEventNameTemplate == null) { - self::$keyEventNameTemplate = new PathTemplate('properties/{property}/keyEvents/{key_event}'); - } - - return self::$keyEventNameTemplate; - } - - private static function getMeasurementProtocolSecretNameTemplate() - { - if (self::$measurementProtocolSecretNameTemplate == null) { - self::$measurementProtocolSecretNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}'); - } - - return self::$measurementProtocolSecretNameTemplate; - } - - private static function getOrganizationNameTemplate() - { - if (self::$organizationNameTemplate == null) { - self::$organizationNameTemplate = new PathTemplate('organizations/{organization}'); - } - - return self::$organizationNameTemplate; - } - - private static function getPropertyNameTemplate() - { - if (self::$propertyNameTemplate == null) { - self::$propertyNameTemplate = new PathTemplate('properties/{property}'); - } - - return self::$propertyNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'account' => self::getAccountNameTemplate(), - 'conversionEvent' => self::getConversionEventNameTemplate(), - 'customDimension' => self::getCustomDimensionNameTemplate(), - 'customMetric' => self::getCustomMetricNameTemplate(), - 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), - 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), - 'dataStream' => self::getDataStreamNameTemplate(), - 'firebaseLink' => self::getFirebaseLinkNameTemplate(), - 'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(), - 'keyEvent' => self::getKeyEventNameTemplate(), - 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), - 'organization' => self::getOrganizationNameTemplate(), - 'property' => self::getPropertyNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName($account) - { - return self::getAccountNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conversion_event resource. - * - * @param string $property - * @param string $conversionEvent - * - * @return string The formatted conversion_event resource. - * - * @experimental - */ - public static function conversionEventName($property, $conversionEvent) - { - return self::getConversionEventNameTemplate()->render([ - 'property' => $property, - 'conversion_event' => $conversionEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_dimension resource. - * - * @param string $property - * @param string $customDimension - * - * @return string The formatted custom_dimension resource. - * - * @experimental - */ - public static function customDimensionName($property, $customDimension) - { - return self::getCustomDimensionNameTemplate()->render([ - 'property' => $property, - 'custom_dimension' => $customDimension, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_metric resource. - * - * @param string $property - * @param string $customMetric - * - * @return string The formatted custom_metric resource. - * - * @experimental - */ - public static function customMetricName($property, $customMetric) - { - return self::getCustomMetricNameTemplate()->render([ - 'property' => $property, - 'custom_metric' => $customMetric, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_retention_settings resource. - * - * @param string $property - * - * @return string The formatted data_retention_settings resource. - * - * @experimental - */ - public static function dataRetentionSettingsName($property) - { - return self::getDataRetentionSettingsNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_sharing_settings resource. - * - * @param string $account - * - * @return string The formatted data_sharing_settings resource. - * - * @experimental - */ - public static function dataSharingSettingsName($account) - { - return self::getDataSharingSettingsNameTemplate()->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_stream - * resource. - * - * @param string $property - * @param string $dataStream - * - * @return string The formatted data_stream resource. - * - * @experimental - */ - public static function dataStreamName($property, $dataStream) - { - return self::getDataStreamNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * firebase_link resource. - * - * @param string $property - * @param string $firebaseLink - * - * @return string The formatted firebase_link resource. - * - * @experimental - */ - public static function firebaseLinkName($property, $firebaseLink) - { - return self::getFirebaseLinkNameTemplate()->render([ - 'property' => $property, - 'firebase_link' => $firebaseLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_ads_link resource. - * - * @param string $property - * @param string $googleAdsLink - * - * @return string The formatted google_ads_link resource. - * - * @experimental - */ - public static function googleAdsLinkName($property, $googleAdsLink) - { - return self::getGoogleAdsLinkNameTemplate()->render([ - 'property' => $property, - 'google_ads_link' => $googleAdsLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a key_event - * resource. - * - * @param string $property - * @param string $keyEvent - * - * @return string The formatted key_event resource. - * - * @experimental - */ - public static function keyEventName($property, $keyEvent) - { - return self::getKeyEventNameTemplate()->render([ - 'property' => $property, - 'key_event' => $keyEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * measurement_protocol_secret resource. - * - * @param string $property - * @param string $dataStream - * @param string $measurementProtocolSecret - * - * @return string The formatted measurement_protocol_secret resource. - * - * @experimental - */ - public static function measurementProtocolSecretName($property, $dataStream, $measurementProtocolSecret) - { - return self::getMeasurementProtocolSecretNameTemplate()->render([ - 'property' => $property, - 'data_stream' => $dataStream, - 'measurement_protocol_secret' => $measurementProtocolSecret, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - * - * @experimental - */ - public static function organizationName($organization) - { - return self::getOrganizationNameTemplate()->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName($property) - { - return self::getPropertyNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - account: accounts/{account} - * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} - * - customDimension: properties/{property}/customDimensions/{custom_dimension} - * - customMetric: properties/{property}/customMetrics/{custom_metric} - * - dataRetentionSettings: properties/{property}/dataRetentionSettings - * - dataSharingSettings: accounts/{account}/dataSharingSettings - * - dataStream: properties/{property}/dataStreams/{data_stream} - * - firebaseLink: properties/{property}/firebaseLinks/{firebase_link} - * - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link} - * - keyEvent: properties/{property}/keyEvents/{key_event} - * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} - * - organization: organizations/{organization} - * - property: properties/{property} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsadmin.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Acknowledges the terms of user data collection for the specified property. - * - * This acknowledgement must be completed (either in the Google Analytics UI - * or through this API) before MeasurementProtocolSecret resources may be - * created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $acknowledgement = 'acknowledgement'; - * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $property Required. The property for which to acknowledge user data collection. - * @param string $acknowledgement Required. An acknowledgement that the caller of this method understands the - * terms of user data collection. - * - * This field must contain the exact value: - * "I acknowledge that I have the necessary privacy disclosures and rights - * from my end users for the collection and processing of their data, - * including the association of such data with the visitation information - * Google Analytics collects from my site and/or app property." - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\AcknowledgeUserDataCollectionResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function acknowledgeUserDataCollection($property, $acknowledgement, array $optionalArgs = []) - { - $request = new AcknowledgeUserDataCollectionRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setAcknowledgement($acknowledgement); - $requestParamHeaders['property'] = $property; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('AcknowledgeUserDataCollection', AcknowledgeUserDataCollectionResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $analyticsAdminServiceClient->archiveCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to archive. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomDimension($name, array $optionalArgs = []) - { - $request = new ArchiveCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomDimension', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Archives a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $analyticsAdminServiceClient->archiveCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to archive. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function archiveCustomMetric($name, array $optionalArgs = []) - { - $request = new ArchiveCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `CreateKeyEvent` instead. - * Creates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->createConversionEvent($conversionEvent, $formattedParent); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to create. - * @param string $parent Required. The resource name of the parent property where this conversion - * event will be created. Format: properties/123 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function createConversionEvent($conversionEvent, $parent, array $optionalArgs = []) - { - $request = new CreateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customDimension = new CustomDimension(); - * $response = $analyticsAdminServiceClient->createCustomDimension($formattedParent, $customDimension); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomDimension $customDimension Required. The CustomDimension to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomDimension($parent, $customDimension, array $optionalArgs = []) - { - $request = new CreateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomDimension($customDimension); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $customMetric = new CustomMetric(); - * $response = $analyticsAdminServiceClient->createCustomMetric($formattedParent, $customMetric); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param CustomMetric $customMetric Required. The CustomMetric to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createCustomMetric($parent, $customMetric, array $optionalArgs = []) - { - $request = new CreateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setCustomMetric($customMetric); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $dataStream = new DataStream(); - * $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param DataStream $dataStream Required. The DataStream to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createDataStream($parent, $dataStream, array $optionalArgs = []) - { - $request = new CreateDataStreamRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setDataStream($dataStream); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a FirebaseLink. - * - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $firebaseLink = new FirebaseLink(); - * $response = $analyticsAdminServiceClient->createFirebaseLink($formattedParent, $firebaseLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * @param FirebaseLink $firebaseLink Required. The Firebase link to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\FirebaseLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createFirebaseLink($parent, $firebaseLink, array $optionalArgs = []) - { - $request = new CreateFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setFirebaseLink($firebaseLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a GoogleAdsLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $googleAdsLink = new GoogleAdsLink(); - * $response = $analyticsAdminServiceClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param GoogleAdsLink $googleAdsLink Required. The GoogleAdsLink to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createGoogleAdsLink($parent, $googleAdsLink, array $optionalArgs = []) - { - $request = new CreateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setGoogleAdsLink($googleAdsLink); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $keyEvent = new KeyEvent(); - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->createKeyEvent($keyEvent, $formattedParent); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param KeyEvent $keyEvent Required. The Key Event to create. - * @param string $parent Required. The resource name of the parent property where this Key Event - * will be created. Format: properties/123 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\KeyEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createKeyEvent($keyEvent, $parent, array $optionalArgs = []) - { - $request = new CreateKeyEventRequest(); - $requestParamHeaders = []; - $request->setKeyEvent($keyEvent); - $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('CreateKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $response = $analyticsAdminServiceClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this secret will be created. - * Format: properties/{property}/dataStreams/{dataStream} - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createMeasurementProtocolSecret($parent, $measurementProtocolSecret, array $optionalArgs = []) - { - $request = new CreateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an "GA4" property with the specified location and attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $response = $analyticsAdminServiceClient->createProperty($property); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to create. - * Note: the supplied property must specify its parent. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createProperty($property, array $optionalArgs = []) - { - $request = new CreatePropertyRequest(); - $request->setProperty($property); - return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Account as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted accounts. - * However, they can be restored using the Trash Can UI. - * - * If the accounts are not restored before the expiration time, the account - * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * AccessBindings) will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $analyticsAdminServiceClient->deleteAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Account to soft-delete. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteAccount($name, array $optionalArgs = []) - { - $request = new DeleteAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteAccount', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `DeleteKeyEvent` instead. - * Deletes a conversion event in a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $analyticsAdminServiceClient->deleteConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to delete. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function deleteConversionEvent($name, array $optionalArgs = []) - { - $request = new DeleteConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteConversionEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $analyticsAdminServiceClient->deleteDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to delete. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteDataStream($name, array $optionalArgs = []) - { - $request = new DeleteDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteDataStream', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a FirebaseLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * - * Example: `properties/1234/firebaseLinks/5678` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteFirebaseLink($name, array $optionalArgs = []) - { - $request = new DeleteFirebaseLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteFirebaseLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - * $analyticsAdminServiceClient->deleteGoogleAdsLink($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. Example format: properties/1234/googleAdsLinks/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteGoogleAdsLink($name, array $optionalArgs = []) - { - $request = new DeleteGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteGoogleAdsLink', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - * $analyticsAdminServiceClient->deleteKeyEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the Key Event to delete. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteKeyEvent($name, array $optionalArgs = []) - { - $request = new DeleteKeyEventRequest(); - $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('DeleteKeyEvent', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes target MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $analyticsAdminServiceClient->deleteMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the MeasurementProtocolSecret to delete. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new DeleteMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteMeasurementProtocolSecret', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Marks target Property as soft-deleted (ie: "trashed") and returns it. - * - * This API does not have a method to restore soft-deleted properties. - * However, they can be restored using the Trash Can UI. - * - * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - * will be permanently purged. - * https://support.google.com/analytics/answer/6154772 - * - * Returns an error if the target is not found, or is not a GA4 Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->deleteProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the Property to soft-delete. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteProperty($name, array $optionalArgs = []) - { - $request = new DeletePropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single Account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getAccount($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the account to lookup. - * Format: accounts/{account} - * Example: "accounts/100" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAccount($name, array $optionalArgs = []) - { - $request = new GetAccountRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `GetKeyEvent` instead. - * Retrieve a single conversion event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - * $response = $analyticsAdminServiceClient->getConversionEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the conversion event to retrieve. - * Format: properties/{property}/conversionEvents/{conversion_event} - * Example: "properties/123/conversionEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function getConversionEvent($name, array $optionalArgs = []) - { - $request = new GetConversionEventRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomDimension. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - * $response = $analyticsAdminServiceClient->getCustomDimension($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomDimension to get. - * Example format: properties/1234/customDimensions/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomDimension($name, array $optionalArgs = []) - { - $request = new GetCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single CustomMetric. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - * $response = $analyticsAdminServiceClient->getCustomMetric($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the CustomMetric to get. - * Example format: properties/1234/customMetrics/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getCustomMetric($name, array $optionalArgs = []) - { - $request = new GetCustomMetricRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataRetentionSettingsName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getDataRetentionSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: - * properties/{property}/dataRetentionSettings - * Example: "properties/1000/dataRetentionSettings" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataRetentionSettings($name, array $optionalArgs = []) - { - $request = new GetDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Get data sharing settings on an account. - * Data sharing settings are singletons. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataSharingSettingsName('[ACCOUNT]'); - * $response = $analyticsAdminServiceClient->getDataSharingSettings($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the settings to lookup. - * Format: accounts/{account}/dataSharingSettings - * - * Example: `accounts/1000/dataSharingSettings` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataSharingSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataSharingSettings($name, array $optionalArgs = []) - { - $request = new GetDataSharingSettingsRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single DataStream. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * $response = $analyticsAdminServiceClient->getDataStream($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the DataStream to get. - * Example format: properties/1234/dataStreams/5678 - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getDataStream($name, array $optionalArgs = []) - { - $request = new GetDataStreamRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieve a single Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - * $response = $analyticsAdminServiceClient->getKeyEvent($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the Key Event to retrieve. - * Format: properties/{property}/keyEvents/{key_event} - * Example: "properties/123/keyEvents/456" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\KeyEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getKeyEvent($name, array $optionalArgs = []) - { - $request = new GetKeyEventRequest(); - $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('GetKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - * $response = $analyticsAdminServiceClient->getMeasurementProtocolSecret($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the measurement protocol secret to lookup. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getMeasurementProtocolSecret($name, array $optionalArgs = []) - { - $request = new GetMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Lookup for a single "GA4" Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedName = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * $response = $analyticsAdminServiceClient->getProperty($formattedName); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the property to lookup. - * Format: properties/{property_id} - * Example: "properties/1000" - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getProperty($name, array $optionalArgs = []) - { - $request = new GetPropertyRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetProperty', Property::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns summaries of all accounts accessible by the caller. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccountSummaries(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccountSummaries(array $optionalArgs = []) - { - $request = new ListAccountSummariesRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - return $this->getPagedListResponse('ListAccountSummaries', $optionalArgs, ListAccountSummariesResponse::class, $request); - } - - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listAccounts(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAccounts(array $optionalArgs = []) - { - $request = new ListAccountsRequest(); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListAccounts', $optionalArgs, ListAccountsResponse::class, $request); - } - - /** - * Deprecated: Use `ListKeyEvents` instead. - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listConversionEvents($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function listConversionEvents($parent, array $optionalArgs = []) - { - $request = new ListConversionEventsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListConversionEvents', $optionalArgs, ListConversionEventsResponse::class, $request); - } - - /** - * Lists CustomDimensions on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomDimensions($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomDimensions($parent, array $optionalArgs = []) - { - $request = new ListCustomDimensionsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomDimensions', $optionalArgs, ListCustomDimensionsResponse::class, $request); - } - - /** - * Lists CustomMetrics on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listCustomMetrics($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listCustomMetrics($parent, array $optionalArgs = []) - { - $request = new ListCustomMetricsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListCustomMetrics', $optionalArgs, ListCustomMetricsResponse::class, $request); - } - - /** - * Lists DataStreams on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listDataStreams($parent, array $optionalArgs = []) - { - $request = new ListDataStreamsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListDataStreams', $optionalArgs, ListDataStreamsResponse::class, $request); - } - - /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listFirebaseLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Format: properties/{property_id} - * - * Example: `properties/1234` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listFirebaseLinks($parent, array $optionalArgs = []) - { - $request = new ListFirebaseLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListFirebaseLinks', $optionalArgs, ListFirebaseLinksResponse::class, $request); - } - - /** - * Lists GoogleAdsLinks on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listGoogleAdsLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: properties/1234 - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listGoogleAdsLinks($parent, array $optionalArgs = []) - { - $request = new ListGoogleAdsLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListGoogleAdsLinks', $optionalArgs, ListGoogleAdsLinksResponse::class, $request); - } - - /** - * Returns a list of Key Events in the specified parent property. - * Returns an empty list if no Key Events are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listKeyEvents($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listKeyEvents($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent property. - * Example: 'properties/123' - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listKeyEvents($parent, array $optionalArgs = []) - { - $request = new ListKeyEventsRequest(); - $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('ListKeyEvents', $optionalArgs, ListKeyEventsResponse::class, $request); - } - - /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listMeasurementProtocolSecrets($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listMeasurementProtocolSecrets($parent, array $optionalArgs = []) - { - $request = new ListMeasurementProtocolSecretsRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListMeasurementProtocolSecrets', $optionalArgs, ListMeasurementProtocolSecretsResponse::class, $request); - } - - /** - * Returns child Properties under the specified parent Account. - * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $filter = 'filter'; - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listProperties($filter); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $filter Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type bool $showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listProperties($filter, array $optionalArgs = []) - { - $request = new ListPropertiesRequest(); - $request->setFilter($filter); - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['showDeleted'])) { - $request->setShowDeleted($optionalArgs['showDeleted']); - } - - return $this->getPagedListResponse('ListProperties', $optionalArgs, ListPropertiesResponse::class, $request); - } - - /** - * Requests a ticket for creating an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->provisionAccountTicket(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type Account $account - * The account to create. - * @type string $redirectUri - * Redirect URI where the user will be sent after accepting Terms of Service. - * Must be configured in Cloud Console as a Redirect URI. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ProvisionAccountTicketResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function provisionAccountTicket(array $optionalArgs = []) - { - $request = new ProvisionAccountTicketRequest(); - if (isset($optionalArgs['account'])) { - $request->setAccount($optionalArgs['account']); - } - - if (isset($optionalArgs['redirectUri'])) { - $request->setRedirectUri($optionalArgs['redirectUri']); - } - - return $this->startCall('ProvisionAccountTicket', ProvisionAccountTicketResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of data access records. The report provides - * records of each time a user reads Google Analytics reporting data. Access - * records are retained for up to 2 years. - * - * Data Access Reports can be requested for a property. Reports may be - * requested for any property, but dimensions that aren't related to quota can - * only be requested on Google Analytics 360 properties. This method is only - * available to Administrators. - * - * These data access records include GA4 UI Reporting, GA4 UI Explorations, - * GA4 Data API, and other products like Firebase & Admob that can retrieve - * data from Google Analytics through a linkage. These records don't include - * property configuration changes like adding a stream or changing a - * property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $response = $analyticsAdminServiceClient->runAccessReport(); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $entity - * The Data Access Report supports requesting at the property level or account - * level. If requested at the account level, Data Access Reports include all - * access for all properties under that account. - * - * To request at the property level, entity should be for example - * 'properties/123' if "123" is your GA4 property ID. To request at the - * account level, entity should be for example 'accounts/1234' if "1234" is - * your GA4 Account ID. - * @type AccessDimension[] $dimensions - * The dimensions requested and displayed in the response. Requests are - * allowed up to 9 dimensions. - * @type AccessMetric[] $metrics - * The metrics requested and displayed in the response. Requests are allowed - * up to 10 metrics. - * @type AccessDateRange[] $dateRanges - * Date ranges of access records to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the access records for the overlapping days is - * included in the response rows for both date ranges. Requests are allowed up - * to 2 date ranges. - * @type AccessFilterExpression $dimensionFilter - * Dimension filters let you restrict report response to specific - * dimension values which match the filter. For example, filtering on access - * records of a single user. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type AccessFilterExpression $metricFilter - * Metric filters allow you to restrict report response to specific metric - * values which match the filter. Metric filters are applied after aggregating - * the report's rows, similar to SQL having-clause. Dimensions cannot be used - * in this filter. - * @type int $offset - * The row count of the start row. The first row is counted as row 0. If - * offset is unspecified, it is treated as 0. If offset is zero, then this - * method will return the first page of results with `limit` entries. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API may return fewer rows than the requested `limit`, if there aren't - * as many remaining rows as the `limit`. For instance, there are fewer than - * 300 possible values for the dimension `country`, so when reporting on only - * `country`, you can't get more than 300 rows, even if you set `limit` to a - * higher value. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type string $timeZone - * This request's time zone if specified. If unspecified, the property's time - * zone is used. The request's time zone is used to interpret the start & end - * dates of the report. - * - * Formatted as strings from the IANA Time Zone database - * (https://www.iana.org/time-zones); for example "America/New_York" or - * "Asia/Tokyo". - * @type AccessOrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type bool $returnEntityQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - * requests, this field must be false. - * @type bool $includeAllUsers - * Optional. Determines whether to include users who have never made an API - * call in the response. If true, all users with access to the specified - * property or account are included in the response, regardless of whether - * they have made an API call or not. If false, only the users who have made - * an API call will be included. - * @type bool $expandGroups - * Optional. Decides whether to return the users within user groups. This - * field works only when include_all_users is set to true. If true, it will - * return all users with access to the specified property or account. - * If false, only the users with direct access will be returned. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\RunAccessReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runAccessReport(array $optionalArgs = []) - { - $request = new RunAccessReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['entity'])) { - $request->setEntity($optionalArgs['entity']); - $requestParamHeaders['entity'] = $optionalArgs['entity']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['timeZone'])) { - $request->setTimeZone($optionalArgs['timeZone']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['returnEntityQuota'])) { - $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); - } - - if (isset($optionalArgs['includeAllUsers'])) { - $request->setIncludeAllUsers($optionalArgs['includeAllUsers']); - } - - if (isset($optionalArgs['expandGroups'])) { - $request->setExpandGroups($optionalArgs['expandGroups']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedAccount = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->searchChangeHistoryEvents($formattedAccount); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $account Required. The account resource for which to return change history - * resources. Format: accounts/{account} - * - * Example: `accounts/100` - * @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. - * Format: properties/{propertyId} - * - * Example: `properties/100` - * @type int[] $resourceType - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1beta\ChangeHistoryResourceType} - * @type int[] $action - * Optional. If set, only return changes that match one or more of these types - * of actions. - * For allowed values, use constants defined on {@see \Google\Analytics\Admin\V1beta\ActionType} - * @type string[] $actorEmail - * Optional. If set, only return changes if they are made by a user in this - * list. - * @type Timestamp $earliestChangeTime - * Optional. If set, only return changes made after this time (inclusive). - * @type Timestamp $latestChangeTime - * Optional. If set, only return changes made before this time (inclusive). - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function searchChangeHistoryEvents($account, array $optionalArgs = []) - { - $request = new SearchChangeHistoryEventsRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $requestParamHeaders['account'] = $account; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - } - - if (isset($optionalArgs['resourceType'])) { - $request->setResourceType($optionalArgs['resourceType']); - } - - if (isset($optionalArgs['action'])) { - $request->setAction($optionalArgs['action']); - } - - if (isset($optionalArgs['actorEmail'])) { - $request->setActorEmail($optionalArgs['actorEmail']); - } - - if (isset($optionalArgs['earliestChangeTime'])) { - $request->setEarliestChangeTime($optionalArgs['earliestChangeTime']); - } - - if (isset($optionalArgs['latestChangeTime'])) { - $request->setLatestChangeTime($optionalArgs['latestChangeTime']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('SearchChangeHistoryEvents', $optionalArgs, SearchChangeHistoryEventsResponse::class, $request); - } - - /** - * Updates an account. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $account = new Account(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateAccount($account, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Account $account Required. The account to update. - * The account's `name` field is used to identify the account. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (for example, "field_to_update"). Omitted fields will not be updated. - * To replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Account - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateAccount($account, $updateMask, array $optionalArgs = []) - { - $request = new UpdateAccountRequest(); - $requestParamHeaders = []; - $request->setAccount($account); - $request->setUpdateMask($updateMask); - $requestParamHeaders['account.name'] = $account->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateAccount', Account::class, $optionalArgs, $request)->wait(); - } - - /** - * Deprecated: Use `UpdateKeyEvent` instead. - * Updates a conversion event with the specified attributes. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $conversionEvent = new ConversionEvent(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateConversionEvent($conversionEvent, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param ConversionEvent $conversionEvent Required. The conversion event to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\ConversionEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - * - * @deprecated This method will be removed in the next major version update. - */ - public function updateConversionEvent($conversionEvent, $updateMask, array $optionalArgs = []) - { - $request = new UpdateConversionEventRequest(); - $requestParamHeaders = []; - $request->setConversionEvent($conversionEvent); - $request->setUpdateMask($updateMask); - $requestParamHeaders['conversion_event.name'] = $conversionEvent->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateConversionEvent', ConversionEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomDimension on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomDimension($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomDimension $customDimension - * The CustomDimension to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomDimension - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomDimension($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomDimensionRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customDimension'])) { - $request->setCustomDimension($optionalArgs['customDimension']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomDimension', CustomDimension::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a CustomMetric on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateCustomMetric($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type CustomMetric $customMetric - * The CustomMetric to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\CustomMetric - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateCustomMetric($updateMask, array $optionalArgs = []) - { - $request = new UpdateCustomMetricRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['customMetric'])) { - $request->setCustomMetric($optionalArgs['customMetric']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the singleton data retention settings for this property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $dataRetentionSettings = new DataRetentionSettings(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param DataRetentionSettings $dataRetentionSettings Required. The settings to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataRetentionSettings - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = []) - { - $request = new UpdateDataRetentionSettingsRequest(); - $requestParamHeaders = []; - $request->setDataRetentionSettings($dataRetentionSettings); - $request->setUpdateMask($updateMask); - $requestParamHeaders['data_retention_settings.name'] = $dataRetentionSettings->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a DataStream on a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateDataStream($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to - * match all fields. - * @param array $optionalArgs { - * Optional. - * - * @type DataStream $dataStream - * The DataStream to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\DataStream - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateDataStream($updateMask, array $optionalArgs = []) - { - $request = new UpdateDataStreamRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['dataStream'])) { - $request->setDataStream($optionalArgs['dataStream']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateDataStream', DataStream::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a GoogleAdsLink on a property - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateGoogleAdsLink($updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type GoogleAdsLink $googleAdsLink - * The GoogleAdsLink to update - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\GoogleAdsLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateGoogleAdsLink($updateMask, array $optionalArgs = []) - { - $request = new UpdateGoogleAdsLinkRequest(); - $requestParamHeaders = []; - $request->setUpdateMask($updateMask); - if (isset($optionalArgs['googleAdsLink'])) { - $request->setGoogleAdsLink($optionalArgs['googleAdsLink']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a Key Event. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $keyEvent = new KeyEvent(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateKeyEvent($keyEvent, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param KeyEvent $keyEvent Required. The Key Event to update. - * The `name` field is used to identify the settings to be updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\KeyEvent - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateKeyEvent($keyEvent, $updateMask, array $optionalArgs = []) - { - $request = new UpdateKeyEventRequest(); - $requestParamHeaders = []; - $request->setKeyEvent($keyEvent); - $request->setUpdateMask($updateMask); - $requestParamHeaders['key_event.name'] = $keyEvent->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a measurement protocol secret. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $measurementProtocolSecret = new MeasurementProtocolSecret(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param MeasurementProtocolSecret $measurementProtocolSecret Required. The measurement protocol secret to update. - * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\MeasurementProtocolSecret - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask, array $optionalArgs = []) - { - $request = new UpdateMeasurementProtocolSecretRequest(); - $requestParamHeaders = []; - $request->setMeasurementProtocolSecret($measurementProtocolSecret); - $request->setUpdateMask($updateMask); - $requestParamHeaders['measurement_protocol_secret.name'] = $measurementProtocolSecret->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateMeasurementProtocolSecret', MeasurementProtocolSecret::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates a property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $property = new Property(); - * $updateMask = new FieldMask(); - * $response = $analyticsAdminServiceClient->updateProperty($property, $updateMask); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param Property $property Required. The property to update. - * The property's `name` field is used to identify the property to be - * updated. - * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake - * case (e.g., "field_to_update"). Omitted fields will not be updated. To - * replace the entire entity, use one path with the string "*" to match all - * fields. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Admin\V1beta\Property - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateProperty($property, $updateMask, array $optionalArgs = []) - { - $request = new UpdatePropertyRequest(); - $requestParamHeaders = []; - $request->setProperty($property); - $request->setUpdateMask($updateMask); - $requestParamHeaders['property.name'] = $property->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateProperty', Property::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index 598ade2f6653..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.analytics.admin.v1beta", - "libraryPackage": "Google\\Analytics\\Admin\\V1beta", - "services": { - "AnalyticsAdminService": { - "clients": { - "grpc": { - "libraryClient": "AnalyticsAdminServiceGapicClient", - "rpcs": { - "AcknowledgeUserDataCollection": { - "methods": [ - "acknowledgeUserDataCollection" - ] - }, - "ArchiveCustomDimension": { - "methods": [ - "archiveCustomDimension" - ] - }, - "ArchiveCustomMetric": { - "methods": [ - "archiveCustomMetric" - ] - }, - "CreateConversionEvent": { - "methods": [ - "createConversionEvent" - ] - }, - "CreateCustomDimension": { - "methods": [ - "createCustomDimension" - ] - }, - "CreateCustomMetric": { - "methods": [ - "createCustomMetric" - ] - }, - "CreateDataStream": { - "methods": [ - "createDataStream" - ] - }, - "CreateFirebaseLink": { - "methods": [ - "createFirebaseLink" - ] - }, - "CreateGoogleAdsLink": { - "methods": [ - "createGoogleAdsLink" - ] - }, - "CreateKeyEvent": { - "methods": [ - "createKeyEvent" - ] - }, - "CreateMeasurementProtocolSecret": { - "methods": [ - "createMeasurementProtocolSecret" - ] - }, - "CreateProperty": { - "methods": [ - "createProperty" - ] - }, - "DeleteAccount": { - "methods": [ - "deleteAccount" - ] - }, - "DeleteConversionEvent": { - "methods": [ - "deleteConversionEvent" - ] - }, - "DeleteDataStream": { - "methods": [ - "deleteDataStream" - ] - }, - "DeleteFirebaseLink": { - "methods": [ - "deleteFirebaseLink" - ] - }, - "DeleteGoogleAdsLink": { - "methods": [ - "deleteGoogleAdsLink" - ] - }, - "DeleteKeyEvent": { - "methods": [ - "deleteKeyEvent" - ] - }, - "DeleteMeasurementProtocolSecret": { - "methods": [ - "deleteMeasurementProtocolSecret" - ] - }, - "DeleteProperty": { - "methods": [ - "deleteProperty" - ] - }, - "GetAccount": { - "methods": [ - "getAccount" - ] - }, - "GetConversionEvent": { - "methods": [ - "getConversionEvent" - ] - }, - "GetCustomDimension": { - "methods": [ - "getCustomDimension" - ] - }, - "GetCustomMetric": { - "methods": [ - "getCustomMetric" - ] - }, - "GetDataRetentionSettings": { - "methods": [ - "getDataRetentionSettings" - ] - }, - "GetDataSharingSettings": { - "methods": [ - "getDataSharingSettings" - ] - }, - "GetDataStream": { - "methods": [ - "getDataStream" - ] - }, - "GetKeyEvent": { - "methods": [ - "getKeyEvent" - ] - }, - "GetMeasurementProtocolSecret": { - "methods": [ - "getMeasurementProtocolSecret" - ] - }, - "GetProperty": { - "methods": [ - "getProperty" - ] - }, - "ListAccountSummaries": { - "methods": [ - "listAccountSummaries" - ] - }, - "ListAccounts": { - "methods": [ - "listAccounts" - ] - }, - "ListConversionEvents": { - "methods": [ - "listConversionEvents" - ] - }, - "ListCustomDimensions": { - "methods": [ - "listCustomDimensions" - ] - }, - "ListCustomMetrics": { - "methods": [ - "listCustomMetrics" - ] - }, - "ListDataStreams": { - "methods": [ - "listDataStreams" - ] - }, - "ListFirebaseLinks": { - "methods": [ - "listFirebaseLinks" - ] - }, - "ListGoogleAdsLinks": { - "methods": [ - "listGoogleAdsLinks" - ] - }, - "ListKeyEvents": { - "methods": [ - "listKeyEvents" - ] - }, - "ListMeasurementProtocolSecrets": { - "methods": [ - "listMeasurementProtocolSecrets" - ] - }, - "ListProperties": { - "methods": [ - "listProperties" - ] - }, - "ProvisionAccountTicket": { - "methods": [ - "provisionAccountTicket" - ] - }, - "RunAccessReport": { - "methods": [ - "runAccessReport" - ] - }, - "SearchChangeHistoryEvents": { - "methods": [ - "searchChangeHistoryEvents" - ] - }, - "UpdateAccount": { - "methods": [ - "updateAccount" - ] - }, - "UpdateConversionEvent": { - "methods": [ - "updateConversionEvent" - ] - }, - "UpdateCustomDimension": { - "methods": [ - "updateCustomDimension" - ] - }, - "UpdateCustomMetric": { - "methods": [ - "updateCustomMetric" - ] - }, - "UpdateDataRetentionSettings": { - "methods": [ - "updateDataRetentionSettings" - ] - }, - "UpdateDataStream": { - "methods": [ - "updateDataStream" - ] - }, - "UpdateGoogleAdsLink": { - "methods": [ - "updateGoogleAdsLink" - ] - }, - "UpdateKeyEvent": { - "methods": [ - "updateKeyEvent" - ] - }, - "UpdateMeasurementProtocolSecret": { - "methods": [ - "updateMeasurementProtocolSecret" - ] - }, - "UpdateProperty": { - "methods": [ - "updateProperty" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json deleted file mode 100644 index e546f6c5e3fa..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_client_config.json +++ /dev/null @@ -1,305 +0,0 @@ -{ - "interfaces": { - "google.analytics.admin.v1beta.AnalyticsAdminService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "UNKNOWN" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AcknowledgeUserDataCollection": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ArchiveCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteAccount": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteFirebaseLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAccount": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataSharingSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccountSummaries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAccounts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConversionEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomDimensions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomMetrics": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataStreams": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFirebaseLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListGoogleAdsLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListKeyEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMeasurementProtocolSecrets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProperties": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ProvisionAccountTicket": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RunAccessReport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchChangeHistoryEvents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateAccount": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateConversionEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomDimension": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateCustomMetric": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataRetentionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDataStream": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateGoogleAdsLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateKeyEvent": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMeasurementProtocolSecret": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateProperty": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php deleted file mode 100644 index e027543ee25f..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_descriptor_config.php +++ /dev/null @@ -1,757 +0,0 @@ - [ - 'google.analytics.admin.v1beta.AnalyticsAdminService' => [ - 'AcknowledgeUserDataCollection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\AcknowledgeUserDataCollectionResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'ArchiveCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFirebaseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\FirebaseLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\GoogleAdsLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\KeyEvent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - ], - 'DeleteAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Account', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRetentionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataRetentionSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSharingSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataSharingSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\KeyEvent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccountSummaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListAccountSummariesResponse', - ], - 'ListAccounts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccounts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListAccountsResponse', - ], - 'ListConversionEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConversionEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListConversionEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomDimensions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomDimensions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListCustomDimensionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomMetrics' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomMetrics', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListCustomMetricsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataStreams' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataStreams', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListDataStreamsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFirebaseLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListFirebaseLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGoogleAdsLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListGoogleAdsLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListKeyEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getKeyEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListKeyEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMeasurementProtocolSecrets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListMeasurementProtocolSecretsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProperties', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ListPropertiesResponse', - ], - 'ProvisionAccountTicket' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ProvisionAccountTicketResponse', - ], - 'RunAccessReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\RunAccessReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'entity', - 'fieldAccessors' => [ - 'getEntity', - ], - ], - ], - ], - 'SearchChangeHistoryEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChangeHistoryEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\SearchChangeHistoryEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'account', - 'fieldAccessors' => [ - 'getAccount', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Account', - 'headerParams' => [ - [ - 'keyName' => 'account.name', - 'fieldAccessors' => [ - 'getAccount', - 'getName', - ], - ], - ], - ], - 'UpdateConversionEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\ConversionEvent', - 'headerParams' => [ - [ - 'keyName' => 'conversion_event.name', - 'fieldAccessors' => [ - 'getConversionEvent', - 'getName', - ], - ], - ], - ], - 'UpdateCustomDimension' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomDimension', - 'headerParams' => [ - [ - 'keyName' => 'custom_dimension.name', - 'fieldAccessors' => [ - 'getCustomDimension', - 'getName', - ], - ], - ], - ], - 'UpdateCustomMetric' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\CustomMetric', - 'headerParams' => [ - [ - 'keyName' => 'custom_metric.name', - 'fieldAccessors' => [ - 'getCustomMetric', - 'getName', - ], - ], - ], - ], - 'UpdateDataRetentionSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataRetentionSettings', - 'headerParams' => [ - [ - 'keyName' => 'data_retention_settings.name', - 'fieldAccessors' => [ - 'getDataRetentionSettings', - 'getName', - ], - ], - ], - ], - 'UpdateDataStream' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\DataStream', - 'headerParams' => [ - [ - 'keyName' => 'data_stream.name', - 'fieldAccessors' => [ - 'getDataStream', - 'getName', - ], - ], - ], - ], - 'UpdateGoogleAdsLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\GoogleAdsLink', - 'headerParams' => [ - [ - 'keyName' => 'google_ads_link.name', - 'fieldAccessors' => [ - 'getGoogleAdsLink', - 'getName', - ], - ], - ], - ], - 'UpdateKeyEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\KeyEvent', - 'headerParams' => [ - [ - 'keyName' => 'key_event.name', - 'fieldAccessors' => [ - 'getKeyEvent', - 'getName', - ], - ], - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\MeasurementProtocolSecret', - 'headerParams' => [ - [ - 'keyName' => 'measurement_protocol_secret.name', - 'fieldAccessors' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - ], - 'UpdateProperty' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Admin\V1beta\Property', - 'headerParams' => [ - [ - 'keyName' => 'property.name', - 'fieldAccessors' => [ - 'getProperty', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'account' => 'accounts/{account}', - 'conversionEvent' => 'properties/{property}/conversionEvents/{conversion_event}', - 'customDimension' => 'properties/{property}/customDimensions/{custom_dimension}', - 'customMetric' => 'properties/{property}/customMetrics/{custom_metric}', - 'dataRetentionSettings' => 'properties/{property}/dataRetentionSettings', - 'dataSharingSettings' => 'accounts/{account}/dataSharingSettings', - 'dataStream' => 'properties/{property}/dataStreams/{data_stream}', - 'firebaseLink' => 'properties/{property}/firebaseLinks/{firebase_link}', - 'googleAdsLink' => 'properties/{property}/googleAdsLinks/{google_ads_link}', - 'keyEvent' => 'properties/{property}/keyEvents/{key_event}', - 'measurementProtocolSecret' => 'properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}', - 'organization' => 'organizations/{organization}', - 'property' => 'properties/{property}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php b/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php deleted file mode 100644 index f2577d36ac94..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/src/V1beta/resources/analytics_admin_service_rest_client_config.php +++ /dev/null @@ -1,663 +0,0 @@ - [ - 'google.analytics.admin.v1beta.AnalyticsAdminService' => [ - 'AcknowledgeUserDataCollection' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:acknowledgeUserDataCollection', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'ArchiveCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=properties/*/customDimensions/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ArchiveCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=properties/*/customMetrics/*}:archive', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateConversionEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/conversionEvents', - 'body' => 'conversion_event', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomDimension' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customDimensions', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomMetric' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customMetrics', - 'body' => 'custom_metric', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataStream' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/dataStreams', - 'body' => 'data_stream', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFirebaseLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/firebaseLinks', - 'body' => 'firebase_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleAdsLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/googleAdsLinks', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateKeyEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/keyEvents', - 'body' => 'key_event', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMeasurementProtocolSecret' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateProperty' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/properties', - 'body' => 'property', - ], - 'DeleteAccount' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteConversionEvent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataStream' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFirebaseLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/firebaseLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleAdsLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/googleAdsLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteKeyEvent' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/keyEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMeasurementProtocolSecret' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProperty' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccount' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=accounts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConversionEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/conversionEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomDimension' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/customDimensions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomMetric' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/customMetrics/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataRetentionSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/dataRetentionSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSharingSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=accounts/*/dataSharingSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStream' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetKeyEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/keyEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMeasurementProtocolSecret' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProperty' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAccountSummaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/accountSummaries', - ], - 'ListAccounts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/accounts', - ], - 'ListConversionEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/conversionEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomDimensions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customDimensions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomMetrics' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/customMetrics', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataStreams' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/dataStreams', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFirebaseLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/firebaseLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleAdsLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/googleAdsLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListKeyEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/keyEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMeasurementProtocolSecrets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProperties' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/properties', - 'queryParams' => [ - 'filter', - ], - ], - 'ProvisionAccountTicket' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/accounts:provisionAccountTicket', - 'body' => '*', - ], - 'RunAccessReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{entity=properties/*}:runAccessReport', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{entity=accounts/*}:runAccessReport', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'entity' => [ - 'getters' => [ - 'getEntity', - ], - ], - ], - ], - 'SearchChangeHistoryEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{account=accounts/*}:searchChangeHistoryEvents', - 'body' => '*', - 'placeholders' => [ - 'account' => [ - 'getters' => [ - 'getAccount', - ], - ], - ], - ], - 'UpdateAccount' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{account.name=accounts/*}', - 'body' => 'account', - 'placeholders' => [ - 'account.name' => [ - 'getters' => [ - 'getAccount', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateConversionEvent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{conversion_event.name=properties/*/conversionEvents/*}', - 'body' => 'conversion_event', - 'placeholders' => [ - 'conversion_event.name' => [ - 'getters' => [ - 'getConversionEvent', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomDimension' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{custom_dimension.name=properties/*/customDimensions/*}', - 'body' => 'custom_dimension', - 'placeholders' => [ - 'custom_dimension.name' => [ - 'getters' => [ - 'getCustomDimension', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomMetric' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{custom_metric.name=properties/*/customMetrics/*}', - 'body' => 'custom_metric', - 'placeholders' => [ - 'custom_metric.name' => [ - 'getters' => [ - 'getCustomMetric', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataRetentionSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}', - 'body' => 'data_retention_settings', - 'placeholders' => [ - 'data_retention_settings.name' => [ - 'getters' => [ - 'getDataRetentionSettings', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataStream' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{data_stream.name=properties/*/dataStreams/*}', - 'body' => 'data_stream', - 'placeholders' => [ - 'data_stream.name' => [ - 'getters' => [ - 'getDataStream', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGoogleAdsLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{google_ads_link.name=properties/*/googleAdsLinks/*}', - 'body' => 'google_ads_link', - 'placeholders' => [ - 'google_ads_link.name' => [ - 'getters' => [ - 'getGoogleAdsLink', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateKeyEvent' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{key_event.name=properties/*/keyEvents/*}', - 'body' => 'key_event', - 'placeholders' => [ - 'key_event.name' => [ - 'getters' => [ - 'getKeyEvent', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMeasurementProtocolSecret' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}', - 'body' => 'measurement_protocol_secret', - 'placeholders' => [ - 'measurement_protocol_secret.name' => [ - 'getters' => [ - 'getMeasurementProtocolSecret', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateProperty' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{property.name=properties/*}', - 'body' => 'property', - 'placeholders' => [ - 'property.name' => [ - 'getters' => [ - 'getProperty', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php deleted file mode 100644 index 6fa0cec4fcde..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,3687 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AnalyticsAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AnalyticsAdminServiceClient($options); - } - - /** @test */ - public function acknowledgeUserDataCollectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $response = $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - try { - $gapicClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $gapicClient->archiveCustomDimension($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->archiveCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $gapicClient->archiveCustomMetric($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->archiveCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->createConversionEvent($conversionEvent, $formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $response = $gapicClient->createCustomDimension($formattedParent, $customDimension); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomDimension(); - $this->assertProtobufEquals($customDimension, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - try { - $gapicClient->createCustomDimension($formattedParent, $customDimension); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $response = $gapicClient->createCustomMetric($formattedParent, $customMetric); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomMetric(); - $this->assertProtobufEquals($customMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - try { - $gapicClient->createCustomMetric($formattedParent, $customMetric); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $response = $gapicClient->createDataStream($formattedParent, $dataStream); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataStream(); - $this->assertProtobufEquals($dataStream, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - try { - $gapicClient->createDataStream($formattedParent, $dataStream); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $response = $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - try { - $gapicClient->createFirebaseLink($formattedParent, $firebaseLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $response = $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - try { - $gapicClient->createGoogleAdsLink($formattedParent, $googleAdsLink); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->createKeyEvent($keyEvent, $formattedParent); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->createKeyEvent($keyEvent, $formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $response = $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - try { - $gapicClient->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $response = $gapicClient->createProperty($property); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - try { - $gapicClient->createProperty($property); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $gapicClient->deleteAccount($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->deleteAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $gapicClient->deleteConversionEvent($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->deleteConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $gapicClient->deleteDataStream($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->deleteDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $gapicClient->deleteFirebaseLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - try { - $gapicClient->deleteFirebaseLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $gapicClient->deleteGoogleAdsLink($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - try { - $gapicClient->deleteGoogleAdsLink($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $gapicClient->deleteKeyEvent($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - try { - $gapicClient->deleteKeyEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->deleteMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->deleteProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->deleteProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->getAccount($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->getAccount($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $response = $gapicClient->getConversionEvent($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - try { - $gapicClient->getConversionEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $response = $gapicClient->getCustomDimension($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - try { - $gapicClient->getCustomDimension($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $response = $gapicClient->getCustomMetric($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - try { - $gapicClient->getCustomMetric($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $response = $gapicClient->getDataRetentionSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - try { - $gapicClient->getDataRetentionSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sharingWithGoogleSupportEnabled = false; - $sharingWithGoogleAssignedSalesEnabled = false; - $sharingWithGoogleAnySalesEnabled = false; - $sharingWithGoogleProductsEnabled = true; - $sharingWithOthersEnabled = false; - $expectedResponse = new DataSharingSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); - $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); - $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); - $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); - $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $response = $gapicClient->getDataSharingSettings($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - try { - $gapicClient->getDataSharingSettings($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->getDataStream($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->getDataStream($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $response = $gapicClient->getKeyEvent($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - try { - $gapicClient->getKeyEvent($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $response = $gapicClient->getMeasurementProtocolSecret($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - try { - $gapicClient->getMeasurementProtocolSecret($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->getProperty($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->getProperty($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountSummariesElement = new AccountSummary(); - $accountSummaries = [ - $accountSummariesElement, - ]; - $expectedResponse = new ListAccountSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccountSummaries($accountSummaries); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccountSummaries(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccountSummaries(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountsElement = new Account(); - $accounts = [ - $accountsElement, - ]; - $expectedResponse = new ListAccountsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccounts($accounts); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listAccounts(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listAccounts(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversionEventsElement = new ConversionEvent(); - $conversionEvents = [ - $conversionEventsElement, - ]; - $expectedResponse = new ListConversionEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversionEvents($conversionEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listConversionEvents($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listConversionEvents($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customDimensionsElement = new CustomDimension(); - $customDimensions = [ - $customDimensionsElement, - ]; - $expectedResponse = new ListCustomDimensionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomDimensions($customDimensions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomDimensions($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomDimensions($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customMetricsElement = new CustomMetric(); - $customMetrics = [ - $customMetricsElement, - ]; - $expectedResponse = new ListCustomMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomMetrics($customMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listCustomMetrics($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listCustomMetrics($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStreamsElement = new DataStream(); - $dataStreams = [ - $dataStreamsElement, - ]; - $expectedResponse = new ListDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStreams($dataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listDataStreams($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listDataStreams($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $firebaseLinksElement = new FirebaseLink(); - $firebaseLinks = [ - $firebaseLinksElement, - ]; - $expectedResponse = new ListFirebaseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFirebaseLinks($firebaseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listFirebaseLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listFirebaseLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleAdsLinksElement = new GoogleAdsLink(); - $googleAdsLinks = [ - $googleAdsLinksElement, - ]; - $expectedResponse = new ListGoogleAdsLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleAdsLinks($googleAdsLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listGoogleAdsLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listGoogleAdsLinks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $keyEventsElement = new KeyEvent(); - $keyEvents = [ - $keyEventsElement, - ]; - $expectedResponse = new ListKeyEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setKeyEvents($keyEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listKeyEvents($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getKeyEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListKeyEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listKeyEvents($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); - $measurementProtocolSecrets = [ - $measurementProtocolSecretsElement, - ]; - $expectedResponse = new ListMeasurementProtocolSecretsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listMeasurementProtocolSecrets($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - try { - $gapicClient->listMeasurementProtocolSecrets($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $propertiesElement = new Property(); - $properties = [ - $propertiesElement, - ]; - $expectedResponse = new ListPropertiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProperties($properties); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $response = $gapicClient->listProperties($filter); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - try { - $gapicClient->listProperties($filter); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $response = $gapicClient->provisionAccountTicket(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->provisionAccountTicket(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new RunAccessReportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runAccessReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runAccessReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $changeHistoryEventsElement = new ChangeHistoryEvent(); - $changeHistoryEvents = [ - $changeHistoryEventsElement, - ]; - $expectedResponse = new SearchChangeHistoryEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->searchChangeHistoryEvents($formattedAccount); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($formattedAccount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - try { - $gapicClient->searchChangeHistoryEvents($formattedAccount); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateAccount($account, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($account, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateAccount($account, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateConversionEvent($conversionEvent, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomDimension($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomDimension($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateCustomMetric($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateCustomMetric($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRetentionSettings(); - $this->assertProtobufEquals($dataRetentionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateDataStream($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateDataStream($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $response = $gapicClient->updateGoogleAdsLink($updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - try { - $gapicClient->updateGoogleAdsLink($updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $response = $gapicClient->updateKeyEvent($keyEvent, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - try { - $gapicClient->updateKeyEvent($keyEvent, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $response = $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - try { - $gapicClient->updateMeasurementProtocolSecret($measurementProtocolSecret, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $response = $gapicClient->updateProperty($property, $updateMask); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - try { - $gapicClient->updateProperty($property, $updateMask); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php b/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php deleted file mode 100644 index fd28e7d14ddf..000000000000 --- a/owl-bot-staging/AnalyticsAdmin/v1beta/tests/Unit/V1beta/Client/AnalyticsAdminServiceClientTest.php +++ /dev/null @@ -1,4010 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AnalyticsAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AnalyticsAdminServiceClient($options); - } - - /** @test */ - public function acknowledgeUserDataCollectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - $response = $gapicClient->acknowledgeUserDataCollection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - try { - $gapicClient->acknowledgeUserDataCollection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new ArchiveCustomDimensionRequest()) - ->setName($formattedName); - $gapicClient->archiveCustomDimension($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new ArchiveCustomDimensionRequest()) - ->setName($formattedName); - try { - $gapicClient->archiveCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new ArchiveCustomMetricRequest()) - ->setName($formattedName); - $gapicClient->archiveCustomMetric($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function archiveCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new ArchiveCustomMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->archiveCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setParent($formattedParent); - $response = $gapicClient->createConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setParent($formattedParent); - try { - $gapicClient->createConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - $response = $gapicClient->createCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomDimension(); - $this->assertProtobufEquals($customDimension, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customDimension = new CustomDimension(); - $customDimensionParameterName = 'customDimensionParameterName-405505313'; - $customDimension->setParameterName($customDimensionParameterName); - $customDimensionDisplayName = 'customDimensionDisplayName2102948408'; - $customDimension->setDisplayName($customDimensionDisplayName); - $customDimensionScope = DimensionScope::DIMENSION_SCOPE_UNSPECIFIED; - $customDimension->setScope($customDimensionScope); - $request = (new CreateCustomDimensionRequest()) - ->setParent($formattedParent) - ->setCustomDimension($customDimension); - try { - $gapicClient->createCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - $response = $gapicClient->createCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCustomMetric(); - $this->assertProtobufEquals($customMetric, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $customMetric = new CustomMetric(); - $customMetricParameterName = 'customMetricParameterName1627167443'; - $customMetric->setParameterName($customMetricParameterName); - $customMetricDisplayName = 'customMetricDisplayName-835715284'; - $customMetric->setDisplayName($customMetricDisplayName); - $customMetricMeasurementUnit = MeasurementUnit::MEASUREMENT_UNIT_UNSPECIFIED; - $customMetric->setMeasurementUnit($customMetricMeasurementUnit); - $customMetricScope = MetricScope::METRIC_SCOPE_UNSPECIFIED; - $customMetric->setScope($customMetricScope); - $request = (new CreateCustomMetricRequest()) - ->setParent($formattedParent) - ->setCustomMetric($customMetric); - try { - $gapicClient->createCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - $response = $gapicClient->createDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDataStream(); - $this->assertProtobufEquals($dataStream, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $dataStream = new DataStream(); - $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED; - $dataStream->setType($dataStreamType); - $request = (new CreateDataStreamRequest()) - ->setParent($formattedParent) - ->setDataStream($dataStream); - try { - $gapicClient->createDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $project = 'project-309310695'; - $expectedResponse = new FirebaseLink(); - $expectedResponse->setName($name); - $expectedResponse->setProject($project); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $request = (new CreateFirebaseLinkRequest()) - ->setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - $response = $gapicClient->createFirebaseLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFirebaseLink(); - $this->assertProtobufEquals($firebaseLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $firebaseLink = new FirebaseLink(); - $request = (new CreateFirebaseLinkRequest()) - ->setParent($formattedParent) - ->setFirebaseLink($firebaseLink); - try { - $gapicClient->createFirebaseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $request = (new CreateGoogleAdsLinkRequest()) - ->setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - $response = $gapicClient->createGoogleAdsLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getGoogleAdsLink(); - $this->assertProtobufEquals($googleAdsLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $googleAdsLink = new GoogleAdsLink(); - $request = (new CreateGoogleAdsLinkRequest()) - ->setParent($formattedParent) - ->setGoogleAdsLink($googleAdsLink); - try { - $gapicClient->createGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setParent($formattedParent); - $response = $gapicClient->createKeyEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new CreateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setParent($formattedParent); - try { - $gapicClient->createKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - $response = $gapicClient->createMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $request = (new CreateMeasurementProtocolSecretRequest()) - ->setParent($formattedParent) - ->setMeasurementProtocolSecret($measurementProtocolSecret); - try { - $gapicClient->createMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - $response = $gapicClient->createProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $request = (new CreatePropertyRequest()) - ->setProperty($property); - try { - $gapicClient->createProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new DeleteAccountRequest()) - ->setName($formattedName); - $gapicClient->deleteAccount($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new DeleteAccountRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new DeleteConversionEventRequest()) - ->setName($formattedName); - $gapicClient->deleteConversionEvent($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new DeleteConversionEventRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new DeleteDataStreamRequest()) - ->setName($formattedName); - $gapicClient->deleteDataStream($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new DeleteDataStreamRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $request = (new DeleteFirebaseLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteFirebaseLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFirebaseLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]'); - $request = (new DeleteFirebaseLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFirebaseLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $request = (new DeleteGoogleAdsLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteGoogleAdsLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleAdsLinkName('[PROPERTY]', '[GOOGLE_ADS_LINK]'); - $request = (new DeleteGoogleAdsLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new DeleteKeyEventRequest()) - ->setName($formattedName); - $gapicClient->deleteKeyEvent($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new DeleteKeyEventRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new DeleteMeasurementProtocolSecretRequest()) - ->setName($formattedName); - $gapicClient->deleteMeasurementProtocolSecret($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new DeleteMeasurementProtocolSecretRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new DeletePropertyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new DeletePropertyRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new GetAccountRequest()) - ->setName($formattedName); - $response = $gapicClient->getAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accountName('[ACCOUNT]'); - $request = (new GetAccountRequest()) - ->setName($formattedName); - try { - $gapicClient->getAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new GetConversionEventRequest()) - ->setName($formattedName); - $response = $gapicClient->getConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]'); - $request = (new GetConversionEventRequest()) - ->setName($formattedName); - try { - $gapicClient->getConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new GetCustomDimensionRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customDimensionName('[PROPERTY]', '[CUSTOM_DIMENSION]'); - $request = (new GetCustomDimensionRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name2); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new GetCustomMetricRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customMetricName('[PROPERTY]', '[CUSTOM_METRIC]'); - $request = (new GetCustomMetricRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $request = (new GetDataRetentionSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataRetentionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataRetentionSettingsName('[PROPERTY]'); - $request = (new GetDataRetentionSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataRetentionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sharingWithGoogleSupportEnabled = false; - $sharingWithGoogleAssignedSalesEnabled = false; - $sharingWithGoogleAnySalesEnabled = false; - $sharingWithGoogleProductsEnabled = true; - $sharingWithOthersEnabled = false; - $expectedResponse = new DataSharingSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled); - $expectedResponse->setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled); - $expectedResponse->setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled); - $expectedResponse->setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled); - $expectedResponse->setSharingWithOthersEnabled($sharingWithOthersEnabled); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $request = (new GetDataSharingSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataSharingSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSharingSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSharingSettingsName('[ACCOUNT]'); - $request = (new GetDataSharingSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataSharingSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataStreamRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new GetDataStreamRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new GetKeyEventRequest()) - ->setName($formattedName); - $response = $gapicClient->getKeyEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]'); - $request = (new GetKeyEventRequest()) - ->setName($formattedName); - try { - $gapicClient->getKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new GetMeasurementProtocolSecretRequest()) - ->setName($formattedName); - $response = $gapicClient->getMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]'); - $request = (new GetMeasurementProtocolSecretRequest()) - ->setName($formattedName); - try { - $gapicClient->getMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new GetPropertyRequest()) - ->setName($formattedName); - $response = $gapicClient->getProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyName('[PROPERTY]'); - $request = (new GetPropertyRequest()) - ->setName($formattedName); - try { - $gapicClient->getProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountSummariesElement = new AccountSummary(); - $accountSummaries = [ - $accountSummariesElement, - ]; - $expectedResponse = new ListAccountSummariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccountSummaries($accountSummaries); - $transport->addResponse($expectedResponse); - $request = new ListAccountSummariesRequest(); - $response = $gapicClient->listAccountSummaries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccountSummaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountSummariesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAccountSummariesRequest(); - try { - $gapicClient->listAccountSummaries($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accountsElement = new Account(); - $accounts = [ - $accountsElement, - ]; - $expectedResponse = new ListAccountsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccounts($accounts); - $transport->addResponse($expectedResponse); - $request = new ListAccountsRequest(); - $response = $gapicClient->listAccounts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccounts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccountsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAccountsRequest(); - try { - $gapicClient->listAccounts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conversionEventsElement = new ConversionEvent(); - $conversionEvents = [ - $conversionEventsElement, - ]; - $expectedResponse = new ListConversionEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConversionEvents($conversionEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListConversionEventsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConversionEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConversionEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConversionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListConversionEventsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConversionEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customDimensionsElement = new CustomDimension(); - $customDimensions = [ - $customDimensionsElement, - ]; - $expectedResponse = new ListCustomDimensionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomDimensions($customDimensions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomDimensionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomDimensions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomDimensions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomDimensionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomDimensionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomDimensions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customMetricsElement = new CustomMetric(); - $customMetrics = [ - $customMetricsElement, - ]; - $expectedResponse = new ListCustomMetricsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomMetrics($customMetrics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomMetricsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomMetrics($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomMetrics()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListCustomMetricsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomMetrics($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStreamsElement = new DataStream(); - $dataStreams = [ - $dataStreamsElement, - ]; - $expectedResponse = new ListDataStreamsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStreams($dataStreams); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDataStreamsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataStreams($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStreamsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListDataStreamsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataStreams($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $firebaseLinksElement = new FirebaseLink(); - $firebaseLinks = [ - $firebaseLinksElement, - ]; - $expectedResponse = new ListFirebaseLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFirebaseLinks($firebaseLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListFirebaseLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFirebaseLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFirebaseLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFirebaseLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListFirebaseLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFirebaseLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleAdsLinksElement = new GoogleAdsLink(); - $googleAdsLinks = [ - $googleAdsLinksElement, - ]; - $expectedResponse = new ListGoogleAdsLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleAdsLinks($googleAdsLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListGoogleAdsLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGoogleAdsLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleAdsLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleAdsLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListGoogleAdsLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGoogleAdsLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $keyEventsElement = new KeyEvent(); - $keyEvents = [ - $keyEventsElement, - ]; - $expectedResponse = new ListKeyEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setKeyEvents($keyEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListKeyEventsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listKeyEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getKeyEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListKeyEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeyEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListKeyEventsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listKeyEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $measurementProtocolSecretsElement = new MeasurementProtocolSecret(); - $measurementProtocolSecrets = [ - $measurementProtocolSecretsElement, - ]; - $expectedResponse = new ListMeasurementProtocolSecretsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMeasurementProtocolSecrets($measurementProtocolSecrets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListMeasurementProtocolSecretsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMeasurementProtocolSecrets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMeasurementProtocolSecrets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMeasurementProtocolSecretsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $request = (new ListMeasurementProtocolSecretsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMeasurementProtocolSecrets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $propertiesElement = new Property(); - $properties = [ - $propertiesElement, - ]; - $expectedResponse = new ListPropertiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProperties($properties); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListPropertiesRequest()) - ->setFilter($filter); - $response = $gapicClient->listProperties($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProperties()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPropertiesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListPropertiesRequest()) - ->setFilter($filter); - try { - $gapicClient->listProperties($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $accountTicketId = 'accountTicketId-442102884'; - $expectedResponse = new ProvisionAccountTicketResponse(); - $expectedResponse->setAccountTicketId($accountTicketId); - $transport->addResponse($expectedResponse); - $request = new ProvisionAccountTicketRequest(); - $response = $gapicClient->provisionAccountTicket($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function provisionAccountTicketExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ProvisionAccountTicketRequest(); - try { - $gapicClient->provisionAccountTicket($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new RunAccessReportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - $request = new RunAccessReportRequest(); - $response = $gapicClient->runAccessReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAccessReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunAccessReportRequest(); - try { - $gapicClient->runAccessReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $changeHistoryEventsElement = new ChangeHistoryEvent(); - $changeHistoryEvents = [ - $changeHistoryEventsElement, - ]; - $expectedResponse = new SearchChangeHistoryEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChangeHistoryEvents($changeHistoryEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $request = (new SearchChangeHistoryEventsRequest()) - ->setAccount($formattedAccount); - $response = $gapicClient->searchChangeHistoryEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChangeHistoryEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($formattedAccount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchChangeHistoryEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedAccount = $gapicClient->accountName('[ACCOUNT]'); - $request = (new SearchChangeHistoryEventsRequest()) - ->setAccount($formattedAccount); - try { - $gapicClient->searchChangeHistoryEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $regionCode = 'regionCode-1566082984'; - $deleted = false; - $gmpOrganization = 'gmpOrganization-1643573496'; - $expectedResponse = new Account(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setRegionCode($regionCode); - $expectedResponse->setDeleted($deleted); - $expectedResponse->setGmpOrganization($gmpOrganization); - $transport->addResponse($expectedResponse); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAccount($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount', $actualFuncCall); - $actualValue = $actualRequestObject->getAccount(); - $this->assertProtobufEquals($account, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAccountExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $account = new Account(); - $accountDisplayName = 'accountDisplayName-616446464'; - $account->setDisplayName($accountDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateAccountRequest()) - ->setAccount($account) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateAccount($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new ConversionEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $request = (new UpdateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateConversionEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getConversionEvent(); - $this->assertProtobufEquals($conversionEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversionEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $conversionEvent = new ConversionEvent(); - $updateMask = new FieldMask(); - $request = (new UpdateConversionEventRequest()) - ->setConversionEvent($conversionEvent) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateConversionEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $disallowAdsPersonalization = false; - $expectedResponse = new CustomDimension(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDisallowAdsPersonalization($disallowAdsPersonalization); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomDimensionRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCustomDimension($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomDimensionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomDimensionRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCustomDimension($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parameterName = 'parameterName1133142369'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new CustomMetric(); - $expectedResponse->setName($name); - $expectedResponse->setParameterName($parameterName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomMetricRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateCustomMetric($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateCustomMetricExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateCustomMetricRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateCustomMetric($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resetUserDataOnNewActivity = false; - $expectedResponse = new DataRetentionSettings(); - $expectedResponse->setName($name); - $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity); - $transport->addResponse($expectedResponse); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRetentionSettingsRequest()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataRetentionSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getDataRetentionSettings(); - $this->assertProtobufEquals($dataRetentionSettings, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataRetentionSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataRetentionSettings = new DataRetentionSettings(); - $updateMask = new FieldMask(); - $request = (new UpdateDataRetentionSettingsRequest()) - ->setDataRetentionSettings($dataRetentionSettings) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataRetentionSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataStream(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDataStreamRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataStream($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateDataStreamRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataStream($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $customerId = 'customerId-1772061412'; - $canManageClients = false; - $creatorEmailAddress = 'creatorEmailAddress-1491810434'; - $expectedResponse = new GoogleAdsLink(); - $expectedResponse->setName($name); - $expectedResponse->setCustomerId($customerId); - $expectedResponse->setCanManageClients($canManageClients); - $expectedResponse->setCreatorEmailAddress($creatorEmailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateGoogleAdsLinkRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGoogleAdsLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleAdsLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateGoogleAdsLinkRequest()) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateGoogleAdsLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $eventName = 'eventName984174864'; - $deletable = true; - $custom = false; - $expectedResponse = new KeyEvent(); - $expectedResponse->setName($name); - $expectedResponse->setEventName($eventName); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setCustom($custom); - $transport->addResponse($expectedResponse); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $request = (new UpdateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateKeyEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateKeyEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyEvent(); - $this->assertProtobufEquals($keyEvent, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateKeyEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyEvent = new KeyEvent(); - $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED; - $keyEvent->setCountingMethod($keyEventCountingMethod); - $updateMask = new FieldMask(); - $request = (new UpdateKeyEventRequest()) - ->setKeyEvent($keyEvent) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateKeyEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $secretValue = 'secretValue1322942242'; - $expectedResponse = new MeasurementProtocolSecret(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSecretValue($secretValue); - $transport->addResponse($expectedResponse); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateMeasurementProtocolSecret($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret', $actualFuncCall); - $actualValue = $actualRequestObject->getMeasurementProtocolSecret(); - $this->assertProtobufEquals($measurementProtocolSecret, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMeasurementProtocolSecretExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $measurementProtocolSecret = new MeasurementProtocolSecret(); - $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681'; - $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateMeasurementProtocolSecretRequest()) - ->setMeasurementProtocolSecret($measurementProtocolSecret) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateMeasurementProtocolSecret($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $parent = 'parent-995424086'; - $displayName = 'displayName1615086568'; - $timeZone = 'timeZone36848094'; - $currencyCode = 'currencyCode1108728155'; - $account = 'account-1177318867'; - $expectedResponse = new Property(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setCurrencyCode($currencyCode); - $expectedResponse->setAccount($account); - $transport->addResponse($expectedResponse); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateProperty($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($property, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePropertyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $property = new Property(); - $propertyDisplayName = 'propertyDisplayName-1254483624'; - $property->setDisplayName($propertyDisplayName); - $propertyTimeZone = 'propertyTimeZone-1600366322'; - $property->setTimeZone($propertyTimeZone); - $updateMask = new FieldMask(); - $request = (new UpdatePropertyRequest()) - ->setProperty($property) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateProperty($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeUserDataCollectionAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeUserDataCollectionResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProperty = $gapicClient->propertyName('[PROPERTY]'); - $acknowledgement = 'acknowledgement1769490938'; - $request = (new AcknowledgeUserDataCollectionRequest()) - ->setProperty($formattedProperty) - ->setAcknowledgement($acknowledgement); - $response = $gapicClient->acknowledgeUserDataCollectionAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall); - $actualValue = $actualRequestObject->getProperty(); - $this->assertProtobufEquals($formattedProperty, $actualValue); - $actualValue = $actualRequestObject->getAcknowledgement(); - $this->assertProtobufEquals($acknowledgement, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/GPBMetadata/Google/Analytics/Data/V1Alpha/AnalyticsDataApi.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/GPBMetadata/Google/Analytics/Data/V1Alpha/AnalyticsDataApi.php deleted file mode 100644 index 50549f2f578d..000000000000 Binary files a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/GPBMetadata/Google/Analytics/Data/V1Alpha/AnalyticsDataApi.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/GPBMetadata/Google/Analytics/Data/V1Alpha/Data.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/GPBMetadata/Google/Analytics/Data/V1Alpha/Data.php deleted file mode 100644 index e82dcc15264d..000000000000 Binary files a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/GPBMetadata/Google/Analytics/Data/V1Alpha/Data.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceDimension.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceDimension.php deleted file mode 100644 index 52ad212cf8ca..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceDimension.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1alpha.AudienceDimension - */ -class AudienceDimension extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceDimensionValue.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceDimensionValue.php deleted file mode 100644 index e34a79a37b13..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceDimensionValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1alpha.AudienceDimensionValue - */ -class AudienceDimensionValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Value as a string if the dimension type is a string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->readOneof(1); - } - - public function hasValue() - { - return $this->hasOneof(1); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceList.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceList.php deleted file mode 100644 index f365d873b018..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceList.php +++ /dev/null @@ -1,621 +0,0 @@ -google.analytics.data.v1alpha.AudienceList - */ -class AudienceList extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The audience list resource name assigned during - * creation. This resource name identifies this `AudienceList`. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience = ''; - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $audience_display_name = ''; - /** - * Required. The dimensions requested and displayed in the query response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $dimensions; - /** - * Output only. The current state for this AudienceList. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = null; - /** - * Output only. The time when CreateAudienceList was called and the - * AudienceList began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $begin_creating_time = null; - /** - * Output only. The total quota tokens charged during creation of the - * AudienceList. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceList - * enters the `ACTIVE` or `FAILED` states. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creation_quota_tokens_charged = 0; - /** - * Output only. The total number of rows in the AudienceList result. - * - * Generated from protobuf field optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $row_count = null; - /** - * Output only. Error message is populated when an audience list fails during - * creation. A common reason for such a failure is quota exhaustion. - * - * Generated from protobuf field optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_message = null; - /** - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * - * Generated from protobuf field optional double percentage_completed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_completed = null; - /** - * Output only. The recurring audience list that created this audience list. - * Recurring audience lists create audience lists daily. - * If audience lists are created directly, they will have no associated - * recurring audience list, and this field will be blank. - * - * Generated from protobuf field optional string recurring_audience_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $recurring_audience_list = null; - /** - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when an audience list is - * ready to be used. Webhooks allow a notification to be sent to your servers - * & avoid the need for polling. - * Either one or two POST requests will be sent to the webhook. The first POST - * request will be sent immediately showing the newly created audience list in - * its CREATING state. The second POST request will be sent after the audience - * list completes creation (either the ACTIVE or FAILED state). - * If identical audience lists are requested in quick succession, the second & - * subsequent audience lists can be served from cache. In that case, the - * audience list create method can return an audience list is already ACTIVE. - * In this scenario, only one POST request will be sent to the webhook. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.WebhookNotification webhook_notification = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $webhook_notification = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The audience list resource name assigned during - * creation. This resource name identifies this `AudienceList`. - * Format: `properties/{property}/audienceLists/{audience_list}` - * @type string $audience - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * @type string $audience_display_name - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * @type array<\Google\Analytics\Data\V1alpha\AudienceDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * Required. The dimensions requested and displayed in the query response. - * @type int $state - * Output only. The current state for this AudienceList. - * @type \Google\Protobuf\Timestamp $begin_creating_time - * Output only. The time when CreateAudienceList was called and the - * AudienceList began the `CREATING` state. - * @type int $creation_quota_tokens_charged - * Output only. The total quota tokens charged during creation of the - * AudienceList. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceList - * enters the `ACTIVE` or `FAILED` states. - * @type int $row_count - * Output only. The total number of rows in the AudienceList result. - * @type string $error_message - * Output only. Error message is populated when an audience list fails during - * creation. A common reason for such a failure is quota exhaustion. - * @type float $percentage_completed - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * @type string $recurring_audience_list - * Output only. The recurring audience list that created this audience list. - * Recurring audience lists create audience lists daily. - * If audience lists are created directly, they will have no associated - * recurring audience list, and this field will be blank. - * @type \Google\Analytics\Data\V1alpha\WebhookNotification $webhook_notification - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when an audience list is - * ready to be used. Webhooks allow a notification to be sent to your servers - * & avoid the need for polling. - * Either one or two POST requests will be sent to the webhook. The first POST - * request will be sent immediately showing the newly created audience list in - * its CREATING state. The second POST request will be sent after the audience - * list completes creation (either the ACTIVE or FAILED state). - * If identical audience lists are requested in quick succession, the second & - * subsequent audience lists can be served from cache. In that case, the - * audience list create method can return an audience list is already ACTIVE. - * In this scenario, only one POST request will be sent to the webhook. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The audience list resource name assigned during - * creation. This resource name identifies this `AudienceList`. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The audience list resource name assigned during - * creation. This resource name identifies this `AudienceList`. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAudience() - { - return $this->audience; - } - - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkString($var, True); - $this->audience = $var; - - return $this; - } - - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAudienceDisplayName() - { - return $this->audience_display_name; - } - - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAudienceDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->audience_display_name = $var; - - return $this; - } - - /** - * Required. The dimensions requested and displayed in the query response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Required. The dimensions requested and displayed in the query response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Data\V1alpha\AudienceDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\AudienceDimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * Output only. The current state for this AudienceList. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return isset($this->state) ? $this->state : 0; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * Output only. The current state for this AudienceList. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\AudienceList\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The time when CreateAudienceList was called and the - * AudienceList began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBeginCreatingTime() - { - return $this->begin_creating_time; - } - - public function hasBeginCreatingTime() - { - return isset($this->begin_creating_time); - } - - public function clearBeginCreatingTime() - { - unset($this->begin_creating_time); - } - - /** - * Output only. The time when CreateAudienceList was called and the - * AudienceList began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBeginCreatingTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->begin_creating_time = $var; - - return $this; - } - - /** - * Output only. The total quota tokens charged during creation of the - * AudienceList. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceList - * enters the `ACTIVE` or `FAILED` states. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCreationQuotaTokensCharged() - { - return $this->creation_quota_tokens_charged; - } - - /** - * Output only. The total quota tokens charged during creation of the - * AudienceList. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceList - * enters the `ACTIVE` or `FAILED` states. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCreationQuotaTokensCharged($var) - { - GPBUtil::checkInt32($var); - $this->creation_quota_tokens_charged = $var; - - return $this; - } - - /** - * Output only. The total number of rows in the AudienceList result. - * - * Generated from protobuf field optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRowCount() - { - return isset($this->row_count) ? $this->row_count : 0; - } - - public function hasRowCount() - { - return isset($this->row_count); - } - - public function clearRowCount() - { - unset($this->row_count); - } - - /** - * Output only. The total number of rows in the AudienceList result. - * - * Generated from protobuf field optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * Output only. Error message is populated when an audience list fails during - * creation. A common reason for such a failure is quota exhaustion. - * - * Generated from protobuf field optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getErrorMessage() - { - return isset($this->error_message) ? $this->error_message : ''; - } - - public function hasErrorMessage() - { - return isset($this->error_message); - } - - public function clearErrorMessage() - { - unset($this->error_message); - } - - /** - * Output only. Error message is populated when an audience list fails during - * creation. A common reason for such a failure is quota exhaustion. - * - * Generated from protobuf field optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - - /** - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * - * Generated from protobuf field optional double percentage_completed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageCompleted() - { - return isset($this->percentage_completed) ? $this->percentage_completed : 0.0; - } - - public function hasPercentageCompleted() - { - return isset($this->percentage_completed); - } - - public function clearPercentageCompleted() - { - unset($this->percentage_completed); - } - - /** - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * - * Generated from protobuf field optional double percentage_completed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageCompleted($var) - { - GPBUtil::checkDouble($var); - $this->percentage_completed = $var; - - return $this; - } - - /** - * Output only. The recurring audience list that created this audience list. - * Recurring audience lists create audience lists daily. - * If audience lists are created directly, they will have no associated - * recurring audience list, and this field will be blank. - * - * Generated from protobuf field optional string recurring_audience_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRecurringAudienceList() - { - return isset($this->recurring_audience_list) ? $this->recurring_audience_list : ''; - } - - public function hasRecurringAudienceList() - { - return isset($this->recurring_audience_list); - } - - public function clearRecurringAudienceList() - { - unset($this->recurring_audience_list); - } - - /** - * Output only. The recurring audience list that created this audience list. - * Recurring audience lists create audience lists daily. - * If audience lists are created directly, they will have no associated - * recurring audience list, and this field will be blank. - * - * Generated from protobuf field optional string recurring_audience_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRecurringAudienceList($var) - { - GPBUtil::checkString($var, True); - $this->recurring_audience_list = $var; - - return $this; - } - - /** - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when an audience list is - * ready to be used. Webhooks allow a notification to be sent to your servers - * & avoid the need for polling. - * Either one or two POST requests will be sent to the webhook. The first POST - * request will be sent immediately showing the newly created audience list in - * its CREATING state. The second POST request will be sent after the audience - * list completes creation (either the ACTIVE or FAILED state). - * If identical audience lists are requested in quick succession, the second & - * subsequent audience lists can be served from cache. In that case, the - * audience list create method can return an audience list is already ACTIVE. - * In this scenario, only one POST request will be sent to the webhook. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.WebhookNotification webhook_notification = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\WebhookNotification|null - */ - public function getWebhookNotification() - { - return $this->webhook_notification; - } - - public function hasWebhookNotification() - { - return isset($this->webhook_notification); - } - - public function clearWebhookNotification() - { - unset($this->webhook_notification); - } - - /** - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when an audience list is - * ready to be used. Webhooks allow a notification to be sent to your servers - * & avoid the need for polling. - * Either one or two POST requests will be sent to the webhook. The first POST - * request will be sent immediately showing the newly created audience list in - * its CREATING state. The second POST request will be sent after the audience - * list completes creation (either the ACTIVE or FAILED state). - * If identical audience lists are requested in quick succession, the second & - * subsequent audience lists can be served from cache. In that case, the - * audience list create method can return an audience list is already ACTIVE. - * In this scenario, only one POST request will be sent to the webhook. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.WebhookNotification webhook_notification = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\WebhookNotification $var - * @return $this - */ - public function setWebhookNotification($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\WebhookNotification::class); - $this->webhook_notification = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceList/State.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceList/State.php deleted file mode 100644 index abef90234542..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceList/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1alpha.AudienceList.State - */ -class State -{ - /** - * Unspecified state will never be used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The AudienceList is currently creating and will be available in the - * future. Creating occurs immediately after the CreateAudienceList call. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The AudienceList is fully created and ready for querying. An AudienceList - * is updated to active asynchronously from a request; this occurs some - * time (for example 15 minutes) after the initial create call. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The AudienceList failed to be created. It is possible that re-requesting - * this audience list will succeed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - ]; - - 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(State::class, \Google\Analytics\Data\V1alpha\AudienceList_State::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceListMetadata.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceListMetadata.php deleted file mode 100644 index 5c620b9dd85d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceListMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.data.v1alpha.AudienceListMetadata - */ -class AudienceListMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceRow.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceRow.php deleted file mode 100644 index 2047788e6538..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/AudienceRow.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.data.v1alpha.AudienceRow - */ -class AudienceRow extends \Google\Protobuf\Internal\Message -{ - /** - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimensionValue dimension_values = 1; - */ - private $dimension_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\AudienceDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Data\V1alpha\AudienceDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\AudienceDimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/BetweenFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/BetweenFilter.php deleted file mode 100644 index 1a3c30dd5716..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/BetweenFilter.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.data.v1alpha.BetweenFilter - */ -class BetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - protected $from_value = null; - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\NumericValue $from_value - * Begins with this number. - * @type \Google\Analytics\Data\V1alpha\NumericValue $to_value - * Ends with this number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue from_value = 1; - * @return \Google\Analytics\Data\V1alpha\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue from_value = 1; - * @param \Google\Analytics\Data\V1alpha\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue to_value = 2; - * @return \Google\Analytics\Data\V1alpha\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue to_value = 2; - * @param \Google\Analytics\Data\V1alpha\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Cohort.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Cohort.php deleted file mode 100644 index ad2a39a68475..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Cohort.php +++ /dev/null @@ -1,215 +0,0 @@ -google.analytics.data.v1alpha.Cohort - */ -class Cohort extends \Google\Protobuf\Internal\Message -{ - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - */ - protected $dimension = ''; - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1alpha.DateRange date_range = 3; - */ - protected $date_range = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * @type string $dimension - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * @type \Google\Analytics\Data\V1alpha\DateRange $date_range - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * 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; - } - - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - * @return string - */ - public function getDimension() - { - return $this->dimension; - } - - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - * @param string $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkString($var, True); - $this->dimension = $var; - - return $this; - } - - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1alpha.DateRange date_range = 3; - * @return \Google\Analytics\Data\V1alpha\DateRange|null - */ - public function getDateRange() - { - return $this->date_range; - } - - public function hasDateRange() - { - return isset($this->date_range); - } - - public function clearDateRange() - { - unset($this->date_range); - } - - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1alpha.DateRange date_range = 3; - * @param \Google\Analytics\Data\V1alpha\DateRange $var - * @return $this - */ - public function setDateRange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\DateRange::class); - $this->date_range = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortReportSettings.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortReportSettings.php deleted file mode 100644 index 4364a0b9c5a5..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortReportSettings.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.data.v1alpha.CohortReportSettings - */ -class CohortReportSettings extends \Google\Protobuf\Internal\Message -{ - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - */ - protected $accumulate = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $accumulate - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - * @return bool - */ - public function getAccumulate() - { - return $this->accumulate; - } - - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - * @param bool $var - * @return $this - */ - public function setAccumulate($var) - { - GPBUtil::checkBool($var); - $this->accumulate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortSpec.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortSpec.php deleted file mode 100644 index 6de328bb2e3d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortSpec.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.data.v1alpha.CohortSpec - */ -class CohortSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Cohort cohorts = 1; - */ - private $cohorts; - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortsRange cohorts_range = 2; - */ - protected $cohorts_range = null; - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - protected $cohort_report_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\Cohort>|\Google\Protobuf\Internal\RepeatedField $cohorts - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * @type \Google\Analytics\Data\V1alpha\CohortsRange $cohorts_range - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * @type \Google\Analytics\Data\V1alpha\CohortReportSettings $cohort_report_settings - * Optional settings for a cohort report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Cohort cohorts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCohorts() - { - return $this->cohorts; - } - - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Cohort cohorts = 1; - * @param array<\Google\Analytics\Data\V1alpha\Cohort>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCohorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Cohort::class); - $this->cohorts = $arr; - - return $this; - } - - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortsRange cohorts_range = 2; - * @return \Google\Analytics\Data\V1alpha\CohortsRange|null - */ - public function getCohortsRange() - { - return $this->cohorts_range; - } - - public function hasCohortsRange() - { - return isset($this->cohorts_range); - } - - public function clearCohortsRange() - { - unset($this->cohorts_range); - } - - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortsRange cohorts_range = 2; - * @param \Google\Analytics\Data\V1alpha\CohortsRange $var - * @return $this - */ - public function setCohortsRange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\CohortsRange::class); - $this->cohorts_range = $var; - - return $this; - } - - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - * @return \Google\Analytics\Data\V1alpha\CohortReportSettings|null - */ - public function getCohortReportSettings() - { - return $this->cohort_report_settings; - } - - public function hasCohortReportSettings() - { - return isset($this->cohort_report_settings); - } - - public function clearCohortReportSettings() - { - unset($this->cohort_report_settings); - } - - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - * @param \Google\Analytics\Data\V1alpha\CohortReportSettings $var - * @return $this - */ - public function setCohortReportSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\CohortReportSettings::class); - $this->cohort_report_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortsRange.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortsRange.php deleted file mode 100644 index 3133c9ca748f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortsRange.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.data.v1alpha.CohortsRange - */ -class CohortsRange extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - */ - protected $granularity = 0; - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - */ - protected $start_offset = 0; - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - */ - protected $end_offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $granularity - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * @type int $start_offset - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * @type int $end_offset - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * @return int - */ - public function getGranularity() - { - return $this->granularity; - } - - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * @param int $var - * @return $this - */ - public function setGranularity($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\CohortsRange\Granularity::class); - $this->granularity = $var; - - return $this; - } - - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - * @return int - */ - public function getStartOffset() - { - return $this->start_offset; - } - - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - * @param int $var - * @return $this - */ - public function setStartOffset($var) - { - GPBUtil::checkInt32($var); - $this->start_offset = $var; - - return $this; - } - - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - * @return int - */ - public function getEndOffset() - { - return $this->end_offset; - } - - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - * @param int $var - * @return $this - */ - public function setEndOffset($var) - { - GPBUtil::checkInt32($var); - $this->end_offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortsRange/Granularity.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortsRange/Granularity.php deleted file mode 100644 index d5c75924d4b8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CohortsRange/Granularity.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1alpha.CohortsRange.Granularity - */ -class Granularity -{ - /** - * Should never be specified. - * - * Generated from protobuf enum GRANULARITY_UNSPECIFIED = 0; - */ - const GRANULARITY_UNSPECIFIED = 0; - /** - * Daily granularity. Commonly used if the cohort's `dateRange` is a single - * day and the request contains `cohortNthDay`. - * - * Generated from protobuf enum DAILY = 1; - */ - const DAILY = 1; - /** - * Weekly granularity. Commonly used if the cohort's `dateRange` is a week - * in duration (starting on Sunday and ending on Saturday) and the request - * contains `cohortNthWeek`. - * - * Generated from protobuf enum WEEKLY = 2; - */ - const WEEKLY = 2; - /** - * Monthly granularity. Commonly used if the cohort's `dateRange` is a month - * in duration and the request contains `cohortNthMonth`. - * - * Generated from protobuf enum MONTHLY = 3; - */ - const MONTHLY = 3; - - private static $valueToName = [ - self::GRANULARITY_UNSPECIFIED => 'GRANULARITY_UNSPECIFIED', - self::DAILY => 'DAILY', - self::WEEKLY => 'WEEKLY', - self::MONTHLY => 'MONTHLY', - ]; - - 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(Granularity::class, \Google\Analytics\Data\V1alpha\CohortsRange_Granularity::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateAudienceListRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateAudienceListRequest.php deleted file mode 100644 index 3f2845a201c2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateAudienceListRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.data.v1alpha.CreateAudienceListRequest - */ -class CreateAudienceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this audience list will be created. - * Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The audience list to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.AudienceList audience_list = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience_list = null; - - /** - * @param string $parent Required. The parent resource where this audience list will be created. - * Format: `properties/{property}` - * Please see {@see AlphaAnalyticsDataClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Data\V1alpha\AudienceList $audienceList Required. The audience list to create. - * - * @return \Google\Analytics\Data\V1alpha\CreateAudienceListRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Data\V1alpha\AudienceList $audienceList): self - { - return (new self()) - ->setParent($parent) - ->setAudienceList($audienceList); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this audience list will be created. - * Format: `properties/{property}` - * @type \Google\Analytics\Data\V1alpha\AudienceList $audience_list - * Required. The audience list to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this audience list will be created. - * Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this audience list will be created. - * Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The audience list to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.AudienceList audience_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Data\V1alpha\AudienceList|null - */ - public function getAudienceList() - { - return $this->audience_list; - } - - public function hasAudienceList() - { - return isset($this->audience_list); - } - - public function clearAudienceList() - { - unset($this->audience_list); - } - - /** - * Required. The audience list to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.AudienceList audience_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Data\V1alpha\AudienceList $var - * @return $this - */ - public function setAudienceList($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\AudienceList::class); - $this->audience_list = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateRecurringAudienceListRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateRecurringAudienceListRequest.php deleted file mode 100644 index 597ed8af253d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateRecurringAudienceListRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.data.v1alpha.CreateRecurringAudienceListRequest - */ -class CreateRecurringAudienceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this recurring audience list will be - * created. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The recurring audience list to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_list = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $recurring_audience_list = null; - - /** - * @param string $parent Required. The parent resource where this recurring audience list will be - * created. Format: `properties/{property}` - * Please see {@see AlphaAnalyticsDataClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Data\V1alpha\RecurringAudienceList $recurringAudienceList Required. The recurring audience list to create. - * - * @return \Google\Analytics\Data\V1alpha\CreateRecurringAudienceListRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Data\V1alpha\RecurringAudienceList $recurringAudienceList): self - { - return (new self()) - ->setParent($parent) - ->setRecurringAudienceList($recurringAudienceList); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this recurring audience list will be - * created. Format: `properties/{property}` - * @type \Google\Analytics\Data\V1alpha\RecurringAudienceList $recurring_audience_list - * Required. The recurring audience list to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this recurring audience list will be - * created. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this recurring audience list will be - * created. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The recurring audience list to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Data\V1alpha\RecurringAudienceList|null - */ - public function getRecurringAudienceList() - { - return $this->recurring_audience_list; - } - - public function hasRecurringAudienceList() - { - return isset($this->recurring_audience_list); - } - - public function clearRecurringAudienceList() - { - unset($this->recurring_audience_list); - } - - /** - * Required. The recurring audience list to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_list = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Data\V1alpha\RecurringAudienceList $var - * @return $this - */ - public function setRecurringAudienceList($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\RecurringAudienceList::class); - $this->recurring_audience_list = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateReportTaskRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateReportTaskRequest.php deleted file mode 100644 index 7c87d8ddfb7c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/CreateReportTaskRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.data.v1alpha.CreateReportTaskRequest - */ -class CreateReportTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this report task will be created. - * Format: `properties/{propertyId}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The report task configuration to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask report_task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $report_task = null; - - /** - * @param string $parent Required. The parent resource where this report task will be created. - * Format: `properties/{propertyId}` - * Please see {@see AlphaAnalyticsDataClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Data\V1alpha\ReportTask $reportTask Required. The report task configuration to create. - * - * @return \Google\Analytics\Data\V1alpha\CreateReportTaskRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Data\V1alpha\ReportTask $reportTask): self - { - return (new self()) - ->setParent($parent) - ->setReportTask($reportTask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this report task will be created. - * Format: `properties/{propertyId}` - * @type \Google\Analytics\Data\V1alpha\ReportTask $report_task - * Required. The report task configuration to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this report task will be created. - * Format: `properties/{propertyId}` - * - * 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 report task will be created. - * Format: `properties/{propertyId}` - * - * 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 report task configuration to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask report_task = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Data\V1alpha\ReportTask|null - */ - public function getReportTask() - { - return $this->report_task; - } - - public function hasReportTask() - { - return isset($this->report_task); - } - - public function clearReportTask() - { - unset($this->report_task); - } - - /** - * Required. The report task configuration to create. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask report_task = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Data\V1alpha\ReportTask $var - * @return $this - */ - public function setReportTask($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\ReportTask::class); - $this->report_task = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DateRange.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DateRange.php deleted file mode 100644 index 0d7a4291b972..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DateRange.php +++ /dev/null @@ -1,172 +0,0 @@ -google.analytics.data.v1alpha.DateRange - */ -class DateRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - */ - protected $start_date = ''; - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - */ - protected $end_date = ''; - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_date - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * @type string $end_date - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * @type string $name - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - * @param string $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkString($var, True); - $this->start_date = $var; - - return $this; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - * @param string $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkString($var, True); - $this->end_date = $var; - - return $this; - } - - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Dimension.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Dimension.php deleted file mode 100644 index b1deaf994061..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Dimension.php +++ /dev/null @@ -1,189 +0,0 @@ -google.analytics.data.v1alpha.Dimension - */ -class Dimension extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2; - */ - protected $dimension_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * @type \Google\Analytics\Data\V1alpha\DimensionExpression $dimension_expression - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * 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; - } - - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2; - * @return \Google\Analytics\Data\V1alpha\DimensionExpression|null - */ - public function getDimensionExpression() - { - return $this->dimension_expression; - } - - public function hasDimensionExpression() - { - return isset($this->dimension_expression); - } - - public function clearDimensionExpression() - { - unset($this->dimension_expression); - } - - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2; - * @param \Google\Analytics\Data\V1alpha\DimensionExpression $var - * @return $this - */ - public function setDimensionExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\DimensionExpression::class); - $this->dimension_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression.php deleted file mode 100644 index 95d5d64ceb79..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression.php +++ /dev/null @@ -1,147 +0,0 @@ -google.analytics.data.v1alpha.DimensionExpression - */ -class DimensionExpression extends \Google\Protobuf\Internal\Message -{ - protected $one_expression; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression $lower_case - * Used to convert a dimension value to lower case. - * @type \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression $upper_case - * Used to convert a dimension value to upper case. - * @type \Google\Analytics\Data\V1alpha\DimensionExpression\ConcatenateExpression $concatenate - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Used to convert a dimension value to lower case. - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * @return \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression|null - */ - public function getLowerCase() - { - return $this->readOneof(4); - } - - public function hasLowerCase() - { - return $this->hasOneof(4); - } - - /** - * Used to convert a dimension value to lower case. - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * @param \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression $var - * @return $this - */ - public function setLowerCase($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Used to convert a dimension value to upper case. - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * @return \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression|null - */ - public function getUpperCase() - { - return $this->readOneof(5); - } - - public function hasUpperCase() - { - return $this->hasOneof(5); - } - - /** - * Used to convert a dimension value to upper case. - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * @param \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression $var - * @return $this - */ - public function setUpperCase($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * @return \Google\Analytics\Data\V1alpha\DimensionExpression\ConcatenateExpression|null - */ - public function getConcatenate() - { - return $this->readOneof(6); - } - - public function hasConcatenate() - { - return $this->hasOneof(6); - } - - /** - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * @param \Google\Analytics\Data\V1alpha\DimensionExpression\ConcatenateExpression $var - * @return $this - */ - public function setConcatenate($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\DimensionExpression\ConcatenateExpression::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneExpression() - { - return $this->whichOneof("one_expression"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression/CaseExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression/CaseExpression.php deleted file mode 100644 index da9ca59bb91f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression/CaseExpression.php +++ /dev/null @@ -1,74 +0,0 @@ -google.analytics.data.v1alpha.DimensionExpression.CaseExpression - */ -class CaseExpression extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CaseExpression::class, \Google\Analytics\Data\V1alpha\DimensionExpression_CaseExpression::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression/ConcatenateExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression/ConcatenateExpression.php deleted file mode 100644 index 22367f8c52d5..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionExpression/ConcatenateExpression.php +++ /dev/null @@ -1,128 +0,0 @@ -google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - */ -class ConcatenateExpression extends \Google\Protobuf\Internal\Message -{ - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - */ - private $dimension_names; - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - */ - protected $delimiter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $dimension_names - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * @type string $delimiter - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionNames() - { - return $this->dimension_names; - } - - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->dimension_names = $arr; - - return $this; - } - - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConcatenateExpression::class, \Google\Analytics\Data\V1alpha\DimensionExpression_ConcatenateExpression::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionHeader.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionHeader.php deleted file mode 100644 index 3d84d708eee3..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.data.v1alpha.DimensionHeader - */ -class DimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension's name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The dimension's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension's name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The dimension's name. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionValue.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionValue.php deleted file mode 100644 index b73fad0eaf8b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/DimensionValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1alpha.DimensionValue - */ -class DimensionValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Value as a string if the dimension type is a string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->readOneof(1); - } - - public function hasValue() - { - return $this->hasOneof(1); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventCriteriaScoping.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventCriteriaScoping.php deleted file mode 100644 index 760528e9a047..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventCriteriaScoping.php +++ /dev/null @@ -1,56 +0,0 @@ -google.analytics.data.v1alpha.EventCriteriaScoping - */ -class EventCriteriaScoping -{ - /** - * Unspecified criteria scoping. Do not specify. - * - * Generated from protobuf enum EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - const EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; - /** - * If the criteria is satisfied within one event, the event matches the - * criteria. - * - * Generated from protobuf enum EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - const EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; - - private static $valueToName = [ - self::EVENT_CRITERIA_SCOPING_UNSPECIFIED => 'EVENT_CRITERIA_SCOPING_UNSPECIFIED', - self::EVENT_CRITERIA_WITHIN_SAME_EVENT => 'EVENT_CRITERIA_WITHIN_SAME_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); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventExclusionDuration.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventExclusionDuration.php deleted file mode 100644 index 9a97210c9238..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventExclusionDuration.php +++ /dev/null @@ -1,56 +0,0 @@ -google.analytics.data.v1alpha.EventExclusionDuration - */ -class EventExclusionDuration -{ - /** - * Unspecified exclusion duration. Do not specify. - * - * Generated from protobuf enum EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - const EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; - /** - * Permanently exclude events from the segment if the event ever meets - * the `eventExclusionCriteria` condition. - * - * Generated from protobuf enum EVENT_EXCLUSION_PERMANENT = 1; - */ - const EVENT_EXCLUSION_PERMANENT = 1; - - private static $valueToName = [ - self::EVENT_EXCLUSION_DURATION_UNSPECIFIED => 'EVENT_EXCLUSION_DURATION_UNSPECIFIED', - self::EVENT_EXCLUSION_PERMANENT => 'EVENT_EXCLUSION_PERMANENT', - ]; - - 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegment.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegment.php deleted file mode 100644 index 1a9340fde934..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegment.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.data.v1alpha.EventSegment - */ -class EventSegment extends \Google\Protobuf\Internal\Message -{ - /** - * Defines which events are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - */ - protected $event_inclusion_criteria = null; - /** - * Defines which events are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - protected $exclusion = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\EventSegmentCriteria $event_inclusion_criteria - * Defines which events are included in this segment. Optional. - * @type \Google\Analytics\Data\V1alpha\EventSegmentExclusion $exclusion - * Defines which events are excluded in this segment. Optional. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Defines which events are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * @return \Google\Analytics\Data\V1alpha\EventSegmentCriteria|null - */ - public function getEventInclusionCriteria() - { - return $this->event_inclusion_criteria; - } - - public function hasEventInclusionCriteria() - { - return isset($this->event_inclusion_criteria); - } - - public function clearEventInclusionCriteria() - { - unset($this->event_inclusion_criteria); - } - - /** - * Defines which events are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * @param \Google\Analytics\Data\V1alpha\EventSegmentCriteria $var - * @return $this - */ - public function setEventInclusionCriteria($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\EventSegmentCriteria::class); - $this->event_inclusion_criteria = $var; - - return $this; - } - - /** - * Defines which events are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * @return \Google\Analytics\Data\V1alpha\EventSegmentExclusion|null - */ - public function getExclusion() - { - return $this->exclusion; - } - - public function hasExclusion() - { - return isset($this->exclusion); - } - - public function clearExclusion() - { - unset($this->exclusion); - } - - /** - * Defines which events are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * @param \Google\Analytics\Data\V1alpha\EventSegmentExclusion $var - * @return $this - */ - public function setExclusion($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\EventSegmentExclusion::class); - $this->exclusion = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentConditionGroup.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentConditionGroup.php deleted file mode 100644 index 6ff4974e6ae6..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentConditionGroup.php +++ /dev/null @@ -1,128 +0,0 @@ -google.analytics.data.v1alpha.EventSegmentConditionGroup - */ -class EventSegmentConditionGroup extends \Google\Protobuf\Internal\Message -{ - /** - * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. - * Optional. If unspecified, a `conditionScoping` of - * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - */ - protected $condition_scoping = 0; - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - */ - protected $segment_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $condition_scoping - * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. - * Optional. If unspecified, a `conditionScoping` of - * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. - * @type \Google\Analytics\Data\V1alpha\SegmentFilterExpression $segment_filter_expression - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. - * Optional. If unspecified, a `conditionScoping` of - * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * @return int - */ - public function getConditionScoping() - { - return $this->condition_scoping; - } - - /** - * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. - * Optional. If unspecified, a `conditionScoping` of - * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * @param int $var - * @return $this - */ - public function setConditionScoping($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\EventCriteriaScoping::class); - $this->condition_scoping = $var; - - return $this; - } - - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpression|null - */ - public function getSegmentFilterExpression() - { - return $this->segment_filter_expression; - } - - public function hasSegmentFilterExpression() - { - return isset($this->segment_filter_expression); - } - - public function clearSegmentFilterExpression() - { - unset($this->segment_filter_expression); - } - - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpression $var - * @return $this - */ - public function setSegmentFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterExpression::class); - $this->segment_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentCriteria.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentCriteria.php deleted file mode 100644 index d0770b39d842..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentCriteria.php +++ /dev/null @@ -1,72 +0,0 @@ -google.analytics.data.v1alpha.EventSegmentCriteria - */ -class EventSegmentCriteria extends \Google\Protobuf\Internal\Message -{ - /** - * An event matches this criteria if the event matches each of these - * `andConditionGroups`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - */ - private $and_condition_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\EventSegmentConditionGroup>|\Google\Protobuf\Internal\RepeatedField $and_condition_groups - * An event matches this criteria if the event matches each of these - * `andConditionGroups`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * An event matches this criteria if the event matches each of these - * `andConditionGroups`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAndConditionGroups() - { - return $this->and_condition_groups; - } - - /** - * An event matches this criteria if the event matches each of these - * `andConditionGroups`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * @param array<\Google\Analytics\Data\V1alpha\EventSegmentConditionGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAndConditionGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\EventSegmentConditionGroup::class); - $this->and_condition_groups = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentExclusion.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentExclusion.php deleted file mode 100644 index 8c4db8412ddd..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/EventSegmentExclusion.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.data.v1alpha.EventSegmentExclusion - */ -class EventSegmentExclusion extends \Google\Protobuf\Internal\Message -{ - /** - * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. - * Optional. If unspecified, an `eventExclusionDuration` of - * `EVENT_EXCLUSION_PERMANENT` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - */ - protected $event_exclusion_duration = 0; - /** - * If an event meets this condition, the event is excluded from membership - * in the segment for the `eventExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - */ - protected $event_exclusion_criteria = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $event_exclusion_duration - * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. - * Optional. If unspecified, an `eventExclusionDuration` of - * `EVENT_EXCLUSION_PERMANENT` is used. - * @type \Google\Analytics\Data\V1alpha\EventSegmentCriteria $event_exclusion_criteria - * If an event meets this condition, the event is excluded from membership - * in the segment for the `eventExclusionDuration`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. - * Optional. If unspecified, an `eventExclusionDuration` of - * `EVENT_EXCLUSION_PERMANENT` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * @return int - */ - public function getEventExclusionDuration() - { - return $this->event_exclusion_duration; - } - - /** - * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. - * Optional. If unspecified, an `eventExclusionDuration` of - * `EVENT_EXCLUSION_PERMANENT` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * @param int $var - * @return $this - */ - public function setEventExclusionDuration($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\EventExclusionDuration::class); - $this->event_exclusion_duration = $var; - - return $this; - } - - /** - * If an event meets this condition, the event is excluded from membership - * in the segment for the `eventExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * @return \Google\Analytics\Data\V1alpha\EventSegmentCriteria|null - */ - public function getEventExclusionCriteria() - { - return $this->event_exclusion_criteria; - } - - public function hasEventExclusionCriteria() - { - return isset($this->event_exclusion_criteria); - } - - public function clearEventExclusionCriteria() - { - unset($this->event_exclusion_criteria); - } - - /** - * If an event meets this condition, the event is excluded from membership - * in the segment for the `eventExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * @param \Google\Analytics\Data\V1alpha\EventSegmentCriteria $var - * @return $this - */ - public function setEventExclusionCriteria($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\EventSegmentCriteria::class); - $this->event_exclusion_criteria = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Filter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Filter.php deleted file mode 100644 index 1a4a786517fb..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Filter.php +++ /dev/null @@ -1,212 +0,0 @@ -google.analytics.data.v1alpha.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. Must be a name defined in dimensions - * or metrics. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The dimension name or metric name. Must be a name defined in dimensions - * or metrics. - * @type \Google\Analytics\Data\V1alpha\StringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Data\V1alpha\InListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Data\V1alpha\NumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Data\V1alpha\BetweenFilter $between_filter - * A filter for between two values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension name or metric name. Must be a name defined in dimensions - * or metrics. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. Must be a name defined in dimensions - * or metrics. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 2; - * @return \Google\Analytics\Data\V1alpha\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(2); - } - - public function hasStringFilter() - { - return $this->hasOneof(2); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 2; - * @param \Google\Analytics\Data\V1alpha\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\StringFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * @return \Google\Analytics\Data\V1alpha\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(3); - } - - public function hasInListFilter() - { - return $this->hasOneof(3); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * @param \Google\Analytics\Data\V1alpha\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\InListFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * @return \Google\Analytics\Data\V1alpha\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(4); - } - - public function hasNumericFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * @param \Google\Analytics\Data\V1alpha\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * @return \Google\Analytics\Data\V1alpha\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(5); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * @param \Google\Analytics\Data\V1alpha\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\BetweenFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FilterExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FilterExpression.php deleted file mode 100644 index 16c59dd4950a..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FilterExpression.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.data.v1alpha.FilterExpression - */ -class FilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\FilterExpressionList $and_group - * The FilterExpressions in and_group have an AND relationship. - * @type \Google\Analytics\Data\V1alpha\FilterExpressionList $or_group - * The FilterExpressions in or_group have an OR relationship. - * @type \Google\Analytics\Data\V1alpha\FilterExpression $not_expression - * The FilterExpression is NOT of not_expression. - * @type \Google\Analytics\Data\V1alpha\Filter $filter - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The FilterExpressions in and_group have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - * @return \Google\Analytics\Data\V1alpha\FilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * The FilterExpressions in and_group have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - * @param \Google\Analytics\Data\V1alpha\FilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The FilterExpressions in or_group have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - * @return \Google\Analytics\Data\V1alpha\FilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * The FilterExpressions in or_group have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - * @param \Google\Analytics\Data\V1alpha\FilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - * @return \Google\Analytics\Data\V1alpha\FilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - * @param \Google\Analytics\Data\V1alpha\FilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Filter filter = 4; - * @return \Google\Analytics\Data\V1alpha\Filter|null - */ - public function getFilter() - { - return $this->readOneof(4); - } - - public function hasFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Filter filter = 4; - * @param \Google\Analytics\Data\V1alpha\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\Filter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FilterExpressionList.php deleted file mode 100644 index d570c1b614d0..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1alpha.FilterExpressionList - */ -class FilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * A list of filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - * @param array<\Google\Analytics\Data\V1alpha\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\FilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Funnel.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Funnel.php deleted file mode 100644 index 44df64bb9007..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Funnel.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.data.v1alpha.Funnel - */ -class Funnel extends \Google\Protobuf\Internal\Message -{ - /** - * In an open funnel, users can enter the funnel in any step, and in a closed - * funnel, users must enter the funnel in the first step. Optional. If - * unspecified, a closed funnel is used. - * - * Generated from protobuf field bool is_open_funnel = 1; - */ - protected $is_open_funnel = false; - /** - * The sequential steps of this funnel. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - private $steps; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $is_open_funnel - * In an open funnel, users can enter the funnel in any step, and in a closed - * funnel, users must enter the funnel in the first step. Optional. If - * unspecified, a closed funnel is used. - * @type array<\Google\Analytics\Data\V1alpha\FunnelStep>|\Google\Protobuf\Internal\RepeatedField $steps - * The sequential steps of this funnel. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * In an open funnel, users can enter the funnel in any step, and in a closed - * funnel, users must enter the funnel in the first step. Optional. If - * unspecified, a closed funnel is used. - * - * Generated from protobuf field bool is_open_funnel = 1; - * @return bool - */ - public function getIsOpenFunnel() - { - return $this->is_open_funnel; - } - - /** - * In an open funnel, users can enter the funnel in any step, and in a closed - * funnel, users must enter the funnel in the first step. Optional. If - * unspecified, a closed funnel is used. - * - * Generated from protobuf field bool is_open_funnel = 1; - * @param bool $var - * @return $this - */ - public function setIsOpenFunnel($var) - { - GPBUtil::checkBool($var); - $this->is_open_funnel = $var; - - return $this; - } - - /** - * The sequential steps of this funnel. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * The sequential steps of this funnel. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - * @param array<\Google\Analytics\Data\V1alpha\FunnelStep>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\FunnelStep::class); - $this->steps = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelBreakdown.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelBreakdown.php deleted file mode 100644 index 0500c7956bd9..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelBreakdown.php +++ /dev/null @@ -1,137 +0,0 @@ -google.analytics.data.v1alpha.FunnelBreakdown - */ -class FunnelBreakdown extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension column added to the funnel table sub report response. The - * breakdown dimension breaks down each funnel step. A valid - * `breakdownDimension` is required if `funnelBreakdown` is specified. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - protected $breakdown_dimension = null; - /** - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 15. - * - * Generated from protobuf field optional int64 limit = 2; - */ - protected $limit = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\Dimension $breakdown_dimension - * The dimension column added to the funnel table sub report response. The - * breakdown dimension breaks down each funnel step. A valid - * `breakdownDimension` is required if `funnelBreakdown` is specified. - * @type int|string $limit - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 15. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension column added to the funnel table sub report response. The - * breakdown dimension breaks down each funnel step. A valid - * `breakdownDimension` is required if `funnelBreakdown` is specified. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * @return \Google\Analytics\Data\V1alpha\Dimension|null - */ - public function getBreakdownDimension() - { - return $this->breakdown_dimension; - } - - public function hasBreakdownDimension() - { - return isset($this->breakdown_dimension); - } - - public function clearBreakdownDimension() - { - unset($this->breakdown_dimension); - } - - /** - * The dimension column added to the funnel table sub report response. The - * breakdown dimension breaks down each funnel step. A valid - * `breakdownDimension` is required if `funnelBreakdown` is specified. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * @param \Google\Analytics\Data\V1alpha\Dimension $var - * @return $this - */ - public function setBreakdownDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\Dimension::class); - $this->breakdown_dimension = $var; - - return $this; - } - - /** - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 15. - * - * Generated from protobuf field optional int64 limit = 2; - * @return int|string - */ - public function getLimit() - { - return isset($this->limit) ? $this->limit : 0; - } - - public function hasLimit() - { - return isset($this->limit); - } - - public function clearLimit() - { - unset($this->limit); - } - - /** - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 15. - * - * Generated from protobuf field optional int64 limit = 2; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelEventFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelEventFilter.php deleted file mode 100644 index bd0a9458b387..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelEventFilter.php +++ /dev/null @@ -1,140 +0,0 @@ -google.analytics.data.v1alpha.FunnelEventFilter - */ -class FunnelEventFilter extends \Google\Protobuf\Internal\Message -{ - /** - * This filter matches events of this single event name. Event name is - * required. - * - * Generated from protobuf field optional string event_name = 1; - */ - protected $event_name = null; - /** - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - */ - protected $funnel_parameter_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * This filter matches events of this single event name. Event name is - * required. - * @type \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression $funnel_parameter_filter_expression - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * This filter matches events of this single event name. Event name is - * required. - * - * Generated from protobuf field optional string event_name = 1; - * @return string - */ - public function getEventName() - { - return isset($this->event_name) ? $this->event_name : ''; - } - - public function hasEventName() - { - return isset($this->event_name); - } - - public function clearEventName() - { - unset($this->event_name); - } - - /** - * This filter matches events of this single event name. Event name is - * required. - * - * Generated from protobuf field optional string event_name = 1; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * @return \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression|null - */ - public function getFunnelParameterFilterExpression() - { - return $this->funnel_parameter_filter_expression; - } - - public function hasFunnelParameterFilterExpression() - { - return isset($this->funnel_parameter_filter_expression); - } - - public function clearFunnelParameterFilterExpression() - { - unset($this->funnel_parameter_filter_expression); - } - - /** - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * @param \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression $var - * @return $this - */ - public function setFunnelParameterFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression::class); - $this->funnel_parameter_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFieldFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFieldFilter.php deleted file mode 100644 index 2b3cf703f566..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFieldFilter.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.data.v1alpha.FunnelFieldFilter - */ -class FunnelFieldFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The dimension name or metric name. - * @type \Google\Analytics\Data\V1alpha\StringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Data\V1alpha\InListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Data\V1alpha\NumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Data\V1alpha\BetweenFilter $between_filter - * A filter for between two values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @return \Google\Analytics\Data\V1alpha\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(4); - } - - public function hasStringFilter() - { - return $this->hasOneof(4); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @param \Google\Analytics\Data\V1alpha\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\StringFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @return \Google\Analytics\Data\V1alpha\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(5); - } - - public function hasInListFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @param \Google\Analytics\Data\V1alpha\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\InListFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @return \Google\Analytics\Data\V1alpha\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(6); - } - - public function hasNumericFilter() - { - return $this->hasOneof(6); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @param \Google\Analytics\Data\V1alpha\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericFilter::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @return \Google\Analytics\Data\V1alpha\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(7); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(7); - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @param \Google\Analytics\Data\V1alpha\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\BetweenFilter::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFilterExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFilterExpression.php deleted file mode 100644 index 0bd5a29dcb34..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFilterExpression.php +++ /dev/null @@ -1,216 +0,0 @@ -google.analytics.data.v1alpha.FunnelFilterExpression - */ -class FunnelFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList $and_group - * The FunnelFilterExpression in `andGroup` have an AND relationship. - * @type \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList $or_group - * The FunnelFilterExpression in `orGroup` have an OR relationship. - * @type \Google\Analytics\Data\V1alpha\FunnelFilterExpression $not_expression - * The FunnelFilterExpression is NOT of `notExpression`. - * @type \Google\Analytics\Data\V1alpha\FunnelFieldFilter $funnel_field_filter - * A funnel filter for a dimension or metric. - * @type \Google\Analytics\Data\V1alpha\FunnelEventFilter $funnel_event_filter - * Creates a filter that matches events of a single event name. If a - * parameter filter expression is specified, only the subset of events that - * match both the single event name and the parameter filter expressions - * match this event filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The FunnelFilterExpression in `andGroup` have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * @return \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * The FunnelFilterExpression in `andGroup` have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * @param \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The FunnelFilterExpression in `orGroup` have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * @return \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * The FunnelFilterExpression in `orGroup` have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * @param \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FunnelFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * @return \Google\Analytics\Data\V1alpha\FunnelFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FunnelFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * @param \Google\Analytics\Data\V1alpha\FunnelFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A funnel filter for a dimension or metric. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * @return \Google\Analytics\Data\V1alpha\FunnelFieldFilter|null - */ - public function getFunnelFieldFilter() - { - return $this->readOneof(4); - } - - public function hasFunnelFieldFilter() - { - return $this->hasOneof(4); - } - - /** - * A funnel filter for a dimension or metric. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * @param \Google\Analytics\Data\V1alpha\FunnelFieldFilter $var - * @return $this - */ - public function setFunnelFieldFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelFieldFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Creates a filter that matches events of a single event name. If a - * parameter filter expression is specified, only the subset of events that - * match both the single event name and the parameter filter expressions - * match this event filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * @return \Google\Analytics\Data\V1alpha\FunnelEventFilter|null - */ - public function getFunnelEventFilter() - { - return $this->readOneof(5); - } - - public function hasFunnelEventFilter() - { - return $this->hasOneof(5); - } - - /** - * Creates a filter that matches events of a single event name. If a - * parameter filter expression is specified, only the subset of events that - * match both the single event name and the parameter filter expressions - * match this event filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * @param \Google\Analytics\Data\V1alpha\FunnelEventFilter $var - * @return $this - */ - public function setFunnelEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelEventFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFilterExpressionList.php deleted file mode 100644 index 5e3753f3b657..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1alpha.FunnelFilterExpressionList - */ -class FunnelFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * The list of funnel filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\FunnelFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * The list of funnel filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The list of funnel filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * The list of funnel filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - * @param array<\Google\Analytics\Data\V1alpha\FunnelFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\FunnelFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelNextAction.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelNextAction.php deleted file mode 100644 index 0292b72b3d98..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelNextAction.php +++ /dev/null @@ -1,154 +0,0 @@ -google.analytics.data.v1alpha.FunnelNextAction - */ -class FunnelNextAction extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension column added to the funnel visualization sub report response. - * The next action dimension returns the next dimension value of this - * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports `eventName` and most Page / - * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` - * cannot be a dimension expression. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - protected $next_action_dimension = null; - /** - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 5. - * - * Generated from protobuf field optional int64 limit = 2; - */ - protected $limit = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\Dimension $next_action_dimension - * The dimension column added to the funnel visualization sub report response. - * The next action dimension returns the next dimension value of this - * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports `eventName` and most Page / - * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` - * cannot be a dimension expression. - * @type int|string $limit - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 5. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension column added to the funnel visualization sub report response. - * The next action dimension returns the next dimension value of this - * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports `eventName` and most Page / - * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` - * cannot be a dimension expression. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * @return \Google\Analytics\Data\V1alpha\Dimension|null - */ - public function getNextActionDimension() - { - return $this->next_action_dimension; - } - - public function hasNextActionDimension() - { - return isset($this->next_action_dimension); - } - - public function clearNextActionDimension() - { - unset($this->next_action_dimension); - } - - /** - * The dimension column added to the funnel visualization sub report response. - * The next action dimension returns the next dimension value of this - * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports `eventName` and most Page / - * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` - * cannot be a dimension expression. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * @param \Google\Analytics\Data\V1alpha\Dimension $var - * @return $this - */ - public function setNextActionDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\Dimension::class); - $this->next_action_dimension = $var; - - return $this; - } - - /** - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 5. - * - * Generated from protobuf field optional int64 limit = 2; - * @return int|string - */ - public function getLimit() - { - return isset($this->limit) ? $this->limit : 0; - } - - public function hasLimit() - { - return isset($this->limit); - } - - public function clearLimit() - { - unset($this->limit); - } - - /** - * The maximum number of distinct values of the breakdown dimension to return - * in the response. A `limit` of `5` is used if limit is not specified. Limit - * must exceed zero and cannot exceed 5. - * - * Generated from protobuf field optional int64 limit = 2; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilter.php deleted file mode 100644 index 154ec61a260f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilter.php +++ /dev/null @@ -1,291 +0,0 @@ -google.analytics.data.v1alpha.FunnelParameterFilter - */ -class FunnelParameterFilter extends \Google\Protobuf\Internal\Message -{ - protected $one_parameter; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_parameter_name - * This filter will be evaluated on the specified event parameter. Event - * parameters are logged as parameters of the event. Event parameters - * include fields like "firebase_screen" & "currency". - * Event parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * @type string $item_parameter_name - * This filter will be evaluated on the specified item parameter. Item - * parameters are logged as parameters in the item array. Item parameters - * include fields like "item_name" & "item_category". - * Item parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * Item parameters are only available in ecommerce events. To learn more - * about ecommerce events, see the [Measure ecommerce] - * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - * guide. - * @type \Google\Analytics\Data\V1alpha\StringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Data\V1alpha\InListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Data\V1alpha\NumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Data\V1alpha\BetweenFilter $between_filter - * A filter for between two values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * This filter will be evaluated on the specified event parameter. Event - * parameters are logged as parameters of the event. Event parameters - * include fields like "firebase_screen" & "currency". - * Event parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * - * Generated from protobuf field string event_parameter_name = 1; - * @return string - */ - public function getEventParameterName() - { - return $this->readOneof(1); - } - - public function hasEventParameterName() - { - return $this->hasOneof(1); - } - - /** - * This filter will be evaluated on the specified event parameter. Event - * parameters are logged as parameters of the event. Event parameters - * include fields like "firebase_screen" & "currency". - * Event parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * - * Generated from protobuf field string event_parameter_name = 1; - * @param string $var - * @return $this - */ - public function setEventParameterName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * This filter will be evaluated on the specified item parameter. Item - * parameters are logged as parameters in the item array. Item parameters - * include fields like "item_name" & "item_category". - * Item parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * Item parameters are only available in ecommerce events. To learn more - * about ecommerce events, see the [Measure ecommerce] - * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - * guide. - * - * Generated from protobuf field string item_parameter_name = 2; - * @return string - */ - public function getItemParameterName() - { - return $this->readOneof(2); - } - - public function hasItemParameterName() - { - return $this->hasOneof(2); - } - - /** - * This filter will be evaluated on the specified item parameter. Item - * parameters are logged as parameters in the item array. Item parameters - * include fields like "item_name" & "item_category". - * Item parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * Item parameters are only available in ecommerce events. To learn more - * about ecommerce events, see the [Measure ecommerce] - * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - * guide. - * - * Generated from protobuf field string item_parameter_name = 2; - * @param string $var - * @return $this - */ - public function setItemParameterName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @return \Google\Analytics\Data\V1alpha\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(4); - } - - public function hasStringFilter() - { - return $this->hasOneof(4); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @param \Google\Analytics\Data\V1alpha\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\StringFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @return \Google\Analytics\Data\V1alpha\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(5); - } - - public function hasInListFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @param \Google\Analytics\Data\V1alpha\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\InListFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @return \Google\Analytics\Data\V1alpha\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(6); - } - - public function hasNumericFilter() - { - return $this->hasOneof(6); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @param \Google\Analytics\Data\V1alpha\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericFilter::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @return \Google\Analytics\Data\V1alpha\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(7); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(7); - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @param \Google\Analytics\Data\V1alpha\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\BetweenFilter::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneParameter() - { - return $this->whichOneof("one_parameter"); - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilterExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilterExpression.php deleted file mode 100644 index dfc32d8c01af..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilterExpression.php +++ /dev/null @@ -1,180 +0,0 @@ -google.analytics.data.v1alpha.FunnelParameterFilterExpression - */ -class FunnelParameterFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList $and_group - * The FunnelParameterFilterExpression in `andGroup` have an AND - * relationship. - * @type \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList $or_group - * The FunnelParameterFilterExpression in `orGroup` have an OR - * relationship. - * @type \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression $not_expression - * The FunnelParameterFilterExpression is NOT of `notExpression`. - * @type \Google\Analytics\Data\V1alpha\FunnelParameterFilter $funnel_parameter_filter - * A primitive funnel parameter filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The FunnelParameterFilterExpression in `andGroup` have an AND - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * @return \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * The FunnelParameterFilterExpression in `andGroup` have an AND - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * @param \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The FunnelParameterFilterExpression in `orGroup` have an OR - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * @return \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * The FunnelParameterFilterExpression in `orGroup` have an OR - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * @param \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FunnelParameterFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * @return \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FunnelParameterFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * @param \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive funnel parameter filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * @return \Google\Analytics\Data\V1alpha\FunnelParameterFilter|null - */ - public function getFunnelParameterFilter() - { - return $this->readOneof(4); - } - - public function hasFunnelParameterFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive funnel parameter filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * @param \Google\Analytics\Data\V1alpha\FunnelParameterFilter $var - * @return $this - */ - public function setFunnelParameterFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelParameterFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilterExpressionList.php deleted file mode 100644 index 4ef706a40670..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelParameterFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - */ -class FunnelParameterFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * The list of funnel parameter filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * The list of funnel parameter filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The list of funnel parameter filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * The list of funnel parameter filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * @param array<\Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\FunnelParameterFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelResponseMetadata.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelResponseMetadata.php deleted file mode 100644 index 78714d6506c6..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelResponseMetadata.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.data.v1alpha.FunnelResponseMetadata - */ -class FunnelResponseMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * If funnel report results are - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes what percentage of events were used in this funnel report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - private $sampling_metadatas; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $sampling_metadatas - * If funnel report results are - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes what percentage of events were used in this funnel report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * If funnel report results are - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes what percentage of events were used in this funnel report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSamplingMetadatas() - { - return $this->sampling_metadatas; - } - - /** - * If funnel report results are - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes what percentage of events were used in this funnel report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - * @param array<\Google\Analytics\Data\V1alpha\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSamplingMetadatas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\SamplingMetadata::class); - $this->sampling_metadatas = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelStep.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelStep.php deleted file mode 100644 index bdb78764bf0c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelStep.php +++ /dev/null @@ -1,243 +0,0 @@ -google.analytics.data.v1alpha.FunnelStep - */ -class FunnelStep extends \Google\Protobuf\Internal\Message -{ - /** - * The distinctive name for this step. If unspecified, steps will be named - * by a 1 based indexed name (for example "0. ", "1. ", etc.). This name - * defines string value returned by the `funnelStepName` dimension. For - * example, specifying `name = Purchase` in the request's third funnel step - * will produce `3. Purchase` in the funnel report response. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * If true, this step must directly follow the previous step. If false, - * there can be events between the previous step and this step. If - * unspecified, `isDirectlyFollowedBy` is treated as false. - * - * Generated from protobuf field bool is_directly_followed_by = 2; - */ - protected $is_directly_followed_by = false; - /** - * If specified, this step must complete within this duration of the - * completion of the prior step. `withinDurationFromPriorStep` is inclusive - * of the endpoint at the microsecond granularity. For example a duration of - * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 - * microsecond. - * `withinDurationFromPriorStep` is optional, and if unspecified, steps may - * be separated by any time duration. - * - * Generated from protobuf field optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - protected $within_duration_from_prior_step = null; - /** - * The condition that your users must meet to be included in this step of - * the funnel journey. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - protected $filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The distinctive name for this step. If unspecified, steps will be named - * by a 1 based indexed name (for example "0. ", "1. ", etc.). This name - * defines string value returned by the `funnelStepName` dimension. For - * example, specifying `name = Purchase` in the request's third funnel step - * will produce `3. Purchase` in the funnel report response. - * @type bool $is_directly_followed_by - * If true, this step must directly follow the previous step. If false, - * there can be events between the previous step and this step. If - * unspecified, `isDirectlyFollowedBy` is treated as false. - * @type \Google\Protobuf\Duration $within_duration_from_prior_step - * If specified, this step must complete within this duration of the - * completion of the prior step. `withinDurationFromPriorStep` is inclusive - * of the endpoint at the microsecond granularity. For example a duration of - * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 - * microsecond. - * `withinDurationFromPriorStep` is optional, and if unspecified, steps may - * be separated by any time duration. - * @type \Google\Analytics\Data\V1alpha\FunnelFilterExpression $filter_expression - * The condition that your users must meet to be included in this step of - * the funnel journey. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The distinctive name for this step. If unspecified, steps will be named - * by a 1 based indexed name (for example "0. ", "1. ", etc.). This name - * defines string value returned by the `funnelStepName` dimension. For - * example, specifying `name = Purchase` in the request's third funnel step - * will produce `3. Purchase` in the funnel report response. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The distinctive name for this step. If unspecified, steps will be named - * by a 1 based indexed name (for example "0. ", "1. ", etc.). This name - * defines string value returned by the `funnelStepName` dimension. For - * example, specifying `name = Purchase` in the request's third funnel step - * will produce `3. Purchase` in the funnel report response. - * - * 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; - } - - /** - * If true, this step must directly follow the previous step. If false, - * there can be events between the previous step and this step. If - * unspecified, `isDirectlyFollowedBy` is treated as false. - * - * Generated from protobuf field bool is_directly_followed_by = 2; - * @return bool - */ - public function getIsDirectlyFollowedBy() - { - return $this->is_directly_followed_by; - } - - /** - * If true, this step must directly follow the previous step. If false, - * there can be events between the previous step and this step. If - * unspecified, `isDirectlyFollowedBy` is treated as false. - * - * Generated from protobuf field bool is_directly_followed_by = 2; - * @param bool $var - * @return $this - */ - public function setIsDirectlyFollowedBy($var) - { - GPBUtil::checkBool($var); - $this->is_directly_followed_by = $var; - - return $this; - } - - /** - * If specified, this step must complete within this duration of the - * completion of the prior step. `withinDurationFromPriorStep` is inclusive - * of the endpoint at the microsecond granularity. For example a duration of - * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 - * microsecond. - * `withinDurationFromPriorStep` is optional, and if unspecified, steps may - * be separated by any time duration. - * - * Generated from protobuf field optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getWithinDurationFromPriorStep() - { - return $this->within_duration_from_prior_step; - } - - public function hasWithinDurationFromPriorStep() - { - return isset($this->within_duration_from_prior_step); - } - - public function clearWithinDurationFromPriorStep() - { - unset($this->within_duration_from_prior_step); - } - - /** - * If specified, this step must complete within this duration of the - * completion of the prior step. `withinDurationFromPriorStep` is inclusive - * of the endpoint at the microsecond granularity. For example a duration of - * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 - * microsecond. - * `withinDurationFromPriorStep` is optional, and if unspecified, steps may - * be separated by any time duration. - * - * Generated from protobuf field optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWithinDurationFromPriorStep($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->within_duration_from_prior_step = $var; - - return $this; - } - - /** - * The condition that your users must meet to be included in this step of - * the funnel journey. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * @return \Google\Analytics\Data\V1alpha\FunnelFilterExpression|null - */ - public function getFilterExpression() - { - return $this->filter_expression; - } - - public function hasFilterExpression() - { - return isset($this->filter_expression); - } - - public function clearFilterExpression() - { - unset($this->filter_expression); - } - - /** - * The condition that your users must meet to be included in this step of - * the funnel journey. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * @param \Google\Analytics\Data\V1alpha\FunnelFilterExpression $var - * @return $this - */ - public function setFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelFilterExpression::class); - $this->filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelSubReport.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelSubReport.php deleted file mode 100644 index 917e57462352..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/FunnelSubReport.php +++ /dev/null @@ -1,196 +0,0 @@ -google.analytics.data.v1alpha.FunnelSubReport - */ -class FunnelSubReport extends \Google\Protobuf\Internal\Message -{ - /** - * Describes dimension columns. Funnel reports always include the funnel step - * dimension in sub report responses. Additional dimensions like breakdowns, - * dates, and next actions may be present in the response if requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * Describes metric columns. Funnel reports always include active users in sub - * report responses. The funnel table includes additional metrics like - * completion rate, abandonments, and abandonments rate. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - private $rows; - /** - * Metadata for the funnel report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - protected $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. Funnel reports always include the funnel step - * dimension in sub report responses. Additional dimensions like breakdowns, - * dates, and next actions may be present in the response if requested. - * @type array<\Google\Analytics\Data\V1alpha\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. Funnel reports always include active users in sub - * report responses. The funnel table includes additional metrics like - * completion rate, abandonments, and abandonments rate. - * @type array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type \Google\Analytics\Data\V1alpha\FunnelResponseMetadata $metadata - * Metadata for the funnel report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Describes dimension columns. Funnel reports always include the funnel step - * dimension in sub report responses. Additional dimensions like breakdowns, - * dates, and next actions may be present in the response if requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. Funnel reports always include the funnel step - * dimension in sub report responses. Additional dimensions like breakdowns, - * dates, and next actions may be present in the response if requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1alpha\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. Funnel reports always include active users in sub - * report responses. The funnel table includes additional metrics like - * completion rate, abandonments, and abandonments rate. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. Funnel reports always include active users in sub - * report responses. The funnel table includes additional metrics like - * completion rate, abandonments, and abandonments rate. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Data\V1alpha\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row rows = 3; - * @param array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * Metadata for the funnel report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * @return \Google\Analytics\Data\V1alpha\FunnelResponseMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata for the funnel report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * @param \Google\Analytics\Data\V1alpha\FunnelResponseMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelResponseMetadata::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetAudienceListRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetAudienceListRequest.php deleted file mode 100644 index b0b4e994fe0c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetAudienceListRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.data.v1alpha.GetAudienceListRequest - */ -class GetAudienceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The audience list resource name. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The audience list resource name. - * Format: `properties/{property}/audienceLists/{audience_list}` - * Please see {@see AlphaAnalyticsDataClient::audienceListName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\GetAudienceListRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The audience list resource name. - * Format: `properties/{property}/audienceLists/{audience_list}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The audience list resource name. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * 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 audience list resource name. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetPropertyQuotasSnapshotRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetPropertyQuotasSnapshotRequest.php deleted file mode 100644 index 499e0aec5cd7..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetPropertyQuotasSnapshotRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.data.v1alpha.GetPropertyQuotasSnapshotRequest - */ -class GetPropertyQuotasSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Quotas from this property will be listed in the response. - * Format: `properties/{property}/propertyQuotasSnapshot` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Quotas from this property will be listed in the response. - * Format: `properties/{property}/propertyQuotasSnapshot` - * Please see {@see AlphaAnalyticsDataClient::propertyQuotasSnapshotName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\GetPropertyQuotasSnapshotRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Quotas from this property will be listed in the response. - * Format: `properties/{property}/propertyQuotasSnapshot` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. Quotas from this property will be listed in the response. - * Format: `properties/{property}/propertyQuotasSnapshot` - * - * 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. Quotas from this property will be listed in the response. - * Format: `properties/{property}/propertyQuotasSnapshot` - * - * 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetRecurringAudienceListRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetRecurringAudienceListRequest.php deleted file mode 100644 index 62483c22faa6..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetRecurringAudienceListRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.data.v1alpha.GetRecurringAudienceListRequest - */ -class GetRecurringAudienceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The recurring audience list resource name. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The recurring audience list resource name. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * Please see {@see AlphaAnalyticsDataClient::recurringAudienceListName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\GetRecurringAudienceListRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The recurring audience list resource name. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The recurring audience list resource name. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * - * 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 recurring audience list resource name. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * - * 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetReportTaskRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetReportTaskRequest.php deleted file mode 100644 index b0bbbd7685cf..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/GetReportTaskRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.analytics.data.v1alpha.GetReportTaskRequest - */ -class GetReportTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The report task resource name. - * Format: `properties/{property}/reportTasks/{report_task}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The report task resource name. - * Format: `properties/{property}/reportTasks/{report_task}` - * Please see {@see AlphaAnalyticsDataClient::reportTaskName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\GetReportTaskRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The report task resource name. - * Format: `properties/{property}/reportTasks/{report_task}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The report task resource name. - * Format: `properties/{property}/reportTasks/{report_task}` - * - * 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 report task resource name. - * Format: `properties/{property}/reportTasks/{report_task}` - * - * 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/InListFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/InListFilter.php deleted file mode 100644 index 6a21d6edf156..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/InListFilter.php +++ /dev/null @@ -1,105 +0,0 @@ -google.analytics.data.v1alpha.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The list of string values. - * Must be non-empty. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListAudienceListsRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListAudienceListsRequest.php deleted file mode 100644 index f5a915fcf453..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListAudienceListsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.data.v1alpha.ListAudienceListsRequest - */ -class ListAudienceListsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. All audience lists for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of audience lists to return. The service may - * return fewer than this value. If unspecified, at most 200 audience lists - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAudienceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. All audience lists for this property will be listed in the - * response. Format: `properties/{property}` - * Please see {@see AlphaAnalyticsDataClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\ListAudienceListsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. All audience lists for this property will be listed in the - * response. Format: `properties/{property}` - * @type int $page_size - * Optional. The maximum number of audience lists to return. The service may - * return fewer than this value. If unspecified, at most 200 audience lists - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * @type string $page_token - * Optional. A page token, received from a previous `ListAudienceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceLists` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. All audience lists for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. All audience lists for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of audience lists to return. The service may - * return fewer than this value. If unspecified, at most 200 audience lists - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of audience lists to return. The service may - * return fewer than this value. If unspecified, at most 200 audience lists - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListAudienceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAudienceLists` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceLists` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListAudienceListsResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListAudienceListsResponse.php deleted file mode 100644 index af435a8bb383..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListAudienceListsResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.data.v1alpha.ListAudienceListsResponse - */ -class ListAudienceListsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Each audience list for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceList audience_lists = 1; - */ - private $audience_lists; - /** - * 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 optional string next_page_token = 2; - */ - protected $next_page_token = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\AudienceList>|\Google\Protobuf\Internal\RepeatedField $audience_lists - * Each audience list for a property. - * @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\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Each audience list for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceList audience_lists = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudienceLists() - { - return $this->audience_lists; - } - - /** - * Each audience list for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceList audience_lists = 1; - * @param array<\Google\Analytics\Data\V1alpha\AudienceList>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudienceLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\AudienceList::class); - $this->audience_lists = $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 optional string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return isset($this->next_page_token) ? $this->next_page_token : ''; - } - - public function hasNextPageToken() - { - return isset($this->next_page_token); - } - - public function clearNextPageToken() - { - unset($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 optional 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListRecurringAudienceListsRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListRecurringAudienceListsRequest.php deleted file mode 100644 index c0ce897dbad9..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListRecurringAudienceListsRequest.php +++ /dev/null @@ -1,186 +0,0 @@ -google.analytics.data.v1alpha.ListRecurringAudienceListsRequest - */ -class ListRecurringAudienceListsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. All recurring audience lists for this property will be listed in - * the response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of recurring audience lists to return. The - * service may return fewer than this value. If unspecified, at most 200 - * recurring audience lists will be returned. The maximum value is 1000 - * (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListRecurringAudienceLists` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListRecurringAudienceLists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. All recurring audience lists for this property will be listed in - * the response. Format: `properties/{property}` - * Please see {@see AlphaAnalyticsDataClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\ListRecurringAudienceListsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. All recurring audience lists for this property will be listed in - * the response. Format: `properties/{property}` - * @type int $page_size - * Optional. The maximum number of recurring audience lists to return. The - * service may return fewer than this value. If unspecified, at most 200 - * recurring audience lists will be returned. The maximum value is 1000 - * (higher values will be coerced to the maximum). - * @type string $page_token - * Optional. A page token, received from a previous - * `ListRecurringAudienceLists` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListRecurringAudienceLists` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. All recurring audience lists for this property will be listed in - * the response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. All recurring audience lists for this property will be listed in - * the response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of recurring audience lists to return. The - * service may return fewer than this value. If unspecified, at most 200 - * recurring audience lists will be returned. The maximum value is 1000 - * (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of recurring audience lists to return. The - * service may return fewer than this value. If unspecified, at most 200 - * recurring audience lists will be returned. The maximum value is 1000 - * (higher values will be coerced to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListRecurringAudienceLists` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListRecurringAudienceLists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListRecurringAudienceLists` call. Provide this to retrieve the subsequent - * page. - * When paginating, all other parameters provided to - * `ListRecurringAudienceLists` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListRecurringAudienceListsResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListRecurringAudienceListsResponse.php deleted file mode 100644 index 0a48186323f6..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListRecurringAudienceListsResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.data.v1alpha.ListRecurringAudienceListsResponse - */ -class ListRecurringAudienceListsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Each recurring audience list for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_lists = 1; - */ - private $recurring_audience_lists; - /** - * 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 optional string next_page_token = 2; - */ - protected $next_page_token = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\RecurringAudienceList>|\Google\Protobuf\Internal\RepeatedField $recurring_audience_lists - * Each recurring audience list for a property. - * @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\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Each recurring audience list for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_lists = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRecurringAudienceLists() - { - return $this->recurring_audience_lists; - } - - /** - * Each recurring audience list for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.RecurringAudienceList recurring_audience_lists = 1; - * @param array<\Google\Analytics\Data\V1alpha\RecurringAudienceList>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRecurringAudienceLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\RecurringAudienceList::class); - $this->recurring_audience_lists = $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 optional string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return isset($this->next_page_token) ? $this->next_page_token : ''; - } - - public function hasNextPageToken() - { - return isset($this->next_page_token); - } - - public function clearNextPageToken() - { - unset($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 optional 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListReportTasksRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListReportTasksRequest.php deleted file mode 100644 index 12429e405d16..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListReportTasksRequest.php +++ /dev/null @@ -1,158 +0,0 @@ -google.analytics.data.v1alpha.ListReportTasksRequest - */ -class ListReportTasksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. All report tasks for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of report tasks to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListReportTasks` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. All report tasks for this property will be listed in the - * response. Format: `properties/{property}` - * Please see {@see AlphaAnalyticsDataClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\ListReportTasksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. All report tasks for this property will be listed in the - * response. Format: `properties/{property}` - * @type int $page_size - * Optional. The maximum number of report tasks to return. - * @type string $page_token - * Optional. A page token, received from a previous `ListReportTasks` call. - * Provide this to retrieve the subsequent page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. All report tasks for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. All report tasks for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of report tasks to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of report tasks to return. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListReportTasks` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListReportTasks` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListReportTasksResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListReportTasksResponse.php deleted file mode 100644 index 48be01c1d7a8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ListReportTasksResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.data.v1alpha.ListReportTasksResponse - */ -class ListReportTasksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Each report task for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.ReportTask report_tasks = 1; - */ - private $report_tasks; - /** - * 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 optional string next_page_token = 2; - */ - protected $next_page_token = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\ReportTask>|\Google\Protobuf\Internal\RepeatedField $report_tasks - * Each report task for a property. - * @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\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Each report task for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.ReportTask report_tasks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReportTasks() - { - return $this->report_tasks; - } - - /** - * Each report task for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.ReportTask report_tasks = 1; - * @param array<\Google\Analytics\Data\V1alpha\ReportTask>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReportTasks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\ReportTask::class); - $this->report_tasks = $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 optional string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return isset($this->next_page_token) ? $this->next_page_token : ''; - } - - public function hasNextPageToken() - { - return isset($this->next_page_token); - } - - public function clearNextPageToken() - { - unset($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 optional 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Metric.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Metric.php deleted file mode 100644 index 87da0af9af02..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Metric.php +++ /dev/null @@ -1,221 +0,0 @@ -google.analytics.data.v1alpha.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - */ - protected $expression = ''; - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - */ - protected $invisible = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * @type string $expression - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * @type bool $invisible - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * 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; - } - - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - * @return bool - */ - public function getInvisible() - { - return $this->invisible; - } - - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - * @param bool $var - * @return $this - */ - public function setInvisible($var) - { - GPBUtil::checkBool($var); - $this->invisible = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricAggregation.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricAggregation.php deleted file mode 100644 index 941961ccf250..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricAggregation.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1alpha.MetricAggregation - */ -class MetricAggregation -{ - /** - * Unspecified operator. - * - * Generated from protobuf enum METRIC_AGGREGATION_UNSPECIFIED = 0; - */ - const METRIC_AGGREGATION_UNSPECIFIED = 0; - /** - * SUM operator. - * - * Generated from protobuf enum TOTAL = 1; - */ - const TOTAL = 1; - /** - * Minimum operator. - * - * Generated from protobuf enum MINIMUM = 5; - */ - const MINIMUM = 5; - /** - * Maximum operator. - * - * Generated from protobuf enum MAXIMUM = 6; - */ - const MAXIMUM = 6; - /** - * Count operator. - * - * Generated from protobuf enum COUNT = 4; - */ - const COUNT = 4; - - private static $valueToName = [ - self::METRIC_AGGREGATION_UNSPECIFIED => 'METRIC_AGGREGATION_UNSPECIFIED', - self::TOTAL => 'TOTAL', - self::MINIMUM => 'MINIMUM', - self::MAXIMUM => 'MAXIMUM', - self::COUNT => 'COUNT', - ]; - - 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricHeader.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricHeader.php deleted file mode 100644 index ed4f1ecb9a8d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricHeader.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.data.v1alpha.MetricHeader - */ -class MetricHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The metric's name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1alpha.MetricType type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The metric's name. - * @type int $type - * The metric's data type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The metric's name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The metric's name. - * - * 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; - } - - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1alpha.MetricType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1alpha.MetricType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\MetricType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricType.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricType.php deleted file mode 100644 index 8dc85c6cf152..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricType.php +++ /dev/null @@ -1,131 +0,0 @@ -google.analytics.data.v1alpha.MetricType - */ -class MetricType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum METRIC_TYPE_UNSPECIFIED = 0; - */ - const METRIC_TYPE_UNSPECIFIED = 0; - /** - * Integer type. - * - * Generated from protobuf enum TYPE_INTEGER = 1; - */ - const TYPE_INTEGER = 1; - /** - * Floating point type. - * - * Generated from protobuf enum TYPE_FLOAT = 2; - */ - const TYPE_FLOAT = 2; - /** - * A duration of seconds; a special floating point type. - * - * Generated from protobuf enum TYPE_SECONDS = 4; - */ - const TYPE_SECONDS = 4; - /** - * A duration in milliseconds; a special floating point type. - * - * Generated from protobuf enum TYPE_MILLISECONDS = 5; - */ - const TYPE_MILLISECONDS = 5; - /** - * A duration in minutes; a special floating point type. - * - * Generated from protobuf enum TYPE_MINUTES = 6; - */ - const TYPE_MINUTES = 6; - /** - * A duration in hours; a special floating point type. - * - * Generated from protobuf enum TYPE_HOURS = 7; - */ - const TYPE_HOURS = 7; - /** - * A custom metric of standard type; a special floating point type. - * - * Generated from protobuf enum TYPE_STANDARD = 8; - */ - const TYPE_STANDARD = 8; - /** - * An amount of money; a special floating point type. - * - * Generated from protobuf enum TYPE_CURRENCY = 9; - */ - const TYPE_CURRENCY = 9; - /** - * A length in feet; a special floating point type. - * - * Generated from protobuf enum TYPE_FEET = 10; - */ - const TYPE_FEET = 10; - /** - * A length in miles; a special floating point type. - * - * Generated from protobuf enum TYPE_MILES = 11; - */ - const TYPE_MILES = 11; - /** - * A length in meters; a special floating point type. - * - * Generated from protobuf enum TYPE_METERS = 12; - */ - const TYPE_METERS = 12; - /** - * A length in kilometers; a special floating point type. - * - * Generated from protobuf enum TYPE_KILOMETERS = 13; - */ - const TYPE_KILOMETERS = 13; - - private static $valueToName = [ - self::METRIC_TYPE_UNSPECIFIED => 'METRIC_TYPE_UNSPECIFIED', - self::TYPE_INTEGER => 'TYPE_INTEGER', - self::TYPE_FLOAT => 'TYPE_FLOAT', - self::TYPE_SECONDS => 'TYPE_SECONDS', - self::TYPE_MILLISECONDS => 'TYPE_MILLISECONDS', - self::TYPE_MINUTES => 'TYPE_MINUTES', - self::TYPE_HOURS => 'TYPE_HOURS', - self::TYPE_STANDARD => 'TYPE_STANDARD', - self::TYPE_CURRENCY => 'TYPE_CURRENCY', - self::TYPE_FEET => 'TYPE_FEET', - self::TYPE_MILES => 'TYPE_MILES', - self::TYPE_METERS => 'TYPE_METERS', - self::TYPE_KILOMETERS => 'TYPE_KILOMETERS', - ]; - - 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricValue.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricValue.php deleted file mode 100644 index 4abe417e906f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/MetricValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1alpha.MetricValue - */ -class MetricValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Measurement value. See MetricHeader for type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Measurement value. See MetricHeader for type. - * - * Generated from protobuf field string value = 4; - * @return string - */ - public function getValue() - { - return $this->readOneof(4); - } - - public function hasValue() - { - return $this->hasOneof(4); - } - - /** - * Measurement value. See MetricHeader for type. - * - * Generated from protobuf field string value = 4; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericFilter.php deleted file mode 100644 index 6a6fb83e34ec..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericFilter.php +++ /dev/null @@ -1,111 +0,0 @@ -google.analytics.data.v1alpha.NumericFilter - */ -class NumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter.Operation operation = 1; - */ - protected $operation = 0; - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * The operation type for this filter. - * @type \Google\Analytics\Data\V1alpha\NumericValue $value - * A numeric value or a date value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter.Operation operation = 1; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter.Operation operation = 1; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\NumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue value = 2; - * @return \Google\Analytics\Data\V1alpha\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericValue value = 2; - * @param \Google\Analytics\Data\V1alpha\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericFilter/Operation.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericFilter/Operation.php deleted file mode 100644 index 90f4da5651ee..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericFilter/Operation.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.data.v1alpha.NumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; - */ - const LESS_THAN_OR_EQUAL = 3; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; - */ - const GREATER_THAN_OR_EQUAL = 5; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Data\V1alpha\NumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericValue.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericValue.php deleted file mode 100644 index 58236fe2e880..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/NumericValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.data.v1alpha.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value - * @type float $double_value - * Double value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy.php deleted file mode 100644 index 957ad52e335b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy.php +++ /dev/null @@ -1,144 +0,0 @@ -google.analytics.data.v1alpha.OrderBy - */ -class OrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - */ - protected $desc = false; - protected $one_order_by; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\OrderBy\MetricOrderBy $metric - * Sorts results by a metric's values. - * @type \Google\Analytics\Data\V1alpha\OrderBy\DimensionOrderBy $dimension - * Sorts results by a dimension's values. - * @type bool $desc - * If true, sorts by descending order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - * @return \Google\Analytics\Data\V1alpha\OrderBy\MetricOrderBy|null - */ - public function getMetric() - { - return $this->readOneof(1); - } - - public function hasMetric() - { - return $this->hasOneof(1); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - * @param \Google\Analytics\Data\V1alpha\OrderBy\MetricOrderBy $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\OrderBy\MetricOrderBy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - * @return \Google\Analytics\Data\V1alpha\OrderBy\DimensionOrderBy|null - */ - public function getDimension() - { - return $this->readOneof(2); - } - - public function hasDimension() - { - return $this->hasOneof(2); - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - * @param \Google\Analytics\Data\V1alpha\OrderBy\DimensionOrderBy $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\OrderBy\DimensionOrderBy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - * @return bool - */ - public function getDesc() - { - return $this->desc; - } - - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - * @param bool $var - * @return $this - */ - public function setDesc($var) - { - GPBUtil::checkBool($var); - $this->desc = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneOrderBy() - { - return $this->whichOneof("one_order_by"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/DimensionOrderBy.php deleted file mode 100644 index e660e209cf8e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/DimensionOrderBy.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.data.v1alpha.OrderBy.DimensionOrderBy - */ -class DimensionOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType order_type = 2; - */ - protected $order_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * A dimension name in the request to order by. - * @type int $order_type - * Controls the rule for dimension value ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return int - */ - public function getOrderType() - { - return $this->order_type; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param int $var - * @return $this - */ - public function setOrderType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\OrderBy\DimensionOrderBy\OrderType::class); - $this->order_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionOrderBy::class, \Google\Analytics\Data\V1alpha\OrderBy_DimensionOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/DimensionOrderBy/OrderType.php deleted file mode 100644 index 002c3d3b1f49..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/DimensionOrderBy/OrderType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType - */ -class OrderType -{ - /** - * Unspecified. - * - * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; - */ - const ORDER_TYPE_UNSPECIFIED = 0; - /** - * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - * "b" < "z". - * - * Generated from protobuf enum ALPHANUMERIC = 1; - */ - const ALPHANUMERIC = 1; - /** - * Case insensitive alphanumeric sort by lower case Unicode code point. - * For example, "2" < "A" < "b" < "X" < "z". - * - * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - const CASE_INSENSITIVE_ALPHANUMERIC = 2; - /** - * Dimension values are converted to numbers before sorting. For example - * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - * "25". Non-numeric dimension values all have equal ordering value below - * all numeric values. - * - * Generated from protobuf enum NUMERIC = 3; - */ - const NUMERIC = 3; - - private static $valueToName = [ - self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', - self::ALPHANUMERIC => 'ALPHANUMERIC', - self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', - self::NUMERIC => 'NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderType::class, \Google\Analytics\Data\V1alpha\OrderBy_DimensionOrderBy_OrderType::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/MetricOrderBy.php deleted file mode 100644 index 7d2097749859..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/OrderBy/MetricOrderBy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.data.v1alpha.OrderBy.MetricOrderBy - */ -class MetricOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * A metric name in the request to order by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricOrderBy::class, \Google\Analytics\Data\V1alpha\OrderBy_MetricOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/PropertyQuota.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/PropertyQuota.php deleted file mode 100644 index 37c205d8251b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/PropertyQuota.php +++ /dev/null @@ -1,363 +0,0 @@ -google.analytics.data.v1alpha.PropertyQuota - */ -class PropertyQuota extends \Google\Protobuf\Internal\Message -{ - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1; - */ - protected $tokens_per_day = null; - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - protected $tokens_per_hour = null; - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3; - */ - protected $concurrent_requests = null; - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - */ - protected $server_errors_per_project_per_hour = null; - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - */ - protected $potentially_thresholded_requests_per_hour = null; - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_project_per_hour = 6; - */ - protected $tokens_per_project_per_hour = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\QuotaStatus $tokens_per_day - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * @type \Google\Analytics\Data\V1alpha\QuotaStatus $tokens_per_hour - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * @type \Google\Analytics\Data\V1alpha\QuotaStatus $concurrent_requests - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * @type \Google\Analytics\Data\V1alpha\QuotaStatus $server_errors_per_project_per_hour - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * @type \Google\Analytics\Data\V1alpha\QuotaStatus $potentially_thresholded_requests_per_hour - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * @type \Google\Analytics\Data\V1alpha\QuotaStatus $tokens_per_project_per_hour - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1; - * @return \Google\Analytics\Data\V1alpha\QuotaStatus|null - */ - public function getTokensPerDay() - { - return $this->tokens_per_day; - } - - public function hasTokensPerDay() - { - return isset($this->tokens_per_day); - } - - public function clearTokensPerDay() - { - unset($this->tokens_per_day); - } - - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1; - * @param \Google\Analytics\Data\V1alpha\QuotaStatus $var - * @return $this - */ - public function setTokensPerDay($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\QuotaStatus::class); - $this->tokens_per_day = $var; - - return $this; - } - - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - * @return \Google\Analytics\Data\V1alpha\QuotaStatus|null - */ - public function getTokensPerHour() - { - return $this->tokens_per_hour; - } - - public function hasTokensPerHour() - { - return isset($this->tokens_per_hour); - } - - public function clearTokensPerHour() - { - unset($this->tokens_per_hour); - } - - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - * @param \Google\Analytics\Data\V1alpha\QuotaStatus $var - * @return $this - */ - public function setTokensPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\QuotaStatus::class); - $this->tokens_per_hour = $var; - - return $this; - } - - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3; - * @return \Google\Analytics\Data\V1alpha\QuotaStatus|null - */ - public function getConcurrentRequests() - { - return $this->concurrent_requests; - } - - public function hasConcurrentRequests() - { - return isset($this->concurrent_requests); - } - - public function clearConcurrentRequests() - { - unset($this->concurrent_requests); - } - - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3; - * @param \Google\Analytics\Data\V1alpha\QuotaStatus $var - * @return $this - */ - public function setConcurrentRequests($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\QuotaStatus::class); - $this->concurrent_requests = $var; - - return $this; - } - - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * @return \Google\Analytics\Data\V1alpha\QuotaStatus|null - */ - public function getServerErrorsPerProjectPerHour() - { - return $this->server_errors_per_project_per_hour; - } - - public function hasServerErrorsPerProjectPerHour() - { - return isset($this->server_errors_per_project_per_hour); - } - - public function clearServerErrorsPerProjectPerHour() - { - unset($this->server_errors_per_project_per_hour); - } - - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * @param \Google\Analytics\Data\V1alpha\QuotaStatus $var - * @return $this - */ - public function setServerErrorsPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\QuotaStatus::class); - $this->server_errors_per_project_per_hour = $var; - - return $this; - } - - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * @return \Google\Analytics\Data\V1alpha\QuotaStatus|null - */ - public function getPotentiallyThresholdedRequestsPerHour() - { - return $this->potentially_thresholded_requests_per_hour; - } - - public function hasPotentiallyThresholdedRequestsPerHour() - { - return isset($this->potentially_thresholded_requests_per_hour); - } - - public function clearPotentiallyThresholdedRequestsPerHour() - { - unset($this->potentially_thresholded_requests_per_hour); - } - - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * @param \Google\Analytics\Data\V1alpha\QuotaStatus $var - * @return $this - */ - public function setPotentiallyThresholdedRequestsPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\QuotaStatus::class); - $this->potentially_thresholded_requests_per_hour = $var; - - return $this; - } - - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_project_per_hour = 6; - * @return \Google\Analytics\Data\V1alpha\QuotaStatus|null - */ - public function getTokensPerProjectPerHour() - { - return $this->tokens_per_project_per_hour; - } - - public function hasTokensPerProjectPerHour() - { - return isset($this->tokens_per_project_per_hour); - } - - public function clearTokensPerProjectPerHour() - { - unset($this->tokens_per_project_per_hour); - } - - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1alpha.QuotaStatus tokens_per_project_per_hour = 6; - * @param \Google\Analytics\Data\V1alpha\QuotaStatus $var - * @return $this - */ - public function setTokensPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\QuotaStatus::class); - $this->tokens_per_project_per_hour = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/PropertyQuotasSnapshot.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/PropertyQuotasSnapshot.php deleted file mode 100644 index 3386d2697d2e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/PropertyQuotasSnapshot.php +++ /dev/null @@ -1,199 +0,0 @@ -google.analytics.data.v1alpha.PropertyQuotasSnapshot - */ -class PropertyQuotasSnapshot extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The property quota snapshot resource name. - * - * Generated from protobuf field string name = 4 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Property Quota for core property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1; - */ - protected $core_property_quota = null; - /** - * Property Quota for realtime property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2; - */ - protected $realtime_property_quota = null; - /** - * Property Quota for funnel property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3; - */ - protected $funnel_property_quota = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The property quota snapshot resource name. - * @type \Google\Analytics\Data\V1alpha\PropertyQuota $core_property_quota - * Property Quota for core property tokens - * @type \Google\Analytics\Data\V1alpha\PropertyQuota $realtime_property_quota - * Property Quota for realtime property tokens - * @type \Google\Analytics\Data\V1alpha\PropertyQuota $funnel_property_quota - * Property Quota for funnel property tokens - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The property quota snapshot resource name. - * - * Generated from protobuf field string name = 4 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The property quota snapshot resource name. - * - * Generated from protobuf field string name = 4 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Property Quota for core property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1; - * @return \Google\Analytics\Data\V1alpha\PropertyQuota|null - */ - public function getCorePropertyQuota() - { - return $this->core_property_quota; - } - - public function hasCorePropertyQuota() - { - return isset($this->core_property_quota); - } - - public function clearCorePropertyQuota() - { - unset($this->core_property_quota); - } - - /** - * Property Quota for core property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota core_property_quota = 1; - * @param \Google\Analytics\Data\V1alpha\PropertyQuota $var - * @return $this - */ - public function setCorePropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\PropertyQuota::class); - $this->core_property_quota = $var; - - return $this; - } - - /** - * Property Quota for realtime property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2; - * @return \Google\Analytics\Data\V1alpha\PropertyQuota|null - */ - public function getRealtimePropertyQuota() - { - return $this->realtime_property_quota; - } - - public function hasRealtimePropertyQuota() - { - return isset($this->realtime_property_quota); - } - - public function clearRealtimePropertyQuota() - { - unset($this->realtime_property_quota); - } - - /** - * Property Quota for realtime property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota realtime_property_quota = 2; - * @param \Google\Analytics\Data\V1alpha\PropertyQuota $var - * @return $this - */ - public function setRealtimePropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\PropertyQuota::class); - $this->realtime_property_quota = $var; - - return $this; - } - - /** - * Property Quota for funnel property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3; - * @return \Google\Analytics\Data\V1alpha\PropertyQuota|null - */ - public function getFunnelPropertyQuota() - { - return $this->funnel_property_quota; - } - - public function hasFunnelPropertyQuota() - { - return isset($this->funnel_property_quota); - } - - public function clearFunnelPropertyQuota() - { - unset($this->funnel_property_quota); - } - - /** - * Property Quota for funnel property tokens - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota funnel_property_quota = 3; - * @param \Google\Analytics\Data\V1alpha\PropertyQuota $var - * @return $this - */ - public function setFunnelPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\PropertyQuota::class); - $this->funnel_property_quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryAudienceListRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryAudienceListRequest.php deleted file mode 100644 index 1e552270bd7b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryAudienceListRequest.php +++ /dev/null @@ -1,205 +0,0 @@ -google.analytics.data.v1alpha.QueryAudienceListRequest - */ -class QueryAudienceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $offset = 0; - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = 0; - - /** - * @param string $name Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * @return \Google\Analytics\Data\V1alpha\QueryAudienceListRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * @type int|string $offset - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryAudienceListResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryAudienceListResponse.php deleted file mode 100644 index 34eacd07d7f2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryAudienceListResponse.php +++ /dev/null @@ -1,191 +0,0 @@ -google.analytics.data.v1alpha.QueryAudienceListResponse - */ -class QueryAudienceListResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration data about AudienceList being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceList correspond to the columns in the AudienceRows. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 1; - */ - protected $audience_list = null; - /** - * Rows for each user in an audience list. The number of rows in this - * response will be less than or equal to request's page size. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceRow audience_rows = 2; - */ - private $audience_rows; - /** - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - */ - protected $row_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\AudienceList $audience_list - * Configuration data about AudienceList being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceList correspond to the columns in the AudienceRows. - * @type array<\Google\Analytics\Data\V1alpha\AudienceRow>|\Google\Protobuf\Internal\RepeatedField $audience_rows - * Rows for each user in an audience list. The number of rows in this - * response will be less than or equal to request's page size. - * @type int $row_count - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Configuration data about AudienceList being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceList correspond to the columns in the AudienceRows. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 1; - * @return \Google\Analytics\Data\V1alpha\AudienceList|null - */ - public function getAudienceList() - { - return $this->audience_list; - } - - public function hasAudienceList() - { - return isset($this->audience_list); - } - - public function clearAudienceList() - { - unset($this->audience_list); - } - - /** - * Configuration data about AudienceList being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceList correspond to the columns in the AudienceRows. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 1; - * @param \Google\Analytics\Data\V1alpha\AudienceList $var - * @return $this - */ - public function setAudienceList($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\AudienceList::class); - $this->audience_list = $var; - - return $this; - } - - /** - * Rows for each user in an audience list. The number of rows in this - * response will be less than or equal to request's page size. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceRow audience_rows = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudienceRows() - { - return $this->audience_rows; - } - - /** - * Rows for each user in an audience list. The number of rows in this - * response will be less than or equal to request's page size. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceRow audience_rows = 2; - * @param array<\Google\Analytics\Data\V1alpha\AudienceRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudienceRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\AudienceRow::class); - $this->audience_rows = $arr; - - return $this; - } - - /** - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - * @return int - */ - public function getRowCount() - { - return isset($this->row_count) ? $this->row_count : 0; - } - - public function hasRowCount() - { - return isset($this->row_count); - } - - public function clearRowCount() - { - unset($this->row_count); - } - - /** - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryReportTaskRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryReportTaskRequest.php deleted file mode 100644 index 17ab1b591dc9..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryReportTaskRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.analytics.data.v1alpha.QueryReportTaskRequest - */ -class QueryReportTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The report source name. - * Format: `properties/{property}/reportTasks/{report}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. The row count of the start row in the report. The first row is - * counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $offset = 0; - /** - * Optional. The number of rows to return from the report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. The number of rows - * available to a QueryReportTaskRequest is further limited by the limit of - * the associated ReportTask. A query can retrieve at most ReportTask.limit - * rows. For example, if the ReportTask has a limit of 1,000, then a - * QueryReportTask request with offset=900 and limit=500 will return at most - * 100 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = 0; - - /** - * @param string $name Required. The report source name. - * Format: `properties/{property}/reportTasks/{report}` - * - * @return \Google\Analytics\Data\V1alpha\QueryReportTaskRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The report source name. - * Format: `properties/{property}/reportTasks/{report}` - * @type int|string $offset - * Optional. The row count of the start row in the report. The first row is - * counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * Optional. The number of rows to return from the report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. The number of rows - * available to a QueryReportTaskRequest is further limited by the limit of - * the associated ReportTask. A query can retrieve at most ReportTask.limit - * rows. For example, if the ReportTask has a limit of 1,000, then a - * QueryReportTask request with offset=900 and limit=500 will return at most - * 100 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The report source name. - * Format: `properties/{property}/reportTasks/{report}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The report source name. - * Format: `properties/{property}/reportTasks/{report}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The row count of the start row in the report. The first row is - * counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Optional. The row count of the start row in the report. The first row is - * counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * Optional. The number of rows to return from the report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. The number of rows - * available to a QueryReportTaskRequest is further limited by the limit of - * the associated ReportTask. A query can retrieve at most ReportTask.limit - * rows. For example, if the ReportTask has a limit of 1,000, then a - * QueryReportTask request with offset=900 and limit=500 will return at most - * 100 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Optional. The number of rows to return from the report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. The number of rows - * available to a QueryReportTaskRequest is further limited by the limit of - * the associated ReportTask. A query can retrieve at most ReportTask.limit - * rows. For example, if the ReportTask has a limit of 1,000, then a - * QueryReportTask request with offset=900 and limit=500 will return at most - * 100 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryReportTaskResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryReportTaskResponse.php deleted file mode 100644 index cc6ed351abce..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QueryReportTaskResponse.php +++ /dev/null @@ -1,323 +0,0 @@ -google.analytics.data.v1alpha.QueryReportTaskResponse - */ -class QueryReportTaskResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - private $rows; - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - private $totals; - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - private $maximums; - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - private $minimums; - /** - * The total number of rows in the query result. - * - * Generated from protobuf field int32 row_count = 7; - */ - protected $row_count = 0; - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; - */ - protected $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * @type array<\Google\Analytics\Data\V1alpha\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * @type array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $totals - * If requested, the totaled values of metrics. - * @type array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $maximums - * If requested, the maximum values of metrics. - * @type array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $minimums - * If requested, the minimum values of metrics. - * @type int $row_count - * The total number of rows in the query result. - * @type \Google\Analytics\Data\V1alpha\ResponseMetaData $metadata - * Metadata for the report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1alpha\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Data\V1alpha\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row rows = 3; - * @param array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row totals = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTotals() - { - return $this->totals; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row totals = 4; - * @param array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTotals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Row::class); - $this->totals = $arr; - - return $this; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row maximums = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaximums() - { - return $this->maximums; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row maximums = 5; - * @param array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaximums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Row::class); - $this->maximums = $arr; - - return $this; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row minimums = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinimums() - { - return $this->minimums; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Row minimums = 6; - * @param array<\Google\Analytics\Data\V1alpha\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinimums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Row::class); - $this->minimums = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. - * - * Generated from protobuf field int32 row_count = 7; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. - * - * Generated from protobuf field int32 row_count = 7; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; - * @return \Google\Analytics\Data\V1alpha\ResponseMetaData|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ResponseMetaData metadata = 8; - * @param \Google\Analytics\Data\V1alpha\ResponseMetaData $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\ResponseMetaData::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QuotaStatus.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QuotaStatus.php deleted file mode 100644 index d0e52585a08c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/QuotaStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.data.v1alpha.QuotaStatus - */ -class QuotaStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - */ - protected $consumed = 0; - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - */ - protected $remaining = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consumed - * Quota consumed by this request. - * @type int $remaining - * Quota remaining after this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @return int - */ - public function getConsumed() - { - return $this->consumed; - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @param int $var - * @return $this - */ - public function setConsumed($var) - { - GPBUtil::checkInt32($var); - $this->consumed = $var; - - return $this; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @return int - */ - public function getRemaining() - { - return $this->remaining; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @param int $var - * @return $this - */ - public function setRemaining($var) - { - GPBUtil::checkInt32($var); - $this->remaining = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RecurringAudienceList.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RecurringAudienceList.php deleted file mode 100644 index 39bf50246674..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RecurringAudienceList.php +++ /dev/null @@ -1,410 +0,0 @@ -google.analytics.data.v1alpha.RecurringAudienceList - */ -class RecurringAudienceList extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The recurring audience list resource name assigned - * during creation. This resource name identifies this - * `RecurringAudienceList`. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience = ''; - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $audience_display_name = ''; - /** - * Required. The dimensions requested and displayed in the audience list - * response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $dimensions; - /** - * Optional. The number of remaining days that a recurring audience export - * will produce an audience list instance. This counter decreases by one each - * day, and when it reaches zero, no new audience lists will be created. - * Recurring audience list request for Analytics 360 properties default to 180 - * days and have a maximum of 365 days. Requests for standard Analytics - * properties default to 14 days and have a maximum of 30 days. - * The minimum value allowed during creation is 1. Requests above their - * respective maximum will be coerced to their maximum. - * - * Generated from protobuf field optional int32 active_days_remaining = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $active_days_remaining = null; - /** - * Output only. Audience list resource names for audience list instances - * created for this recurring audience list. One audience list is created for - * each day, and the audience list will be listed here. - * This list is ordered with the most recently created audience list first. - * - * Generated from protobuf field repeated string audience_lists = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $audience_lists; - /** - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when a recurring audience - * list creates new audience lists. Webhooks allow a notification to be sent - * to your servers & avoid the need for polling. - * Two POST requests will be sent each time a recurring audience list creates - * an audience list. This happens once per day until a recurring audience list - * reaches 0 active days remaining. The first request will be sent showing a - * newly created audience list in its CREATING state. The second request will - * be sent after the audience list completes creation (either the ACTIVE or - * FAILED state). - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.WebhookNotification webhook_notification = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $webhook_notification = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The recurring audience list resource name assigned - * during creation. This resource name identifies this - * `RecurringAudienceList`. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * @type string $audience - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * @type string $audience_display_name - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * @type array<\Google\Analytics\Data\V1alpha\AudienceDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * Required. The dimensions requested and displayed in the audience list - * response. - * @type int $active_days_remaining - * Optional. The number of remaining days that a recurring audience export - * will produce an audience list instance. This counter decreases by one each - * day, and when it reaches zero, no new audience lists will be created. - * Recurring audience list request for Analytics 360 properties default to 180 - * days and have a maximum of 365 days. Requests for standard Analytics - * properties default to 14 days and have a maximum of 30 days. - * The minimum value allowed during creation is 1. Requests above their - * respective maximum will be coerced to their maximum. - * @type array|\Google\Protobuf\Internal\RepeatedField $audience_lists - * Output only. Audience list resource names for audience list instances - * created for this recurring audience list. One audience list is created for - * each day, and the audience list will be listed here. - * This list is ordered with the most recently created audience list first. - * @type \Google\Analytics\Data\V1alpha\WebhookNotification $webhook_notification - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when a recurring audience - * list creates new audience lists. Webhooks allow a notification to be sent - * to your servers & avoid the need for polling. - * Two POST requests will be sent each time a recurring audience list creates - * an audience list. This happens once per day until a recurring audience list - * reaches 0 active days remaining. The first request will be sent showing a - * newly created audience list in its CREATING state. The second request will - * be sent after the audience list completes creation (either the ACTIVE or - * FAILED state). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The recurring audience list resource name assigned - * during creation. This resource name identifies this - * `RecurringAudienceList`. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The recurring audience list resource name assigned - * during creation. This resource name identifies this - * `RecurringAudienceList`. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAudience() - { - return $this->audience; - } - - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkString($var, True); - $this->audience = $var; - - return $this; - } - - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAudienceDisplayName() - { - return $this->audience_display_name; - } - - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAudienceDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->audience_display_name = $var; - - return $this; - } - - /** - * Required. The dimensions requested and displayed in the audience list - * response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Required. The dimensions requested and displayed in the audience list - * response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Data\V1alpha\AudienceDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\AudienceDimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * Optional. The number of remaining days that a recurring audience export - * will produce an audience list instance. This counter decreases by one each - * day, and when it reaches zero, no new audience lists will be created. - * Recurring audience list request for Analytics 360 properties default to 180 - * days and have a maximum of 365 days. Requests for standard Analytics - * properties default to 14 days and have a maximum of 30 days. - * The minimum value allowed during creation is 1. Requests above their - * respective maximum will be coerced to their maximum. - * - * Generated from protobuf field optional int32 active_days_remaining = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getActiveDaysRemaining() - { - return isset($this->active_days_remaining) ? $this->active_days_remaining : 0; - } - - public function hasActiveDaysRemaining() - { - return isset($this->active_days_remaining); - } - - public function clearActiveDaysRemaining() - { - unset($this->active_days_remaining); - } - - /** - * Optional. The number of remaining days that a recurring audience export - * will produce an audience list instance. This counter decreases by one each - * day, and when it reaches zero, no new audience lists will be created. - * Recurring audience list request for Analytics 360 properties default to 180 - * days and have a maximum of 365 days. Requests for standard Analytics - * properties default to 14 days and have a maximum of 30 days. - * The minimum value allowed during creation is 1. Requests above their - * respective maximum will be coerced to their maximum. - * - * Generated from protobuf field optional int32 active_days_remaining = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setActiveDaysRemaining($var) - { - GPBUtil::checkInt32($var); - $this->active_days_remaining = $var; - - return $this; - } - - /** - * Output only. Audience list resource names for audience list instances - * created for this recurring audience list. One audience list is created for - * each day, and the audience list will be listed here. - * This list is ordered with the most recently created audience list first. - * - * Generated from protobuf field repeated string audience_lists = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudienceLists() - { - return $this->audience_lists; - } - - /** - * Output only. Audience list resource names for audience list instances - * created for this recurring audience list. One audience list is created for - * each day, and the audience list will be listed here. - * This list is ordered with the most recently created audience list first. - * - * Generated from protobuf field repeated string audience_lists = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudienceLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->audience_lists = $arr; - - return $this; - } - - /** - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when a recurring audience - * list creates new audience lists. Webhooks allow a notification to be sent - * to your servers & avoid the need for polling. - * Two POST requests will be sent each time a recurring audience list creates - * an audience list. This happens once per day until a recurring audience list - * reaches 0 active days remaining. The first request will be sent showing a - * newly created audience list in its CREATING state. The second request will - * be sent after the audience list completes creation (either the ACTIVE or - * FAILED state). - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.WebhookNotification webhook_notification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\WebhookNotification|null - */ - public function getWebhookNotification() - { - return $this->webhook_notification; - } - - public function hasWebhookNotification() - { - return isset($this->webhook_notification); - } - - public function clearWebhookNotification() - { - unset($this->webhook_notification); - } - - /** - * Optional. Configures webhook notifications to be sent from the Google - * Analytics Data API to your webhook server. Use of webhooks is optional. If - * unused, you'll need to poll this API to determine when a recurring audience - * list creates new audience lists. Webhooks allow a notification to be sent - * to your servers & avoid the need for polling. - * Two POST requests will be sent each time a recurring audience list creates - * an audience list. This happens once per day until a recurring audience list - * reaches 0 active days remaining. The first request will be sent showing a - * newly created audience list in its CREATING state. The second request will - * be sent after the audience list completes creation (either the ACTIVE or - * FAILED state). - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.WebhookNotification webhook_notification = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\WebhookNotification $var - * @return $this - */ - public function setWebhookNotification($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\WebhookNotification::class); - $this->webhook_notification = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask.php deleted file mode 100644 index 21bb03288be3..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask.php +++ /dev/null @@ -1,183 +0,0 @@ -google.analytics.data.v1alpha.ReportTask - */ -class ReportTask extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The report task resource name assigned during - * creation. Format: "properties/{property}/reportTasks/{report_task}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Optional. A report definition to fetch report data, which describes the - * structure of a report. It typically includes the fields that will be - * included in the report and the criteria that will be used to filter the - * data. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask.ReportDefinition report_definition = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $report_definition = null; - /** - * Output only. The report metadata for a specific report task, which provides - * information about a report. It typically includes the following - * information: the resource name of the report, the state of the report, the - * timestamp the report was created, etc, - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask.ReportMetadata report_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $report_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The report task resource name assigned during - * creation. Format: "properties/{property}/reportTasks/{report_task}" - * @type \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition $report_definition - * Optional. A report definition to fetch report data, which describes the - * structure of a report. It typically includes the fields that will be - * included in the report and the criteria that will be used to filter the - * data. - * @type \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata $report_metadata - * Output only. The report metadata for a specific report task, which provides - * information about a report. It typically includes the following - * information: the resource name of the report, the state of the report, the - * timestamp the report was created, etc, - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The report task resource name assigned during - * creation. Format: "properties/{property}/reportTasks/{report_task}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The report task resource name assigned during - * creation. Format: "properties/{property}/reportTasks/{report_task}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A report definition to fetch report data, which describes the - * structure of a report. It typically includes the fields that will be - * included in the report and the criteria that will be used to filter the - * data. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask.ReportDefinition report_definition = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition|null - */ - public function getReportDefinition() - { - return $this->report_definition; - } - - public function hasReportDefinition() - { - return isset($this->report_definition); - } - - public function clearReportDefinition() - { - unset($this->report_definition); - } - - /** - * Optional. A report definition to fetch report data, which describes the - * structure of a report. It typically includes the fields that will be - * included in the report and the criteria that will be used to filter the - * data. - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask.ReportDefinition report_definition = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition $var - * @return $this - */ - public function setReportDefinition($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition::class); - $this->report_definition = $var; - - return $this; - } - - /** - * Output only. The report metadata for a specific report task, which provides - * information about a report. It typically includes the following - * information: the resource name of the report, the state of the report, the - * timestamp the report was created, etc, - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask.ReportMetadata report_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata|null - */ - public function getReportMetadata() - { - return $this->report_metadata; - } - - public function hasReportMetadata() - { - return isset($this->report_metadata); - } - - public function clearReportMetadata() - { - unset($this->report_metadata); - } - - /** - * Output only. The report metadata for a specific report task, which provides - * information about a report. It typically includes the following - * information: the resource name of the report, the state of the report, the - * timestamp the report was created, etc, - * - * Generated from protobuf field .google.analytics.data.v1alpha.ReportTask.ReportMetadata report_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata $var - * @return $this - */ - public function setReportMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata::class); - $this->report_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportDefinition.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportDefinition.php deleted file mode 100644 index 620eeec3d907..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportDefinition.php +++ /dev/null @@ -1,658 +0,0 @@ -google.analytics.data.v1alpha.ReportTask.ReportDefinition - */ -class ReportDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $dimensions; - /** - * Optional. The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $metrics; - /** - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. - * If two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. In a cohort request, - * this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $date_ranges; - /** - * Optional. Dimension filters let you ask for only specific dimension - * values in the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dimension_filter = null; - /** - * Optional. The filter clause of metrics. Applied after aggregating the - * report's rows, similar to SQL having-clause. Dimensions cannot be used in - * this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_filter = null; - /** - * Optional. The row count of the start row from Google Analytics Storage. - * The first row is counted as row 0. - * When creating a report task, the `offset` and `limit` parameters define - * the subset of data rows from Google Analytics storage to be included in - * the generated report. For example, if there are a total of 300,000 rows - * in Google Analytics storage, the initial report task may have the - * first 10,000 rows with a limit of 10,000 and an offset of 0. - * Subsequently, another report task could cover the next 10,000 rows with a - * limit of 10,000 and an offset of 10,000. - * - * Generated from protobuf field int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $offset = 0; - /** - * Optional. The number of rows to return in the Report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if - * you set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = 0; - /** - * Optional. Aggregation of metrics. Aggregated metric values will be shown - * in rows where the dimension_values are set to - * "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $metric_aggregations; - /** - * Optional. Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $order_bys; - /** - * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $currency_code = ''; - /** - * Optional. Cohort group associated with this request. If there is a cohort - * group in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cohort_spec = null; - /** - * Optional. If false or unspecified, each row with all metrics equal to 0 - * will not be returned. If true, these rows will be returned if they are - * not separately removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * containing eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $keep_empty_rows = false; - /** - * Optional. The report's sampling level. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sampling_level = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * Optional. The dimensions requested and displayed. - * @type array<\Google\Analytics\Data\V1alpha\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * Optional. The metrics requested and displayed. - * @type array<\Google\Analytics\Data\V1alpha\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. - * If two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. In a cohort request, - * this `dateRanges` must be unspecified. - * @type \Google\Analytics\Data\V1alpha\FilterExpression $dimension_filter - * Optional. Dimension filters let you ask for only specific dimension - * values in the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type \Google\Analytics\Data\V1alpha\FilterExpression $metric_filter - * Optional. The filter clause of metrics. Applied after aggregating the - * report's rows, similar to SQL having-clause. Dimensions cannot be used in - * this filter. - * @type int|string $offset - * Optional. The row count of the start row from Google Analytics Storage. - * The first row is counted as row 0. - * When creating a report task, the `offset` and `limit` parameters define - * the subset of data rows from Google Analytics storage to be included in - * the generated report. For example, if there are a total of 300,000 rows - * in Google Analytics storage, the initial report task may have the - * first 10,000 rows with a limit of 10,000 and an offset of 0. - * Subsequently, another report task could cover the next 10,000 rows with a - * limit of 10,000 and an offset of 10,000. - * @type int|string $limit - * Optional. The number of rows to return in the Report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if - * you set `limit` to a higher value. - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations - * Optional. Aggregation of metrics. Aggregated metric values will be shown - * in rows where the dimension_values are set to - * "RESERVED_(MetricAggregation)". - * @type array<\Google\Analytics\Data\V1alpha\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Optional. Specifies how rows are ordered in the response. - * @type string $currency_code - * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type \Google\Analytics\Data\V1alpha\CohortSpec $cohort_spec - * Optional. Cohort group associated with this request. If there is a cohort - * group in the request the 'cohort' dimension must be present. - * @type bool $keep_empty_rows - * Optional. If false or unspecified, each row with all metrics equal to 0 - * will not be returned. If true, these rows will be returned if they are - * not separately removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * containing eventName: "purchase" and eventCount: 0. - * @type int $sampling_level - * Optional. The report's sampling level. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Optional. The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Dimension dimensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1alpha\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * Optional. The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Optional. The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Metric metrics = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1alpha\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. - * If two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. In a cohort request, - * this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. - * If two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. In a cohort request, - * this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1alpha\DateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Optional. Dimension filters let you ask for only specific dimension - * values in the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Optional. Dimension filters let you ask for only specific dimension - * values in the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression dimension_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * Optional. The filter clause of metrics. Applied after aggregating the - * report's rows, similar to SQL having-clause. Dimensions cannot be used in - * this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * Optional. The filter clause of metrics. Applied after aggregating the - * report's rows, similar to SQL having-clause. Dimensions cannot be used in - * this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression metric_filter = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * Optional. The row count of the start row from Google Analytics Storage. - * The first row is counted as row 0. - * When creating a report task, the `offset` and `limit` parameters define - * the subset of data rows from Google Analytics storage to be included in - * the generated report. For example, if there are a total of 300,000 rows - * in Google Analytics storage, the initial report task may have the - * first 10,000 rows with a limit of 10,000 and an offset of 0. - * Subsequently, another report task could cover the next 10,000 rows with a - * limit of 10,000 and an offset of 10,000. - * - * Generated from protobuf field int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Optional. The row count of the start row from Google Analytics Storage. - * The first row is counted as row 0. - * When creating a report task, the `offset` and `limit` parameters define - * the subset of data rows from Google Analytics storage to be included in - * the generated report. For example, if there are a total of 300,000 rows - * in Google Analytics storage, the initial report task may have the - * first 10,000 rows with a limit of 10,000 and an offset of 0. - * Subsequently, another report task could cover the next 10,000 rows with a - * limit of 10,000 and an offset of 10,000. - * - * Generated from protobuf field int64 offset = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * Optional. The number of rows to return in the Report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if - * you set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Optional. The number of rows to return in the Report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if - * you set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Optional. Aggregation of metrics. Aggregated metric values will be shown - * in rows where the dimension_values are set to - * "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricAggregations() - { - return $this->metric_aggregations; - } - - /** - * Optional. Aggregation of metrics. Aggregated metric values will be shown - * in rows where the dimension_values are set to - * "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricAggregation metric_aggregations = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1alpha\MetricAggregation::class); - $this->metric_aggregations = $arr; - - return $this; - } - - /** - * Optional. Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Optional. Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1alpha\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\OrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * Optional. A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Optional. Cohort group associated with this request. If there is a cohort - * group in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\CohortSpec|null - */ - public function getCohortSpec() - { - return $this->cohort_spec; - } - - public function hasCohortSpec() - { - return isset($this->cohort_spec); - } - - public function clearCohortSpec() - { - unset($this->cohort_spec); - } - - /** - * Optional. Cohort group associated with this request. If there is a cohort - * group in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1alpha.CohortSpec cohort_spec = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\CohortSpec $var - * @return $this - */ - public function setCohortSpec($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\CohortSpec::class); - $this->cohort_spec = $var; - - return $this; - } - - /** - * Optional. If false or unspecified, each row with all metrics equal to 0 - * will not be returned. If true, these rows will be returned if they are - * not separately removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * containing eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getKeepEmptyRows() - { - return $this->keep_empty_rows; - } - - /** - * Optional. If false or unspecified, each row with all metrics equal to 0 - * will not be returned. If true, these rows will be returned if they are - * not separately removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * containing eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setKeepEmptyRows($var) - { - GPBUtil::checkBool($var); - $this->keep_empty_rows = $var; - - return $this; - } - - /** - * Optional. The report's sampling level. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSamplingLevel() - { - return isset($this->sampling_level) ? $this->sampling_level : 0; - } - - public function hasSamplingLevel() - { - return isset($this->sampling_level); - } - - public function clearSamplingLevel() - { - unset($this->sampling_level); - } - - /** - * Optional. The report's sampling level. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.SamplingLevel sampling_level = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSamplingLevel($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\SamplingLevel::class); - $this->sampling_level = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReportDefinition::class, \Google\Analytics\Data\V1alpha\ReportTask_ReportDefinition::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportMetadata.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportMetadata.php deleted file mode 100644 index ffb4729f713e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportMetadata.php +++ /dev/null @@ -1,374 +0,0 @@ -google.analytics.data.v1alpha.ReportTask.ReportMetadata - */ -class ReportMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The current state for this report task. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.ReportTask.ReportMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = null; - /** - * Output only. The time when `CreateReportTask` was called and the report - * began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $begin_creating_time = null; - /** - * Output only. The total quota tokens charged during creation of the - * report. Because this token count is based on activity from the `CREATING` - * state, this tokens charge will be fixed once a report task enters the - * `ACTIVE` or `FAILED` state. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creation_quota_tokens_charged = 0; - /** - * Output only. The total number of rows in the report result. This field - * will be populated when the state is active. You can utilize - * `task_row_count` for pagination within the confines of their existing - * report. - * - * Generated from protobuf field optional int32 task_row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $task_row_count = null; - /** - * Output only. Error message is populated if a report task fails during - * creation. - * - * Generated from protobuf field optional string error_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_message = null; - /** - * Output only. The total number of rows in Google Analytics storage. If you - * want to query additional data rows beyond the current report, they can - * initiate a new report task based on the `total_row_count`. - * The `task_row_count` represents the number of rows specifically - * pertaining to the current report, whereas `total_row_count` encompasses - * the total count of rows across all data retrieved from Google - * Analytics storage. - * For example, suppose the current report's `task_row_count` is 20, - * displaying the data from the first 20 rows. Simultaneously, the - * `total_row_count` is 30, indicating the presence of data for all 30 rows. - * The `task_row_count` can be utilizated to paginate through the initial 20 - * rows. To expand the report and include data from all 30 rows, a new - * report task can be created using the total_row_count to access the full - * set of 30 rows' worth of data. - * - * Generated from protobuf field optional int32 total_row_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_row_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Output only. The current state for this report task. - * @type \Google\Protobuf\Timestamp $begin_creating_time - * Output only. The time when `CreateReportTask` was called and the report - * began the `CREATING` state. - * @type int $creation_quota_tokens_charged - * Output only. The total quota tokens charged during creation of the - * report. Because this token count is based on activity from the `CREATING` - * state, this tokens charge will be fixed once a report task enters the - * `ACTIVE` or `FAILED` state. - * @type int $task_row_count - * Output only. The total number of rows in the report result. This field - * will be populated when the state is active. You can utilize - * `task_row_count` for pagination within the confines of their existing - * report. - * @type string $error_message - * Output only. Error message is populated if a report task fails during - * creation. - * @type int $total_row_count - * Output only. The total number of rows in Google Analytics storage. If you - * want to query additional data rows beyond the current report, they can - * initiate a new report task based on the `total_row_count`. - * The `task_row_count` represents the number of rows specifically - * pertaining to the current report, whereas `total_row_count` encompasses - * the total count of rows across all data retrieved from Google - * Analytics storage. - * For example, suppose the current report's `task_row_count` is 20, - * displaying the data from the first 20 rows. Simultaneously, the - * `total_row_count` is 30, indicating the presence of data for all 30 rows. - * The `task_row_count` can be utilizated to paginate through the initial 20 - * rows. To expand the report and include data from all 30 rows, a new - * report task can be created using the total_row_count to access the full - * set of 30 rows' worth of data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The current state for this report task. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.ReportTask.ReportMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return isset($this->state) ? $this->state : 0; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * Output only. The current state for this report task. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.ReportTask.ReportMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The time when `CreateReportTask` was called and the report - * began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBeginCreatingTime() - { - return $this->begin_creating_time; - } - - public function hasBeginCreatingTime() - { - return isset($this->begin_creating_time); - } - - public function clearBeginCreatingTime() - { - unset($this->begin_creating_time); - } - - /** - * Output only. The time when `CreateReportTask` was called and the report - * began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBeginCreatingTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->begin_creating_time = $var; - - return $this; - } - - /** - * Output only. The total quota tokens charged during creation of the - * report. Because this token count is based on activity from the `CREATING` - * state, this tokens charge will be fixed once a report task enters the - * `ACTIVE` or `FAILED` state. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCreationQuotaTokensCharged() - { - return $this->creation_quota_tokens_charged; - } - - /** - * Output only. The total quota tokens charged during creation of the - * report. Because this token count is based on activity from the `CREATING` - * state, this tokens charge will be fixed once a report task enters the - * `ACTIVE` or `FAILED` state. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCreationQuotaTokensCharged($var) - { - GPBUtil::checkInt32($var); - $this->creation_quota_tokens_charged = $var; - - return $this; - } - - /** - * Output only. The total number of rows in the report result. This field - * will be populated when the state is active. You can utilize - * `task_row_count` for pagination within the confines of their existing - * report. - * - * Generated from protobuf field optional int32 task_row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTaskRowCount() - { - return isset($this->task_row_count) ? $this->task_row_count : 0; - } - - public function hasTaskRowCount() - { - return isset($this->task_row_count); - } - - public function clearTaskRowCount() - { - unset($this->task_row_count); - } - - /** - * Output only. The total number of rows in the report result. This field - * will be populated when the state is active. You can utilize - * `task_row_count` for pagination within the confines of their existing - * report. - * - * Generated from protobuf field optional int32 task_row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTaskRowCount($var) - { - GPBUtil::checkInt32($var); - $this->task_row_count = $var; - - return $this; - } - - /** - * Output only. Error message is populated if a report task fails during - * creation. - * - * Generated from protobuf field optional string error_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getErrorMessage() - { - return isset($this->error_message) ? $this->error_message : ''; - } - - public function hasErrorMessage() - { - return isset($this->error_message); - } - - public function clearErrorMessage() - { - unset($this->error_message); - } - - /** - * Output only. Error message is populated if a report task fails during - * creation. - * - * Generated from protobuf field optional string error_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - - /** - * Output only. The total number of rows in Google Analytics storage. If you - * want to query additional data rows beyond the current report, they can - * initiate a new report task based on the `total_row_count`. - * The `task_row_count` represents the number of rows specifically - * pertaining to the current report, whereas `total_row_count` encompasses - * the total count of rows across all data retrieved from Google - * Analytics storage. - * For example, suppose the current report's `task_row_count` is 20, - * displaying the data from the first 20 rows. Simultaneously, the - * `total_row_count` is 30, indicating the presence of data for all 30 rows. - * The `task_row_count` can be utilizated to paginate through the initial 20 - * rows. To expand the report and include data from all 30 rows, a new - * report task can be created using the total_row_count to access the full - * set of 30 rows' worth of data. - * - * Generated from protobuf field optional int32 total_row_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTotalRowCount() - { - return isset($this->total_row_count) ? $this->total_row_count : 0; - } - - public function hasTotalRowCount() - { - return isset($this->total_row_count); - } - - public function clearTotalRowCount() - { - unset($this->total_row_count); - } - - /** - * Output only. The total number of rows in Google Analytics storage. If you - * want to query additional data rows beyond the current report, they can - * initiate a new report task based on the `total_row_count`. - * The `task_row_count` represents the number of rows specifically - * pertaining to the current report, whereas `total_row_count` encompasses - * the total count of rows across all data retrieved from Google - * Analytics storage. - * For example, suppose the current report's `task_row_count` is 20, - * displaying the data from the first 20 rows. Simultaneously, the - * `total_row_count` is 30, indicating the presence of data for all 30 rows. - * The `task_row_count` can be utilizated to paginate through the initial 20 - * rows. To expand the report and include data from all 30 rows, a new - * report task can be created using the total_row_count to access the full - * set of 30 rows' worth of data. - * - * Generated from protobuf field optional int32 total_row_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTotalRowCount($var) - { - GPBUtil::checkInt32($var); - $this->total_row_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReportMetadata::class, \Google\Analytics\Data\V1alpha\ReportTask_ReportMetadata::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportMetadata/State.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportMetadata/State.php deleted file mode 100644 index 90c793f136ab..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTask/ReportMetadata/State.php +++ /dev/null @@ -1,72 +0,0 @@ -google.analytics.data.v1alpha.ReportTask.ReportMetadata.State - */ -class State -{ - /** - * Unspecified state will never be used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The report is currently creating and will be available in the - * future. Creating occurs immediately after the CreateReport call. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The report is fully created and ready for querying. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The report failed to be created. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - ]; - - 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(State::class, \Google\Analytics\Data\V1alpha\ReportTask_ReportMetadata_State::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTaskMetadata.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTaskMetadata.php deleted file mode 100644 index 8331635b0a26..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ReportTaskMetadata.php +++ /dev/null @@ -1,34 +0,0 @@ -google.analytics.data.v1alpha.ReportTaskMetadata - */ -class ReportTaskMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData.php deleted file mode 100644 index 35955f8ff9b0..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData.php +++ /dev/null @@ -1,407 +0,0 @@ -google.analytics.data.v1alpha.ResponseMetaData - */ -class ResponseMetaData extends \Google\Protobuf\Internal\Message -{ - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - */ - protected $data_loss_from_other_row = false; - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - */ - protected $schema_restriction_response = null; - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - */ - protected $currency_code = null; - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - */ - protected $time_zone = null; - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - */ - protected $empty_reason = null; - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - */ - protected $subject_to_thresholding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $data_loss_from_other_row - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * @type \Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse $schema_restriction_response - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * @type string $currency_code - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * @type string $time_zone - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * @type string $empty_reason - * If empty reason is specified, the report is empty for this reason. - * @type bool $subject_to_thresholding - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - * @return bool - */ - public function getDataLossFromOtherRow() - { - return $this->data_loss_from_other_row; - } - - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - * @param bool $var - * @return $this - */ - public function setDataLossFromOtherRow($var) - { - GPBUtil::checkBool($var); - $this->data_loss_from_other_row = $var; - - return $this; - } - - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * @return \Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse|null - */ - public function getSchemaRestrictionResponse() - { - return $this->schema_restriction_response; - } - - public function hasSchemaRestrictionResponse() - { - return isset($this->schema_restriction_response); - } - - public function clearSchemaRestrictionResponse() - { - unset($this->schema_restriction_response); - } - - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * @param \Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse $var - * @return $this - */ - public function setSchemaRestrictionResponse($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse::class); - $this->schema_restriction_response = $var; - - return $this; - } - - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - * @return string - */ - public function getCurrencyCode() - { - return isset($this->currency_code) ? $this->currency_code : ''; - } - - public function hasCurrencyCode() - { - return isset($this->currency_code); - } - - public function clearCurrencyCode() - { - unset($this->currency_code); - } - - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - * @return string - */ - public function getTimeZone() - { - return isset($this->time_zone) ? $this->time_zone : ''; - } - - public function hasTimeZone() - { - return isset($this->time_zone); - } - - public function clearTimeZone() - { - unset($this->time_zone); - } - - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - * @return string - */ - public function getEmptyReason() - { - return isset($this->empty_reason) ? $this->empty_reason : ''; - } - - public function hasEmptyReason() - { - return isset($this->empty_reason); - } - - public function clearEmptyReason() - { - unset($this->empty_reason); - } - - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - * @param string $var - * @return $this - */ - public function setEmptyReason($var) - { - GPBUtil::checkString($var, True); - $this->empty_reason = $var; - - return $this; - } - - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - * @return bool - */ - public function getSubjectToThresholding() - { - return isset($this->subject_to_thresholding) ? $this->subject_to_thresholding : false; - } - - public function hasSubjectToThresholding() - { - return isset($this->subject_to_thresholding); - } - - public function clearSubjectToThresholding() - { - unset($this->subject_to_thresholding); - } - - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - * @param bool $var - * @return $this - */ - public function setSubjectToThresholding($var) - { - GPBUtil::checkBool($var); - $this->subject_to_thresholding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData/SchemaRestrictionResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData/SchemaRestrictionResponse.php deleted file mode 100644 index be49e2a5e525..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData/SchemaRestrictionResponse.php +++ /dev/null @@ -1,84 +0,0 @@ -google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse - */ -class SchemaRestrictionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - */ - private $active_metric_restrictions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $active_metric_restrictions - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActiveMetricRestrictions() - { - return $this->active_metric_restrictions; - } - - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * @param array<\Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActiveMetricRestrictions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction::class); - $this->active_metric_restrictions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SchemaRestrictionResponse::class, \Google\Analytics\Data\V1alpha\ResponseMetaData_SchemaRestrictionResponse::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php deleted file mode 100644 index 899eb88c3372..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.data.v1alpha.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction - */ -class ActiveMetricRestriction extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - */ - protected $metric_name = null; - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.RestrictedMetricType restricted_metric_types = 2; - */ - private $restricted_metric_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The name of the restricted metric. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_types - * The reason for this metric's restriction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return isset($this->metric_name) ? $this->metric_name : ''; - } - - public function hasMetricName() - { - return isset($this->metric_name); - } - - public function clearMetricName() - { - unset($this->metric_name); - } - - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.RestrictedMetricType restricted_metric_types = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricTypes() - { - return $this->restricted_metric_types; - } - - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.RestrictedMetricType restricted_metric_types = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1alpha\RestrictedMetricType::class); - $this->restricted_metric_types = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActiveMetricRestriction::class, \Google\Analytics\Data\V1alpha\ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RestrictedMetricType.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RestrictedMetricType.php deleted file mode 100644 index 6f5193ff022d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RestrictedMetricType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.analytics.data.v1alpha.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Cost metrics such as `adCost`. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Revenue metrics such as `purchaseRevenue`. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Row.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Row.php deleted file mode 100644 index f6a27f8042b8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Row.php +++ /dev/null @@ -1,138 +0,0 @@ -google.analytics.data.v1alpha.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - private $dimension_values; - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - private $metric_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * @type array<\Google\Analytics\Data\V1alpha\MetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values - * List of requested visible metric values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Data\V1alpha\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValues() - { - return $this->metric_values; - } - - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - * @param array<\Google\Analytics\Data\V1alpha\MetricValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\MetricValue::class); - $this->metric_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportRequest.php deleted file mode 100644 index 50fc21f1bb30..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportRequest.php +++ /dev/null @@ -1,557 +0,0 @@ -google.analytics.data.v1alpha.RunFunnelReportRequest - */ -class RunFunnelReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A Google Analytics property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $property = ''; - /** - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $date_ranges; - /** - * Optional. The configuration of this request's funnel. This funnel - * configuration is required. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Funnel funnel = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $funnel = null; - /** - * Optional. If specified, this breakdown adds a dimension to the funnel table - * sub report response. This breakdown dimension expands each funnel step to - * the unique values of the breakdown dimension. For example, a breakdown by - * the `deviceCategory` dimension will create rows for `mobile`, `tablet`, - * `desktop`, and the total. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $funnel_breakdown = null; - /** - * Optional. If specified, next action adds a dimension to the funnel - * visualization sub report response. This next action dimension expands each - * funnel step to the unique values of the next action. For example a next - * action of the `eventName` dimension will create rows for several events - * (for example `session_start` & `click`) and the total. - * Next action only supports `eventName` and most Page / Screen dimensions - * like `pageTitle` and `pagePath`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $funnel_next_action = null; - /** - * Optional. The funnel visualization type controls the dimensions present in - * the funnel visualization sub report response. If not specified, - * `STANDARD_FUNNEL` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $funnel_visualization_type = 0; - /** - * Optional. The configurations of segments. Segments are subsets of a - * property's data. In a funnel report with segments, the funnel is evaluated - * in each segment. - * Each segment specified in this request - * produces a separate row in the response; in the response, each segment - * identified by its name. - * The segments parameter is optional. Requests are limited to 4 segments. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Segment segments = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $segments; - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * - * Generated from protobuf field int64 limit = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = 0; - /** - * Optional. Dimension filters allow you to ask for only specific dimension - * values in the report. To learn more, see [Creating a Report: Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression dimension_filter = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dimension_filter = null; - /** - * Optional. Toggles whether to return the current state of this Analytics - * Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $return_property_quota = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Optional. A Google Analytics property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1alpha\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. - * @type \Google\Analytics\Data\V1alpha\Funnel $funnel - * Optional. The configuration of this request's funnel. This funnel - * configuration is required. - * @type \Google\Analytics\Data\V1alpha\FunnelBreakdown $funnel_breakdown - * Optional. If specified, this breakdown adds a dimension to the funnel table - * sub report response. This breakdown dimension expands each funnel step to - * the unique values of the breakdown dimension. For example, a breakdown by - * the `deviceCategory` dimension will create rows for `mobile`, `tablet`, - * `desktop`, and the total. - * @type \Google\Analytics\Data\V1alpha\FunnelNextAction $funnel_next_action - * Optional. If specified, next action adds a dimension to the funnel - * visualization sub report response. This next action dimension expands each - * funnel step to the unique values of the next action. For example a next - * action of the `eventName` dimension will create rows for several events - * (for example `session_start` & `click`) and the total. - * Next action only supports `eventName` and most Page / Screen dimensions - * like `pageTitle` and `pagePath`. - * @type int $funnel_visualization_type - * Optional. The funnel visualization type controls the dimensions present in - * the funnel visualization sub report response. If not specified, - * `STANDARD_FUNNEL` is used. - * @type array<\Google\Analytics\Data\V1alpha\Segment>|\Google\Protobuf\Internal\RepeatedField $segments - * Optional. The configurations of segments. Segments are subsets of a - * property's data. In a funnel report with segments, the funnel is evaluated - * in each segment. - * Each segment specified in this request - * produces a separate row in the response; in the response, each segment - * identified by its name. - * The segments parameter is optional. Requests are limited to 4 segments. - * @type int|string $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * @type \Google\Analytics\Data\V1alpha\FilterExpression $dimension_filter - * Optional. Dimension filters allow you to ask for only specific dimension - * values in the report. To learn more, see [Creating a Report: Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type bool $return_property_quota - * Optional. Toggles whether to return the current state of this Analytics - * Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A Google Analytics property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Optional. A Google Analytics property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1alpha\DateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Optional. The configuration of this request's funnel. This funnel - * configuration is required. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Funnel funnel = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\Funnel|null - */ - public function getFunnel() - { - return $this->funnel; - } - - public function hasFunnel() - { - return isset($this->funnel); - } - - public function clearFunnel() - { - unset($this->funnel); - } - - /** - * Optional. The configuration of this request's funnel. This funnel - * configuration is required. - * - * Generated from protobuf field .google.analytics.data.v1alpha.Funnel funnel = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\Funnel $var - * @return $this - */ - public function setFunnel($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\Funnel::class); - $this->funnel = $var; - - return $this; - } - - /** - * Optional. If specified, this breakdown adds a dimension to the funnel table - * sub report response. This breakdown dimension expands each funnel step to - * the unique values of the breakdown dimension. For example, a breakdown by - * the `deviceCategory` dimension will create rows for `mobile`, `tablet`, - * `desktop`, and the total. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\FunnelBreakdown|null - */ - public function getFunnelBreakdown() - { - return $this->funnel_breakdown; - } - - public function hasFunnelBreakdown() - { - return isset($this->funnel_breakdown); - } - - public function clearFunnelBreakdown() - { - unset($this->funnel_breakdown); - } - - /** - * Optional. If specified, this breakdown adds a dimension to the funnel table - * sub report response. This breakdown dimension expands each funnel step to - * the unique values of the breakdown dimension. For example, a breakdown by - * the `deviceCategory` dimension will create rows for `mobile`, `tablet`, - * `desktop`, and the total. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\FunnelBreakdown $var - * @return $this - */ - public function setFunnelBreakdown($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelBreakdown::class); - $this->funnel_breakdown = $var; - - return $this; - } - - /** - * Optional. If specified, next action adds a dimension to the funnel - * visualization sub report response. This next action dimension expands each - * funnel step to the unique values of the next action. For example a next - * action of the `eventName` dimension will create rows for several events - * (for example `session_start` & `click`) and the total. - * Next action only supports `eventName` and most Page / Screen dimensions - * like `pageTitle` and `pagePath`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\FunnelNextAction|null - */ - public function getFunnelNextAction() - { - return $this->funnel_next_action; - } - - public function hasFunnelNextAction() - { - return isset($this->funnel_next_action); - } - - public function clearFunnelNextAction() - { - unset($this->funnel_next_action); - } - - /** - * Optional. If specified, next action adds a dimension to the funnel - * visualization sub report response. This next action dimension expands each - * funnel step to the unique values of the next action. For example a next - * action of the `eventName` dimension will create rows for several events - * (for example `session_start` & `click`) and the total. - * Next action only supports `eventName` and most Page / Screen dimensions - * like `pageTitle` and `pagePath`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\FunnelNextAction $var - * @return $this - */ - public function setFunnelNextAction($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelNextAction::class); - $this->funnel_next_action = $var; - - return $this; - } - - /** - * Optional. The funnel visualization type controls the dimensions present in - * the funnel visualization sub report response. If not specified, - * `STANDARD_FUNNEL` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getFunnelVisualizationType() - { - return $this->funnel_visualization_type; - } - - /** - * Optional. The funnel visualization type controls the dimensions present in - * the funnel visualization sub report response. If not specified, - * `STANDARD_FUNNEL` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setFunnelVisualizationType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\RunFunnelReportRequest\FunnelVisualizationType::class); - $this->funnel_visualization_type = $var; - - return $this; - } - - /** - * Optional. The configurations of segments. Segments are subsets of a - * property's data. In a funnel report with segments, the funnel is evaluated - * in each segment. - * Each segment specified in this request - * produces a separate row in the response; in the response, each segment - * identified by its name. - * The segments parameter is optional. Requests are limited to 4 segments. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Segment segments = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSegments() - { - return $this->segments; - } - - /** - * Optional. The configurations of segments. Segments are subsets of a - * property's data. In a funnel report with segments, the funnel is evaluated - * in each segment. - * Each segment specified in this request - * produces a separate row in the response; in the response, each segment - * identified by its name. - * The segments parameter is optional. Requests are limited to 4 segments. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.Segment segments = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1alpha\Segment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSegments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\Segment::class); - $this->segments = $arr; - - return $this; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * - * Generated from protobuf field int64 limit = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * - * Generated from protobuf field int64 limit = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Optional. Dimension filters allow you to ask for only specific dimension - * values in the report. To learn more, see [Creating a Report: Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression dimension_filter = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Analytics\Data\V1alpha\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Optional. Dimension filters allow you to ask for only specific dimension - * values in the report. To learn more, see [Creating a Report: Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FilterExpression dimension_filter = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Analytics\Data\V1alpha\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * Optional. Toggles whether to return the current state of this Analytics - * Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getReturnPropertyQuota() - { - return $this->return_property_quota; - } - - /** - * Optional. Toggles whether to return the current state of this Analytics - * Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setReturnPropertyQuota($var) - { - GPBUtil::checkBool($var); - $this->return_property_quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportRequest/FunnelVisualizationType.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportRequest/FunnelVisualizationType.php deleted file mode 100644 index cbb2df603a9b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportRequest/FunnelVisualizationType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - */ -class FunnelVisualizationType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; - */ - const FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; - /** - * A standard (stepped) funnel. The funnel visualization sub report in the - * response will not contain date. - * - * Generated from protobuf enum STANDARD_FUNNEL = 1; - */ - const STANDARD_FUNNEL = 1; - /** - * A trended (line chart) funnel. The funnel visualization sub report in the - * response will contain the date dimension. - * - * Generated from protobuf enum TRENDED_FUNNEL = 2; - */ - const TRENDED_FUNNEL = 2; - - private static $valueToName = [ - self::FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED => 'FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED', - self::STANDARD_FUNNEL => 'STANDARD_FUNNEL', - self::TRENDED_FUNNEL => 'TRENDED_FUNNEL', - ]; - - 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(FunnelVisualizationType::class, \Google\Analytics\Data\V1alpha\RunFunnelReportRequest_FunnelVisualizationType::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportResponse.php deleted file mode 100644 index 7e62c5adcd82..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/RunFunnelReportResponse.php +++ /dev/null @@ -1,248 +0,0 @@ -google.analytics.data.v1alpha.RunFunnelReportResponse - */ -class RunFunnelReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The funnel table is a report with the funnel step, segment, breakdown - * dimension, active users, completion rate, abandonments, and abandonments - * rate. - * The segment dimension is only present in this response if a segment was - * requested. The breakdown dimension is only present in this response if it - * was requested. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - protected $funnel_table = null; - /** - * The funnel visualization is a report with the funnel step, segment, date, - * next action dimension, and active users. - * The segment dimension is only present in this response if a segment was - * requested. The date dimension is only present in this response if it was - * requested through the `TRENDED_FUNNEL` funnel type. The next action - * dimension is only present in the response if it was requested. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - protected $funnel_visualization = null; - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - */ - protected $property_quota = null; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runFunnelReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 4; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\FunnelSubReport $funnel_table - * The funnel table is a report with the funnel step, segment, breakdown - * dimension, active users, completion rate, abandonments, and abandonments - * rate. - * The segment dimension is only present in this response if a segment was - * requested. The breakdown dimension is only present in this response if it - * was requested. - * @type \Google\Analytics\Data\V1alpha\FunnelSubReport $funnel_visualization - * The funnel visualization is a report with the funnel step, segment, date, - * next action dimension, and active users. - * The segment dimension is only present in this response if a segment was - * requested. The date dimension is only present in this response if it was - * requested through the `TRENDED_FUNNEL` funnel type. The next action - * dimension is only present in the response if it was requested. - * @type \Google\Analytics\Data\V1alpha\PropertyQuota $property_quota - * This Analytics Property's quota state including this request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runFunnelReport". Useful to distinguish between - * response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * The funnel table is a report with the funnel step, segment, breakdown - * dimension, active users, completion rate, abandonments, and abandonments - * rate. - * The segment dimension is only present in this response if a segment was - * requested. The breakdown dimension is only present in this response if it - * was requested. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * @return \Google\Analytics\Data\V1alpha\FunnelSubReport|null - */ - public function getFunnelTable() - { - return $this->funnel_table; - } - - public function hasFunnelTable() - { - return isset($this->funnel_table); - } - - public function clearFunnelTable() - { - unset($this->funnel_table); - } - - /** - * The funnel table is a report with the funnel step, segment, breakdown - * dimension, active users, completion rate, abandonments, and abandonments - * rate. - * The segment dimension is only present in this response if a segment was - * requested. The breakdown dimension is only present in this response if it - * was requested. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * @param \Google\Analytics\Data\V1alpha\FunnelSubReport $var - * @return $this - */ - public function setFunnelTable($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelSubReport::class); - $this->funnel_table = $var; - - return $this; - } - - /** - * The funnel visualization is a report with the funnel step, segment, date, - * next action dimension, and active users. - * The segment dimension is only present in this response if a segment was - * requested. The date dimension is only present in this response if it was - * requested through the `TRENDED_FUNNEL` funnel type. The next action - * dimension is only present in the response if it was requested. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * @return \Google\Analytics\Data\V1alpha\FunnelSubReport|null - */ - public function getFunnelVisualization() - { - return $this->funnel_visualization; - } - - public function hasFunnelVisualization() - { - return isset($this->funnel_visualization); - } - - public function clearFunnelVisualization() - { - unset($this->funnel_visualization); - } - - /** - * The funnel visualization is a report with the funnel step, segment, date, - * next action dimension, and active users. - * The segment dimension is only present in this response if a segment was - * requested. The date dimension is only present in this response if it was - * requested through the `TRENDED_FUNNEL` funnel type. The next action - * dimension is only present in the response if it was requested. - * - * Generated from protobuf field .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * @param \Google\Analytics\Data\V1alpha\FunnelSubReport $var - * @return $this - */ - public function setFunnelVisualization($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\FunnelSubReport::class); - $this->funnel_visualization = $var; - - return $this; - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - * @return \Google\Analytics\Data\V1alpha\PropertyQuota|null - */ - public function getPropertyQuota() - { - return $this->property_quota; - } - - public function hasPropertyQuota() - { - return isset($this->property_quota); - } - - public function clearPropertyQuota() - { - unset($this->property_quota); - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - * @param \Google\Analytics\Data\V1alpha\PropertyQuota $var - * @return $this - */ - public function setPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\PropertyQuota::class); - $this->property_quota = $var; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runFunnelReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 4; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runFunnelReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 4; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SamplingLevel.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SamplingLevel.php deleted file mode 100644 index 0891f0b9c2e8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SamplingLevel.php +++ /dev/null @@ -1,73 +0,0 @@ -google.analytics.data.v1alpha.SamplingLevel - */ -class SamplingLevel -{ - /** - * Unspecified type. - * - * Generated from protobuf enum SAMPLING_LEVEL_UNSPECIFIED = 0; - */ - const SAMPLING_LEVEL_UNSPECIFIED = 0; - /** - * Applies a sampling level of 10 million to standard properties and - * 100 million to Google Analytics 360 properties. - * - * Generated from protobuf enum LOW = 1; - */ - const LOW = 1; - /** - * Exclusive to Google Analytics 360 properties with a sampling level of 1 - * billion. - * - * Generated from protobuf enum MEDIUM = 2; - */ - const MEDIUM = 2; - /** - * Exclusive to Google Analytics 360 properties. Unsampled explorations are - * more accurate and can reveal insights that aren't visible in standard - * explorations. To learn more, see - * https://support.google.com/analytics/answer/10896953. - * - * Generated from protobuf enum UNSAMPLED = 3; - */ - const UNSAMPLED = 3; - - private static $valueToName = [ - self::SAMPLING_LEVEL_UNSPECIFIED => 'SAMPLING_LEVEL_UNSPECIFIED', - self::LOW => 'LOW', - self::MEDIUM => 'MEDIUM', - self::UNSAMPLED => 'UNSAMPLED', - ]; - - 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SamplingMetadata.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SamplingMetadata.php deleted file mode 100644 index 1c501d95f5e2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SamplingMetadata.php +++ /dev/null @@ -1,134 +0,0 @@ -google.analytics.data.v1alpha.SamplingMetadata - */ -class SamplingMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this funnel report. - * - * Generated from protobuf field int64 samples_read_count = 1; - */ - protected $samples_read_count = 0; - /** - * The total number of events present in this property's data that could - * have been analyzed in this funnel report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * funnel report, compute `samplesReadCount/samplingSpaceSize`. - * - * Generated from protobuf field int64 sampling_space_size = 2; - */ - protected $sampling_space_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $samples_read_count - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this funnel report. - * @type int|string $sampling_space_size - * The total number of events present in this property's data that could - * have been analyzed in this funnel report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * funnel report, compute `samplesReadCount/samplingSpaceSize`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this funnel report. - * - * Generated from protobuf field int64 samples_read_count = 1; - * @return int|string - */ - public function getSamplesReadCount() - { - return $this->samples_read_count; - } - - /** - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this funnel report. - * - * Generated from protobuf field int64 samples_read_count = 1; - * @param int|string $var - * @return $this - */ - public function setSamplesReadCount($var) - { - GPBUtil::checkInt64($var); - $this->samples_read_count = $var; - - return $this; - } - - /** - * The total number of events present in this property's data that could - * have been analyzed in this funnel report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * funnel report, compute `samplesReadCount/samplingSpaceSize`. - * - * Generated from protobuf field int64 sampling_space_size = 2; - * @return int|string - */ - public function getSamplingSpaceSize() - { - return $this->sampling_space_size; - } - - /** - * The total number of events present in this property's data that could - * have been analyzed in this funnel report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * funnel report, compute `samplesReadCount/samplingSpaceSize`. - * - * Generated from protobuf field int64 sampling_space_size = 2; - * @param int|string $var - * @return $this - */ - public function setSamplingSpaceSize($var) - { - GPBUtil::checkInt64($var); - $this->sampling_space_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Segment.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Segment.php deleted file mode 100644 index b8b7819bb443..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/Segment.php +++ /dev/null @@ -1,198 +0,0 @@ -google.analytics.data.v1alpha.Segment - */ -class Segment extends \Google\Protobuf\Internal\Message -{ - /** - * The name for this segment. If unspecified, segments are named "Segment". - * This name defines string value returned by the `segment` dimension. The - * `segment` dimension prefixes segment names by the 1-based index number of - * the segment in the request (for example "1. Segment", "2. Segment", etc.). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - protected $one_segment_scope; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name for this segment. If unspecified, segments are named "Segment". - * This name defines string value returned by the `segment` dimension. The - * `segment` dimension prefixes segment names by the 1-based index number of - * the segment in the request (for example "1. Segment", "2. Segment", etc.). - * @type \Google\Analytics\Data\V1alpha\UserSegment $user_segment - * User segments are subsets of users who engaged with your site or app. - * @type \Google\Analytics\Data\V1alpha\SessionSegment $session_segment - * Session segments are subsets of the sessions that occurred on your site - * or app. - * @type \Google\Analytics\Data\V1alpha\EventSegment $event_segment - * Event segments are subsets of events that were triggered on your site or - * app. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name for this segment. If unspecified, segments are named "Segment". - * This name defines string value returned by the `segment` dimension. The - * `segment` dimension prefixes segment names by the 1-based index number of - * the segment in the request (for example "1. Segment", "2. Segment", etc.). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name for this segment. If unspecified, segments are named "Segment". - * This name defines string value returned by the `segment` dimension. The - * `segment` dimension prefixes segment names by the 1-based index number of - * the segment in the request (for example "1. Segment", "2. Segment", etc.). - * - * 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; - } - - /** - * User segments are subsets of users who engaged with your site or app. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * @return \Google\Analytics\Data\V1alpha\UserSegment|null - */ - public function getUserSegment() - { - return $this->readOneof(2); - } - - public function hasUserSegment() - { - return $this->hasOneof(2); - } - - /** - * User segments are subsets of users who engaged with your site or app. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * @param \Google\Analytics\Data\V1alpha\UserSegment $var - * @return $this - */ - public function setUserSegment($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\UserSegment::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Session segments are subsets of the sessions that occurred on your site - * or app. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * @return \Google\Analytics\Data\V1alpha\SessionSegment|null - */ - public function getSessionSegment() - { - return $this->readOneof(3); - } - - public function hasSessionSegment() - { - return $this->hasOneof(3); - } - - /** - * Session segments are subsets of the sessions that occurred on your site - * or app. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * @param \Google\Analytics\Data\V1alpha\SessionSegment $var - * @return $this - */ - public function setSessionSegment($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SessionSegment::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Event segments are subsets of events that were triggered on your site or - * app. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * @return \Google\Analytics\Data\V1alpha\EventSegment|null - */ - public function getEventSegment() - { - return $this->readOneof(4); - } - - public function hasEventSegment() - { - return $this->hasOneof(4); - } - - /** - * Event segments are subsets of events that were triggered on your site or - * app. - * - * Generated from protobuf field .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * @param \Google\Analytics\Data\V1alpha\EventSegment $var - * @return $this - */ - public function setEventSegment($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\EventSegment::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneSegmentScope() - { - return $this->whichOneof("one_segment_scope"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentEventFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentEventFilter.php deleted file mode 100644 index 4947a2698cf3..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentEventFilter.php +++ /dev/null @@ -1,140 +0,0 @@ -google.analytics.data.v1alpha.SegmentEventFilter - */ -class SegmentEventFilter extends \Google\Protobuf\Internal\Message -{ - /** - * This filter matches events of this single event name. Event name is - * required. - * - * Generated from protobuf field optional string event_name = 1; - */ - protected $event_name = null; - /** - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - */ - protected $segment_parameter_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_name - * This filter matches events of this single event name. Event name is - * required. - * @type \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression $segment_parameter_filter_expression - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * This filter matches events of this single event name. Event name is - * required. - * - * Generated from protobuf field optional string event_name = 1; - * @return string - */ - public function getEventName() - { - return isset($this->event_name) ? $this->event_name : ''; - } - - public function hasEventName() - { - return isset($this->event_name); - } - - public function clearEventName() - { - unset($this->event_name); - } - - /** - * This filter matches events of this single event name. Event name is - * required. - * - * Generated from protobuf field optional string event_name = 1; - * @param string $var - * @return $this - */ - public function setEventName($var) - { - GPBUtil::checkString($var, True); - $this->event_name = $var; - - return $this; - } - - /** - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * @return \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression|null - */ - public function getSegmentParameterFilterExpression() - { - return $this->segment_parameter_filter_expression; - } - - public function hasSegmentParameterFilterExpression() - { - return isset($this->segment_parameter_filter_expression); - } - - public function clearSegmentParameterFilterExpression() - { - unset($this->segment_parameter_filter_expression); - } - - /** - * If specified, this filter matches events that match both the single event - * name and the parameter filter expressions. - * Inside the parameter filter expression, only parameter filters are - * available. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * @param \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression $var - * @return $this - */ - public function setSegmentParameterFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression::class); - $this->segment_parameter_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilter.php deleted file mode 100644 index ee3af867491e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilter.php +++ /dev/null @@ -1,252 +0,0 @@ -google.analytics.data.v1alpha.SegmentFilter - */ -class SegmentFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - /** - * Specifies the scope for the filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - protected $filter_scoping = null; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The dimension name or metric name. - * @type \Google\Analytics\Data\V1alpha\StringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Data\V1alpha\InListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Data\V1alpha\NumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Data\V1alpha\BetweenFilter $between_filter - * A filter for between two values. - * @type \Google\Analytics\Data\V1alpha\SegmentFilterScoping $filter_scoping - * Specifies the scope for the filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @return \Google\Analytics\Data\V1alpha\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(4); - } - - public function hasStringFilter() - { - return $this->hasOneof(4); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @param \Google\Analytics\Data\V1alpha\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\StringFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @return \Google\Analytics\Data\V1alpha\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(5); - } - - public function hasInListFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @param \Google\Analytics\Data\V1alpha\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\InListFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @return \Google\Analytics\Data\V1alpha\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(6); - } - - public function hasNumericFilter() - { - return $this->hasOneof(6); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @param \Google\Analytics\Data\V1alpha\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericFilter::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @return \Google\Analytics\Data\V1alpha\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(7); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(7); - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @param \Google\Analytics\Data\V1alpha\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\BetweenFilter::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Specifies the scope for the filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterScoping|null - */ - public function getFilterScoping() - { - return $this->filter_scoping; - } - - public function hasFilterScoping() - { - return isset($this->filter_scoping); - } - - public function clearFilterScoping() - { - unset($this->filter_scoping); - } - - /** - * Specifies the scope for the filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterScoping $var - * @return $this - */ - public function setFilterScoping($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterScoping::class); - $this->filter_scoping = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterExpression.php deleted file mode 100644 index 6fe85c6acbc0..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterExpression.php +++ /dev/null @@ -1,216 +0,0 @@ -google.analytics.data.v1alpha.SegmentFilterExpression - */ -class SegmentFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList $and_group - * The SegmentFilterExpression in `andGroup` have an AND relationship. - * @type \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList $or_group - * The SegmentFilterExpression in `orGroup` have an OR relationship. - * @type \Google\Analytics\Data\V1alpha\SegmentFilterExpression $not_expression - * The SegmentFilterExpression is NOT of `notExpression`. - * @type \Google\Analytics\Data\V1alpha\SegmentFilter $segment_filter - * A primitive segment filter. - * @type \Google\Analytics\Data\V1alpha\SegmentEventFilter $segment_event_filter - * Creates a filter that matches events of a single event name. If a - * parameter filter expression is specified, only the subset of events that - * match both the single event name and the parameter filter expressions - * match this event filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The SegmentFilterExpression in `andGroup` have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * The SegmentFilterExpression in `andGroup` have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The SegmentFilterExpression in `orGroup` have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * The SegmentFilterExpression in `orGroup` have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The SegmentFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The SegmentFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive segment filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * @return \Google\Analytics\Data\V1alpha\SegmentFilter|null - */ - public function getSegmentFilter() - { - return $this->readOneof(4); - } - - public function hasSegmentFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive segment filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * @param \Google\Analytics\Data\V1alpha\SegmentFilter $var - * @return $this - */ - public function setSegmentFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Creates a filter that matches events of a single event name. If a - * parameter filter expression is specified, only the subset of events that - * match both the single event name and the parameter filter expressions - * match this event filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * @return \Google\Analytics\Data\V1alpha\SegmentEventFilter|null - */ - public function getSegmentEventFilter() - { - return $this->readOneof(5); - } - - public function hasSegmentEventFilter() - { - return $this->hasOneof(5); - } - - /** - * Creates a filter that matches events of a single event name. If a - * parameter filter expression is specified, only the subset of events that - * match both the single event name and the parameter filter expressions - * match this event filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * @param \Google\Analytics\Data\V1alpha\SegmentEventFilter $var - * @return $this - */ - public function setSegmentEventFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentEventFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterExpressionList.php deleted file mode 100644 index 206cf85b572e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1alpha.SegmentFilterExpressionList - */ -class SegmentFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * The list of segment filter expressions - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\SegmentFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * The list of segment filter expressions - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The list of segment filter expressions - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * The list of segment filter expressions - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - * @param array<\Google\Analytics\Data\V1alpha\SegmentFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\SegmentFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterScoping.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterScoping.php deleted file mode 100644 index 8af2c7927bcf..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentFilterScoping.php +++ /dev/null @@ -1,118 +0,0 @@ -google.analytics.data.v1alpha.SegmentFilterScoping - */ -class SegmentFilterScoping extends \Google\Protobuf\Internal\Message -{ - /** - * If `atAnyPointInTime` is true, this filter evaluates to true for all - * events if it evaluates to true for any event in the date range of the - * request. - * This `atAnyPointInTime` parameter does not extend the date range of - * events in the report. If `atAnyPointInTime` is true, only events within - * the report's date range are considered when evaluating this filter. - * This `atAnyPointInTime` is only able to be specified if the criteria - * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in - * sequences. - * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` = - * false is used if unspecified. - * - * Generated from protobuf field optional bool at_any_point_in_time = 1; - */ - protected $at_any_point_in_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $at_any_point_in_time - * If `atAnyPointInTime` is true, this filter evaluates to true for all - * events if it evaluates to true for any event in the date range of the - * request. - * This `atAnyPointInTime` parameter does not extend the date range of - * events in the report. If `atAnyPointInTime` is true, only events within - * the report's date range are considered when evaluating this filter. - * This `atAnyPointInTime` is only able to be specified if the criteria - * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in - * sequences. - * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` = - * false is used if unspecified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * If `atAnyPointInTime` is true, this filter evaluates to true for all - * events if it evaluates to true for any event in the date range of the - * request. - * This `atAnyPointInTime` parameter does not extend the date range of - * events in the report. If `atAnyPointInTime` is true, only events within - * the report's date range are considered when evaluating this filter. - * This `atAnyPointInTime` is only able to be specified if the criteria - * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in - * sequences. - * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` = - * false is used if unspecified. - * - * Generated from protobuf field optional bool at_any_point_in_time = 1; - * @return bool - */ - public function getAtAnyPointInTime() - { - return isset($this->at_any_point_in_time) ? $this->at_any_point_in_time : false; - } - - public function hasAtAnyPointInTime() - { - return isset($this->at_any_point_in_time); - } - - public function clearAtAnyPointInTime() - { - unset($this->at_any_point_in_time); - } - - /** - * If `atAnyPointInTime` is true, this filter evaluates to true for all - * events if it evaluates to true for any event in the date range of the - * request. - * This `atAnyPointInTime` parameter does not extend the date range of - * events in the report. If `atAnyPointInTime` is true, only events within - * the report's date range are considered when evaluating this filter. - * This `atAnyPointInTime` is only able to be specified if the criteria - * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in - * sequences. - * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` = - * false is used if unspecified. - * - * Generated from protobuf field optional bool at_any_point_in_time = 1; - * @param bool $var - * @return $this - */ - public function setAtAnyPointInTime($var) - { - GPBUtil::checkBool($var); - $this->at_any_point_in_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilter.php deleted file mode 100644 index e161480fd216..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilter.php +++ /dev/null @@ -1,335 +0,0 @@ -google.analytics.data.v1alpha.SegmentParameterFilter - */ -class SegmentParameterFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the scope for the filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - protected $filter_scoping = null; - protected $one_parameter; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_parameter_name - * This filter will be evaluated on the specified event parameter. Event - * parameters are logged as parameters of the event. Event parameters - * include fields like "firebase_screen" & "currency". - * Event parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * @type string $item_parameter_name - * This filter will be evaluated on the specified item parameter. Item - * parameters are logged as parameters in the item array. Item parameters - * include fields like "item_name" & "item_category". - * Item parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * Item parameters are only available in ecommerce events. To learn more - * about ecommerce events, see the [Measure ecommerce] - * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - * guide. - * @type \Google\Analytics\Data\V1alpha\StringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Data\V1alpha\InListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Data\V1alpha\NumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Data\V1alpha\BetweenFilter $between_filter - * A filter for between two values. - * @type \Google\Analytics\Data\V1alpha\SegmentParameterFilterScoping $filter_scoping - * Specifies the scope for the filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * This filter will be evaluated on the specified event parameter. Event - * parameters are logged as parameters of the event. Event parameters - * include fields like "firebase_screen" & "currency". - * Event parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * - * Generated from protobuf field string event_parameter_name = 1; - * @return string - */ - public function getEventParameterName() - { - return $this->readOneof(1); - } - - public function hasEventParameterName() - { - return $this->hasOneof(1); - } - - /** - * This filter will be evaluated on the specified event parameter. Event - * parameters are logged as parameters of the event. Event parameters - * include fields like "firebase_screen" & "currency". - * Event parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * - * Generated from protobuf field string event_parameter_name = 1; - * @param string $var - * @return $this - */ - public function setEventParameterName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * This filter will be evaluated on the specified item parameter. Item - * parameters are logged as parameters in the item array. Item parameters - * include fields like "item_name" & "item_category". - * Item parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * Item parameters are only available in ecommerce events. To learn more - * about ecommerce events, see the [Measure ecommerce] - * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - * guide. - * - * Generated from protobuf field string item_parameter_name = 2; - * @return string - */ - public function getItemParameterName() - { - return $this->readOneof(2); - } - - public function hasItemParameterName() - { - return $this->hasOneof(2); - } - - /** - * This filter will be evaluated on the specified item parameter. Item - * parameters are logged as parameters in the item array. Item parameters - * include fields like "item_name" & "item_category". - * Item parameters can only be used in segments & funnels and can only be - * used in a descendent filter from an EventFilter. In a descendent filter - * from an EventFilter either event or item parameters should be used. - * Item parameters are only available in ecommerce events. To learn more - * about ecommerce events, see the [Measure ecommerce] - * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - * guide. - * - * Generated from protobuf field string item_parameter_name = 2; - * @param string $var - * @return $this - */ - public function setItemParameterName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @return \Google\Analytics\Data\V1alpha\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(4); - } - - public function hasStringFilter() - { - return $this->hasOneof(4); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * @param \Google\Analytics\Data\V1alpha\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\StringFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @return \Google\Analytics\Data\V1alpha\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(5); - } - - public function hasInListFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * @param \Google\Analytics\Data\V1alpha\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\InListFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @return \Google\Analytics\Data\V1alpha\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(6); - } - - public function hasNumericFilter() - { - return $this->hasOneof(6); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * @param \Google\Analytics\Data\V1alpha\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\NumericFilter::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @return \Google\Analytics\Data\V1alpha\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(7); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(7); - } - - /** - * A filter for between two values. - * - * Generated from protobuf field .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * @param \Google\Analytics\Data\V1alpha\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\BetweenFilter::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Specifies the scope for the filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * @return \Google\Analytics\Data\V1alpha\SegmentParameterFilterScoping|null - */ - public function getFilterScoping() - { - return $this->filter_scoping; - } - - public function hasFilterScoping() - { - return isset($this->filter_scoping); - } - - public function clearFilterScoping() - { - unset($this->filter_scoping); - } - - /** - * Specifies the scope for the filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * @param \Google\Analytics\Data\V1alpha\SegmentParameterFilterScoping $var - * @return $this - */ - public function setFilterScoping($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentParameterFilterScoping::class); - $this->filter_scoping = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneParameter() - { - return $this->whichOneof("one_parameter"); - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterExpression.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterExpression.php deleted file mode 100644 index f9983bc974a2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterExpression.php +++ /dev/null @@ -1,180 +0,0 @@ -google.analytics.data.v1alpha.SegmentParameterFilterExpression - */ -class SegmentParameterFilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList $and_group - * The SegmentParameterFilterExpression in `andGroup` have an AND - * relationship. - * @type \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList $or_group - * The SegmentParameterFilterExpression in `orGroup` have an OR - * relationship. - * @type \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression $not_expression - * The SegmentParameterFilterExpression is NOT of `notExpression`. - * @type \Google\Analytics\Data\V1alpha\SegmentParameterFilter $segment_parameter_filter - * A primitive segment parameter filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The SegmentParameterFilterExpression in `andGroup` have an AND - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * @return \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * The SegmentParameterFilterExpression in `andGroup` have an AND - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * @param \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The SegmentParameterFilterExpression in `orGroup` have an OR - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * @return \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * The SegmentParameterFilterExpression in `orGroup` have an OR - * relationship. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * @param \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The SegmentParameterFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * @return \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The SegmentParameterFilterExpression is NOT of `notExpression`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * @param \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive segment parameter filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * @return \Google\Analytics\Data\V1alpha\SegmentParameterFilter|null - */ - public function getSegmentParameterFilter() - { - return $this->readOneof(4); - } - - public function hasSegmentParameterFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive segment parameter filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * @param \Google\Analytics\Data\V1alpha\SegmentParameterFilter $var - * @return $this - */ - public function setSegmentParameterFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentParameterFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterExpressionList.php deleted file mode 100644 index 714a516d2f4a..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - */ -class SegmentParameterFilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * The list of segment parameter filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * The list of segment parameter filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The list of segment parameter filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * The list of segment parameter filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * @param array<\Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\SegmentParameterFilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterScoping.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterScoping.php deleted file mode 100644 index 052ccb6aefb9..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SegmentParameterFilterScoping.php +++ /dev/null @@ -1,158 +0,0 @@ -google.analytics.data.v1alpha.SegmentParameterFilterScoping - */ -class SegmentParameterFilterScoping extends \Google\Protobuf\Internal\Message -{ - /** - * Accumulates the parameter over the specified period of days before - * applying the filter. Only supported if criteria scoping is - * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the - * parameter is `event_count`. - * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase", - * the event parameter is "event_count", and the Filter's criteria is - * greater than 5, this filter will accumulate the event count of purchase - * events over every 3 consecutive day period in the report's date range; a - * user will pass this Filter's criteria to be included in this segment if - * their count of purchase events exceeds 5 in any 3 consecutive day period. - * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to - * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered. - * The date range is not extended for the purpose of having a full N day - * window near the start of the date range. For example if a report is for - * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day - * period will be effectively shortened because no event data outside the - * report's date range will be read. For example, the first four periods - * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02, - * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04. - * `inAnyNDayPeriod` is optional. If not specified, the - * `segmentParameterFilter` is applied to each event individually. - * - * Generated from protobuf field optional int64 in_any_n_day_period = 1; - */ - protected $in_any_n_day_period = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $in_any_n_day_period - * Accumulates the parameter over the specified period of days before - * applying the filter. Only supported if criteria scoping is - * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the - * parameter is `event_count`. - * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase", - * the event parameter is "event_count", and the Filter's criteria is - * greater than 5, this filter will accumulate the event count of purchase - * events over every 3 consecutive day period in the report's date range; a - * user will pass this Filter's criteria to be included in this segment if - * their count of purchase events exceeds 5 in any 3 consecutive day period. - * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to - * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered. - * The date range is not extended for the purpose of having a full N day - * window near the start of the date range. For example if a report is for - * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day - * period will be effectively shortened because no event data outside the - * report's date range will be read. For example, the first four periods - * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02, - * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04. - * `inAnyNDayPeriod` is optional. If not specified, the - * `segmentParameterFilter` is applied to each event individually. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Accumulates the parameter over the specified period of days before - * applying the filter. Only supported if criteria scoping is - * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the - * parameter is `event_count`. - * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase", - * the event parameter is "event_count", and the Filter's criteria is - * greater than 5, this filter will accumulate the event count of purchase - * events over every 3 consecutive day period in the report's date range; a - * user will pass this Filter's criteria to be included in this segment if - * their count of purchase events exceeds 5 in any 3 consecutive day period. - * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to - * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered. - * The date range is not extended for the purpose of having a full N day - * window near the start of the date range. For example if a report is for - * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day - * period will be effectively shortened because no event data outside the - * report's date range will be read. For example, the first four periods - * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02, - * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04. - * `inAnyNDayPeriod` is optional. If not specified, the - * `segmentParameterFilter` is applied to each event individually. - * - * Generated from protobuf field optional int64 in_any_n_day_period = 1; - * @return int|string - */ - public function getInAnyNDayPeriod() - { - return isset($this->in_any_n_day_period) ? $this->in_any_n_day_period : 0; - } - - public function hasInAnyNDayPeriod() - { - return isset($this->in_any_n_day_period); - } - - public function clearInAnyNDayPeriod() - { - unset($this->in_any_n_day_period); - } - - /** - * Accumulates the parameter over the specified period of days before - * applying the filter. Only supported if criteria scoping is - * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the - * parameter is `event_count`. - * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase", - * the event parameter is "event_count", and the Filter's criteria is - * greater than 5, this filter will accumulate the event count of purchase - * events over every 3 consecutive day period in the report's date range; a - * user will pass this Filter's criteria to be included in this segment if - * their count of purchase events exceeds 5 in any 3 consecutive day period. - * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to - * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered. - * The date range is not extended for the purpose of having a full N day - * window near the start of the date range. For example if a report is for - * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day - * period will be effectively shortened because no event data outside the - * report's date range will be read. For example, the first four periods - * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02, - * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04. - * `inAnyNDayPeriod` is optional. If not specified, the - * `segmentParameterFilter` is applied to each event individually. - * - * Generated from protobuf field optional int64 in_any_n_day_period = 1; - * @param int|string $var - * @return $this - */ - public function setInAnyNDayPeriod($var) - { - GPBUtil::checkInt64($var); - $this->in_any_n_day_period = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionCriteriaScoping.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionCriteriaScoping.php deleted file mode 100644 index 9c91a5d45893..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionCriteriaScoping.php +++ /dev/null @@ -1,64 +0,0 @@ -google.analytics.data.v1alpha.SessionCriteriaScoping - */ -class SessionCriteriaScoping -{ - /** - * Unspecified criteria scoping. Do not specify. - * - * Generated from protobuf enum SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - const SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; - /** - * If the criteria is satisfied within one event, the session matches the - * criteria. - * - * Generated from protobuf enum SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - const SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; - /** - * If the criteria is satisfied within one session, the session matches - * the criteria. - * - * Generated from protobuf enum SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; - */ - const SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; - - private static $valueToName = [ - self::SESSION_CRITERIA_SCOPING_UNSPECIFIED => 'SESSION_CRITERIA_SCOPING_UNSPECIFIED', - self::SESSION_CRITERIA_WITHIN_SAME_EVENT => 'SESSION_CRITERIA_WITHIN_SAME_EVENT', - self::SESSION_CRITERIA_WITHIN_SAME_SESSION => 'SESSION_CRITERIA_WITHIN_SAME_SESSION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionExclusionDuration.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionExclusionDuration.php deleted file mode 100644 index 345ecc1e5b58..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionExclusionDuration.php +++ /dev/null @@ -1,64 +0,0 @@ -google.analytics.data.v1alpha.SessionExclusionDuration - */ -class SessionExclusionDuration -{ - /** - * Unspecified exclusion duration. Do not specify. - * - * Generated from protobuf enum SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - const SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; - /** - * Temporarily exclude sessions from the segment during periods when the - * session meets the `sessionExclusionCriteria` condition. - * - * Generated from protobuf enum SESSION_EXCLUSION_TEMPORARY = 1; - */ - const SESSION_EXCLUSION_TEMPORARY = 1; - /** - * Permanently exclude sessions from the segment if the session ever meets - * the `sessionExclusionCriteria` condition. - * - * Generated from protobuf enum SESSION_EXCLUSION_PERMANENT = 2; - */ - const SESSION_EXCLUSION_PERMANENT = 2; - - private static $valueToName = [ - self::SESSION_EXCLUSION_DURATION_UNSPECIFIED => 'SESSION_EXCLUSION_DURATION_UNSPECIFIED', - self::SESSION_EXCLUSION_TEMPORARY => 'SESSION_EXCLUSION_TEMPORARY', - self::SESSION_EXCLUSION_PERMANENT => 'SESSION_EXCLUSION_PERMANENT', - ]; - - 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegment.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegment.php deleted file mode 100644 index 032ea93baa80..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegment.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.data.v1alpha.SessionSegment - */ -class SessionSegment extends \Google\Protobuf\Internal\Message -{ - /** - * Defines which sessions are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - */ - protected $session_inclusion_criteria = null; - /** - * Defines which sessions are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - protected $exclusion = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\SessionSegmentCriteria $session_inclusion_criteria - * Defines which sessions are included in this segment. Optional. - * @type \Google\Analytics\Data\V1alpha\SessionSegmentExclusion $exclusion - * Defines which sessions are excluded in this segment. Optional. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Defines which sessions are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * @return \Google\Analytics\Data\V1alpha\SessionSegmentCriteria|null - */ - public function getSessionInclusionCriteria() - { - return $this->session_inclusion_criteria; - } - - public function hasSessionInclusionCriteria() - { - return isset($this->session_inclusion_criteria); - } - - public function clearSessionInclusionCriteria() - { - unset($this->session_inclusion_criteria); - } - - /** - * Defines which sessions are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * @param \Google\Analytics\Data\V1alpha\SessionSegmentCriteria $var - * @return $this - */ - public function setSessionInclusionCriteria($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SessionSegmentCriteria::class); - $this->session_inclusion_criteria = $var; - - return $this; - } - - /** - * Defines which sessions are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * @return \Google\Analytics\Data\V1alpha\SessionSegmentExclusion|null - */ - public function getExclusion() - { - return $this->exclusion; - } - - public function hasExclusion() - { - return isset($this->exclusion); - } - - public function clearExclusion() - { - unset($this->exclusion); - } - - /** - * Defines which sessions are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * @param \Google\Analytics\Data\V1alpha\SessionSegmentExclusion $var - * @return $this - */ - public function setExclusion($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SessionSegmentExclusion::class); - $this->exclusion = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentConditionGroup.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentConditionGroup.php deleted file mode 100644 index 54cfa44dc516..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentConditionGroup.php +++ /dev/null @@ -1,164 +0,0 @@ -google.analytics.data.v1alpha.SessionSegmentConditionGroup - */ -class SessionSegmentConditionGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this session. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a - * single event, and then, the condition group is determined to be matched or - * not for this session. - * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION` - * is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - */ - protected $condition_scoping = 0; - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - */ - protected $segment_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $condition_scoping - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this session. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a - * single event, and then, the condition group is determined to be matched or - * not for this session. - * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION` - * is used. - * @type \Google\Analytics\Data\V1alpha\SegmentFilterExpression $segment_filter_expression - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this session. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a - * single event, and then, the condition group is determined to be matched or - * not for this session. - * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION` - * is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * @return int - */ - public function getConditionScoping() - { - return $this->condition_scoping; - } - - /** - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this session. For example if `conditionScoping = - * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a - * single event, and then, the condition group is determined to be matched or - * not for this session. - * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION` - * is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * @param int $var - * @return $this - */ - public function setConditionScoping($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\SessionCriteriaScoping::class); - $this->condition_scoping = $var; - - return $this; - } - - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpression|null - */ - public function getSegmentFilterExpression() - { - return $this->segment_filter_expression; - } - - public function hasSegmentFilterExpression() - { - return isset($this->segment_filter_expression); - } - - public function clearSegmentFilterExpression() - { - unset($this->segment_filter_expression); - } - - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpression $var - * @return $this - */ - public function setSegmentFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterExpression::class); - $this->segment_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentCriteria.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentCriteria.php deleted file mode 100644 index da0987320b89..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentCriteria.php +++ /dev/null @@ -1,72 +0,0 @@ -google.analytics.data.v1alpha.SessionSegmentCriteria - */ -class SessionSegmentCriteria extends \Google\Protobuf\Internal\Message -{ - /** - * A session matches this criteria if the session matches each of these - * `andConditionGroups`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - */ - private $and_condition_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\SessionSegmentConditionGroup>|\Google\Protobuf\Internal\RepeatedField $and_condition_groups - * A session matches this criteria if the session matches each of these - * `andConditionGroups`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * A session matches this criteria if the session matches each of these - * `andConditionGroups`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAndConditionGroups() - { - return $this->and_condition_groups; - } - - /** - * A session matches this criteria if the session matches each of these - * `andConditionGroups`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * @param array<\Google\Analytics\Data\V1alpha\SessionSegmentConditionGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAndConditionGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\SessionSegmentConditionGroup::class); - $this->and_condition_groups = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentExclusion.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentExclusion.php deleted file mode 100644 index 7c6f5f25cf38..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SessionSegmentExclusion.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.data.v1alpha.SessionSegmentExclusion - */ -class SessionSegmentExclusion extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies how long an exclusion will last if a session matches the - * `sessionExclusionCriteria`. - * Optional. If unspecified, a `sessionExclusionDuration` of - * `SESSION_EXCLUSION_TEMPORARY` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - */ - protected $session_exclusion_duration = 0; - /** - * If a session meets this condition, the session is excluded from - * membership in the segment for the `sessionExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - */ - protected $session_exclusion_criteria = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $session_exclusion_duration - * Specifies how long an exclusion will last if a session matches the - * `sessionExclusionCriteria`. - * Optional. If unspecified, a `sessionExclusionDuration` of - * `SESSION_EXCLUSION_TEMPORARY` is used. - * @type \Google\Analytics\Data\V1alpha\SessionSegmentCriteria $session_exclusion_criteria - * If a session meets this condition, the session is excluded from - * membership in the segment for the `sessionExclusionDuration`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Specifies how long an exclusion will last if a session matches the - * `sessionExclusionCriteria`. - * Optional. If unspecified, a `sessionExclusionDuration` of - * `SESSION_EXCLUSION_TEMPORARY` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * @return int - */ - public function getSessionExclusionDuration() - { - return $this->session_exclusion_duration; - } - - /** - * Specifies how long an exclusion will last if a session matches the - * `sessionExclusionCriteria`. - * Optional. If unspecified, a `sessionExclusionDuration` of - * `SESSION_EXCLUSION_TEMPORARY` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * @param int $var - * @return $this - */ - public function setSessionExclusionDuration($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\SessionExclusionDuration::class); - $this->session_exclusion_duration = $var; - - return $this; - } - - /** - * If a session meets this condition, the session is excluded from - * membership in the segment for the `sessionExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * @return \Google\Analytics\Data\V1alpha\SessionSegmentCriteria|null - */ - public function getSessionExclusionCriteria() - { - return $this->session_exclusion_criteria; - } - - public function hasSessionExclusionCriteria() - { - return isset($this->session_exclusion_criteria); - } - - public function clearSessionExclusionCriteria() - { - unset($this->session_exclusion_criteria); - } - - /** - * If a session meets this condition, the session is excluded from - * membership in the segment for the `sessionExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * @param \Google\Analytics\Data\V1alpha\SessionSegmentCriteria $var - * @return $this - */ - public function setSessionExclusionCriteria($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SessionSegmentCriteria::class); - $this->session_exclusion_criteria = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SheetExportAudienceListRequest.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SheetExportAudienceListRequest.php deleted file mode 100644 index b431bc30f8f7..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SheetExportAudienceListRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.analytics.data.v1alpha.SheetExportAudienceListRequest - */ -class SheetExportAudienceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $offset = 0; - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = 0; - - /** - * @param string $name Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * Please see {@see AlphaAnalyticsDataClient::audienceListName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\SheetExportAudienceListRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * @type int|string $offset - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * 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; - } - - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SheetExportAudienceListResponse.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SheetExportAudienceListResponse.php deleted file mode 100644 index e73e6e086e26..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/SheetExportAudienceListResponse.php +++ /dev/null @@ -1,253 +0,0 @@ -google.analytics.data.v1alpha.SheetExportAudienceListResponse - */ -class SheetExportAudienceListResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A uri for you to visit in your browser to view the Google Sheet. - * - * Generated from protobuf field optional string spreadsheet_uri = 1; - */ - protected $spreadsheet_uri = null; - /** - * An ID that identifies the created Google Sheet resource. - * - * Generated from protobuf field optional string spreadsheet_id = 2; - */ - protected $spreadsheet_id = null; - /** - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - */ - protected $row_count = null; - /** - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - protected $audience_list = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $spreadsheet_uri - * A uri for you to visit in your browser to view the Google Sheet. - * @type string $spreadsheet_id - * An ID that identifies the created Google Sheet resource. - * @type int $row_count - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type \Google\Analytics\Data\V1alpha\AudienceList $audience_list - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A uri for you to visit in your browser to view the Google Sheet. - * - * Generated from protobuf field optional string spreadsheet_uri = 1; - * @return string - */ - public function getSpreadsheetUri() - { - return isset($this->spreadsheet_uri) ? $this->spreadsheet_uri : ''; - } - - public function hasSpreadsheetUri() - { - return isset($this->spreadsheet_uri); - } - - public function clearSpreadsheetUri() - { - unset($this->spreadsheet_uri); - } - - /** - * A uri for you to visit in your browser to view the Google Sheet. - * - * Generated from protobuf field optional string spreadsheet_uri = 1; - * @param string $var - * @return $this - */ - public function setSpreadsheetUri($var) - { - GPBUtil::checkString($var, True); - $this->spreadsheet_uri = $var; - - return $this; - } - - /** - * An ID that identifies the created Google Sheet resource. - * - * Generated from protobuf field optional string spreadsheet_id = 2; - * @return string - */ - public function getSpreadsheetId() - { - return isset($this->spreadsheet_id) ? $this->spreadsheet_id : ''; - } - - public function hasSpreadsheetId() - { - return isset($this->spreadsheet_id); - } - - public function clearSpreadsheetId() - { - unset($this->spreadsheet_id); - } - - /** - * An ID that identifies the created Google Sheet resource. - * - * Generated from protobuf field optional string spreadsheet_id = 2; - * @param string $var - * @return $this - */ - public function setSpreadsheetId($var) - { - GPBUtil::checkString($var, True); - $this->spreadsheet_id = $var; - - return $this; - } - - /** - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - * @return int - */ - public function getRowCount() - { - return isset($this->row_count) ? $this->row_count : 0; - } - - public function hasRowCount() - { - return isset($this->row_count); - } - - public function clearRowCount() - { - unset($this->row_count); - } - - /** - * The total number of rows in the AudienceList result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * @return \Google\Analytics\Data\V1alpha\AudienceList|null - */ - public function getAudienceList() - { - return $this->audience_list; - } - - public function hasAudienceList() - { - return isset($this->audience_list); - } - - public function clearAudienceList() - { - unset($this->audience_list); - } - - /** - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * @param \Google\Analytics\Data\V1alpha\AudienceList $var - * @return $this - */ - public function setAudienceList($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\AudienceList::class); - $this->audience_list = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/StringFilter.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/StringFilter.php deleted file mode 100644 index eb4772bde8fa..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/StringFilter.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.data.v1alpha.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter.MatchType match_type = 1; - */ - protected $match_type = 0; - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * The match type for this filter. - * @type string $value - * The string value used for the matching. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter.MatchType match_type = 1; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1alpha.StringFilter.MatchType match_type = 1; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/StringFilter/MatchType.php deleted file mode 100644 index 8277a91a88cd..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/StringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.data.v1alpha.StringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full match for the regular expression with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial match for the regular expression with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Data\V1alpha\StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserCriteriaScoping.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserCriteriaScoping.php deleted file mode 100644 index 3b9dcafc518e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserCriteriaScoping.php +++ /dev/null @@ -1,72 +0,0 @@ -google.analytics.data.v1alpha.UserCriteriaScoping - */ -class UserCriteriaScoping -{ - /** - * Unspecified criteria scoping. Do not specify. - * - * Generated from protobuf enum USER_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - const USER_CRITERIA_SCOPING_UNSPECIFIED = 0; - /** - * If the criteria is satisfied within one event, the user matches the - * criteria. - * - * Generated from protobuf enum USER_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - const USER_CRITERIA_WITHIN_SAME_EVENT = 1; - /** - * If the criteria is satisfied within one session, the user matches the - * criteria. - * - * Generated from protobuf enum USER_CRITERIA_WITHIN_SAME_SESSION = 2; - */ - const USER_CRITERIA_WITHIN_SAME_SESSION = 2; - /** - * If the criteria is satisfied by any events for the user, the user - * matches the criteria. - * - * Generated from protobuf enum USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; - */ - const USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; - - private static $valueToName = [ - self::USER_CRITERIA_SCOPING_UNSPECIFIED => 'USER_CRITERIA_SCOPING_UNSPECIFIED', - self::USER_CRITERIA_WITHIN_SAME_EVENT => 'USER_CRITERIA_WITHIN_SAME_EVENT', - self::USER_CRITERIA_WITHIN_SAME_SESSION => 'USER_CRITERIA_WITHIN_SAME_SESSION', - self::USER_CRITERIA_ACROSS_ALL_SESSIONS => 'USER_CRITERIA_ACROSS_ALL_SESSIONS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserExclusionDuration.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserExclusionDuration.php deleted file mode 100644 index 8ea6e8aa4797..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserExclusionDuration.php +++ /dev/null @@ -1,64 +0,0 @@ -google.analytics.data.v1alpha.UserExclusionDuration - */ -class UserExclusionDuration -{ - /** - * Unspecified exclusion duration. Do not specify. - * - * Generated from protobuf enum USER_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - const USER_EXCLUSION_DURATION_UNSPECIFIED = 0; - /** - * Temporarily exclude users from the segment during periods when the - * user meets the `userExclusionCriteria` condition. - * - * Generated from protobuf enum USER_EXCLUSION_TEMPORARY = 1; - */ - const USER_EXCLUSION_TEMPORARY = 1; - /** - * Permanently exclude users from the segment if the user ever meets the - * `userExclusionCriteria` condition. - * - * Generated from protobuf enum USER_EXCLUSION_PERMANENT = 2; - */ - const USER_EXCLUSION_PERMANENT = 2; - - private static $valueToName = [ - self::USER_EXCLUSION_DURATION_UNSPECIFIED => 'USER_EXCLUSION_DURATION_UNSPECIFIED', - self::USER_EXCLUSION_TEMPORARY => 'USER_EXCLUSION_TEMPORARY', - self::USER_EXCLUSION_PERMANENT => 'USER_EXCLUSION_PERMANENT', - ]; - - 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/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegment.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegment.php deleted file mode 100644 index 0bfd9be4499f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegment.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.data.v1alpha.UserSegment - */ -class UserSegment extends \Google\Protobuf\Internal\Message -{ - /** - * Defines which users are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - protected $user_inclusion_criteria = null; - /** - * Defines which users are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - protected $exclusion = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1alpha\UserSegmentCriteria $user_inclusion_criteria - * Defines which users are included in this segment. Optional. - * @type \Google\Analytics\Data\V1alpha\UserSegmentExclusion $exclusion - * Defines which users are excluded in this segment. Optional. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Defines which users are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * @return \Google\Analytics\Data\V1alpha\UserSegmentCriteria|null - */ - public function getUserInclusionCriteria() - { - return $this->user_inclusion_criteria; - } - - public function hasUserInclusionCriteria() - { - return isset($this->user_inclusion_criteria); - } - - public function clearUserInclusionCriteria() - { - unset($this->user_inclusion_criteria); - } - - /** - * Defines which users are included in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * @param \Google\Analytics\Data\V1alpha\UserSegmentCriteria $var - * @return $this - */ - public function setUserInclusionCriteria($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\UserSegmentCriteria::class); - $this->user_inclusion_criteria = $var; - - return $this; - } - - /** - * Defines which users are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * @return \Google\Analytics\Data\V1alpha\UserSegmentExclusion|null - */ - public function getExclusion() - { - return $this->exclusion; - } - - public function hasExclusion() - { - return isset($this->exclusion); - } - - public function clearExclusion() - { - unset($this->exclusion); - } - - /** - * Defines which users are excluded in this segment. Optional. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * @param \Google\Analytics\Data\V1alpha\UserSegmentExclusion $var - * @return $this - */ - public function setExclusion($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\UserSegmentExclusion::class); - $this->exclusion = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentConditionGroup.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentConditionGroup.php deleted file mode 100644 index d2f547575d06..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentConditionGroup.php +++ /dev/null @@ -1,164 +0,0 @@ -google.analytics.data.v1alpha.UserSegmentConditionGroup - */ -class UserSegmentConditionGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this user. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single - * event, and then, the condition group is determined to be matched or not for - * this user. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - */ - protected $condition_scoping = 0; - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - */ - protected $segment_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $condition_scoping - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this user. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single - * event, and then, the condition group is determined to be matched or not for - * this user. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * @type \Google\Analytics\Data\V1alpha\SegmentFilterExpression $segment_filter_expression - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this user. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single - * event, and then, the condition group is determined to be matched or not for - * this user. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * @return int - */ - public function getConditionScoping() - { - return $this->condition_scoping; - } - - /** - * Data is included or excluded from the segment based on if it matches - * the condition group. This scoping defines how many events the - * `segmentFilterExpression` is evaluated on before the condition group - * is determined to be matched or not. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - * events in a session, and then, the condition group is determined to be - * matched or not for this user. For example if `conditionScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single - * event, and then, the condition group is determined to be matched or not for - * this user. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * @param int $var - * @return $this - */ - public function setConditionScoping($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\UserCriteriaScoping::class); - $this->condition_scoping = $var; - - return $this; - } - - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpression|null - */ - public function getSegmentFilterExpression() - { - return $this->segment_filter_expression; - } - - public function hasSegmentFilterExpression() - { - return isset($this->segment_filter_expression); - } - - public function clearSegmentFilterExpression() - { - unset($this->segment_filter_expression); - } - - /** - * Data is included or excluded from the segment based on if it matches - * this expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpression $var - * @return $this - */ - public function setSegmentFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterExpression::class); - $this->segment_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentCriteria.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentCriteria.php deleted file mode 100644 index 9e4f026d7e04..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentCriteria.php +++ /dev/null @@ -1,118 +0,0 @@ -google.analytics.data.v1alpha.UserSegmentCriteria - */ -class UserSegmentCriteria extends \Google\Protobuf\Internal\Message -{ - /** - * A user matches this criteria if the user matches each of these - * `andConditionGroups` and each of the `andSequenceGroups`. - * `andConditionGroups` may be empty if `andSequenceGroups` are specified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - */ - private $and_condition_groups; - /** - * A user matches this criteria if the user matches each of these - * `andSequenceGroups` and each of the `andConditionGroups`. - * `andSequenceGroups` may be empty if `andConditionGroups` are specified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - */ - private $and_sequence_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1alpha\UserSegmentConditionGroup>|\Google\Protobuf\Internal\RepeatedField $and_condition_groups - * A user matches this criteria if the user matches each of these - * `andConditionGroups` and each of the `andSequenceGroups`. - * `andConditionGroups` may be empty if `andSequenceGroups` are specified. - * @type array<\Google\Analytics\Data\V1alpha\UserSegmentSequenceGroup>|\Google\Protobuf\Internal\RepeatedField $and_sequence_groups - * A user matches this criteria if the user matches each of these - * `andSequenceGroups` and each of the `andConditionGroups`. - * `andSequenceGroups` may be empty if `andConditionGroups` are specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * A user matches this criteria if the user matches each of these - * `andConditionGroups` and each of the `andSequenceGroups`. - * `andConditionGroups` may be empty if `andSequenceGroups` are specified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAndConditionGroups() - { - return $this->and_condition_groups; - } - - /** - * A user matches this criteria if the user matches each of these - * `andConditionGroups` and each of the `andSequenceGroups`. - * `andConditionGroups` may be empty if `andSequenceGroups` are specified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * @param array<\Google\Analytics\Data\V1alpha\UserSegmentConditionGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAndConditionGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\UserSegmentConditionGroup::class); - $this->and_condition_groups = $arr; - - return $this; - } - - /** - * A user matches this criteria if the user matches each of these - * `andSequenceGroups` and each of the `andConditionGroups`. - * `andSequenceGroups` may be empty if `andConditionGroups` are specified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAndSequenceGroups() - { - return $this->and_sequence_groups; - } - - /** - * A user matches this criteria if the user matches each of these - * `andSequenceGroups` and each of the `andConditionGroups`. - * `andSequenceGroups` may be empty if `andConditionGroups` are specified. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * @param array<\Google\Analytics\Data\V1alpha\UserSegmentSequenceGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAndSequenceGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\UserSegmentSequenceGroup::class); - $this->and_sequence_groups = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentExclusion.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentExclusion.php deleted file mode 100644 index 25cff90f0b1c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentExclusion.php +++ /dev/null @@ -1,127 +0,0 @@ -google.analytics.data.v1alpha.UserSegmentExclusion - */ -class UserSegmentExclusion extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies how long an exclusion will last if a user matches the - * `userExclusionCriteria`. - * Optional. If unspecified, `userExclusionDuration` of - * `USER_EXCLUSION_TEMPORARY` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - */ - protected $user_exclusion_duration = 0; - /** - * If a user meets this condition, the user is excluded from membership in - * the segment for the `userExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - protected $user_exclusion_criteria = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $user_exclusion_duration - * Specifies how long an exclusion will last if a user matches the - * `userExclusionCriteria`. - * Optional. If unspecified, `userExclusionDuration` of - * `USER_EXCLUSION_TEMPORARY` is used. - * @type \Google\Analytics\Data\V1alpha\UserSegmentCriteria $user_exclusion_criteria - * If a user meets this condition, the user is excluded from membership in - * the segment for the `userExclusionDuration`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * Specifies how long an exclusion will last if a user matches the - * `userExclusionCriteria`. - * Optional. If unspecified, `userExclusionDuration` of - * `USER_EXCLUSION_TEMPORARY` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * @return int - */ - public function getUserExclusionDuration() - { - return $this->user_exclusion_duration; - } - - /** - * Specifies how long an exclusion will last if a user matches the - * `userExclusionCriteria`. - * Optional. If unspecified, `userExclusionDuration` of - * `USER_EXCLUSION_TEMPORARY` is used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * @param int $var - * @return $this - */ - public function setUserExclusionDuration($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\UserExclusionDuration::class); - $this->user_exclusion_duration = $var; - - return $this; - } - - /** - * If a user meets this condition, the user is excluded from membership in - * the segment for the `userExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * @return \Google\Analytics\Data\V1alpha\UserSegmentCriteria|null - */ - public function getUserExclusionCriteria() - { - return $this->user_exclusion_criteria; - } - - public function hasUserExclusionCriteria() - { - return isset($this->user_exclusion_criteria); - } - - public function clearUserExclusionCriteria() - { - unset($this->user_exclusion_criteria); - } - - /** - * If a user meets this condition, the user is excluded from membership in - * the segment for the `userExclusionDuration`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * @param \Google\Analytics\Data\V1alpha\UserSegmentCriteria $var - * @return $this - */ - public function setUserExclusionCriteria($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\UserSegmentCriteria::class); - $this->user_exclusion_criteria = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentSequenceGroup.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentSequenceGroup.php deleted file mode 100644 index 3f6d5d1ed4fb..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSegmentSequenceGroup.php +++ /dev/null @@ -1,202 +0,0 @@ -google.analytics.data.v1alpha.UserSegmentSequenceGroup - */ -class UserSegmentSequenceGroup extends \Google\Protobuf\Internal\Message -{ - /** - * All sequence steps must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within - * one session for the user to match the sequence. `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - */ - protected $sequence_scoping = 0; - /** - * Defines the time period in which the whole sequence must occur; for - * example, 30 Minutes. `sequenceMaximumDuration` is inclusive - * of the endpoint at the microsecond granularity. For example a sequence - * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 - * seconds, but not 5 seconds and 1 microsecond. - * `sequenceMaximumDuration` is optional, and if unspecified, sequences can - * be completed in any time duration. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2; - */ - protected $sequence_maximum_duration = null; - /** - * An ordered sequence of condition steps. A user's events must complete - * each step in order for the user to match the - * `UserSegmentSequenceGroup`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - private $user_sequence_steps; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $sequence_scoping - * All sequence steps must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within - * one session for the user to match the sequence. `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * @type \Google\Protobuf\Duration $sequence_maximum_duration - * Defines the time period in which the whole sequence must occur; for - * example, 30 Minutes. `sequenceMaximumDuration` is inclusive - * of the endpoint at the microsecond granularity. For example a sequence - * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 - * seconds, but not 5 seconds and 1 microsecond. - * `sequenceMaximumDuration` is optional, and if unspecified, sequences can - * be completed in any time duration. - * @type array<\Google\Analytics\Data\V1alpha\UserSequenceStep>|\Google\Protobuf\Internal\RepeatedField $user_sequence_steps - * An ordered sequence of condition steps. A user's events must complete - * each step in order for the user to match the - * `UserSegmentSequenceGroup`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * All sequence steps must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within - * one session for the user to match the sequence. `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * @return int - */ - public function getSequenceScoping() - { - return $this->sequence_scoping; - } - - /** - * All sequence steps must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within - * one session for the user to match the sequence. `sequenceScoping = - * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported. - * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - * used. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * @param int $var - * @return $this - */ - public function setSequenceScoping($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\UserCriteriaScoping::class); - $this->sequence_scoping = $var; - - return $this; - } - - /** - * Defines the time period in which the whole sequence must occur; for - * example, 30 Minutes. `sequenceMaximumDuration` is inclusive - * of the endpoint at the microsecond granularity. For example a sequence - * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 - * seconds, but not 5 seconds and 1 microsecond. - * `sequenceMaximumDuration` is optional, and if unspecified, sequences can - * be completed in any time duration. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getSequenceMaximumDuration() - { - return $this->sequence_maximum_duration; - } - - public function hasSequenceMaximumDuration() - { - return isset($this->sequence_maximum_duration); - } - - public function clearSequenceMaximumDuration() - { - unset($this->sequence_maximum_duration); - } - - /** - * Defines the time period in which the whole sequence must occur; for - * example, 30 Minutes. `sequenceMaximumDuration` is inclusive - * of the endpoint at the microsecond granularity. For example a sequence - * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 - * seconds, but not 5 seconds and 1 microsecond. - * `sequenceMaximumDuration` is optional, and if unspecified, sequences can - * be completed in any time duration. - * - * Generated from protobuf field .google.protobuf.Duration sequence_maximum_duration = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setSequenceMaximumDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->sequence_maximum_duration = $var; - - return $this; - } - - /** - * An ordered sequence of condition steps. A user's events must complete - * each step in order for the user to match the - * `UserSegmentSequenceGroup`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUserSequenceSteps() - { - return $this->user_sequence_steps; - } - - /** - * An ordered sequence of condition steps. A user's events must complete - * each step in order for the user to match the - * `UserSegmentSequenceGroup`. - * - * Generated from protobuf field repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * @param array<\Google\Analytics\Data\V1alpha\UserSequenceStep>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUserSequenceSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\UserSequenceStep::class); - $this->user_sequence_steps = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSequenceStep.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSequenceStep.php deleted file mode 100644 index 25397518d562..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/UserSequenceStep.php +++ /dev/null @@ -1,198 +0,0 @@ -google.analytics.data.v1alpha.UserSequenceStep - */ -class UserSequenceStep extends \Google\Protobuf\Internal\Message -{ - /** - * If true, the event satisfying this step must be the very next event - * after the event satifying the last step. If false, this step indirectly - * follows the prior step; for example, there may be events between the - * prior step and this step. `isDirectlyFollowedBy` must be false for - * the first step. - * - * Generated from protobuf field bool is_directly_followed_by = 1; - */ - protected $is_directly_followed_by = false; - /** - * This sequence step must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * WITHIN_SAME_SESSION`, this sequence steps must complete within one - * session for the user to match the sequence. `stepScoping = - * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping = - * ACROSS_ALL_SESSIONS`. - * Optional. If unspecified, `stepScoping` uses the same - * `UserCriteriaScoping` as the `sequenceScoping`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - */ - protected $step_scoping = 0; - /** - * A user matches this sequence step if their events match this - * expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - */ - protected $segment_filter_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $is_directly_followed_by - * If true, the event satisfying this step must be the very next event - * after the event satifying the last step. If false, this step indirectly - * follows the prior step; for example, there may be events between the - * prior step and this step. `isDirectlyFollowedBy` must be false for - * the first step. - * @type int $step_scoping - * This sequence step must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * WITHIN_SAME_SESSION`, this sequence steps must complete within one - * session for the user to match the sequence. `stepScoping = - * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping = - * ACROSS_ALL_SESSIONS`. - * Optional. If unspecified, `stepScoping` uses the same - * `UserCriteriaScoping` as the `sequenceScoping`. - * @type \Google\Analytics\Data\V1alpha\SegmentFilterExpression $segment_filter_expression - * A user matches this sequence step if their events match this - * expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce(); - parent::__construct($data); - } - - /** - * If true, the event satisfying this step must be the very next event - * after the event satifying the last step. If false, this step indirectly - * follows the prior step; for example, there may be events between the - * prior step and this step. `isDirectlyFollowedBy` must be false for - * the first step. - * - * Generated from protobuf field bool is_directly_followed_by = 1; - * @return bool - */ - public function getIsDirectlyFollowedBy() - { - return $this->is_directly_followed_by; - } - - /** - * If true, the event satisfying this step must be the very next event - * after the event satifying the last step. If false, this step indirectly - * follows the prior step; for example, there may be events between the - * prior step and this step. `isDirectlyFollowedBy` must be false for - * the first step. - * - * Generated from protobuf field bool is_directly_followed_by = 1; - * @param bool $var - * @return $this - */ - public function setIsDirectlyFollowedBy($var) - { - GPBUtil::checkBool($var); - $this->is_directly_followed_by = $var; - - return $this; - } - - /** - * This sequence step must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * WITHIN_SAME_SESSION`, this sequence steps must complete within one - * session for the user to match the sequence. `stepScoping = - * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping = - * ACROSS_ALL_SESSIONS`. - * Optional. If unspecified, `stepScoping` uses the same - * `UserCriteriaScoping` as the `sequenceScoping`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * @return int - */ - public function getStepScoping() - { - return $this->step_scoping; - } - - /** - * This sequence step must be satisfied in the scoping for the user to - * match the sequence. For example if `sequenceScoping = - * WITHIN_SAME_SESSION`, this sequence steps must complete within one - * session for the user to match the sequence. `stepScoping = - * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping = - * ACROSS_ALL_SESSIONS`. - * Optional. If unspecified, `stepScoping` uses the same - * `UserCriteriaScoping` as the `sequenceScoping`. - * - * Generated from protobuf field .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * @param int $var - * @return $this - */ - public function setStepScoping($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\UserCriteriaScoping::class); - $this->step_scoping = $var; - - return $this; - } - - /** - * A user matches this sequence step if their events match this - * expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * @return \Google\Analytics\Data\V1alpha\SegmentFilterExpression|null - */ - public function getSegmentFilterExpression() - { - return $this->segment_filter_expression; - } - - public function hasSegmentFilterExpression() - { - return isset($this->segment_filter_expression); - } - - public function clearSegmentFilterExpression() - { - unset($this->segment_filter_expression); - } - - /** - * A user matches this sequence step if their events match this - * expression. Expressions express criteria on dimension, metrics, - * and/or parameters. - * - * Generated from protobuf field .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * @param \Google\Analytics\Data\V1alpha\SegmentFilterExpression $var - * @return $this - */ - public function setSegmentFilterExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\SegmentFilterExpression::class); - $this->segment_filter_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/WebhookNotification.php b/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/WebhookNotification.php deleted file mode 100644 index 7325fcd52a85..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/proto/src/Google/Analytics/Data/V1alpha/WebhookNotification.php +++ /dev/null @@ -1,258 +0,0 @@ -google.analytics.data.v1alpha.WebhookNotification - */ -class WebhookNotification extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The web address that will receive the webhook notification. This - * address will receive POST requests as the state of the long running - * operation resource changes. The POST request will contain both a JSON - * version of the long running operation resource in the body and a - * `sentTimestamp` field. The sent timestamp will specify the unix - * microseconds since the epoch that the request was sent; this lets you - * identify replayed notifications. - * An example URI is - * `https://us-central1-example-project-id.cloudfunctions.net/example-function-1`. - * The URI must use HTTPS and point to a site with a valid SSL certificate on - * the web server. The URI must have a maximum string length of 128 characters - * & use only the allowlisted characters from [RFC - * 1738](https://www.rfc-editor.org/rfc/rfc1738). - * When your webhook server receives a notification, it is expected to reply - * with an HTTP response status code of 200 within 5 seconds. - * A URI is required to use webhook notifications. - * Requests to this webhook server will contain an ID token authenticating the - * service account - * `google-analytics-audience-export@system.gserviceaccount.com`. To learn - * more about ID tokens, see - * https://cloud.google.com/docs/authentication/token-types#id. For Google - * Cloud Functions, this lets you configure your function to require - * authentication. In Cloud IAM, you will need to grant the service account - * permissions to the Cloud Run Invoker (`roles/run.invoker`) & Cloud - * Functions Invoker (`roles/cloudfunctions.invoker`) roles for the webhook - * post request to pass Google Cloud Functions authentication. This API can - * send webhook notifications to arbitrary URIs; for webhook servers other - * than Google Cloud Functions, this ID token in the authorization bearer - * header should be ignored if it is not needed. - * - * Generated from protobuf field optional string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $uri = null; - /** - * Optional. The channel token is an arbitrary string value and must have a - * maximum string length of 64 characters. Channel tokens allow you to verify - * the source of a webhook notification. This guards against the message being - * spoofed. The channel token will be specified in the `X-Goog-Channel-Token` - * HTTP header of the webhook POST request. - * A channel token is not required to use webhook notifications. - * - * Generated from protobuf field optional string channel_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $channel_token = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Optional. The web address that will receive the webhook notification. This - * address will receive POST requests as the state of the long running - * operation resource changes. The POST request will contain both a JSON - * version of the long running operation resource in the body and a - * `sentTimestamp` field. The sent timestamp will specify the unix - * microseconds since the epoch that the request was sent; this lets you - * identify replayed notifications. - * An example URI is - * `https://us-central1-example-project-id.cloudfunctions.net/example-function-1`. - * The URI must use HTTPS and point to a site with a valid SSL certificate on - * the web server. The URI must have a maximum string length of 128 characters - * & use only the allowlisted characters from [RFC - * 1738](https://www.rfc-editor.org/rfc/rfc1738). - * When your webhook server receives a notification, it is expected to reply - * with an HTTP response status code of 200 within 5 seconds. - * A URI is required to use webhook notifications. - * Requests to this webhook server will contain an ID token authenticating the - * service account - * `google-analytics-audience-export@system.gserviceaccount.com`. To learn - * more about ID tokens, see - * https://cloud.google.com/docs/authentication/token-types#id. For Google - * Cloud Functions, this lets you configure your function to require - * authentication. In Cloud IAM, you will need to grant the service account - * permissions to the Cloud Run Invoker (`roles/run.invoker`) & Cloud - * Functions Invoker (`roles/cloudfunctions.invoker`) roles for the webhook - * post request to pass Google Cloud Functions authentication. This API can - * send webhook notifications to arbitrary URIs; for webhook servers other - * than Google Cloud Functions, this ID token in the authorization bearer - * header should be ignored if it is not needed. - * @type string $channel_token - * Optional. The channel token is an arbitrary string value and must have a - * maximum string length of 64 characters. Channel tokens allow you to verify - * the source of a webhook notification. This guards against the message being - * spoofed. The channel token will be specified in the `X-Goog-Channel-Token` - * HTTP header of the webhook POST request. - * A channel token is not required to use webhook notifications. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The web address that will receive the webhook notification. This - * address will receive POST requests as the state of the long running - * operation resource changes. The POST request will contain both a JSON - * version of the long running operation resource in the body and a - * `sentTimestamp` field. The sent timestamp will specify the unix - * microseconds since the epoch that the request was sent; this lets you - * identify replayed notifications. - * An example URI is - * `https://us-central1-example-project-id.cloudfunctions.net/example-function-1`. - * The URI must use HTTPS and point to a site with a valid SSL certificate on - * the web server. The URI must have a maximum string length of 128 characters - * & use only the allowlisted characters from [RFC - * 1738](https://www.rfc-editor.org/rfc/rfc1738). - * When your webhook server receives a notification, it is expected to reply - * with an HTTP response status code of 200 within 5 seconds. - * A URI is required to use webhook notifications. - * Requests to this webhook server will contain an ID token authenticating the - * service account - * `google-analytics-audience-export@system.gserviceaccount.com`. To learn - * more about ID tokens, see - * https://cloud.google.com/docs/authentication/token-types#id. For Google - * Cloud Functions, this lets you configure your function to require - * authentication. In Cloud IAM, you will need to grant the service account - * permissions to the Cloud Run Invoker (`roles/run.invoker`) & Cloud - * Functions Invoker (`roles/cloudfunctions.invoker`) roles for the webhook - * post request to pass Google Cloud Functions authentication. This API can - * send webhook notifications to arbitrary URIs; for webhook servers other - * than Google Cloud Functions, this ID token in the authorization bearer - * header should be ignored if it is not needed. - * - * Generated from protobuf field optional string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getUri() - { - return isset($this->uri) ? $this->uri : ''; - } - - public function hasUri() - { - return isset($this->uri); - } - - public function clearUri() - { - unset($this->uri); - } - - /** - * Optional. The web address that will receive the webhook notification. This - * address will receive POST requests as the state of the long running - * operation resource changes. The POST request will contain both a JSON - * version of the long running operation resource in the body and a - * `sentTimestamp` field. The sent timestamp will specify the unix - * microseconds since the epoch that the request was sent; this lets you - * identify replayed notifications. - * An example URI is - * `https://us-central1-example-project-id.cloudfunctions.net/example-function-1`. - * The URI must use HTTPS and point to a site with a valid SSL certificate on - * the web server. The URI must have a maximum string length of 128 characters - * & use only the allowlisted characters from [RFC - * 1738](https://www.rfc-editor.org/rfc/rfc1738). - * When your webhook server receives a notification, it is expected to reply - * with an HTTP response status code of 200 within 5 seconds. - * A URI is required to use webhook notifications. - * Requests to this webhook server will contain an ID token authenticating the - * service account - * `google-analytics-audience-export@system.gserviceaccount.com`. To learn - * more about ID tokens, see - * https://cloud.google.com/docs/authentication/token-types#id. For Google - * Cloud Functions, this lets you configure your function to require - * authentication. In Cloud IAM, you will need to grant the service account - * permissions to the Cloud Run Invoker (`roles/run.invoker`) & Cloud - * Functions Invoker (`roles/cloudfunctions.invoker`) roles for the webhook - * post request to pass Google Cloud Functions authentication. This API can - * send webhook notifications to arbitrary URIs; for webhook servers other - * than Google Cloud Functions, this ID token in the authorization bearer - * header should be ignored if it is not needed. - * - * Generated from protobuf field optional string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Optional. The channel token is an arbitrary string value and must have a - * maximum string length of 64 characters. Channel tokens allow you to verify - * the source of a webhook notification. This guards against the message being - * spoofed. The channel token will be specified in the `X-Goog-Channel-Token` - * HTTP header of the webhook POST request. - * A channel token is not required to use webhook notifications. - * - * Generated from protobuf field optional string channel_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getChannelToken() - { - return isset($this->channel_token) ? $this->channel_token : ''; - } - - public function hasChannelToken() - { - return isset($this->channel_token); - } - - public function clearChannelToken() - { - unset($this->channel_token); - } - - /** - * Optional. The channel token is an arbitrary string value and must have a - * maximum string length of 64 characters. Channel tokens allow you to verify - * the source of a webhook notification. This guards against the message being - * spoofed. The channel token will be specified in the `X-Goog-Channel-Token` - * HTTP header of the webhook POST request. - * A channel token is not required to use webhook notifications. - * - * Generated from protobuf field optional string channel_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setChannelToken($var) - { - GPBUtil::checkString($var, True); - $this->channel_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_audience_list.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_audience_list.php deleted file mode 100644 index 60f00596f479..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_audience_list.php +++ /dev/null @@ -1,119 +0,0 @@ -setAudience($audienceListAudience) - ->setDimensions($audienceListDimensions); - $request = (new CreateAudienceListRequest()) - ->setParent($formattedParent) - ->setAudienceList($audienceList); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alphaAnalyticsDataClient->createAudienceList($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AudienceList $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlphaAnalyticsDataClient::propertyName('[PROPERTY]'); - $audienceListAudience = '[AUDIENCE]'; - - create_audience_list_sample($formattedParent, $audienceListAudience); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateAudienceList_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_recurring_audience_list.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_recurring_audience_list.php deleted file mode 100644 index 3c4f80ae7c69..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_recurring_audience_list.php +++ /dev/null @@ -1,103 +0,0 @@ -setAudience($recurringAudienceListAudience) - ->setDimensions($recurringAudienceListDimensions); - $request = (new CreateRecurringAudienceListRequest()) - ->setParent($formattedParent) - ->setRecurringAudienceList($recurringAudienceList); - - // Call the API and handle any network failures. - try { - /** @var RecurringAudienceList $response */ - $response = $alphaAnalyticsDataClient->createRecurringAudienceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlphaAnalyticsDataClient::propertyName('[PROPERTY]'); - $recurringAudienceListAudience = '[AUDIENCE]'; - - create_recurring_audience_list_sample($formattedParent, $recurringAudienceListAudience); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateRecurringAudienceList_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_report_task.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_report_task.php deleted file mode 100644 index f4f70e87051f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/create_report_task.php +++ /dev/null @@ -1,95 +0,0 @@ -setParent($formattedParent) - ->setReportTask($reportTask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $alphaAnalyticsDataClient->createReportTask($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ReportTask $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlphaAnalyticsDataClient::propertyName('[PROPERTY]'); - - create_report_task_sample($formattedParent); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateReportTask_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_audience_list.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_audience_list.php deleted file mode 100644 index 55c893ca8260..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_audience_list.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AudienceList $response */ - $response = $alphaAnalyticsDataClient->getAudienceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlphaAnalyticsDataClient::audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - - get_audience_list_sample($formattedName); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetAudienceList_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_property_quotas_snapshot.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_property_quotas_snapshot.php deleted file mode 100644 index ab0228bcf6ac..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_property_quotas_snapshot.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PropertyQuotasSnapshot $response */ - $response = $alphaAnalyticsDataClient->getPropertyQuotasSnapshot($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlphaAnalyticsDataClient::propertyQuotasSnapshotName('[PROPERTY]'); - - get_property_quotas_snapshot_sample($formattedName); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_recurring_audience_list.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_recurring_audience_list.php deleted file mode 100644 index 2288cc91d971..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_recurring_audience_list.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var RecurringAudienceList $response */ - $response = $alphaAnalyticsDataClient->getRecurringAudienceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlphaAnalyticsDataClient::recurringAudienceListName( - '[PROPERTY]', - '[RECURRING_AUDIENCE_LIST]' - ); - - get_recurring_audience_list_sample($formattedName); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetRecurringAudienceList_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_report_task.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_report_task.php deleted file mode 100644 index 5dddf6fc9bb2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/get_report_task.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ReportTask $response */ - $response = $alphaAnalyticsDataClient->getReportTask($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlphaAnalyticsDataClient::reportTaskName('[PROPERTY]', '[REPORT_TASK]'); - - get_report_task_sample($formattedName); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetReportTask_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_audience_lists.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_audience_lists.php deleted file mode 100644 index dac54f222830..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_audience_lists.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alphaAnalyticsDataClient->listAudienceLists($request); - - /** @var AudienceList $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlphaAnalyticsDataClient::propertyName('[PROPERTY]'); - - list_audience_lists_sample($formattedParent); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListAudienceLists_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_recurring_audience_lists.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_recurring_audience_lists.php deleted file mode 100644 index 6f67c56ae5df..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_recurring_audience_lists.php +++ /dev/null @@ -1,88 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alphaAnalyticsDataClient->listRecurringAudienceLists($request); - - /** @var RecurringAudienceList $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlphaAnalyticsDataClient::propertyName('[PROPERTY]'); - - list_recurring_audience_lists_sample($formattedParent); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListRecurringAudienceLists_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_report_tasks.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_report_tasks.php deleted file mode 100644 index 43c27b56ef25..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/list_report_tasks.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $alphaAnalyticsDataClient->listReportTasks($request); - - /** @var ReportTask $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AlphaAnalyticsDataClient::propertyName('[PROPERTY]'); - - list_report_tasks_sample($formattedParent); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListReportTasks_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/query_audience_list.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/query_audience_list.php deleted file mode 100644 index e4d3e33d8d43..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/query_audience_list.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var QueryAudienceListResponse $response */ - $response = $alphaAnalyticsDataClient->queryAudienceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - query_audience_list_sample($name); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryAudienceList_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/query_report_task.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/query_report_task.php deleted file mode 100644 index 3282d2889f78..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/query_report_task.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var QueryReportTaskResponse $response */ - $response = $alphaAnalyticsDataClient->queryReportTask($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - query_report_task_sample($name); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryReportTask_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/run_funnel_report.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/run_funnel_report.php deleted file mode 100644 index 8d202612edc7..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/run_funnel_report.php +++ /dev/null @@ -1,72 +0,0 @@ -runFunnelReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunFunnelReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/sheet_export_audience_list.php b/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/sheet_export_audience_list.php deleted file mode 100644 index 9d9a4259c3c8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/samples/V1alpha/AlphaAnalyticsDataClient/sheet_export_audience_list.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SheetExportAudienceListResponse $response */ - $response = $alphaAnalyticsDataClient->sheetExportAudienceList($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AlphaAnalyticsDataClient::audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - - sheet_export_audience_list_sample($formattedName); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_sync] diff --git a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/AlphaAnalyticsDataClient.php b/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/AlphaAnalyticsDataClient.php deleted file mode 100644 index ca7d0b50ee3b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/AlphaAnalyticsDataClient.php +++ /dev/null @@ -1,36 +0,0 @@ - createAudienceListAsync(CreateAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRecurringAudienceListAsync(CreateRecurringAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReportTaskAsync(CreateReportTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAudienceListAsync(GetAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPropertyQuotasSnapshotAsync(GetPropertyQuotasSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRecurringAudienceListAsync(GetRecurringAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReportTaskAsync(GetReportTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAudienceListsAsync(ListAudienceListsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRecurringAudienceListsAsync(ListRecurringAudienceListsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReportTasksAsync(ListReportTasksRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryAudienceListAsync(QueryAudienceListRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryReportTaskAsync(QueryReportTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface runFunnelReportAsync(RunFunnelReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface sheetExportAudienceListAsync(SheetExportAudienceListRequest $request, array $optionalArgs = []) - */ -final class AlphaAnalyticsDataClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.analytics.data.v1alpha.AlphaAnalyticsData'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'analyticsdata.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsdata.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics', - 'https://www.googleapis.com/auth/analytics.readonly', - 'https://www.googleapis.com/auth/drive', - 'https://www.googleapis.com/auth/drive.file', - 'https://www.googleapis.com/auth/spreadsheets', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/alpha_analytics_data_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/alpha_analytics_data_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/alpha_analytics_data_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/alpha_analytics_data_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * audience_list resource. - * - * @param string $property - * @param string $audienceList - * - * @return string The formatted audience_list resource. - * - * @experimental - */ - public static function audienceListName(string $property, string $audienceList): string - { - return self::getPathTemplate('audienceList')->render([ - 'property' => $property, - 'audience_list' => $audienceList, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName(string $property): string - { - return self::getPathTemplate('property')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * property_quotas_snapshot resource. - * - * @param string $property - * - * @return string The formatted property_quotas_snapshot resource. - * - * @experimental - */ - public static function propertyQuotasSnapshotName(string $property): string - { - return self::getPathTemplate('propertyQuotasSnapshot')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * recurring_audience_list resource. - * - * @param string $property - * @param string $recurringAudienceList - * - * @return string The formatted recurring_audience_list resource. - * - * @experimental - */ - public static function recurringAudienceListName(string $property, string $recurringAudienceList): string - { - return self::getPathTemplate('recurringAudienceList')->render([ - 'property' => $property, - 'recurring_audience_list' => $recurringAudienceList, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a report_task - * resource. - * - * @param string $property - * @param string $reportTask - * - * @return string The formatted report_task resource. - * - * @experimental - */ - public static function reportTaskName(string $property, string $reportTask): string - { - return self::getPathTemplate('reportTask')->render([ - 'property' => $property, - 'report_task' => $reportTask, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - audienceList: properties/{property}/audienceLists/{audience_list} - * - property: properties/{property} - * - propertyQuotasSnapshot: properties/{property}/propertyQuotasSnapshot - * - recurringAudienceList: properties/{property}/recurringAudienceLists/{recurring_audience_list} - * - reportTask: properties/{property}/reportTasks/{report_task} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsdata.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates an audience list for later retrieval. This method quickly returns - * the audience list's resource name and initiates a long running asynchronous - * request to form an audience list. To list the users in an audience list, - * first create the audience list through this method and then send the - * audience resource name to the `QueryAudienceList` method. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * An audience list is a snapshot of the users currently in the audience at - * the time of audience list creation. Creating audience lists for one - * audience on different days will return different results as users enter and - * exit the audience. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. Audience lists contain - * the users in each audience. - * - * This method is available at beta stability at - * [audienceExports.create](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create). - * To give your feedback on this API, complete the [Google Analytics Audience - * Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see AlphaAnalyticsDataClient::createAudienceListAsync()} - * . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/create_audience_list.php - * - * @param CreateAudienceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createAudienceList(CreateAudienceListRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAudienceList', $request, $callOptions)->wait(); - } - - /** - * Creates a recurring audience list. Recurring audience lists produces new - * audience lists each day. Audience lists are users in an audience at the - * time of the list's creation. - * - * A recurring audience list ensures that you have audience list based on the - * most recent data available for use each day. If you manually create - * audience list, you don't know when an audience list based on an additional - * day's data is available. This recurring audience list automates the - * creation of an audience list when an additional day's data is available. - * You will consume fewer quota tokens by using recurring audience list versus - * manually creating audience list at various times of day trying to guess - * when an additional day's data is ready. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is - * {@see AlphaAnalyticsDataClient::createRecurringAudienceListAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/create_recurring_audience_list.php - * - * @param CreateRecurringAudienceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RecurringAudienceList - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createRecurringAudienceList(CreateRecurringAudienceListRequest $request, array $callOptions = []): RecurringAudienceList - { - return $this->startApiCall('CreateRecurringAudienceList', $request, $callOptions)->wait(); - } - - /** - * Initiates the creation of a report task. This method quickly - * returns a report task and initiates a long running - * asynchronous request to form a customized report of your Google Analytics - * event data. - * - * A report task will be retained and available for querying for 72 hours - * after it has been created. - * - * A report task created by one user can be listed and queried by all users - * who have access to the property. - * - * The async variant is {@see AlphaAnalyticsDataClient::createReportTaskAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/create_report_task.php - * - * @param CreateReportTaskRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createReportTask(CreateReportTaskRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateReportTask', $request, $callOptions)->wait(); - } - - /** - * Gets configuration metadata about a specific audience list. This method - * can be used to understand an audience list after it has been created. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * This method is available at beta stability at - * [audienceExports.get](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/get). - * To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see AlphaAnalyticsDataClient::getAudienceListAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/get_audience_list.php - * - * @param GetAudienceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AudienceList - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAudienceList(GetAudienceListRequest $request, array $callOptions = []): AudienceList - { - return $this->startApiCall('GetAudienceList', $request, $callOptions)->wait(); - } - - /** - * Get all property quotas organized by quota category for a given property. - * This will charge 1 property quota from the category with the most quota. - * - * The async variant is - * {@see AlphaAnalyticsDataClient::getPropertyQuotasSnapshotAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/get_property_quotas_snapshot.php - * - * @param GetPropertyQuotasSnapshotRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PropertyQuotasSnapshot - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getPropertyQuotasSnapshot(GetPropertyQuotasSnapshotRequest $request, array $callOptions = []): PropertyQuotasSnapshot - { - return $this->startApiCall('GetPropertyQuotasSnapshot', $request, $callOptions)->wait(); - } - - /** - * Gets configuration metadata about a specific recurring audience list. This - * method can be used to understand a recurring audience list's state after it - * has been created. For example, a recurring audience list resource will - * generate audience list instances for each day, and this method can be used - * to get the resource name of the most recent audience list instance. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is - * {@see AlphaAnalyticsDataClient::getRecurringAudienceListAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/get_recurring_audience_list.php - * - * @param GetRecurringAudienceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RecurringAudienceList - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getRecurringAudienceList(GetRecurringAudienceListRequest $request, array $callOptions = []): RecurringAudienceList - { - return $this->startApiCall('GetRecurringAudienceList', $request, $callOptions)->wait(); - } - - /** - * Gets report metadata about a specific report task. After creating a report - * task, use this method to check its processing state or inspect its - * report definition. - * - * The async variant is {@see AlphaAnalyticsDataClient::getReportTaskAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/get_report_task.php - * - * @param GetReportTaskRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReportTask - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getReportTask(GetReportTaskRequest $request, array $callOptions = []): ReportTask - { - return $this->startApiCall('GetReportTask', $request, $callOptions)->wait(); - } - - /** - * Lists all audience lists for a property. This method can be used for you to - * find and reuse existing audience lists rather than creating unnecessary new - * audience lists. The same audience can have multiple audience lists that - * represent the list of users that were in an audience on different days. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * This method is available at beta stability at - * [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list). - * To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see AlphaAnalyticsDataClient::listAudienceListsAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/list_audience_lists.php - * - * @param ListAudienceListsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAudienceLists(ListAudienceListsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAudienceLists', $request, $callOptions); - } - - /** - * Lists all recurring audience lists for a property. This method can be used - * for you to find and reuse existing recurring audience lists rather than - * creating unnecessary new recurring audience lists. The same audience can - * have multiple recurring audience lists that represent different dimension - * combinations; for example, just the dimension `deviceId` or both the - * dimensions `deviceId` and `userId`. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is - * {@see AlphaAnalyticsDataClient::listRecurringAudienceListsAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/list_recurring_audience_lists.php - * - * @param ListRecurringAudienceListsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listRecurringAudienceLists(ListRecurringAudienceListsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRecurringAudienceLists', $request, $callOptions); - } - - /** - * Lists all report tasks for a property. - * - * The async variant is {@see AlphaAnalyticsDataClient::listReportTasksAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/list_report_tasks.php - * - * @param ListReportTasksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listReportTasks(ListReportTasksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReportTasks', $request, $callOptions); - } - - /** - * Retrieves an audience list of users. After creating an audience, the users - * are not immediately available for listing. First, a request to - * `CreateAudienceList` is necessary to create an audience list of users, and - * then second, this method is used to retrieve the users in the audience - * list. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - * This method is available at beta stability at - * [audienceExports.query](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/query). - * To give your feedback on this API, complete the [Google Analytics Audience - * Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see AlphaAnalyticsDataClient::queryAudienceListAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/query_audience_list.php - * - * @param QueryAudienceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return QueryAudienceListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryAudienceList(QueryAudienceListRequest $request, array $callOptions = []): QueryAudienceListResponse - { - return $this->startApiCall('QueryAudienceList', $request, $callOptions)->wait(); - } - - /** - * Retrieves a report task's content. After requesting the `CreateReportTask`, - * you are able to retrieve the report content once the report is - * ACTIVE. This method will return an error if the report task's state is not - * `ACTIVE`. A query response will return the tabular row & column values of - * the report. - * - * The async variant is {@see AlphaAnalyticsDataClient::queryReportTaskAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/query_report_task.php - * - * @param QueryReportTaskRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return QueryReportTaskResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryReportTask(QueryReportTaskRequest $request, array $callOptions = []): QueryReportTaskResponse - { - return $this->startApiCall('QueryReportTask', $request, $callOptions)->wait(); - } - - /** - * Returns a customized funnel report of your Google Analytics event data. The - * data returned from the API is as a table with columns for the requested - * dimensions and metrics. - * - * Funnel exploration lets you visualize the steps your users take to complete - * a task and quickly see how well they are succeeding or failing at each - * step. For example, how do prospects become shoppers and then become buyers? - * How do one time buyers become repeat buyers? With this information, you can - * improve inefficient or abandoned customer journeys. To learn more, see [GA4 - * Funnel Explorations](https://support.google.com/analytics/answer/9327974). - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the [Google Analytics Data API Funnel - * Reporting - * Feedback](https://docs.google.com/forms/d/e/1FAIpQLSdwOlQDJAUoBiIgUZZ3S_Lwi8gr7Bb0k1jhvc-DEg7Rol3UjA/viewform). - * - * The async variant is {@see AlphaAnalyticsDataClient::runFunnelReportAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/run_funnel_report.php - * - * @param RunFunnelReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunFunnelReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runFunnelReport(RunFunnelReportRequest $request, array $callOptions = []): RunFunnelReportResponse - { - return $this->startApiCall('RunFunnelReport', $request, $callOptions)->wait(); - } - - /** - * Exports an audience list of users to a Google Sheet. After creating an - * audience, the users are not immediately available for listing. First, a - * request to `CreateAudienceList` is necessary to create an audience list of - * users, and then second, this method is used to export those users in the - * audience list to a Google Sheet. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is - * {@see AlphaAnalyticsDataClient::sheetExportAudienceListAsync()} . - * - * @example samples/V1alpha/AlphaAnalyticsDataClient/sheet_export_audience_list.php - * - * @param SheetExportAudienceListRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SheetExportAudienceListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function sheetExportAudienceList(SheetExportAudienceListRequest $request, array $callOptions = []): SheetExportAudienceListResponse - { - return $this->startApiCall('SheetExportAudienceList', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/Gapic/AlphaAnalyticsDataGapicClient.php b/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/Gapic/AlphaAnalyticsDataGapicClient.php deleted file mode 100644 index 94e8505ff445..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/Gapic/AlphaAnalyticsDataGapicClient.php +++ /dev/null @@ -1,1558 +0,0 @@ -propertyName('[PROPERTY]'); - * $audienceList = new AudienceList(); - * $operationResponse = $alphaAnalyticsDataClient->createAudienceList($formattedParent, $audienceList); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $alphaAnalyticsDataClient->createAudienceList($formattedParent, $audienceList); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $alphaAnalyticsDataClient->resumeOperation($operationName, 'createAudienceList'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $alphaAnalyticsDataClient->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 - * - * @deprecated Please use the new service client {@see \Google\Analytics\Data\V1alpha\Client\AlphaAnalyticsDataClient}. - */ -class AlphaAnalyticsDataGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.analytics.data.v1alpha.AlphaAnalyticsData'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'analyticsdata.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsdata.UNIVERSE_DOMAIN'; - - /** 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', - 'https://www.googleapis.com/auth/analytics.readonly', - 'https://www.googleapis.com/auth/drive', - 'https://www.googleapis.com/auth/drive.file', - 'https://www.googleapis.com/auth/spreadsheets', - ]; - - private static $audienceListNameTemplate; - - private static $propertyNameTemplate; - - private static $propertyQuotasSnapshotNameTemplate; - - private static $recurringAudienceListNameTemplate; - - private static $reportTaskNameTemplate; - - private static $pathTemplateMap; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/alpha_analytics_data_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/alpha_analytics_data_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/alpha_analytics_data_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/alpha_analytics_data_rest_client_config.php', - ], - ], - ]; - } - - private static function getAudienceListNameTemplate() - { - if (self::$audienceListNameTemplate == null) { - self::$audienceListNameTemplate = new PathTemplate('properties/{property}/audienceLists/{audience_list}'); - } - - return self::$audienceListNameTemplate; - } - - private static function getPropertyNameTemplate() - { - if (self::$propertyNameTemplate == null) { - self::$propertyNameTemplate = new PathTemplate('properties/{property}'); - } - - return self::$propertyNameTemplate; - } - - private static function getPropertyQuotasSnapshotNameTemplate() - { - if (self::$propertyQuotasSnapshotNameTemplate == null) { - self::$propertyQuotasSnapshotNameTemplate = new PathTemplate('properties/{property}/propertyQuotasSnapshot'); - } - - return self::$propertyQuotasSnapshotNameTemplate; - } - - private static function getRecurringAudienceListNameTemplate() - { - if (self::$recurringAudienceListNameTemplate == null) { - self::$recurringAudienceListNameTemplate = new PathTemplate('properties/{property}/recurringAudienceLists/{recurring_audience_list}'); - } - - return self::$recurringAudienceListNameTemplate; - } - - private static function getReportTaskNameTemplate() - { - if (self::$reportTaskNameTemplate == null) { - self::$reportTaskNameTemplate = new PathTemplate('properties/{property}/reportTasks/{report_task}'); - } - - return self::$reportTaskNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'audienceList' => self::getAudienceListNameTemplate(), - 'property' => self::getPropertyNameTemplate(), - 'propertyQuotasSnapshot' => self::getPropertyQuotasSnapshotNameTemplate(), - 'recurringAudienceList' => self::getRecurringAudienceListNameTemplate(), - 'reportTask' => self::getReportTaskNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * audience_list resource. - * - * @param string $property - * @param string $audienceList - * - * @return string The formatted audience_list resource. - * - * @experimental - */ - public static function audienceListName($property, $audienceList) - { - return self::getAudienceListNameTemplate()->render([ - 'property' => $property, - 'audience_list' => $audienceList, - ]); - } - - /** - * 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_quotas_snapshot resource. - * - * @param string $property - * - * @return string The formatted property_quotas_snapshot resource. - * - * @experimental - */ - public static function propertyQuotasSnapshotName($property) - { - return self::getPropertyQuotasSnapshotNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * recurring_audience_list resource. - * - * @param string $property - * @param string $recurringAudienceList - * - * @return string The formatted recurring_audience_list resource. - * - * @experimental - */ - public static function recurringAudienceListName($property, $recurringAudienceList) - { - return self::getRecurringAudienceListNameTemplate()->render([ - 'property' => $property, - 'recurring_audience_list' => $recurringAudienceList, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a report_task - * resource. - * - * @param string $property - * @param string $reportTask - * - * @return string The formatted report_task resource. - * - * @experimental - */ - public static function reportTaskName($property, $reportTask) - { - return self::getReportTaskNameTemplate()->render([ - 'property' => $property, - 'report_task' => $reportTask, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - audienceList: properties/{property}/audienceLists/{audience_list} - * - property: properties/{property} - * - propertyQuotasSnapshot: properties/{property}/propertyQuotasSnapshot - * - recurringAudienceList: properties/{property}/recurringAudienceLists/{recurring_audience_list} - * - reportTask: properties/{property}/reportTasks/{report_task} - * - * 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"); - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsdata.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** - * Creates an audience list for later retrieval. This method quickly returns - * the audience list's resource name and initiates a long running asynchronous - * request to form an audience list. To list the users in an audience list, - * first create the audience list through this method and then send the - * audience resource name to the `QueryAudienceList` method. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * An audience list is a snapshot of the users currently in the audience at - * the time of audience list creation. Creating audience lists for one - * audience on different days will return different results as users enter and - * exit the audience. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. Audience lists contain - * the users in each audience. - * - * This method is available at beta stability at - * [audienceExports.create](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create). - * To give your feedback on this API, complete the [Google Analytics Audience - * Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedParent = $alphaAnalyticsDataClient->propertyName('[PROPERTY]'); - * $audienceList = new AudienceList(); - * $operationResponse = $alphaAnalyticsDataClient->createAudienceList($formattedParent, $audienceList); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $alphaAnalyticsDataClient->createAudienceList($formattedParent, $audienceList); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $alphaAnalyticsDataClient->resumeOperation($operationName, 'createAudienceList'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this audience list will be created. - * Format: `properties/{property}` - * @param AudienceList $audienceList Required. The audience list to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAudienceList($parent, $audienceList, array $optionalArgs = []) - { - $request = new CreateAudienceListRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAudienceList($audienceList); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAudienceList', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Creates a recurring audience list. Recurring audience lists produces new - * audience lists each day. Audience lists are users in an audience at the - * time of the list's creation. - * - * A recurring audience list ensures that you have audience list based on the - * most recent data available for use each day. If you manually create - * audience list, you don't know when an audience list based on an additional - * day's data is available. This recurring audience list automates the - * creation of an audience list when an additional day's data is available. - * You will consume fewer quota tokens by using recurring audience list versus - * manually creating audience list at various times of day trying to guess - * when an additional day's data is ready. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedParent = $alphaAnalyticsDataClient->propertyName('[PROPERTY]'); - * $recurringAudienceList = new RecurringAudienceList(); - * $response = $alphaAnalyticsDataClient->createRecurringAudienceList($formattedParent, $recurringAudienceList); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this recurring audience list will be - * created. Format: `properties/{property}` - * @param RecurringAudienceList $recurringAudienceList Required. The recurring audience list to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\RecurringAudienceList - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createRecurringAudienceList($parent, $recurringAudienceList, array $optionalArgs = []) - { - $request = new CreateRecurringAudienceListRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRecurringAudienceList($recurringAudienceList); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateRecurringAudienceList', RecurringAudienceList::class, $optionalArgs, $request)->wait(); - } - - /** - * Initiates the creation of a report task. This method quickly - * returns a report task and initiates a long running - * asynchronous request to form a customized report of your Google Analytics - * event data. - * - * A report task will be retained and available for querying for 72 hours - * after it has been created. - * - * A report task created by one user can be listed and queried by all users - * who have access to the property. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedParent = $alphaAnalyticsDataClient->propertyName('[PROPERTY]'); - * $reportTask = new ReportTask(); - * $operationResponse = $alphaAnalyticsDataClient->createReportTask($formattedParent, $reportTask); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $alphaAnalyticsDataClient->createReportTask($formattedParent, $reportTask); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $alphaAnalyticsDataClient->resumeOperation($operationName, 'createReportTask'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this report task will be created. - * Format: `properties/{propertyId}` - * @param ReportTask $reportTask Required. The report task configuration to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createReportTask($parent, $reportTask, array $optionalArgs = []) - { - $request = new CreateReportTaskRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setReportTask($reportTask); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateReportTask', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Gets configuration metadata about a specific audience list. This method - * can be used to understand an audience list after it has been created. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * This method is available at beta stability at - * [audienceExports.get](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/get). - * To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedName = $alphaAnalyticsDataClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - * $response = $alphaAnalyticsDataClient->getAudienceList($formattedName); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The audience list resource name. - * Format: `properties/{property}/audienceLists/{audience_list}` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\AudienceList - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAudienceList($name, array $optionalArgs = []) - { - $request = new GetAudienceListRequest(); - $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('GetAudienceList', AudienceList::class, $optionalArgs, $request)->wait(); - } - - /** - * Get all property quotas organized by quota category for a given property. - * This will charge 1 property quota from the category with the most quota. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedName = $alphaAnalyticsDataClient->propertyQuotasSnapshotName('[PROPERTY]'); - * $response = $alphaAnalyticsDataClient->getPropertyQuotasSnapshot($formattedName); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. Quotas from this property will be listed in the response. - * Format: `properties/{property}/propertyQuotasSnapshot` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\PropertyQuotasSnapshot - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getPropertyQuotasSnapshot($name, array $optionalArgs = []) - { - $request = new GetPropertyQuotasSnapshotRequest(); - $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('GetPropertyQuotasSnapshot', PropertyQuotasSnapshot::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets configuration metadata about a specific recurring audience list. This - * method can be used to understand a recurring audience list's state after it - * has been created. For example, a recurring audience list resource will - * generate audience list instances for each day, and this method can be used - * to get the resource name of the most recent audience list instance. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedName = $alphaAnalyticsDataClient->recurringAudienceListName('[PROPERTY]', '[RECURRING_AUDIENCE_LIST]'); - * $response = $alphaAnalyticsDataClient->getRecurringAudienceList($formattedName); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The recurring audience list resource name. - * Format: - * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\RecurringAudienceList - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getRecurringAudienceList($name, array $optionalArgs = []) - { - $request = new GetRecurringAudienceListRequest(); - $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('GetRecurringAudienceList', RecurringAudienceList::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets report metadata about a specific report task. After creating a report - * task, use this method to check its processing state or inspect its - * report definition. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedName = $alphaAnalyticsDataClient->reportTaskName('[PROPERTY]', '[REPORT_TASK]'); - * $response = $alphaAnalyticsDataClient->getReportTask($formattedName); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The report task resource name. - * Format: `properties/{property}/reportTasks/{report_task}` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\ReportTask - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getReportTask($name, array $optionalArgs = []) - { - $request = new GetReportTaskRequest(); - $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('GetReportTask', ReportTask::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all audience lists for a property. This method can be used for you to - * find and reuse existing audience lists rather than creating unnecessary new - * audience lists. The same audience can have multiple audience lists that - * represent the list of users that were in an audience on different days. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * This method is available at beta stability at - * [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list). - * To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedParent = $alphaAnalyticsDataClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $alphaAnalyticsDataClient->listAudienceLists($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $alphaAnalyticsDataClient->listAudienceLists($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. All audience lists for this property will be listed in the - * response. Format: `properties/{property}` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAudienceLists($parent, array $optionalArgs = []) - { - $request = new ListAudienceListsRequest(); - $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('ListAudienceLists', $optionalArgs, ListAudienceListsResponse::class, $request); - } - - /** - * Lists all recurring audience lists for a property. This method can be used - * for you to find and reuse existing recurring audience lists rather than - * creating unnecessary new recurring audience lists. The same audience can - * have multiple recurring audience lists that represent different dimension - * combinations; for example, just the dimension `deviceId` or both the - * dimensions `deviceId` and `userId`. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedParent = $alphaAnalyticsDataClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $alphaAnalyticsDataClient->listRecurringAudienceLists($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $alphaAnalyticsDataClient->listRecurringAudienceLists($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. All recurring audience lists for this property will be listed in - * the response. Format: `properties/{property}` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listRecurringAudienceLists($parent, array $optionalArgs = []) - { - $request = new ListRecurringAudienceListsRequest(); - $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('ListRecurringAudienceLists', $optionalArgs, ListRecurringAudienceListsResponse::class, $request); - } - - /** - * Lists all report tasks for a property. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedParent = $alphaAnalyticsDataClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $alphaAnalyticsDataClient->listReportTasks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $alphaAnalyticsDataClient->listReportTasks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. All report tasks for this property will be listed in the - * response. Format: `properties/{property}` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listReportTasks($parent, array $optionalArgs = []) - { - $request = new ListReportTasksRequest(); - $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('ListReportTasks', $optionalArgs, ListReportTasksResponse::class, $request); - } - - /** - * Retrieves an audience list of users. After creating an audience, the users - * are not immediately available for listing. First, a request to - * `CreateAudienceList` is necessary to create an audience list of users, and - * then second, this method is used to retrieve the users in the audience - * list. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - * This method is available at beta stability at - * [audienceExports.query](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/query). - * To give your feedback on this API, complete the [Google Analytics Audience - * Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $name = 'name'; - * $response = $alphaAnalyticsDataClient->queryAudienceList($name); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * @param array $optionalArgs { - * Optional. - * - * @type int $offset - * Optional. The row count of the start row. The first row is counted as row - * 0. - * - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\QueryAudienceListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function queryAudienceList($name, array $optionalArgs = []) - { - $request = new QueryAudienceListRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('QueryAudienceList', QueryAudienceListResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieves a report task's content. After requesting the `CreateReportTask`, - * you are able to retrieve the report content once the report is - * ACTIVE. This method will return an error if the report task's state is not - * `ACTIVE`. A query response will return the tabular row & column values of - * the report. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $name = 'name'; - * $response = $alphaAnalyticsDataClient->queryReportTask($name); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The report source name. - * Format: `properties/{property}/reportTasks/{report}` - * @param array $optionalArgs { - * Optional. - * - * @type int $offset - * Optional. The row count of the start row in the report. The first row is - * counted as row 0. - * - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * Optional. The number of rows to return from the report. If unspecified, - * 10,000 rows are returned. The API returns a maximum of 250,000 rows per - * request, no matter how many you ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. The number of rows - * available to a QueryReportTaskRequest is further limited by the limit of - * the associated ReportTask. A query can retrieve at most ReportTask.limit - * rows. For example, if the ReportTask has a limit of 1,000, then a - * QueryReportTask request with offset=900 and limit=500 will return at most - * 100 rows. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\QueryReportTaskResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function queryReportTask($name, array $optionalArgs = []) - { - $request = new QueryReportTaskRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('QueryReportTask', QueryReportTaskResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized funnel report of your Google Analytics event data. The - * data returned from the API is as a table with columns for the requested - * dimensions and metrics. - * - * Funnel exploration lets you visualize the steps your users take to complete - * a task and quickly see how well they are succeeding or failing at each - * step. For example, how do prospects become shoppers and then become buyers? - * How do one time buyers become repeat buyers? With this information, you can - * improve inefficient or abandoned customer journeys. To learn more, see [GA4 - * Funnel Explorations](https://support.google.com/analytics/answer/9327974). - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the [Google Analytics Data API Funnel - * Reporting - * Feedback](https://docs.google.com/forms/d/e/1FAIpQLSdwOlQDJAUoBiIgUZZ3S_Lwi8gr7Bb0k1jhvc-DEg7Rol3UjA/viewform). - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $response = $alphaAnalyticsDataClient->runFunnelReport(); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * Optional. A Google Analytics property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * - * Example: properties/1234 - * @type DateRange[] $dateRanges - * Optional. Date ranges of data to read. If multiple date ranges are - * requested, each response row will contain a zero based date range index. If - * two date ranges overlap, the event data for the overlapping days is - * included in the response rows for both date ranges. - * @type Funnel $funnel - * Optional. The configuration of this request's funnel. This funnel - * configuration is required. - * @type FunnelBreakdown $funnelBreakdown - * Optional. If specified, this breakdown adds a dimension to the funnel table - * sub report response. This breakdown dimension expands each funnel step to - * the unique values of the breakdown dimension. For example, a breakdown by - * the `deviceCategory` dimension will create rows for `mobile`, `tablet`, - * `desktop`, and the total. - * @type FunnelNextAction $funnelNextAction - * Optional. If specified, next action adds a dimension to the funnel - * visualization sub report response. This next action dimension expands each - * funnel step to the unique values of the next action. For example a next - * action of the `eventName` dimension will create rows for several events - * (for example `session_start` & `click`) and the total. - * - * Next action only supports `eventName` and most Page / Screen dimensions - * like `pageTitle` and `pagePath`. - * @type int $funnelVisualizationType - * Optional. The funnel visualization type controls the dimensions present in - * the funnel visualization sub report response. If not specified, - * `STANDARD_FUNNEL` is used. - * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1alpha\RunFunnelReportRequest\FunnelVisualizationType} - * @type Segment[] $segments - * Optional. The configurations of segments. Segments are subsets of a - * property's data. In a funnel report with segments, the funnel is evaluated - * in each segment. - * - * Each segment specified in this request - * produces a separate row in the response; in the response, each segment - * identified by its name. - * - * The segments parameter is optional. Requests are limited to 4 segments. - * @type int $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * @type FilterExpression $dimensionFilter - * Optional. Dimension filters allow you to ask for only specific dimension - * values in the report. To learn more, see [Creating a Report: Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type bool $returnPropertyQuota - * Optional. Toggles whether to return the current state of this Analytics - * Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\RunFunnelReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runFunnelReport(array $optionalArgs = []) - { - $request = new RunFunnelReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['funnel'])) { - $request->setFunnel($optionalArgs['funnel']); - } - - if (isset($optionalArgs['funnelBreakdown'])) { - $request->setFunnelBreakdown($optionalArgs['funnelBreakdown']); - } - - if (isset($optionalArgs['funnelNextAction'])) { - $request->setFunnelNextAction($optionalArgs['funnelNextAction']); - } - - if (isset($optionalArgs['funnelVisualizationType'])) { - $request->setFunnelVisualizationType($optionalArgs['funnelVisualizationType']); - } - - if (isset($optionalArgs['segments'])) { - $request->setSegments($optionalArgs['segments']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['returnPropertyQuota'])) { - $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunFunnelReport', RunFunnelReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Exports an audience list of users to a Google Sheet. After creating an - * audience, the users are not immediately available for listing. First, a - * request to `CreateAudienceList` is necessary to create an audience list of - * users, and then second, this method is used to export those users in the - * audience list to a Google Sheet. - * - * See [Creating an Audience - * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Lists with examples. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - * This method is introduced at alpha stability with the intention of - * gathering feedback on syntax and capabilities before entering beta. To give - * your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $alphaAnalyticsDataClient = new AlphaAnalyticsDataClient(); - * try { - * $formattedName = $alphaAnalyticsDataClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - * $response = $alphaAnalyticsDataClient->sheetExportAudienceList($formattedName); - * } finally { - * $alphaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * @param array $optionalArgs { - * Optional. - * - * @type int $offset - * Optional. The row count of the start row. The first row is counted as row - * 0. - * - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1alpha\SheetExportAudienceListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function sheetExportAudienceList($name, array $optionalArgs = []) - { - $request = new SheetExportAudienceListRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SheetExportAudienceList', SheetExportAudienceListResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/gapic_metadata.json b/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/gapic_metadata.json deleted file mode 100644 index d2694d1bb0c5..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/gapic_metadata.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.analytics.data.v1alpha", - "libraryPackage": "Google\\Analytics\\Data\\V1alpha", - "services": { - "AlphaAnalyticsData": { - "clients": { - "grpc": { - "libraryClient": "AlphaAnalyticsDataGapicClient", - "rpcs": { - "CreateAudienceList": { - "methods": [ - "createAudienceList" - ] - }, - "CreateRecurringAudienceList": { - "methods": [ - "createRecurringAudienceList" - ] - }, - "CreateReportTask": { - "methods": [ - "createReportTask" - ] - }, - "GetAudienceList": { - "methods": [ - "getAudienceList" - ] - }, - "GetPropertyQuotasSnapshot": { - "methods": [ - "getPropertyQuotasSnapshot" - ] - }, - "GetRecurringAudienceList": { - "methods": [ - "getRecurringAudienceList" - ] - }, - "GetReportTask": { - "methods": [ - "getReportTask" - ] - }, - "ListAudienceLists": { - "methods": [ - "listAudienceLists" - ] - }, - "ListRecurringAudienceLists": { - "methods": [ - "listRecurringAudienceLists" - ] - }, - "ListReportTasks": { - "methods": [ - "listReportTasks" - ] - }, - "QueryAudienceList": { - "methods": [ - "queryAudienceList" - ] - }, - "QueryReportTask": { - "methods": [ - "queryReportTask" - ] - }, - "RunFunnelReport": { - "methods": [ - "runFunnelReport" - ] - }, - "SheetExportAudienceList": { - "methods": [ - "sheetExportAudienceList" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_client_config.json b/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_client_config.json deleted file mode 100644 index e0a59f8bb5a1..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_client_config.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "interfaces": { - "google.analytics.data.v1alpha.AlphaAnalyticsData": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "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": { - "CreateAudienceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateRecurringAudienceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateReportTask": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAudienceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetPropertyQuotasSnapshot": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRecurringAudienceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetReportTask": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAudienceLists": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRecurringAudienceLists": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListReportTasks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryAudienceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryReportTask": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RunFunnelReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SheetExportAudienceList": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_descriptor_config.php b/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_descriptor_config.php deleted file mode 100644 index a50b896c7461..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_descriptor_config.php +++ /dev/null @@ -1,241 +0,0 @@ - [ - 'google.analytics.data.v1alpha.AlphaAnalyticsData' => [ - 'CreateAudienceList' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Analytics\Data\V1alpha\AudienceList', - 'metadataReturnType' => '\Google\Analytics\Data\V1alpha\AudienceListMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReportTask' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Analytics\Data\V1alpha\ReportTask', - 'metadataReturnType' => '\Google\Analytics\Data\V1alpha\ReportTaskMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRecurringAudienceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\RecurringAudienceList', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetAudienceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\AudienceList', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPropertyQuotasSnapshot' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\PropertyQuotasSnapshot', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRecurringAudienceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\RecurringAudienceList', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetReportTask' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\ReportTask', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAudienceLists' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAudienceLists', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\ListAudienceListsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRecurringAudienceLists' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRecurringAudienceLists', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\ListRecurringAudienceListsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListReportTasks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReportTasks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\ListReportTasksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'QueryAudienceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\QueryAudienceListResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'QueryReportTask' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\QueryReportTaskResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RunFunnelReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\RunFunnelReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'SheetExportAudienceList' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1alpha\SheetExportAudienceListResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'audienceList' => 'properties/{property}/audienceLists/{audience_list}', - 'property' => 'properties/{property}', - 'propertyQuotasSnapshot' => 'properties/{property}/propertyQuotasSnapshot', - 'recurringAudienceList' => 'properties/{property}/recurringAudienceLists/{recurring_audience_list}', - 'reportTask' => 'properties/{property}/reportTasks/{report_task}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_rest_client_config.php b/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_rest_client_config.php deleted file mode 100644 index 6ac05b334fca..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/src/V1alpha/resources/alpha_analytics_data_rest_client_config.php +++ /dev/null @@ -1,190 +0,0 @@ - [ - 'google.analytics.data.v1alpha.AlphaAnalyticsData' => [ - 'CreateAudienceList' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/audienceLists', - 'body' => 'audience_list', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRecurringAudienceList' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/recurringAudienceLists', - 'body' => 'recurring_audience_list', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReportTask' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/reportTasks', - 'body' => 'report_task', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetAudienceList' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/audienceLists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPropertyQuotasSnapshot' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/propertyQuotasSnapshot}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRecurringAudienceList' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/recurringAudienceLists/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetReportTask' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/reportTasks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAudienceLists' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/audienceLists', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRecurringAudienceLists' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/recurringAudienceLists', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListReportTasks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/reportTasks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'QueryAudienceList' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/audienceLists/*}:query', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'QueryReportTask' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/reportTasks/*}:query', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RunFunnelReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{property=properties/*}:runFunnelReport', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'SheetExportAudienceList' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=properties/*/audienceLists/*}:exportSheet', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AnalyticsData/v1alpha/tests/Unit/V1alpha/AlphaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1alpha/tests/Unit/V1alpha/AlphaAnalyticsDataClientTest.php deleted file mode 100644 index 83475a172ef3..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/tests/Unit/V1alpha/AlphaAnalyticsDataClientTest.php +++ /dev/null @@ -1,1123 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AlphaAnalyticsDataClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AlphaAnalyticsDataClient($options); - } - - /** @test */ - public function createAudienceListTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceListTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $recurringAudienceList = 'recurringAudienceList2056789015'; - $expectedResponse = new AudienceList(); - $expectedResponse->setName($name); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $expectedResponse->setRecurringAudienceList($recurringAudienceList); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAudienceListTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceList = new AudienceList(); - $audienceListAudience = 'audienceListAudience867162342'; - $audienceList->setAudience($audienceListAudience); - $audienceListDimensions = []; - $audienceList->setDimensions($audienceListDimensions); - $response = $gapicClient->createAudienceList($formattedParent, $audienceList); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/CreateAudienceList', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAudienceList(); - $this->assertProtobufEquals($audienceList, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceListTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAudienceListExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceListTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceList = new AudienceList(); - $audienceListAudience = 'audienceListAudience867162342'; - $audienceList->setAudience($audienceListAudience); - $audienceListDimensions = []; - $audienceList->setDimensions($audienceListDimensions); - $response = $gapicClient->createAudienceList($formattedParent, $audienceList); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceListTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRecurringAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $activeDaysRemaining = 1427137945; - $expectedResponse = new RecurringAudienceList(); - $expectedResponse->setName($name); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setActiveDaysRemaining($activeDaysRemaining); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $recurringAudienceList = new RecurringAudienceList(); - $recurringAudienceListAudience = 'recurringAudienceListAudience230288227'; - $recurringAudienceList->setAudience($recurringAudienceListAudience); - $recurringAudienceListDimensions = []; - $recurringAudienceList->setDimensions($recurringAudienceListDimensions); - $response = $gapicClient->createRecurringAudienceList($formattedParent, $recurringAudienceList); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/CreateRecurringAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRecurringAudienceList(); - $this->assertProtobufEquals($recurringAudienceList, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRecurringAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $recurringAudienceList = new RecurringAudienceList(); - $recurringAudienceListAudience = 'recurringAudienceListAudience230288227'; - $recurringAudienceList->setAudience($recurringAudienceListAudience); - $recurringAudienceListDimensions = []; - $recurringAudienceList->setDimensions($recurringAudienceListDimensions); - try { - $gapicClient->createRecurringAudienceList($formattedParent, $recurringAudienceList); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReportTaskTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createReportTaskTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $expectedResponse = new ReportTask(); - $expectedResponse->setName($name); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createReportTaskTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $reportTask = new ReportTask(); - $response = $gapicClient->createReportTask($formattedParent, $reportTask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/CreateReportTask', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getReportTask(); - $this->assertProtobufEquals($reportTask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createReportTaskTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createReportTaskExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createReportTaskTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $reportTask = new ReportTask(); - $response = $gapicClient->createReportTask($formattedParent, $reportTask); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createReportTaskTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $recurringAudienceList = 'recurringAudienceList2056789015'; - $expectedResponse = new AudienceList(); - $expectedResponse->setName($name2); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $expectedResponse->setRecurringAudienceList($recurringAudienceList); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - $response = $gapicClient->getAudienceList($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.data.v1alpha.AlphaAnalyticsData/GetAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - try { - $gapicClient->getAudienceList($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyQuotasSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new PropertyQuotasSnapshot(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyQuotasSnapshotName('[PROPERTY]'); - $response = $gapicClient->getPropertyQuotasSnapshot($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.data.v1alpha.AlphaAnalyticsData/GetPropertyQuotasSnapshot', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyQuotasSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyQuotasSnapshotName('[PROPERTY]'); - try { - $gapicClient->getPropertyQuotasSnapshot($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecurringAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $activeDaysRemaining = 1427137945; - $expectedResponse = new RecurringAudienceList(); - $expectedResponse->setName($name2); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setActiveDaysRemaining($activeDaysRemaining); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->recurringAudienceListName('[PROPERTY]', '[RECURRING_AUDIENCE_LIST]'); - $response = $gapicClient->getRecurringAudienceList($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.data.v1alpha.AlphaAnalyticsData/GetRecurringAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecurringAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->recurringAudienceListName('[PROPERTY]', '[RECURRING_AUDIENCE_LIST]'); - try { - $gapicClient->getRecurringAudienceList($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportTaskTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new ReportTask(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->reportTaskName('[PROPERTY]', '[REPORT_TASK]'); - $response = $gapicClient->getReportTask($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.data.v1alpha.AlphaAnalyticsData/GetReportTask', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportTaskExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reportTaskName('[PROPERTY]', '[REPORT_TASK]'); - try { - $gapicClient->getReportTask($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceListsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $audienceListsElement = new AudienceList(); - $audienceLists = [ - $audienceListsElement, - ]; - $expectedResponse = new ListAudienceListsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAudienceLists($audienceLists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listAudienceLists($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAudienceLists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/ListAudienceLists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceListsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listAudienceLists($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecurringAudienceListsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $recurringAudienceListsElement = new RecurringAudienceList(); - $recurringAudienceLists = [ - $recurringAudienceListsElement, - ]; - $expectedResponse = new ListRecurringAudienceListsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRecurringAudienceLists($recurringAudienceLists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listRecurringAudienceLists($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRecurringAudienceLists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/ListRecurringAudienceLists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecurringAudienceListsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listRecurringAudienceLists($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportTasksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $reportTasksElement = new ReportTask(); - $reportTasks = [ - $reportTasksElement, - ]; - $expectedResponse = new ListReportTasksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReportTasks($reportTasks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listReportTasks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReportTasks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/ListReportTasks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportTasksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listReportTasks($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new QueryAudienceListResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $response = $gapicClient->queryAudienceList($name); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/QueryAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - try { - $gapicClient->queryAudienceList($name); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryReportTaskTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new QueryReportTaskResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $response = $gapicClient->queryReportTask($name); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/QueryReportTask', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryReportTaskExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - try { - $gapicClient->queryReportTask($name); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runFunnelReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new RunFunnelReportResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runFunnelReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/RunFunnelReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runFunnelReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runFunnelReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function sheetExportAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $spreadsheetUri = 'spreadsheetUri-1521055111'; - $spreadsheetId = 'spreadsheetId1336406638'; - $rowCount = 1340416618; - $expectedResponse = new SheetExportAudienceListResponse(); - $expectedResponse->setSpreadsheetUri($spreadsheetUri); - $expectedResponse->setSpreadsheetId($spreadsheetId); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - $response = $gapicClient->sheetExportAudienceList($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.data.v1alpha.AlphaAnalyticsData/SheetExportAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function sheetExportAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - try { - $gapicClient->sheetExportAudienceList($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1alpha/tests/Unit/V1alpha/Client/AlphaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1alpha/tests/Unit/V1alpha/Client/AlphaAnalyticsDataClientTest.php deleted file mode 100644 index 073c77ef5975..000000000000 --- a/owl-bot-staging/AnalyticsData/v1alpha/tests/Unit/V1alpha/Client/AlphaAnalyticsDataClientTest.php +++ /dev/null @@ -1,1285 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AlphaAnalyticsDataClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AlphaAnalyticsDataClient($options); - } - - /** @test */ - public function createAudienceListTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceListTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $recurringAudienceList = 'recurringAudienceList2056789015'; - $expectedResponse = new AudienceList(); - $expectedResponse->setName($name); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $expectedResponse->setRecurringAudienceList($recurringAudienceList); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAudienceListTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceList = new AudienceList(); - $audienceListAudience = 'audienceListAudience867162342'; - $audienceList->setAudience($audienceListAudience); - $audienceListDimensions = []; - $audienceList->setDimensions($audienceListDimensions); - $request = (new CreateAudienceListRequest()) - ->setParent($formattedParent) - ->setAudienceList($audienceList); - $response = $gapicClient->createAudienceList($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/CreateAudienceList', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAudienceList(); - $this->assertProtobufEquals($audienceList, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceListTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAudienceListExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceListTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceList = new AudienceList(); - $audienceListAudience = 'audienceListAudience867162342'; - $audienceList->setAudience($audienceListAudience); - $audienceListDimensions = []; - $audienceList->setDimensions($audienceListDimensions); - $request = (new CreateAudienceListRequest()) - ->setParent($formattedParent) - ->setAudienceList($audienceList); - $response = $gapicClient->createAudienceList($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceListTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRecurringAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $activeDaysRemaining = 1427137945; - $expectedResponse = new RecurringAudienceList(); - $expectedResponse->setName($name); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setActiveDaysRemaining($activeDaysRemaining); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $recurringAudienceList = new RecurringAudienceList(); - $recurringAudienceListAudience = 'recurringAudienceListAudience230288227'; - $recurringAudienceList->setAudience($recurringAudienceListAudience); - $recurringAudienceListDimensions = []; - $recurringAudienceList->setDimensions($recurringAudienceListDimensions); - $request = (new CreateRecurringAudienceListRequest()) - ->setParent($formattedParent) - ->setRecurringAudienceList($recurringAudienceList); - $response = $gapicClient->createRecurringAudienceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/CreateRecurringAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRecurringAudienceList(); - $this->assertProtobufEquals($recurringAudienceList, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRecurringAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $recurringAudienceList = new RecurringAudienceList(); - $recurringAudienceListAudience = 'recurringAudienceListAudience230288227'; - $recurringAudienceList->setAudience($recurringAudienceListAudience); - $recurringAudienceListDimensions = []; - $recurringAudienceList->setDimensions($recurringAudienceListDimensions); - $request = (new CreateRecurringAudienceListRequest()) - ->setParent($formattedParent) - ->setRecurringAudienceList($recurringAudienceList); - try { - $gapicClient->createRecurringAudienceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReportTaskTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createReportTaskTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $expectedResponse = new ReportTask(); - $expectedResponse->setName($name); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createReportTaskTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $reportTask = new ReportTask(); - $request = (new CreateReportTaskRequest()) - ->setParent($formattedParent) - ->setReportTask($reportTask); - $response = $gapicClient->createReportTask($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/CreateReportTask', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getReportTask(); - $this->assertProtobufEquals($reportTask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createReportTaskTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createReportTaskExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createReportTaskTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $reportTask = new ReportTask(); - $request = (new CreateReportTaskRequest()) - ->setParent($formattedParent) - ->setReportTask($reportTask); - $response = $gapicClient->createReportTask($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createReportTaskTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $recurringAudienceList = 'recurringAudienceList2056789015'; - $expectedResponse = new AudienceList(); - $expectedResponse->setName($name2); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $expectedResponse->setRecurringAudienceList($recurringAudienceList); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - $request = (new GetAudienceListRequest()) - ->setName($formattedName); - $response = $gapicClient->getAudienceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/GetAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - $request = (new GetAudienceListRequest()) - ->setName($formattedName); - try { - $gapicClient->getAudienceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyQuotasSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new PropertyQuotasSnapshot(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->propertyQuotasSnapshotName('[PROPERTY]'); - $request = (new GetPropertyQuotasSnapshotRequest()) - ->setName($formattedName); - $response = $gapicClient->getPropertyQuotasSnapshot($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/GetPropertyQuotasSnapshot', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPropertyQuotasSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->propertyQuotasSnapshotName('[PROPERTY]'); - $request = (new GetPropertyQuotasSnapshotRequest()) - ->setName($formattedName); - try { - $gapicClient->getPropertyQuotasSnapshot($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecurringAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $activeDaysRemaining = 1427137945; - $expectedResponse = new RecurringAudienceList(); - $expectedResponse->setName($name2); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setActiveDaysRemaining($activeDaysRemaining); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->recurringAudienceListName('[PROPERTY]', '[RECURRING_AUDIENCE_LIST]'); - $request = (new GetRecurringAudienceListRequest()) - ->setName($formattedName); - $response = $gapicClient->getRecurringAudienceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/GetRecurringAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecurringAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->recurringAudienceListName('[PROPERTY]', '[RECURRING_AUDIENCE_LIST]'); - $request = (new GetRecurringAudienceListRequest()) - ->setName($formattedName); - try { - $gapicClient->getRecurringAudienceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportTaskTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new ReportTask(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->reportTaskName('[PROPERTY]', '[REPORT_TASK]'); - $request = (new GetReportTaskRequest()) - ->setName($formattedName); - $response = $gapicClient->getReportTask($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/GetReportTask', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReportTaskExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reportTaskName('[PROPERTY]', '[REPORT_TASK]'); - $request = (new GetReportTaskRequest()) - ->setName($formattedName); - try { - $gapicClient->getReportTask($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceListsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $audienceListsElement = new AudienceList(); - $audienceLists = [ - $audienceListsElement, - ]; - $expectedResponse = new ListAudienceListsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAudienceLists($audienceLists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAudienceListsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAudienceLists($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAudienceLists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/ListAudienceLists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceListsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAudienceListsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAudienceLists($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecurringAudienceListsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $recurringAudienceListsElement = new RecurringAudienceList(); - $recurringAudienceLists = [ - $recurringAudienceListsElement, - ]; - $expectedResponse = new ListRecurringAudienceListsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRecurringAudienceLists($recurringAudienceLists); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListRecurringAudienceListsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRecurringAudienceLists($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRecurringAudienceLists()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/ListRecurringAudienceLists', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecurringAudienceListsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListRecurringAudienceListsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRecurringAudienceLists($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportTasksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $reportTasksElement = new ReportTask(); - $reportTasks = [ - $reportTasksElement, - ]; - $expectedResponse = new ListReportTasksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReportTasks($reportTasks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListReportTasksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReportTasks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReportTasks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/ListReportTasks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReportTasksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListReportTasksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReportTasks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new QueryAudienceListResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new QueryAudienceListRequest()) - ->setName($name); - $response = $gapicClient->queryAudienceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/QueryAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new QueryAudienceListRequest()) - ->setName($name); - try { - $gapicClient->queryAudienceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryReportTaskTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new QueryReportTaskResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new QueryReportTaskRequest()) - ->setName($name); - $response = $gapicClient->queryReportTask($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/QueryReportTask', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryReportTaskExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new QueryReportTaskRequest()) - ->setName($name); - try { - $gapicClient->queryReportTask($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runFunnelReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new RunFunnelReportResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new RunFunnelReportRequest(); - $response = $gapicClient->runFunnelReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/RunFunnelReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runFunnelReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunFunnelReportRequest(); - try { - $gapicClient->runFunnelReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function sheetExportAudienceListTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $spreadsheetUri = 'spreadsheetUri-1521055111'; - $spreadsheetId = 'spreadsheetId1336406638'; - $rowCount = 1340416618; - $expectedResponse = new SheetExportAudienceListResponse(); - $expectedResponse->setSpreadsheetUri($spreadsheetUri); - $expectedResponse->setSpreadsheetId($spreadsheetId); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - $request = (new SheetExportAudienceListRequest()) - ->setName($formattedName); - $response = $gapicClient->sheetExportAudienceList($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/SheetExportAudienceList', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function sheetExportAudienceListExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - $request = (new SheetExportAudienceListRequest()) - ->setName($formattedName); - try { - $gapicClient->sheetExportAudienceList($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceListAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceListTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $recurringAudienceList = 'recurringAudienceList2056789015'; - $expectedResponse = new AudienceList(); - $expectedResponse->setName($name); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $expectedResponse->setRecurringAudienceList($recurringAudienceList); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAudienceListTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceList = new AudienceList(); - $audienceListAudience = 'audienceListAudience867162342'; - $audienceList->setAudience($audienceListAudience); - $audienceListDimensions = []; - $audienceList->setDimensions($audienceListDimensions); - $request = (new CreateAudienceListRequest()) - ->setParent($formattedParent) - ->setAudienceList($audienceList); - $response = $gapicClient->createAudienceListAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1alpha.AlphaAnalyticsData/CreateAudienceList', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAudienceList(); - $this->assertProtobufEquals($audienceList, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceListTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php deleted file mode 100644 index 63b4a29d4d8e..000000000000 Binary files a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php deleted file mode 100644 index 7b7cb5a4efae..000000000000 Binary files a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php and /dev/null differ diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceDimension.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceDimension.php deleted file mode 100644 index 52a8bdc010d8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceDimension.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1beta.AudienceDimension - */ -class AudienceDimension extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * Optional. The API name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) - * for the list of dimension names. - * - * Generated from protobuf field string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceDimensionValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceDimensionValue.php deleted file mode 100644 index 8681ff01f47f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceDimensionValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.AudienceDimensionValue - */ -class AudienceDimensionValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Value as a string if the dimension type is a string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->readOneof(1); - } - - public function hasValue() - { - return $this->hasOneof(1); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExport.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExport.php deleted file mode 100644 index 3630d8dfb88d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExport.php +++ /dev/null @@ -1,473 +0,0 @@ -google.analytics.data.v1beta.AudienceExport - */ -class AudienceExport extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The audience export resource name assigned during - * creation. This resource name identifies this `AudienceExport`. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience = ''; - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $audience_display_name = ''; - /** - * Required. The dimensions requested and displayed in the query response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $dimensions; - /** - * Output only. The current state for this AudienceExport. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = null; - /** - * Output only. The time when CreateAudienceExport was called and the - * AudienceExport began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $begin_creating_time = null; - /** - * Output only. The total quota tokens charged during creation of the - * AudienceExport. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceExport - * enters the `ACTIVE` or `FAILED` states. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creation_quota_tokens_charged = 0; - /** - * Output only. The total number of rows in the AudienceExport result. - * - * Generated from protobuf field optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $row_count = null; - /** - * Output only. Error message is populated when an audience export fails - * during creation. A common reason for such a failure is quota exhaustion. - * - * Generated from protobuf field optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_message = null; - /** - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * - * Generated from protobuf field optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $percentage_completed = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The audience export resource name assigned during - * creation. This resource name identifies this `AudienceExport`. - * Format: `properties/{property}/audienceExports/{audience_export}` - * @type string $audience - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * @type string $audience_display_name - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * @type array<\Google\Analytics\Data\V1beta\AudienceDimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * Required. The dimensions requested and displayed in the query response. - * @type int $state - * Output only. The current state for this AudienceExport. - * @type \Google\Protobuf\Timestamp $begin_creating_time - * Output only. The time when CreateAudienceExport was called and the - * AudienceExport began the `CREATING` state. - * @type int $creation_quota_tokens_charged - * Output only. The total quota tokens charged during creation of the - * AudienceExport. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceExport - * enters the `ACTIVE` or `FAILED` states. - * @type int $row_count - * Output only. The total number of rows in the AudienceExport result. - * @type string $error_message - * Output only. Error message is populated when an audience export fails - * during creation. A common reason for such a failure is quota exhaustion. - * @type float $percentage_completed - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The audience export resource name assigned during - * creation. This resource name identifies this `AudienceExport`. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The audience export resource name assigned during - * creation. This resource name identifies this `AudienceExport`. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAudience() - { - return $this->audience; - } - - /** - * Required. The audience resource name. This resource name identifies the - * audience being listed and is shared between the Analytics Data & Admin - * APIs. - * Format: `properties/{property}/audiences/{audience}` - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkString($var, True); - $this->audience = $var; - - return $this; - } - - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAudienceDisplayName() - { - return $this->audience_display_name; - } - - /** - * Output only. The descriptive display name for this audience. For example, - * "Purchasers". - * - * Generated from protobuf field string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAudienceDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->audience_display_name = $var; - - return $this; - } - - /** - * Required. The dimensions requested and displayed in the query response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Required. The dimensions requested and displayed in the query response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Analytics\Data\V1beta\AudienceDimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\AudienceDimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * Output only. The current state for this AudienceExport. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return isset($this->state) ? $this->state : 0; - } - - public function hasState() - { - return isset($this->state); - } - - public function clearState() - { - unset($this->state); - } - - /** - * Output only. The current state for this AudienceExport. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\AudienceExport\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The time when CreateAudienceExport was called and the - * AudienceExport began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBeginCreatingTime() - { - return $this->begin_creating_time; - } - - public function hasBeginCreatingTime() - { - return isset($this->begin_creating_time); - } - - public function clearBeginCreatingTime() - { - unset($this->begin_creating_time); - } - - /** - * Output only. The time when CreateAudienceExport was called and the - * AudienceExport began the `CREATING` state. - * - * Generated from protobuf field optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBeginCreatingTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->begin_creating_time = $var; - - return $this; - } - - /** - * Output only. The total quota tokens charged during creation of the - * AudienceExport. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceExport - * enters the `ACTIVE` or `FAILED` states. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCreationQuotaTokensCharged() - { - return $this->creation_quota_tokens_charged; - } - - /** - * Output only. The total quota tokens charged during creation of the - * AudienceExport. Because this token count is based on activity from the - * `CREATING` state, this tokens charged will be fixed once an AudienceExport - * enters the `ACTIVE` or `FAILED` states. - * - * Generated from protobuf field int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCreationQuotaTokensCharged($var) - { - GPBUtil::checkInt32($var); - $this->creation_quota_tokens_charged = $var; - - return $this; - } - - /** - * Output only. The total number of rows in the AudienceExport result. - * - * Generated from protobuf field optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRowCount() - { - return isset($this->row_count) ? $this->row_count : 0; - } - - public function hasRowCount() - { - return isset($this->row_count); - } - - public function clearRowCount() - { - unset($this->row_count); - } - - /** - * Output only. The total number of rows in the AudienceExport result. - * - * Generated from protobuf field optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * Output only. Error message is populated when an audience export fails - * during creation. A common reason for such a failure is quota exhaustion. - * - * Generated from protobuf field optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getErrorMessage() - { - return isset($this->error_message) ? $this->error_message : ''; - } - - public function hasErrorMessage() - { - return isset($this->error_message); - } - - public function clearErrorMessage() - { - unset($this->error_message); - } - - /** - * Output only. Error message is populated when an audience export fails - * during creation. A common reason for such a failure is quota exhaustion. - * - * Generated from protobuf field optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - - /** - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * - * Generated from protobuf field optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPercentageCompleted() - { - return isset($this->percentage_completed) ? $this->percentage_completed : 0.0; - } - - public function hasPercentageCompleted() - { - return isset($this->percentage_completed); - } - - public function clearPercentageCompleted() - { - unset($this->percentage_completed); - } - - /** - * Output only. The percentage completed for this audience export ranging - * between 0 to 100. - * - * Generated from protobuf field optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPercentageCompleted($var) - { - GPBUtil::checkDouble($var); - $this->percentage_completed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExport/State.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExport/State.php deleted file mode 100644 index 334e8a4212f9..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExport/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.AudienceExport.State - */ -class State -{ - /** - * Unspecified state will never be used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The AudienceExport is currently creating and will be available in the - * future. Creating occurs immediately after the CreateAudienceExport call. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The AudienceExport is fully created and ready for querying. An - * AudienceExport is updated to active asynchronously from a request; this - * occurs some time (for example 15 minutes) after the initial create call. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The AudienceExport failed to be created. It is possible that - * re-requesting this audience export will succeed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - ]; - - 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(State::class, \Google\Analytics\Data\V1beta\AudienceExport_State::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExportMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExportMetadata.php deleted file mode 100644 index 1b70d333184c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceExportMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.analytics.data.v1beta.AudienceExportMetadata - */ -class AudienceExportMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceRow.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceRow.php deleted file mode 100644 index e30895ff219c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/AudienceRow.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.data.v1beta.AudienceRow - */ -class AudienceRow extends \Google\Protobuf\Internal\Message -{ - /** - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1; - */ - private $dimension_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\AudienceDimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * Each dimension value attribute for an audience user. One dimension value - * will be added for each dimension column requested. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Data\V1beta\AudienceDimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\AudienceDimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsRequest.php deleted file mode 100644 index 1d487d14e748..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.BatchRunPivotReportsRequest - */ -class BatchRunPivotReportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\RunPivotReportRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - * @param array<\Google\Analytics\Data\V1beta\RunPivotReportRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunPivotReportRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php deleted file mode 100644 index 3b7abe9c8acf..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.data.v1beta.BatchRunPivotReportsResponse - */ -class BatchRunPivotReportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Individual responses. Each response has a separate pivot report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - private $pivot_reports; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 2; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\RunPivotReportResponse>|\Google\Protobuf\Internal\RepeatedField $pivot_reports - * Individual responses. Each response has a separate pivot report request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Individual responses. Each response has a separate pivot report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotReports() - { - return $this->pivot_reports; - } - - /** - * Individual responses. Each response has a separate pivot report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - * @param array<\Google\Analytics\Data\V1beta\RunPivotReportResponse>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunPivotReportResponse::class); - $this->pivot_reports = $arr; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php deleted file mode 100644 index 5eebae015a47..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.BatchRunReportsRequest - */ -class BatchRunReportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\RunReportRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - * @param array<\Google\Analytics\Data\V1beta\RunReportRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunReportRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php deleted file mode 100644 index f45db6b80c2d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.data.v1beta.BatchRunReportsResponse - */ -class BatchRunReportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Individual responses. Each response has a separate report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - private $reports; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 2; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\RunReportResponse>|\Google\Protobuf\Internal\RepeatedField $reports - * Individual responses. Each response has a separate report request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Individual responses. Each response has a separate report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReports() - { - return $this->reports; - } - - /** - * Individual responses. Each response has a separate report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - * @param array<\Google\Analytics\Data\V1beta\RunReportResponse>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunReportResponse::class); - $this->reports = $arr; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php deleted file mode 100644 index dffa0b43fe75..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.analytics.data.v1beta.CheckCompatibilityRequest - */ -class CheckCompatibilityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - protected $metric_filter = null; - /** - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - */ - protected $compatibility_filter = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * @type int $compatibility_filter - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * @return int - */ - public function getCompatibilityFilter() - { - return $this->compatibility_filter; - } - - /** - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * @param int $var - * @return $this - */ - public function setCompatibilityFilter($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); - $this->compatibility_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php deleted file mode 100644 index 09d73dc1bcd8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.data.v1beta.CheckCompatibilityResponse - */ -class CheckCompatibilityResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The compatibility of each dimension. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - */ - private $dimension_compatibilities; - /** - * The compatibility of each metric. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - */ - private $metric_compatibilities; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionCompatibility>|\Google\Protobuf\Internal\RepeatedField $dimension_compatibilities - * The compatibility of each dimension. - * @type array<\Google\Analytics\Data\V1beta\MetricCompatibility>|\Google\Protobuf\Internal\RepeatedField $metric_compatibilities - * The compatibility of each metric. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * The compatibility of each dimension. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionCompatibilities() - { - return $this->dimension_compatibilities; - } - - /** - * The compatibility of each dimension. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionCompatibility>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionCompatibilities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionCompatibility::class); - $this->dimension_compatibilities = $arr; - - return $this; - } - - /** - * The compatibility of each metric. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricCompatibilities() - { - return $this->metric_compatibilities; - } - - /** - * The compatibility of each metric. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricCompatibility>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricCompatibilities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricCompatibility::class); - $this->metric_compatibilities = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php deleted file mode 100644 index 2af25ee8e361..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php +++ /dev/null @@ -1,215 +0,0 @@ -google.analytics.data.v1beta.Cohort - */ -class Cohort extends \Google\Protobuf\Internal\Message -{ - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - */ - protected $dimension = ''; - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; - */ - protected $date_range = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * @type string $dimension - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * @type \Google\Analytics\Data\V1beta\DateRange $date_range - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * 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; - } - - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - * @return string - */ - public function getDimension() - { - return $this->dimension; - } - - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - * @param string $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkString($var, True); - $this->dimension = $var; - - return $this; - } - - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; - * @return \Google\Analytics\Data\V1beta\DateRange|null - */ - public function getDateRange() - { - return $this->date_range; - } - - public function hasDateRange() - { - return isset($this->date_range); - } - - public function clearDateRange() - { - unset($this->date_range); - } - - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; - * @param \Google\Analytics\Data\V1beta\DateRange $var - * @return $this - */ - public function setDateRange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DateRange::class); - $this->date_range = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php deleted file mode 100644 index 188313861746..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.data.v1beta.CohortReportSettings - */ -class CohortReportSettings extends \Google\Protobuf\Internal\Message -{ - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - */ - protected $accumulate = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $accumulate - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - * @return bool - */ - public function getAccumulate() - { - return $this->accumulate; - } - - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - * @param bool $var - * @return $this - */ - public function setAccumulate($var) - { - GPBUtil::checkBool($var); - $this->accumulate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php deleted file mode 100644 index 3fb245a459c2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.data.v1beta.CohortSpec - */ -class CohortSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - private $cohorts; - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - protected $cohorts_range = null; - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - protected $cohort_report_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\Cohort>|\Google\Protobuf\Internal\RepeatedField $cohorts - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * @type \Google\Analytics\Data\V1beta\CohortsRange $cohorts_range - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * @type \Google\Analytics\Data\V1beta\CohortReportSettings $cohort_report_settings - * Optional settings for a cohort report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCohorts() - { - return $this->cohorts; - } - - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - * @param array<\Google\Analytics\Data\V1beta\Cohort>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCohorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Cohort::class); - $this->cohorts = $arr; - - return $this; - } - - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * @return \Google\Analytics\Data\V1beta\CohortsRange|null - */ - public function getCohortsRange() - { - return $this->cohorts_range; - } - - public function hasCohortsRange() - { - return isset($this->cohorts_range); - } - - public function clearCohortsRange() - { - unset($this->cohorts_range); - } - - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * @param \Google\Analytics\Data\V1beta\CohortsRange $var - * @return $this - */ - public function setCohortsRange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortsRange::class); - $this->cohorts_range = $var; - - return $this; - } - - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * @return \Google\Analytics\Data\V1beta\CohortReportSettings|null - */ - public function getCohortReportSettings() - { - return $this->cohort_report_settings; - } - - public function hasCohortReportSettings() - { - return isset($this->cohort_report_settings); - } - - public function clearCohortReportSettings() - { - unset($this->cohort_report_settings); - } - - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * @param \Google\Analytics\Data\V1beta\CohortReportSettings $var - * @return $this - */ - public function setCohortReportSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortReportSettings::class); - $this->cohort_report_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php deleted file mode 100644 index 2877e4dbc3a4..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.data.v1beta.CohortsRange - */ -class CohortsRange extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - */ - protected $granularity = 0; - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - */ - protected $start_offset = 0; - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - */ - protected $end_offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $granularity - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * @type int $start_offset - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * @type int $end_offset - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * @return int - */ - public function getGranularity() - { - return $this->granularity; - } - - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * @param int $var - * @return $this - */ - public function setGranularity($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\CohortsRange\Granularity::class); - $this->granularity = $var; - - return $this; - } - - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - * @return int - */ - public function getStartOffset() - { - return $this->start_offset; - } - - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - * @param int $var - * @return $this - */ - public function setStartOffset($var) - { - GPBUtil::checkInt32($var); - $this->start_offset = $var; - - return $this; - } - - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - * @return int - */ - public function getEndOffset() - { - return $this->end_offset; - } - - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - * @param int $var - * @return $this - */ - public function setEndOffset($var) - { - GPBUtil::checkInt32($var); - $this->end_offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php deleted file mode 100644 index 541e282e3162..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1beta.CohortsRange.Granularity - */ -class Granularity -{ - /** - * Should never be specified. - * - * Generated from protobuf enum GRANULARITY_UNSPECIFIED = 0; - */ - const GRANULARITY_UNSPECIFIED = 0; - /** - * Daily granularity. Commonly used if the cohort's `dateRange` is a single - * day and the request contains `cohortNthDay`. - * - * Generated from protobuf enum DAILY = 1; - */ - const DAILY = 1; - /** - * Weekly granularity. Commonly used if the cohort's `dateRange` is a week - * in duration (starting on Sunday and ending on Saturday) and the request - * contains `cohortNthWeek`. - * - * Generated from protobuf enum WEEKLY = 2; - */ - const WEEKLY = 2; - /** - * Monthly granularity. Commonly used if the cohort's `dateRange` is a month - * in duration and the request contains `cohortNthMonth`. - * - * Generated from protobuf enum MONTHLY = 3; - */ - const MONTHLY = 3; - - private static $valueToName = [ - self::GRANULARITY_UNSPECIFIED => 'GRANULARITY_UNSPECIFIED', - self::DAILY => 'DAILY', - self::WEEKLY => 'WEEKLY', - self::MONTHLY => 'MONTHLY', - ]; - - 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(Granularity::class, \Google\Analytics\Data\V1beta\CohortsRange_Granularity::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Comparison.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Comparison.php deleted file mode 100644 index 7f5eac6903ec..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Comparison.php +++ /dev/null @@ -1,164 +0,0 @@ -google.analytics.data.v1beta.Comparison - */ -class Comparison extends \Google\Protobuf\Internal\Message -{ - /** - * Each comparison produces separate rows in the response. In the response, - * this comparison is identified by this name. If name is unspecified, we will - * use the saved comparisons display name. - * - * Generated from protobuf field optional string name = 1; - */ - protected $name = null; - protected $one_comparison; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Each comparison produces separate rows in the response. In the response, - * this comparison is identified by this name. If name is unspecified, we will - * use the saved comparisons display name. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * A basic comparison. - * @type string $comparison - * A saved comparison identified by the comparison's resource name. - * For example, 'comparisons/1234'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Each comparison produces separate rows in the response. In the response, - * this comparison is identified by this name. If name is unspecified, we will - * use the saved comparisons display name. - * - * Generated from protobuf field optional string name = 1; - * @return string - */ - public function getName() - { - return isset($this->name) ? $this->name : ''; - } - - public function hasName() - { - return isset($this->name); - } - - public function clearName() - { - unset($this->name); - } - - /** - * Each comparison produces separate rows in the response. In the response, - * this comparison is identified by this name. If name is unspecified, we will - * use the saved comparisons display name. - * - * Generated from protobuf field optional string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A basic comparison. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 2; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->readOneof(2); - } - - public function hasDimensionFilter() - { - return $this->hasOneof(2); - } - - /** - * A basic comparison. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 2; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A saved comparison identified by the comparison's resource name. - * For example, 'comparisons/1234'. - * - * Generated from protobuf field string comparison = 3; - * @return string - */ - public function getComparison() - { - return $this->readOneof(3); - } - - public function hasComparison() - { - return $this->hasOneof(3); - } - - /** - * A saved comparison identified by the comparison's resource name. - * For example, 'comparisons/1234'. - * - * Generated from protobuf field string comparison = 3; - * @param string $var - * @return $this - */ - public function setComparison($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneComparison() - { - return $this->whichOneof("one_comparison"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ComparisonMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ComparisonMetadata.php deleted file mode 100644 index 608a011a3e95..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ComparisonMetadata.php +++ /dev/null @@ -1,139 +0,0 @@ -google.analytics.data.v1beta.ComparisonMetadata - */ -class ComparisonMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * This comparison's resource name. Useable in [Comparison](#Comparison)'s - * `comparison` field. For example, 'comparisons/1234'. - * - * Generated from protobuf field string api_name = 1; - */ - protected $api_name = ''; - /** - * This comparison's name within the Google Analytics user interface. - * - * Generated from protobuf field string ui_name = 2; - */ - protected $ui_name = ''; - /** - * This comparison's description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $api_name - * This comparison's resource name. Useable in [Comparison](#Comparison)'s - * `comparison` field. For example, 'comparisons/1234'. - * @type string $ui_name - * This comparison's name within the Google Analytics user interface. - * @type string $description - * This comparison's description. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * This comparison's resource name. Useable in [Comparison](#Comparison)'s - * `comparison` field. For example, 'comparisons/1234'. - * - * Generated from protobuf field string api_name = 1; - * @return string - */ - public function getApiName() - { - return $this->api_name; - } - - /** - * This comparison's resource name. Useable in [Comparison](#Comparison)'s - * `comparison` field. For example, 'comparisons/1234'. - * - * Generated from protobuf field string api_name = 1; - * @param string $var - * @return $this - */ - public function setApiName($var) - { - GPBUtil::checkString($var, True); - $this->api_name = $var; - - return $this; - } - - /** - * This comparison's name within the Google Analytics user interface. - * - * Generated from protobuf field string ui_name = 2; - * @return string - */ - public function getUiName() - { - return $this->ui_name; - } - - /** - * This comparison's name within the Google Analytics user interface. - * - * Generated from protobuf field string ui_name = 2; - * @param string $var - * @return $this - */ - public function setUiName($var) - { - GPBUtil::checkString($var, True); - $this->ui_name = $var; - - return $this; - } - - /** - * This comparison's description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * This comparison's description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php deleted file mode 100644 index 6a97b7928ec2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php +++ /dev/null @@ -1,63 +0,0 @@ -google.analytics.data.v1beta.Compatibility - */ -class Compatibility -{ - /** - * Unspecified compatibility. - * - * Generated from protobuf enum COMPATIBILITY_UNSPECIFIED = 0; - */ - const COMPATIBILITY_UNSPECIFIED = 0; - /** - * The dimension or metric is compatible. This dimension or metric can be - * successfully added to a report. - * - * Generated from protobuf enum COMPATIBLE = 1; - */ - const COMPATIBLE = 1; - /** - * The dimension or metric is incompatible. This dimension or metric cannot be - * successfully added to a report. - * - * Generated from protobuf enum INCOMPATIBLE = 2; - */ - const INCOMPATIBLE = 2; - - private static $valueToName = [ - self::COMPATIBILITY_UNSPECIFIED => 'COMPATIBILITY_UNSPECIFIED', - self::COMPATIBLE => 'COMPATIBLE', - self::INCOMPATIBLE => 'INCOMPATIBLE', - ]; - - 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/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CreateAudienceExportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CreateAudienceExportRequest.php deleted file mode 100644 index 5fbfebf75fde..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CreateAudienceExportRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.analytics.data.v1beta.CreateAudienceExportRequest - */ -class CreateAudienceExportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this audience export will be created. - * Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The audience export to create. - * - * Generated from protobuf field .google.analytics.data.v1beta.AudienceExport audience_export = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $audience_export = null; - - /** - * @param string $parent Required. The parent resource where this audience export will be created. - * Format: `properties/{property}` - * Please see {@see BetaAnalyticsDataClient::propertyName()} for help formatting this field. - * @param \Google\Analytics\Data\V1beta\AudienceExport $audienceExport Required. The audience export to create. - * - * @return \Google\Analytics\Data\V1beta\CreateAudienceExportRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Analytics\Data\V1beta\AudienceExport $audienceExport): self - { - return (new self()) - ->setParent($parent) - ->setAudienceExport($audienceExport); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this audience export will be created. - * Format: `properties/{property}` - * @type \Google\Analytics\Data\V1beta\AudienceExport $audience_export - * Required. The audience export to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this audience export will be created. - * Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this audience export will be created. - * Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The audience export to create. - * - * Generated from protobuf field .google.analytics.data.v1beta.AudienceExport audience_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Analytics\Data\V1beta\AudienceExport|null - */ - public function getAudienceExport() - { - return $this->audience_export; - } - - public function hasAudienceExport() - { - return isset($this->audience_export); - } - - public function clearAudienceExport() - { - unset($this->audience_export); - } - - /** - * Required. The audience export to create. - * - * Generated from protobuf field .google.analytics.data.v1beta.AudienceExport audience_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Analytics\Data\V1beta\AudienceExport $var - * @return $this - */ - public function setAudienceExport($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\AudienceExport::class); - $this->audience_export = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php deleted file mode 100644 index 9c0ef0525f64..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php +++ /dev/null @@ -1,172 +0,0 @@ -google.analytics.data.v1beta.DateRange - */ -class DateRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - */ - protected $start_date = ''; - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - */ - protected $end_date = ''; - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_date - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * @type string $end_date - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * @type string $name - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - * @param string $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkString($var, True); - $this->start_date = $var; - - return $this; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - * @param string $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkString($var, True); - $this->end_date = $var; - - return $this; - } - - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php deleted file mode 100644 index 4fe7c3aed86d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php +++ /dev/null @@ -1,190 +0,0 @@ -google.analytics.data.v1beta.Dimension - */ -class Dimension extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - protected $dimension_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * @type \Google\Analytics\Data\V1beta\DimensionExpression $dimension_expression - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) - * for the list of dimension names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) - * for the list of dimension names supported by the `runFunnelReport` - * method. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * 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; - } - - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * @return \Google\Analytics\Data\V1beta\DimensionExpression|null - */ - public function getDimensionExpression() - { - return $this->dimension_expression; - } - - public function hasDimensionExpression() - { - return isset($this->dimension_expression); - } - - public function clearDimensionExpression() - { - unset($this->dimension_expression); - } - - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * @param \Google\Analytics\Data\V1beta\DimensionExpression $var - * @return $this - */ - public function setDimensionExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression::class); - $this->dimension_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php deleted file mode 100644 index ff6d5ae0fc6c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.DimensionCompatibility - */ -class DimensionCompatibility extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - protected $dimension_metadata = null; - /** - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - */ - protected $compatibility = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\DimensionMetadata $dimension_metadata - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * @type int $compatibility - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * @return \Google\Analytics\Data\V1beta\DimensionMetadata|null - */ - public function getDimensionMetadata() - { - return $this->dimension_metadata; - } - - public function hasDimensionMetadata() - { - return isset($this->dimension_metadata); - } - - public function clearDimensionMetadata() - { - unset($this->dimension_metadata); - } - - /** - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * @param \Google\Analytics\Data\V1beta\DimensionMetadata $var - * @return $this - */ - public function setDimensionMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionMetadata::class); - $this->dimension_metadata = $var; - - return $this; - } - - /** - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @return int - */ - public function getCompatibility() - { - return isset($this->compatibility) ? $this->compatibility : 0; - } - - public function hasCompatibility() - { - return isset($this->compatibility); - } - - public function clearCompatibility() - { - unset($this->compatibility); - } - - /** - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @param int $var - * @return $this - */ - public function setCompatibility($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); - $this->compatibility = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php deleted file mode 100644 index c7819e050c8b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php +++ /dev/null @@ -1,147 +0,0 @@ -google.analytics.data.v1beta.DimensionExpression - */ -class DimensionExpression extends \Google\Protobuf\Internal\Message -{ - protected $one_expression; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $lower_case - * Used to convert a dimension value to lower case. - * @type \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $upper_case - * Used to convert a dimension value to upper case. - * @type \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression $concatenate - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Used to convert a dimension value to lower case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * @return \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null - */ - public function getLowerCase() - { - return $this->readOneof(4); - } - - public function hasLowerCase() - { - return $this->hasOneof(4); - } - - /** - * Used to convert a dimension value to lower case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * @param \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $var - * @return $this - */ - public function setLowerCase($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Used to convert a dimension value to upper case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * @return \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null - */ - public function getUpperCase() - { - return $this->readOneof(5); - } - - public function hasUpperCase() - { - return $this->hasOneof(5); - } - - /** - * Used to convert a dimension value to upper case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * @param \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $var - * @return $this - */ - public function setUpperCase($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * @return \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression|null - */ - public function getConcatenate() - { - return $this->readOneof(6); - } - - public function hasConcatenate() - { - return $this->hasOneof(6); - } - - /** - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * @param \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression $var - * @return $this - */ - public function setConcatenate($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneExpression() - { - return $this->whichOneof("one_expression"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php deleted file mode 100644 index af1e679e55d1..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php +++ /dev/null @@ -1,74 +0,0 @@ -google.analytics.data.v1beta.DimensionExpression.CaseExpression - */ -class CaseExpression extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CaseExpression::class, \Google\Analytics\Data\V1beta\DimensionExpression_CaseExpression::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php deleted file mode 100644 index 9d7a101bddd9..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php +++ /dev/null @@ -1,128 +0,0 @@ -google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - */ -class ConcatenateExpression extends \Google\Protobuf\Internal\Message -{ - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - */ - private $dimension_names; - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - */ - protected $delimiter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $dimension_names - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * @type string $delimiter - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionNames() - { - return $this->dimension_names; - } - - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->dimension_names = $arr; - - return $this; - } - - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConcatenateExpression::class, \Google\Analytics\Data\V1beta\DimensionExpression_ConcatenateExpression::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php deleted file mode 100644 index fe4f90d2a87c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.data.v1beta.DimensionHeader - */ -class DimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension's name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The dimension's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension's name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The dimension's name. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php deleted file mode 100644 index 510ff8718583..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php +++ /dev/null @@ -1,277 +0,0 @@ -google.analytics.data.v1beta.DimensionMetadata - */ -class DimensionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * - * Generated from protobuf field string api_name = 1; - */ - protected $api_name = ''; - /** - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * - * Generated from protobuf field string ui_name = 2; - */ - protected $ui_name = ''; - /** - * Description of how this dimension is used and calculated. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - */ - private $deprecated_api_names; - /** - * True if the dimension is custom to this property. This includes user, - * event, & item scoped custom dimensions; to learn more about custom - * dimensions, see https://support.google.com/analytics/answer/14240153. This - * also include custom channel groups; to learn more about custom channel - * groups, see https://support.google.com/analytics/answer/13051316. - * - * Generated from protobuf field bool custom_definition = 5; - */ - protected $custom_definition = false; - /** - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 7; - */ - protected $category = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $api_name - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * @type string $ui_name - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * @type string $description - * Description of how this dimension is used and calculated. - * @type array|\Google\Protobuf\Internal\RepeatedField $deprecated_api_names - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * @type bool $custom_definition - * True if the dimension is custom to this property. This includes user, - * event, & item scoped custom dimensions; to learn more about custom - * dimensions, see https://support.google.com/analytics/answer/14240153. This - * also include custom channel groups; to learn more about custom channel - * groups, see https://support.google.com/analytics/answer/13051316. - * @type string $category - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * - * Generated from protobuf field string api_name = 1; - * @return string - */ - public function getApiName() - { - return $this->api_name; - } - - /** - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * - * Generated from protobuf field string api_name = 1; - * @param string $var - * @return $this - */ - public function setApiName($var) - { - GPBUtil::checkString($var, True); - $this->api_name = $var; - - return $this; - } - - /** - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * - * Generated from protobuf field string ui_name = 2; - * @return string - */ - public function getUiName() - { - return $this->ui_name; - } - - /** - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * - * Generated from protobuf field string ui_name = 2; - * @param string $var - * @return $this - */ - public function setUiName($var) - { - GPBUtil::checkString($var, True); - $this->ui_name = $var; - - return $this; - } - - /** - * Description of how this dimension is used and calculated. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of how this dimension is used and calculated. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeprecatedApiNames() - { - return $this->deprecated_api_names; - } - - /** - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeprecatedApiNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->deprecated_api_names = $arr; - - return $this; - } - - /** - * True if the dimension is custom to this property. This includes user, - * event, & item scoped custom dimensions; to learn more about custom - * dimensions, see https://support.google.com/analytics/answer/14240153. This - * also include custom channel groups; to learn more about custom channel - * groups, see https://support.google.com/analytics/answer/13051316. - * - * Generated from protobuf field bool custom_definition = 5; - * @return bool - */ - public function getCustomDefinition() - { - return $this->custom_definition; - } - - /** - * True if the dimension is custom to this property. This includes user, - * event, & item scoped custom dimensions; to learn more about custom - * dimensions, see https://support.google.com/analytics/answer/14240153. This - * also include custom channel groups; to learn more about custom channel - * groups, see https://support.google.com/analytics/answer/13051316. - * - * Generated from protobuf field bool custom_definition = 5; - * @param bool $var - * @return $this - */ - public function setCustomDefinition($var) - { - GPBUtil::checkBool($var); - $this->custom_definition = $var; - - return $this; - } - - /** - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 7; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 7; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php deleted file mode 100644 index 7e0d684c9827..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.DimensionValue - */ -class DimensionValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Value as a string if the dimension type is a string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->readOneof(1); - } - - public function hasValue() - { - return $this->hasOneof(1); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php deleted file mode 100644 index 01c955105c45..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php +++ /dev/null @@ -1,224 +0,0 @@ -google.analytics.data.v1beta.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * @type \Google\Analytics\Data\V1beta\Filter\StringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Data\V1beta\Filter\InListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Data\V1beta\Filter\NumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Data\V1beta\Filter\BetweenFilter $between_filter - * A filter for two values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * @return \Google\Analytics\Data\V1beta\Filter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(3); - } - - public function hasStringFilter() - { - return $this->hasOneof(3); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * @param \Google\Analytics\Data\V1beta\Filter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\StringFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * @return \Google\Analytics\Data\V1beta\Filter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(4); - } - - public function hasInListFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * @param \Google\Analytics\Data\V1beta\Filter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\InListFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * @return \Google\Analytics\Data\V1beta\Filter\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(5); - } - - public function hasNumericFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * @param \Google\Analytics\Data\V1beta\Filter\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\NumericFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * @return \Google\Analytics\Data\V1beta\Filter\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(6); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(6); - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * @param \Google\Analytics\Data\V1beta\Filter\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\BetweenFilter::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php deleted file mode 100644 index 39b91d0e3f69..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php +++ /dev/null @@ -1,124 +0,0 @@ -google.analytics.data.v1beta.Filter.BetweenFilter - */ -class BetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - protected $from_value = null; - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\NumericValue $from_value - * Begins with this number. - * @type \Google\Analytics\Data\V1beta\NumericValue $to_value - * Ends with this number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; - * @return \Google\Analytics\Data\V1beta\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; - * @param \Google\Analytics\Data\V1beta\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; - * @return \Google\Analytics\Data\V1beta\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; - * @param \Google\Analytics\Data\V1beta\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BetweenFilter::class, \Google\Analytics\Data\V1beta\Filter_BetweenFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php deleted file mode 100644 index cad215417f89..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.data.v1beta.Filter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The list of string values. - * Must be non-empty. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Data\V1beta\Filter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php deleted file mode 100644 index cd95e5399a28..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.data.v1beta.Filter.NumericFilter - */ -class NumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - */ - protected $operation = 0; - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * The operation type for this filter. - * @type \Google\Analytics\Data\V1beta\NumericValue $value - * A numeric value or a date value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Filter\NumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; - * @return \Google\Analytics\Data\V1beta\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; - * @param \Google\Analytics\Data\V1beta\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericFilter::class, \Google\Analytics\Data\V1beta\Filter_NumericFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php deleted file mode 100644 index 4633829403b1..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.data.v1beta.Filter.NumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; - */ - const LESS_THAN_OR_EQUAL = 3; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; - */ - const GREATER_THAN_OR_EQUAL = 5; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Data\V1beta\Filter_NumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php deleted file mode 100644 index f4feeb9aff3e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php +++ /dev/null @@ -1,138 +0,0 @@ -google.analytics.data.v1beta.Filter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - */ - protected $match_type = 0; - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * The match type for this filter. - * @type string $value - * The string value used for the matching. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Filter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Data\V1beta\Filter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php deleted file mode 100644 index 4e40f9c5c3b5..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.data.v1beta.Filter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full match for the regular expression with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial match for the regular expression with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Data\V1beta\Filter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php deleted file mode 100644 index 99e554d09c3e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.data.v1beta.FilterExpression - */ -class FilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\FilterExpressionList $and_group - * The FilterExpressions in and_group have an AND relationship. - * @type \Google\Analytics\Data\V1beta\FilterExpressionList $or_group - * The FilterExpressions in or_group have an OR relationship. - * @type \Google\Analytics\Data\V1beta\FilterExpression $not_expression - * The FilterExpression is NOT of not_expression. - * @type \Google\Analytics\Data\V1beta\Filter $filter - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The FilterExpressions in and_group have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * @return \Google\Analytics\Data\V1beta\FilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * The FilterExpressions in and_group have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * @param \Google\Analytics\Data\V1beta\FilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The FilterExpressions in or_group have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * @return \Google\Analytics\Data\V1beta\FilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * The FilterExpressions in or_group have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * @param \Google\Analytics\Data\V1beta\FilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter filter = 4; - * @return \Google\Analytics\Data\V1beta\Filter|null - */ - public function getFilter() - { - return $this->readOneof(4); - } - - public function hasFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter filter = 4; - * @param \Google\Analytics\Data\V1beta\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php deleted file mode 100644 index d7eb56f9b25b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1beta.FilterExpressionList - */ -class FilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * A list of filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - * @param array<\Google\Analytics\Data\V1beta\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetAudienceExportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetAudienceExportRequest.php deleted file mode 100644 index 766f05b4bf69..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetAudienceExportRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.analytics.data.v1beta.GetAudienceExportRequest - */ -class GetAudienceExportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The audience export resource name. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The audience export resource name. - * Format: `properties/{property}/audienceExports/{audience_export}` - * Please see {@see BetaAnalyticsDataClient::audienceExportName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1beta\GetAudienceExportRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The audience export resource name. - * Format: `properties/{property}/audienceExports/{audience_export}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The audience export resource name. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * 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 audience export resource name. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * 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/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php deleted file mode 100644 index e2c983e6925f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.data.v1beta.GetMetadataRequest - */ -class GetMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * - * Example: properties/1234/metadata - * - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. Please see - * {@see BetaAnalyticsDataClient::metadataName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1beta\GetMetadataRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * - * 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 metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * - * 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/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ListAudienceExportsRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ListAudienceExportsRequest.php deleted file mode 100644 index 33ef56808673..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ListAudienceExportsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.data.v1beta.ListAudienceExportsRequest - */ -class ListAudienceExportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. All audience exports for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of audience exports to return. The service may - * return fewer than this value. If unspecified, at most 200 audience exports - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAudienceExports` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceExports` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. All audience exports for this property will be listed in the - * response. Format: `properties/{property}` - * Please see {@see BetaAnalyticsDataClient::propertyName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1beta\ListAudienceExportsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. All audience exports for this property will be listed in the - * response. Format: `properties/{property}` - * @type int $page_size - * Optional. The maximum number of audience exports to return. The service may - * return fewer than this value. If unspecified, at most 200 audience exports - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * @type string $page_token - * Optional. A page token, received from a previous `ListAudienceExports` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceExports` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. All audience exports for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. All audience exports for this property will be listed in the - * response. Format: `properties/{property}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of audience exports to return. The service may - * return fewer than this value. If unspecified, at most 200 audience exports - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of audience exports to return. The service may - * return fewer than this value. If unspecified, at most 200 audience exports - * will be returned. The maximum value is 1000 (higher values will be coerced - * to the maximum). - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListAudienceExports` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceExports` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAudienceExports` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAudienceExports` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ListAudienceExportsResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ListAudienceExportsResponse.php deleted file mode 100644 index 36ed768b89fe..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ListAudienceExportsResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.analytics.data.v1beta.ListAudienceExportsResponse - */ -class ListAudienceExportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Each audience export for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceExport audience_exports = 1; - */ - private $audience_exports; - /** - * 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 optional string next_page_token = 2; - */ - protected $next_page_token = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\AudienceExport>|\Google\Protobuf\Internal\RepeatedField $audience_exports - * Each audience export for a property. - * @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\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Each audience export for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceExport audience_exports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudienceExports() - { - return $this->audience_exports; - } - - /** - * Each audience export for a property. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceExport audience_exports = 1; - * @param array<\Google\Analytics\Data\V1beta\AudienceExport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudienceExports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\AudienceExport::class); - $this->audience_exports = $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 optional string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return isset($this->next_page_token) ? $this->next_page_token : ''; - } - - public function hasNextPageToken() - { - return isset($this->next_page_token); - } - - public function clearNextPageToken() - { - unset($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 optional 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/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php deleted file mode 100644 index 9c2bd68ba1aa..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php +++ /dev/null @@ -1,170 +0,0 @@ -google.analytics.data.v1beta.Metadata - */ -class Metadata extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of this metadata. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * The dimension descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - private $dimensions; - /** - * The metric descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - private $metrics; - /** - * The comparison descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4; - */ - private $comparisons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of this metadata. - * @type array<\Google\Analytics\Data\V1beta\DimensionMetadata>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimension descriptions. - * @type array<\Google\Analytics\Data\V1beta\MetricMetadata>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metric descriptions. - * @type array<\Google\Analytics\Data\V1beta\ComparisonMetadata>|\Google\Protobuf\Internal\RepeatedField $comparisons - * The comparison descriptions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of this metadata. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of this metadata. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The dimension descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimension descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionMetadata::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metric descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metric descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricMetadata::class); - $this->metrics = $arr; - - return $this; - } - - /** - * The comparison descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComparisons() - { - return $this->comparisons; - } - - /** - * The comparison descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ComparisonMetadata comparisons = 4; - * @param array<\Google\Analytics\Data\V1beta\ComparisonMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComparisons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\ComparisonMetadata::class); - $this->comparisons = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php deleted file mode 100644 index d58fd9f004d7..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php +++ /dev/null @@ -1,221 +0,0 @@ -google.analytics.data.v1beta.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - */ - protected $expression = ''; - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - */ - protected $invisible = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * @type string $expression - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * @type bool $invisible - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names supported by core reporting methods such - * as `runReport` and `batchRunReports`. See - * [Realtime - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) - * for the list of metric names supported by the `runRealtimeReport` - * method. See - * [Funnel - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) - * for the list of metric names supported by the `runFunnelReport` - * method. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * 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; - } - - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - * @return bool - */ - public function getInvisible() - { - return $this->invisible; - } - - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - * @param bool $var - * @return $this - */ - public function setInvisible($var) - { - GPBUtil::checkBool($var); - $this->invisible = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php deleted file mode 100644 index af5158b37296..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.MetricAggregation - */ -class MetricAggregation -{ - /** - * Unspecified operator. - * - * Generated from protobuf enum METRIC_AGGREGATION_UNSPECIFIED = 0; - */ - const METRIC_AGGREGATION_UNSPECIFIED = 0; - /** - * SUM operator. - * - * Generated from protobuf enum TOTAL = 1; - */ - const TOTAL = 1; - /** - * Minimum operator. - * - * Generated from protobuf enum MINIMUM = 5; - */ - const MINIMUM = 5; - /** - * Maximum operator. - * - * Generated from protobuf enum MAXIMUM = 6; - */ - const MAXIMUM = 6; - /** - * Count operator. - * - * Generated from protobuf enum COUNT = 4; - */ - const COUNT = 4; - - private static $valueToName = [ - self::METRIC_AGGREGATION_UNSPECIFIED => 'METRIC_AGGREGATION_UNSPECIFIED', - self::TOTAL => 'TOTAL', - self::MINIMUM => 'MINIMUM', - self::MAXIMUM => 'MAXIMUM', - self::COUNT => 'COUNT', - ]; - - 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/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php deleted file mode 100644 index f76bff556315..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.MetricCompatibility - */ -class MetricCompatibility extends \Google\Protobuf\Internal\Message -{ - /** - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - protected $metric_metadata = null; - /** - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - */ - protected $compatibility = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\MetricMetadata $metric_metadata - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * @type int $compatibility - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * @return \Google\Analytics\Data\V1beta\MetricMetadata|null - */ - public function getMetricMetadata() - { - return $this->metric_metadata; - } - - public function hasMetricMetadata() - { - return isset($this->metric_metadata); - } - - public function clearMetricMetadata() - { - unset($this->metric_metadata); - } - - /** - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * @param \Google\Analytics\Data\V1beta\MetricMetadata $var - * @return $this - */ - public function setMetricMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\MetricMetadata::class); - $this->metric_metadata = $var; - - return $this; - } - - /** - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @return int - */ - public function getCompatibility() - { - return isset($this->compatibility) ? $this->compatibility : 0; - } - - public function hasCompatibility() - { - return isset($this->compatibility); - } - - public function clearCompatibility() - { - unset($this->compatibility); - } - - /** - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @param int $var - * @return $this - */ - public function setCompatibility($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); - $this->compatibility = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php deleted file mode 100644 index db125c0ae60b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.data.v1beta.MetricHeader - */ -class MetricHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The metric's name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The metric's name. - * @type int $type - * The metric's data type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The metric's name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The metric's name. - * - * 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; - } - - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\MetricType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php deleted file mode 100644 index 9ef96ff2bc10..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php +++ /dev/null @@ -1,395 +0,0 @@ -google.analytics.data.v1beta.MetricMetadata - */ -class MetricMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * - * Generated from protobuf field string api_name = 1; - */ - protected $api_name = ''; - /** - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * - * Generated from protobuf field string ui_name = 2; - */ - protected $ui_name = ''; - /** - * Description of how this metric is used and calculated. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - */ - private $deprecated_api_names; - /** - * The type of this metric. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; - */ - protected $type = 0; - /** - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * - * Generated from protobuf field string expression = 6; - */ - protected $expression = ''; - /** - * True if the metric is a custom metric for this property. - * - * Generated from protobuf field bool custom_definition = 7; - */ - protected $custom_definition = false; - /** - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - */ - private $blocked_reasons; - /** - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 10; - */ - protected $category = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $api_name - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * @type string $ui_name - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * @type string $description - * Description of how this metric is used and calculated. - * @type array|\Google\Protobuf\Internal\RepeatedField $deprecated_api_names - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * @type int $type - * The type of this metric. - * @type string $expression - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * @type bool $custom_definition - * True if the metric is a custom metric for this property. - * @type array|\Google\Protobuf\Internal\RepeatedField $blocked_reasons - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * @type string $category - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * - * Generated from protobuf field string api_name = 1; - * @return string - */ - public function getApiName() - { - return $this->api_name; - } - - /** - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * - * Generated from protobuf field string api_name = 1; - * @param string $var - * @return $this - */ - public function setApiName($var) - { - GPBUtil::checkString($var, True); - $this->api_name = $var; - - return $this; - } - - /** - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * - * Generated from protobuf field string ui_name = 2; - * @return string - */ - public function getUiName() - { - return $this->ui_name; - } - - /** - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * - * Generated from protobuf field string ui_name = 2; - * @param string $var - * @return $this - */ - public function setUiName($var) - { - GPBUtil::checkString($var, True); - $this->ui_name = $var; - - return $this; - } - - /** - * Description of how this metric is used and calculated. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of how this metric is used and calculated. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeprecatedApiNames() - { - return $this->deprecated_api_names; - } - - /** - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeprecatedApiNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->deprecated_api_names = $arr; - - return $this; - } - - /** - * The type of this metric. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of this metric. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\MetricType::class); - $this->type = $var; - - return $this; - } - - /** - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * - * Generated from protobuf field string expression = 6; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * - * Generated from protobuf field string expression = 6; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * True if the metric is a custom metric for this property. - * - * Generated from protobuf field bool custom_definition = 7; - * @return bool - */ - public function getCustomDefinition() - { - return $this->custom_definition; - } - - /** - * True if the metric is a custom metric for this property. - * - * Generated from protobuf field bool custom_definition = 7; - * @param bool $var - * @return $this - */ - public function setCustomDefinition($var) - { - GPBUtil::checkBool($var); - $this->custom_definition = $var; - - return $this; - } - - /** - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlockedReasons() - { - return $this->blocked_reasons; - } - - /** - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlockedReasons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricMetadata\BlockedReason::class); - $this->blocked_reasons = $arr; - - return $this; - } - - /** - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 10; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 10; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php deleted file mode 100644 index 1b6aaf8bdc0e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.data.v1beta.MetricMetadata.BlockedReason - */ -class BlockedReason -{ - /** - * Will never be specified in API response. - * - * Generated from protobuf enum BLOCKED_REASON_UNSPECIFIED = 0; - */ - const BLOCKED_REASON_UNSPECIFIED = 0; - /** - * If present, your access is blocked to revenue related metrics for this - * property, and this metric is revenue related. - * - * Generated from protobuf enum NO_REVENUE_METRICS = 1; - */ - const NO_REVENUE_METRICS = 1; - /** - * If present, your access is blocked to cost related metrics for this - * property, and this metric is cost related. - * - * Generated from protobuf enum NO_COST_METRICS = 2; - */ - const NO_COST_METRICS = 2; - - private static $valueToName = [ - self::BLOCKED_REASON_UNSPECIFIED => 'BLOCKED_REASON_UNSPECIFIED', - self::NO_REVENUE_METRICS => 'NO_REVENUE_METRICS', - self::NO_COST_METRICS => 'NO_COST_METRICS', - ]; - - 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(BlockedReason::class, \Google\Analytics\Data\V1beta\MetricMetadata_BlockedReason::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php deleted file mode 100644 index 641bfa44a620..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php +++ /dev/null @@ -1,131 +0,0 @@ -google.analytics.data.v1beta.MetricType - */ -class MetricType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum METRIC_TYPE_UNSPECIFIED = 0; - */ - const METRIC_TYPE_UNSPECIFIED = 0; - /** - * Integer type. - * - * Generated from protobuf enum TYPE_INTEGER = 1; - */ - const TYPE_INTEGER = 1; - /** - * Floating point type. - * - * Generated from protobuf enum TYPE_FLOAT = 2; - */ - const TYPE_FLOAT = 2; - /** - * A duration of seconds; a special floating point type. - * - * Generated from protobuf enum TYPE_SECONDS = 4; - */ - const TYPE_SECONDS = 4; - /** - * A duration in milliseconds; a special floating point type. - * - * Generated from protobuf enum TYPE_MILLISECONDS = 5; - */ - const TYPE_MILLISECONDS = 5; - /** - * A duration in minutes; a special floating point type. - * - * Generated from protobuf enum TYPE_MINUTES = 6; - */ - const TYPE_MINUTES = 6; - /** - * A duration in hours; a special floating point type. - * - * Generated from protobuf enum TYPE_HOURS = 7; - */ - const TYPE_HOURS = 7; - /** - * A custom metric of standard type; a special floating point type. - * - * Generated from protobuf enum TYPE_STANDARD = 8; - */ - const TYPE_STANDARD = 8; - /** - * An amount of money; a special floating point type. - * - * Generated from protobuf enum TYPE_CURRENCY = 9; - */ - const TYPE_CURRENCY = 9; - /** - * A length in feet; a special floating point type. - * - * Generated from protobuf enum TYPE_FEET = 10; - */ - const TYPE_FEET = 10; - /** - * A length in miles; a special floating point type. - * - * Generated from protobuf enum TYPE_MILES = 11; - */ - const TYPE_MILES = 11; - /** - * A length in meters; a special floating point type. - * - * Generated from protobuf enum TYPE_METERS = 12; - */ - const TYPE_METERS = 12; - /** - * A length in kilometers; a special floating point type. - * - * Generated from protobuf enum TYPE_KILOMETERS = 13; - */ - const TYPE_KILOMETERS = 13; - - private static $valueToName = [ - self::METRIC_TYPE_UNSPECIFIED => 'METRIC_TYPE_UNSPECIFIED', - self::TYPE_INTEGER => 'TYPE_INTEGER', - self::TYPE_FLOAT => 'TYPE_FLOAT', - self::TYPE_SECONDS => 'TYPE_SECONDS', - self::TYPE_MILLISECONDS => 'TYPE_MILLISECONDS', - self::TYPE_MINUTES => 'TYPE_MINUTES', - self::TYPE_HOURS => 'TYPE_HOURS', - self::TYPE_STANDARD => 'TYPE_STANDARD', - self::TYPE_CURRENCY => 'TYPE_CURRENCY', - self::TYPE_FEET => 'TYPE_FEET', - self::TYPE_MILES => 'TYPE_MILES', - self::TYPE_METERS => 'TYPE_METERS', - self::TYPE_KILOMETERS => 'TYPE_KILOMETERS', - ]; - - 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/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php deleted file mode 100644 index 5ae81b6fc476..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.MetricValue - */ -class MetricValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Measurement value. See MetricHeader for type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Measurement value. See MetricHeader for type. - * - * Generated from protobuf field string value = 4; - * @return string - */ - public function getValue() - { - return $this->readOneof(4); - } - - public function hasValue() - { - return $this->hasOneof(4); - } - - /** - * Measurement value. See MetricHeader for type. - * - * Generated from protobuf field string value = 4; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php deleted file mode 100644 index d71a5cdffb4d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php +++ /dev/null @@ -1,220 +0,0 @@ -google.analytics.data.v1beta.MinuteRange - */ -class MinuteRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 start_minutes_ago = 1; - */ - protected $start_minutes_ago = null; - /** - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 end_minutes_ago = 2; - */ - protected $end_minutes_ago = null; - /** - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_minutes_ago - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * @type int $end_minutes_ago - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * @type string $name - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 start_minutes_ago = 1; - * @return int - */ - public function getStartMinutesAgo() - { - return isset($this->start_minutes_ago) ? $this->start_minutes_ago : 0; - } - - public function hasStartMinutesAgo() - { - return isset($this->start_minutes_ago); - } - - public function clearStartMinutesAgo() - { - unset($this->start_minutes_ago); - } - - /** - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 start_minutes_ago = 1; - * @param int $var - * @return $this - */ - public function setStartMinutesAgo($var) - { - GPBUtil::checkInt32($var); - $this->start_minutes_ago = $var; - - return $this; - } - - /** - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 end_minutes_ago = 2; - * @return int - */ - public function getEndMinutesAgo() - { - return isset($this->end_minutes_ago) ? $this->end_minutes_ago : 0; - } - - public function hasEndMinutesAgo() - { - return isset($this->end_minutes_ago); - } - - public function clearEndMinutesAgo() - { - unset($this->end_minutes_ago); - } - - /** - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 end_minutes_ago = 2; - * @param int $var - * @return $this - */ - public function setEndMinutesAgo($var) - { - GPBUtil::checkInt32($var); - $this->end_minutes_ago = $var; - - return $this; - } - - /** - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php deleted file mode 100644 index ac466fe48650..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.data.v1beta.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value - * @type float $double_value - * Double value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php deleted file mode 100644 index bf52aa38f37b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php +++ /dev/null @@ -1,177 +0,0 @@ -google.analytics.data.v1beta.OrderBy - */ -class OrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - */ - protected $desc = false; - protected $one_order_by; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy $metric - * Sorts results by a metric's values. - * @type \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy $dimension - * Sorts results by a dimension's values. - * @type \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy $pivot - * Sorts results by a metric's values within a pivot column group. - * @type bool $desc - * If true, sorts by descending order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * @return \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy|null - */ - public function getMetric() - { - return $this->readOneof(1); - } - - public function hasMetric() - { - return $this->hasOneof(1); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * @param \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * @return \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy|null - */ - public function getDimension() - { - return $this->readOneof(2); - } - - public function hasDimension() - { - return $this->hasOneof(2); - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * @param \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Sorts results by a metric's values within a pivot column group. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * @return \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy|null - */ - public function getPivot() - { - return $this->readOneof(3); - } - - public function hasPivot() - { - return $this->hasOneof(3); - } - - /** - * Sorts results by a metric's values within a pivot column group. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * @param \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy $var - * @return $this - */ - public function setPivot($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - * @return bool - */ - public function getDesc() - { - return $this->desc; - } - - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - * @param bool $var - * @return $this - */ - public function setDesc($var) - { - GPBUtil::checkBool($var); - $this->desc = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneOrderBy() - { - return $this->whichOneof("one_order_by"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php deleted file mode 100644 index caaffd85a29b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.data.v1beta.OrderBy.DimensionOrderBy - */ -class DimensionOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - */ - protected $order_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * A dimension name in the request to order by. - * @type int $order_type - * Controls the rule for dimension value ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return int - */ - public function getOrderType() - { - return $this->order_type; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param int $var - * @return $this - */ - public function setOrderType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy\OrderType::class); - $this->order_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_DimensionOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php deleted file mode 100644 index d0ce40c9141e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType - */ -class OrderType -{ - /** - * Unspecified. - * - * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; - */ - const ORDER_TYPE_UNSPECIFIED = 0; - /** - * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - * "b" < "z". - * - * Generated from protobuf enum ALPHANUMERIC = 1; - */ - const ALPHANUMERIC = 1; - /** - * Case insensitive alphanumeric sort by lower case Unicode code point. - * For example, "2" < "A" < "b" < "X" < "z". - * - * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - const CASE_INSENSITIVE_ALPHANUMERIC = 2; - /** - * Dimension values are converted to numbers before sorting. For example - * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - * "25". Non-numeric dimension values all have equal ordering value below - * all numeric values. - * - * Generated from protobuf enum NUMERIC = 3; - */ - const NUMERIC = 3; - - private static $valueToName = [ - self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', - self::ALPHANUMERIC => 'ALPHANUMERIC', - self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', - self::NUMERIC => 'NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderType::class, \Google\Analytics\Data\V1beta\OrderBy_DimensionOrderBy_OrderType::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php deleted file mode 100644 index 27ab3306a35c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.data.v1beta.OrderBy.MetricOrderBy - */ -class MetricOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * A metric name in the request to order by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_MetricOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php deleted file mode 100644 index 4fd1c22f4b2f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php +++ /dev/null @@ -1,120 +0,0 @@ -google.analytics.data.v1beta.OrderBy.PivotOrderBy - */ -class PivotOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - /** - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - */ - private $pivot_selections; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * @type array<\Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection>|\Google\Protobuf\Internal\RepeatedField $pivot_selections - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - - /** - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotSelections() - { - return $this->pivot_selections; - } - - /** - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * @param array<\Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotSelections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection::class); - $this->pivot_selections = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PivotOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_PivotOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php deleted file mode 100644 index d50a7262d481..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php +++ /dev/null @@ -1,117 +0,0 @@ -google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - */ -class PivotSelection extends \Google\Protobuf\Internal\Message -{ - /** - * Must be a dimension name from the request. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Order by only when the named dimension is this value. - * - * Generated from protobuf field string dimension_value = 2; - */ - protected $dimension_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * Must be a dimension name from the request. - * @type string $dimension_value - * Order by only when the named dimension is this value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Must be a dimension name from the request. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * Must be a dimension name from the request. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Order by only when the named dimension is this value. - * - * Generated from protobuf field string dimension_value = 2; - * @return string - */ - public function getDimensionValue() - { - return $this->dimension_value; - } - - /** - * Order by only when the named dimension is this value. - * - * Generated from protobuf field string dimension_value = 2; - * @param string $var - * @return $this - */ - public function setDimensionValue($var) - { - GPBUtil::checkString($var, True); - $this->dimension_value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PivotSelection::class, \Google\Analytics\Data\V1beta\OrderBy_PivotOrderBy_PivotSelection::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php deleted file mode 100644 index 1569a761e9b6..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php +++ /dev/null @@ -1,255 +0,0 @@ -google.analytics.data.v1beta.Pivot - */ -class Pivot extends \Google\Protobuf\Internal\Message -{ - /** - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * - * Generated from protobuf field repeated string field_names = 1; - */ - private $field_names; - /** - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - private $order_bys; - /** - * The row count of the start row. The first row is counted as row 0. - * - * Generated from protobuf field int64 offset = 3; - */ - protected $offset = 0; - /** - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * - * Generated from protobuf field int64 limit = 4; - */ - protected $limit = 0; - /** - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - */ - private $metric_aggregations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $field_names - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. - * @type int|string $limit - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * - * Generated from protobuf field repeated string field_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFieldNames() - { - return $this->field_names; - } - - /** - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * - * Generated from protobuf field repeated string field_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFieldNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->field_names = $arr; - - return $this; - } - - /** - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * - * Generated from protobuf field int64 offset = 3; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * - * Generated from protobuf field int64 offset = 3; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * - * Generated from protobuf field int64 limit = 4; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * - * Generated from protobuf field int64 limit = 4; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricAggregations() - { - return $this->metric_aggregations; - } - - /** - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); - $this->metric_aggregations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php deleted file mode 100644 index a96c75982ac8..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1beta.PivotDimensionHeader - */ -class PivotDimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * Values of multiple dimensions in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - private $dimension_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * Values of multiple dimensions in a pivot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Values of multiple dimensions in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * Values of multiple dimensions in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php deleted file mode 100644 index e53d39b9c1f3..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.data.v1beta.PivotHeader - */ -class PivotHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - */ - private $pivot_dimension_headers; - /** - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * - * Generated from protobuf field int32 row_count = 2; - */ - protected $row_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $pivot_dimension_headers - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * @type int $row_count - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotDimensionHeaders() - { - return $this->pivot_dimension_headers; - } - - /** - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotDimensionHeader::class); - $this->pivot_dimension_headers = $arr; - - return $this; - } - - /** - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * - * Generated from protobuf field int32 row_count = 2; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * - * Generated from protobuf field int32 row_count = 2; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php deleted file mode 100644 index 689ca28e00d4..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php +++ /dev/null @@ -1,363 +0,0 @@ -google.analytics.data.v1beta.PropertyQuota - */ -class PropertyQuota extends \Google\Protobuf\Internal\Message -{ - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - protected $tokens_per_day = null; - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - protected $tokens_per_hour = null; - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - protected $concurrent_requests = null; - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - */ - protected $server_errors_per_project_per_hour = null; - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - */ - protected $potentially_thresholded_requests_per_hour = null; - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - protected $tokens_per_project_per_hour = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_day - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_hour - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $concurrent_requests - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $server_errors_per_project_per_hour - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $potentially_thresholded_requests_per_hour - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_project_per_hour - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getTokensPerDay() - { - return $this->tokens_per_day; - } - - public function hasTokensPerDay() - { - return isset($this->tokens_per_day); - } - - public function clearTokensPerDay() - { - unset($this->tokens_per_day); - } - - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setTokensPerDay($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->tokens_per_day = $var; - - return $this; - } - - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getTokensPerHour() - { - return $this->tokens_per_hour; - } - - public function hasTokensPerHour() - { - return isset($this->tokens_per_hour); - } - - public function clearTokensPerHour() - { - unset($this->tokens_per_hour); - } - - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setTokensPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->tokens_per_hour = $var; - - return $this; - } - - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getConcurrentRequests() - { - return $this->concurrent_requests; - } - - public function hasConcurrentRequests() - { - return isset($this->concurrent_requests); - } - - public function clearConcurrentRequests() - { - unset($this->concurrent_requests); - } - - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setConcurrentRequests($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->concurrent_requests = $var; - - return $this; - } - - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getServerErrorsPerProjectPerHour() - { - return $this->server_errors_per_project_per_hour; - } - - public function hasServerErrorsPerProjectPerHour() - { - return isset($this->server_errors_per_project_per_hour); - } - - public function clearServerErrorsPerProjectPerHour() - { - unset($this->server_errors_per_project_per_hour); - } - - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setServerErrorsPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->server_errors_per_project_per_hour = $var; - - return $this; - } - - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getPotentiallyThresholdedRequestsPerHour() - { - return $this->potentially_thresholded_requests_per_hour; - } - - public function hasPotentiallyThresholdedRequestsPerHour() - { - return isset($this->potentially_thresholded_requests_per_hour); - } - - public function clearPotentiallyThresholdedRequestsPerHour() - { - unset($this->potentially_thresholded_requests_per_hour); - } - - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setPotentiallyThresholdedRequestsPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->potentially_thresholded_requests_per_hour = $var; - - return $this; - } - - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getTokensPerProjectPerHour() - { - return $this->tokens_per_project_per_hour; - } - - public function hasTokensPerProjectPerHour() - { - return isset($this->tokens_per_project_per_hour); - } - - public function clearTokensPerProjectPerHour() - { - unset($this->tokens_per_project_per_hour); - } - - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setTokensPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->tokens_per_project_per_hour = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QueryAudienceExportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QueryAudienceExportRequest.php deleted file mode 100644 index 2c72532b7d9f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QueryAudienceExportRequest.php +++ /dev/null @@ -1,205 +0,0 @@ -google.analytics.data.v1beta.QueryAudienceExportRequest - */ -class QueryAudienceExportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the audience export to retrieve users from. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $offset = 0; - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = 0; - - /** - * @param string $name Required. The name of the audience export to retrieve users from. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * @return \Google\Analytics\Data\V1beta\QueryAudienceExportRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the audience export to retrieve users from. - * Format: `properties/{property}/audienceExports/{audience_export}` - * @type int|string $offset - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the audience export to retrieve users from. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the audience export to retrieve users from. - * Format: `properties/{property}/audienceExports/{audience_export}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Optional. The row count of the start row. The first row is counted as row - * 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QueryAudienceExportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QueryAudienceExportResponse.php deleted file mode 100644 index 71591a688970..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QueryAudienceExportResponse.php +++ /dev/null @@ -1,191 +0,0 @@ -google.analytics.data.v1beta.QueryAudienceExportResponse - */ -class QueryAudienceExportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration data about AudienceExport being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceExport correspond to the columns in the AudienceRows. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.AudienceExport audience_export = 1; - */ - protected $audience_export = null; - /** - * Rows for each user in an audience export. The number of rows in this - * response will be less than or equal to request's page size. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceRow audience_rows = 2; - */ - private $audience_rows; - /** - * The total number of rows in the AudienceExport result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - */ - protected $row_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\AudienceExport $audience_export - * Configuration data about AudienceExport being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceExport correspond to the columns in the AudienceRows. - * @type array<\Google\Analytics\Data\V1beta\AudienceRow>|\Google\Protobuf\Internal\RepeatedField $audience_rows - * Rows for each user in an audience export. The number of rows in this - * response will be less than or equal to request's page size. - * @type int $row_count - * The total number of rows in the AudienceExport result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Configuration data about AudienceExport being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceExport correspond to the columns in the AudienceRows. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.AudienceExport audience_export = 1; - * @return \Google\Analytics\Data\V1beta\AudienceExport|null - */ - public function getAudienceExport() - { - return $this->audience_export; - } - - public function hasAudienceExport() - { - return isset($this->audience_export); - } - - public function clearAudienceExport() - { - unset($this->audience_export); - } - - /** - * Configuration data about AudienceExport being queried. Returned to help - * interpret the audience rows in this response. For example, the dimensions - * in this AudienceExport correspond to the columns in the AudienceRows. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.AudienceExport audience_export = 1; - * @param \Google\Analytics\Data\V1beta\AudienceExport $var - * @return $this - */ - public function setAudienceExport($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\AudienceExport::class); - $this->audience_export = $var; - - return $this; - } - - /** - * Rows for each user in an audience export. The number of rows in this - * response will be less than or equal to request's page size. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceRow audience_rows = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAudienceRows() - { - return $this->audience_rows; - } - - /** - * Rows for each user in an audience export. The number of rows in this - * response will be less than or equal to request's page size. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.AudienceRow audience_rows = 2; - * @param array<\Google\Analytics\Data\V1beta\AudienceRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAudienceRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\AudienceRow::class); - $this->audience_rows = $arr; - - return $this; - } - - /** - * The total number of rows in the AudienceExport result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - * @return int - */ - public function getRowCount() - { - return isset($this->row_count) ? $this->row_count : 0; - } - - public function hasRowCount() - { - return isset($this->row_count); - } - - public function clearRowCount() - { - unset($this->row_count); - } - - /** - * The total number of rows in the AudienceExport result. `rowCount` is - * independent of the number of rows returned in the response, the `limit` - * request parameter, and the `offset` request parameter. For example if a - * query returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field optional int32 row_count = 3; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php deleted file mode 100644 index 77a8b488f2ec..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php +++ /dev/null @@ -1,121 +0,0 @@ -google.analytics.data.v1beta.QuotaStatus - */ -class QuotaStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Quota consumed by this request. - * - * Generated from protobuf field optional int32 consumed = 1; - */ - protected $consumed = null; - /** - * Quota remaining after this request. - * - * Generated from protobuf field optional int32 remaining = 2; - */ - protected $remaining = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consumed - * Quota consumed by this request. - * @type int $remaining - * Quota remaining after this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field optional int32 consumed = 1; - * @return int - */ - public function getConsumed() - { - return isset($this->consumed) ? $this->consumed : 0; - } - - public function hasConsumed() - { - return isset($this->consumed); - } - - public function clearConsumed() - { - unset($this->consumed); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field optional int32 consumed = 1; - * @param int $var - * @return $this - */ - public function setConsumed($var) - { - GPBUtil::checkInt32($var); - $this->consumed = $var; - - return $this; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field optional int32 remaining = 2; - * @return int - */ - public function getRemaining() - { - return isset($this->remaining) ? $this->remaining : 0; - } - - public function hasRemaining() - { - return isset($this->remaining); - } - - public function clearRemaining() - { - unset($this->remaining); - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field optional int32 remaining = 2; - * @param int $var - * @return $this - */ - public function setRemaining($var) - { - GPBUtil::checkInt32($var); - $this->remaining = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php deleted file mode 100644 index a2642b63961b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php +++ /dev/null @@ -1,457 +0,0 @@ -google.analytics.data.v1beta.ResponseMetaData - */ -class ResponseMetaData extends \Google\Protobuf\Internal\Message -{ - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - */ - protected $data_loss_from_other_row = false; - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - */ - protected $schema_restriction_response = null; - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - */ - protected $currency_code = null; - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - */ - protected $time_zone = null; - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - */ - protected $empty_reason = null; - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - */ - protected $subject_to_thresholding = null; - /** - * If this report results is - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes the percentage of events used in this report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.SamplingMetadata sampling_metadatas = 9; - */ - private $sampling_metadatas; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $data_loss_from_other_row - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * @type \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse $schema_restriction_response - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * @type string $currency_code - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * @type string $time_zone - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * @type string $empty_reason - * If empty reason is specified, the report is empty for this reason. - * @type bool $subject_to_thresholding - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630). - * @type array<\Google\Analytics\Data\V1beta\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $sampling_metadatas - * If this report results is - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes the percentage of events used in this report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - * @return bool - */ - public function getDataLossFromOtherRow() - { - return $this->data_loss_from_other_row; - } - - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - * @param bool $var - * @return $this - */ - public function setDataLossFromOtherRow($var) - { - GPBUtil::checkBool($var); - $this->data_loss_from_other_row = $var; - - return $this; - } - - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * @return \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse|null - */ - public function getSchemaRestrictionResponse() - { - return $this->schema_restriction_response; - } - - public function hasSchemaRestrictionResponse() - { - return isset($this->schema_restriction_response); - } - - public function clearSchemaRestrictionResponse() - { - unset($this->schema_restriction_response); - } - - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * @param \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse $var - * @return $this - */ - public function setSchemaRestrictionResponse($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse::class); - $this->schema_restriction_response = $var; - - return $this; - } - - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - * @return string - */ - public function getCurrencyCode() - { - return isset($this->currency_code) ? $this->currency_code : ''; - } - - public function hasCurrencyCode() - { - return isset($this->currency_code); - } - - public function clearCurrencyCode() - { - unset($this->currency_code); - } - - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - * @return string - */ - public function getTimeZone() - { - return isset($this->time_zone) ? $this->time_zone : ''; - } - - public function hasTimeZone() - { - return isset($this->time_zone); - } - - public function clearTimeZone() - { - unset($this->time_zone); - } - - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - * @return string - */ - public function getEmptyReason() - { - return isset($this->empty_reason) ? $this->empty_reason : ''; - } - - public function hasEmptyReason() - { - return isset($this->empty_reason); - } - - public function clearEmptyReason() - { - unset($this->empty_reason); - } - - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - * @param string $var - * @return $this - */ - public function setEmptyReason($var) - { - GPBUtil::checkString($var, True); - $this->empty_reason = $var; - - return $this; - } - - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - * @return bool - */ - public function getSubjectToThresholding() - { - return isset($this->subject_to_thresholding) ? $this->subject_to_thresholding : false; - } - - public function hasSubjectToThresholding() - { - return isset($this->subject_to_thresholding); - } - - public function clearSubjectToThresholding() - { - unset($this->subject_to_thresholding); - } - - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - * @param bool $var - * @return $this - */ - public function setSubjectToThresholding($var) - { - GPBUtil::checkBool($var); - $this->subject_to_thresholding = $var; - - return $this; - } - - /** - * If this report results is - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes the percentage of events used in this report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.SamplingMetadata sampling_metadatas = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSamplingMetadatas() - { - return $this->sampling_metadatas; - } - - /** - * If this report results is - * [sampled](https://support.google.com/analytics/answer/13331292), this - * describes the percentage of events used in this report. One - * `samplingMetadatas` is populated for each date range. Each - * `samplingMetadatas` corresponds to a date range in order that date ranges - * were specified in the request. - * However if the results are not sampled, this field will not be defined. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.SamplingMetadata sampling_metadatas = 9; - * @param array<\Google\Analytics\Data\V1beta\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSamplingMetadatas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\SamplingMetadata::class); - $this->sampling_metadatas = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php deleted file mode 100644 index 38739908def1..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php +++ /dev/null @@ -1,84 +0,0 @@ -google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - */ -class SchemaRestrictionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - */ - private $active_metric_restrictions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $active_metric_restrictions - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActiveMetricRestrictions() - { - return $this->active_metric_restrictions; - } - - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * @param array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActiveMetricRestrictions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction::class); - $this->active_metric_restrictions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SchemaRestrictionResponse::class, \Google\Analytics\Data\V1beta\ResponseMetaData_SchemaRestrictionResponse::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php deleted file mode 100644 index 246f6d81d0c2..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction - */ -class ActiveMetricRestriction extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - */ - protected $metric_name = null; - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - */ - private $restricted_metric_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The name of the restricted metric. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_types - * The reason for this metric's restriction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return isset($this->metric_name) ? $this->metric_name : ''; - } - - public function hasMetricName() - { - return isset($this->metric_name); - } - - public function clearMetricName() - { - unset($this->metric_name); - } - - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricTypes() - { - return $this->restricted_metric_types; - } - - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\RestrictedMetricType::class); - $this->restricted_metric_types = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActiveMetricRestriction::class, \Google\Analytics\Data\V1beta\ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php deleted file mode 100644 index 4d77bccc2582..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.analytics.data.v1beta.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Cost metrics such as `adCost`. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Revenue metrics such as `purchaseRevenue`. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php deleted file mode 100644 index fb28b01a3525..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php +++ /dev/null @@ -1,138 +0,0 @@ -google.analytics.data.v1beta.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - private $dimension_values; - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - private $metric_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * @type array<\Google\Analytics\Data\V1beta\MetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values - * List of requested visible metric values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValues() - { - return $this->metric_values; - } - - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricValue::class); - $this->metric_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php deleted file mode 100644 index c7dbde357274..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php +++ /dev/null @@ -1,595 +0,0 @@ -google.analytics.data.v1beta.RunPivotReportRequest - */ -class RunPivotReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - private $pivots; - /** - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - protected $metric_filter = null; - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 8; - */ - protected $currency_code = ''; - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - protected $cohort_spec = null; - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 10; - */ - protected $keep_empty_rows = false; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 11; - */ - protected $return_property_quota = false; - /** - * Optional. The configuration of comparisons requested and displayed. The - * request requires both a comparisons field and a comparisons dimension to - * receive a comparison column in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Comparison comparisons = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $comparisons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * @type array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * @type array<\Google\Analytics\Data\V1beta\Pivot>|\Google\Protobuf\Internal\RepeatedField $pivots - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * @type string $currency_code - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type \Google\Analytics\Data\V1beta\CohortSpec $cohort_spec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keep_empty_rows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $return_property_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type array<\Google\Analytics\Data\V1beta\Comparison>|\Google\Protobuf\Internal\RepeatedField $comparisons - * Optional. The configuration of comparisons requested and displayed. The - * request requires both a comparisons field and a comparisons dimension to - * receive a comparison column in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @param array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivots() - { - return $this->pivots; - } - - /** - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; - * @param array<\Google\Analytics\Data\V1beta\Pivot>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivots($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Pivot::class); - $this->pivots = $arr; - - return $this; - } - - /** - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 8; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * 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; - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * @return \Google\Analytics\Data\V1beta\CohortSpec|null - */ - public function getCohortSpec() - { - return $this->cohort_spec; - } - - public function hasCohortSpec() - { - return isset($this->cohort_spec); - } - - public function clearCohortSpec() - { - unset($this->cohort_spec); - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * @param \Google\Analytics\Data\V1beta\CohortSpec $var - * @return $this - */ - public function setCohortSpec($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortSpec::class); - $this->cohort_spec = $var; - - return $this; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 10; - * @return bool - */ - public function getKeepEmptyRows() - { - return $this->keep_empty_rows; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 10; - * @param bool $var - * @return $this - */ - public function setKeepEmptyRows($var) - { - GPBUtil::checkBool($var); - $this->keep_empty_rows = $var; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 11; - * @return bool - */ - public function getReturnPropertyQuota() - { - return $this->return_property_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 11; - * @param bool $var - * @return $this - */ - public function setReturnPropertyQuota($var) - { - GPBUtil::checkBool($var); - $this->return_property_quota = $var; - - return $this; - } - - /** - * Optional. The configuration of comparisons requested and displayed. The - * request requires both a comparisons field and a comparisons dimension to - * receive a comparison column in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Comparison comparisons = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComparisons() - { - return $this->comparisons; - } - - /** - * Optional. The configuration of comparisons requested and displayed. The - * request requires both a comparisons field and a comparisons dimension to - * receive a comparison column in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Comparison comparisons = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1beta\Comparison>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComparisons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Comparison::class); - $this->comparisons = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php deleted file mode 100644 index 959e315a49f7..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php +++ /dev/null @@ -1,481 +0,0 @@ -google.analytics.data.v1beta.RunPivotReportResponse - */ -class RunPivotReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - private $pivot_headers; - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - private $dimension_headers; - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; - */ - private $rows; - /** - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - private $aggregates; - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - protected $metadata = null; - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - protected $property_quota = null; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 8; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\PivotHeader>|\Google\Protobuf\Internal\RepeatedField $pivot_headers - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $aggregates - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * @type \Google\Analytics\Data\V1beta\ResponseMetaData $metadata - * Metadata for the report. - * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota - * This Analytics Property's quota state including this request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotHeaders() - { - return $this->pivot_headers; - } - - /** - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\PivotHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotHeader::class); - $this->pivot_headers = $arr; - - return $this; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAggregates() - { - return $this->aggregates; - } - - /** - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAggregates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->aggregates = $arr; - - return $this; - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * @return \Google\Analytics\Data\V1beta\ResponseMetaData|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * @param \Google\Analytics\Data\V1beta\ResponseMetaData $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData::class); - $this->metadata = $var; - - return $this; - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * @return \Google\Analytics\Data\V1beta\PropertyQuota|null - */ - public function getPropertyQuota() - { - return $this->property_quota; - } - - public function hasPropertyQuota() - { - return isset($this->property_quota); - } - - public function clearPropertyQuota() - { - unset($this->property_quota); - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * @param \Google\Analytics\Data\V1beta\PropertyQuota $var - * @return $this - */ - public function setPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); - $this->property_quota = $var; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 8; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 8; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php deleted file mode 100644 index 9d96cefe0a9b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php +++ /dev/null @@ -1,465 +0,0 @@ -google.analytics.data.v1beta.RunRealtimeReportRequest - */ -class RunRealtimeReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * The filter clause of dimensions. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - protected $metric_filter = null; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 6; - */ - protected $limit = 0; - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - */ - private $metric_aggregations; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - private $order_bys; - /** - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 9; - */ - protected $return_property_quota = false; - /** - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - private $minute_ranges; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * The filter clause of dimensions. Metrics cannot be used in this filter. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type bool $return_property_quota - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type array<\Google\Analytics\Data\V1beta\MinuteRange>|\Google\Protobuf\Internal\RepeatedField $minute_ranges - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * The filter clause of dimensions. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * The filter clause of dimensions. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 6; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 6; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricAggregations() - { - return $this->metric_aggregations; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); - $this->metric_aggregations = $arr; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 9; - * @return bool - */ - public function getReturnPropertyQuota() - { - return $this->return_property_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 9; - * @param bool $var - * @return $this - */ - public function setReturnPropertyQuota($var) - { - GPBUtil::checkBool($var); - $this->return_property_quota = $var; - - return $this; - } - - /** - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinuteRanges() - { - return $this->minute_ranges; - } - - /** - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - * @param array<\Google\Analytics\Data\V1beta\MinuteRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinuteRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MinuteRange::class); - $this->minute_ranges = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php deleted file mode 100644 index 4ff50b9d77bc..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php +++ /dev/null @@ -1,381 +0,0 @@ -google.analytics.data.v1beta.RunRealtimeReportResponse - */ -class RunRealtimeReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - */ - private $rows; - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - */ - private $totals; - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - private $maximums; - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - private $minimums; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * - * Generated from protobuf field int32 row_count = 7; - */ - protected $row_count = 0; - /** - * This Analytics Property's Realtime quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - protected $property_quota = null; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 9; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $totals - * If requested, the totaled values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $maximums - * If requested, the maximum values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $minimums - * If requested, the minimum values of metrics. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota - * This Analytics Property's Realtime quota state including this request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTotals() - { - return $this->totals; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTotals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->totals = $arr; - - return $this; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaximums() - { - return $this->maximums; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaximums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->maximums = $arr; - - return $this; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinimums() - { - return $this->minimums; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinimums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->minimums = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * - * Generated from protobuf field int32 row_count = 7; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * - * Generated from protobuf field int32 row_count = 7; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * This Analytics Property's Realtime quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * @return \Google\Analytics\Data\V1beta\PropertyQuota|null - */ - public function getPropertyQuota() - { - return $this->property_quota; - } - - public function hasPropertyQuota() - { - return isset($this->property_quota); - } - - public function clearPropertyQuota() - { - unset($this->property_quota); - } - - /** - * This Analytics Property's Realtime quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * @param \Google\Analytics\Data\V1beta\PropertyQuota $var - * @return $this - */ - public function setPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); - $this->property_quota = $var; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 9; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 9; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php deleted file mode 100644 index 4a2cb98aede7..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php +++ /dev/null @@ -1,741 +0,0 @@ -google.analytics.data.v1beta.RunReportRequest - */ -class RunReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - protected $metric_filter = null; - /** - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - */ - protected $offset = 0; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - */ - protected $limit = 0; - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - */ - private $metric_aggregations; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - private $order_bys; - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11; - */ - protected $currency_code = ''; - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - protected $cohort_spec = null; - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13; - */ - protected $keep_empty_rows = false; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 14; - */ - protected $return_property_quota = false; - /** - * Optional. The configuration of comparisons requested and displayed. The - * request only requires a comparisons field in order to receive a comparison - * column in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $comparisons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed. - * @type array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type string $currency_code - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type \Google\Analytics\Data\V1beta\CohortSpec $cohort_spec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keep_empty_rows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $return_property_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type array<\Google\Analytics\Data\V1beta\Comparison>|\Google\Protobuf\Internal\RepeatedField $comparisons - * Optional. The configuration of comparisons requested and displayed. The - * request only requires a comparisons field in order to receive a comparison - * column in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @param array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricAggregations() - { - return $this->metric_aggregations; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); - $this->metric_aggregations = $arr; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * @return \Google\Analytics\Data\V1beta\CohortSpec|null - */ - public function getCohortSpec() - { - return $this->cohort_spec; - } - - public function hasCohortSpec() - { - return isset($this->cohort_spec); - } - - public function clearCohortSpec() - { - unset($this->cohort_spec); - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * @param \Google\Analytics\Data\V1beta\CohortSpec $var - * @return $this - */ - public function setCohortSpec($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortSpec::class); - $this->cohort_spec = $var; - - return $this; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13; - * @return bool - */ - public function getKeepEmptyRows() - { - return $this->keep_empty_rows; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13; - * @param bool $var - * @return $this - */ - public function setKeepEmptyRows($var) - { - GPBUtil::checkBool($var); - $this->keep_empty_rows = $var; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 14; - * @return bool - */ - public function getReturnPropertyQuota() - { - return $this->return_property_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 14; - * @param bool $var - * @return $this - */ - public function setReturnPropertyQuota($var) - { - GPBUtil::checkBool($var); - $this->return_property_quota = $var; - - return $this; - } - - /** - * Optional. The configuration of comparisons requested and displayed. The - * request only requires a comparisons field in order to receive a comparison - * column in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComparisons() - { - return $this->comparisons; - } - - /** - * Optional. The configuration of comparisons requested and displayed. The - * request only requires a comparisons field in order to receive a comparison - * column in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Comparison comparisons = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Analytics\Data\V1beta\Comparison>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComparisons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Comparison::class); - $this->comparisons = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php deleted file mode 100644 index 6825d24eb51a..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php +++ /dev/null @@ -1,433 +0,0 @@ -google.analytics.data.v1beta.RunReportResponse - */ -class RunReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - */ - private $rows; - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - */ - private $totals; - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - private $maximums; - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - private $minimums; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 7; - */ - protected $row_count = 0; - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - protected $metadata = null; - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - protected $property_quota = null; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 10; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $totals - * If requested, the totaled values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $maximums - * If requested, the maximum values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $minimums - * If requested, the minimum values of metrics. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type \Google\Analytics\Data\V1beta\ResponseMetaData $metadata - * Metadata for the report. - * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota - * This Analytics Property's quota state including this request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTotals() - { - return $this->totals; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTotals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->totals = $arr; - - return $this; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaximums() - { - return $this->maximums; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaximums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->maximums = $arr; - - return $this; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinimums() - { - return $this->minimums; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinimums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->minimums = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 7; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 7; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * @return \Google\Analytics\Data\V1beta\ResponseMetaData|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * @param \Google\Analytics\Data\V1beta\ResponseMetaData $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData::class); - $this->metadata = $var; - - return $this; - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * @return \Google\Analytics\Data\V1beta\PropertyQuota|null - */ - public function getPropertyQuota() - { - return $this->property_quota; - } - - public function hasPropertyQuota() - { - return isset($this->property_quota); - } - - public function clearPropertyQuota() - { - unset($this->property_quota); - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * @param \Google\Analytics\Data\V1beta\PropertyQuota $var - * @return $this - */ - public function setPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); - $this->property_quota = $var; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 10; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 10; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/SamplingMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/SamplingMetadata.php deleted file mode 100644 index c85383ee02e9..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/SamplingMetadata.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.SamplingMetadata - */ -class SamplingMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this report. - * - * Generated from protobuf field int64 samples_read_count = 1; - */ - protected $samples_read_count = 0; - /** - * The total number of events present in this property's data that could - * have been analyzed in this report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * report, compute `samplesReadCount/samplingSpaceSize`. - * - * Generated from protobuf field int64 sampling_space_size = 2; - */ - protected $sampling_space_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $samples_read_count - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this report. - * @type int|string $sampling_space_size - * The total number of events present in this property's data that could - * have been analyzed in this report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * report, compute `samplesReadCount/samplingSpaceSize`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this report. - * - * Generated from protobuf field int64 samples_read_count = 1; - * @return int|string - */ - public function getSamplesReadCount() - { - return $this->samples_read_count; - } - - /** - * The total number of events read in this sampled report for a date range. - * This is the size of the subset this property's data that was analyzed in - * this report. - * - * Generated from protobuf field int64 samples_read_count = 1; - * @param int|string $var - * @return $this - */ - public function setSamplesReadCount($var) - { - GPBUtil::checkInt64($var); - $this->samples_read_count = $var; - - return $this; - } - - /** - * The total number of events present in this property's data that could - * have been analyzed in this report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * report, compute `samplesReadCount/samplingSpaceSize`. - * - * Generated from protobuf field int64 sampling_space_size = 2; - * @return int|string - */ - public function getSamplingSpaceSize() - { - return $this->sampling_space_size; - } - - /** - * The total number of events present in this property's data that could - * have been analyzed in this report for a date range. Sampling - * uncovers the meaningful information about the larger data set, and this - * is the size of the larger data set. - * To calculate the percentage of available data that was used in this - * report, compute `samplesReadCount/samplingSpaceSize`. - * - * Generated from protobuf field int64 sampling_space_size = 2; - * @param int|string $var - * @return $this - */ - public function setSamplingSpaceSize($var) - { - GPBUtil::checkInt64($var); - $this->sampling_space_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php deleted file mode 100644 index 7c893afaa92a..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php +++ /dev/null @@ -1,58 +0,0 @@ -batchRunPivotReports($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunPivotReports_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php deleted file mode 100644 index bf9615abcee4..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php +++ /dev/null @@ -1,58 +0,0 @@ -batchRunReports($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunReports_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php deleted file mode 100644 index ae432f155d1b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php +++ /dev/null @@ -1,66 +0,0 @@ -checkCompatibility($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_CheckCompatibility_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/create_audience_export.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/create_audience_export.php deleted file mode 100644 index 820fcfed54ac..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/create_audience_export.php +++ /dev/null @@ -1,122 +0,0 @@ -setAudience($audienceExportAudience) - ->setDimensions($audienceExportDimensions); - $request = (new CreateAudienceExportRequest()) - ->setParent($formattedParent) - ->setAudienceExport($audienceExport); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $betaAnalyticsDataClient->createAudienceExport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AudienceExport $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BetaAnalyticsDataClient::propertyName('[PROPERTY]'); - $audienceExportAudience = '[AUDIENCE]'; - - create_audience_export_sample($formattedParent, $audienceExportAudience); -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_CreateAudienceExport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_audience_export.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_audience_export.php deleted file mode 100644 index 24bff6ab36cb..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_audience_export.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AudienceExport $response */ - $response = $betaAnalyticsDataClient->getAudienceExport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BetaAnalyticsDataClient::audienceExportName('[PROPERTY]', '[AUDIENCE_EXPORT]'); - - get_audience_export_sample($formattedName); -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_GetAudienceExport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php deleted file mode 100644 index b5680a0483d5..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Metadata $response */ - $response = $betaAnalyticsDataClient->getMetadata($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BetaAnalyticsDataClient::metadataName('[PROPERTY]'); - - get_metadata_sample($formattedName); -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_GetMetadata_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/list_audience_exports.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/list_audience_exports.php deleted file mode 100644 index 53031ca6a20c..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/list_audience_exports.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $betaAnalyticsDataClient->listAudienceExports($request); - - /** @var AudienceExport $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BetaAnalyticsDataClient::propertyName('[PROPERTY]'); - - list_audience_exports_sample($formattedParent); -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_ListAudienceExports_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/query_audience_export.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/query_audience_export.php deleted file mode 100644 index 013f2bbb524e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/query_audience_export.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var QueryAudienceExportResponse $response */ - $response = $betaAnalyticsDataClient->queryAudienceExport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - query_audience_export_sample($name); -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_QueryAudienceExport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php deleted file mode 100644 index 796aef3d116b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php +++ /dev/null @@ -1,61 +0,0 @@ -runPivotReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunPivotReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php deleted file mode 100644 index 4c1d9e225cdb..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php +++ /dev/null @@ -1,65 +0,0 @@ -runRealtimeReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunRealtimeReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php deleted file mode 100644 index b4c1d2fea06f..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php +++ /dev/null @@ -1,67 +0,0 @@ -runReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php deleted file mode 100644 index 5d708159cb0b..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php +++ /dev/null @@ -1,36 +0,0 @@ - batchRunPivotReportsAsync(BatchRunPivotReportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchRunReportsAsync(BatchRunReportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface checkCompatibilityAsync(CheckCompatibilityRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAudienceExportAsync(CreateAudienceExportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAudienceExportAsync(GetAudienceExportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataAsync(GetMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAudienceExportsAsync(ListAudienceExportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryAudienceExportAsync(QueryAudienceExportRequest $request, array $optionalArgs = []) - * @method PromiseInterface runPivotReportAsync(RunPivotReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface runRealtimeReportAsync(RunRealtimeReportRequest $request, array $optionalArgs = []) - * @method PromiseInterface runReportAsync(RunReportRequest $request, array $optionalArgs = []) - */ -final class BetaAnalyticsDataClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.analytics.data.v1beta.BetaAnalyticsData'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'analyticsdata.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsdata.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/beta_analytics_data_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/beta_analytics_data_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/beta_analytics_data_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/beta_analytics_data_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * audience_export resource. - * - * @param string $property - * @param string $audienceExport - * - * @return string The formatted audience_export resource. - * - * @experimental - */ - public static function audienceExportName(string $property, string $audienceExport): string - { - return self::getPathTemplate('audienceExport')->render([ - 'property' => $property, - 'audience_export' => $audienceExport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a metadata - * resource. - * - * @param string $property - * - * @return string The formatted metadata resource. - * - * @experimental - */ - public static function metadataName(string $property): string - { - return self::getPathTemplate('metadata')->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName(string $property): string - { - return self::getPathTemplate('property')->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - audienceExport: properties/{property}/audienceExports/{audience_export} - * - metadata: properties/{property}/metadata - * - property: properties/{property} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsdata.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Returns multiple pivot reports in a batch. All reports must be for the same - * GA4 Property. - * - * The async variant is {@see BetaAnalyticsDataClient::batchRunPivotReportsAsync()} - * . - * - * @example samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php - * - * @param BatchRunPivotReportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchRunPivotReportsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchRunPivotReports(BatchRunPivotReportsRequest $request, array $callOptions = []): BatchRunPivotReportsResponse - { - return $this->startApiCall('BatchRunPivotReports', $request, $callOptions)->wait(); - } - - /** - * Returns multiple reports in a batch. All reports must be for the same - * GA4 Property. - * - * The async variant is {@see BetaAnalyticsDataClient::batchRunReportsAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php - * - * @param BatchRunReportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchRunReportsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchRunReports(BatchRunReportsRequest $request, array $callOptions = []): BatchRunReportsResponse - { - return $this->startApiCall('BatchRunReports', $request, $callOptions)->wait(); - } - - /** - * This compatibility method lists dimensions and metrics that can be added to - * a report request and maintain compatibility. This method fails if the - * request's dimensions and metrics are incompatible. - * - * In Google Analytics, reports fail if they request incompatible dimensions - * and/or metrics; in that case, you will need to remove dimensions and/or - * metrics from the incompatible report until the report is compatible. - * - * The Realtime and Core reports have different compatibility rules. This - * method checks compatibility for Core reports. - * - * The async variant is {@see BetaAnalyticsDataClient::checkCompatibilityAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php - * - * @param CheckCompatibilityRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CheckCompatibilityResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function checkCompatibility(CheckCompatibilityRequest $request, array $callOptions = []): CheckCompatibilityResponse - { - return $this->startApiCall('CheckCompatibility', $request, $callOptions)->wait(); - } - - /** - * Creates an audience export for later retrieval. This method quickly returns - * the audience export's resource name and initiates a long running - * asynchronous request to form an audience export. To export the users in an - * audience export, first create the audience export through this method and - * then send the audience resource name to the `QueryAudienceExport` method. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * An audience export is a snapshot of the users currently in the audience at - * the time of audience export creation. Creating audience exports for one - * audience on different days will return different results as users enter and - * exit the audience. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. Audience exports - * contain the users in each audience. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see BetaAnalyticsDataClient::createAudienceExportAsync()} - * . - * - * @example samples/V1beta/BetaAnalyticsDataClient/create_audience_export.php - * - * @param CreateAudienceExportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createAudienceExport(CreateAudienceExportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAudienceExport', $request, $callOptions)->wait(); - } - - /** - * Gets configuration metadata about a specific audience export. This method - * can be used to understand an audience export after it has been created. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see BetaAnalyticsDataClient::getAudienceExportAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/get_audience_export.php - * - * @param GetAudienceExportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AudienceExport - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getAudienceExport(GetAudienceExportRequest $request, array $callOptions = []): AudienceExport - { - return $this->startApiCall('GetAudienceExport', $request, $callOptions)->wait(); - } - - /** - * Returns metadata for dimensions and metrics available in reporting methods. - * Used to explore the dimensions and metrics. In this method, a Google - * Analytics GA4 Property Identifier is specified in the request, and - * the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - * For example if a custom metric with parameter name `levels_unlocked` is - * registered to a property, the Metadata response will contain - * `customEvent:levels_unlocked`. Universal metadata are dimensions and - * metrics applicable to any property such as `country` and `totalUsers`. - * - * The async variant is {@see BetaAnalyticsDataClient::getMetadataAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/get_metadata.php - * - * @param GetMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Metadata - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMetadata(GetMetadataRequest $request, array $callOptions = []): Metadata - { - return $this->startApiCall('GetMetadata', $request, $callOptions)->wait(); - } - - /** - * Lists all audience exports for a property. This method can be used for you - * to find and reuse existing audience exports rather than creating - * unnecessary new audience exports. The same audience can have multiple - * audience exports that represent the export of users that were in an - * audience on different days. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see BetaAnalyticsDataClient::listAudienceExportsAsync()} - * . - * - * @example samples/V1beta/BetaAnalyticsDataClient/list_audience_exports.php - * - * @param ListAudienceExportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listAudienceExports(ListAudienceExportsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAudienceExports', $request, $callOptions); - } - - /** - * Retrieves an audience export of users. After creating an audience, the - * users are not immediately available for exporting. First, a request to - * `CreateAudienceExport` is necessary to create an audience export of users, - * and then second, this method is used to retrieve the users in the audience - * export. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * The async variant is {@see BetaAnalyticsDataClient::queryAudienceExportAsync()} - * . - * - * @example samples/V1beta/BetaAnalyticsDataClient/query_audience_export.php - * - * @param QueryAudienceExportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return QueryAudienceExportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryAudienceExport(QueryAudienceExportRequest $request, array $callOptions = []): QueryAudienceExportResponse - { - return $this->startApiCall('QueryAudienceExport', $request, $callOptions)->wait(); - } - - /** - * Returns a customized pivot report of your Google Analytics event data. - * Pivot reports are more advanced and expressive formats than regular - * reports. In a pivot report, dimensions are only visible if they are - * included in a pivot. Multiple pivots can be specified to further dissect - * your data. - * - * The async variant is {@see BetaAnalyticsDataClient::runPivotReportAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php - * - * @param RunPivotReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunPivotReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runPivotReport(RunPivotReportRequest $request, array $callOptions = []): RunPivotReportResponse - { - return $this->startApiCall('RunPivotReport', $request, $callOptions)->wait(); - } - - /** - * Returns a customized report of realtime event data for your property. - * Events appear in realtime reports seconds after they have been sent to - * the Google Analytics. Realtime reports show events and usage data for the - * periods of time ranging from the present moment to 30 minutes ago (up to - * 60 minutes for Google Analytics 360 properties). - * - * For a guide to constructing realtime requests & understanding responses, - * see [Creating a Realtime - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). - * - * The async variant is {@see BetaAnalyticsDataClient::runRealtimeReportAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php - * - * @param RunRealtimeReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunRealtimeReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runRealtimeReport(RunRealtimeReportRequest $request, array $callOptions = []): RunRealtimeReportResponse - { - return $this->startApiCall('RunRealtimeReport', $request, $callOptions)->wait(); - } - - /** - * Returns a customized report of your Google Analytics event data. Reports - * contain statistics derived from data collected by the Google Analytics - * tracking code. The data returned from the API is as a table with columns - * for the requested dimensions and metrics. Metrics are individual - * measurements of user activity on your property, such as active users or - * event count. Dimensions break down metrics across some common criteria, - * such as country or event name. - * - * For a guide to constructing requests & understanding responses, see - * [Creating a - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). - * - * The async variant is {@see BetaAnalyticsDataClient::runReportAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/run_report.php - * - * @param RunReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runReport(RunReportRequest $request, array $callOptions = []): RunReportResponse - { - return $this->startApiCall('RunReport', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php deleted file mode 100644 index 4b2922e7b814..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php +++ /dev/null @@ -1,1448 +0,0 @@ -batchRunPivotReports(); - * } finally { - * $betaAnalyticsDataClient->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 - * - * @deprecated Please use the new service client {@see \Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient}. - */ -class BetaAnalyticsDataGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.analytics.data.v1beta.BetaAnalyticsData'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'analyticsdata.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'analyticsdata.UNIVERSE_DOMAIN'; - - /** 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', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private static $audienceExportNameTemplate; - - private static $metadataNameTemplate; - - private static $propertyNameTemplate; - - private static $pathTemplateMap; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/beta_analytics_data_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/beta_analytics_data_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/beta_analytics_data_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/beta_analytics_data_rest_client_config.php', - ], - ], - ]; - } - - private static function getAudienceExportNameTemplate() - { - if (self::$audienceExportNameTemplate == null) { - self::$audienceExportNameTemplate = new PathTemplate('properties/{property}/audienceExports/{audience_export}'); - } - - return self::$audienceExportNameTemplate; - } - - private static function getMetadataNameTemplate() - { - if (self::$metadataNameTemplate == null) { - self::$metadataNameTemplate = new PathTemplate('properties/{property}/metadata'); - } - - return self::$metadataNameTemplate; - } - - private static function getPropertyNameTemplate() - { - if (self::$propertyNameTemplate == null) { - self::$propertyNameTemplate = new PathTemplate('properties/{property}'); - } - - return self::$propertyNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'audienceExport' => self::getAudienceExportNameTemplate(), - 'metadata' => self::getMetadataNameTemplate(), - 'property' => self::getPropertyNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * audience_export resource. - * - * @param string $property - * @param string $audienceExport - * - * @return string The formatted audience_export resource. - * - * @experimental - */ - public static function audienceExportName($property, $audienceExport) - { - return self::getAudienceExportNameTemplate()->render([ - 'property' => $property, - 'audience_export' => $audienceExport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a metadata - * resource. - * - * @param string $property - * - * @return string The formatted metadata resource. - * - * @experimental - */ - public static function metadataName($property) - { - return self::getMetadataNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName($property) - { - return self::getPropertyNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - audienceExport: properties/{property}/audienceExports/{audience_export} - * - metadata: properties/{property}/metadata - * - property: properties/{property} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsdata.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** - * Returns multiple pivot reports in a batch. All reports must be for the same - * GA4 Property. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->batchRunPivotReports(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * - * Example: properties/1234 - * @type RunPivotReportRequest[] $requests - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\BatchRunPivotReportsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchRunPivotReports(array $optionalArgs = []) - { - $request = new BatchRunPivotReportsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['requests'])) { - $request->setRequests($optionalArgs['requests']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchRunPivotReports', BatchRunPivotReportsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns multiple reports in a batch. All reports must be for the same - * GA4 Property. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->batchRunReports(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * - * Example: properties/1234 - * @type RunReportRequest[] $requests - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\BatchRunReportsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchRunReports(array $optionalArgs = []) - { - $request = new BatchRunReportsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['requests'])) { - $request->setRequests($optionalArgs['requests']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchRunReports', BatchRunReportsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * This compatibility method lists dimensions and metrics that can be added to - * a report request and maintain compatibility. This method fails if the - * request's dimensions and metrics are incompatible. - * - * In Google Analytics, reports fail if they request incompatible dimensions - * and/or metrics; in that case, you will need to remove dimensions and/or - * metrics from the incompatible report until the report is compatible. - * - * The Realtime and Core reports have different compatibility rules. This - * method checks compatibility for Core reports. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->checkCompatibility(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * @type Metric[] $metrics - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * @type FilterExpression $dimensionFilter - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * @type FilterExpression $metricFilter - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * @type int $compatibilityFilter - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\Compatibility} - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\CheckCompatibilityResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function checkCompatibility(array $optionalArgs = []) - { - $request = new CheckCompatibilityRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['compatibilityFilter'])) { - $request->setCompatibilityFilter($optionalArgs['compatibilityFilter']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CheckCompatibility', CheckCompatibilityResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates an audience export for later retrieval. This method quickly returns - * the audience export's resource name and initiates a long running - * asynchronous request to form an audience export. To export the users in an - * audience export, first create the audience export through this method and - * then send the audience resource name to the `QueryAudienceExport` method. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * An audience export is a snapshot of the users currently in the audience at - * the time of audience export creation. Creating audience exports for one - * audience on different days will return different results as users enter and - * exit the audience. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. Audience exports - * contain the users in each audience. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $formattedParent = $betaAnalyticsDataClient->propertyName('[PROPERTY]'); - * $audienceExport = new AudienceExport(); - * $operationResponse = $betaAnalyticsDataClient->createAudienceExport($formattedParent, $audienceExport); - * $operationResponse->pollUntilComplete(); - * if ($operationResponse->operationSucceeded()) { - * $result = $operationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $operationResponse->getError(); - * // handleError($error) - * } - * // Alternatively: - * // start the operation, keep the operation name, and resume later - * $operationResponse = $betaAnalyticsDataClient->createAudienceExport($formattedParent, $audienceExport); - * $operationName = $operationResponse->getName(); - * // ... do other work - * $newOperationResponse = $betaAnalyticsDataClient->resumeOperation($operationName, 'createAudienceExport'); - * while (!$newOperationResponse->isDone()) { - * // ... do other work - * $newOperationResponse->reload(); - * } - * if ($newOperationResponse->operationSucceeded()) { - * $result = $newOperationResponse->getResult(); - * // doSomethingWith($result) - * } else { - * $error = $newOperationResponse->getError(); - * // handleError($error) - * } - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. The parent resource where this audience export will be created. - * Format: `properties/{property}` - * @param AudienceExport $audienceExport Required. The audience export to create. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\OperationResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createAudienceExport($parent, $audienceExport, array $optionalArgs = []) - { - $request = new CreateAudienceExportRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setAudienceExport($audienceExport); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startOperationsCall('CreateAudienceExport', $optionalArgs, $request, $this->getOperationsClient())->wait(); - } - - /** - * Gets configuration metadata about a specific audience export. This method - * can be used to understand an audience export after it has been created. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $formattedName = $betaAnalyticsDataClient->audienceExportName('[PROPERTY]', '[AUDIENCE_EXPORT]'); - * $response = $betaAnalyticsDataClient->getAudienceExport($formattedName); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The audience export resource name. - * Format: `properties/{property}/audienceExports/{audience_export}` - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\AudienceExport - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getAudienceExport($name, array $optionalArgs = []) - { - $request = new GetAudienceExportRequest(); - $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('GetAudienceExport', AudienceExport::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns metadata for dimensions and metrics available in reporting methods. - * Used to explore the dimensions and metrics. In this method, a Google - * Analytics GA4 Property Identifier is specified in the request, and - * the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - * For example if a custom metric with parameter name `levels_unlocked` is - * registered to a property, the Metadata response will contain - * `customEvent:levels_unlocked`. Universal metadata are dimensions and - * metrics applicable to any property such as `country` and `totalUsers`. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $formattedName = $betaAnalyticsDataClient->metadataName('[PROPERTY]'); - * $response = $betaAnalyticsDataClient->getMetadata($formattedName); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * - * Example: properties/1234/metadata - * - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\Metadata - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getMetadata($name, array $optionalArgs = []) - { - $request = new GetMetadataRequest(); - $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('GetMetadata', Metadata::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all audience exports for a property. This method can be used for you - * to find and reuse existing audience exports rather than creating - * unnecessary new audience exports. The same audience can have multiple - * audience exports that represent the export of users that were in an - * audience on different days. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $formattedParent = $betaAnalyticsDataClient->propertyName('[PROPERTY]'); - * // Iterate over pages of elements - * $pagedResponse = $betaAnalyticsDataClient->listAudienceExports($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $betaAnalyticsDataClient->listAudienceExports($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $parent Required. All audience exports for this property will be listed in the - * response. Format: `properties/{property}` - * @param array $optionalArgs { - * Optional. - * - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listAudienceExports($parent, array $optionalArgs = []) - { - $request = new ListAudienceExportsRequest(); - $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('ListAudienceExports', $optionalArgs, ListAudienceExportsResponse::class, $request); - } - - /** - * Retrieves an audience export of users. After creating an audience, the - * users are not immediately available for exporting. First, a request to - * `CreateAudienceExport` is necessary to create an audience export of users, - * and then second, this method is used to retrieve the users in the audience - * export. - * - * See [Creating an Audience - * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) - * for an introduction to Audience Exports with examples. - * - * Audiences in Google Analytics 4 allow you to segment your users in the ways - * that are important to your business. To learn more, see - * https://support.google.com/analytics/answer/9267572. - * - * Audience Export APIs have some methods at alpha and other methods at beta - * stability. The intention is to advance methods to beta stability after some - * feedback and adoption. To give your feedback on this API, complete the - * [Google Analytics Audience Export API - * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $name = 'name'; - * $response = $betaAnalyticsDataClient->queryAudienceExport($name); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The name of the audience export to retrieve users from. - * Format: `properties/{property}/audienceExports/{audience_export}` - * @param array $optionalArgs { - * Optional. - * - * @type int $offset - * Optional. The row count of the start row. The first row is counted as row - * 0. - * - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * Optional. The number of rows to return. If unspecified, 10,000 rows are - * returned. The API returns a maximum of 250,000 rows per request, no matter - * how many you ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\QueryAudienceExportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function queryAudienceExport($name, array $optionalArgs = []) - { - $request = new QueryAudienceExportRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('QueryAudienceExport', QueryAudienceExportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized pivot report of your Google Analytics event data. - * Pivot reports are more advanced and expressive formats than regular - * reports. In a pivot report, dimensions are only visible if they are - * included in a pivot. Multiple pivots can be specified to further dissect - * your data. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->runPivotReport(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * @type Metric[] $metrics - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * @type DateRange[] $dateRanges - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * @type Pivot[] $pivots - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * @type FilterExpression $dimensionFilter - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * @type FilterExpression $metricFilter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * @type string $currencyCode - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type CohortSpec $cohortSpec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keepEmptyRows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $returnPropertyQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type Comparison[] $comparisons - * Optional. The configuration of comparisons requested and displayed. The - * request requires both a comparisons field and a comparisons dimension to - * receive a comparison column in the response. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\RunPivotReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runPivotReport(array $optionalArgs = []) - { - $request = new RunPivotReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['pivots'])) { - $request->setPivots($optionalArgs['pivots']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['currencyCode'])) { - $request->setCurrencyCode($optionalArgs['currencyCode']); - } - - if (isset($optionalArgs['cohortSpec'])) { - $request->setCohortSpec($optionalArgs['cohortSpec']); - } - - if (isset($optionalArgs['keepEmptyRows'])) { - $request->setKeepEmptyRows($optionalArgs['keepEmptyRows']); - } - - if (isset($optionalArgs['returnPropertyQuota'])) { - $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); - } - - if (isset($optionalArgs['comparisons'])) { - $request->setComparisons($optionalArgs['comparisons']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunPivotReport', RunPivotReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of realtime event data for your property. - * Events appear in realtime reports seconds after they have been sent to - * the Google Analytics. Realtime reports show events and usage data for the - * periods of time ranging from the present moment to 30 minutes ago (up to - * 60 minutes for Google Analytics 360 properties). - * - * For a guide to constructing realtime requests & understanding responses, - * see [Creating a Realtime - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->runRealtimeReport(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions requested and displayed. - * @type Metric[] $metrics - * The metrics requested and displayed. - * @type FilterExpression $dimensionFilter - * The filter clause of dimensions. Metrics cannot be used in this filter. - * @type FilterExpression $metricFilter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * @type int[] $metricAggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\MetricAggregation} - * @type OrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type bool $returnPropertyQuota - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type MinuteRange[] $minuteRanges - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\RunRealtimeReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runRealtimeReport(array $optionalArgs = []) - { - $request = new RunRealtimeReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['metricAggregations'])) { - $request->setMetricAggregations($optionalArgs['metricAggregations']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['returnPropertyQuota'])) { - $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); - } - - if (isset($optionalArgs['minuteRanges'])) { - $request->setMinuteRanges($optionalArgs['minuteRanges']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunRealtimeReport', RunRealtimeReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of your Google Analytics event data. Reports - * contain statistics derived from data collected by the Google Analytics - * tracking code. The data returned from the API is as a table with columns - * for the requested dimensions and metrics. Metrics are individual - * measurements of user activity on your property, such as active users or - * event count. Dimensions break down metrics across some common criteria, - * such as country or event name. - * - * For a guide to constructing requests & understanding responses, see - * [Creating a - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->runReport(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions requested and displayed. - * @type Metric[] $metrics - * The metrics requested and displayed. - * @type DateRange[] $dateRanges - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * @type FilterExpression $dimensionFilter - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type FilterExpression $metricFilter - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * @type int $offset - * The row count of the start row. The first row is counted as row 0. - * - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int[] $metricAggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\MetricAggregation} - * @type OrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type string $currencyCode - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type CohortSpec $cohortSpec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keepEmptyRows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $returnPropertyQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type Comparison[] $comparisons - * Optional. The configuration of comparisons requested and displayed. The - * request only requires a comparisons field in order to receive a comparison - * column in the response. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\RunReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runReport(array $optionalArgs = []) - { - $request = new RunReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['metricAggregations'])) { - $request->setMetricAggregations($optionalArgs['metricAggregations']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['currencyCode'])) { - $request->setCurrencyCode($optionalArgs['currencyCode']); - } - - if (isset($optionalArgs['cohortSpec'])) { - $request->setCohortSpec($optionalArgs['cohortSpec']); - } - - if (isset($optionalArgs['keepEmptyRows'])) { - $request->setKeepEmptyRows($optionalArgs['keepEmptyRows']); - } - - if (isset($optionalArgs['returnPropertyQuota'])) { - $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); - } - - if (isset($optionalArgs['comparisons'])) { - $request->setComparisons($optionalArgs['comparisons']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunReport', RunReportResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index 335b5f181e54..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.analytics.data.v1beta", - "libraryPackage": "Google\\Analytics\\Data\\V1beta", - "services": { - "BetaAnalyticsData": { - "clients": { - "grpc": { - "libraryClient": "BetaAnalyticsDataGapicClient", - "rpcs": { - "BatchRunPivotReports": { - "methods": [ - "batchRunPivotReports" - ] - }, - "BatchRunReports": { - "methods": [ - "batchRunReports" - ] - }, - "CheckCompatibility": { - "methods": [ - "checkCompatibility" - ] - }, - "CreateAudienceExport": { - "methods": [ - "createAudienceExport" - ] - }, - "GetAudienceExport": { - "methods": [ - "getAudienceExport" - ] - }, - "GetMetadata": { - "methods": [ - "getMetadata" - ] - }, - "ListAudienceExports": { - "methods": [ - "listAudienceExports" - ] - }, - "QueryAudienceExport": { - "methods": [ - "queryAudienceExport" - ] - }, - "RunPivotReport": { - "methods": [ - "runPivotReport" - ] - }, - "RunRealtimeReport": { - "methods": [ - "runRealtimeReport" - ] - }, - "RunReport": { - "methods": [ - "runReport" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json deleted file mode 100644 index b0f3237c5d3e..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "interfaces": { - "google.analytics.data.v1beta.BetaAnalyticsData": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "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": { - "BatchRunPivotReports": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "BatchRunReports": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CheckCompatibility": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAudienceExport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAudienceExport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAudienceExports": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryAudienceExport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RunPivotReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RunRealtimeReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RunReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php deleted file mode 100644 index d98545e85788..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php +++ /dev/null @@ -1,180 +0,0 @@ - [ - 'google.analytics.data.v1beta.BetaAnalyticsData' => [ - 'CreateAudienceExport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Analytics\Data\V1beta\AudienceExport', - 'metadataReturnType' => '\Google\Analytics\Data\V1beta\AudienceExportMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchRunPivotReports' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\BatchRunPivotReportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'BatchRunReports' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\BatchRunReportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'CheckCompatibility' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\CheckCompatibilityResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'GetAudienceExport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\AudienceExport', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadata' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\Metadata', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAudienceExports' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAudienceExports', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\ListAudienceExportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'QueryAudienceExport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\QueryAudienceExportResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RunPivotReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\RunPivotReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'RunRealtimeReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\RunRealtimeReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'RunReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\RunReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'templateMap' => [ - 'audienceExport' => 'properties/{property}/audienceExports/{audience_export}', - 'metadata' => 'properties/{property}/metadata', - 'property' => 'properties/{property}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php deleted file mode 100644 index d4183f113c4d..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php +++ /dev/null @@ -1,158 +0,0 @@ - [ - 'google.analytics.data.v1beta.BetaAnalyticsData' => [ - 'BatchRunPivotReports' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:batchRunPivotReports', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'BatchRunReports' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:batchRunReports', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'CheckCompatibility' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:checkCompatibility', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'CreateAudienceExport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=properties/*}/audienceExports', - 'body' => 'audience_export', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetAudienceExport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/audienceExports/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadata' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/metadata}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAudienceExports' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=properties/*}/audienceExports', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'QueryAudienceExport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=properties/*/audienceExports/*}:query', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RunPivotReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:runPivotReport', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'RunRealtimeReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:runRealtimeReport', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'RunReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:runReport', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php deleted file mode 100644 index 7b3d2e65321a..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php +++ /dev/null @@ -1,803 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BetaAnalyticsDataClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BetaAnalyticsDataClient($options); - } - - /** @test */ - public function batchRunPivotReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunPivotReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->batchRunPivotReports(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunPivotReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->batchRunPivotReports(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->batchRunReports(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->batchRunReports(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CheckCompatibilityResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->checkCompatibility(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->checkCompatibility(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceExportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceExportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $expectedResponse = new AudienceExport(); - $expectedResponse->setName($name); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAudienceExportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceExport = new AudienceExport(); - $audienceExportAudience = 'audienceExportAudience1191136508'; - $audienceExport->setAudience($audienceExportAudience); - $audienceExportDimensions = []; - $audienceExport->setDimensions($audienceExportDimensions); - $response = $gapicClient->createAudienceExport($formattedParent, $audienceExport); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CreateAudienceExport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAudienceExport(); - $this->assertProtobufEquals($audienceExport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceExportTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAudienceExportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceExportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceExport = new AudienceExport(); - $audienceExportAudience = 'audienceExportAudience1191136508'; - $audienceExport->setAudience($audienceExportAudience); - $audienceExportDimensions = []; - $audienceExport->setDimensions($audienceExportDimensions); - $response = $gapicClient->createAudienceExport($formattedParent, $audienceExport); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceExportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getAudienceExportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $expectedResponse = new AudienceExport(); - $expectedResponse->setName($name2); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceExportName('[PROPERTY]', '[AUDIENCE_EXPORT]'); - $response = $gapicClient->getAudienceExport($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.data.v1beta.BetaAnalyticsData/GetAudienceExport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceExportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceExportName('[PROPERTY]', '[AUDIENCE_EXPORT]'); - try { - $gapicClient->getAudienceExport($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Metadata(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - $response = $gapicClient->getMetadata($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.data.v1beta.BetaAnalyticsData/GetMetadata', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - try { - $gapicClient->getMetadata($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceExportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $audienceExportsElement = new AudienceExport(); - $audienceExports = [ - $audienceExportsElement, - ]; - $expectedResponse = new ListAudienceExportsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAudienceExports($audienceExports); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listAudienceExports($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAudienceExports()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/ListAudienceExports', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceExportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - try { - $gapicClient->listAudienceExports($formattedParent); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceExportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new QueryAudienceExportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $response = $gapicClient->queryAudienceExport($name); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/QueryAudienceExport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceExportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - try { - $gapicClient->queryAudienceExport($name); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new RunPivotReportResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runPivotReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runPivotReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunRealtimeReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runRealtimeReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runRealtimeReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php deleted file mode 100644 index 57d3ff4db252..000000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php +++ /dev/null @@ -1,872 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BetaAnalyticsDataClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BetaAnalyticsDataClient($options); - } - - /** @test */ - public function batchRunPivotReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunPivotReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new BatchRunPivotReportsRequest(); - $response = $gapicClient->batchRunPivotReports($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunPivotReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new BatchRunPivotReportsRequest(); - try { - $gapicClient->batchRunPivotReports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new BatchRunReportsRequest(); - $response = $gapicClient->batchRunReports($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new BatchRunReportsRequest(); - try { - $gapicClient->batchRunReports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CheckCompatibilityResponse(); - $transport->addResponse($expectedResponse); - $request = new CheckCompatibilityRequest(); - $response = $gapicClient->checkCompatibility($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CheckCompatibilityRequest(); - try { - $gapicClient->checkCompatibility($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAudienceExportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceExportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $expectedResponse = new AudienceExport(); - $expectedResponse->setName($name); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAudienceExportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceExport = new AudienceExport(); - $audienceExportAudience = 'audienceExportAudience1191136508'; - $audienceExport->setAudience($audienceExportAudience); - $audienceExportDimensions = []; - $audienceExport->setDimensions($audienceExportDimensions); - $request = (new CreateAudienceExportRequest()) - ->setParent($formattedParent) - ->setAudienceExport($audienceExport); - $response = $gapicClient->createAudienceExport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CreateAudienceExport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAudienceExport(); - $this->assertProtobufEquals($audienceExport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceExportTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAudienceExportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAudienceExportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $audienceExport = new AudienceExport(); - $audienceExportAudience = 'audienceExportAudience1191136508'; - $audienceExport->setAudience($audienceExportAudience); - $audienceExportDimensions = []; - $audienceExport->setDimensions($audienceExportDimensions); - $request = (new CreateAudienceExportRequest()) - ->setParent($formattedParent) - ->setAudienceExport($audienceExport); - $response = $gapicClient->createAudienceExport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAudienceExportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getAudienceExportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $audience = 'audience975628804'; - $audienceDisplayName = 'audienceDisplayName406858307'; - $creationQuotaTokensCharged = 1232901266; - $rowCount = 1340416618; - $errorMessage = 'errorMessage-1938755376'; - $percentageCompleted = -1.29204764E8; - $expectedResponse = new AudienceExport(); - $expectedResponse->setName($name2); - $expectedResponse->setAudience($audience); - $expectedResponse->setAudienceDisplayName($audienceDisplayName); - $expectedResponse->setCreationQuotaTokensCharged($creationQuotaTokensCharged); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setErrorMessage($errorMessage); - $expectedResponse->setPercentageCompleted($percentageCompleted); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->audienceExportName('[PROPERTY]', '[AUDIENCE_EXPORT]'); - $request = (new GetAudienceExportRequest()) - ->setName($formattedName); - $response = $gapicClient->getAudienceExport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/GetAudienceExport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAudienceExportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->audienceExportName('[PROPERTY]', '[AUDIENCE_EXPORT]'); - $request = (new GetAudienceExportRequest()) - ->setName($formattedName); - try { - $gapicClient->getAudienceExport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Metadata(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - $request = (new GetMetadataRequest()) - ->setName($formattedName); - $response = $gapicClient->getMetadata($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - $request = (new GetMetadataRequest()) - ->setName($formattedName); - try { - $gapicClient->getMetadata($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceExportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $audienceExportsElement = new AudienceExport(); - $audienceExports = [ - $audienceExportsElement, - ]; - $expectedResponse = new ListAudienceExportsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAudienceExports($audienceExports); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAudienceExportsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAudienceExports($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAudienceExports()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/ListAudienceExports', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAudienceExportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $request = (new ListAudienceExportsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAudienceExports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceExportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $expectedResponse = new QueryAudienceExportResponse(); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new QueryAudienceExportRequest()) - ->setName($name); - $response = $gapicClient->queryAudienceExport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/QueryAudienceExport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAudienceExportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new QueryAudienceExportRequest()) - ->setName($name); - try { - $gapicClient->queryAudienceExport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new RunPivotReportResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new RunPivotReportRequest(); - $response = $gapicClient->runPivotReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunPivotReportRequest(); - try { - $gapicClient->runPivotReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunRealtimeReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new RunRealtimeReportRequest(); - $response = $gapicClient->runRealtimeReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunRealtimeReportRequest(); - try { - $gapicClient->runRealtimeReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new RunReportRequest(); - $response = $gapicClient->runReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunReportRequest(); - try { - $gapicClient->runReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunPivotReportsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunPivotReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new BatchRunPivotReportsRequest(); - $response = $gapicClient->batchRunPivotReportsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/GPBMetadata/Google/Cloud/Apigateway/V1/Apigateway.php b/owl-bot-staging/ApiGateway/v1/proto/src/GPBMetadata/Google/Cloud/Apigateway/V1/Apigateway.php deleted file mode 100644 index ea76ae18210b..000000000000 Binary files a/owl-bot-staging/ApiGateway/v1/proto/src/GPBMetadata/Google/Cloud/Apigateway/V1/Apigateway.php and /dev/null differ diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/GPBMetadata/Google/Cloud/Apigateway/V1/ApigatewayService.php b/owl-bot-staging/ApiGateway/v1/proto/src/GPBMetadata/Google/Cloud/Apigateway/V1/ApigatewayService.php deleted file mode 100644 index 25bf93b0a396..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/GPBMetadata/Google/Cloud/Apigateway/V1/ApigatewayService.php +++ /dev/null @@ -1,59 +0,0 @@ -internalAddGeneratedFile( - ' - -3google/cloud/apigateway/v1/apigateway_service.protogoogle.cloud.apigateway.v1google/api/client.proto+google/cloud/apigateway/v1/apigateway.proto#google/longrunning/operations.proto2 -ApiGatewayService - ListGateways/.google.cloud.apigateway.v1.ListGatewaysRequest0.google.cloud.apigateway.v1.ListGatewaysResponse"=Aparent.,/v1/{parent=projects/*/locations/*}/gateways - -GetGateway-.google.cloud.apigateway.v1.GetGatewayRequest#.google.cloud.apigateway.v1.Gateway";Aname.,/v1/{name=projects/*/locations/*/gateways/*} - CreateGateway0.google.cloud.apigateway.v1.CreateGatewayRequest.google.longrunning.Operation"xA -GatewayOperationMetadataAparent,gateway,gateway_id7",/v1/{parent=projects/*/locations/*}/gateways:gateway - UpdateGateway0.google.cloud.apigateway.v1.UpdateGatewayRequest.google.longrunning.Operation"zA -GatewayOperationMetadataAgateway,update_mask?24/v1/{gateway.name=projects/*/locations/*/gateways/*}:gateway - DeleteGateway0.google.cloud.apigateway.v1.DeleteGatewayRequest.google.longrunning.Operation"hA* -google.protobuf.EmptyOperationMetadataAname.*,/v1/{name=projects/*/locations/*/gateways/*} -ListApis+.google.cloud.apigateway.v1.ListApisRequest,.google.cloud.apigateway.v1.ListApisResponse"9Aparent*(/v1/{parent=projects/*/locations/*}/apis -GetApi).google.cloud.apigateway.v1.GetApiRequest.google.cloud.apigateway.v1.Api"7Aname*(/v1/{name=projects/*/locations/*/apis/*} - CreateApi,.google.cloud.apigateway.v1.CreateApiRequest.google.longrunning.Operation"dA -ApiOperationMetadataAparent,api,api_id/"(/v1/{parent=projects/*/locations/*}/apis:api - UpdateApi,.google.cloud.apigateway.v1.UpdateApiRequest.google.longrunning.Operation"fA -ApiOperationMetadataAapi,update_mask32,/v1/{api.name=projects/*/locations/*/apis/*}:api - DeleteApi,.google.cloud.apigateway.v1.DeleteApiRequest.google.longrunning.Operation"dA* -google.protobuf.EmptyOperationMetadataAname**(/v1/{name=projects/*/locations/*/apis/*} -ListApiConfigs1.google.cloud.apigateway.v1.ListApiConfigsRequest2.google.cloud.apigateway.v1.ListApiConfigsResponse"CAparent42/v1/{parent=projects/*/locations/*/apis/*}/configs - GetApiConfig/.google.cloud.apigateway.v1.GetApiConfigRequest%.google.cloud.apigateway.v1.ApiConfig"AAname42/v1/{name=projects/*/locations/*/apis/*/configs/*} -CreateApiConfig2.google.cloud.apigateway.v1.CreateApiConfigRequest.google.longrunning.Operation"A - ApiConfigOperationMetadataAparent,api_config,api_config_id@"2/v1/{parent=projects/*/locations/*/apis/*}/configs: -api_config -UpdateApiConfig2.google.cloud.apigateway.v1.UpdateApiConfigRequest.google.longrunning.Operation"A - ApiConfigOperationMetadataAapi_config,update_maskK2=/v1/{api_config.name=projects/*/locations/*/apis/*/configs/*}: -api_config -DeleteApiConfig2.google.cloud.apigateway.v1.DeleteApiConfigRequest.google.longrunning.Operation"nA* -google.protobuf.EmptyOperationMetadataAname4*2/v1/{name=projects/*/locations/*/apis/*/configs/*}MAapigateway.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -com.google.cloud.apigateway.v1PZ>cloud.google.com/go/apigateway/apiv1/apigatewaypb;apigatewaypbGoogle.Cloud.ApiGateway.V1Google\\Cloud\\ApiGateway\\V1Google::Cloud::ApiGateway::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Api.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Api.php deleted file mode 100644 index e14cb3b4b281..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Api.php +++ /dev/null @@ -1,315 +0,0 @@ -google.cloud.apigateway.v1.Api - */ -class Api extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the API. - * Format: projects/{project}/locations/global/apis/{api} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Created time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Immutable. The name of a Google Managed Service ( - * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If - * not specified, a new Service will automatically be created in the same - * project as this API. - * - * Generated from protobuf field string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $managed_service = ''; - /** - * Output only. State of the API. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the API. - * Format: projects/{project}/locations/global/apis/{api} - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Created time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Updated time. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * @type string $display_name - * Optional. Display name. - * @type string $managed_service - * Optional. Immutable. The name of a Google Managed Service ( - * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If - * not specified, a new Service will automatically be created in the same - * project as this API. - * @type int $state - * Output only. State of the API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the API. - * Format: projects/{project}/locations/global/apis/{api} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the API. - * Format: projects/{project}/locations/global/apis/{api} - * - * 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. Created time. - * - * 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. Created time. - * - * 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. Updated time. - * - * 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. Updated time. - * - * 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; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Immutable. The name of a Google Managed Service ( - * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If - * not specified, a new Service will automatically be created in the same - * project as this API. - * - * Generated from protobuf field string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getManagedService() - { - return $this->managed_service; - } - - /** - * Optional. Immutable. The name of a Google Managed Service ( - * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If - * not specified, a new Service will automatically be created in the same - * project as this API. - * - * Generated from protobuf field string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setManagedService($var) - { - GPBUtil::checkString($var, True); - $this->managed_service = $var; - - return $this; - } - - /** - * Output only. State of the API. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the API. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiGateway\V1\Api\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Api/State.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Api/State.php deleted file mode 100644 index b816c50d2b4d..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Api/State.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.apigateway.v1.Api.State - */ -class State -{ - /** - * API does not have a state yet. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * API is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * API is active. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * API creation failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * API is being deleted. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * API is being updated. - * - * Generated from protobuf enum UPDATING = 5; - */ - const UPDATING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - self::DELETING => 'DELETING', - self::UPDATING => 'UPDATING', - ]; - - 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(State::class, \Google\Cloud\ApiGateway\V1\Api_State::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig.php deleted file mode 100644 index aed103da9d18..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig.php +++ /dev/null @@ -1,516 +0,0 @@ -google.cloud.apigateway.v1.ApiConfig - */ -class ApiConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the API Config. - * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Created time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Immutable. The Google Cloud IAM Service Account that Gateways serving this config - * should use to authenticate to other services. This may either be the - * Service Account's email - * (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource - * name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used - * when the service is a GCP resource such as a Cloud Run Service or an - * IAP-secured service. - * - * Generated from protobuf field string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $gateway_service_account = ''; - /** - * Output only. The ID of the associated Service Config ( - * https://cloud.google.com/service-infrastructure/docs/glossary#config). - * - * Generated from protobuf field string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $service_config_id = ''; - /** - * Output only. State of the API Config. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. OpenAPI specification documents. If specified, grpc_services and - * managed_service_configs must not be included. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $openapi_documents; - /** - * Optional. gRPC service definition files. If specified, openapi_documents must - * not be included. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $grpc_services; - /** - * Optional. Service Configuration files. At least one must be included when using gRPC - * service definitions. See - * https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview - * for the expected file contents. - * If multiple files are specified, the files are merged with the following - * rules: - * * All singular scalar fields are merged using "last one wins" semantics in - * the order of the files uploaded. - * * Repeated fields are concatenated. - * * Singular embedded messages are merged using these rules for nested - * fields. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $managed_service_configs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the API Config. - * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config} - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Created time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Updated time. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * @type string $display_name - * Optional. Display name. - * @type string $gateway_service_account - * Immutable. The Google Cloud IAM Service Account that Gateways serving this config - * should use to authenticate to other services. This may either be the - * Service Account's email - * (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource - * name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used - * when the service is a GCP resource such as a Cloud Run Service or an - * IAP-secured service. - * @type string $service_config_id - * Output only. The ID of the associated Service Config ( - * https://cloud.google.com/service-infrastructure/docs/glossary#config). - * @type int $state - * Output only. State of the API Config. - * @type array<\Google\Cloud\ApiGateway\V1\ApiConfig\OpenApiDocument>|\Google\Protobuf\Internal\RepeatedField $openapi_documents - * Optional. OpenAPI specification documents. If specified, grpc_services and - * managed_service_configs must not be included. - * @type array<\Google\Cloud\ApiGateway\V1\ApiConfig\GrpcServiceDefinition>|\Google\Protobuf\Internal\RepeatedField $grpc_services - * Optional. gRPC service definition files. If specified, openapi_documents must - * not be included. - * @type array<\Google\Cloud\ApiGateway\V1\ApiConfig\File>|\Google\Protobuf\Internal\RepeatedField $managed_service_configs - * Optional. Service Configuration files. At least one must be included when using gRPC - * service definitions. See - * https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview - * for the expected file contents. - * If multiple files are specified, the files are merged with the following - * rules: - * * All singular scalar fields are merged using "last one wins" semantics in - * the order of the files uploaded. - * * Repeated fields are concatenated. - * * Singular embedded messages are merged using these rules for nested - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the API Config. - * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the API Config. - * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config} - * - * 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. Created time. - * - * 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. Created time. - * - * 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. Updated time. - * - * 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. Updated time. - * - * 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; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Immutable. The Google Cloud IAM Service Account that Gateways serving this config - * should use to authenticate to other services. This may either be the - * Service Account's email - * (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource - * name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used - * when the service is a GCP resource such as a Cloud Run Service or an - * IAP-secured service. - * - * Generated from protobuf field string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getGatewayServiceAccount() - { - return $this->gateway_service_account; - } - - /** - * Immutable. The Google Cloud IAM Service Account that Gateways serving this config - * should use to authenticate to other services. This may either be the - * Service Account's email - * (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource - * name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used - * when the service is a GCP resource such as a Cloud Run Service or an - * IAP-secured service. - * - * Generated from protobuf field string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setGatewayServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->gateway_service_account = $var; - - return $this; - } - - /** - * Output only. The ID of the associated Service Config ( - * https://cloud.google.com/service-infrastructure/docs/glossary#config). - * - * Generated from protobuf field string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getServiceConfigId() - { - return $this->service_config_id; - } - - /** - * Output only. The ID of the associated Service Config ( - * https://cloud.google.com/service-infrastructure/docs/glossary#config). - * - * Generated from protobuf field string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServiceConfigId($var) - { - GPBUtil::checkString($var, True); - $this->service_config_id = $var; - - return $this; - } - - /** - * Output only. State of the API Config. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the API Config. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiGateway\V1\ApiConfig\State::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. OpenAPI specification documents. If specified, grpc_services and - * managed_service_configs must not be included. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOpenapiDocuments() - { - return $this->openapi_documents; - } - - /** - * Optional. OpenAPI specification documents. If specified, grpc_services and - * managed_service_configs must not be included. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\ApiGateway\V1\ApiConfig\OpenApiDocument>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOpenapiDocuments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\ApiConfig\OpenApiDocument::class); - $this->openapi_documents = $arr; - - return $this; - } - - /** - * Optional. gRPC service definition files. If specified, openapi_documents must - * not be included. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGrpcServices() - { - return $this->grpc_services; - } - - /** - * Optional. gRPC service definition files. If specified, openapi_documents must - * not be included. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\ApiGateway\V1\ApiConfig\GrpcServiceDefinition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGrpcServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\ApiConfig\GrpcServiceDefinition::class); - $this->grpc_services = $arr; - - return $this; - } - - /** - * Optional. Service Configuration files. At least one must be included when using gRPC - * service definitions. See - * https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview - * for the expected file contents. - * If multiple files are specified, the files are merged with the following - * rules: - * * All singular scalar fields are merged using "last one wins" semantics in - * the order of the files uploaded. - * * Repeated fields are concatenated. - * * Singular embedded messages are merged using these rules for nested - * fields. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getManagedServiceConfigs() - { - return $this->managed_service_configs; - } - - /** - * Optional. Service Configuration files. At least one must be included when using gRPC - * service definitions. See - * https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview - * for the expected file contents. - * If multiple files are specified, the files are merged with the following - * rules: - * * All singular scalar fields are merged using "last one wins" semantics in - * the order of the files uploaded. - * * Repeated fields are concatenated. - * * Singular embedded messages are merged using these rules for nested - * fields. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\ApiGateway\V1\ApiConfig\File>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setManagedServiceConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\ApiConfig\File::class); - $this->managed_service_configs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/File.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/File.php deleted file mode 100644 index 62ae75039317..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/File.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.apigateway.v1.ApiConfig.File - */ -class File extends \Google\Protobuf\Internal\Message -{ - /** - * The file path (full or relative path). This is typically the path of the - * file when it is uploaded. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * The bytes that constitute the file. - * - * Generated from protobuf field bytes contents = 2; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * The file path (full or relative path). This is typically the path of the - * file when it is uploaded. - * @type string $contents - * The bytes that constitute the file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * The file path (full or relative path). This is typically the path of the - * file when it is uploaded. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The file path (full or relative path). This is typically the path of the - * file when it is uploaded. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * The bytes that constitute the file. - * - * Generated from protobuf field bytes contents = 2; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * The bytes that constitute the file. - * - * Generated from protobuf field bytes contents = 2; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(File::class, \Google\Cloud\ApiGateway\V1\ApiConfig_File::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/GrpcServiceDefinition.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/GrpcServiceDefinition.php deleted file mode 100644 index 2983bff73a57..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/GrpcServiceDefinition.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition - */ -class GrpcServiceDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. File descriptor set, generated by protoc. - * To generate, use protoc with imports and source info included. - * For an example test.proto file, the following command would put the value - * in a new file named out.pb. - * $ protoc --include_imports --include_source_info test.proto -o out.pb - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $file_descriptor_set = null; - /** - * Optional. Uncompiled proto files associated with the descriptor set, used for - * display purposes (server-side compilation is not supported). These - * should match the inputs to 'protoc' command used to generate - * file_descriptor_set. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiGateway\V1\ApiConfig\File $file_descriptor_set - * Input only. File descriptor set, generated by protoc. - * To generate, use protoc with imports and source info included. - * For an example test.proto file, the following command would put the value - * in a new file named out.pb. - * $ protoc --include_imports --include_source_info test.proto -o out.pb - * @type array<\Google\Cloud\ApiGateway\V1\ApiConfig\File>|\Google\Protobuf\Internal\RepeatedField $source - * Optional. Uncompiled proto files associated with the descriptor set, used for - * display purposes (server-side compilation is not supported). These - * should match the inputs to 'protoc' command used to generate - * file_descriptor_set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Input only. File descriptor set, generated by protoc. - * To generate, use protoc with imports and source info included. - * For an example test.proto file, the following command would put the value - * in a new file named out.pb. - * $ protoc --include_imports --include_source_info test.proto -o out.pb - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\ApiGateway\V1\ApiConfig\File|null - */ - public function getFileDescriptorSet() - { - return $this->file_descriptor_set; - } - - public function hasFileDescriptorSet() - { - return isset($this->file_descriptor_set); - } - - public function clearFileDescriptorSet() - { - unset($this->file_descriptor_set); - } - - /** - * Input only. File descriptor set, generated by protoc. - * To generate, use protoc with imports and source info included. - * For an example test.proto file, the following command would put the value - * in a new file named out.pb. - * $ protoc --include_imports --include_source_info test.proto -o out.pb - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\ApiGateway\V1\ApiConfig\File $var - * @return $this - */ - public function setFileDescriptorSet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\ApiConfig\File::class); - $this->file_descriptor_set = $var; - - return $this; - } - - /** - * Optional. Uncompiled proto files associated with the descriptor set, used for - * display purposes (server-side compilation is not supported). These - * should match the inputs to 'protoc' command used to generate - * file_descriptor_set. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSource() - { - return $this->source; - } - - /** - * Optional. Uncompiled proto files associated with the descriptor set, used for - * display purposes (server-side compilation is not supported). These - * should match the inputs to 'protoc' command used to generate - * file_descriptor_set. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\ApiGateway\V1\ApiConfig\File>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSource($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\ApiConfig\File::class); - $this->source = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GrpcServiceDefinition::class, \Google\Cloud\ApiGateway\V1\ApiConfig_GrpcServiceDefinition::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/OpenApiDocument.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/OpenApiDocument.php deleted file mode 100644 index d36877aa34c9..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/OpenApiDocument.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.apigateway.v1.ApiConfig.OpenApiDocument - */ -class OpenApiDocument extends \Google\Protobuf\Internal\Message -{ - /** - * The OpenAPI Specification document file. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.File document = 1; - */ - protected $document = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiGateway\V1\ApiConfig\File $document - * The OpenAPI Specification document file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * The OpenAPI Specification document file. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * @return \Google\Cloud\ApiGateway\V1\ApiConfig\File|null - */ - public function getDocument() - { - return $this->document; - } - - public function hasDocument() - { - return isset($this->document); - } - - public function clearDocument() - { - unset($this->document); - } - - /** - * The OpenAPI Specification document file. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * @param \Google\Cloud\ApiGateway\V1\ApiConfig\File $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\ApiConfig\File::class); - $this->document = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OpenApiDocument::class, \Google\Cloud\ApiGateway\V1\ApiConfig_OpenApiDocument::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/State.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/State.php deleted file mode 100644 index 0e4e820b1f6e..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ApiConfig/State.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.apigateway.v1.ApiConfig.State - */ -class State -{ - /** - * API Config does not have a state yet. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * API Config is being created and deployed to the API Controller. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * API Config is ready for use by Gateways. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * API Config creation failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * API Config is being deleted. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * API Config is being updated. - * - * Generated from protobuf enum UPDATING = 5; - */ - const UPDATING = 5; - /** - * API Config settings are being activated in downstream systems. - * API Configs in this state cannot be used by Gateways. - * - * Generated from protobuf enum ACTIVATING = 6; - */ - const ACTIVATING = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - self::DELETING => 'DELETING', - self::UPDATING => 'UPDATING', - self::ACTIVATING => 'ACTIVATING', - ]; - - 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(State::class, \Google\Cloud\ApiGateway\V1\ApiConfig_State::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateApiConfigRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateApiConfigRequest.php deleted file mode 100644 index ce08b6198ec4..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateApiConfigRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.apigateway.v1.CreateApiConfigRequest - */ -class CreateApiConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Identifier to assign to the API Config. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_config_id = ''; - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_config = null; - - /** - * @param string $parent Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * Please see {@see ApiGatewayServiceClient::apiName()} for help formatting this field. - * @param \Google\Cloud\ApiGateway\V1\ApiConfig $apiConfig Required. API resource. - * @param string $apiConfigId Required. Identifier to assign to the API Config. Must be unique within scope of - * the parent resource. - * - * @return \Google\Cloud\ApiGateway\V1\CreateApiConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiGateway\V1\ApiConfig $apiConfig, string $apiConfigId): self - { - return (new self()) - ->setParent($parent) - ->setApiConfig($apiConfig) - ->setApiConfigId($apiConfigId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * @type string $api_config_id - * Required. Identifier to assign to the API Config. Must be unique within scope of - * the parent resource. - * @type \Google\Cloud\ApiGateway\V1\ApiConfig $api_config - * Required. API resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * - * 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. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * - * 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. Identifier to assign to the API Config. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApiConfigId() - { - return $this->api_config_id; - } - - /** - * Required. Identifier to assign to the API Config. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApiConfigId($var) - { - GPBUtil::checkString($var, True); - $this->api_config_id = $var; - - return $this; - } - - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiGateway\V1\ApiConfig|null - */ - public function getApiConfig() - { - return $this->api_config; - } - - public function hasApiConfig() - { - return isset($this->api_config); - } - - public function clearApiConfig() - { - unset($this->api_config); - } - - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiGateway\V1\ApiConfig $var - * @return $this - */ - public function setApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\ApiConfig::class); - $this->api_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateApiRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateApiRequest.php deleted file mode 100644 index 8a4216d95deb..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateApiRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.apigateway.v1.CreateApiRequest - */ -class CreateApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Identifier to assign to the API. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_id = ''; - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api = null; - - /** - * @param string $parent Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * Please see {@see ApiGatewayServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiGateway\V1\Api $api Required. API resource. - * @param string $apiId Required. Identifier to assign to the API. Must be unique within scope of - * the parent resource. - * - * @return \Google\Cloud\ApiGateway\V1\CreateApiRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiGateway\V1\Api $api, string $apiId): self - { - return (new self()) - ->setParent($parent) - ->setApi($api) - ->setApiId($apiId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * @type string $api_id - * Required. Identifier to assign to the API. Must be unique within scope of - * the parent resource. - * @type \Google\Cloud\ApiGateway\V1\Api $api - * Required. API resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * - * 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. Parent resource of the API, of the form: - * `projects/*/locations/global` - * - * 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. Identifier to assign to the API. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApiId() - { - return $this->api_id; - } - - /** - * Required. Identifier to assign to the API. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApiId($var) - { - GPBUtil::checkString($var, True); - $this->api_id = $var; - - return $this; - } - - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiGateway\V1\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiGateway\V1\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\Api::class); - $this->api = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateGatewayRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateGatewayRequest.php deleted file mode 100644 index 25a590d24dac..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/CreateGatewayRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.apigateway.v1.CreateGatewayRequest - */ -class CreateGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Identifier to assign to the Gateway. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $gateway_id = ''; - /** - * Required. Gateway resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $gateway = null; - - /** - * @param string $parent Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * Please see {@see ApiGatewayServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiGateway\V1\Gateway $gateway Required. Gateway resource. - * @param string $gatewayId Required. Identifier to assign to the Gateway. Must be unique within scope of - * the parent resource. - * - * @return \Google\Cloud\ApiGateway\V1\CreateGatewayRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiGateway\V1\Gateway $gateway, string $gatewayId): self - { - return (new self()) - ->setParent($parent) - ->setGateway($gateway) - ->setGatewayId($gatewayId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * @type string $gateway_id - * Required. Identifier to assign to the Gateway. Must be unique within scope of - * the parent resource. - * @type \Google\Cloud\ApiGateway\V1\Gateway $gateway - * Required. Gateway resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * - * 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. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * - * 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. Identifier to assign to the Gateway. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Required. Identifier to assign to the Gateway. Must be unique within scope of - * the parent resource. - * - * Generated from protobuf field string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Required. Gateway resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiGateway\V1\Gateway|null - */ - public function getGateway() - { - return $this->gateway; - } - - public function hasGateway() - { - return isset($this->gateway); - } - - public function clearGateway() - { - unset($this->gateway); - } - - /** - * Required. Gateway resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiGateway\V1\Gateway $var - * @return $this - */ - public function setGateway($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\Gateway::class); - $this->gateway = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteApiConfigRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteApiConfigRequest.php deleted file mode 100644 index 87cc262dce9c..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteApiConfigRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigateway.v1.DeleteApiConfigRequest - */ -class DeleteApiConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * Please see {@see ApiGatewayServiceClient::apiConfigName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\DeleteApiConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * - * 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/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteApiRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteApiRequest.php deleted file mode 100644 index c8df8b3afd70..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteApiRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigateway.v1.DeleteApiRequest - */ -class DeleteApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * Please see {@see ApiGatewayServiceClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\DeleteApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * - * 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/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteGatewayRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteGatewayRequest.php deleted file mode 100644 index c0b43cf7c49c..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/DeleteGatewayRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigateway.v1.DeleteGatewayRequest - */ -class DeleteGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * Please see {@see ApiGatewayServiceClient::gatewayName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\DeleteGatewayRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * - * 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/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Gateway.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Gateway.php deleted file mode 100644 index 9c359eba6172..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Gateway.php +++ /dev/null @@ -1,347 +0,0 @@ -google.cloud.apigateway.v1.Gateway - */ -class Gateway extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the Gateway. - * Format: projects/{project}/locations/{location}/gateways/{gateway} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Created time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. Resource name of the API Config for this Gateway. - * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig} - * - * Generated from protobuf field string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $api_config = ''; - /** - * Output only. The current state of the Gateway. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The default API Gateway host name of the form - * `{gateway_id}-{hash}.{region_code}.gateway.dev`. - * - * Generated from protobuf field string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $default_hostname = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the Gateway. - * Format: projects/{project}/locations/{location}/gateways/{gateway} - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Created time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Updated time. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * @type string $display_name - * Optional. Display name. - * @type string $api_config - * Required. Resource name of the API Config for this Gateway. - * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig} - * @type int $state - * Output only. The current state of the Gateway. - * @type string $default_hostname - * Output only. The default API Gateway host name of the form - * `{gateway_id}-{hash}.{region_code}.gateway.dev`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the Gateway. - * Format: projects/{project}/locations/{location}/gateways/{gateway} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the Gateway. - * Format: projects/{project}/locations/{location}/gateways/{gateway} - * - * 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. Created time. - * - * 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. Created time. - * - * 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. Updated time. - * - * 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. Updated time. - * - * 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; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name. - * - * Generated from protobuf field string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Resource name of the API Config for this Gateway. - * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig} - * - * Generated from protobuf field string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getApiConfig() - { - return $this->api_config; - } - - /** - * Required. Resource name of the API Config for this Gateway. - * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig} - * - * Generated from protobuf field string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setApiConfig($var) - { - GPBUtil::checkString($var, True); - $this->api_config = $var; - - return $this; - } - - /** - * Output only. The current state of the Gateway. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the Gateway. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiGateway\V1\Gateway\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The default API Gateway host name of the form - * `{gateway_id}-{hash}.{region_code}.gateway.dev`. - * - * Generated from protobuf field string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDefaultHostname() - { - return $this->default_hostname; - } - - /** - * Output only. The default API Gateway host name of the form - * `{gateway_id}-{hash}.{region_code}.gateway.dev`. - * - * Generated from protobuf field string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDefaultHostname($var) - { - GPBUtil::checkString($var, True); - $this->default_hostname = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Gateway/State.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Gateway/State.php deleted file mode 100644 index 299a360168b7..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/Gateway/State.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.apigateway.v1.Gateway.State - */ -class State -{ - /** - * Gateway does not have a state yet. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Gateway is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * Gateway is running and ready for requests. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * Gateway creation failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * Gateway is being deleted. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * Gateway is being updated. - * - * Generated from protobuf enum UPDATING = 5; - */ - const UPDATING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - self::DELETING => 'DELETING', - self::UPDATING => 'UPDATING', - ]; - - 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(State::class, \Google\Cloud\ApiGateway\V1\Gateway_State::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiConfigRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiConfigRequest.php deleted file mode 100644 index d3240d672243..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiConfigRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.apigateway.v1.GetApiConfigRequest - */ -class GetApiConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Specifies which fields of the API Config are returned in the response. - * Defaults to `BASIC` view. - * - * Generated from protobuf field .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - */ - protected $view = 0; - - /** - * @param string $name Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * Please see {@see ApiGatewayServiceClient::apiConfigName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\GetApiConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * @type int $view - * Specifies which fields of the API Config are returned in the response. - * Defaults to `BASIC` view. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*/configs/*` - * - * 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; - } - - /** - * Specifies which fields of the API Config are returned in the response. - * Defaults to `BASIC` view. - * - * Generated from protobuf field .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Specifies which fields of the API Config are returned in the response. - * Defaults to `BASIC` view. - * - * Generated from protobuf field .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiGateway\V1\GetApiConfigRequest\ConfigView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiConfigRequest/ConfigView.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiConfigRequest/ConfigView.php deleted file mode 100644 index 71bca469b0be..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiConfigRequest/ConfigView.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView - */ -class ConfigView -{ - /** - * Generated from protobuf enum CONFIG_VIEW_UNSPECIFIED = 0; - */ - const CONFIG_VIEW_UNSPECIFIED = 0; - /** - * Do not include configuration source files. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include configuration source files. - * - * Generated from protobuf enum FULL = 2; - */ - const FULL = 2; - - private static $valueToName = [ - self::CONFIG_VIEW_UNSPECIFIED => 'CONFIG_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => 'FULL', - ]; - - 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(ConfigView::class, \Google\Cloud\ApiGateway\V1\GetApiConfigRequest_ConfigView::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiRequest.php deleted file mode 100644 index 46676bc3b63d..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetApiRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigateway.v1.GetApiRequest - */ -class GetApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * Please see {@see ApiGatewayServiceClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\GetApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/global/apis/*` - * - * 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/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetGatewayRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetGatewayRequest.php deleted file mode 100644 index 30ff4f5dc521..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/GetGatewayRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigateway.v1.GetGatewayRequest - */ -class GetGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * Please see {@see ApiGatewayServiceClient::gatewayName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\GetGatewayRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the form: - * `projects/*/locations/*/gateways/*` - * - * 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/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApiConfigsRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApiConfigsRequest.php deleted file mode 100644 index f9a44b61861d..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApiConfigsRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.apigateway.v1.ListApiConfigsRequest - */ -class ListApiConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * Please see {@see ApiGatewayServiceClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\ListApiConfigsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * @type int $page_size - * Page size. - * @type string $page_token - * Page token. - * @type string $filter - * Filter. - * @type string $order_by - * Order by parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * - * 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. Parent resource of the API Config, of the form: - * `projects/*/locations/global/apis/*` - * - * 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; - } - - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Page size. - * - * 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; - } - - /** - * Page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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; - } - - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApiConfigsResponse.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApiConfigsResponse.php deleted file mode 100644 index 7c650ddb49d1..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApiConfigsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apigateway.v1.ListApiConfigsResponse - */ -class ListApiConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * API Configs. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; - */ - private $api_configs; - /** - * Next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiGateway\V1\ApiConfig>|\Google\Protobuf\Internal\RepeatedField $api_configs - * API Configs. - * @type string $next_page_token - * Next page token. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * API Configs. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiConfigs() - { - return $this->api_configs; - } - - /** - * API Configs. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; - * @param array<\Google\Cloud\ApiGateway\V1\ApiConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\ApiConfig::class); - $this->api_configs = $arr; - - return $this; - } - - /** - * Next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Next page token. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApisRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApisRequest.php deleted file mode 100644 index 80353c404e6e..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApisRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.apigateway.v1.ListApisRequest - */ -class ListApisRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * Please see {@see ApiGatewayServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\ListApisRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * @type int $page_size - * Page size. - * @type string $page_token - * Page token. - * @type string $filter - * Filter. - * @type string $order_by - * Order by parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource of the API, of the form: - * `projects/*/locations/global` - * - * 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. Parent resource of the API, of the form: - * `projects/*/locations/global` - * - * 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; - } - - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Page size. - * - * 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; - } - - /** - * Page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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; - } - - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApisResponse.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApisResponse.php deleted file mode 100644 index ad91fb298461..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListApisResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apigateway.v1.ListApisResponse - */ -class ListApisResponse extends \Google\Protobuf\Internal\Message -{ - /** - * APIs. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.Api apis = 1; - */ - private $apis; - /** - * Next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiGateway\V1\Api>|\Google\Protobuf\Internal\RepeatedField $apis - * APIs. - * @type string $next_page_token - * Next page token. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * APIs. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.Api apis = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApis() - { - return $this->apis; - } - - /** - * APIs. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.Api apis = 1; - * @param array<\Google\Cloud\ApiGateway\V1\Api>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\Api::class); - $this->apis = $arr; - - return $this; - } - - /** - * Next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Next page token. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListGatewaysRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListGatewaysRequest.php deleted file mode 100644 index 81beb555ebdf..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListGatewaysRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.apigateway.v1.ListGatewaysRequest - */ -class ListGatewaysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * Please see {@see ApiGatewayServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiGateway\V1\ListGatewaysRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * @type int $page_size - * Page size. - * @type string $page_token - * Page token. - * @type string $filter - * Filter. - * @type string $order_by - * Order by parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * - * 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. Parent resource of the Gateway, of the form: - * `projects/*/locations/*` - * - * 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; - } - - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Page size. - * - * 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; - } - - /** - * Page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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; - } - - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Order by parameters. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListGatewaysResponse.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListGatewaysResponse.php deleted file mode 100644 index 60892603089c..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/ListGatewaysResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apigateway.v1.ListGatewaysResponse - */ -class ListGatewaysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Gateways. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.Gateway gateways = 1; - */ - private $gateways; - /** - * Next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiGateway\V1\Gateway>|\Google\Protobuf\Internal\RepeatedField $gateways - * Gateways. - * @type string $next_page_token - * Next page token. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateways. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.Gateway gateways = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGateways() - { - return $this->gateways; - } - - /** - * Gateways. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.Gateway gateways = 1; - * @param array<\Google\Cloud\ApiGateway\V1\Gateway>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGateways($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\Gateway::class); - $this->gateways = $arr; - - return $this; - } - - /** - * Next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Next page token. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/OperationMetadata.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/OperationMetadata.php deleted file mode 100644 index 803b34e6d478..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/OperationMetadata.php +++ /dev/null @@ -1,337 +0,0 @@ -google.cloud.apigateway.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - /** - * Output only. Diagnostics generated during processing of configuration source files. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $diagnostics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * @type array<\Google\Cloud\ApiGateway\V1\OperationMetadata\Diagnostic>|\Google\Protobuf\Internal\RepeatedField $diagnostics - * Output only. Diagnostics generated during processing of configuration source files. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - - /** - * Output only. Diagnostics generated during processing of configuration source files. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDiagnostics() - { - return $this->diagnostics; - } - - /** - * Output only. Diagnostics generated during processing of configuration source files. - * - * Generated from protobuf field repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\ApiGateway\V1\OperationMetadata\Diagnostic>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDiagnostics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiGateway\V1\OperationMetadata\Diagnostic::class); - $this->diagnostics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/OperationMetadata/Diagnostic.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/OperationMetadata/Diagnostic.php deleted file mode 100644 index b08a5fd9e9eb..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/OperationMetadata/Diagnostic.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.apigateway.v1.OperationMetadata.Diagnostic - */ -class Diagnostic extends \Google\Protobuf\Internal\Message -{ - /** - * Location of the diagnostic. - * - * Generated from protobuf field string location = 1; - */ - protected $location = ''; - /** - * The diagnostic message. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Location of the diagnostic. - * @type string $message - * The diagnostic message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Location of the diagnostic. - * - * Generated from protobuf field string location = 1; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location of the diagnostic. - * - * Generated from protobuf field string location = 1; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * The diagnostic message. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The diagnostic message. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Diagnostic::class, \Google\Cloud\ApiGateway\V1\OperationMetadata_Diagnostic::class); - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateApiConfigRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateApiConfigRequest.php deleted file mode 100644 index 12af069887f1..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateApiConfigRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.apigateway.v1.UpdateApiConfigRequest - */ -class UpdateApiConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Field mask is used to specify the fields to be overwritten in the - * ApiConfig resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - */ - protected $update_mask = null; - /** - * Required. API Config resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_config = null; - - /** - * @param \Google\Cloud\ApiGateway\V1\ApiConfig $apiConfig Required. API Config resource. - * @param \Google\Protobuf\FieldMask $updateMask Field mask is used to specify the fields to be overwritten in the - * ApiConfig resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * @return \Google\Cloud\ApiGateway\V1\UpdateApiConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiGateway\V1\ApiConfig $apiConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApiConfig($apiConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Field mask is used to specify the fields to be overwritten in the - * ApiConfig resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @type \Google\Cloud\ApiGateway\V1\ApiConfig $api_config - * Required. API Config resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Field mask is used to specify the fields to be overwritten in the - * ApiConfig resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - * @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); - } - - /** - * Field mask is used to specify the fields to be overwritten in the - * ApiConfig resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. API Config resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiGateway\V1\ApiConfig|null - */ - public function getApiConfig() - { - return $this->api_config; - } - - public function hasApiConfig() - { - return isset($this->api_config); - } - - public function clearApiConfig() - { - unset($this->api_config); - } - - /** - * Required. API Config resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiGateway\V1\ApiConfig $var - * @return $this - */ - public function setApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\ApiConfig::class); - $this->api_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateApiRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateApiRequest.php deleted file mode 100644 index f0424e2e9e0d..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateApiRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.apigateway.v1.UpdateApiRequest - */ -class UpdateApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Field mask is used to specify the fields to be overwritten in the - * Api resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - */ - protected $update_mask = null; - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api = null; - - /** - * @param \Google\Cloud\ApiGateway\V1\Api $api Required. API resource. - * @param \Google\Protobuf\FieldMask $updateMask Field mask is used to specify the fields to be overwritten in the - * Api resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * @return \Google\Cloud\ApiGateway\V1\UpdateApiRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiGateway\V1\Api $api, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApi($api) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Field mask is used to specify the fields to be overwritten in the - * Api resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @type \Google\Cloud\ApiGateway\V1\Api $api - * Required. API resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Field mask is used to specify the fields to be overwritten in the - * Api resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - * @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); - } - - /** - * Field mask is used to specify the fields to be overwritten in the - * Api resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiGateway\V1\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Required. API resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiGateway\V1\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\Api::class); - $this->api = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateGatewayRequest.php b/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateGatewayRequest.php deleted file mode 100644 index dc46c72f3b68..000000000000 --- a/owl-bot-staging/ApiGateway/v1/proto/src/Google/Cloud/ApiGateway/V1/UpdateGatewayRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.apigateway.v1.UpdateGatewayRequest - */ -class UpdateGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Field mask is used to specify the fields to be overwritten in the - * Gateway resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - */ - protected $update_mask = null; - /** - * Required. Gateway resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $gateway = null; - - /** - * @param \Google\Cloud\ApiGateway\V1\Gateway $gateway Required. Gateway resource. - * @param \Google\Protobuf\FieldMask $updateMask Field mask is used to specify the fields to be overwritten in the - * Gateway resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * @return \Google\Cloud\ApiGateway\V1\UpdateGatewayRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiGateway\V1\Gateway $gateway, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGateway($gateway) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Field mask is used to specify the fields to be overwritten in the - * Gateway resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @type \Google\Cloud\ApiGateway\V1\Gateway $gateway - * Required. Gateway resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigateway\V1\Apigateway::initOnce(); - parent::__construct($data); - } - - /** - * Field mask is used to specify the fields to be overwritten in the - * Gateway resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - * @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); - } - - /** - * Field mask is used to specify the fields to be overwritten in the - * Gateway resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. Gateway resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiGateway\V1\Gateway|null - */ - public function getGateway() - { - return $this->gateway; - } - - public function hasGateway() - { - return isset($this->gateway); - } - - public function clearGateway() - { - unset($this->gateway); - } - - /** - * Required. Gateway resource. - * - * Generated from protobuf field .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiGateway\V1\Gateway $var - * @return $this - */ - public function setGateway($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiGateway\V1\Gateway::class); - $this->gateway = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_api.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_api.php deleted file mode 100644 index abf63c4a7e0e..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_api.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent) - ->setApiId($apiId) - ->setApi($api); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->createApi($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Api $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiGatewayServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $apiId = '[API_ID]'; - - create_api_sample($formattedParent, $apiId); -} -// [END apigateway_v1_generated_ApiGatewayService_CreateApi_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_api_config.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_api_config.php deleted file mode 100644 index 520d3736f3dc..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_api_config.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent) - ->setApiConfigId($apiConfigId) - ->setApiConfig($apiConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->createApiConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ApiConfig $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiGatewayServiceClient::apiName('[PROJECT]', '[API]'); - $apiConfigId = '[API_CONFIG_ID]'; - - create_api_config_sample($formattedParent, $apiConfigId); -} -// [END apigateway_v1_generated_ApiGatewayService_CreateApiConfig_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_gateway.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_gateway.php deleted file mode 100644 index f0a87b14e60e..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/create_gateway.php +++ /dev/null @@ -1,102 +0,0 @@ -setApiConfig($formattedGatewayApiConfig); - $request = (new CreateGatewayRequest()) - ->setParent($formattedParent) - ->setGatewayId($gatewayId) - ->setGateway($gateway); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->createGateway($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Gateway $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiGatewayServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $gatewayId = '[GATEWAY_ID]'; - $formattedGatewayApiConfig = ApiGatewayServiceClient::apiConfigName( - '[PROJECT]', - '[API]', - '[API_CONFIG]' - ); - - create_gateway_sample($formattedParent, $gatewayId, $formattedGatewayApiConfig); -} -// [END apigateway_v1_generated_ApiGatewayService_CreateGateway_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_api.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_api.php deleted file mode 100644 index 2d56fe27f423..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_api.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->deleteApi($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiGatewayServiceClient::apiName('[PROJECT]', '[API]'); - - delete_api_sample($formattedName); -} -// [END apigateway_v1_generated_ApiGatewayService_DeleteApi_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_api_config.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_api_config.php deleted file mode 100644 index cbc63772e764..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_api_config.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->deleteApiConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiGatewayServiceClient::apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - - delete_api_config_sample($formattedName); -} -// [END apigateway_v1_generated_ApiGatewayService_DeleteApiConfig_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_gateway.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_gateway.php deleted file mode 100644 index a9391e54dab3..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/delete_gateway.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->deleteGateway($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiGatewayServiceClient::gatewayName('[PROJECT]', '[LOCATION]', '[GATEWAY]'); - - delete_gateway_sample($formattedName); -} -// [END apigateway_v1_generated_ApiGatewayService_DeleteGateway_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_api.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_api.php deleted file mode 100644 index e0b805d6044b..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_api.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Api $response */ - $response = $apiGatewayServiceClient->getApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiGatewayServiceClient::apiName('[PROJECT]', '[API]'); - - get_api_sample($formattedName); -} -// [END apigateway_v1_generated_ApiGatewayService_GetApi_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_api_config.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_api_config.php deleted file mode 100644 index b22bc50be4f5..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_api_config.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiConfig $response */ - $response = $apiGatewayServiceClient->getApiConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiGatewayServiceClient::apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - - get_api_config_sample($formattedName); -} -// [END apigateway_v1_generated_ApiGatewayService_GetApiConfig_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_gateway.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_gateway.php deleted file mode 100644 index 52a3bcdf7074..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/get_gateway.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Gateway $response */ - $response = $apiGatewayServiceClient->getGateway($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiGatewayServiceClient::gatewayName('[PROJECT]', '[LOCATION]', '[GATEWAY]'); - - get_gateway_sample($formattedName); -} -// [END apigateway_v1_generated_ApiGatewayService_GetGateway_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_api_configs.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_api_configs.php deleted file mode 100644 index 134513455d08..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_api_configs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiGatewayServiceClient->listApiConfigs($request); - - /** @var ApiConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiGatewayServiceClient::apiName('[PROJECT]', '[API]'); - - list_api_configs_sample($formattedParent); -} -// [END apigateway_v1_generated_ApiGatewayService_ListApiConfigs_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_apis.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_apis.php deleted file mode 100644 index 74da676b9855..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_apis.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiGatewayServiceClient->listApis($request); - - /** @var Api $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiGatewayServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_apis_sample($formattedParent); -} -// [END apigateway_v1_generated_ApiGatewayService_ListApis_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_gateways.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_gateways.php deleted file mode 100644 index 4ac0838e815d..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/list_gateways.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiGatewayServiceClient->listGateways($request); - - /** @var Gateway $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiGatewayServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_gateways_sample($formattedParent); -} -// [END apigateway_v1_generated_ApiGatewayService_ListGateways_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_api.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_api.php deleted file mode 100644 index 37288dd0cb15..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_api.php +++ /dev/null @@ -1,71 +0,0 @@ -setApi($api); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->updateApi($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Api $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigateway_v1_generated_ApiGatewayService_UpdateApi_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_api_config.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_api_config.php deleted file mode 100644 index 03fa834ba32f..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_api_config.php +++ /dev/null @@ -1,71 +0,0 @@ -setApiConfig($apiConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->updateApiConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ApiConfig $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigateway_v1_generated_ApiGatewayService_UpdateApiConfig_sync] diff --git a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_gateway.php b/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_gateway.php deleted file mode 100644 index 187144fadef5..000000000000 --- a/owl-bot-staging/ApiGateway/v1/samples/V1/ApiGatewayServiceClient/update_gateway.php +++ /dev/null @@ -1,90 +0,0 @@ -setApiConfig($formattedGatewayApiConfig); - $request = (new UpdateGatewayRequest()) - ->setGateway($gateway); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiGatewayServiceClient->updateGateway($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Gateway $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedGatewayApiConfig = ApiGatewayServiceClient::apiConfigName( - '[PROJECT]', - '[API]', - '[API_CONFIG]' - ); - - update_gateway_sample($formattedGatewayApiConfig); -} -// [END apigateway_v1_generated_ApiGatewayService_UpdateGateway_sync] diff --git a/owl-bot-staging/ApiGateway/v1/src/V1/Client/ApiGatewayServiceClient.php b/owl-bot-staging/ApiGateway/v1/src/V1/Client/ApiGatewayServiceClient.php deleted file mode 100644 index 2e7eb62ec784..000000000000 --- a/owl-bot-staging/ApiGateway/v1/src/V1/Client/ApiGatewayServiceClient.php +++ /dev/null @@ -1,796 +0,0 @@ - createApiAsync(CreateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiConfigAsync(CreateApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGatewayAsync(CreateGatewayRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiConfigAsync(DeleteApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGatewayAsync(DeleteGatewayRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiConfigAsync(GetApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGatewayAsync(GetGatewayRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiConfigsAsync(ListApiConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGatewaysAsync(ListGatewaysRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiConfigAsync(UpdateApiConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGatewayAsync(UpdateGatewayRequest $request, array $optionalArgs = []) - */ -final class ApiGatewayServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apigateway.v1.ApiGatewayService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apigateway.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apigateway.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/api_gateway_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/api_gateway_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/api_gateway_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/api_gateway_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a api - * resource. - * - * @param string $project - * @param string $api - * - * @return string The formatted api resource. - */ - public static function apiName(string $project, string $api): string - { - return self::getPathTemplate('api')->render([ - 'project' => $project, - 'api' => $api, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a api_config - * resource. - * - * @param string $project - * @param string $api - * @param string $apiConfig - * - * @return string The formatted api_config resource. - */ - public static function apiConfigName(string $project, string $api, string $apiConfig): string - { - return self::getPathTemplate('apiConfig')->render([ - 'project' => $project, - 'api' => $api, - 'api_config' => $apiConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a gateway - * resource. - * - * @param string $project - * @param string $location - * @param string $gateway - * - * @return string The formatted gateway resource. - */ - public static function gatewayName(string $project, string $location, string $gateway): string - { - return self::getPathTemplate('gateway')->render([ - 'project' => $project, - 'location' => $location, - 'gateway' => $gateway, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * managed_service resource. - * - * @param string $service - * - * @return string The formatted managed_service resource. - */ - public static function managedServiceName(string $service): string - { - return self::getPathTemplate('managedService')->render([ - 'service' => $service, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a service - * resource. - * - * @param string $service - * @param string $config - * - * @return string The formatted service resource. - */ - public static function serviceName(string $service, string $config): string - { - return self::getPathTemplate('service')->render([ - 'service' => $service, - 'config' => $config, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * service_account resource. - * - * @param string $project - * @param string $serviceAccount - * - * @return string The formatted service_account resource. - */ - public static function serviceAccountName(string $project, string $serviceAccount): string - { - return self::getPathTemplate('serviceAccount')->render([ - 'project' => $project, - 'service_account' => $serviceAccount, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - api: projects/{project}/locations/global/apis/{api} - * - apiConfig: projects/{project}/locations/global/apis/{api}/configs/{api_config} - * - gateway: projects/{project}/locations/{location}/gateways/{gateway} - * - location: projects/{project}/locations/{location} - * - managedService: services/{service} - * - service: services/{service}/configs/{config} - * - serviceAccount: projects/{project}/serviceAccounts/{service_account} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apigateway.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a new Api in a given project and location. - * - * The async variant is {@see ApiGatewayServiceClient::createApiAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/create_api.php - * - * @param CreateApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApi(CreateApiRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateApi', $request, $callOptions)->wait(); - } - - /** - * Creates a new ApiConfig in a given project and location. - * - * The async variant is {@see ApiGatewayServiceClient::createApiConfigAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/create_api_config.php - * - * @param CreateApiConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApiConfig(CreateApiConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateApiConfig', $request, $callOptions)->wait(); - } - - /** - * Creates a new Gateway in a given project and location. - * - * The async variant is {@see ApiGatewayServiceClient::createGatewayAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/create_gateway.php - * - * @param CreateGatewayRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createGateway(CreateGatewayRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateGateway', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Api. - * - * The async variant is {@see ApiGatewayServiceClient::deleteApiAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/delete_api.php - * - * @param DeleteApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApi(DeleteApiRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteApi', $request, $callOptions)->wait(); - } - - /** - * Deletes a single ApiConfig. - * - * The async variant is {@see ApiGatewayServiceClient::deleteApiConfigAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/delete_api_config.php - * - * @param DeleteApiConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApiConfig(DeleteApiConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteApiConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Gateway. - * - * The async variant is {@see ApiGatewayServiceClient::deleteGatewayAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/delete_gateway.php - * - * @param DeleteGatewayRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteGateway(DeleteGatewayRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteGateway', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Api. - * - * The async variant is {@see ApiGatewayServiceClient::getApiAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/get_api.php - * - * @param GetApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Api - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApi(GetApiRequest $request, array $callOptions = []): Api - { - return $this->startApiCall('GetApi', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single ApiConfig. - * - * The async variant is {@see ApiGatewayServiceClient::getApiConfigAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/get_api_config.php - * - * @param GetApiConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApiConfig(GetApiConfigRequest $request, array $callOptions = []): ApiConfig - { - return $this->startApiCall('GetApiConfig', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Gateway. - * - * The async variant is {@see ApiGatewayServiceClient::getGatewayAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/get_gateway.php - * - * @param GetGatewayRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Gateway - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGateway(GetGatewayRequest $request, array $callOptions = []): Gateway - { - return $this->startApiCall('GetGateway', $request, $callOptions)->wait(); - } - - /** - * Lists ApiConfigs in a given project and location. - * - * The async variant is {@see ApiGatewayServiceClient::listApiConfigsAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/list_api_configs.php - * - * @param ListApiConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApiConfigs(ListApiConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApiConfigs', $request, $callOptions); - } - - /** - * Lists Apis in a given project and location. - * - * The async variant is {@see ApiGatewayServiceClient::listApisAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/list_apis.php - * - * @param ListApisRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApis(ListApisRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApis', $request, $callOptions); - } - - /** - * Lists Gateways in a given project and location. - * - * The async variant is {@see ApiGatewayServiceClient::listGatewaysAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/list_gateways.php - * - * @param ListGatewaysRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listGateways(ListGatewaysRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGateways', $request, $callOptions); - } - - /** - * Updates the parameters of a single Api. - * - * The async variant is {@see ApiGatewayServiceClient::updateApiAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/update_api.php - * - * @param UpdateApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApi(UpdateApiRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateApi', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single ApiConfig. - * - * The async variant is {@see ApiGatewayServiceClient::updateApiConfigAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/update_api_config.php - * - * @param UpdateApiConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApiConfig(UpdateApiConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateApiConfig', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single Gateway. - * - * The async variant is {@see ApiGatewayServiceClient::updateGatewayAsync()} . - * - * @example samples/V1/ApiGatewayServiceClient/update_gateway.php - * - * @param UpdateGatewayRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateGateway(UpdateGatewayRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateGateway', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/ApiGateway/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ApiGateway/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 4829f8b72644..000000000000 --- a/owl-bot-staging/ApiGateway/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.apigateway.v1", - "libraryPackage": "Google\\Cloud\\ApiGateway\\V1", - "services": { - "ApiGatewayService": { - "clients": { - "grpc": { - "libraryClient": "ApiGatewayServiceGapicClient", - "rpcs": { - "CreateApi": { - "methods": [ - "createApi" - ] - }, - "CreateApiConfig": { - "methods": [ - "createApiConfig" - ] - }, - "CreateGateway": { - "methods": [ - "createGateway" - ] - }, - "DeleteApi": { - "methods": [ - "deleteApi" - ] - }, - "DeleteApiConfig": { - "methods": [ - "deleteApiConfig" - ] - }, - "DeleteGateway": { - "methods": [ - "deleteGateway" - ] - }, - "GetApi": { - "methods": [ - "getApi" - ] - }, - "GetApiConfig": { - "methods": [ - "getApiConfig" - ] - }, - "GetGateway": { - "methods": [ - "getGateway" - ] - }, - "ListApiConfigs": { - "methods": [ - "listApiConfigs" - ] - }, - "ListApis": { - "methods": [ - "listApis" - ] - }, - "ListGateways": { - "methods": [ - "listGateways" - ] - }, - "UpdateApi": { - "methods": [ - "updateApi" - ] - }, - "UpdateApiConfig": { - "methods": [ - "updateApiConfig" - ] - }, - "UpdateGateway": { - "methods": [ - "updateGateway" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_client_config.json b/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_client_config.json deleted file mode 100644 index 626f9f948ac8..000000000000 --- a/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_client_config.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "interfaces": { - "google.cloud.apigateway.v1.ApiGatewayService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNKNOWN", - "UNAVAILABLE" - ] - }, - "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": 2.0, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateApiConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateGateway": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApiConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteGateway": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApi": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetApiConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetGateway": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListApiConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListApis": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListGateways": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateApiConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateGateway": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_descriptor_config.php b/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_descriptor_config.php deleted file mode 100644 index 8b878536b7de..000000000000 --- a/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_descriptor_config.php +++ /dev/null @@ -1,307 +0,0 @@ - [ - 'google.cloud.apigateway.v1.ApiGatewayService' => [ - 'CreateApi' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiGateway\V1\Api', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateApiConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiGateway\V1\ApiConfig', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGateway' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiGateway\V1\Gateway', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteApi' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGateway' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateApi' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiGateway\V1\Api', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'api.name', - 'fieldAccessors' => [ - 'getApi', - 'getName', - ], - ], - ], - ], - 'UpdateApiConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiGateway\V1\ApiConfig', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'api_config.name', - 'fieldAccessors' => [ - 'getApiConfig', - 'getName', - ], - ], - ], - ], - 'UpdateGateway' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiGateway\V1\Gateway', - 'metadataReturnType' => '\Google\Cloud\ApiGateway\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'gateway.name', - 'fieldAccessors' => [ - 'getGateway', - 'getName', - ], - ], - ], - ], - 'GetApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiGateway\V1\Api', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApiConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiGateway\V1\ApiConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGateway' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiGateway\V1\Gateway', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListApiConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApiConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiGateway\V1\ListApiConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListApis' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApis', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiGateway\V1\ListApisResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListGateways' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGateways', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiGateway\V1\ListGatewaysResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'api' => 'projects/{project}/locations/global/apis/{api}', - 'apiConfig' => 'projects/{project}/locations/global/apis/{api}/configs/{api_config}', - 'gateway' => 'projects/{project}/locations/{location}/gateways/{gateway}', - 'location' => 'projects/{project}/locations/{location}', - 'managedService' => 'services/{service}', - 'service' => 'services/{service}/configs/{config}', - 'serviceAccount' => 'projects/{project}/serviceAccounts/{service_account}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_rest_client_config.php b/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_rest_client_config.php deleted file mode 100644 index ca6d22872a76..000000000000 --- a/owl-bot-staging/ApiGateway/v1/src/V1/resources/api_gateway_service_rest_client_config.php +++ /dev/null @@ -1,354 +0,0 @@ - [ - 'google.cloud.apigateway.v1.ApiGatewayService' => [ - 'CreateApi' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apis', - 'body' => 'api', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'api_id', - ], - ], - 'CreateApiConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/configs', - 'body' => 'api_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'api_config_id', - ], - ], - 'CreateGateway' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/gateways', - 'body' => 'gateway', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'gateway_id', - ], - ], - 'DeleteApi' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/configs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGateway' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/gateways/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApi' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApiConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/configs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGateway' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/gateways/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApiConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/configs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListApis' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apis', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGateways' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/gateways', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateApi' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{api.name=projects/*/locations/*/apis/*}', - 'body' => 'api', - 'placeholders' => [ - 'api.name' => [ - 'getters' => [ - 'getApi', - 'getName', - ], - ], - ], - ], - 'UpdateApiConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{api_config.name=projects/*/locations/*/apis/*/configs/*}', - 'body' => 'api_config', - 'placeholders' => [ - 'api_config.name' => [ - 'getters' => [ - 'getApiConfig', - 'getName', - ], - ], - ], - ], - 'UpdateGateway' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{gateway.name=projects/*/locations/*/gateways/*}', - 'body' => 'gateway', - 'placeholders' => [ - 'gateway.name' => [ - 'getters' => [ - 'getGateway', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/gateways/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/configs/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/gateways/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/configs/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/gateways/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/configs/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiGateway/v1/tests/Unit/V1/Client/ApiGatewayServiceClientTest.php b/owl-bot-staging/ApiGateway/v1/tests/Unit/V1/Client/ApiGatewayServiceClientTest.php deleted file mode 100644 index 0defb93295d0..000000000000 --- a/owl-bot-staging/ApiGateway/v1/tests/Unit/V1/Client/ApiGatewayServiceClientTest.php +++ /dev/null @@ -1,1765 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ApiGatewayServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ApiGatewayServiceClient($options); - } - - /** @test */ - public function createApiTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $managedService = 'managedService1956539925'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setManagedService($managedService); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApiTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $apiId = 'apiId-1411282592'; - $api = new Api(); - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApiId($apiId) - ->setApi($api); - $response = $gapicClient->createApi($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/CreateApi', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getApiId(); - $this->assertProtobufEquals($apiId, $actualValue); - $actualValue = $actualApiRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApiExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $apiId = 'apiId-1411282592'; - $api = new Api(); - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApiId($apiId) - ->setApi($api); - $response = $gapicClient->createApi($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApiConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $gatewayServiceAccount = 'gatewayServiceAccount1636959912'; - $serviceConfigId = 'serviceConfigId1573171758'; - $expectedResponse = new ApiConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setGatewayServiceAccount($gatewayServiceAccount); - $expectedResponse->setServiceConfigId($serviceConfigId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApiConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[API]'); - $apiConfigId = 'apiConfigId1182346067'; - $apiConfig = new ApiConfig(); - $request = (new CreateApiConfigRequest()) - ->setParent($formattedParent) - ->setApiConfigId($apiConfigId) - ->setApiConfig($apiConfig); - $response = $gapicClient->createApiConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/CreateApiConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getApiConfigId(); - $this->assertProtobufEquals($apiConfigId, $actualValue); - $actualValue = $actualApiRequestObject->getApiConfig(); - $this->assertProtobufEquals($apiConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApiConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[API]'); - $apiConfigId = 'apiConfigId1182346067'; - $apiConfig = new ApiConfig(); - $request = (new CreateApiConfigRequest()) - ->setParent($formattedParent) - ->setApiConfigId($apiConfigId) - ->setApiConfig($apiConfig); - $response = $gapicClient->createApiConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createGatewayTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createGatewayTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $apiConfig = 'apiConfig1506759943'; - $defaultHostname = 'defaultHostname-402050959'; - $expectedResponse = new Gateway(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setApiConfig($apiConfig); - $expectedResponse->setDefaultHostname($defaultHostname); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createGatewayTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $gatewayId = 'gatewayId955798774'; - $gateway = new Gateway(); - $gatewayApiConfig = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $gateway->setApiConfig($gatewayApiConfig); - $request = (new CreateGatewayRequest()) - ->setParent($formattedParent) - ->setGatewayId($gatewayId) - ->setGateway($gateway); - $response = $gapicClient->createGateway($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/CreateGateway', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getGatewayId(); - $this->assertProtobufEquals($gatewayId, $actualValue); - $actualValue = $actualApiRequestObject->getGateway(); - $this->assertProtobufEquals($gateway, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGatewayTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createGatewayExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createGatewayTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $gatewayId = 'gatewayId955798774'; - $gateway = new Gateway(); - $gatewayApiConfig = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $gateway->setApiConfig($gatewayApiConfig); - $request = (new CreateGatewayRequest()) - ->setParent($formattedParent) - ->setGatewayId($gatewayId) - ->setGateway($gateway); - $response = $gapicClient->createGateway($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGatewayTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteApiTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteApiTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteApiTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[API]'); - $request = (new DeleteApiRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApi($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/DeleteApi', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteApiTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteApiExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteApiTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[API]'); - $request = (new DeleteApiRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApi($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteApiTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteApiConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteApiConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteApiConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $request = (new DeleteApiConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApiConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/DeleteApiConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteApiConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteApiConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteApiConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $request = (new DeleteApiConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApiConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteApiConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteGatewayTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteGatewayTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteGatewayTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->gatewayName('[PROJECT]', '[LOCATION]', '[GATEWAY]'); - $request = (new DeleteGatewayRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGateway($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/DeleteGateway', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGatewayTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteGatewayExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteGatewayTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->gatewayName('[PROJECT]', '[LOCATION]', '[GATEWAY]'); - $request = (new DeleteGatewayRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGateway($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGatewayTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $managedService = 'managedService1956539925'; - $expectedResponse = new Api(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setManagedService($managedService); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[API]'); - $request = (new GetApiRequest()) - ->setName($formattedName); - $response = $gapicClient->getApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/GetApi', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[API]'); - $request = (new GetApiRequest()) - ->setName($formattedName); - try { - $gapicClient->getApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $gatewayServiceAccount = 'gatewayServiceAccount1636959912'; - $serviceConfigId = 'serviceConfigId1573171758'; - $expectedResponse = new ApiConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setGatewayServiceAccount($gatewayServiceAccount); - $expectedResponse->setServiceConfigId($serviceConfigId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $request = (new GetApiConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getApiConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/GetApiConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $request = (new GetApiConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getApiConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGatewayTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $apiConfig = 'apiConfig1506759943'; - $defaultHostname = 'defaultHostname-402050959'; - $expectedResponse = new Gateway(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setApiConfig($apiConfig); - $expectedResponse->setDefaultHostname($defaultHostname); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->gatewayName('[PROJECT]', '[LOCATION]', '[GATEWAY]'); - $request = (new GetGatewayRequest()) - ->setName($formattedName); - $response = $gapicClient->getGateway($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/GetGateway', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGatewayExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->gatewayName('[PROJECT]', '[LOCATION]', '[GATEWAY]'); - $request = (new GetGatewayRequest()) - ->setName($formattedName); - try { - $gapicClient->getGateway($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apiConfigsElement = new ApiConfig(); - $apiConfigs = [ - $apiConfigsElement, - ]; - $expectedResponse = new ListApiConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApiConfigs($apiConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[API]'); - $request = (new ListApiConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApiConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApiConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/ListApiConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[API]'); - $request = (new ListApiConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApiConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApisTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apisElement = new Api(); - $apis = [ - $apisElement, - ]; - $expectedResponse = new ListApisResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApis($apis); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApisRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApis($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApis()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/ListApis', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApisExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApisRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApis($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGatewaysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $gatewaysElement = new Gateway(); - $gateways = [ - $gatewaysElement, - ]; - $expectedResponse = new ListGatewaysResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGateways($gateways); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListGatewaysRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGateways($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGateways()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/ListGateways', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGatewaysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListGatewaysRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGateways($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApiTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $managedService = 'managedService1956539925'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setManagedService($managedService); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateApiTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $api = new Api(); - $request = (new UpdateApiRequest()) - ->setApi($api); - $response = $gapicClient->updateApi($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/UpdateApi', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApiTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateApiExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApiTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $api = new Api(); - $request = (new UpdateApiRequest()) - ->setApi($api); - $response = $gapicClient->updateApi($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApiTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateApiConfigTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApiConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $gatewayServiceAccount = 'gatewayServiceAccount1636959912'; - $serviceConfigId = 'serviceConfigId1573171758'; - $expectedResponse = new ApiConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setGatewayServiceAccount($gatewayServiceAccount); - $expectedResponse->setServiceConfigId($serviceConfigId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateApiConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $apiConfig = new ApiConfig(); - $request = (new UpdateApiConfigRequest()) - ->setApiConfig($apiConfig); - $response = $gapicClient->updateApiConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/UpdateApiConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getApiConfig(); - $this->assertProtobufEquals($apiConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApiConfigTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateApiConfigExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApiConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $apiConfig = new ApiConfig(); - $request = (new UpdateApiConfigRequest()) - ->setApiConfig($apiConfig); - $response = $gapicClient->updateApiConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApiConfigTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateGatewayTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateGatewayTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $apiConfig = 'apiConfig1506759943'; - $defaultHostname = 'defaultHostname-402050959'; - $expectedResponse = new Gateway(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setApiConfig($apiConfig); - $expectedResponse->setDefaultHostname($defaultHostname); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateGatewayTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $gateway = new Gateway(); - $gatewayApiConfig = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $gateway->setApiConfig($gatewayApiConfig); - $request = (new UpdateGatewayRequest()) - ->setGateway($gateway); - $response = $gapicClient->updateGateway($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/UpdateGateway', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getGateway(); - $this->assertProtobufEquals($gateway, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGatewayTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateGatewayExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateGatewayTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $gateway = new Gateway(); - $gatewayApiConfig = $gapicClient->apiConfigName('[PROJECT]', '[API]', '[API_CONFIG]'); - $gateway->setApiConfig($gatewayApiConfig); - $request = (new UpdateGatewayRequest()) - ->setGateway($gateway); - $response = $gapicClient->updateGateway($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGatewayTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApiAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $managedService = 'managedService1956539925'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setManagedService($managedService); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApiTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $apiId = 'apiId-1411282592'; - $api = new Api(); - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApiId($apiId) - ->setApi($api); - $response = $gapicClient->createApiAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigateway.v1.ApiGatewayService/CreateApi', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getApiId(); - $this->assertProtobufEquals($apiId, $actualValue); - $actualValue = $actualApiRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/ApihubService.php b/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/ApihubService.php deleted file mode 100644 index 9f15ecd15242..000000000000 Binary files a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/ApihubService.php and /dev/null differ diff --git a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/CommonFields.php b/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/CommonFields.php deleted file mode 100644 index bdf32dcd6cae..000000000000 Binary files a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/CommonFields.php and /dev/null differ diff --git a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/HostProjectRegistrationService.php b/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/HostProjectRegistrationService.php deleted file mode 100644 index 9275ba820df1..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/HostProjectRegistrationService.php +++ /dev/null @@ -1,59 +0,0 @@ -internalAddGeneratedFile( - ' - ->google/cloud/apihub/v1/host_project_registration_service.protogoogle.cloud.apihub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/timestamp.proto" -$CreateHostProjectRegistrationRequestE -parent ( B5AA/-apihub.googleapis.com/HostProjectRegistration) -host_project_registration_id ( BAW -host_project_registration ( 2/.google.cloud.apihub.v1.HostProjectRegistrationBA"h -!GetHostProjectRegistrationRequestC -name ( B5AA/ --apihub.googleapis.com/HostProjectRegistration" -#ListHostProjectRegistrationsRequestE -parent ( B5AA/-apihub.googleapis.com/HostProjectRegistration - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA" -$ListHostProjectRegistrationsResponseS -host_project_registrations ( 2/.google.cloud.apihub.v1.HostProjectRegistration -next_page_token ( " -HostProjectRegistration -name ( BAK - gcp_project ( B6AAA- -+cloudresourcemanager.googleapis.com/Project4 - create_time ( 2.google.protobuf.TimestampBA:A --apihub.googleapis.com/HostProjectRegistration\\projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}*hostProjectRegistrations2hostProjectRegistration2 -HostProjectRegistrationService -CreateHostProjectRegistration<.google.cloud.apihub.v1.CreateHostProjectRegistrationRequest/.google.cloud.apihub.v1.HostProjectRegistration"A=parent,host_project_registration,host_project_registration_idY"internalAddGeneratedFile( - ' - -,google/cloud/apihub/v1/linting_service.protogoogle.cloud.apihub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto*google/cloud/apihub/v1/common_fields.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"N -GetStyleGuideRequest6 -name ( B(AA" - apihub.googleapis.com/StyleGuide" -UpdateStyleGuideRequest< - style_guide ( 2".google.cloud.apihub.v1.StyleGuideBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"V -GetStyleGuideContentsRequest6 -name ( B(AA" - apihub.googleapis.com/StyleGuide"C -LintSpecRequest0 -name ( B"AA -apihub.googleapis.com/Spec"C -StyleGuideContents -contents ( BA - mime_type ( BA" - -StyleGuide -name ( BA3 -linter (2.google.cloud.apihub.v1.LinterBAD -contents ( 2*.google.cloud.apihub.v1.StyleGuideContentsBAA:A - apihub.googleapis.com/StyleGuideCprojects/{project}/locations/{location}/plugins/{plugin}/styleGuide* styleGuides2 -styleGuide2 -LintingService - GetStyleGuide,.google.cloud.apihub.v1.GetStyleGuideRequest".google.cloud.apihub.v1.StyleGuide"EAname86/v1/{name=projects/*/locations/*/plugins/*/styleGuide} -UpdateStyleGuide/.google.cloud.apihub.v1.UpdateStyleGuideRequest".google.cloud.apihub.v1.StyleGuide"qAstyle_guide,update_maskQ2B/v1/{style_guide.name=projects/*/locations/*/plugins/*/styleGuide}: style_guide -GetStyleGuideContents4.google.cloud.apihub.v1.GetStyleGuideContentsRequest*.google.cloud.apihub.v1.StyleGuideContents"NAnameA?/v1/{name=projects/*/locations/*/plugins/*/styleGuide}:contents -LintSpec\'.google.cloud.apihub.v1.LintSpecRequest.google.protobuf.Empty"KE"@/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:lint:*IAapihub.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -com.google.cloud.apihub.v1BLintingServiceProtoPZ2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpbGoogle.Cloud.ApiHub.V1Google\\Cloud\\ApiHub\\V1Google::Cloud::ApiHub::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/PluginService.php b/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/PluginService.php deleted file mode 100644 index 614cc36020aa..000000000000 Binary files a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/PluginService.php and /dev/null differ diff --git a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/ProvisioningService.php b/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/ProvisioningService.php deleted file mode 100644 index 1ad54fba4757..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/ProvisioningService.php +++ /dev/null @@ -1,50 +0,0 @@ -internalAddGeneratedFile( - ' - -1google/cloud/apihub/v1/provisioning_service.protogoogle.cloud.apihub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto*google/cloud/apihub/v1/common_fields.proto#google/longrunning/operations.proto" -CreateApiHubInstanceRequest9 -parent ( B)AA# -!locations.googleapis.com/Location -api_hub_instance_id ( BAE -api_hub_instance ( 2&.google.cloud.apihub.v1.ApiHubInstanceBA"V -GetApiHubInstanceRequest: -name ( B,AA& -$apihub.googleapis.com/ApiHubInstance"[ -LookupApiHubInstanceRequest< -parent ( B,AA&$apihub.googleapis.com/ApiHubInstance"` -LookupApiHubInstanceResponse@ -api_hub_instance ( 2&.google.cloud.apihub.v1.ApiHubInstance2 - Provisioning -CreateApiHubInstance3.google.cloud.apihub.v1.CreateApiHubInstanceRequest.google.longrunning.Operation"A# -ApiHubInstanceOperationMetadataA+parent,api_hub_instance,api_hub_instance_idG"3/v1/{parent=projects/*/locations/*}/apiHubInstances:api_hub_instance -GetApiHubInstance0.google.cloud.apihub.v1.GetApiHubInstanceRequest&.google.cloud.apihub.v1.ApiHubInstance"BAname53/v1/{name=projects/*/locations/*/apiHubInstances/*} -LookupApiHubInstance3.google.cloud.apihub.v1.LookupApiHubInstanceRequest4.google.cloud.apihub.v1.LookupApiHubInstanceResponse"KAparent<:/v1/{parent=projects/*/locations/*}/apiHubInstances:lookupIAapihub.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -com.google.cloud.apihub.v1BProvisioningServiceProtoPZ2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpbGoogle.Cloud.ApiHub.V1Google\\Cloud\\ApiHub\\V1Google::Cloud::ApiHub::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/RuntimeProjectAttachmentService.php b/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/RuntimeProjectAttachmentService.php deleted file mode 100644 index c5b48d8b9f8f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/GPBMetadata/Google/Cloud/Apihub/V1/RuntimeProjectAttachmentService.php +++ /dev/null @@ -1,71 +0,0 @@ -internalAddGeneratedFile( - ' - -?google/cloud/apihub/v1/runtime_project_attachment_service.protogoogle.cloud.apihub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.protogoogle/protobuf/timestamp.proto" -%CreateRuntimeProjectAttachmentRequestF -parent ( B6AA0.apihub.googleapis.com/RuntimeProjectAttachment* -runtime_project_attachment_id ( BAY -runtime_project_attachment ( 20.google.cloud.apihub.v1.RuntimeProjectAttachmentBA"j -"GetRuntimeProjectAttachmentRequestD -name ( B6AA0 -.apihub.googleapis.com/RuntimeProjectAttachment" -$ListRuntimeProjectAttachmentsRequestF -parent ( B6AA0.apihub.googleapis.com/RuntimeProjectAttachment - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA" -%ListRuntimeProjectAttachmentsResponseU -runtime_project_attachments ( 20.google.cloud.apihub.v1.RuntimeProjectAttachment -next_page_token ( "m -%DeleteRuntimeProjectAttachmentRequestD -name ( B6AA0 -.apihub.googleapis.com/RuntimeProjectAttachment"` -%LookupRuntimeProjectAttachmentRequest7 -name ( B)AA# -!locations.googleapis.com/Location"~ -&LookupRuntimeProjectAttachmentResponseT -runtime_project_attachment ( 20.google.cloud.apihub.v1.RuntimeProjectAttachment" -RuntimeProjectAttachment -name ( BAO -runtime_project ( B6AAA- -+cloudresourcemanager.googleapis.com/Project4 - create_time ( 2.google.protobuf.TimestampBA:A -.apihub.googleapis.com/RuntimeProjectAttachment^projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}*runtimeProjectAttachments2runtimeProjectAttachment2 - -RuntimeProjectAttachmentService -CreateRuntimeProjectAttachment=.google.cloud.apihub.v1.CreateRuntimeProjectAttachmentRequest0.google.cloud.apihub.v1.RuntimeProjectAttachment"A?parent,runtime_project_attachment,runtime_project_attachment_id["=/v1/{parent=projects/*/locations/*}/runtimeProjectAttachments:runtime_project_attachment -GetRuntimeProjectAttachment:.google.cloud.apihub.v1.GetRuntimeProjectAttachmentRequest0.google.cloud.apihub.v1.RuntimeProjectAttachment"LAname?=/v1/{name=projects/*/locations/*/runtimeProjectAttachments/*} -ListRuntimeProjectAttachments<.google.cloud.apihub.v1.ListRuntimeProjectAttachmentsRequest=.google.cloud.apihub.v1.ListRuntimeProjectAttachmentsResponse"NAparent?=/v1/{parent=projects/*/locations/*}/runtimeProjectAttachments -DeleteRuntimeProjectAttachment=.google.cloud.apihub.v1.DeleteRuntimeProjectAttachmentRequest.google.protobuf.Empty"LAname?*=/v1/{name=projects/*/locations/*/runtimeProjectAttachments/*} -LookupRuntimeProjectAttachment=.google.cloud.apihub.v1.LookupRuntimeProjectAttachmentRequest>.google.cloud.apihub.v1.LookupRuntimeProjectAttachmentResponse"OAnameB@/v1/{name=projects/*/locations/*}:lookupRuntimeProjectAttachmentIAapihub.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -com.google.cloud.apihub.v1B$RuntimeProjectAttachmentServiceProtoPZ2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpbGoogle.Cloud.ApiHub.V1Google\\Cloud\\ApiHub\\V1Google::Cloud::ApiHub::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Api.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Api.php deleted file mode 100644 index 5c0dc20983a6..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Api.php +++ /dev/null @@ -1,817 +0,0 @@ -google.cloud.apihub.v1.Api - */ -class Api extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the API resource in the API Hub. - * Format: - * `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The display name of the API resource. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The description of the API resource. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. The documentation for the API resource. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $documentation = null; - /** - * Optional. Owner details for the API resource. - * - * Generated from protobuf field .google.cloud.apihub.v1.Owner owner = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $owner = null; - /** - * Output only. The list of versions present in an API resource. - * Note: An API resource can be associated with more than 1 version. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field repeated string versions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $versions; - /** - * Output only. The time at which the API resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the API resource was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The target users for the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-target-user` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues target_user = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $target_user = null; - /** - * Optional. The team owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-team` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues team = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $team = null; - /** - * Optional. The business unit owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-business-unit` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues business_unit = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $business_unit = null; - /** - * Optional. The maturity level of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-maturity-level` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues maturity_level = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $maturity_level = null; - /** - * Optional. The list of user defined attributes associated with the API - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - /** - * Optional. The style of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-api-style` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues api_style = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $api_style = null; - /** - * Optional. The selected version for an API resource. - * This can be used when special handling is needed on client side for - * particular version of the API. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string selected_version = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $selected_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the API resource in the API Hub. - * Format: - * `projects/{project}/locations/{location}/apis/{api}` - * @type string $display_name - * Required. The display name of the API resource. - * @type string $description - * Optional. The description of the API resource. - * @type \Google\Cloud\ApiHub\V1\Documentation $documentation - * Optional. The documentation for the API resource. - * @type \Google\Cloud\ApiHub\V1\Owner $owner - * Optional. Owner details for the API resource. - * @type array|\Google\Protobuf\Internal\RepeatedField $versions - * Output only. The list of versions present in an API resource. - * Note: An API resource can be associated with more than 1 version. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the API resource was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the API resource was last updated. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $target_user - * Optional. The target users for the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-target-user` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $team - * Optional. The team owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-team` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $business_unit - * Optional. The business unit owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-business-unit` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $maturity_level - * Optional. The maturity level of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-maturity-level` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the API - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $api_style - * Optional. The style of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-api-style` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type string $selected_version - * Optional. The selected version for an API resource. - * This can be used when special handling is needed on client side for - * particular version of the API. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the API resource in the API Hub. - * Format: - * `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the API resource in the API Hub. - * Format: - * `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the API resource. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the API resource. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the API resource. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the API resource. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The documentation for the API resource. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\Documentation|null - */ - public function getDocumentation() - { - return $this->documentation; - } - - public function hasDocumentation() - { - return isset($this->documentation); - } - - public function clearDocumentation() - { - unset($this->documentation); - } - - /** - * Optional. The documentation for the API resource. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\Documentation $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Documentation::class); - $this->documentation = $var; - - return $this; - } - - /** - * Optional. Owner details for the API resource. - * - * Generated from protobuf field .google.cloud.apihub.v1.Owner owner = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\Owner|null - */ - public function getOwner() - { - return $this->owner; - } - - public function hasOwner() - { - return isset($this->owner); - } - - public function clearOwner() - { - unset($this->owner); - } - - /** - * Optional. Owner details for the API resource. - * - * Generated from protobuf field .google.cloud.apihub.v1.Owner owner = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\Owner $var - * @return $this - */ - public function setOwner($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Owner::class); - $this->owner = $var; - - return $this; - } - - /** - * Output only. The list of versions present in an API resource. - * Note: An API resource can be associated with more than 1 version. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field repeated string versions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersions() - { - return $this->versions; - } - - /** - * Output only. The list of versions present in an API resource. - * Note: An API resource can be associated with more than 1 version. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field repeated string versions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->versions = $arr; - - return $this; - } - - /** - * Output only. The time at which the API resource was 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. The time at which the API resource was 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. The time at which the API resource 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. The time at which the API resource 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; - } - - /** - * Optional. The target users for the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-target-user` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues target_user = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getTargetUser() - { - return $this->target_user; - } - - public function hasTargetUser() - { - return isset($this->target_user); - } - - public function clearTargetUser() - { - unset($this->target_user); - } - - /** - * Optional. The target users for the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-target-user` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues target_user = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setTargetUser($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->target_user = $var; - - return $this; - } - - /** - * Optional. The team owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-team` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues team = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getTeam() - { - return $this->team; - } - - public function hasTeam() - { - return isset($this->team); - } - - public function clearTeam() - { - unset($this->team); - } - - /** - * Optional. The team owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-team` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues team = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setTeam($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->team = $var; - - return $this; - } - - /** - * Optional. The business unit owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-business-unit` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues business_unit = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getBusinessUnit() - { - return $this->business_unit; - } - - public function hasBusinessUnit() - { - return isset($this->business_unit); - } - - public function clearBusinessUnit() - { - unset($this->business_unit); - } - - /** - * Optional. The business unit owning the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-business-unit` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues business_unit = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setBusinessUnit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->business_unit = $var; - - return $this; - } - - /** - * Optional. The maturity level of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-maturity-level` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues maturity_level = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getMaturityLevel() - { - return $this->maturity_level; - } - - public function hasMaturityLevel() - { - return isset($this->maturity_level); - } - - public function clearMaturityLevel() - { - unset($this->maturity_level); - } - - /** - * Optional. The maturity level of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-maturity-level` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues maturity_level = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setMaturityLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->maturity_level = $var; - - return $this; - } - - /** - * Optional. The list of user defined attributes associated with the API - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the API - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Optional. The style of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-api-style` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues api_style = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getApiStyle() - { - return $this->api_style; - } - - public function hasApiStyle() - { - return isset($this->api_style); - } - - public function clearApiStyle() - { - unset($this->api_style); - } - - /** - * Optional. The style of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-api-style` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues api_style = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setApiStyle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->api_style = $var; - - return $this; - } - - /** - * Optional. The selected version for an API resource. - * This can be used when special handling is needed on client side for - * particular version of the API. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string selected_version = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getSelectedVersion() - { - return $this->selected_version; - } - - /** - * Optional. The selected version for an API resource. - * This can be used when special handling is needed on client side for - * particular version of the API. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string selected_version = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSelectedVersion($var) - { - GPBUtil::checkString($var, True); - $this->selected_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance.php deleted file mode 100644 index afd18db169d6..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance.php +++ /dev/null @@ -1,352 +0,0 @@ -google.cloud.apihub.v1.ApiHubInstance - */ -class ApiHubInstance extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The current state of the ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Extra information about ApiHub instance state. Currently the - * message would be populated when state is `FAILED`. - * - * Generated from protobuf field string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Required. Config of the ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * Optional. Instance labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Description of the ApiHub instance. - * - * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Last update timestamp. - * @type int $state - * Output only. The current state of the ApiHub instance. - * @type string $state_message - * Output only. Extra information about ApiHub instance state. Currently the - * message would be populated when state is `FAILED`. - * @type \Google\Cloud\ApiHub\V1\ApiHubInstance\Config $config - * Required. Config of the ApiHub instance. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Instance labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * @type string $description - * Optional. Description of the ApiHub instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Creation timestamp. - * - * 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. Creation timestamp. - * - * 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. Last update timestamp. - * - * 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. Last update timestamp. - * - * 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; - } - - /** - * Output only. The current state of the ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\ApiHubInstance\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Extra information about ApiHub instance state. Currently the - * message would be populated when state is `FAILED`. - * - * Generated from protobuf field string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Extra information about ApiHub instance state. Currently the - * message would be populated when state is `FAILED`. - * - * Generated from protobuf field string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStateMessage($var) - { - GPBUtil::checkString($var, True); - $this->state_message = $var; - - return $this; - } - - /** - * Required. Config of the ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\ApiHubInstance\Config|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. Config of the ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\ApiHubInstance\Config $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\ApiHubInstance\Config::class); - $this->config = $var; - - return $this; - } - - /** - * Optional. Instance labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Instance labels to represent user-provided metadata. - * Refer to cloud documentation on labels for more details. - * https://cloud.google.com/compute/docs/labeling-resources - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Description of the ApiHub instance. - * - * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the ApiHub instance. - * - * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance/Config.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance/Config.php deleted file mode 100644 index 2dd975c2cd59..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance/Config.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.apihub.v1.ApiHubInstance.Config - */ -class Config extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Customer Managed Encryption Key (CMEK) used for data - * encryption. The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the location must match the instance location. - * - * Generated from protobuf field string cmek_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cmek_key_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cmek_key_name - * Required. The Customer Managed Encryption Key (CMEK) used for data - * encryption. The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the location must match the instance location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Customer Managed Encryption Key (CMEK) used for data - * encryption. The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the location must match the instance location. - * - * Generated from protobuf field string cmek_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCmekKeyName() - { - return $this->cmek_key_name; - } - - /** - * Required. The Customer Managed Encryption Key (CMEK) used for data - * encryption. The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the location must match the instance location. - * - * Generated from protobuf field string cmek_key_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCmekKeyName($var) - { - GPBUtil::checkString($var, True); - $this->cmek_key_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Config::class, \Google\Cloud\ApiHub\V1\ApiHubInstance_Config::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance/State.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance/State.php deleted file mode 100644 index 3f5f06cb5d1f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubInstance/State.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.ApiHubInstance.State - */ -class State -{ - /** - * The default value. This value is used if the state is omitted. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The ApiHub instance has not been initialized or has been deleted. - * - * Generated from protobuf enum INACTIVE = 1; - */ - const INACTIVE = 1; - /** - * The ApiHub instance is being created. - * - * Generated from protobuf enum CREATING = 2; - */ - const CREATING = 2; - /** - * The ApiHub instance has been created and is ready for use. - * - * Generated from protobuf enum ACTIVE = 3; - */ - const ACTIVE = 3; - /** - * The ApiHub instance is being updated. - * - * Generated from protobuf enum UPDATING = 4; - */ - const UPDATING = 4; - /** - * The ApiHub instance is being deleted. - * - * Generated from protobuf enum DELETING = 5; - */ - const DELETING = 5; - /** - * The ApiHub instance encountered an error during a state change. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::INACTIVE => 'INACTIVE', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::FAILED => 'FAILED', - ]; - - 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(State::class, \Google\Cloud\ApiHub\V1\ApiHubInstance_State::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubResource.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubResource.php deleted file mode 100644 index 52ff721ceb58..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiHubResource.php +++ /dev/null @@ -1,259 +0,0 @@ -google.cloud.apihub.v1.ApiHubResource - */ -class ApiHubResource extends \Google\Protobuf\Internal\Message -{ - protected $resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Api $api - * This represents Api resource in search results. Only name, display_name, - * description and owner fields are populated in search results. - * @type \Google\Cloud\ApiHub\V1\ApiOperation $operation - * This represents ApiOperation resource in search results. Only name, - * and description fields are populated in search results. - * @type \Google\Cloud\ApiHub\V1\Deployment $deployment - * This represents Deployment resource in search results. Only name, - * display_name and description fields are populated in search results. - * @type \Google\Cloud\ApiHub\V1\Spec $spec - * This represents Spec resource in search results. Only name, - * display_name and description fields are populated in search results. - * @type \Google\Cloud\ApiHub\V1\Definition $definition - * This represents Definition resource in search results. - * Only name field is populated in search results. - * @type \Google\Cloud\ApiHub\V1\Version $version - * This represents Version resource in search results. Only name, - * display_name and description fields are populated in search results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * This represents Api resource in search results. Only name, display_name, - * description and owner fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 1; - * @return \Google\Cloud\ApiHub\V1\Api|null - */ - public function getApi() - { - return $this->readOneof(1); - } - - public function hasApi() - { - return $this->hasOneof(1); - } - - /** - * This represents Api resource in search results. Only name, display_name, - * description and owner fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 1; - * @param \Google\Cloud\ApiHub\V1\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Api::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * This represents ApiOperation resource in search results. Only name, - * and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiOperation operation = 2; - * @return \Google\Cloud\ApiHub\V1\ApiOperation|null - */ - public function getOperation() - { - return $this->readOneof(2); - } - - public function hasOperation() - { - return $this->hasOneof(2); - } - - /** - * This represents ApiOperation resource in search results. Only name, - * and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiOperation operation = 2; - * @param \Google\Cloud\ApiHub\V1\ApiOperation $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\ApiOperation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * This represents Deployment resource in search results. Only name, - * display_name and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 3; - * @return \Google\Cloud\ApiHub\V1\Deployment|null - */ - public function getDeployment() - { - return $this->readOneof(3); - } - - public function hasDeployment() - { - return $this->hasOneof(3); - } - - /** - * This represents Deployment resource in search results. Only name, - * display_name and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 3; - * @param \Google\Cloud\ApiHub\V1\Deployment $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Deployment::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * This represents Spec resource in search results. Only name, - * display_name and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 4; - * @return \Google\Cloud\ApiHub\V1\Spec|null - */ - public function getSpec() - { - return $this->readOneof(4); - } - - public function hasSpec() - { - return $this->hasOneof(4); - } - - /** - * This represents Spec resource in search results. Only name, - * display_name and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 4; - * @param \Google\Cloud\ApiHub\V1\Spec $var - * @return $this - */ - public function setSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Spec::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * This represents Definition resource in search results. - * Only name field is populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Definition definition = 5; - * @return \Google\Cloud\ApiHub\V1\Definition|null - */ - public function getDefinition() - { - return $this->readOneof(5); - } - - public function hasDefinition() - { - return $this->hasOneof(5); - } - - /** - * This represents Definition resource in search results. - * Only name field is populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Definition definition = 5; - * @param \Google\Cloud\ApiHub\V1\Definition $var - * @return $this - */ - public function setDefinition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Definition::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * This represents Version resource in search results. Only name, - * display_name and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 6; - * @return \Google\Cloud\ApiHub\V1\Version|null - */ - public function getVersion() - { - return $this->readOneof(6); - } - - public function hasVersion() - { - return $this->hasOneof(6); - } - - /** - * This represents Version resource in search results. Only name, - * display_name and description fields are populated in search results. - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 6; - * @param \Google\Cloud\ApiHub\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Version::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getResource() - { - return $this->whichOneof("resource"); - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiOperation.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiOperation.php deleted file mode 100644 index c4f962e89b94..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ApiOperation.php +++ /dev/null @@ -1,299 +0,0 @@ -google.cloud.apihub.v1.ApiOperation - */ -class ApiOperation extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the operation. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The name of the spec from where the operation was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $spec = ''; - /** - * Output only. Operation details. - * - * Generated from protobuf field .google.cloud.apihub.v1.OperationDetails details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $details = null; - /** - * Output only. The time at which the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the operation was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The list of user defined attributes associated with the API - * operation resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the operation. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * @type string $spec - * Output only. The name of the spec from where the operation was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * @type \Google\Cloud\ApiHub\V1\OperationDetails $details - * Output only. Operation details. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the operation was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the operation was last updated. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the API - * operation resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the operation. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the operation. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The name of the spec from where the operation was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getSpec() - { - return $this->spec; - } - - /** - * Output only. The name of the spec from where the operation was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpec($var) - { - GPBUtil::checkString($var, True); - $this->spec = $var; - - return $this; - } - - /** - * Output only. Operation details. - * - * Generated from protobuf field .google.cloud.apihub.v1.OperationDetails details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\OperationDetails|null - */ - public function getDetails() - { - return $this->details; - } - - public function hasDetails() - { - return isset($this->details); - } - - public function clearDetails() - { - unset($this->details); - } - - /** - * Output only. Operation details. - * - * Generated from protobuf field .google.cloud.apihub.v1.OperationDetails details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\OperationDetails $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\OperationDetails::class); - $this->details = $var; - - return $this; - } - - /** - * Output only. The time at which the operation was 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. The time at which the operation was 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. The time at which the operation was 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. The time at which the operation was 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; - } - - /** - * Optional. The list of user defined attributes associated with the API - * operation resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the API - * operation resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute.php deleted file mode 100644 index ed95b5410707..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute.php +++ /dev/null @@ -1,474 +0,0 @@ -google.cloud.apihub.v1.Attribute - */ -class Attribute extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the attribute in the API Hub. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The display name of the attribute. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The description of the attribute. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The definition type of the attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.DefinitionType definition_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $definition_type = 0; - /** - * Required. The scope of the attribute. It represents the resource in the API - * Hub to which the attribute can be linked. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.Scope scope = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = 0; - /** - * Required. The type of the data of the attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.DataType data_type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_type = 0; - /** - * Optional. The list of allowed values when the attribute value is of type - * enum. This is required when the data_type of the attribute is ENUM. The - * maximum number of allowed values of an attribute will be 1000. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute.AllowedValue allowed_values = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $allowed_values; - /** - * Optional. The maximum number of values that the attribute can have when - * associated with an API Hub resource. Cardinality 1 would represent a - * single-valued attribute. It must not be less than 1 or greater than 20. If - * not specified, the cardinality would be set to 1 by default and represent a - * single-valued attribute. - * - * Generated from protobuf field int32 cardinality = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cardinality = 0; - /** - * Output only. When mandatory is true, the attribute is mandatory for the - * resource specified in the scope. Only System defined attributes can be - * mandatory. - * - * Generated from protobuf field bool mandatory = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $mandatory = false; - /** - * Output only. The time at which the attribute was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the attribute was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the attribute in the API Hub. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * @type string $display_name - * Required. The display name of the attribute. - * @type string $description - * Optional. The description of the attribute. - * @type int $definition_type - * Output only. The definition type of the attribute. - * @type int $scope - * Required. The scope of the attribute. It represents the resource in the API - * Hub to which the attribute can be linked. - * @type int $data_type - * Required. The type of the data of the attribute. - * @type array<\Google\Cloud\ApiHub\V1\Attribute\AllowedValue>|\Google\Protobuf\Internal\RepeatedField $allowed_values - * Optional. The list of allowed values when the attribute value is of type - * enum. This is required when the data_type of the attribute is ENUM. The - * maximum number of allowed values of an attribute will be 1000. - * @type int $cardinality - * Optional. The maximum number of values that the attribute can have when - * associated with an API Hub resource. Cardinality 1 would represent a - * single-valued attribute. It must not be less than 1 or greater than 20. If - * not specified, the cardinality would be set to 1 by default and represent a - * single-valued attribute. - * @type bool $mandatory - * Output only. When mandatory is true, the attribute is mandatory for the - * resource specified in the scope. Only System defined attributes can be - * mandatory. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the attribute was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the attribute was last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the attribute in the API Hub. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the attribute in the API Hub. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the attribute. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the attribute. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the attribute. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the attribute. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The definition type of the attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.DefinitionType definition_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDefinitionType() - { - return $this->definition_type; - } - - /** - * Output only. The definition type of the attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.DefinitionType definition_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDefinitionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Attribute\DefinitionType::class); - $this->definition_type = $var; - - return $this; - } - - /** - * Required. The scope of the attribute. It represents the resource in the API - * Hub to which the attribute can be linked. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.Scope scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. The scope of the attribute. It represents the resource in the API - * Hub to which the attribute can be linked. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.Scope scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Attribute\Scope::class); - $this->scope = $var; - - return $this; - } - - /** - * Required. The type of the data of the attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.DataType data_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDataType() - { - return $this->data_type; - } - - /** - * Required. The type of the data of the attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute.DataType data_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDataType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Attribute\DataType::class); - $this->data_type = $var; - - return $this; - } - - /** - * Optional. The list of allowed values when the attribute value is of type - * enum. This is required when the data_type of the attribute is ENUM. The - * maximum number of allowed values of an attribute will be 1000. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute.AllowedValue allowed_values = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedValues() - { - return $this->allowed_values; - } - - /** - * Optional. The list of allowed values when the attribute value is of type - * enum. This is required when the data_type of the attribute is ENUM. The - * maximum number of allowed values of an attribute will be 1000. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute.AllowedValue allowed_values = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\ApiHub\V1\Attribute\AllowedValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Attribute\AllowedValue::class); - $this->allowed_values = $arr; - - return $this; - } - - /** - * Optional. The maximum number of values that the attribute can have when - * associated with an API Hub resource. Cardinality 1 would represent a - * single-valued attribute. It must not be less than 1 or greater than 20. If - * not specified, the cardinality would be set to 1 by default and represent a - * single-valued attribute. - * - * Generated from protobuf field int32 cardinality = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCardinality() - { - return $this->cardinality; - } - - /** - * Optional. The maximum number of values that the attribute can have when - * associated with an API Hub resource. Cardinality 1 would represent a - * single-valued attribute. It must not be less than 1 or greater than 20. If - * not specified, the cardinality would be set to 1 by default and represent a - * single-valued attribute. - * - * Generated from protobuf field int32 cardinality = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCardinality($var) - { - GPBUtil::checkInt32($var); - $this->cardinality = $var; - - return $this; - } - - /** - * Output only. When mandatory is true, the attribute is mandatory for the - * resource specified in the scope. Only System defined attributes can be - * mandatory. - * - * Generated from protobuf field bool mandatory = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getMandatory() - { - return $this->mandatory; - } - - /** - * Output only. When mandatory is true, the attribute is mandatory for the - * resource specified in the scope. Only System defined attributes can be - * mandatory. - * - * Generated from protobuf field bool mandatory = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setMandatory($var) - { - GPBUtil::checkBool($var); - $this->mandatory = $var; - - return $this; - } - - /** - * Output only. The time at which the attribute was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.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. The time at which the attribute was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.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. The time at which the attribute was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.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. The time at which the attribute was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11 [(.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; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/AllowedValue.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/AllowedValue.php deleted file mode 100644 index 9301703c179a..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/AllowedValue.php +++ /dev/null @@ -1,209 +0,0 @@ -google.cloud.apihub.v1.Attribute.AllowedValue - */ -class AllowedValue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the allowed value. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another allowed value in the same - * attribute resource. - * * If not provided, a system generated id derived from the display name - * will be used. In this case, the service will handle conflict resolution - * by adding a system generated suffix in case of duplicates. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Required. The display name of the allowed value. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The detailed description of the allowed value. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. When set to true, the allowed value cannot be updated or - * deleted by the user. It can only be true for System defined attributes. - * - * Generated from protobuf field bool immutable = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $immutable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. The ID of the allowed value. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another allowed value in the same - * attribute resource. - * * If not provided, a system generated id derived from the display name - * will be used. In this case, the service will handle conflict resolution - * by adding a system generated suffix in case of duplicates. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * @type string $display_name - * Required. The display name of the allowed value. - * @type string $description - * Optional. The detailed description of the allowed value. - * @type bool $immutable - * Optional. When set to true, the allowed value cannot be updated or - * deleted by the user. It can only be true for System defined attributes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the allowed value. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another allowed value in the same - * attribute resource. - * * If not provided, a system generated id derived from the display name - * will be used. In this case, the service will handle conflict resolution - * by adding a system generated suffix in case of duplicates. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. The ID of the allowed value. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another allowed value in the same - * attribute resource. - * * If not provided, a system generated id derived from the display name - * will be used. In this case, the service will handle conflict resolution - * by adding a system generated suffix in case of duplicates. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Required. The display name of the allowed value. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the allowed value. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The detailed description of the allowed value. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The detailed description of the allowed value. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. When set to true, the allowed value cannot be updated or - * deleted by the user. It can only be true for System defined attributes. - * - * Generated from protobuf field bool immutable = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getImmutable() - { - return $this->immutable; - } - - /** - * Optional. When set to true, the allowed value cannot be updated or - * deleted by the user. It can only be true for System defined attributes. - * - * Generated from protobuf field bool immutable = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setImmutable($var) - { - GPBUtil::checkBool($var); - $this->immutable = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AllowedValue::class, \Google\Cloud\ApiHub\V1\Attribute_AllowedValue::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/DataType.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/DataType.php deleted file mode 100644 index 630882d5817f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/DataType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.apihub.v1.Attribute.DataType - */ -class DataType -{ - /** - * Attribute data type unspecified. - * - * Generated from protobuf enum DATA_TYPE_UNSPECIFIED = 0; - */ - const DATA_TYPE_UNSPECIFIED = 0; - /** - * Attribute's value is of type enum. - * - * Generated from protobuf enum ENUM = 1; - */ - const ENUM = 1; - /** - * Attribute's value is of type json. - * - * Generated from protobuf enum JSON = 2; - */ - const JSON = 2; - /** - * Attribute's value is of type string. - * - * Generated from protobuf enum STRING = 3; - */ - const STRING = 3; - - private static $valueToName = [ - self::DATA_TYPE_UNSPECIFIED => 'DATA_TYPE_UNSPECIFIED', - self::ENUM => 'ENUM', - self::JSON => 'JSON', - self::STRING => 'STRING', - ]; - - 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(DataType::class, \Google\Cloud\ApiHub\V1\Attribute_DataType::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/DefinitionType.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/DefinitionType.php deleted file mode 100644 index 7eec58e57a1b..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/DefinitionType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.apihub.v1.Attribute.DefinitionType - */ -class DefinitionType -{ - /** - * Attribute definition type unspecified. - * - * Generated from protobuf enum DEFINITION_TYPE_UNSPECIFIED = 0; - */ - const DEFINITION_TYPE_UNSPECIFIED = 0; - /** - * The attribute is predefined by the API Hub. Note that only the list of - * allowed values can be updated in this case via UpdateAttribute method. - * - * Generated from protobuf enum SYSTEM_DEFINED = 1; - */ - const SYSTEM_DEFINED = 1; - /** - * The attribute is defined by the user. - * - * Generated from protobuf enum USER_DEFINED = 2; - */ - const USER_DEFINED = 2; - - private static $valueToName = [ - self::DEFINITION_TYPE_UNSPECIFIED => 'DEFINITION_TYPE_UNSPECIFIED', - self::SYSTEM_DEFINED => 'SYSTEM_DEFINED', - self::USER_DEFINED => 'USER_DEFINED', - ]; - - 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(DefinitionType::class, \Google\Cloud\ApiHub\V1\Attribute_DefinitionType::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/Scope.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/Scope.php deleted file mode 100644 index c9ab5149b13f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Attribute/Scope.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.apihub.v1.Attribute.Scope - */ -class Scope -{ - /** - * Scope Unspecified. - * - * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; - */ - const SCOPE_UNSPECIFIED = 0; - /** - * Attribute can be linked to an API. - * - * Generated from protobuf enum API = 1; - */ - const API = 1; - /** - * Attribute can be linked to an API version. - * - * Generated from protobuf enum VERSION = 2; - */ - const VERSION = 2; - /** - * Attribute can be linked to a Spec. - * - * Generated from protobuf enum SPEC = 3; - */ - const SPEC = 3; - /** - * Attribute can be linked to an API Operation. - * - * Generated from protobuf enum API_OPERATION = 4; - */ - const API_OPERATION = 4; - /** - * Attribute can be linked to a Deployment. - * - * Generated from protobuf enum DEPLOYMENT = 5; - */ - const DEPLOYMENT = 5; - /** - * Attribute can be linked to a Dependency. - * - * Generated from protobuf enum DEPENDENCY = 6; - */ - const DEPENDENCY = 6; - /** - * Attribute can be linked to a definition. - * - * Generated from protobuf enum DEFINITION = 7; - */ - const DEFINITION = 7; - /** - * Attribute can be linked to a ExternalAPI. - * - * Generated from protobuf enum EXTERNAL_API = 8; - */ - const EXTERNAL_API = 8; - /** - * Attribute can be linked to a Plugin. - * - * Generated from protobuf enum PLUGIN = 9; - */ - const PLUGIN = 9; - - private static $valueToName = [ - self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', - self::API => 'API', - self::VERSION => 'VERSION', - self::SPEC => 'SPEC', - self::API_OPERATION => 'API_OPERATION', - self::DEPLOYMENT => 'DEPLOYMENT', - self::DEPENDENCY => 'DEPENDENCY', - self::DEFINITION => 'DEFINITION', - self::EXTERNAL_API => 'EXTERNAL_API', - self::PLUGIN => 'PLUGIN', - ]; - - 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(Scope::class, \Google\Cloud\ApiHub\V1\Attribute_Scope::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues.php deleted file mode 100644 index 1c00ded9f8a5..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues.php +++ /dev/null @@ -1,188 +0,0 @@ -google.cloud.apihub.v1.AttributeValues - */ -class AttributeValues extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the attribute. - * Format: projects/{project}/locations/{location}/attributes/{attribute} - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $attribute = ''; - protected $Value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\AttributeValues\EnumAttributeValues $enum_values - * The attribute values associated with a resource in case attribute data - * type is enum. - * @type \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues $string_values - * The attribute values associated with a resource in case attribute data - * type is string. - * @type \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues $json_values - * The attribute values associated with a resource in case attribute data - * type is JSON. - * @type string $attribute - * Output only. The name of the attribute. - * Format: projects/{project}/locations/{location}/attributes/{attribute} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * The attribute values associated with a resource in case attribute data - * type is enum. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2; - * @return \Google\Cloud\ApiHub\V1\AttributeValues\EnumAttributeValues|null - */ - public function getEnumValues() - { - return $this->readOneof(2); - } - - public function hasEnumValues() - { - return $this->hasOneof(2); - } - - /** - * The attribute values associated with a resource in case attribute data - * type is enum. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2; - * @param \Google\Cloud\ApiHub\V1\AttributeValues\EnumAttributeValues $var - * @return $this - */ - public function setEnumValues($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues\EnumAttributeValues::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The attribute values associated with a resource in case attribute data - * type is string. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3; - * @return \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues|null - */ - public function getStringValues() - { - return $this->readOneof(3); - } - - public function hasStringValues() - { - return $this->hasOneof(3); - } - - /** - * The attribute values associated with a resource in case attribute data - * type is string. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3; - * @param \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues $var - * @return $this - */ - public function setStringValues($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The attribute values associated with a resource in case attribute data - * type is JSON. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4; - * @return \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues|null - */ - public function getJsonValues() - { - return $this->readOneof(4); - } - - public function hasJsonValues() - { - return $this->hasOneof(4); - } - - /** - * The attribute values associated with a resource in case attribute data - * type is JSON. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4; - * @param \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues $var - * @return $this - */ - public function setJsonValues($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues\StringAttributeValues::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The name of the attribute. - * Format: projects/{project}/locations/{location}/attributes/{attribute} - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * Output only. The name of the attribute. - * Format: projects/{project}/locations/{location}/attributes/{attribute} - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("Value"); - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues/EnumAttributeValues.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues/EnumAttributeValues.php deleted file mode 100644 index 0caeae004ee3..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues/EnumAttributeValues.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.apihub.v1.AttributeValues.EnumAttributeValues - */ -class EnumAttributeValues extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The attribute values in case attribute data type is enum. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Attribute\AllowedValue>|\Google\Protobuf\Internal\RepeatedField $values - * Required. The attribute values in case attribute data type is enum. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. The attribute values in case attribute data type is enum. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The attribute values in case attribute data type is enum. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute.AllowedValue values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\ApiHub\V1\Attribute\AllowedValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Attribute\AllowedValue::class); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EnumAttributeValues::class, \Google\Cloud\ApiHub\V1\AttributeValues_EnumAttributeValues::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues/StringAttributeValues.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues/StringAttributeValues.php deleted file mode 100644 index cdb3bd90f170..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/AttributeValues/StringAttributeValues.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.apihub.v1.AttributeValues.StringAttributeValues - */ -class StringAttributeValues extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The attribute values in case attribute data type is string or - * JSON. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Required. The attribute values in case attribute data type is string or - * JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. The attribute values in case attribute data type is string or - * JSON. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. The attribute values in case attribute data type is string or - * JSON. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringAttributeValues::class, \Google\Cloud\ApiHub\V1\AttributeValues_StringAttributeValues::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateApiHubInstanceRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateApiHubInstanceRequest.php deleted file mode 100644 index 3eb82d43e72c..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateApiHubInstanceRequest.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.apihub.v1.CreateApiHubInstanceRequest - */ -class CreateApiHubInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Identifier to assign to the Api Hub instance. Must be unique - * within scope of the parent resource. If the field is not provided, system - * generated id will be used. - * This value should be 4-40 characters, and valid characters - * are `/[a-z][A-Z][0-9]-_/`. - * - * Generated from protobuf field string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $api_hub_instance_id = ''; - /** - * Required. The ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_hub_instance = null; - - /** - * @param string $parent Required. The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ProvisioningClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\ApiHubInstance $apiHubInstance Required. The ApiHub instance. - * @param string $apiHubInstanceId Optional. Identifier to assign to the Api Hub instance. Must be unique - * within scope of the parent resource. If the field is not provided, system - * generated id will be used. - * - * This value should be 4-40 characters, and valid characters - * are `/[a-z][A-Z][0-9]-_/`. - * - * @return \Google\Cloud\ApiHub\V1\CreateApiHubInstanceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\ApiHubInstance $apiHubInstance, string $apiHubInstanceId): self - { - return (new self()) - ->setParent($parent) - ->setApiHubInstance($apiHubInstance) - ->setApiHubInstanceId($apiHubInstanceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * @type string $api_hub_instance_id - * Optional. Identifier to assign to the Api Hub instance. Must be unique - * within scope of the parent resource. If the field is not provided, system - * generated id will be used. - * This value should be 4-40 characters, and valid characters - * are `/[a-z][A-Z][0-9]-_/`. - * @type \Google\Cloud\ApiHub\V1\ApiHubInstance $api_hub_instance - * Required. The ApiHub instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * - * 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 for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * - * 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. Identifier to assign to the Api Hub instance. Must be unique - * within scope of the parent resource. If the field is not provided, system - * generated id will be used. - * This value should be 4-40 characters, and valid characters - * are `/[a-z][A-Z][0-9]-_/`. - * - * Generated from protobuf field string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getApiHubInstanceId() - { - return $this->api_hub_instance_id; - } - - /** - * Optional. Identifier to assign to the Api Hub instance. Must be unique - * within scope of the parent resource. If the field is not provided, system - * generated id will be used. - * This value should be 4-40 characters, and valid characters - * are `/[a-z][A-Z][0-9]-_/`. - * - * Generated from protobuf field string api_hub_instance_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setApiHubInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->api_hub_instance_id = $var; - - return $this; - } - - /** - * Required. The ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\ApiHubInstance|null - */ - public function getApiHubInstance() - { - return $this->api_hub_instance; - } - - public function hasApiHubInstance() - { - return isset($this->api_hub_instance); - } - - public function clearApiHubInstance() - { - unset($this->api_hub_instance); - } - - /** - * Required. The ApiHub instance. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\ApiHubInstance $var - * @return $this - */ - public function setApiHubInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\ApiHubInstance::class); - $this->api_hub_instance = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateApiRequest.php deleted file mode 100644 index 7982388e3b4f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateApiRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.apihub.v1.CreateApiRequest - */ -class CreateApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the API resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the API resource, which will become the final - * component of the API's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another API resource in the API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string api_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $api_id = ''; - /** - * Required. The API resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api = null; - - /** - * @param string $parent Required. The parent resource for the API resource. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\Api $api Required. The API resource to create. - * @param string $apiId Optional. The ID to use for the API resource, which will become the final - * component of the API's resource name. This field is optional. - * - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another API resource in the API hub. - * * If not provided, a system generated id will be used. - * - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * @return \Google\Cloud\ApiHub\V1\CreateApiRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\Api $api, string $apiId): self - { - return (new self()) - ->setParent($parent) - ->setApi($api) - ->setApiId($apiId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for the API resource. - * Format: `projects/{project}/locations/{location}` - * @type string $api_id - * Optional. The ID to use for the API resource, which will become the final - * component of the API's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another API resource in the API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * @type \Google\Cloud\ApiHub\V1\Api $api - * Required. The API resource to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the API resource. - * Format: `projects/{project}/locations/{location}` - * - * 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 for the API resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the API resource, which will become the final - * component of the API's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another API resource in the API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string api_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getApiId() - { - return $this->api_id; - } - - /** - * Optional. The ID to use for the API resource, which will become the final - * component of the API's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another API resource in the API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string api_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setApiId($var) - { - GPBUtil::checkString($var, True); - $this->api_id = $var; - - return $this; - } - - /** - * Required. The API resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Required. The API resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Api::class); - $this->api = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateAttributeRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateAttributeRequest.php deleted file mode 100644 index 636366fa44a6..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateAttributeRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.apihub.v1.CreateAttributeRequest - */ -class CreateAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the attribute, which will become the final - * component of the attribute's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another attribute resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $attribute_id = ''; - /** - * Required. The attribute to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attribute = null; - - /** - * @param string $parent Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\Attribute $attribute Required. The attribute to create. - * @param string $attributeId Optional. The ID to use for the attribute, which will become the final - * component of the attribute's resource name. This field is optional. - * - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another attribute resource in the API - * hub. - * * If not provided, a system generated id will be used. - * - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * @return \Google\Cloud\ApiHub\V1\CreateAttributeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\Attribute $attribute, string $attributeId): self - { - return (new self()) - ->setParent($parent) - ->setAttribute($attribute) - ->setAttributeId($attributeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * @type string $attribute_id - * Optional. The ID to use for the attribute, which will become the final - * component of the attribute's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another attribute resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * @type \Google\Cloud\ApiHub\V1\Attribute $attribute - * Required. The attribute to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * - * 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 for Attribute. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the attribute, which will become the final - * component of the attribute's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another attribute resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAttributeId() - { - return $this->attribute_id; - } - - /** - * Optional. The ID to use for the attribute, which will become the final - * component of the attribute's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another attribute resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string attribute_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAttributeId($var) - { - GPBUtil::checkString($var, True); - $this->attribute_id = $var; - - return $this; - } - - /** - * Required. The attribute to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Attribute|null - */ - public function getAttribute() - { - return $this->attribute; - } - - public function hasAttribute() - { - return isset($this->attribute); - } - - public function clearAttribute() - { - unset($this->attribute); - } - - /** - * Required. The attribute to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute attribute = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Attribute $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Attribute::class); - $this->attribute = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateDependencyRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateDependencyRequest.php deleted file mode 100644 index e428518b14da..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateDependencyRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.apihub.v1.CreateDependencyRequest - */ -class CreateDependencyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the dependency resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the dependency resource, which will become the - * final component of the dependency's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * duplicate id is provided by the client. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are `[a-z][A-Z][0-9]-_`. - * - * Generated from protobuf field string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dependency_id = ''; - /** - * Required. The dependency resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dependency = null; - - /** - * @param string $parent Required. The parent resource for the dependency resource. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubDependenciesClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\Dependency $dependency Required. The dependency resource to create. - * @param string $dependencyId Optional. The ID to use for the dependency resource, which will become the - * final component of the dependency's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * duplicate id is provided by the client. - * * If not provided, a system generated id will be used. - * - * This value should be 4-500 characters, and valid characters - * are `[a-z][A-Z][0-9]-_`. - * - * @return \Google\Cloud\ApiHub\V1\CreateDependencyRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\Dependency $dependency, string $dependencyId): self - { - return (new self()) - ->setParent($parent) - ->setDependency($dependency) - ->setDependencyId($dependencyId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for the dependency resource. - * Format: `projects/{project}/locations/{location}` - * @type string $dependency_id - * Optional. The ID to use for the dependency resource, which will become the - * final component of the dependency's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * duplicate id is provided by the client. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are `[a-z][A-Z][0-9]-_`. - * @type \Google\Cloud\ApiHub\V1\Dependency $dependency - * Required. The dependency resource to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the dependency resource. - * Format: `projects/{project}/locations/{location}` - * - * 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 for the dependency resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the dependency resource, which will become the - * final component of the dependency's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * duplicate id is provided by the client. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are `[a-z][A-Z][0-9]-_`. - * - * Generated from protobuf field string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDependencyId() - { - return $this->dependency_id; - } - - /** - * Optional. The ID to use for the dependency resource, which will become the - * final component of the dependency's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * duplicate id is provided by the client. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are `[a-z][A-Z][0-9]-_`. - * - * Generated from protobuf field string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDependencyId($var) - { - GPBUtil::checkString($var, True); - $this->dependency_id = $var; - - return $this; - } - - /** - * Required. The dependency resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Dependency|null - */ - public function getDependency() - { - return $this->dependency; - } - - public function hasDependency() - { - return isset($this->dependency); - } - - public function clearDependency() - { - unset($this->dependency); - } - - /** - * Required. The dependency resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Dependency $var - * @return $this - */ - public function setDependency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Dependency::class); - $this->dependency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateDeploymentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateDeploymentRequest.php deleted file mode 100644 index d97c7c5d5767..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateDeploymentRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.apihub.v1.CreateDeploymentRequest - */ -class CreateDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the deployment resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the deployment resource, which will become the - * final component of the deployment's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another deployment resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $deployment_id = ''; - /** - * Required. The deployment resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deployment = null; - - /** - * @param string $parent Required. The parent resource for the deployment resource. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\Deployment $deployment Required. The deployment resource to create. - * @param string $deploymentId Optional. The ID to use for the deployment resource, which will become the - * final component of the deployment's resource name. This field is optional. - * - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another deployment resource in the API - * hub. - * * If not provided, a system generated id will be used. - * - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * @return \Google\Cloud\ApiHub\V1\CreateDeploymentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\Deployment $deployment, string $deploymentId): self - { - return (new self()) - ->setParent($parent) - ->setDeployment($deployment) - ->setDeploymentId($deploymentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for the deployment resource. - * Format: `projects/{project}/locations/{location}` - * @type string $deployment_id - * Optional. The ID to use for the deployment resource, which will become the - * final component of the deployment's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another deployment resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * @type \Google\Cloud\ApiHub\V1\Deployment $deployment - * Required. The deployment resource to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the deployment resource. - * Format: `projects/{project}/locations/{location}` - * - * 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 for the deployment resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the deployment resource, which will become the - * final component of the deployment's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another deployment resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDeploymentId() - { - return $this->deployment_id; - } - - /** - * Optional. The ID to use for the deployment resource, which will become the - * final component of the deployment's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another deployment resource in the API - * hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDeploymentId($var) - { - GPBUtil::checkString($var, True); - $this->deployment_id = $var; - - return $this; - } - - /** - * Required. The deployment resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Deployment|null - */ - public function getDeployment() - { - return $this->deployment; - } - - public function hasDeployment() - { - return isset($this->deployment); - } - - public function clearDeployment() - { - unset($this->deployment); - } - - /** - * Required. The deployment resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Deployment $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Deployment::class); - $this->deployment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateExternalApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateExternalApiRequest.php deleted file mode 100644 index b614295545dd..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateExternalApiRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.apihub.v1.CreateExternalApiRequest - */ -class CreateExternalApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the External API resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the External API resource, which will become - * the final component of the External API's resource name. This field is - * optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another External API resource in the - * API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_api_id = ''; - /** - * Required. The External API resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $external_api = null; - - /** - * @param string $parent Required. The parent resource for the External API resource. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\ExternalApi $externalApi Required. The External API resource to create. - * @param string $externalApiId Optional. The ID to use for the External API resource, which will become - * the final component of the External API's resource name. This field is - * optional. - * - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another External API resource in the - * API hub. - * * If not provided, a system generated id will be used. - * - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * @return \Google\Cloud\ApiHub\V1\CreateExternalApiRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\ExternalApi $externalApi, string $externalApiId): self - { - return (new self()) - ->setParent($parent) - ->setExternalApi($externalApi) - ->setExternalApiId($externalApiId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for the External API resource. - * Format: `projects/{project}/locations/{location}` - * @type string $external_api_id - * Optional. The ID to use for the External API resource, which will become - * the final component of the External API's resource name. This field is - * optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another External API resource in the - * API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * @type \Google\Cloud\ApiHub\V1\ExternalApi $external_api - * Required. The External API resource to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the External API resource. - * Format: `projects/{project}/locations/{location}` - * - * 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 for the External API resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the External API resource, which will become - * the final component of the External API's resource name. This field is - * optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another External API resource in the - * API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalApiId() - { - return $this->external_api_id; - } - - /** - * Optional. The ID to use for the External API resource, which will become - * the final component of the External API's resource name. This field is - * optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another External API resource in the - * API hub. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string external_api_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalApiId($var) - { - GPBUtil::checkString($var, True); - $this->external_api_id = $var; - - return $this; - } - - /** - * Required. The External API resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\ExternalApi|null - */ - public function getExternalApi() - { - return $this->external_api; - } - - public function hasExternalApi() - { - return isset($this->external_api); - } - - public function clearExternalApi() - { - unset($this->external_api); - } - - /** - * Required. The External API resource to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.ExternalApi external_api = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\ExternalApi $var - * @return $this - */ - public function setExternalApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\ExternalApi::class); - $this->external_api = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateHostProjectRegistrationRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateHostProjectRegistrationRequest.php deleted file mode 100644 index e16f55f09396..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateHostProjectRegistrationRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.apihub.v1.CreateHostProjectRegistrationRequest - */ -class CreateHostProjectRegistrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the host project. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID to use for the Host Project Registration, which will - * become the final component of the host project registration's resource - * name. The ID must be the same as the Google cloud project specified in the - * host_project_registration.gcp_project field. - * - * Generated from protobuf field string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $host_project_registration_id = ''; - /** - * Required. The host project registration to register. - * - * Generated from protobuf field .google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $host_project_registration = null; - - /** - * @param string $parent Required. The parent resource for the host project. - * Format: `projects/{project}/locations/{location}` - * Please see {@see HostProjectRegistrationServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\HostProjectRegistration $hostProjectRegistration Required. The host project registration to register. - * @param string $hostProjectRegistrationId Required. The ID to use for the Host Project Registration, which will - * become the final component of the host project registration's resource - * name. The ID must be the same as the Google cloud project specified in the - * host_project_registration.gcp_project field. - * - * @return \Google\Cloud\ApiHub\V1\CreateHostProjectRegistrationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\HostProjectRegistration $hostProjectRegistration, string $hostProjectRegistrationId): self - { - return (new self()) - ->setParent($parent) - ->setHostProjectRegistration($hostProjectRegistration) - ->setHostProjectRegistrationId($hostProjectRegistrationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for the host project. - * Format: `projects/{project}/locations/{location}` - * @type string $host_project_registration_id - * Required. The ID to use for the Host Project Registration, which will - * become the final component of the host project registration's resource - * name. The ID must be the same as the Google cloud project specified in the - * host_project_registration.gcp_project field. - * @type \Google\Cloud\ApiHub\V1\HostProjectRegistration $host_project_registration - * Required. The host project registration to register. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\HostProjectRegistrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the host project. - * Format: `projects/{project}/locations/{location}` - * - * 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 for the host project. - * Format: `projects/{project}/locations/{location}` - * - * 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 ID to use for the Host Project Registration, which will - * become the final component of the host project registration's resource - * name. The ID must be the same as the Google cloud project specified in the - * host_project_registration.gcp_project field. - * - * Generated from protobuf field string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHostProjectRegistrationId() - { - return $this->host_project_registration_id; - } - - /** - * Required. The ID to use for the Host Project Registration, which will - * become the final component of the host project registration's resource - * name. The ID must be the same as the Google cloud project specified in the - * host_project_registration.gcp_project field. - * - * Generated from protobuf field string host_project_registration_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHostProjectRegistrationId($var) - { - GPBUtil::checkString($var, True); - $this->host_project_registration_id = $var; - - return $this; - } - - /** - * Required. The host project registration to register. - * - * Generated from protobuf field .google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\HostProjectRegistration|null - */ - public function getHostProjectRegistration() - { - return $this->host_project_registration; - } - - public function hasHostProjectRegistration() - { - return isset($this->host_project_registration); - } - - public function clearHostProjectRegistration() - { - unset($this->host_project_registration); - } - - /** - * Required. The host project registration to register. - * - * Generated from protobuf field .google.cloud.apihub.v1.HostProjectRegistration host_project_registration = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\HostProjectRegistration $var - * @return $this - */ - public function setHostProjectRegistration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\HostProjectRegistration::class); - $this->host_project_registration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateRuntimeProjectAttachmentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateRuntimeProjectAttachmentRequest.php deleted file mode 100644 index 3d992d1c3509..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateRuntimeProjectAttachmentRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.apihub.v1.CreateRuntimeProjectAttachmentRequest - */ -class CreateRuntimeProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for the Runtime Project Attachment. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID to use for the Runtime Project Attachment, which will - * become the final component of the Runtime Project Attachment's name. The ID - * must be the same as the project ID of the Google cloud project specified in - * the runtime_project_attachment.runtime_project field. - * - * Generated from protobuf field string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $runtime_project_attachment_id = ''; - /** - * Required. The Runtime Project Attachment to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $runtime_project_attachment = null; - - /** - * @param string $parent Required. The parent resource for the Runtime Project Attachment. - * Format: `projects/{project}/locations/{location}` - * Please see {@see RuntimeProjectAttachmentServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment $runtimeProjectAttachment Required. The Runtime Project Attachment to create. - * @param string $runtimeProjectAttachmentId Required. The ID to use for the Runtime Project Attachment, which will - * become the final component of the Runtime Project Attachment's name. The ID - * must be the same as the project ID of the Google cloud project specified in - * the runtime_project_attachment.runtime_project field. - * - * @return \Google\Cloud\ApiHub\V1\CreateRuntimeProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment $runtimeProjectAttachment, string $runtimeProjectAttachmentId): self - { - return (new self()) - ->setParent($parent) - ->setRuntimeProjectAttachment($runtimeProjectAttachment) - ->setRuntimeProjectAttachmentId($runtimeProjectAttachmentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for the Runtime Project Attachment. - * Format: `projects/{project}/locations/{location}` - * @type string $runtime_project_attachment_id - * Required. The ID to use for the Runtime Project Attachment, which will - * become the final component of the Runtime Project Attachment's name. The ID - * must be the same as the project ID of the Google cloud project specified in - * the runtime_project_attachment.runtime_project field. - * @type \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment $runtime_project_attachment - * Required. The Runtime Project Attachment to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for the Runtime Project Attachment. - * Format: `projects/{project}/locations/{location}` - * - * 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 for the Runtime Project Attachment. - * Format: `projects/{project}/locations/{location}` - * - * 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 ID to use for the Runtime Project Attachment, which will - * become the final component of the Runtime Project Attachment's name. The ID - * must be the same as the project ID of the Google cloud project specified in - * the runtime_project_attachment.runtime_project field. - * - * Generated from protobuf field string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRuntimeProjectAttachmentId() - { - return $this->runtime_project_attachment_id; - } - - /** - * Required. The ID to use for the Runtime Project Attachment, which will - * become the final component of the Runtime Project Attachment's name. The ID - * must be the same as the project ID of the Google cloud project specified in - * the runtime_project_attachment.runtime_project field. - * - * Generated from protobuf field string runtime_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRuntimeProjectAttachmentId($var) - { - GPBUtil::checkString($var, True); - $this->runtime_project_attachment_id = $var; - - return $this; - } - - /** - * Required. The Runtime Project Attachment to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment|null - */ - public function getRuntimeProjectAttachment() - { - return $this->runtime_project_attachment; - } - - public function hasRuntimeProjectAttachment() - { - return isset($this->runtime_project_attachment); - } - - public function clearRuntimeProjectAttachment() - { - unset($this->runtime_project_attachment); - } - - /** - * Required. The Runtime Project Attachment to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment $var - * @return $this - */ - public function setRuntimeProjectAttachment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment::class); - $this->runtime_project_attachment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateSpecRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateSpecRequest.php deleted file mode 100644 index d9926e6eed5f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateSpecRequest.php +++ /dev/null @@ -1,210 +0,0 @@ -google.cloud.apihub.v1.CreateSpecRequest - */ -class CreateSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for Spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the spec, which will become the final component - * of the spec's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another spec in the API - * resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string spec_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $spec_id = ''; - /** - * Required. The spec to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $spec = null; - - /** - * @param string $parent Required. The parent resource for Spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * Please see {@see ApiHubClient::versionName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\Spec $spec Required. The spec to create. - * @param string $specId Optional. The ID to use for the spec, which will become the final component - * of the spec's resource name. This field is optional. - * - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another spec in the API - * resource. - * * If not provided, a system generated id will be used. - * - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * @return \Google\Cloud\ApiHub\V1\CreateSpecRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\Spec $spec, string $specId): self - { - return (new self()) - ->setParent($parent) - ->setSpec($spec) - ->setSpecId($specId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for Spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @type string $spec_id - * Optional. The ID to use for the spec, which will become the final component - * of the spec's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another spec in the API - * resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * @type \Google\Cloud\ApiHub\V1\Spec $spec - * Required. The spec to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for Spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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 for Spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the spec, which will become the final component - * of the spec's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another spec in the API - * resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string spec_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSpecId() - { - return $this->spec_id; - } - - /** - * Optional. The ID to use for the spec, which will become the final component - * of the spec's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another spec in the API - * resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string spec_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSpecId($var) - { - GPBUtil::checkString($var, True); - $this->spec_id = $var; - - return $this; - } - - /** - * Required. The spec to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Spec|null - */ - public function getSpec() - { - return $this->spec; - } - - public function hasSpec() - { - return isset($this->spec); - } - - public function clearSpec() - { - unset($this->spec); - } - - /** - * Required. The spec to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Spec $var - * @return $this - */ - public function setSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Spec::class); - $this->spec = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateVersionRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateVersionRequest.php deleted file mode 100644 index c68821fbac3d..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/CreateVersionRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.apihub.v1.CreateVersionRequest - */ -class CreateVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for API version. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID to use for the API version, which will become the final - * component of the version's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another version in the API resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $version_id = ''; - /** - * Required. The version to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = null; - - /** - * @param string $parent Required. The parent resource for API version. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * Please see {@see ApiHubClient::apiName()} for help formatting this field. - * @param \Google\Cloud\ApiHub\V1\Version $version Required. The version to create. - * @param string $versionId Optional. The ID to use for the API version, which will become the final - * component of the version's resource name. This field is optional. - * - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another version in the API resource. - * * If not provided, a system generated id will be used. - * - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * @return \Google\Cloud\ApiHub\V1\CreateVersionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiHub\V1\Version $version, string $versionId): self - { - return (new self()) - ->setParent($parent) - ->setVersion($version) - ->setVersionId($versionId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for API version. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * @type string $version_id - * Optional. The ID to use for the API version, which will become the final - * component of the version's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another version in the API resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * @type \Google\Cloud\ApiHub\V1\Version $version - * Required. The version to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for API version. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * 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 for API version. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The ID to use for the API version, which will become the final - * component of the version's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another version in the API resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVersionId() - { - return $this->version_id; - } - - /** - * Optional. The ID to use for the API version, which will become the final - * component of the version's resource name. This field is optional. - * * If provided, the same will be used. The service will throw an error if - * the specified id is already used by another version in the API resource. - * * If not provided, a system generated id will be used. - * This value should be 4-500 characters, and valid characters - * are /[a-z][A-Z][0-9]-_/. - * - * Generated from protobuf field string version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVersionId($var) - { - GPBUtil::checkString($var, True); - $this->version_id = $var; - - return $this; - } - - /** - * Required. The version to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * Required. The version to create. - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Version::class); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Definition.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Definition.php deleted file mode 100644 index 110f033fab07..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Definition.php +++ /dev/null @@ -1,333 +0,0 @@ -google.cloud.apihub.v1.Definition - */ -class Definition extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the definition. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The name of the spec from where the definition was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $spec = ''; - /** - * Output only. The type of the definition. - * - * Generated from protobuf field .google.cloud.apihub.v1.Definition.Type type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. The time at which the definition was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the definition was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The list of user defined attributes associated with the - * definition resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Schema $schema - * Output only. The value of a schema definition. - * @type string $name - * Identifier. The name of the definition. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * @type string $spec - * Output only. The name of the spec from where the definition was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * @type int $type - * Output only. The type of the definition. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the definition was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the definition was last updated. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the - * definition resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The value of a schema definition. - * - * Generated from protobuf field .google.cloud.apihub.v1.Schema schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\Schema|null - */ - public function getSchema() - { - return $this->readOneof(4); - } - - public function hasSchema() - { - return $this->hasOneof(4); - } - - /** - * Output only. The value of a schema definition. - * - * Generated from protobuf field .google.cloud.apihub.v1.Schema schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Schema::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Identifier. The name of the definition. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the definition. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The name of the spec from where the definition was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getSpec() - { - return $this->spec; - } - - /** - * Output only. The name of the spec from where the definition was parsed. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpec($var) - { - GPBUtil::checkString($var, True); - $this->spec = $var; - - return $this; - } - - /** - * Output only. The type of the definition. - * - * Generated from protobuf field .google.cloud.apihub.v1.Definition.Type type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of the definition. - * - * Generated from protobuf field .google.cloud.apihub.v1.Definition.Type type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Definition\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. The time at which the definition was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. The time at which the definition was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. The time at which the definition was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. The time at which the definition was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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; - } - - /** - * Optional. The list of user defined attributes associated with the - * definition resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the - * definition resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Definition/Type.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Definition/Type.php deleted file mode 100644 index 7ad7e0688a4b..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Definition/Type.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.apihub.v1.Definition.Type - */ -class Type -{ - /** - * Definition type unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Definition type schema. - * - * Generated from protobuf enum SCHEMA = 1; - */ - const SCHEMA = 1; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::SCHEMA => 'SCHEMA', - ]; - - 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(Type::class, \Google\Cloud\ApiHub\V1\Definition_Type::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteApiRequest.php deleted file mode 100644 index 68c1afaff11b..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteApiRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.apihub.v1.DeleteApiRequest - */ -class DeleteApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the API resource to delete. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any versions from this API will also be deleted. - * Otherwise, the request will only work if the API has no versions. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the API resource to delete. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * Please see {@see ApiHubClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the API resource to delete. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * @type bool $force - * Optional. If set to true, any versions from this API will also be deleted. - * Otherwise, the request will only work if the API has no versions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the API resource to delete. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * 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 API resource to delete. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * 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; - } - - /** - * Optional. If set to true, any versions from this API will also be deleted. - * Otherwise, the request will only work if the API has no versions. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any versions from this API will also be deleted. - * Otherwise, the request will only work if the API has no versions. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteAttributeRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteAttributeRequest.php deleted file mode 100644 index 2adc5746545c..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteAttributeRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.DeleteAttributeRequest - */ -class DeleteAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the attribute to delete. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the attribute to delete. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * Please see {@see ApiHubClient::attributeName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteAttributeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the attribute to delete. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the attribute to delete. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * 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 attribute to delete. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteDependencyRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteDependencyRequest.php deleted file mode 100644 index 98bb17c445f2..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteDependencyRequest.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.apihub.v1.DeleteDependencyRequest - */ -class DeleteDependencyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the dependency resource to delete. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the dependency resource to delete. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * Please see {@see ApiHubDependenciesClient::dependencyName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteDependencyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the dependency resource to delete. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the dependency resource to delete. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * 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 dependency resource to delete. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteDeploymentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteDeploymentRequest.php deleted file mode 100644 index a37d6367490b..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteDeploymentRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.apihub.v1.DeleteDeploymentRequest - */ -class DeleteDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the deployment resource to delete. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the deployment resource to delete. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * Please see {@see ApiHubClient::deploymentName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteDeploymentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the deployment resource to delete. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the deployment resource to delete. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * 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 deployment resource to delete. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteExternalApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteExternalApiRequest.php deleted file mode 100644 index 84c0ed40f9dc..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteExternalApiRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.DeleteExternalApiRequest - */ -class DeleteExternalApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the External API resource to delete. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the External API resource to delete. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * Please see {@see ApiHubClient::externalApiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteExternalApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the External API resource to delete. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the External API resource to delete. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * 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 External API resource to delete. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteRuntimeProjectAttachmentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteRuntimeProjectAttachmentRequest.php deleted file mode 100644 index ad11eebc6afe..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteRuntimeProjectAttachmentRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.apihub.v1.DeleteRuntimeProjectAttachmentRequest - */ -class DeleteRuntimeProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Runtime Project Attachment to delete. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Runtime Project Attachment to delete. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * Please see {@see RuntimeProjectAttachmentServiceClient::runtimeProjectAttachmentName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteRuntimeProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Runtime Project Attachment to delete. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Runtime Project Attachment to delete. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * - * 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 Runtime Project Attachment to delete. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteSpecRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteSpecRequest.php deleted file mode 100644 index 32b67589fb32..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteSpecRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apihub.v1.DeleteSpecRequest - */ -class DeleteSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the spec to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * Please see {@see ApiHubClient::specName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteSpecRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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 spec to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteVersionRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteVersionRequest.php deleted file mode 100644 index f94173af314e..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DeleteVersionRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.apihub.v1.DeleteVersionRequest - */ -class DeleteVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the version to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any specs from this version will also be deleted. - * Otherwise, the request will only work if the version has no specs. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the version to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * Please see {@see ApiHubClient::versionName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DeleteVersionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the version to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @type bool $force - * Optional. If set to true, any specs from this version will also be deleted. - * Otherwise, the request will only work if the version has no specs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the version to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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 version to delete. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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; - } - - /** - * Optional. If set to true, any specs from this version will also be deleted. - * Otherwise, the request will only work if the version has no specs. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any specs from this version will also be deleted. - * Otherwise, the request will only work if the version has no specs. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency.php deleted file mode 100644 index 5106dd3f26ae..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency.php +++ /dev/null @@ -1,447 +0,0 @@ -google.cloud.apihub.v1.Dependency - */ -class Dependency extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the dependency in the API Hub. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. The entity acting as the consumer in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $consumer = null; - /** - * Required. Immutable. The entity acting as the supplier in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $supplier = null; - /** - * Output only. State of the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. Human readable description corresponding of the dependency. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Discovery mode of the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $discovery_mode = 0; - /** - * Output only. Error details of a dependency if the system has detected it - * internally. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_detail = null; - /** - * Output only. The time at which the dependency was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the dependency was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The list of user defined attributes associated with the - * dependency resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the dependency in the API Hub. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * @type \Google\Cloud\ApiHub\V1\DependencyEntityReference $consumer - * Required. Immutable. The entity acting as the consumer in the dependency. - * @type \Google\Cloud\ApiHub\V1\DependencyEntityReference $supplier - * Required. Immutable. The entity acting as the supplier in the dependency. - * @type int $state - * Output only. State of the dependency. - * @type string $description - * Optional. Human readable description corresponding of the dependency. - * @type int $discovery_mode - * Output only. Discovery mode of the dependency. - * @type \Google\Cloud\ApiHub\V1\DependencyErrorDetail $error_detail - * Output only. Error details of a dependency if the system has detected it - * internally. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the dependency was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the dependency was last updated. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the - * dependency resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the dependency in the API Hub. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the dependency in the API Hub. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The entity acting as the consumer in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\DependencyEntityReference|null - */ - public function getConsumer() - { - return $this->consumer; - } - - public function hasConsumer() - { - return isset($this->consumer); - } - - public function clearConsumer() - { - unset($this->consumer); - } - - /** - * Required. Immutable. The entity acting as the consumer in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\DependencyEntityReference $var - * @return $this - */ - public function setConsumer($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\DependencyEntityReference::class); - $this->consumer = $var; - - return $this; - } - - /** - * Required. Immutable. The entity acting as the supplier in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\DependencyEntityReference|null - */ - public function getSupplier() - { - return $this->supplier; - } - - public function hasSupplier() - { - return isset($this->supplier); - } - - public function clearSupplier() - { - unset($this->supplier); - } - - /** - * Required. Immutable. The entity acting as the supplier in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\DependencyEntityReference $var - * @return $this - */ - public function setSupplier($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\DependencyEntityReference::class); - $this->supplier = $var; - - return $this; - } - - /** - * Output only. State of the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Dependency\State::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. Human readable description corresponding of the dependency. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Human readable description corresponding of the dependency. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Discovery mode of the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDiscoveryMode() - { - return $this->discovery_mode; - } - - /** - * Output only. Discovery mode of the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDiscoveryMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Dependency\DiscoveryMode::class); - $this->discovery_mode = $var; - - return $this; - } - - /** - * Output only. Error details of a dependency if the system has detected it - * internally. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\DependencyErrorDetail|null - */ - public function getErrorDetail() - { - return $this->error_detail; - } - - public function hasErrorDetail() - { - return isset($this->error_detail); - } - - public function clearErrorDetail() - { - unset($this->error_detail); - } - - /** - * Output only. Error details of a dependency if the system has detected it - * internally. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\DependencyErrorDetail $var - * @return $this - */ - public function setErrorDetail($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\DependencyErrorDetail::class); - $this->error_detail = $var; - - return $this; - } - - /** - * Output only. The time at which the dependency was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. The time at which the dependency was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. The time at which the dependency was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. The time at which the dependency was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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; - } - - /** - * Optional. The list of user defined attributes associated with the - * dependency resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the - * dependency resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency/DiscoveryMode.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency/DiscoveryMode.php deleted file mode 100644 index 7e29c4d72094..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency/DiscoveryMode.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.apihub.v1.Dependency.DiscoveryMode - */ -class DiscoveryMode -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum DISCOVERY_MODE_UNSPECIFIED = 0; - */ - const DISCOVERY_MODE_UNSPECIFIED = 0; - /** - * Manual mode of discovery when the dependency is defined by the user. - * - * Generated from protobuf enum MANUAL = 1; - */ - const MANUAL = 1; - - private static $valueToName = [ - self::DISCOVERY_MODE_UNSPECIFIED => 'DISCOVERY_MODE_UNSPECIFIED', - self::MANUAL => 'MANUAL', - ]; - - 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(DiscoveryMode::class, \Google\Cloud\ApiHub\V1\Dependency_DiscoveryMode::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency/State.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency/State.php deleted file mode 100644 index f6698f962b5a..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Dependency/State.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.apihub.v1.Dependency.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Dependency will be in a proposed state when it is newly identified by the - * API hub on its own. - * - * Generated from protobuf enum PROPOSED = 1; - */ - const PROPOSED = 1; - /** - * Dependency will be in a validated state when it is validated by the - * admin or manually created in the API hub. - * - * Generated from protobuf enum VALIDATED = 2; - */ - const VALIDATED = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PROPOSED => 'PROPOSED', - self::VALIDATED => 'VALIDATED', - ]; - - 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(State::class, \Google\Cloud\ApiHub\V1\Dependency_State::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyEntityReference.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyEntityReference.php deleted file mode 100644 index 4c6641e496eb..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyEntityReference.php +++ /dev/null @@ -1,154 +0,0 @@ -google.cloud.apihub.v1.DependencyEntityReference - */ -class DependencyEntityReference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Display name of the entity. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - protected $identifier; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $operation_resource_name - * The resource name of an operation in the API Hub. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * @type string $external_api_resource_name - * The resource name of an external API in the API Hub. - * Format: - * `projects/{project}/locations/{location}/externalApis/{external_api}` - * @type string $display_name - * Output only. Display name of the entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of an operation in the API Hub. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field string operation_resource_name = 2; - * @return string - */ - public function getOperationResourceName() - { - return $this->readOneof(2); - } - - public function hasOperationResourceName() - { - return $this->hasOneof(2); - } - - /** - * The resource name of an operation in the API Hub. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field string operation_resource_name = 2; - * @param string $var - * @return $this - */ - public function setOperationResourceName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The resource name of an external API in the API Hub. - * Format: - * `projects/{project}/locations/{location}/externalApis/{external_api}` - * - * Generated from protobuf field string external_api_resource_name = 3; - * @return string - */ - public function getExternalApiResourceName() - { - return $this->readOneof(3); - } - - public function hasExternalApiResourceName() - { - return $this->hasOneof(3); - } - - /** - * The resource name of an external API in the API Hub. - * Format: - * `projects/{project}/locations/{location}/externalApis/{external_api}` - * - * Generated from protobuf field string external_api_resource_name = 3; - * @param string $var - * @return $this - */ - public function setExternalApiResourceName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. Display name of the entity. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Display name of the entity. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getIdentifier() - { - return $this->whichOneof("identifier"); - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyErrorDetail.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyErrorDetail.php deleted file mode 100644 index 8b8ed0f203ee..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyErrorDetail.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.apihub.v1.DependencyErrorDetail - */ -class DependencyErrorDetail extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Error in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $error = 0; - /** - * Optional. Timestamp at which the error was found. - * - * Generated from protobuf field .google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $error_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $error - * Optional. Error in the dependency. - * @type \Google\Protobuf\Timestamp $error_time - * Optional. Timestamp at which the error was found. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Error in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getError() - { - return $this->error; - } - - /** - * Optional. Error in the dependency. - * - * Generated from protobuf field .google.cloud.apihub.v1.DependencyErrorDetail.Error error = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\DependencyErrorDetail\Error::class); - $this->error = $var; - - return $this; - } - - /** - * Optional. Timestamp at which the error was found. - * - * Generated from protobuf field .google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getErrorTime() - { - return $this->error_time; - } - - public function hasErrorTime() - { - return isset($this->error_time); - } - - public function clearErrorTime() - { - unset($this->error_time); - } - - /** - * Optional. Timestamp at which the error was found. - * - * Generated from protobuf field .google.protobuf.Timestamp error_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setErrorTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->error_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyErrorDetail/Error.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyErrorDetail/Error.php deleted file mode 100644 index 7118c2ef2b09..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DependencyErrorDetail/Error.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.apihub.v1.DependencyErrorDetail.Error - */ -class Error -{ - /** - * Default value used for no error in the dependency. - * - * Generated from protobuf enum ERROR_UNSPECIFIED = 0; - */ - const ERROR_UNSPECIFIED = 0; - /** - * Supplier entity has been deleted. - * - * Generated from protobuf enum SUPPLIER_NOT_FOUND = 1; - */ - const SUPPLIER_NOT_FOUND = 1; - /** - * Supplier entity has been recreated. - * - * Generated from protobuf enum SUPPLIER_RECREATED = 2; - */ - const SUPPLIER_RECREATED = 2; - - private static $valueToName = [ - self::ERROR_UNSPECIFIED => 'ERROR_UNSPECIFIED', - self::SUPPLIER_NOT_FOUND => 'SUPPLIER_NOT_FOUND', - self::SUPPLIER_RECREATED => 'SUPPLIER_RECREATED', - ]; - - 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(Error::class, \Google\Cloud\ApiHub\V1\DependencyErrorDetail_Error::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Deployment.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Deployment.php deleted file mode 100644 index 91abd4cd0898..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Deployment.php +++ /dev/null @@ -1,666 +0,0 @@ -google.cloud.apihub.v1.Deployment - */ -class Deployment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the deployment. - * Format: - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The display name of the deployment. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The description of the deployment. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. The documentation of the deployment. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $documentation = null; - /** - * Required. The type of deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-deployment-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues deployment_type = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deployment_type = null; - /** - * Required. A URI to the runtime resource. This URI can be used to manage the - * resource. For example, if the runtime resource is of type APIGEE_PROXY, - * then this field will contain the URI to the management UI of the proxy. - * - * Generated from protobuf field string resource_uri = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_uri = ''; - /** - * Required. The endpoints at which this deployment resource is listening for - * API requests. This could be a list of complete URIs, hostnames or an IP - * addresses. - * - * Generated from protobuf field repeated string endpoints = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - private $endpoints; - /** - * Output only. The API versions linked to this deployment. - * Note: A particular deployment could be linked to multiple different API - * versions (of same or different APIs). - * - * Generated from protobuf field repeated string api_versions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $api_versions; - /** - * Output only. The time at which the deployment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the deployment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The SLO for this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-slo` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues slo = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $slo = null; - /** - * Optional. The environment mapping to this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-environment` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues environment = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $environment = null; - /** - * Optional. The list of user defined attributes associated with the - * deployment resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the deployment. - * Format: - * `projects/{project}/locations/{location}/deployments/{deployment}` - * @type string $display_name - * Required. The display name of the deployment. - * @type string $description - * Optional. The description of the deployment. - * @type \Google\Cloud\ApiHub\V1\Documentation $documentation - * Optional. The documentation of the deployment. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $deployment_type - * Required. The type of deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-deployment-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type string $resource_uri - * Required. A URI to the runtime resource. This URI can be used to manage the - * resource. For example, if the runtime resource is of type APIGEE_PROXY, - * then this field will contain the URI to the management UI of the proxy. - * @type array|\Google\Protobuf\Internal\RepeatedField $endpoints - * Required. The endpoints at which this deployment resource is listening for - * API requests. This could be a list of complete URIs, hostnames or an IP - * addresses. - * @type array|\Google\Protobuf\Internal\RepeatedField $api_versions - * Output only. The API versions linked to this deployment. - * Note: A particular deployment could be linked to multiple different API - * versions (of same or different APIs). - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the deployment was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the deployment was last updated. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $slo - * Optional. The SLO for this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-slo` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $environment - * Optional. The environment mapping to this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-environment` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the - * deployment resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the deployment. - * Format: - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the deployment. - * Format: - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the deployment. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the deployment. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the deployment. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the deployment. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The documentation of the deployment. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\Documentation|null - */ - public function getDocumentation() - { - return $this->documentation; - } - - public function hasDocumentation() - { - return isset($this->documentation); - } - - public function clearDocumentation() - { - unset($this->documentation); - } - - /** - * Optional. The documentation of the deployment. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\Documentation $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Documentation::class); - $this->documentation = $var; - - return $this; - } - - /** - * Required. The type of deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-deployment-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues deployment_type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getDeploymentType() - { - return $this->deployment_type; - } - - public function hasDeploymentType() - { - return isset($this->deployment_type); - } - - public function clearDeploymentType() - { - unset($this->deployment_type); - } - - /** - * Required. The type of deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-deployment-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues deployment_type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setDeploymentType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->deployment_type = $var; - - return $this; - } - - /** - * Required. A URI to the runtime resource. This URI can be used to manage the - * resource. For example, if the runtime resource is of type APIGEE_PROXY, - * then this field will contain the URI to the management UI of the proxy. - * - * Generated from protobuf field string resource_uri = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * Required. A URI to the runtime resource. This URI can be used to manage the - * resource. For example, if the runtime resource is of type APIGEE_PROXY, - * then this field will contain the URI to the management UI of the proxy. - * - * Generated from protobuf field string resource_uri = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResourceUri($var) - { - GPBUtil::checkString($var, True); - $this->resource_uri = $var; - - return $this; - } - - /** - * Required. The endpoints at which this deployment resource is listening for - * API requests. This could be a list of complete URIs, hostnames or an IP - * addresses. - * - * Generated from protobuf field repeated string endpoints = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEndpoints() - { - return $this->endpoints; - } - - /** - * Required. The endpoints at which this deployment resource is listening for - * API requests. This could be a list of complete URIs, hostnames or an IP - * addresses. - * - * Generated from protobuf field repeated string endpoints = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEndpoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->endpoints = $arr; - - return $this; - } - - /** - * Output only. The API versions linked to this deployment. - * Note: A particular deployment could be linked to multiple different API - * versions (of same or different APIs). - * - * Generated from protobuf field repeated string api_versions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiVersions() - { - return $this->api_versions; - } - - /** - * Output only. The API versions linked to this deployment. - * Note: A particular deployment could be linked to multiple different API - * versions (of same or different APIs). - * - * Generated from protobuf field repeated string api_versions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->api_versions = $arr; - - return $this; - } - - /** - * Output only. The time at which the deployment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.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. The time at which the deployment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.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. The time at which the deployment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.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. The time at which the deployment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.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; - } - - /** - * Optional. The SLO for this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-slo` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues slo = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getSlo() - { - return $this->slo; - } - - public function hasSlo() - { - return isset($this->slo); - } - - public function clearSlo() - { - unset($this->slo); - } - - /** - * Optional. The SLO for this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-slo` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues slo = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setSlo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->slo = $var; - - return $this; - } - - /** - * Optional. The environment mapping to this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-environment` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues environment = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * Optional. The environment mapping to this deployment. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-environment` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues environment = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->environment = $var; - - return $this; - } - - /** - * Optional. The list of user defined attributes associated with the - * deployment resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the - * deployment resource. The key is the attribute name. It will be of the - * format: `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DisablePluginRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DisablePluginRequest.php deleted file mode 100644 index 42d4981f9b7f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/DisablePluginRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.apihub.v1.DisablePluginRequest - */ -class DisablePluginRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the plugin to disable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the plugin to disable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. Please see - * {@see ApiHubPluginClient::pluginName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\DisablePluginRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the plugin to disable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\PluginService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the plugin to disable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * 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 plugin to disable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Documentation.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Documentation.php deleted file mode 100644 index 4f32e690db06..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Documentation.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.apihub.v1.Documentation - */ -class Documentation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The uri of the externally hosted documentation. - * - * Generated from protobuf field string external_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $external_uri - * Optional. The uri of the externally hosted documentation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The uri of the externally hosted documentation. - * - * Generated from protobuf field string external_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalUri() - { - return $this->external_uri; - } - - /** - * Optional. The uri of the externally hosted documentation. - * - * Generated from protobuf field string external_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalUri($var) - { - GPBUtil::checkString($var, True); - $this->external_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/EnablePluginRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/EnablePluginRequest.php deleted file mode 100644 index 04c3b1bbd51a..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/EnablePluginRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.apihub.v1.EnablePluginRequest - */ -class EnablePluginRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the plugin to enable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the plugin to enable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. Please see - * {@see ApiHubPluginClient::pluginName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\EnablePluginRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the plugin to enable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\PluginService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the plugin to enable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * 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 plugin to enable. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ExternalApi.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ExternalApi.php deleted file mode 100644 index d6c4ac9d3277..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ExternalApi.php +++ /dev/null @@ -1,394 +0,0 @@ -google.cloud.apihub.v1.ExternalApi - */ -class ExternalApi extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Format: - * `projects/{project}/locations/{location}/externalApi/{externalApi}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Display name of the external API. Max length is 63 characters - * (Unicode Code Points). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description of the external API. Max length is 2000 characters - * (Unicode Code Points). - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. List of endpoints on which this API is accessible. - * - * Generated from protobuf field repeated string endpoints = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $endpoints; - /** - * Optional. List of paths served by this API. - * - * Generated from protobuf field repeated string paths = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - /** - * Optional. Documentation of the external API. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $documentation = null; - /** - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Format: - * `projects/{project}/locations/{location}/externalApi/{externalApi}`. - * @type string $display_name - * Required. Display name of the external API. Max length is 63 characters - * (Unicode Code Points). - * @type string $description - * Optional. Description of the external API. Max length is 2000 characters - * (Unicode Code Points). - * @type array|\Google\Protobuf\Internal\RepeatedField $endpoints - * Optional. List of endpoints on which this API is accessible. - * @type array|\Google\Protobuf\Internal\RepeatedField $paths - * Optional. List of paths served by this API. - * @type \Google\Cloud\ApiHub\V1\Documentation $documentation - * Optional. Documentation of the external API. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Format: - * `projects/{project}/locations/{location}/externalApi/{externalApi}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Format: - * `projects/{project}/locations/{location}/externalApi/{externalApi}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Display name of the external API. Max length is 63 characters - * (Unicode Code Points). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Display name of the external API. Max length is 63 characters - * (Unicode Code Points). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the external API. Max length is 2000 characters - * (Unicode Code Points). - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the external API. Max length is 2000 characters - * (Unicode Code Points). - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. List of endpoints on which this API is accessible. - * - * Generated from protobuf field repeated string endpoints = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEndpoints() - { - return $this->endpoints; - } - - /** - * Optional. List of endpoints on which this API is accessible. - * - * Generated from protobuf field repeated string endpoints = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEndpoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->endpoints = $arr; - - return $this; - } - - /** - * Optional. List of paths served by this API. - * - * Generated from protobuf field repeated string paths = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * Optional. List of paths served by this API. - * - * Generated from protobuf field repeated string paths = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - - /** - * Optional. Documentation of the external API. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\Documentation|null - */ - public function getDocumentation() - { - return $this->documentation; - } - - public function hasDocumentation() - { - return isset($this->documentation); - } - - public function clearDocumentation() - { - unset($this->documentation); - } - - /** - * Optional. Documentation of the external API. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\Documentation $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Documentation::class); - $this->documentation = $var; - - return $this; - } - - /** - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiHubInstanceRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiHubInstanceRequest.php deleted file mode 100644 index 6e52a8633314..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiHubInstanceRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.apihub.v1.GetApiHubInstanceRequest - */ -class GetApiHubInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Api Hub instance to retrieve. - * Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Api Hub instance to retrieve. - * Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. Please see - * {@see ProvisioningClient::apiHubInstanceName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetApiHubInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Api Hub instance to retrieve. - * Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Api Hub instance to retrieve. - * Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * - * 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 Api Hub instance to retrieve. - * Format: - * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiOperationRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiOperationRequest.php deleted file mode 100644 index 704dea25a2e5..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiOperationRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.GetApiOperationRequest - */ -class GetApiOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the operation to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the operation to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * Please see {@see ApiHubClient::apiOperationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetApiOperationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the operation to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the operation to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * 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 operation to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiRequest.php deleted file mode 100644 index 7e312e817731..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetApiRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apihub.v1.GetApiRequest - */ -class GetApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the API resource to retrieve. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the API resource to retrieve. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * Please see {@see ApiHubClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the API resource to retrieve. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the API resource to retrieve. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * 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 API resource to retrieve. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetAttributeRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetAttributeRequest.php deleted file mode 100644 index 3548af320e1d..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetAttributeRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.GetAttributeRequest - */ -class GetAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the attribute to retrieve. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the attribute to retrieve. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * Please see {@see ApiHubClient::attributeName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetAttributeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the attribute to retrieve. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the attribute to retrieve. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * 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 attribute to retrieve. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDefinitionRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDefinitionRequest.php deleted file mode 100644 index aa83b4b5ed30..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDefinitionRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.GetDefinitionRequest - */ -class GetDefinitionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the definition to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the definition to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * Please see {@see ApiHubClient::definitionName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetDefinitionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the definition to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the definition to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * 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 definition to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDependencyRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDependencyRequest.php deleted file mode 100644 index e56b8163e13b..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDependencyRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.apihub.v1.GetDependencyRequest - */ -class GetDependencyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the dependency resource to retrieve. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the dependency resource to retrieve. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * Please see {@see ApiHubDependenciesClient::dependencyName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetDependencyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the dependency resource to retrieve. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the dependency resource to retrieve. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * 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 dependency resource to retrieve. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDeploymentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDeploymentRequest.php deleted file mode 100644 index 32ee0e92e4e9..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetDeploymentRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.apihub.v1.GetDeploymentRequest - */ -class GetDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the deployment resource to retrieve. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the deployment resource to retrieve. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * Please see {@see ApiHubClient::deploymentName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetDeploymentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the deployment resource to retrieve. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the deployment resource to retrieve. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * 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 deployment resource to retrieve. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetExternalApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetExternalApiRequest.php deleted file mode 100644 index 260f0a7cce33..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetExternalApiRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.GetExternalApiRequest - */ -class GetExternalApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the External API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the External API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * Please see {@see ApiHubClient::externalApiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetExternalApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the External API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the External API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * 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 External API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetHostProjectRegistrationRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetHostProjectRegistrationRequest.php deleted file mode 100644 index 6150c11a05db..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetHostProjectRegistrationRequest.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.apihub.v1.GetHostProjectRegistrationRequest - */ -class GetHostProjectRegistrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Host project registration resource name. - * projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Host project registration resource name. - * projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id} - * Please see {@see HostProjectRegistrationServiceClient::hostProjectRegistrationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetHostProjectRegistrationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Host project registration resource name. - * projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\HostProjectRegistrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Host project registration resource name. - * projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id} - * - * 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. Host project registration resource name. - * projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id} - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetPluginRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetPluginRequest.php deleted file mode 100644 index 3a3e4539a4ce..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetPluginRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.apihub.v1.GetPluginRequest - */ -class GetPluginRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the plugin to retrieve. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the plugin to retrieve. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. Please see - * {@see ApiHubPluginClient::pluginName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetPluginRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the plugin to retrieve. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\PluginService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the plugin to retrieve. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * 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 plugin to retrieve. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}`. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetRuntimeProjectAttachmentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetRuntimeProjectAttachmentRequest.php deleted file mode 100644 index 9a5d528dc7cd..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetRuntimeProjectAttachmentRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.apihub.v1.GetRuntimeProjectAttachmentRequest - */ -class GetRuntimeProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * Please see {@see RuntimeProjectAttachmentServiceClient::runtimeProjectAttachmentName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetRuntimeProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * - * 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 API resource to retrieve. - * Format: - * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetSpecContentsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetSpecContentsRequest.php deleted file mode 100644 index ab9fc1189155..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetSpecContentsRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apihub.v1.GetSpecContentsRequest - */ -class GetSpecContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec whose contents need to be retrieved. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the spec whose contents need to be retrieved. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * Please see {@see ApiHubClient::specName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetSpecContentsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec whose contents need to be retrieved. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec whose contents need to be retrieved. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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 spec whose contents need to be retrieved. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetSpecRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetSpecRequest.php deleted file mode 100644 index c6c2c83978a1..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetSpecRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apihub.v1.GetSpecRequest - */ -class GetSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * Please see {@see ApiHubClient::specName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetSpecRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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 spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetStyleGuideContentsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetStyleGuideContentsRequest.php deleted file mode 100644 index ba6151953166..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetStyleGuideContentsRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.apihub.v1.GetStyleGuideContentsRequest - */ -class GetStyleGuideContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the StyleGuide whose contents need to be retrieved. - * There is exactly one style guide resource per project per location. - * The expected format is - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the StyleGuide whose contents need to be retrieved. - * There is exactly one style guide resource per project per location. - * The expected format is - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. Please see - * {@see LintingServiceClient::styleGuideName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetStyleGuideContentsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the StyleGuide whose contents need to be retrieved. - * There is exactly one style guide resource per project per location. - * The expected format is - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\LintingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the StyleGuide whose contents need to be retrieved. - * There is exactly one style guide resource per project per location. - * The expected format is - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * - * 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 StyleGuide whose contents need to be retrieved. - * There is exactly one style guide resource per project per location. - * The expected format is - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetStyleGuideRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetStyleGuideRequest.php deleted file mode 100644 index 89f4efe40857..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetStyleGuideRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apihub.v1.GetStyleGuideRequest - */ -class GetStyleGuideRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. Please see - * {@see LintingServiceClient::styleGuideName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetStyleGuideRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\LintingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * - * 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 spec to retrieve. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetVersionRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetVersionRequest.php deleted file mode 100644 index dfb1190fbb40..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/GetVersionRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apihub.v1.GetVersionRequest - */ -class GetVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the API version to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the API version to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * Please see {@see ApiHubClient::versionName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\GetVersionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the API version to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the API version to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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 API version to retrieve. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HostProjectRegistration.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HostProjectRegistration.php deleted file mode 100644 index 641654f10ccb..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HostProjectRegistration.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.apihub.v1.HostProjectRegistration - */ -class HostProjectRegistration extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the host project registration. - * Format: - * "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * - * Generated from protobuf field string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $gcp_project = ''; - /** - * Output only. The time at which the host project registration was 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 - * Identifier. The name of the host project registration. - * Format: - * "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}". - * @type string $gcp_project - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the host project registration was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\HostProjectRegistrationService::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the host project registration. - * Format: - * "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the host project registration. - * Format: - * "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * - * Generated from protobuf field string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getGcpProject() - { - return $this->gcp_project; - } - - /** - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * - * Generated from protobuf field string gcp_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setGcpProject($var) - { - GPBUtil::checkString($var, True); - $this->gcp_project = $var; - - return $this; - } - - /** - * Output only. The time at which the host project registration was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time at which the host project registration was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HttpOperation.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HttpOperation.php deleted file mode 100644 index b3db080a75a6..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HttpOperation.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.apihub.v1.HttpOperation - */ -class HttpOperation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The path details for the Operation. - * - * Generated from protobuf field .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $path = null; - /** - * Output only. Operation method - * - * Generated from protobuf field .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $method = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Path $path - * Output only. The path details for the Operation. - * @type int $method - * Output only. Operation method - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The path details for the Operation. - * - * Generated from protobuf field .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\Path|null - */ - public function getPath() - { - return $this->path; - } - - public function hasPath() - { - return isset($this->path); - } - - public function clearPath() - { - unset($this->path); - } - - /** - * Output only. The path details for the Operation. - * - * Generated from protobuf field .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\Path $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Path::class); - $this->path = $var; - - return $this; - } - - /** - * Output only. Operation method - * - * Generated from protobuf field .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getMethod() - { - return $this->method; - } - - /** - * Output only. Operation method - * - * Generated from protobuf field .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\HttpOperation\Method::class); - $this->method = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HttpOperation/Method.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HttpOperation/Method.php deleted file mode 100644 index abf16f6df6c8..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/HttpOperation/Method.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.apihub.v1.HttpOperation.Method - */ -class Method -{ - /** - * Method unspecified. - * - * Generated from protobuf enum METHOD_UNSPECIFIED = 0; - */ - const METHOD_UNSPECIFIED = 0; - /** - * Get Operation type. - * - * Generated from protobuf enum GET = 1; - */ - const GET = 1; - /** - * Put Operation type. - * - * Generated from protobuf enum PUT = 2; - */ - const PUT = 2; - /** - * Post Operation type. - * - * Generated from protobuf enum POST = 3; - */ - const POST = 3; - /** - * Delete Operation type. - * - * Generated from protobuf enum DELETE = 4; - */ - const DELETE = 4; - /** - * Options Operation type. - * - * Generated from protobuf enum OPTIONS = 5; - */ - const OPTIONS = 5; - /** - * Head Operation type. - * - * Generated from protobuf enum HEAD = 6; - */ - const HEAD = 6; - /** - * Patch Operation type. - * - * Generated from protobuf enum PATCH = 7; - */ - const PATCH = 7; - /** - * Trace Operation type. - * - * Generated from protobuf enum TRACE = 8; - */ - const TRACE = 8; - - private static $valueToName = [ - self::METHOD_UNSPECIFIED => 'METHOD_UNSPECIFIED', - self::GET => 'GET', - self::PUT => 'PUT', - self::POST => 'POST', - self::DELETE => 'DELETE', - self::OPTIONS => 'OPTIONS', - self::HEAD => 'HEAD', - self::PATCH => 'PATCH', - self::TRACE => 'TRACE', - ]; - - 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(Method::class, \Google\Cloud\ApiHub\V1\HttpOperation_Method::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Issue.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Issue.php deleted file mode 100644 index 0e3ddfe978df..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Issue.php +++ /dev/null @@ -1,217 +0,0 @@ -google.cloud.apihub.v1.Issue - */ -class Issue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Rule code unique to each rule defined in linter. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $code = ''; - /** - * Required. An array of strings indicating the location in the analyzed - * document where the rule was triggered. - * - * Generated from protobuf field repeated string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $path; - /** - * Required. Human-readable message describing the issue found by the linter. - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message = ''; - /** - * Required. Severity level of the rule violation. - * - * Generated from protobuf field .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $severity = 0; - /** - * Required. Object describing where in the file the issue was found. - * - * Generated from protobuf field .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $range = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $code - * Required. Rule code unique to each rule defined in linter. - * @type array|\Google\Protobuf\Internal\RepeatedField $path - * Required. An array of strings indicating the location in the analyzed - * document where the rule was triggered. - * @type string $message - * Required. Human-readable message describing the issue found by the linter. - * @type int $severity - * Required. Severity level of the rule violation. - * @type \Google\Cloud\ApiHub\V1\Range $range - * Required. Object describing where in the file the issue was found. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. Rule code unique to each rule defined in linter. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * Required. Rule code unique to each rule defined in linter. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->code = $var; - - return $this; - } - - /** - * Required. An array of strings indicating the location in the analyzed - * document where the rule was triggered. - * - * Generated from protobuf field repeated string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. An array of strings indicating the location in the analyzed - * document where the rule was triggered. - * - * Generated from protobuf field repeated string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->path = $arr; - - return $this; - } - - /** - * Required. Human-readable message describing the issue found by the linter. - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Required. Human-readable message describing the issue found by the linter. - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Required. Severity level of the rule violation. - * - * Generated from protobuf field .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Required. Severity level of the rule violation. - * - * Generated from protobuf field .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Required. Object describing where in the file the issue was found. - * - * Generated from protobuf field .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Range|null - */ - public function getRange() - { - return $this->range; - } - - public function hasRange() - { - return isset($this->range); - } - - public function clearRange() - { - unset($this->range); - } - - /** - * Required. Object describing where in the file the issue was found. - * - * Generated from protobuf field .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Range $var - * @return $this - */ - public function setRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Range::class); - $this->range = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintResponse.php deleted file mode 100644 index 65e56f470724..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintResponse.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.apihub.v1.LintResponse - */ -class LintResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Array of issues found in the analyzed document. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $issues; - /** - * Optional. Summary of all issue types and counts for each severity level. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $summary; - /** - * Required. Lint state represents success or failure for linting. - * - * Generated from protobuf field .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $state = 0; - /** - * Required. Name of the linting application. - * - * Generated from protobuf field string source = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $source = ''; - /** - * Required. Name of the linter used. - * - * Generated from protobuf field .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $linter = 0; - /** - * Required. Timestamp when the linting response was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Issue>|\Google\Protobuf\Internal\RepeatedField $issues - * Optional. Array of issues found in the analyzed document. - * @type array<\Google\Cloud\ApiHub\V1\LintResponse\SummaryEntry>|\Google\Protobuf\Internal\RepeatedField $summary - * Optional. Summary of all issue types and counts for each severity level. - * @type int $state - * Required. Lint state represents success or failure for linting. - * @type string $source - * Required. Name of the linting application. - * @type int $linter - * Required. Name of the linter used. - * @type \Google\Protobuf\Timestamp $create_time - * Required. Timestamp when the linting response was generated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Array of issues found in the analyzed document. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssues() - { - return $this->issues; - } - - /** - * Optional. Array of issues found in the analyzed document. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\ApiHub\V1\Issue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Issue::class); - $this->issues = $arr; - - return $this; - } - - /** - * Optional. Summary of all issue types and counts for each severity level. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSummary() - { - return $this->summary; - } - - /** - * Optional. Summary of all issue types and counts for each severity level. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\ApiHub\V1\LintResponse\SummaryEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSummary($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\LintResponse\SummaryEntry::class); - $this->summary = $arr; - - return $this; - } - - /** - * Required. Lint state represents success or failure for linting. - * - * Generated from protobuf field .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Required. Lint state represents success or failure for linting. - * - * Generated from protobuf field .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\LintState::class); - $this->state = $var; - - return $this; - } - - /** - * Required. Name of the linting application. - * - * Generated from protobuf field string source = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * Required. Name of the linting application. - * - * Generated from protobuf field string source = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * Required. Name of the linter used. - * - * Generated from protobuf field .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLinter() - { - return $this->linter; - } - - /** - * Required. Name of the linter used. - * - * Generated from protobuf field .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLinter($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Linter::class); - $this->linter = $var; - - return $this; - } - - /** - * Required. Timestamp when the linting response was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Timestamp when the linting response was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; - * @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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintResponse/SummaryEntry.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintResponse/SummaryEntry.php deleted file mode 100644 index 5d72b03d6060..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintResponse/SummaryEntry.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.apihub.v1.LintResponse.SummaryEntry - */ -class SummaryEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Severity of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $severity = 0; - /** - * Required. Count of issues with the given severity. - * - * Generated from protobuf field int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $severity - * Required. Severity of the issue. - * @type int $count - * Required. Count of issues with the given severity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. Severity of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Required. Severity of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Severity severity = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Required. Count of issues with the given severity. - * - * Generated from protobuf field int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCount() - { - return $this->count; - } - - /** - * Required. Count of issues with the given severity. - * - * Generated from protobuf field int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt32($var); - $this->count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SummaryEntry::class, \Google\Cloud\ApiHub\V1\LintResponse_SummaryEntry::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintSpecRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintSpecRequest.php deleted file mode 100644 index b73db6f281c9..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintSpecRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.apihub.v1.LintSpecRequest - */ -class LintSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to be linted. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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 spec to be linted. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\LintingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to be linted. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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 spec to be linted. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintState.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintState.php deleted file mode 100644 index 3365f338e966..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LintState.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.apihub.v1.LintState - */ -class LintState -{ - /** - * Lint state unspecified. - * - * Generated from protobuf enum LINT_STATE_UNSPECIFIED = 0; - */ - const LINT_STATE_UNSPECIFIED = 0; - /** - * Linting was completed successfully. - * - * Generated from protobuf enum LINT_STATE_SUCCESS = 1; - */ - const LINT_STATE_SUCCESS = 1; - /** - * Linting encountered errors. - * - * Generated from protobuf enum LINT_STATE_ERROR = 2; - */ - const LINT_STATE_ERROR = 2; - - private static $valueToName = [ - self::LINT_STATE_UNSPECIFIED => 'LINT_STATE_UNSPECIFIED', - self::LINT_STATE_SUCCESS => 'LINT_STATE_SUCCESS', - self::LINT_STATE_ERROR => 'LINT_STATE_ERROR', - ]; - - 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Linter.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Linter.php deleted file mode 100644 index e3eb9a1c1a9a..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Linter.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.apihub.v1.Linter - */ -class Linter -{ - /** - * Linter type unspecified. - * - * Generated from protobuf enum LINTER_UNSPECIFIED = 0; - */ - const LINTER_UNSPECIFIED = 0; - /** - * Linter type spectral. - * - * Generated from protobuf enum SPECTRAL = 1; - */ - const SPECTRAL = 1; - /** - * Linter type other. - * - * Generated from protobuf enum OTHER = 2; - */ - const OTHER = 2; - - private static $valueToName = [ - self::LINTER_UNSPECIFIED => 'LINTER_UNSPECIFIED', - self::SPECTRAL => 'SPECTRAL', - self::OTHER => 'OTHER', - ]; - - 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApiOperationsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApiOperationsRequest.php deleted file mode 100644 index 0ddf9f25a488..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApiOperationsRequest.php +++ /dev/null @@ -1,354 +0,0 @@ -google.cloud.apihub.v1.ListApiOperationsRequest - */ -class ListApiOperationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent which owns this collection of operations i.e., the API - * version. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression that filters the list of ApiOperations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `ApiOperation` are eligible for filtering: - * * `name` - The ApiOperation resource name. Allowed comparison - * operators: - * `=`. - * * `details.http_operation.path.path` - The http operation's complete path - * relative to server endpoint. Allowed comparison operators: `=`. - * * `details.http_operation.method` - The http operation method type. - * Allowed comparison operators: `=`. - * * `details.deprecated` - Indicates if the ApiOperation is deprecated. - * Allowed values are True / False indicating the deprycation status of the - * ApiOperation. Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiOperation was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `details.deprecated = True` - The ApiOperation is deprecated. - * * `details.http_operation.method = GET AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The method of the http operation of the ApiOperation is _GET_ and the - * spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 - * 12:00:00 UTC_. - * * `details.http_operation.method = GET OR details.http_operation.method = - * POST`. - The http operation of the method of ApiOperation is _GET_ or - * _POST_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of operations to return. The service may - * return fewer than this value. If unspecified, at most 50 operations will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListApiOperations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApiOperations` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent which owns this collection of operations i.e., the API - * version. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * Please see {@see ApiHubClient::versionName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListApiOperationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent which owns this collection of operations i.e., the API - * version. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @type string $filter - * Optional. An expression that filters the list of ApiOperations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `ApiOperation` are eligible for filtering: - * * `name` - The ApiOperation resource name. Allowed comparison - * operators: - * `=`. - * * `details.http_operation.path.path` - The http operation's complete path - * relative to server endpoint. Allowed comparison operators: `=`. - * * `details.http_operation.method` - The http operation method type. - * Allowed comparison operators: `=`. - * * `details.deprecated` - Indicates if the ApiOperation is deprecated. - * Allowed values are True / False indicating the deprycation status of the - * ApiOperation. Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiOperation was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `details.deprecated = True` - The ApiOperation is deprecated. - * * `details.http_operation.method = GET AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The method of the http operation of the ApiOperation is _GET_ and the - * spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 - * 12:00:00 UTC_. - * * `details.http_operation.method = GET OR details.http_operation.method = - * POST`. - The http operation of the method of ApiOperation is _GET_ or - * _POST_. - * @type int $page_size - * Optional. The maximum number of operations to return. The service may - * return fewer than this value. If unspecified, at most 50 operations will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListApiOperations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApiOperations` must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent which owns this collection of operations i.e., the API - * version. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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 which owns this collection of operations i.e., the API - * version. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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. An expression that filters the list of ApiOperations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `ApiOperation` are eligible for filtering: - * * `name` - The ApiOperation resource name. Allowed comparison - * operators: - * `=`. - * * `details.http_operation.path.path` - The http operation's complete path - * relative to server endpoint. Allowed comparison operators: `=`. - * * `details.http_operation.method` - The http operation method type. - * Allowed comparison operators: `=`. - * * `details.deprecated` - Indicates if the ApiOperation is deprecated. - * Allowed values are True / False indicating the deprycation status of the - * ApiOperation. Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiOperation was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `details.deprecated = True` - The ApiOperation is deprecated. - * * `details.http_operation.method = GET AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The method of the http operation of the ApiOperation is _GET_ and the - * spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 - * 12:00:00 UTC_. - * * `details.http_operation.method = GET OR details.http_operation.method = - * POST`. - The http operation of the method of ApiOperation is _GET_ or - * _POST_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of ApiOperations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `ApiOperation` are eligible for filtering: - * * `name` - The ApiOperation resource name. Allowed comparison - * operators: - * `=`. - * * `details.http_operation.path.path` - The http operation's complete path - * relative to server endpoint. Allowed comparison operators: `=`. - * * `details.http_operation.method` - The http operation method type. - * Allowed comparison operators: `=`. - * * `details.deprecated` - Indicates if the ApiOperation is deprecated. - * Allowed values are True / False indicating the deprycation status of the - * ApiOperation. Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiOperation was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `details.deprecated = True` - The ApiOperation is deprecated. - * * `details.http_operation.method = GET AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The method of the http operation of the ApiOperation is _GET_ and the - * spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 - * 12:00:00 UTC_. - * * `details.http_operation.method = GET OR details.http_operation.method = - * POST`. - The http operation of the method of ApiOperation is _GET_ or - * _POST_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of operations to return. The service may - * return fewer than this value. If unspecified, at most 50 operations will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of operations to return. The service may - * return fewer than this value. If unspecified, at most 50 operations will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.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 `ListApiOperations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApiOperations` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListApiOperations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApiOperations` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApiOperationsResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApiOperationsResponse.php deleted file mode 100644 index e9f0df1419e8..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApiOperationsResponse.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.apihub.v1.ListApiOperationsResponse - */ -class ListApiOperationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The operations corresponding to an API version. - * Only following field will be populated in the response: name, - * spec, details.deprecated, details.http_operation.path.path, - * details.http_operation.method and details.documentation.external_uri. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.ApiOperation api_operations = 1; - */ - private $api_operations; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\ApiOperation>|\Google\Protobuf\Internal\RepeatedField $api_operations - * The operations corresponding to an API version. - * Only following field will be populated in the response: name, - * spec, details.deprecated, details.http_operation.path.path, - * details.http_operation.method and details.documentation.external_uri. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The operations corresponding to an API version. - * Only following field will be populated in the response: name, - * spec, details.deprecated, details.http_operation.path.path, - * details.http_operation.method and details.documentation.external_uri. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.ApiOperation api_operations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiOperations() - { - return $this->api_operations; - } - - /** - * The operations corresponding to an API version. - * Only following field will be populated in the response: name, - * spec, details.deprecated, details.http_operation.path.path, - * details.http_operation.method and details.documentation.external_uri. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.ApiOperation api_operations = 1; - * @param array<\Google\Cloud\ApiHub\V1\ApiOperation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\ApiOperation::class); - $this->api_operations = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApisRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApisRequest.php deleted file mode 100644 index f385c95a5204..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApisRequest.php +++ /dev/null @@ -1,468 +0,0 @@ -google.cloud.apihub.v1.ListApisRequest - */ -class ListApisRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of API resources. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression that filters the list of ApiResources. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `ApiResource` are eligible for filtering: - * * `owner.email` - The email of the team which owns the ApiResource. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiResource was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `display_name` - The display name of the ApiResource. Allowed - * comparison operators: `=`. - * * `target_user.enum_values.values.id` - The allowed value id of the - * target users attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `target_user.enum_values.values.display_name` - The allowed value - * display name of the target users attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `team.enum_values.values.id` - The allowed value id of the team - * attribute associated with the ApiResource. Allowed comparison operator is - * `:`. - * * `team.enum_values.values.display_name` - The allowed value display name - * of the team attribute associated with the ApiResource. Allowed comparison - * operator is `:`. - * * `business_unit.enum_values.values.id` - The allowed value id of the - * business unit attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `business_unit.enum_values.values.display_name` - The allowed value - * display name of the business unit attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `maturity_level.enum_values.values.id` - The allowed value id of the - * maturity level attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `maturity_level.enum_values.values.display_name` - The allowed value - * display name of the maturity level attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `api_style.enum_values.values.id` - The allowed value id of the - * api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `api_style.enum_values.values.display_name` - The allowed value display - * name of the api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `owner.email = \"apihub@google.com\"` - - The owner team email is - * _apihub@google.com_. - * * `owner.email = \"apihub@google.com\" AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The owner team email is _apihub@google.com_ and the api was created - * before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `owner.email = \"apihub@google.com\" OR team.enum_values.values.id: - * apihub-team-id` - The filter string specifies the APIs where the owner - * team email is _apihub@google.com_ or the id of the allowed value - * associated with the team attribute is _apihub-team-id_. - * * `owner.email = \"apihub@google.com\" OR - * team.enum_values.values.display_name: ApiHub Team` - The filter string - * specifies the APIs where the owner team email is _apihub@google.com_ or - * the display name of the allowed value associated with the team attribute - * is `ApiHub Team`. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of API resources to return. The service may - * return fewer than this value. If unspecified, at most 50 Apis will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApis` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of API resources. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListApisRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of API resources. - * Format: `projects/{project}/locations/{location}` - * @type string $filter - * Optional. An expression that filters the list of ApiResources. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `ApiResource` are eligible for filtering: - * * `owner.email` - The email of the team which owns the ApiResource. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiResource was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `display_name` - The display name of the ApiResource. Allowed - * comparison operators: `=`. - * * `target_user.enum_values.values.id` - The allowed value id of the - * target users attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `target_user.enum_values.values.display_name` - The allowed value - * display name of the target users attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `team.enum_values.values.id` - The allowed value id of the team - * attribute associated with the ApiResource. Allowed comparison operator is - * `:`. - * * `team.enum_values.values.display_name` - The allowed value display name - * of the team attribute associated with the ApiResource. Allowed comparison - * operator is `:`. - * * `business_unit.enum_values.values.id` - The allowed value id of the - * business unit attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `business_unit.enum_values.values.display_name` - The allowed value - * display name of the business unit attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `maturity_level.enum_values.values.id` - The allowed value id of the - * maturity level attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `maturity_level.enum_values.values.display_name` - The allowed value - * display name of the maturity level attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `api_style.enum_values.values.id` - The allowed value id of the - * api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `api_style.enum_values.values.display_name` - The allowed value display - * name of the api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `owner.email = \"apihub@google.com\"` - - The owner team email is - * _apihub@google.com_. - * * `owner.email = \"apihub@google.com\" AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The owner team email is _apihub@google.com_ and the api was created - * before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `owner.email = \"apihub@google.com\" OR team.enum_values.values.id: - * apihub-team-id` - The filter string specifies the APIs where the owner - * team email is _apihub@google.com_ or the id of the allowed value - * associated with the team attribute is _apihub-team-id_. - * * `owner.email = \"apihub@google.com\" OR - * team.enum_values.values.display_name: ApiHub Team` - The filter string - * specifies the APIs where the owner team email is _apihub@google.com_ or - * the display name of the allowed value associated with the team attribute - * is `ApiHub Team`. - * @type int $page_size - * Optional. The maximum number of API resources to return. The service may - * return fewer than this value. If unspecified, at most 50 Apis will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApis` must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of API resources. - * Format: `projects/{project}/locations/{location}` - * - * 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, which owns this collection of API resources. - * Format: `projects/{project}/locations/{location}` - * - * 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. An expression that filters the list of ApiResources. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `ApiResource` are eligible for filtering: - * * `owner.email` - The email of the team which owns the ApiResource. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiResource was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `display_name` - The display name of the ApiResource. Allowed - * comparison operators: `=`. - * * `target_user.enum_values.values.id` - The allowed value id of the - * target users attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `target_user.enum_values.values.display_name` - The allowed value - * display name of the target users attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `team.enum_values.values.id` - The allowed value id of the team - * attribute associated with the ApiResource. Allowed comparison operator is - * `:`. - * * `team.enum_values.values.display_name` - The allowed value display name - * of the team attribute associated with the ApiResource. Allowed comparison - * operator is `:`. - * * `business_unit.enum_values.values.id` - The allowed value id of the - * business unit attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `business_unit.enum_values.values.display_name` - The allowed value - * display name of the business unit attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `maturity_level.enum_values.values.id` - The allowed value id of the - * maturity level attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `maturity_level.enum_values.values.display_name` - The allowed value - * display name of the maturity level attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `api_style.enum_values.values.id` - The allowed value id of the - * api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `api_style.enum_values.values.display_name` - The allowed value display - * name of the api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `owner.email = \"apihub@google.com\"` - - The owner team email is - * _apihub@google.com_. - * * `owner.email = \"apihub@google.com\" AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The owner team email is _apihub@google.com_ and the api was created - * before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `owner.email = \"apihub@google.com\" OR team.enum_values.values.id: - * apihub-team-id` - The filter string specifies the APIs where the owner - * team email is _apihub@google.com_ or the id of the allowed value - * associated with the team attribute is _apihub-team-id_. - * * `owner.email = \"apihub@google.com\" OR - * team.enum_values.values.display_name: ApiHub Team` - The filter string - * specifies the APIs where the owner team email is _apihub@google.com_ or - * the display name of the allowed value associated with the team attribute - * is `ApiHub Team`. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of ApiResources. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `ApiResource` are eligible for filtering: - * * `owner.email` - The email of the team which owns the ApiResource. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the ApiResource was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `display_name` - The display name of the ApiResource. Allowed - * comparison operators: `=`. - * * `target_user.enum_values.values.id` - The allowed value id of the - * target users attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `target_user.enum_values.values.display_name` - The allowed value - * display name of the target users attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `team.enum_values.values.id` - The allowed value id of the team - * attribute associated with the ApiResource. Allowed comparison operator is - * `:`. - * * `team.enum_values.values.display_name` - The allowed value display name - * of the team attribute associated with the ApiResource. Allowed comparison - * operator is `:`. - * * `business_unit.enum_values.values.id` - The allowed value id of the - * business unit attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `business_unit.enum_values.values.display_name` - The allowed value - * display name of the business unit attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `maturity_level.enum_values.values.id` - The allowed value id of the - * maturity level attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `maturity_level.enum_values.values.display_name` - The allowed value - * display name of the maturity level attribute associated with the - * ApiResource. Allowed comparison operator is `:`. - * * `api_style.enum_values.values.id` - The allowed value id of the - * api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * * `api_style.enum_values.values.display_name` - The allowed value display - * name of the api style attribute associated with the ApiResource. Allowed - * comparison operator is `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `owner.email = \"apihub@google.com\"` - - The owner team email is - * _apihub@google.com_. - * * `owner.email = \"apihub@google.com\" AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The owner team email is _apihub@google.com_ and the api was created - * before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `owner.email = \"apihub@google.com\" OR team.enum_values.values.id: - * apihub-team-id` - The filter string specifies the APIs where the owner - * team email is _apihub@google.com_ or the id of the allowed value - * associated with the team attribute is _apihub-team-id_. - * * `owner.email = \"apihub@google.com\" OR - * team.enum_values.values.display_name: ApiHub Team` - The filter string - * specifies the APIs where the owner team email is _apihub@google.com_ or - * the display name of the allowed value associated with the team attribute - * is `ApiHub Team`. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of API resources to return. The service may - * return fewer than this value. If unspecified, at most 50 Apis will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of API resources to return. The service may - * return fewer than this value. If unspecified, at most 50 Apis will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.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 `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApis` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListApis` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApisResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApisResponse.php deleted file mode 100644 index eb892e90fddd..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListApisResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apihub.v1.ListApisResponse - */ -class ListApisResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The API resources present in the API hub. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Api apis = 1; - */ - private $apis; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Api>|\Google\Protobuf\Internal\RepeatedField $apis - * The API resources present in the API hub. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The API resources present in the API hub. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Api apis = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApis() - { - return $this->apis; - } - - /** - * The API resources present in the API hub. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Api apis = 1; - * @param array<\Google\Cloud\ApiHub\V1\Api>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Api::class); - $this->apis = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListAttributesRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListAttributesRequest.php deleted file mode 100644 index 8eb0bf7dbacd..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListAttributesRequest.php +++ /dev/null @@ -1,357 +0,0 @@ -google.cloud.apihub.v1.ListAttributesRequest - */ -class ListAttributesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression that filters the list of Attributes. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Attribute` are eligible for filtering: - * * `display_name` - The display name of the Attribute. Allowed - * comparison operators: `=`. - * * `definition_type` - The definition type of the attribute. Allowed - * comparison operators: `=`. - * * `scope` - The scope of the attribute. Allowed comparison operators: - * `=`. - * * `data_type` - The type of the data of the attribute. Allowed - * comparison operators: `=`. - * * `mandatory` - Denotes whether the attribute is mandatory or not. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the Attribute was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `display_name = production` - - The display name of the attribute is - * _production_. - * * `(display_name = production) AND (create_time < - * \"2021-08-15T14:50:00Z\") AND (create_time > \"2021-08-10T12:00:00Z\")` - - * The display name of the attribute is _production_ and the attribute was - * created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 - * UTC_. - * * `display_name = production OR scope = api` - - * The attribute where the display name is _production_ or the scope is - * _api_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of attribute resources to return. The service - * may return fewer than this value. If unspecified, at most 50 attributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListAttributes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAttributes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListAttributesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * @type string $filter - * Optional. An expression that filters the list of Attributes. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Attribute` are eligible for filtering: - * * `display_name` - The display name of the Attribute. Allowed - * comparison operators: `=`. - * * `definition_type` - The definition type of the attribute. Allowed - * comparison operators: `=`. - * * `scope` - The scope of the attribute. Allowed comparison operators: - * `=`. - * * `data_type` - The type of the data of the attribute. Allowed - * comparison operators: `=`. - * * `mandatory` - Denotes whether the attribute is mandatory or not. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the Attribute was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `display_name = production` - - The display name of the attribute is - * _production_. - * * `(display_name = production) AND (create_time < - * \"2021-08-15T14:50:00Z\") AND (create_time > \"2021-08-10T12:00:00Z\")` - - * The display name of the attribute is _production_ and the attribute was - * created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 - * UTC_. - * * `display_name = production OR scope = api` - - * The attribute where the display name is _production_ or the scope is - * _api_. - * @type int $page_size - * Optional. The maximum number of attribute resources to return. The service - * may return fewer than this value. If unspecified, at most 50 attributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListAttributes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAttributes` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource for Attribute. - * Format: `projects/{project}/locations/{location}` - * - * 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 for Attribute. - * Format: `projects/{project}/locations/{location}` - * - * 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. An expression that filters the list of Attributes. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Attribute` are eligible for filtering: - * * `display_name` - The display name of the Attribute. Allowed - * comparison operators: `=`. - * * `definition_type` - The definition type of the attribute. Allowed - * comparison operators: `=`. - * * `scope` - The scope of the attribute. Allowed comparison operators: - * `=`. - * * `data_type` - The type of the data of the attribute. Allowed - * comparison operators: `=`. - * * `mandatory` - Denotes whether the attribute is mandatory or not. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the Attribute was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `display_name = production` - - The display name of the attribute is - * _production_. - * * `(display_name = production) AND (create_time < - * \"2021-08-15T14:50:00Z\") AND (create_time > \"2021-08-10T12:00:00Z\")` - - * The display name of the attribute is _production_ and the attribute was - * created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 - * UTC_. - * * `display_name = production OR scope = api` - - * The attribute where the display name is _production_ or the scope is - * _api_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of Attributes. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string or a - * boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Attribute` are eligible for filtering: - * * `display_name` - The display name of the Attribute. Allowed - * comparison operators: `=`. - * * `definition_type` - The definition type of the attribute. Allowed - * comparison operators: `=`. - * * `scope` - The scope of the attribute. Allowed comparison operators: - * `=`. - * * `data_type` - The type of the data of the attribute. Allowed - * comparison operators: `=`. - * * `mandatory` - Denotes whether the attribute is mandatory or not. - * Allowed comparison operators: `=`. - * * `create_time` - The time at which the Attribute was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `display_name = production` - - The display name of the attribute is - * _production_. - * * `(display_name = production) AND (create_time < - * \"2021-08-15T14:50:00Z\") AND (create_time > \"2021-08-10T12:00:00Z\")` - - * The display name of the attribute is _production_ and the attribute was - * created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 - * UTC_. - * * `display_name = production OR scope = api` - - * The attribute where the display name is _production_ or the scope is - * _api_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of attribute resources to return. The service - * may return fewer than this value. If unspecified, at most 50 attributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of attribute resources to return. The service - * may return fewer than this value. If unspecified, at most 50 attributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.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 `ListAttributes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAttributes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListAttributes` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAttributes` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListAttributesResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListAttributesResponse.php deleted file mode 100644 index 1e23419dad2d..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListAttributesResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.apihub.v1.ListAttributesResponse - */ -class ListAttributesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of all attributes. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute attributes = 1; - */ - private $attributes; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Attribute>|\Google\Protobuf\Internal\RepeatedField $attributes - * The list of all attributes. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The list of all attributes. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute attributes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * The list of all attributes. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Attribute attributes = 1; - * @param array<\Google\Cloud\ApiHub\V1\Attribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Attribute::class); - $this->attributes = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDependenciesRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDependenciesRequest.php deleted file mode 100644 index 88a5ab528157..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDependenciesRequest.php +++ /dev/null @@ -1,326 +0,0 @@ -google.cloud.apihub.v1.ListDependenciesRequest - */ -class ListDependenciesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent which owns this collection of dependency resources. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression that filters the list of Dependencies. - * A filter expression consists of a field name, a comparison operator, and - * a value for filtering. The value must be a string. Allowed comparison - * operator is `=`. Filters are not case sensitive. - * The following fields in the `Dependency` are eligible for filtering: - * * `consumer.operation_resource_name` - The operation resource name for - * the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `consumer.external_api_resource_name` - The external api resource name - * for the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.operation_resource_name` - The operation resource name for - * the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.external_api_resource_name` - The external api resource name - * for the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * For example, `consumer.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR - * supplier.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The - * dependencies with either consumer or supplier operation resource name as - * _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of dependency resources to return. The service - * may return fewer than this value. If unspecified, at most 50 dependencies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDependencies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDependencies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent which owns this collection of dependency resources. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubDependenciesClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListDependenciesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent which owns this collection of dependency resources. - * Format: `projects/{project}/locations/{location}` - * @type string $filter - * Optional. An expression that filters the list of Dependencies. - * A filter expression consists of a field name, a comparison operator, and - * a value for filtering. The value must be a string. Allowed comparison - * operator is `=`. Filters are not case sensitive. - * The following fields in the `Dependency` are eligible for filtering: - * * `consumer.operation_resource_name` - The operation resource name for - * the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `consumer.external_api_resource_name` - The external api resource name - * for the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.operation_resource_name` - The operation resource name for - * the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.external_api_resource_name` - The external api resource name - * for the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * For example, `consumer.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR - * supplier.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The - * dependencies with either consumer or supplier operation resource name as - * _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_. - * @type int $page_size - * Optional. The maximum number of dependency resources to return. The service - * may return fewer than this value. If unspecified, at most 50 dependencies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDependencies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDependencies` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent which owns this collection of dependency resources. - * Format: `projects/{project}/locations/{location}` - * - * 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 which owns this collection of dependency resources. - * Format: `projects/{project}/locations/{location}` - * - * 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. An expression that filters the list of Dependencies. - * A filter expression consists of a field name, a comparison operator, and - * a value for filtering. The value must be a string. Allowed comparison - * operator is `=`. Filters are not case sensitive. - * The following fields in the `Dependency` are eligible for filtering: - * * `consumer.operation_resource_name` - The operation resource name for - * the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `consumer.external_api_resource_name` - The external api resource name - * for the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.operation_resource_name` - The operation resource name for - * the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.external_api_resource_name` - The external api resource name - * for the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * For example, `consumer.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR - * supplier.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The - * dependencies with either consumer or supplier operation resource name as - * _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of Dependencies. - * A filter expression consists of a field name, a comparison operator, and - * a value for filtering. The value must be a string. Allowed comparison - * operator is `=`. Filters are not case sensitive. - * The following fields in the `Dependency` are eligible for filtering: - * * `consumer.operation_resource_name` - The operation resource name for - * the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `consumer.external_api_resource_name` - The external api resource name - * for the consumer entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.operation_resource_name` - The operation resource name for - * the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * * `supplier.external_api_resource_name` - The external api resource name - * for the supplier entity involved in a dependency. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * For example, `consumer.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR - * supplier.operation_resource_name = - * \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The - * dependencies with either consumer or supplier operation resource name as - * _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of dependency resources to return. The service - * may return fewer than this value. If unspecified, at most 50 dependencies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of dependency resources to return. The service - * may return fewer than this value. If unspecified, at most 50 dependencies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.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 `ListDependencies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDependencies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDependencies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDependencies` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDependenciesResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDependenciesResponse.php deleted file mode 100644 index 7c2cb458386b..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDependenciesResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.apihub.v1.ListDependenciesResponse - */ -class ListDependenciesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The dependency resources present in the API hub. - * Only following field will be populated in the response: name. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Dependency dependencies = 1; - */ - private $dependencies; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Dependency>|\Google\Protobuf\Internal\RepeatedField $dependencies - * The dependency resources present in the API hub. - * Only following field will be populated in the response: name. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The dependency resources present in the API hub. - * Only following field will be populated in the response: name. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Dependency dependencies = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDependencies() - { - return $this->dependencies; - } - - /** - * The dependency resources present in the API hub. - * Only following field will be populated in the response: name. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Dependency dependencies = 1; - * @param array<\Google\Cloud\ApiHub\V1\Dependency>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDependencies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Dependency::class); - $this->dependencies = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDeploymentsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDeploymentsRequest.php deleted file mode 100644 index 92fb02ff233a..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDeploymentsRequest.php +++ /dev/null @@ -1,417 +0,0 @@ -google.cloud.apihub.v1.ListDeploymentsRequest - */ -class ListDeploymentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of deployment resources. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression that filters the list of Deployments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Deployments` are eligible for filtering: - * * `display_name` - The display name of the Deployment. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Deployment was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `resource_uri` - A URI to the deployment resource. Allowed - * comparison operators: `=`. - * * `api_versions` - The API versions linked to this deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.id` - The allowed value id of the - * deployment_type attribute associated with the Deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.display_name` - The allowed value - * display name of the deployment_type attribute associated with the - * Deployment. Allowed comparison operators: `:`. - * * `slo.string_values.values` -The allowed string value of the slo - * attribute associated with the deployment. Allowed comparison - * operators: `:`. - * * `environment.enum_values.values.id` - The allowed value id of the - * environment attribute associated with the deployment. Allowed - * comparison operators: `:`. - * * `environment.enum_values.values.display_name` - The allowed value - * display name of the environment attribute associated with the deployment. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `environment.enum_values.values.id: staging-id` - The allowed value id - * of the environment attribute associated with the Deployment is - * _staging-id_. - * * `environment.enum_values.values.display_name: \"Staging Deployment\"` - - * The allowed value display name of the environment attribute associated - * with the Deployment is `Staging Deployment`. - * * `environment.enum_values.values.id: production-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The allowed value id of the environment attribute associated with the - * Deployment is _production-id_ and Deployment was created before - * _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `environment.enum_values.values.id: production-id OR - * slo.string_values.values: \"99.99%\"` - * - The allowed value id of the environment attribute Deployment is - * _production-id_ or string value of the slo attribute is _99.99%_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of deployment resources to return. The service - * may return fewer than this value. If unspecified, at most 50 deployments - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListDeployments` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of deployment resources. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListDeploymentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of deployment resources. - * Format: `projects/{project}/locations/{location}` - * @type string $filter - * Optional. An expression that filters the list of Deployments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Deployments` are eligible for filtering: - * * `display_name` - The display name of the Deployment. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Deployment was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `resource_uri` - A URI to the deployment resource. Allowed - * comparison operators: `=`. - * * `api_versions` - The API versions linked to this deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.id` - The allowed value id of the - * deployment_type attribute associated with the Deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.display_name` - The allowed value - * display name of the deployment_type attribute associated with the - * Deployment. Allowed comparison operators: `:`. - * * `slo.string_values.values` -The allowed string value of the slo - * attribute associated with the deployment. Allowed comparison - * operators: `:`. - * * `environment.enum_values.values.id` - The allowed value id of the - * environment attribute associated with the deployment. Allowed - * comparison operators: `:`. - * * `environment.enum_values.values.display_name` - The allowed value - * display name of the environment attribute associated with the deployment. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `environment.enum_values.values.id: staging-id` - The allowed value id - * of the environment attribute associated with the Deployment is - * _staging-id_. - * * `environment.enum_values.values.display_name: \"Staging Deployment\"` - - * The allowed value display name of the environment attribute associated - * with the Deployment is `Staging Deployment`. - * * `environment.enum_values.values.id: production-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The allowed value id of the environment attribute associated with the - * Deployment is _production-id_ and Deployment was created before - * _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `environment.enum_values.values.id: production-id OR - * slo.string_values.values: \"99.99%\"` - * - The allowed value id of the environment attribute Deployment is - * _production-id_ or string value of the slo attribute is _99.99%_. - * @type int $page_size - * Optional. The maximum number of deployment resources to return. The service - * may return fewer than this value. If unspecified, at most 50 deployments - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListDeployments` must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of deployment resources. - * Format: `projects/{project}/locations/{location}` - * - * 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, which owns this collection of deployment resources. - * Format: `projects/{project}/locations/{location}` - * - * 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. An expression that filters the list of Deployments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Deployments` are eligible for filtering: - * * `display_name` - The display name of the Deployment. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Deployment was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `resource_uri` - A URI to the deployment resource. Allowed - * comparison operators: `=`. - * * `api_versions` - The API versions linked to this deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.id` - The allowed value id of the - * deployment_type attribute associated with the Deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.display_name` - The allowed value - * display name of the deployment_type attribute associated with the - * Deployment. Allowed comparison operators: `:`. - * * `slo.string_values.values` -The allowed string value of the slo - * attribute associated with the deployment. Allowed comparison - * operators: `:`. - * * `environment.enum_values.values.id` - The allowed value id of the - * environment attribute associated with the deployment. Allowed - * comparison operators: `:`. - * * `environment.enum_values.values.display_name` - The allowed value - * display name of the environment attribute associated with the deployment. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `environment.enum_values.values.id: staging-id` - The allowed value id - * of the environment attribute associated with the Deployment is - * _staging-id_. - * * `environment.enum_values.values.display_name: \"Staging Deployment\"` - - * The allowed value display name of the environment attribute associated - * with the Deployment is `Staging Deployment`. - * * `environment.enum_values.values.id: production-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The allowed value id of the environment attribute associated with the - * Deployment is _production-id_ and Deployment was created before - * _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `environment.enum_values.values.id: production-id OR - * slo.string_values.values: \"99.99%\"` - * - The allowed value id of the environment attribute Deployment is - * _production-id_ or string value of the slo attribute is _99.99%_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of Deployments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Deployments` are eligible for filtering: - * * `display_name` - The display name of the Deployment. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Deployment was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `resource_uri` - A URI to the deployment resource. Allowed - * comparison operators: `=`. - * * `api_versions` - The API versions linked to this deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.id` - The allowed value id of the - * deployment_type attribute associated with the Deployment. Allowed - * comparison operators: `:`. - * * `deployment_type.enum_values.values.display_name` - The allowed value - * display name of the deployment_type attribute associated with the - * Deployment. Allowed comparison operators: `:`. - * * `slo.string_values.values` -The allowed string value of the slo - * attribute associated with the deployment. Allowed comparison - * operators: `:`. - * * `environment.enum_values.values.id` - The allowed value id of the - * environment attribute associated with the deployment. Allowed - * comparison operators: `:`. - * * `environment.enum_values.values.display_name` - The allowed value - * display name of the environment attribute associated with the deployment. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are supported. At most - * three filter fields are allowed in the filter string and if provided - * more than that then `INVALID_ARGUMENT` error is returned by the API. - * Here are a few examples: - * * `environment.enum_values.values.id: staging-id` - The allowed value id - * of the environment attribute associated with the Deployment is - * _staging-id_. - * * `environment.enum_values.values.display_name: \"Staging Deployment\"` - - * The allowed value display name of the environment attribute associated - * with the Deployment is `Staging Deployment`. - * * `environment.enum_values.values.id: production-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The allowed value id of the environment attribute associated with the - * Deployment is _production-id_ and Deployment was created before - * _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `environment.enum_values.values.id: production-id OR - * slo.string_values.values: \"99.99%\"` - * - The allowed value id of the environment attribute Deployment is - * _production-id_ or string value of the slo attribute is _99.99%_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of deployment resources to return. The service - * may return fewer than this value. If unspecified, at most 50 deployments - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of deployment resources to return. The service - * may return fewer than this value. If unspecified, at most 50 deployments - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.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 `ListDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListDeployments` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListDeployments` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDeploymentsResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDeploymentsResponse.php deleted file mode 100644 index c42b03351469..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListDeploymentsResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.apihub.v1.ListDeploymentsResponse - */ -class ListDeploymentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The deployment resources present in the API hub. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Deployment deployments = 1; - */ - private $deployments; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Deployment>|\Google\Protobuf\Internal\RepeatedField $deployments - * The deployment resources present in the API hub. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The deployment resources present in the API hub. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Deployment deployments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeployments() - { - return $this->deployments; - } - - /** - * The deployment resources present in the API hub. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Deployment deployments = 1; - * @param array<\Google\Cloud\ApiHub\V1\Deployment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Deployment::class); - $this->deployments = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListExternalApisRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListExternalApisRequest.php deleted file mode 100644 index 2f513cec2531..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListExternalApisRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.apihub.v1.ListExternalApisRequest - */ -class ListExternalApisRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of External API resources. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of External API resources to return. The - * service may return fewer than this value. If unspecified, at most 50 - * ExternalApis will be returned. The maximum value is 1000; values above 1000 - * will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListExternalApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListExternalApis` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of External API resources. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ApiHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListExternalApisRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of External API resources. - * Format: `projects/{project}/locations/{location}` - * @type int $page_size - * Optional. The maximum number of External API resources to return. The - * service may return fewer than this value. If unspecified, at most 50 - * ExternalApis will be returned. The maximum value is 1000; values above 1000 - * will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListExternalApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListExternalApis` must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of External API resources. - * Format: `projects/{project}/locations/{location}` - * - * 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, which owns this collection of External API resources. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of External API resources to return. The - * service may return fewer than this value. If unspecified, at most 50 - * ExternalApis will be returned. The maximum value is 1000; values above 1000 - * will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of External API resources to return. The - * service may return fewer than this value. If unspecified, at most 50 - * ExternalApis will be returned. The maximum value is 1000; values above 1000 - * will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListExternalApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListExternalApis` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListExternalApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListExternalApis` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListExternalApisResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListExternalApisResponse.php deleted file mode 100644 index c990fe2d4e5f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListExternalApisResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.apihub.v1.ListExternalApisResponse - */ -class ListExternalApisResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The External API resources present in the API hub. - * Only following fields will be populated in the response: name, - * display_name, documentation.external_uri. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.ExternalApi external_apis = 1; - */ - private $external_apis; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\ExternalApi>|\Google\Protobuf\Internal\RepeatedField $external_apis - * The External API resources present in the API hub. - * Only following fields will be populated in the response: name, - * display_name, documentation.external_uri. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The External API resources present in the API hub. - * Only following fields will be populated in the response: name, - * display_name, documentation.external_uri. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.ExternalApi external_apis = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExternalApis() - { - return $this->external_apis; - } - - /** - * The External API resources present in the API hub. - * Only following fields will be populated in the response: name, - * display_name, documentation.external_uri. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.ExternalApi external_apis = 1; - * @param array<\Google\Cloud\ApiHub\V1\ExternalApi>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExternalApis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\ExternalApi::class); - $this->external_apis = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListHostProjectRegistrationsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListHostProjectRegistrationsRequest.php deleted file mode 100644 index 56569e70abfc..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListHostProjectRegistrationsRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.cloud.apihub.v1.ListHostProjectRegistrationsRequest - */ -class ListHostProjectRegistrationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of host projects. - * Format: `projects/*/locations/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of host project registrations to return. The - * service may return fewer than this value. If unspecified, at most 50 host - * project registrations will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListHostProjectRegistrations` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListHostProjectRegistrations` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. An expression that filters the list of HostProjectRegistrations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `HostProjectRegistration` are eligible for - * filtering: - * * `name` - The name of the HostProjectRegistration. - * * `create_time` - The time at which the HostProjectRegistration was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `gcp_project` - The Google cloud project associated with the - * HostProjectRegistration. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of host projects. - * Format: `projects/*/locations/*` - * Please see {@see HostProjectRegistrationServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListHostProjectRegistrationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of host projects. - * Format: `projects/*/locations/*` - * @type int $page_size - * Optional. The maximum number of host project registrations to return. The - * service may return fewer than this value. If unspecified, at most 50 host - * project registrations will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListHostProjectRegistrations` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListHostProjectRegistrations` must match the call that provided the page - * token. - * @type string $filter - * Optional. An expression that filters the list of HostProjectRegistrations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `HostProjectRegistration` are eligible for - * filtering: - * * `name` - The name of the HostProjectRegistration. - * * `create_time` - The time at which the HostProjectRegistration was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `gcp_project` - The Google cloud project associated with the - * HostProjectRegistration. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\HostProjectRegistrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of host projects. - * Format: `projects/*/locations/*` - * - * 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, which owns this collection of host projects. - * Format: `projects/*/locations/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of host project registrations to return. The - * service may return fewer than this value. If unspecified, at most 50 host - * project registrations will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of host project registrations to return. The - * service may return fewer than this value. If unspecified, at most 50 host - * project registrations will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListHostProjectRegistrations` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListHostProjectRegistrations` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListHostProjectRegistrations` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListHostProjectRegistrations` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. An expression that filters the list of HostProjectRegistrations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `HostProjectRegistration` are eligible for - * filtering: - * * `name` - The name of the HostProjectRegistration. - * * `create_time` - The time at which the HostProjectRegistration was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `gcp_project` - The Google cloud project associated with the - * HostProjectRegistration. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of HostProjectRegistrations. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `HostProjectRegistration` are eligible for - * filtering: - * * `name` - The name of the HostProjectRegistration. - * * `create_time` - The time at which the HostProjectRegistration was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `gcp_project` - The Google cloud project associated with the - * HostProjectRegistration. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListHostProjectRegistrationsResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListHostProjectRegistrationsResponse.php deleted file mode 100644 index 8f43a11727ba..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListHostProjectRegistrationsResponse.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.apihub.v1.ListHostProjectRegistrationsResponse - */ -class ListHostProjectRegistrationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of host project registrations. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1; - */ - private $host_project_registrations; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\HostProjectRegistration>|\Google\Protobuf\Internal\RepeatedField $host_project_registrations - * The list of host project registrations. - * @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\Cloud\Apihub\V1\HostProjectRegistrationService::initOnce(); - parent::__construct($data); - } - - /** - * The list of host project registrations. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHostProjectRegistrations() - { - return $this->host_project_registrations; - } - - /** - * The list of host project registrations. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1; - * @param array<\Google\Cloud\ApiHub\V1\HostProjectRegistration>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHostProjectRegistrations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\HostProjectRegistration::class); - $this->host_project_registrations = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListRuntimeProjectAttachmentsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListRuntimeProjectAttachmentsRequest.php deleted file mode 100644 index 6be253d92771..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListRuntimeProjectAttachmentsRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.cloud.apihub.v1.ListRuntimeProjectAttachmentsRequest - */ -class ListRuntimeProjectAttachmentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of runtime project - * attachments. Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of runtime project attachments to return. The - * service may return fewer than this value. If unspecified, at most 50 - * runtime project attachments will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `ListRuntimeProjectAttachments` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListRuntimeProjectAttachments` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. An expression that filters the list of RuntimeProjectAttachments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `RuntimeProjectAttachment` are eligible for - * filtering: - * * `name` - The name of the RuntimeProjectAttachment. - * * `create_time` - The time at which the RuntimeProjectAttachment was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `runtime_project` - The Google cloud project associated with the - * RuntimeProjectAttachment. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of runtime project - * attachments. Format: `projects/{project}/locations/{location}` - * Please see {@see RuntimeProjectAttachmentServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListRuntimeProjectAttachmentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of runtime project - * attachments. Format: `projects/{project}/locations/{location}` - * @type int $page_size - * Optional. The maximum number of runtime project attachments to return. The - * service may return fewer than this value. If unspecified, at most 50 - * runtime project attachments will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `ListRuntimeProjectAttachments` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListRuntimeProjectAttachments` must match the call that provided the page - * token. - * @type string $filter - * Optional. An expression that filters the list of RuntimeProjectAttachments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `RuntimeProjectAttachment` are eligible for - * filtering: - * * `name` - The name of the RuntimeProjectAttachment. - * * `create_time` - The time at which the RuntimeProjectAttachment was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `runtime_project` - The Google cloud project associated with the - * RuntimeProjectAttachment. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of runtime project - * attachments. Format: `projects/{project}/locations/{location}` - * - * 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, which owns this collection of runtime project - * attachments. Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of runtime project attachments to return. The - * service may return fewer than this value. If unspecified, at most 50 - * runtime project attachments will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of runtime project attachments to return. The - * service may return fewer than this value. If unspecified, at most 50 - * runtime project attachments will be returned. The maximum value is 1000; - * values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `ListRuntimeProjectAttachments` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListRuntimeProjectAttachments` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `ListRuntimeProjectAttachments` call. Provide this to retrieve the - * subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListRuntimeProjectAttachments` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. An expression that filters the list of RuntimeProjectAttachments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `RuntimeProjectAttachment` are eligible for - * filtering: - * * `name` - The name of the RuntimeProjectAttachment. - * * `create_time` - The time at which the RuntimeProjectAttachment was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `runtime_project` - The Google cloud project associated with the - * RuntimeProjectAttachment. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of RuntimeProjectAttachments. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. All - * standard operators as documented at https://google.aip.dev/160 are - * supported. - * The following fields in the `RuntimeProjectAttachment` are eligible for - * filtering: - * * `name` - The name of the RuntimeProjectAttachment. - * * `create_time` - The time at which the RuntimeProjectAttachment was - * created. The value should be in the - * (RFC3339)[https://tools.ietf.org/html/rfc3339] format. - * * `runtime_project` - The Google cloud project associated with the - * RuntimeProjectAttachment. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListRuntimeProjectAttachmentsResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListRuntimeProjectAttachmentsResponse.php deleted file mode 100644 index 2d68a337c686..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListRuntimeProjectAttachmentsResponse.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.apihub.v1.ListRuntimeProjectAttachmentsResponse - */ -class ListRuntimeProjectAttachmentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of runtime project attachments. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachments = 1; - */ - private $runtime_project_attachments; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\RuntimeProjectAttachment>|\Google\Protobuf\Internal\RepeatedField $runtime_project_attachments - * List of runtime project attachments. - * @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\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * List of runtime project attachments. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRuntimeProjectAttachments() - { - return $this->runtime_project_attachments; - } - - /** - * List of runtime project attachments. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachments = 1; - * @param array<\Google\Cloud\ApiHub\V1\RuntimeProjectAttachment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRuntimeProjectAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment::class); - $this->runtime_project_attachments = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListSpecsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListSpecsRequest.php deleted file mode 100644 index 577d4f300269..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListSpecsRequest.php +++ /dev/null @@ -1,393 +0,0 @@ -google.cloud.apihub.v1.ListSpecsRequest - */ -class ListSpecsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of specs. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression that filters the list of Specs. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `Spec` are eligible for filtering: - * * `display_name` - The display name of the Spec. Allowed comparison - * operators: `=`. - * * `create_time` - The time at which the Spec was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `spec_type.enum_values.values.id` - The allowed value id of the - * spec_type attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `spec_type.enum_values.values.display_name` - The allowed value display - * name of the spec_type attribute associated with the Spec. Allowed - * comparison operators: `:`. - * * `lint_response.json_values.values` - The json value of the - * lint_response attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `mime_type` - The MIME type of the Spec. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `spec_type.enum_values.values.id: rest-id` - The filter - * string specifies that the id of the allowed value associated with the - * spec_type attribute is _rest-id_. - * * `spec_type.enum_values.values.display_name: \"Rest Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the spec_type attribute is `Rest Display Name`. - * * `spec_type.enum_values.values.id: grpc-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the spec_type attribute is - * _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and - * after _2021-08-10 12:00:00 UTC_. - * * `spec_type.enum_values.values.id: rest-id OR - * spec_type.enum_values.values.id: grpc-id` - * - The id of the allowed value associated with the spec_type attribute is - * _rest-id_ or _grpc-id_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of specs to return. The service may return - * fewer than this value. If unspecified, at most 50 specs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSpecs` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of specs. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * Please see {@see ApiHubClient::versionName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListSpecsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of specs. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @type string $filter - * Optional. An expression that filters the list of Specs. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `Spec` are eligible for filtering: - * * `display_name` - The display name of the Spec. Allowed comparison - * operators: `=`. - * * `create_time` - The time at which the Spec was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `spec_type.enum_values.values.id` - The allowed value id of the - * spec_type attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `spec_type.enum_values.values.display_name` - The allowed value display - * name of the spec_type attribute associated with the Spec. Allowed - * comparison operators: `:`. - * * `lint_response.json_values.values` - The json value of the - * lint_response attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `mime_type` - The MIME type of the Spec. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `spec_type.enum_values.values.id: rest-id` - The filter - * string specifies that the id of the allowed value associated with the - * spec_type attribute is _rest-id_. - * * `spec_type.enum_values.values.display_name: \"Rest Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the spec_type attribute is `Rest Display Name`. - * * `spec_type.enum_values.values.id: grpc-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the spec_type attribute is - * _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and - * after _2021-08-10 12:00:00 UTC_. - * * `spec_type.enum_values.values.id: rest-id OR - * spec_type.enum_values.values.id: grpc-id` - * - The id of the allowed value associated with the spec_type attribute is - * _rest-id_ or _grpc-id_. - * @type int $page_size - * Optional. The maximum number of specs to return. The service may return - * fewer than this value. If unspecified, at most 50 specs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSpecs` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of specs. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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, which owns this collection of specs. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * 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. An expression that filters the list of Specs. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `Spec` are eligible for filtering: - * * `display_name` - The display name of the Spec. Allowed comparison - * operators: `=`. - * * `create_time` - The time at which the Spec was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `spec_type.enum_values.values.id` - The allowed value id of the - * spec_type attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `spec_type.enum_values.values.display_name` - The allowed value display - * name of the spec_type attribute associated with the Spec. Allowed - * comparison operators: `:`. - * * `lint_response.json_values.values` - The json value of the - * lint_response attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `mime_type` - The MIME type of the Spec. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `spec_type.enum_values.values.id: rest-id` - The filter - * string specifies that the id of the allowed value associated with the - * spec_type attribute is _rest-id_. - * * `spec_type.enum_values.values.display_name: \"Rest Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the spec_type attribute is `Rest Display Name`. - * * `spec_type.enum_values.values.id: grpc-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the spec_type attribute is - * _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and - * after _2021-08-10 12:00:00 UTC_. - * * `spec_type.enum_values.values.id: rest-id OR - * spec_type.enum_values.values.id: grpc-id` - * - The id of the allowed value associated with the spec_type attribute is - * _rest-id_ or _grpc-id_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of Specs. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string. The - * comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not - * case sensitive. - * The following fields in the `Spec` are eligible for filtering: - * * `display_name` - The display name of the Spec. Allowed comparison - * operators: `=`. - * * `create_time` - The time at which the Spec was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `spec_type.enum_values.values.id` - The allowed value id of the - * spec_type attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `spec_type.enum_values.values.display_name` - The allowed value display - * name of the spec_type attribute associated with the Spec. Allowed - * comparison operators: `:`. - * * `lint_response.json_values.values` - The json value of the - * lint_response attribute associated with the Spec. Allowed comparison - * operators: `:`. - * * `mime_type` - The MIME type of the Spec. Allowed comparison - * operators: `=`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `spec_type.enum_values.values.id: rest-id` - The filter - * string specifies that the id of the allowed value associated with the - * spec_type attribute is _rest-id_. - * * `spec_type.enum_values.values.display_name: \"Rest Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the spec_type attribute is `Rest Display Name`. - * * `spec_type.enum_values.values.id: grpc-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the spec_type attribute is - * _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and - * after _2021-08-10 12:00:00 UTC_. - * * `spec_type.enum_values.values.id: rest-id OR - * spec_type.enum_values.values.id: grpc-id` - * - The id of the allowed value associated with the spec_type attribute is - * _rest-id_ or _grpc-id_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of specs to return. The service may return - * fewer than this value. If unspecified, at most 50 specs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of specs to return. The service may return - * fewer than this value. If unspecified, at most 50 specs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.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 `ListSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSpecs` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSpecs` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListSpecsResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListSpecsResponse.php deleted file mode 100644 index c8f193d120e6..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListSpecsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apihub.v1.ListSpecsResponse - */ -class ListSpecsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The specs corresponding to an API. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Spec specs = 1; - */ - private $specs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Spec>|\Google\Protobuf\Internal\RepeatedField $specs - * The specs corresponding to an API. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The specs corresponding to an API. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Spec specs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpecs() - { - return $this->specs; - } - - /** - * The specs corresponding to an API. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Spec specs = 1; - * @param array<\Google\Cloud\ApiHub\V1\Spec>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Spec::class); - $this->specs = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListVersionsRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListVersionsRequest.php deleted file mode 100644 index c380c80430b5..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListVersionsRequest.php +++ /dev/null @@ -1,421 +0,0 @@ -google.cloud.apihub.v1.ListVersionsRequest - */ -class ListVersionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent which owns this collection of API versions i.e., the - * API resource Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression that filters the list of Versions. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string, a - * number, or a boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Version` are eligible for filtering: - * * `display_name` - The display name of the Version. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Version was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `lifecycle.enum_values.values.id` - The allowed value id of the - * lifecycle attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `lifecycle.enum_values.values.display_name` - The allowed value display - * name of the lifecycle attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `compliance.enum_values.values.id` - The allowed value id of the - * compliances attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `compliance.enum_values.values.display_name` - The allowed value - * display name of the compliances attribute associated with the Version. - * Allowed comparison operators: `:`. - * * `accreditation.enum_values.values.id` - The allowed value id of the - * accreditations attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `accreditation.enum_values.values.display_name` - The allowed value - * display name of the accreditations attribute associated with the Version. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `lifecycle.enum_values.values.id: preview-id` - The filter string - * specifies that the id of the allowed value associated with the lifecycle - * attribute of the Version is _preview-id_. - * * `lifecycle.enum_values.values.display_name: \"Preview Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the lifecycle attribute of the Version is `Preview - * Display Name`. - * * `lifecycle.enum_values.values.id: preview-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the lifecycle attribute of - * the Version is _preview-id_ and it was created before _2021-08-15 - * 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `compliance.enum_values.values.id: gdpr-id OR - * compliance.enum_values.values.id: pci-dss-id` - * - The id of the allowed value associated with the compliance attribute is - * _gdpr-id_ or _pci-dss-id_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of versions to return. The service may return - * fewer than this value. If unspecified, at most 50 versions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListVersions` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent which owns this collection of API versions i.e., the - * API resource Format: `projects/{project}/locations/{location}/apis/{api}` - * Please see {@see ApiHubClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\ListVersionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent which owns this collection of API versions i.e., the - * API resource Format: `projects/{project}/locations/{location}/apis/{api}` - * @type string $filter - * Optional. An expression that filters the list of Versions. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string, a - * number, or a boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Version` are eligible for filtering: - * * `display_name` - The display name of the Version. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Version was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `lifecycle.enum_values.values.id` - The allowed value id of the - * lifecycle attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `lifecycle.enum_values.values.display_name` - The allowed value display - * name of the lifecycle attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `compliance.enum_values.values.id` - The allowed value id of the - * compliances attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `compliance.enum_values.values.display_name` - The allowed value - * display name of the compliances attribute associated with the Version. - * Allowed comparison operators: `:`. - * * `accreditation.enum_values.values.id` - The allowed value id of the - * accreditations attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `accreditation.enum_values.values.display_name` - The allowed value - * display name of the accreditations attribute associated with the Version. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `lifecycle.enum_values.values.id: preview-id` - The filter string - * specifies that the id of the allowed value associated with the lifecycle - * attribute of the Version is _preview-id_. - * * `lifecycle.enum_values.values.display_name: \"Preview Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the lifecycle attribute of the Version is `Preview - * Display Name`. - * * `lifecycle.enum_values.values.id: preview-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the lifecycle attribute of - * the Version is _preview-id_ and it was created before _2021-08-15 - * 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `compliance.enum_values.values.id: gdpr-id OR - * compliance.enum_values.values.id: pci-dss-id` - * - The id of the allowed value associated with the compliance attribute is - * _gdpr-id_ or _pci-dss-id_. - * @type int $page_size - * Optional. The maximum number of versions to return. The service may return - * fewer than this value. If unspecified, at most 50 versions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListVersions` must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent which owns this collection of API versions i.e., the - * API resource Format: `projects/{project}/locations/{location}/apis/{api}` - * - * 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 which owns this collection of API versions i.e., the - * API resource Format: `projects/{project}/locations/{location}/apis/{api}` - * - * 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. An expression that filters the list of Versions. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string, a - * number, or a boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Version` are eligible for filtering: - * * `display_name` - The display name of the Version. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Version was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `lifecycle.enum_values.values.id` - The allowed value id of the - * lifecycle attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `lifecycle.enum_values.values.display_name` - The allowed value display - * name of the lifecycle attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `compliance.enum_values.values.id` - The allowed value id of the - * compliances attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `compliance.enum_values.values.display_name` - The allowed value - * display name of the compliances attribute associated with the Version. - * Allowed comparison operators: `:`. - * * `accreditation.enum_values.values.id` - The allowed value id of the - * accreditations attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `accreditation.enum_values.values.display_name` - The allowed value - * display name of the accreditations attribute associated with the Version. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `lifecycle.enum_values.values.id: preview-id` - The filter string - * specifies that the id of the allowed value associated with the lifecycle - * attribute of the Version is _preview-id_. - * * `lifecycle.enum_values.values.display_name: \"Preview Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the lifecycle attribute of the Version is `Preview - * Display Name`. - * * `lifecycle.enum_values.values.id: preview-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the lifecycle attribute of - * the Version is _preview-id_ and it was created before _2021-08-15 - * 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `compliance.enum_values.values.id: gdpr-id OR - * compliance.enum_values.values.id: pci-dss-id` - * - The id of the allowed value associated with the compliance attribute is - * _gdpr-id_ or _pci-dss-id_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of Versions. - * A filter expression consists of a field name, a comparison - * operator, and a value for filtering. The value must be a string, a - * number, or a boolean. The comparison operator must be one of: `<`, `>` or - * `=`. Filters are not case sensitive. - * The following fields in the `Version` are eligible for filtering: - * * `display_name` - The display name of the Version. Allowed - * comparison operators: `=`. - * * `create_time` - The time at which the Version was created. The - * value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] - * format. Allowed comparison operators: `>` and `<`. - * * `lifecycle.enum_values.values.id` - The allowed value id of the - * lifecycle attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `lifecycle.enum_values.values.display_name` - The allowed value display - * name of the lifecycle attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `compliance.enum_values.values.id` - The allowed value id of the - * compliances attribute associated with the Version. Allowed comparison - * operators: `:`. - * * `compliance.enum_values.values.display_name` - The allowed value - * display name of the compliances attribute associated with the Version. - * Allowed comparison operators: `:`. - * * `accreditation.enum_values.values.id` - The allowed value id of the - * accreditations attribute associated with the Version. Allowed - * comparison operators: `:`. - * * `accreditation.enum_values.values.display_name` - The allowed value - * display name of the accreditations attribute associated with the Version. - * Allowed comparison operators: `:`. - * Expressions are combined with either `AND` logic operator or `OR` logical - * operator but not both of them together i.e. only one of the `AND` or `OR` - * operator can be used throughout the filter string and both the operators - * cannot be used together. No other logical operators are - * supported. At most three filter fields are allowed in the filter - * string and if provided more than that then `INVALID_ARGUMENT` error is - * returned by the API. - * Here are a few examples: - * * `lifecycle.enum_values.values.id: preview-id` - The filter string - * specifies that the id of the allowed value associated with the lifecycle - * attribute of the Version is _preview-id_. - * * `lifecycle.enum_values.values.display_name: \"Preview Display Name\"` - - * The filter string specifies that the display name of the allowed value - * associated with the lifecycle attribute of the Version is `Preview - * Display Name`. - * * `lifecycle.enum_values.values.id: preview-id AND create_time < - * \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - - * The id of the allowed value associated with the lifecycle attribute of - * the Version is _preview-id_ and it was created before _2021-08-15 - * 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. - * * `compliance.enum_values.values.id: gdpr-id OR - * compliance.enum_values.values.id: pci-dss-id` - * - The id of the allowed value associated with the compliance attribute is - * _gdpr-id_ or _pci-dss-id_. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of versions to return. The service may return - * fewer than this value. If unspecified, at most 50 versions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of versions to return. The service may return - * fewer than this value. If unspecified, at most 50 versions will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.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 `ListVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListVersions` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters (except page_size) provided to - * `ListVersions` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListVersionsResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListVersionsResponse.php deleted file mode 100644 index b074b3f0254f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/ListVersionsResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.apihub.v1.ListVersionsResponse - */ -class ListVersionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The versions corresponding to an API. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Version versions = 1; - */ - private $versions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\Version>|\Google\Protobuf\Internal\RepeatedField $versions - * The versions corresponding to an API. - * @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\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * The versions corresponding to an API. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Version versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersions() - { - return $this->versions; - } - - /** - * The versions corresponding to an API. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.Version versions = 1; - * @param array<\Google\Cloud\ApiHub\V1\Version>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\Version::class); - $this->versions = $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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupApiHubInstanceRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupApiHubInstanceRequest.php deleted file mode 100644 index df366e02da12..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupApiHubInstanceRequest.php +++ /dev/null @@ -1,98 +0,0 @@ -google.cloud.apihub.v1.LookupApiHubInstanceRequest - */ -class LookupApiHubInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. There will always be only one Api Hub instance for a GCP project - * across all locations. - * The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * @param string $parent Required. There will always be only one Api Hub instance for a GCP project - * across all locations. - * The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * Please see {@see ProvisioningClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\LookupApiHubInstanceRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. There will always be only one Api Hub instance for a GCP project - * across all locations. - * The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Required. There will always be only one Api Hub instance for a GCP project - * across all locations. - * The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * - * 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. There will always be only one Api Hub instance for a GCP project - * across all locations. - * The parent resource for the Api Hub instance resource. - * Format: `projects/{project}/locations/{location}` - * - * 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; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupApiHubInstanceResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupApiHubInstanceResponse.php deleted file mode 100644 index 3704948033ea..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupApiHubInstanceResponse.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.apihub.v1.LookupApiHubInstanceResponse - */ -class LookupApiHubInstanceResponse extends \Google\Protobuf\Internal\Message -{ - /** - * API Hub instance for a project if it exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 1; - */ - protected $api_hub_instance = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\ApiHubInstance $api_hub_instance - * API Hub instance for a project if it exists, empty otherwise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * API Hub instance for a project if it exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 1; - * @return \Google\Cloud\ApiHub\V1\ApiHubInstance|null - */ - public function getApiHubInstance() - { - return $this->api_hub_instance; - } - - public function hasApiHubInstance() - { - return isset($this->api_hub_instance); - } - - public function clearApiHubInstance() - { - unset($this->api_hub_instance); - } - - /** - * API Hub instance for a project if it exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubInstance api_hub_instance = 1; - * @param \Google\Cloud\ApiHub\V1\ApiHubInstance $var - * @return $this - */ - public function setApiHubInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\ApiHubInstance::class); - $this->api_hub_instance = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupRuntimeProjectAttachmentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupRuntimeProjectAttachmentRequest.php deleted file mode 100644 index 51f582ea2985..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupRuntimeProjectAttachmentRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.apihub.v1.LookupRuntimeProjectAttachmentRequest - */ -class LookupRuntimeProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Runtime project ID to look up runtime project attachment for. - * Lookup happens across all regions. Expected format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Runtime project ID to look up runtime project attachment for. - * Lookup happens across all regions. Expected format: - * `projects/{project}/locations/{location}`. Please see - * {@see RuntimeProjectAttachmentServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiHub\V1\LookupRuntimeProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Runtime project ID to look up runtime project attachment for. - * Lookup happens across all regions. Expected format: - * `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Runtime project ID to look up runtime project attachment for. - * Lookup happens across all regions. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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. Runtime project ID to look up runtime project attachment for. - * Lookup happens across all regions. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupRuntimeProjectAttachmentResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupRuntimeProjectAttachmentResponse.php deleted file mode 100644 index bc2a44e5bc97..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/LookupRuntimeProjectAttachmentResponse.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.apihub.v1.LookupRuntimeProjectAttachmentResponse - */ -class LookupRuntimeProjectAttachmentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Runtime project attachment for a project if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 1; - */ - protected $runtime_project_attachment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment $runtime_project_attachment - * Runtime project attachment for a project if exists, empty otherwise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * Runtime project attachment for a project if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 1; - * @return \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment|null - */ - public function getRuntimeProjectAttachment() - { - return $this->runtime_project_attachment; - } - - public function hasRuntimeProjectAttachment() - { - return isset($this->runtime_project_attachment); - } - - public function clearRuntimeProjectAttachment() - { - unset($this->runtime_project_attachment); - } - - /** - * Runtime project attachment for a project if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 1; - * @param \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment $var - * @return $this - */ - public function setRuntimeProjectAttachment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\RuntimeProjectAttachment::class); - $this->runtime_project_attachment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OpenApiSpecDetails.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OpenApiSpecDetails.php deleted file mode 100644 index 7c2bc4338d9c..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OpenApiSpecDetails.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.apihub.v1.OpenApiSpecDetails - */ -class OpenApiSpecDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The format of the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $format = 0; - /** - * Output only. The version in the spec. - * This maps to `info.version` in OpenAPI spec. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $version = ''; - /** - * Output only. Owner details for the spec. - * This maps to `info.contact` in OpenAPI spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $owner = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $format - * Output only. The format of the spec. - * @type string $version - * Output only. The version in the spec. - * This maps to `info.version` in OpenAPI spec. - * @type \Google\Cloud\ApiHub\V1\Owner $owner - * Output only. Owner details for the spec. - * This maps to `info.contact` in OpenAPI spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The format of the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getFormat() - { - return $this->format; - } - - /** - * Output only. The format of the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\OpenApiSpecDetails\Format::class); - $this->format = $var; - - return $this; - } - - /** - * Output only. The version in the spec. - * This maps to `info.version` in OpenAPI spec. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Output only. The version in the spec. - * This maps to `info.version` in OpenAPI spec. - * - * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Output only. Owner details for the spec. - * This maps to `info.contact` in OpenAPI spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\Owner|null - */ - public function getOwner() - { - return $this->owner; - } - - public function hasOwner() - { - return isset($this->owner); - } - - public function clearOwner() - { - unset($this->owner); - } - - /** - * Output only. Owner details for the spec. - * This maps to `info.contact` in OpenAPI spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\Owner $var - * @return $this - */ - public function setOwner($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Owner::class); - $this->owner = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OpenApiSpecDetails/Format.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OpenApiSpecDetails/Format.php deleted file mode 100644 index 172623a15301..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OpenApiSpecDetails/Format.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.apihub.v1.OpenApiSpecDetails.Format - */ -class Format -{ - /** - * SpecFile type unspecified. - * - * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; - */ - const FORMAT_UNSPECIFIED = 0; - /** - * OpenAPI Spec v2.0. - * - * Generated from protobuf enum OPEN_API_SPEC_2_0 = 1; - */ - const OPEN_API_SPEC_2_0 = 1; - /** - * OpenAPI Spec v3.0. - * - * Generated from protobuf enum OPEN_API_SPEC_3_0 = 2; - */ - const OPEN_API_SPEC_3_0 = 2; - /** - * OpenAPI Spec v3.1. - * - * Generated from protobuf enum OPEN_API_SPEC_3_1 = 3; - */ - const OPEN_API_SPEC_3_1 = 3; - - private static $valueToName = [ - self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', - self::OPEN_API_SPEC_2_0 => 'OPEN_API_SPEC_2_0', - self::OPEN_API_SPEC_3_0 => 'OPEN_API_SPEC_3_0', - self::OPEN_API_SPEC_3_1 => 'OPEN_API_SPEC_3_1', - ]; - - 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(Format::class, \Google\Cloud\ApiHub\V1\OpenApiSpecDetails_Format::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OperationDetails.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OperationDetails.php deleted file mode 100644 index dac950e4f69c..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OperationDetails.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.apihub.v1.OperationDetails - */ -class OperationDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Description of the operation behavior. - * For OpenAPI spec, this will map to `operation.description` in the - * spec, in case description is empty, `operation.summary` will be used. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. Additional external documentation for this operation. - * For OpenAPI spec, this will map to `operation.documentation` in the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $documentation = null; - /** - * Output only. For OpenAPI spec, this will be set if `operation.deprecated`is - * marked as `true` in the spec. - * - * Generated from protobuf field bool deprecated = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deprecated = false; - protected $operation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\HttpOperation $http_operation - * The HTTP Operation. - * @type string $description - * Output only. Description of the operation behavior. - * For OpenAPI spec, this will map to `operation.description` in the - * spec, in case description is empty, `operation.summary` will be used. - * @type \Google\Cloud\ApiHub\V1\Documentation $documentation - * Output only. Additional external documentation for this operation. - * For OpenAPI spec, this will map to `operation.documentation` in the spec. - * @type bool $deprecated - * Output only. For OpenAPI spec, this will be set if `operation.deprecated`is - * marked as `true` in the spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * The HTTP Operation. - * - * Generated from protobuf field .google.cloud.apihub.v1.HttpOperation http_operation = 4; - * @return \Google\Cloud\ApiHub\V1\HttpOperation|null - */ - public function getHttpOperation() - { - return $this->readOneof(4); - } - - public function hasHttpOperation() - { - return $this->hasOneof(4); - } - - /** - * The HTTP Operation. - * - * Generated from protobuf field .google.cloud.apihub.v1.HttpOperation http_operation = 4; - * @param \Google\Cloud\ApiHub\V1\HttpOperation $var - * @return $this - */ - public function setHttpOperation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\HttpOperation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. Description of the operation behavior. - * For OpenAPI spec, this will map to `operation.description` in the - * spec, in case description is empty, `operation.summary` will be used. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. Description of the operation behavior. - * For OpenAPI spec, this will map to `operation.description` in the - * spec, in case description is empty, `operation.summary` will be used. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Additional external documentation for this operation. - * For OpenAPI spec, this will map to `operation.documentation` in the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\Documentation|null - */ - public function getDocumentation() - { - return $this->documentation; - } - - public function hasDocumentation() - { - return isset($this->documentation); - } - - public function clearDocumentation() - { - unset($this->documentation); - } - - /** - * Output only. Additional external documentation for this operation. - * For OpenAPI spec, this will map to `operation.documentation` in the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\Documentation $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Documentation::class); - $this->documentation = $var; - - return $this; - } - - /** - * Output only. For OpenAPI spec, this will be set if `operation.deprecated`is - * marked as `true` in the spec. - * - * Generated from protobuf field bool deprecated = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeprecated() - { - return $this->deprecated; - } - - /** - * Output only. For OpenAPI spec, this will be set if `operation.deprecated`is - * marked as `true` in the spec. - * - * Generated from protobuf field bool deprecated = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeprecated($var) - { - GPBUtil::checkBool($var); - $this->deprecated = $var; - - return $this; - } - - /** - * @return string - */ - public function getOperation() - { - return $this->whichOneof("operation"); - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OperationMetadata.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OperationMetadata.php deleted file mode 100644 index 1b7aaa916a96..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.apihub.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Owner.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Owner.php deleted file mode 100644 index 1060b3a91b71..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Owner.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.apihub.v1.Owner - */ -class Owner extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The name of the owner. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. The email of the owner. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Optional. The name of the owner. - * @type string $email - * Required. The email of the owner. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The name of the owner. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The name of the owner. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The email of the owner. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Required. The email of the owner. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Path.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Path.php deleted file mode 100644 index 99c4db120531..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Path.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.apihub.v1.Path - */ -class Path extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Complete path relative to server endpoint. - * - * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $path = ''; - /** - * Output only. A short description for the path applicable to all operations. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * Output only. Complete path relative to server endpoint. - * @type string $description - * Output only. A short description for the path applicable to all operations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Complete path relative to server endpoint. - * - * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Output only. Complete path relative to server endpoint. - * - * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Output only. A short description for the path applicable to all operations. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. A short description for the path applicable to all operations. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Plugin.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Plugin.php deleted file mode 100644 index d45734079055..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Plugin.php +++ /dev/null @@ -1,253 +0,0 @@ -google.cloud.apihub.v1.Plugin - */ -class Plugin extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the plugin. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The display name of the plugin. Max length is 50 characters - * (Unicode code points). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The type of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-plugin-type` - * attribute. - * The number of allowed values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = null; - /** - * Optional. The plugin description. Max length is 2000 characters (Unicode - * code points). - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Represents the state of the plugin. - * - * Generated from protobuf field .google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the plugin. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}` - * @type string $display_name - * Required. The display name of the plugin. Max length is 50 characters - * (Unicode code points). - * @type \Google\Cloud\ApiHub\V1\AttributeValues $type - * Required. The type of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-plugin-type` - * attribute. - * The number of allowed values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type string $description - * Optional. The plugin description. Max length is 2000 characters (Unicode - * code points). - * @type int $state - * Output only. Represents the state of the plugin. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\PluginService::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the plugin. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the plugin. - * Format: `projects/{project}/locations/{location}/plugins/{plugin}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the plugin. Max length is 50 characters - * (Unicode code points). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the plugin. Max length is 50 characters - * (Unicode code points). - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The type of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-plugin-type` - * attribute. - * The number of allowed values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getType() - { - return $this->type; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * Required. The type of the API. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-plugin-type` - * attribute. - * The number of allowed values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The plugin description. Max length is 2000 characters (Unicode - * code points). - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The plugin description. Max length is 2000 characters (Unicode - * code points). - * - * 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; - } - - /** - * Output only. Represents the state of the plugin. - * - * Generated from protobuf field .google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Represents the state of the plugin. - * - * Generated from protobuf field .google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Plugin\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Plugin/State.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Plugin/State.php deleted file mode 100644 index 163dcbc2e86f..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Plugin/State.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.apihub.v1.Plugin.State - */ -class State -{ - /** - * The default value. This value is used if the state is omitted. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The plugin is enabled. - * - * Generated from protobuf enum ENABLED = 1; - */ - const ENABLED = 1; - /** - * The plugin is disabled. - * - * Generated from protobuf enum DISABLED = 2; - */ - const DISABLED = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ENABLED => 'ENABLED', - self::DISABLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\ApiHub\V1\Plugin_State::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Point.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Point.php deleted file mode 100644 index 451b4271f157..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Point.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.apihub.v1.Point - */ -class Point extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Line number (zero-indexed). - * - * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $line = 0; - /** - * Required. Character position within the line (zero-indexed). - * - * Generated from protobuf field int32 character = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $character = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $line - * Required. Line number (zero-indexed). - * @type int $character - * Required. Character position within the line (zero-indexed). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. Line number (zero-indexed). - * - * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLine() - { - return $this->line; - } - - /** - * Required. Line number (zero-indexed). - * - * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLine($var) - { - GPBUtil::checkInt32($var); - $this->line = $var; - - return $this; - } - - /** - * Required. Character position within the line (zero-indexed). - * - * Generated from protobuf field int32 character = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getCharacter() - { - return $this->character; - } - - /** - * Required. Character position within the line (zero-indexed). - * - * Generated from protobuf field int32 character = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setCharacter($var) - { - GPBUtil::checkInt32($var); - $this->character = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Range.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Range.php deleted file mode 100644 index 0877904e0067..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Range.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.apihub.v1.Range - */ -class Range extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Start of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Point start = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $start = null; - /** - * Required. End of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Point end = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $end = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Point $start - * Required. Start of the issue. - * @type \Google\Cloud\ApiHub\V1\Point $end - * Required. End of the issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. Start of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Point start = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Point|null - */ - public function getStart() - { - return $this->start; - } - - public function hasStart() - { - return isset($this->start); - } - - public function clearStart() - { - unset($this->start); - } - - /** - * Required. Start of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Point start = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Point $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Point::class); - $this->start = $var; - - return $this; - } - - /** - * Required. End of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Point end = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Point|null - */ - public function getEnd() - { - return $this->end; - } - - public function hasEnd() - { - return isset($this->end); - } - - public function clearEnd() - { - unset($this->end); - } - - /** - * Required. End of the issue. - * - * Generated from protobuf field .google.cloud.apihub.v1.Point end = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Point $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Point::class); - $this->end = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/RuntimeProjectAttachment.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/RuntimeProjectAttachment.php deleted file mode 100644 index 5f8830ee55b5..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/RuntimeProjectAttachment.php +++ /dev/null @@ -1,164 +0,0 @@ -google.cloud.apihub.v1.RuntimeProjectAttachment - */ -class RuntimeProjectAttachment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of a runtime project attachment. Format: - * "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * - * Generated from protobuf field string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $runtime_project = ''; - /** - * Output only. Create time. - * - * 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 - * Identifier. The resource name of a runtime project attachment. Format: - * "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}". - * @type string $runtime_project - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\RuntimeProjectAttachmentService::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of a runtime project attachment. Format: - * "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of a runtime project attachment. Format: - * "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * - * Generated from protobuf field string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getRuntimeProject() - { - return $this->runtime_project; - } - - /** - * Required. Immutable. Google cloud project name in the format: - * "projects/abc" or "projects/123". As input, project name with either - * project id or number are accepted. As output, this field will contain - * project number. - * - * Generated from protobuf field string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRuntimeProject($var) - { - GPBUtil::checkString($var, True); - $this->runtime_project = $var; - - return $this; - } - - /** - * Output only. Create time. - * - * 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. Create time. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Schema.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Schema.php deleted file mode 100644 index 37b6d3b260c0..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Schema.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.apihub.v1.Schema - */ -class Schema extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The display name of the schema. - * This will map to the name of the schema in the spec. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The raw value of the schema definition corresponding to the - * schema name in the spec. - * - * Generated from protobuf field bytes raw_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $raw_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Output only. The display name of the schema. - * This will map to the name of the schema in the spec. - * @type string $raw_value - * Output only. The raw value of the schema definition corresponding to the - * schema name in the spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The display name of the schema. - * This will map to the name of the schema in the spec. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The display name of the schema. - * This will map to the name of the schema in the spec. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The raw value of the schema definition corresponding to the - * schema name in the spec. - * - * Generated from protobuf field bytes raw_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRawValue() - { - return $this->raw_value; - } - - /** - * Output only. The raw value of the schema definition corresponding to the - * schema name in the spec. - * - * Generated from protobuf field bytes raw_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRawValue($var) - { - GPBUtil::checkString($var, False); - $this->raw_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResourcesRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResourcesRequest.php deleted file mode 100644 index 5117b9c06254..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResourcesRequest.php +++ /dev/null @@ -1,336 +0,0 @@ -google.cloud.apihub.v1.SearchResourcesRequest - */ -class SearchResourcesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the location which will be of the type - * `projects/{project_id}/locations/{location_id}`. This field is used to - * identify the instance of API-Hub in which resources should be searched. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - /** - * Required. The free text search query. This query can contain keywords which - * could be related to any detail of the API-Hub resources such display names, - * descriptions, attributes etc. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Optional. An expression that filters the list of search results. - * A filter expression consists of a field name, a comparison operator, - * and a value for filtering. The value must be a string, a number, or a - * boolean. The comparison operator must be `=`. Filters are not case - * sensitive. - * The following field names are eligible for filtering: - * * `resource_type` - The type of resource in the search results. - * Must be one of the following: `Api`, `ApiOperation`, `Deployment`, - * `Definition`, `Spec` or `Version`. This field can only be specified once - * in the filter. - * Here are is an example: - * * `resource_type = Api` - The resource_type is _Api_. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of search results to return. The service may - * return fewer than this value. If unspecified at most 10 search results will - * be returned. If value is negative then `INVALID_ARGUMENT` error is - * returned. The maximum value is 25; values above 25 will be coerced to 25. - * While paginating, you can specify a new page size parameter for each page - * of search results to be listed. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [SearchResources][SearchResources] - * call. Specify this parameter to retrieve the next page of transactions. - * When paginating, you must specify the `page_token` parameter and all the - * other parameters except - * [page_size][google.cloud.apihub.v1.SearchResourcesRequest.page_size] - * should be specified with the same value which was used in the previous - * call. If the other fields are set with a different value than the previous - * call then `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $location Required. The resource name of the location which will be of the type - * `projects/{project_id}/locations/{location_id}`. This field is used to - * identify the instance of API-Hub in which resources should be searched. Please see - * {@see ApiHubClient::locationName()} for help formatting this field. - * @param string $query Required. The free text search query. This query can contain keywords which - * could be related to any detail of the API-Hub resources such display names, - * descriptions, attributes etc. - * - * @return \Google\Cloud\ApiHub\V1\SearchResourcesRequest - * - * @experimental - */ - public static function build(string $location, string $query): self - { - return (new self()) - ->setLocation($location) - ->setQuery($query); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Required. The resource name of the location which will be of the type - * `projects/{project_id}/locations/{location_id}`. This field is used to - * identify the instance of API-Hub in which resources should be searched. - * @type string $query - * Required. The free text search query. This query can contain keywords which - * could be related to any detail of the API-Hub resources such display names, - * descriptions, attributes etc. - * @type string $filter - * Optional. An expression that filters the list of search results. - * A filter expression consists of a field name, a comparison operator, - * and a value for filtering. The value must be a string, a number, or a - * boolean. The comparison operator must be `=`. Filters are not case - * sensitive. - * The following field names are eligible for filtering: - * * `resource_type` - The type of resource in the search results. - * Must be one of the following: `Api`, `ApiOperation`, `Deployment`, - * `Definition`, `Spec` or `Version`. This field can only be specified once - * in the filter. - * Here are is an example: - * * `resource_type = Api` - The resource_type is _Api_. - * @type int $page_size - * Optional. The maximum number of search results to return. The service may - * return fewer than this value. If unspecified at most 10 search results will - * be returned. If value is negative then `INVALID_ARGUMENT` error is - * returned. The maximum value is 25; values above 25 will be coerced to 25. - * While paginating, you can specify a new page size parameter for each page - * of search results to be listed. - * @type string $page_token - * Optional. A page token, received from a previous - * [SearchResources][SearchResources] - * call. Specify this parameter to retrieve the next page of transactions. - * When paginating, you must specify the `page_token` parameter and all the - * other parameters except - * [page_size][google.cloud.apihub.v1.SearchResourcesRequest.page_size] - * should be specified with the same value which was used in the previous - * call. If the other fields are set with a different value than the previous - * call then `INVALID_ARGUMENT` error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the location which will be of the type - * `projects/{project_id}/locations/{location_id}`. This field is used to - * identify the instance of API-Hub in which resources should be searched. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. The resource name of the location which will be of the type - * `projects/{project_id}/locations/{location_id}`. This field is used to - * identify the instance of API-Hub in which resources should be searched. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Required. The free text search query. This query can contain keywords which - * could be related to any detail of the API-Hub resources such display names, - * descriptions, attributes etc. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. The free text search query. This query can contain keywords which - * could be related to any detail of the API-Hub resources such display names, - * descriptions, attributes etc. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. An expression that filters the list of search results. - * A filter expression consists of a field name, a comparison operator, - * and a value for filtering. The value must be a string, a number, or a - * boolean. The comparison operator must be `=`. Filters are not case - * sensitive. - * The following field names are eligible for filtering: - * * `resource_type` - The type of resource in the search results. - * Must be one of the following: `Api`, `ApiOperation`, `Deployment`, - * `Definition`, `Spec` or `Version`. This field can only be specified once - * in the filter. - * Here are is an example: - * * `resource_type = Api` - The resource_type is _Api_. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression that filters the list of search results. - * A filter expression consists of a field name, a comparison operator, - * and a value for filtering. The value must be a string, a number, or a - * boolean. The comparison operator must be `=`. Filters are not case - * sensitive. - * The following field names are eligible for filtering: - * * `resource_type` - The type of resource in the search results. - * Must be one of the following: `Api`, `ApiOperation`, `Deployment`, - * `Definition`, `Spec` or `Version`. This field can only be specified once - * in the filter. - * Here are is an example: - * * `resource_type = Api` - The resource_type is _Api_. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of search results to return. The service may - * return fewer than this value. If unspecified at most 10 search results will - * be returned. If value is negative then `INVALID_ARGUMENT` error is - * returned. The maximum value is 25; values above 25 will be coerced to 25. - * While paginating, you can specify a new page size parameter for each page - * of search results to be listed. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of search results to return. The service may - * return fewer than this value. If unspecified at most 10 search results will - * be returned. If value is negative then `INVALID_ARGUMENT` error is - * returned. The maximum value is 25; values above 25 will be coerced to 25. - * While paginating, you can specify a new page size parameter for each page - * of search results to be listed. - * - * Generated from protobuf field int32 page_size = 4 [(.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 - * [SearchResources][SearchResources] - * call. Specify this parameter to retrieve the next page of transactions. - * When paginating, you must specify the `page_token` parameter and all the - * other parameters except - * [page_size][google.cloud.apihub.v1.SearchResourcesRequest.page_size] - * should be specified with the same value which was used in the previous - * call. If the other fields are set with a different value than the previous - * call then `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * [SearchResources][SearchResources] - * call. Specify this parameter to retrieve the next page of transactions. - * When paginating, you must specify the `page_token` parameter and all the - * other parameters except - * [page_size][google.cloud.apihub.v1.SearchResourcesRequest.page_size] - * should be specified with the same value which was used in the previous - * call. If the other fields are set with a different value than the previous - * call then `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 5 [(.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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResourcesResponse.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResourcesResponse.php deleted file mode 100644 index 7df45bfa6246..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResourcesResponse.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.apihub.v1.SearchResourcesResponse - */ -class SearchResourcesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of search results according to the filter and search query specified. - * The order of search results represents the ranking. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.SearchResult search_results = 1; - */ - private $search_results; - /** - * Pass this token in the - * [SearchResourcesRequest][google.cloud.apihub.v1.SearchResourcesRequest] - * to continue to list results. If all results have been returned, this field - * is an empty string or not present in the response. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiHub\V1\SearchResult>|\Google\Protobuf\Internal\RepeatedField $search_results - * List of search results according to the filter and search query specified. - * The order of search results represents the ranking. - * @type string $next_page_token - * Pass this token in the - * [SearchResourcesRequest][google.cloud.apihub.v1.SearchResourcesRequest] - * to continue to list results. If all results have been returned, this field - * is an empty string or not present in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * List of search results according to the filter and search query specified. - * The order of search results represents the ranking. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.SearchResult search_results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSearchResults() - { - return $this->search_results; - } - - /** - * List of search results according to the filter and search query specified. - * The order of search results represents the ranking. - * - * Generated from protobuf field repeated .google.cloud.apihub.v1.SearchResult search_results = 1; - * @param array<\Google\Cloud\ApiHub\V1\SearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSearchResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\SearchResult::class); - $this->search_results = $arr; - - return $this; - } - - /** - * Pass this token in the - * [SearchResourcesRequest][google.cloud.apihub.v1.SearchResourcesRequest] - * to continue to list results. If all results have been returned, this field - * is an empty string or not present in the response. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Pass this token in the - * [SearchResourcesRequest][google.cloud.apihub.v1.SearchResourcesRequest] - * to continue to list results. If all results have been returned, this field - * is an empty string or not present in the response. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResult.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResult.php deleted file mode 100644 index d25d6e6f2107..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SearchResult.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.apihub.v1.SearchResult - */ -class SearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * This represents the ApiHubResource. - * Note: Only selected fields of the resources are populated in response. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubResource resource = 1; - */ - protected $resource = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\ApiHubResource $resource - * This represents the ApiHubResource. - * Note: Only selected fields of the resources are populated in response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * This represents the ApiHubResource. - * Note: Only selected fields of the resources are populated in response. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubResource resource = 1; - * @return \Google\Cloud\ApiHub\V1\ApiHubResource|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * This represents the ApiHubResource. - * Note: Only selected fields of the resources are populated in response. - * - * Generated from protobuf field .google.cloud.apihub.v1.ApiHubResource resource = 1; - * @param \Google\Cloud\ApiHub\V1\ApiHubResource $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\ApiHubResource::class); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Severity.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Severity.php deleted file mode 100644 index 26eecb637eb3..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Severity.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.apihub.v1.Severity - */ -class Severity -{ - /** - * Severity unspecified. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * Severity error. - * - * Generated from protobuf enum SEVERITY_ERROR = 1; - */ - const SEVERITY_ERROR = 1; - /** - * Severity warning. - * - * Generated from protobuf enum SEVERITY_WARNING = 2; - */ - const SEVERITY_WARNING = 2; - /** - * Severity info. - * - * Generated from protobuf enum SEVERITY_INFO = 3; - */ - const SEVERITY_INFO = 3; - /** - * Severity hint. - * - * Generated from protobuf enum SEVERITY_HINT = 4; - */ - const SEVERITY_HINT = 4; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::SEVERITY_ERROR => 'SEVERITY_ERROR', - self::SEVERITY_WARNING => 'SEVERITY_WARNING', - self::SEVERITY_INFO => 'SEVERITY_INFO', - self::SEVERITY_HINT => 'SEVERITY_HINT', - ]; - - 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Spec.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Spec.php deleted file mode 100644 index fb9db58468cf..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Spec.php +++ /dev/null @@ -1,581 +0,0 @@ -google.cloud.apihub.v1.Spec - */ -class Spec extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The display name of the spec. - * This can contain the file name of the spec. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Required. The type of spec. - * The value should be one of the allowed values defined for - * `projects/{project}/locations/{location}/attributes/system-spec-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. - * Note, this field is mandatory if content is provided. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $spec_type = null; - /** - * Optional. Input only. The contents of the uploaded spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $contents = null; - /** - * Output only. Details parsed from the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $details = null; - /** - * Optional. The URI of the spec source in case file is uploaded - * from an external version control system. - * - * Generated from protobuf field string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $source_uri = ''; - /** - * Output only. The time at which the spec was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the spec was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The lint response for the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $lint_response = null; - /** - * Optional. The list of user defined attributes associated with the spec. - * The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - /** - * Optional. The documentation of the spec. - * For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI - * spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $documentation = null; - /** - * Optional. Input only. Enum specifying the parsing mode for OpenAPI - * Specification (OAS) parsing. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $parsing_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * @type string $display_name - * Required. The display name of the spec. - * This can contain the file name of the spec. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $spec_type - * Required. The type of spec. - * The value should be one of the allowed values defined for - * `projects/{project}/locations/{location}/attributes/system-spec-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. - * Note, this field is mandatory if content is provided. - * @type \Google\Cloud\ApiHub\V1\SpecContents $contents - * Optional. Input only. The contents of the uploaded spec. - * @type \Google\Cloud\ApiHub\V1\SpecDetails $details - * Output only. Details parsed from the spec. - * @type string $source_uri - * Optional. The URI of the spec source in case file is uploaded - * from an external version control system. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the spec was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the spec was last updated. - * @type \Google\Cloud\ApiHub\V1\LintResponse $lint_response - * Optional. The lint response for the spec. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the spec. - * The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * @type \Google\Cloud\ApiHub\V1\Documentation $documentation - * Optional. The documentation of the spec. - * For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI - * spec. - * @type int $parsing_mode - * Optional. Input only. Enum specifying the parsing mode for OpenAPI - * Specification (OAS) parsing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the spec. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the spec. - * This can contain the file name of the spec. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the spec. - * This can contain the file name of the spec. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. The type of spec. - * The value should be one of the allowed values defined for - * `projects/{project}/locations/{location}/attributes/system-spec-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. - * Note, this field is mandatory if content is provided. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getSpecType() - { - return $this->spec_type; - } - - public function hasSpecType() - { - return isset($this->spec_type); - } - - public function clearSpecType() - { - unset($this->spec_type); - } - - /** - * Required. The type of spec. - * The value should be one of the allowed values defined for - * `projects/{project}/locations/{location}/attributes/system-spec-type` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. - * Note, this field is mandatory if content is provided. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues spec_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setSpecType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->spec_type = $var; - - return $this; - } - - /** - * Optional. Input only. The contents of the uploaded spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\SpecContents|null - */ - public function getContents() - { - return $this->contents; - } - - public function hasContents() - { - return isset($this->contents); - } - - public function clearContents() - { - unset($this->contents); - } - - /** - * Optional. Input only. The contents of the uploaded spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.SpecContents contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\SpecContents $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\SpecContents::class); - $this->contents = $var; - - return $this; - } - - /** - * Output only. Details parsed from the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\SpecDetails|null - */ - public function getDetails() - { - return $this->details; - } - - public function hasDetails() - { - return isset($this->details); - } - - public function clearDetails() - { - unset($this->details); - } - - /** - * Output only. Details parsed from the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.SpecDetails details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\SpecDetails $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\SpecDetails::class); - $this->details = $var; - - return $this; - } - - /** - * Optional. The URI of the spec source in case file is uploaded - * from an external version control system. - * - * Generated from protobuf field string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSourceUri() - { - return $this->source_uri; - } - - /** - * Optional. The URI of the spec source in case file is uploaded - * from an external version control system. - * - * Generated from protobuf field string source_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSourceUri($var) - { - GPBUtil::checkString($var, True); - $this->source_uri = $var; - - return $this; - } - - /** - * Output only. The time at which the spec was 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. The time at which the spec was 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. The time at which the spec 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. The time at which the spec 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; - } - - /** - * Optional. The lint response for the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\LintResponse|null - */ - public function getLintResponse() - { - return $this->lint_response; - } - - public function hasLintResponse() - { - return isset($this->lint_response); - } - - public function clearLintResponse() - { - unset($this->lint_response); - } - - /** - * Optional. The lint response for the spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.LintResponse lint_response = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\LintResponse $var - * @return $this - */ - public function setLintResponse($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\LintResponse::class); - $this->lint_response = $var; - - return $this; - } - - /** - * Optional. The list of user defined attributes associated with the spec. - * The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the spec. - * The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Optional. The documentation of the spec. - * For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI - * spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\Documentation|null - */ - public function getDocumentation() - { - return $this->documentation; - } - - public function hasDocumentation() - { - return isset($this->documentation); - } - - public function clearDocumentation() - { - unset($this->documentation); - } - - /** - * Optional. The documentation of the spec. - * For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI - * spec. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\Documentation $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Documentation::class); - $this->documentation = $var; - - return $this; - } - - /** - * Optional. Input only. Enum specifying the parsing mode for OpenAPI - * Specification (OAS) parsing. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @return int - */ - public function getParsingMode() - { - return $this->parsing_mode; - } - - /** - * Optional. Input only. Enum specifying the parsing mode for OpenAPI - * Specification (OAS) parsing. - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec.ParsingMode parsing_mode = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setParsingMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Spec\ParsingMode::class); - $this->parsing_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Spec/ParsingMode.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Spec/ParsingMode.php deleted file mode 100644 index e232690a846b..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Spec/ParsingMode.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.apihub.v1.Spec.ParsingMode - */ -class ParsingMode -{ - /** - * Defaults to `RELAXED`. - * - * Generated from protobuf enum PARSING_MODE_UNSPECIFIED = 0; - */ - const PARSING_MODE_UNSPECIFIED = 0; - /** - * Parsing of the Spec on create and update is relaxed, meaning that - * parsing errors the spec contents will not fail the API call. - * - * Generated from protobuf enum RELAXED = 1; - */ - const RELAXED = 1; - /** - * Parsing of the Spec on create and update is strict, meaning that - * parsing errors in the spec contents will fail the API call. - * - * Generated from protobuf enum STRICT = 2; - */ - const STRICT = 2; - - private static $valueToName = [ - self::PARSING_MODE_UNSPECIFIED => 'PARSING_MODE_UNSPECIFIED', - self::RELAXED => 'RELAXED', - self::STRICT => 'STRICT', - ]; - - 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(ParsingMode::class, \Google\Cloud\ApiHub\V1\Spec_ParsingMode::class); - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SpecContents.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SpecContents.php deleted file mode 100644 index f1e1305f1784..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SpecContents.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apihub.v1.SpecContents - */ -class SpecContents extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The contents of the spec. - * - * Generated from protobuf field bytes contents = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $contents = ''; - /** - * Required. The mime type of the content for example application/json, - * application/yaml, application/wsdl etc. - * - * Generated from protobuf field string mime_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $mime_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * Required. The contents of the spec. - * @type string $mime_type - * Required. The mime type of the content for example application/json, - * application/yaml, application/wsdl etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Required. The contents of the spec. - * - * Generated from protobuf field bytes contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Required. The contents of the spec. - * - * Generated from protobuf field bytes contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - - /** - * Required. The mime type of the content for example application/json, - * application/yaml, application/wsdl etc. - * - * Generated from protobuf field string mime_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * Required. The mime type of the content for example application/json, - * application/yaml, application/wsdl etc. - * - * Generated from protobuf field string mime_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SpecDetails.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SpecDetails.php deleted file mode 100644 index 1834710fa589..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/SpecDetails.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.apihub.v1.SpecDetails - */ -class SpecDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The description of the spec. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\OpenApiSpecDetails $open_api_spec_details - * Output only. Additional details apart from `OperationDetails` parsed from - * an OpenAPI spec. The OperationDetails parsed from the spec can be - * obtained by using - * [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] - * method. - * @type string $description - * Output only. The description of the spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Additional details apart from `OperationDetails` parsed from - * an OpenAPI spec. The OperationDetails parsed from the spec can be - * obtained by using - * [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] - * method. - * - * Generated from protobuf field .google.cloud.apihub.v1.OpenApiSpecDetails open_api_spec_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\OpenApiSpecDetails|null - */ - public function getOpenApiSpecDetails() - { - return $this->readOneof(2); - } - - public function hasOpenApiSpecDetails() - { - return $this->hasOneof(2); - } - - /** - * Output only. Additional details apart from `OperationDetails` parsed from - * an OpenAPI spec. The OperationDetails parsed from the spec can be - * obtained by using - * [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] - * method. - * - * Generated from protobuf field .google.cloud.apihub.v1.OpenApiSpecDetails open_api_spec_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\OpenApiSpecDetails $var - * @return $this - */ - public function setOpenApiSpecDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\OpenApiSpecDetails::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Output only. The description of the spec. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. The description of the spec. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/StyleGuide.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/StyleGuide.php deleted file mode 100644 index b131d54895a0..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/StyleGuide.php +++ /dev/null @@ -1,154 +0,0 @@ -google.cloud.apihub.v1.StyleGuide - */ -class StyleGuide extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the style guide. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Target linter for the style guide. - * - * Generated from protobuf field .google.cloud.apihub.v1.Linter linter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $linter = 0; - /** - * Required. Input only. The contents of the uploaded style guide. - * - * Generated from protobuf field .google.cloud.apihub.v1.StyleGuideContents contents = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $contents = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the style guide. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide` - * @type int $linter - * Required. Target linter for the style guide. - * @type \Google\Cloud\ApiHub\V1\StyleGuideContents $contents - * Required. Input only. The contents of the uploaded style guide. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\LintingService::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the style guide. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the style guide. - * Format: - * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Target linter for the style guide. - * - * Generated from protobuf field .google.cloud.apihub.v1.Linter linter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLinter() - { - return $this->linter; - } - - /** - * Required. Target linter for the style guide. - * - * Generated from protobuf field .google.cloud.apihub.v1.Linter linter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLinter($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApiHub\V1\Linter::class); - $this->linter = $var; - - return $this; - } - - /** - * Required. Input only. The contents of the uploaded style guide. - * - * Generated from protobuf field .google.cloud.apihub.v1.StyleGuideContents contents = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\ApiHub\V1\StyleGuideContents|null - */ - public function getContents() - { - return $this->contents; - } - - public function hasContents() - { - return isset($this->contents); - } - - public function clearContents() - { - unset($this->contents); - } - - /** - * Required. Input only. The contents of the uploaded style guide. - * - * Generated from protobuf field .google.cloud.apihub.v1.StyleGuideContents contents = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\ApiHub\V1\StyleGuideContents $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\StyleGuideContents::class); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/StyleGuideContents.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/StyleGuideContents.php deleted file mode 100644 index 18a4af35d919..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/StyleGuideContents.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.apihub.v1.StyleGuideContents - */ -class StyleGuideContents extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The contents of the style guide. - * - * Generated from protobuf field bytes contents = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $contents = ''; - /** - * Required. The mime type of the content. - * - * Generated from protobuf field string mime_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $mime_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * Required. The contents of the style guide. - * @type string $mime_type - * Required. The mime type of the content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\LintingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The contents of the style guide. - * - * Generated from protobuf field bytes contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Required. The contents of the style guide. - * - * Generated from protobuf field bytes contents = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - - /** - * Required. The mime type of the content. - * - * Generated from protobuf field string mime_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * Required. The mime type of the content. - * - * Generated from protobuf field string mime_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateApiRequest.php deleted file mode 100644 index 28018faf3bc9..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateApiRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.apihub.v1.UpdateApiRequest - */ -class UpdateApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The API resource to update. - * The API resource's `name` field is used to identify the API resource to - * update. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\Api $api Required. The API resource to update. - * - * The API resource's `name` field is used to identify the API resource to - * update. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateApiRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\Api $api, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApi($api) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Api $api - * Required. The API resource to update. - * The API resource's `name` field is used to identify the API resource to - * update. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The API resource to update. - * The API resource's `name` field is used to identify the API resource to - * update. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Required. The API resource to update. - * The API resource's `name` field is used to identify the API resource to - * update. - * Format: `projects/{project}/locations/{location}/apis/{api}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Api::class); - $this->api = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateAttributeRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateAttributeRequest.php deleted file mode 100644 index 1032431bfde9..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateAttributeRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.apihub.v1.UpdateAttributeRequest - */ -class UpdateAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The attribute to update. - * The attribute's `name` field is used to identify the attribute to update. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attribute = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\Attribute $attribute Required. The attribute to update. - * - * The attribute's `name` field is used to identify the attribute to update. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateAttributeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\Attribute $attribute, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAttribute($attribute) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Attribute $attribute - * Required. The attribute to update. - * The attribute's `name` field is used to identify the attribute to update. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The attribute to update. - * The attribute's `name` field is used to identify the attribute to update. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Attribute|null - */ - public function getAttribute() - { - return $this->attribute; - } - - public function hasAttribute() - { - return isset($this->attribute); - } - - public function clearAttribute() - { - unset($this->attribute); - } - - /** - * Required. The attribute to update. - * The attribute's `name` field is used to identify the attribute to update. - * Format: - * `projects/{project}/locations/{location}/attributes/{attribute}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Attribute attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Attribute $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Attribute::class); - $this->attribute = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateDependencyRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateDependencyRequest.php deleted file mode 100644 index 6fe22f64c7f8..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateDependencyRequest.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.apihub.v1.UpdateDependencyRequest - */ -class UpdateDependencyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dependency resource to update. - * The dependency's `name` field is used to identify the dependency to update. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency dependency = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dependency = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\Dependency $dependency Required. The dependency resource to update. - * - * The dependency's `name` field is used to identify the dependency to update. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateDependencyRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\Dependency $dependency, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDependency($dependency) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Dependency $dependency - * Required. The dependency resource to update. - * The dependency's `name` field is used to identify the dependency to update. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dependency resource to update. - * The dependency's `name` field is used to identify the dependency to update. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency dependency = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Dependency|null - */ - public function getDependency() - { - return $this->dependency; - } - - public function hasDependency() - { - return isset($this->dependency); - } - - public function clearDependency() - { - unset($this->dependency); - } - - /** - * Required. The dependency resource to update. - * The dependency's `name` field is used to identify the dependency to update. - * Format: `projects/{project}/locations/{location}/dependencies/{dependency}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Dependency dependency = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Dependency $var - * @return $this - */ - public function setDependency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Dependency::class); - $this->dependency = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateDeploymentRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateDeploymentRequest.php deleted file mode 100644 index e600c5b705bb..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateDeploymentRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.apihub.v1.UpdateDeploymentRequest - */ -class UpdateDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The deployment resource to update. - * The deployment resource's `name` field is used to identify the deployment - * resource to update. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deployment = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\Deployment $deployment Required. The deployment resource to update. - * - * The deployment resource's `name` field is used to identify the deployment - * resource to update. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateDeploymentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\Deployment $deployment, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDeployment($deployment) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Deployment $deployment - * Required. The deployment resource to update. - * The deployment resource's `name` field is used to identify the deployment - * resource to update. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The deployment resource to update. - * The deployment resource's `name` field is used to identify the deployment - * resource to update. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Deployment|null - */ - public function getDeployment() - { - return $this->deployment; - } - - public function hasDeployment() - { - return isset($this->deployment); - } - - public function clearDeployment() - { - unset($this->deployment); - } - - /** - * Required. The deployment resource to update. - * The deployment resource's `name` field is used to identify the deployment - * resource to update. - * Format: `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Deployment $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Deployment::class); - $this->deployment = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateExternalApiRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateExternalApiRequest.php deleted file mode 100644 index 55b824378f7a..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateExternalApiRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.apihub.v1.UpdateExternalApiRequest - */ -class UpdateExternalApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The External API resource to update. - * The External API resource's `name` field is used to identify the External - * API resource to update. Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * Generated from protobuf field .google.cloud.apihub.v1.ExternalApi external_api = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $external_api = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\ExternalApi $externalApi Required. The External API resource to update. - * - * The External API resource's `name` field is used to identify the External - * API resource to update. Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateExternalApiRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\ExternalApi $externalApi, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setExternalApi($externalApi) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\ExternalApi $external_api - * Required. The External API resource to update. - * The External API resource's `name` field is used to identify the External - * API resource to update. Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The External API resource to update. - * The External API resource's `name` field is used to identify the External - * API resource to update. Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * Generated from protobuf field .google.cloud.apihub.v1.ExternalApi external_api = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\ExternalApi|null - */ - public function getExternalApi() - { - return $this->external_api; - } - - public function hasExternalApi() - { - return isset($this->external_api); - } - - public function clearExternalApi() - { - unset($this->external_api); - } - - /** - * Required. The External API resource to update. - * The External API resource's `name` field is used to identify the External - * API resource to update. Format: - * `projects/{project}/locations/{location}/externalApis/{externalApi}` - * - * Generated from protobuf field .google.cloud.apihub.v1.ExternalApi external_api = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\ExternalApi $var - * @return $this - */ - public function setExternalApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\ExternalApi::class); - $this->external_api = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateSpecRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateSpecRequest.php deleted file mode 100644 index 633c759a524e..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateSpecRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.apihub.v1.UpdateSpecRequest - */ -class UpdateSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The spec to update. - * The spec's `name` field is used to identify the spec to - * update. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $spec = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\Spec $spec Required. The spec to update. - * - * The spec's `name` field is used to identify the spec to - * update. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateSpecRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\Spec $spec, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpec($spec) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Spec $spec - * Required. The spec to update. - * The spec's `name` field is used to identify the spec to - * update. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The spec to update. - * The spec's `name` field is used to identify the spec to - * update. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Spec|null - */ - public function getSpec() - { - return $this->spec; - } - - public function hasSpec() - { - return isset($this->spec); - } - - public function clearSpec() - { - unset($this->spec); - } - - /** - * Required. The spec to update. - * The spec's `name` field is used to identify the spec to - * update. Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Spec $var - * @return $this - */ - public function setSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Spec::class); - $this->spec = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateStyleGuideRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateStyleGuideRequest.php deleted file mode 100644 index 70b87e22d8ad..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateStyleGuideRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.apihub.v1.UpdateStyleGuideRequest - */ -class UpdateStyleGuideRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Style guide resource to update. - * - * Generated from protobuf field .google.cloud.apihub.v1.StyleGuide style_guide = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $style_guide = null; - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\StyleGuide $styleGuide Required. The Style guide resource to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateStyleGuideRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\StyleGuide $styleGuide, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setStyleGuide($styleGuide) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\StyleGuide $style_guide - * Required. The Style guide resource to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\LintingService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Style guide resource to update. - * - * Generated from protobuf field .google.cloud.apihub.v1.StyleGuide style_guide = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\StyleGuide|null - */ - public function getStyleGuide() - { - return $this->style_guide; - } - - public function hasStyleGuide() - { - return isset($this->style_guide); - } - - public function clearStyleGuide() - { - unset($this->style_guide); - } - - /** - * Required. The Style guide resource to update. - * - * Generated from protobuf field .google.cloud.apihub.v1.StyleGuide style_guide = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\StyleGuide $var - * @return $this - */ - public function setStyleGuide($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\StyleGuide::class); - $this->style_guide = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateVersionRequest.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateVersionRequest.php deleted file mode 100644 index e23748248a98..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/UpdateVersionRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.apihub.v1.UpdateVersionRequest - */ -class UpdateVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The API version to update. - * The version's `name` field is used to identify the API version to update. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiHub\V1\Version $version Required. The API version to update. - * - * The version's `name` field is used to identify the API version to update. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\ApiHub\V1\UpdateVersionRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiHub\V1\Version $version, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setVersion($version) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiHub\V1\Version $version - * Required. The API version to update. - * The version's `name` field is used to identify the API version to update. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\ApihubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The API version to update. - * The version's `name` field is used to identify the API version to update. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiHub\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * Required. The API version to update. - * The version's `name` field is used to identify the API version to update. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field .google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiHub\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Version::class); - $this->version = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Version.php b/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Version.php deleted file mode 100644 index 09be1ea1ad25..000000000000 --- a/owl-bot-staging/ApiHub/v1/proto/src/Google/Cloud/ApiHub/V1/Version.php +++ /dev/null @@ -1,776 +0,0 @@ -google.cloud.apihub.v1.Version - */ -class Version extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the version. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The display name of the version. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. The description of the version. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. The documentation of the version. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $documentation = null; - /** - * Output only. The specs associated with this version. - * Note that an API version can be associated with multiple specs. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $specs; - /** - * Output only. The operations contained in the API version. - * These operations will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $api_operations; - /** - * Output only. The definitions contained in the API version. - * These definitions will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * Generated from protobuf field repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - private $definitions; - /** - * Optional. The deployments linked to this API version. - * Note: A particular API version could be deployed to multiple deployments - * (for dev deployment, UAT deployment, etc) - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $deployments; - /** - * Output only. The time at which the version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the version was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The lifecycle of the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-lifecycle` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $lifecycle = null; - /** - * Optional. The compliance associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-compliance` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $compliance = null; - /** - * Optional. The accreditations associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-accreditation` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $accreditation = null; - /** - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - /** - * Optional. The selected deployment for a Version resource. - * This can be used when special handling is needed on client side for a - * particular deployment linked to the version. - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $selected_deployment = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the version. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * @type string $display_name - * Required. The display name of the version. - * @type string $description - * Optional. The description of the version. - * @type \Google\Cloud\ApiHub\V1\Documentation $documentation - * Optional. The documentation of the version. - * @type array|\Google\Protobuf\Internal\RepeatedField $specs - * Output only. The specs associated with this version. - * Note that an API version can be associated with multiple specs. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * @type array|\Google\Protobuf\Internal\RepeatedField $api_operations - * Output only. The operations contained in the API version. - * These operations will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * @type array|\Google\Protobuf\Internal\RepeatedField $definitions - * Output only. The definitions contained in the API version. - * These definitions will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * @type array|\Google\Protobuf\Internal\RepeatedField $deployments - * Optional. The deployments linked to this API version. - * Note: A particular API version could be deployed to multiple deployments - * (for dev deployment, UAT deployment, etc) - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the version was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the version was last updated. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $lifecycle - * Optional. The lifecycle of the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-lifecycle` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $compliance - * Optional. The compliance associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-compliance` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type \Google\Cloud\ApiHub\V1\AttributeValues $accreditation - * Optional. The accreditations associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-accreditation` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * @type string $selected_deployment - * Optional. The selected deployment for a Version resource. - * This can be used when special handling is needed on client side for a - * particular deployment linked to the version. - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apihub\V1\CommonFields::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the version. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the version. - * Format: - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The display name of the version. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the version. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The description of the version. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the version. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The documentation of the version. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\Documentation|null - */ - public function getDocumentation() - { - return $this->documentation; - } - - public function hasDocumentation() - { - return isset($this->documentation); - } - - public function clearDocumentation() - { - unset($this->documentation); - } - - /** - * Optional. The documentation of the version. - * - * Generated from protobuf field .google.cloud.apihub.v1.Documentation documentation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\Documentation $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\Documentation::class); - $this->documentation = $var; - - return $this; - } - - /** - * Output only. The specs associated with this version. - * Note that an API version can be associated with multiple specs. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpecs() - { - return $this->specs; - } - - /** - * Output only. The specs associated with this version. - * Note that an API version can be associated with multiple specs. - * Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` - * - * Generated from protobuf field repeated string specs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->specs = $arr; - - return $this; - } - - /** - * Output only. The operations contained in the API version. - * These operations will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiOperations() - { - return $this->api_operations; - } - - /** - * Output only. The operations contained in the API version. - * These operations will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` - * - * Generated from protobuf field repeated string api_operations = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->api_operations = $arr; - - return $this; - } - - /** - * Output only. The definitions contained in the API version. - * These definitions will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * Generated from protobuf field repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDefinitions() - { - return $this->definitions; - } - - /** - * Output only. The definitions contained in the API version. - * These definitions will be added to the version when a new spec is - * added or when an existing spec is updated. Format is - * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` - * - * Generated from protobuf field repeated string definitions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDefinitions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->definitions = $arr; - - return $this; - } - - /** - * Optional. The deployments linked to this API version. - * Note: A particular API version could be deployed to multiple deployments - * (for dev deployment, UAT deployment, etc) - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeployments() - { - return $this->deployments; - } - - /** - * Optional. The deployments linked to this API version. - * Note: A particular API version could be deployed to multiple deployments - * (for dev deployment, UAT deployment, etc) - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field repeated string deployments = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->deployments = $arr; - - return $this; - } - - /** - * Output only. The time at which the version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.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. The time at which the version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.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. The time at which the version was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.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. The time at which the version was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.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; - } - - /** - * Optional. The lifecycle of the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-lifecycle` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getLifecycle() - { - return $this->lifecycle; - } - - public function hasLifecycle() - { - return isset($this->lifecycle); - } - - public function clearLifecycle() - { - unset($this->lifecycle); - } - - /** - * Optional. The lifecycle of the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-lifecycle` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues lifecycle = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setLifecycle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->lifecycle = $var; - - return $this; - } - - /** - * Optional. The compliance associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-compliance` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getCompliance() - { - return $this->compliance; - } - - public function hasCompliance() - { - return isset($this->compliance); - } - - public function clearCompliance() - { - unset($this->compliance); - } - - /** - * Optional. The compliance associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-compliance` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues compliance = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setCompliance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->compliance = $var; - - return $this; - } - - /** - * Optional. The accreditations associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-accreditation` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ApiHub\V1\AttributeValues|null - */ - public function getAccreditation() - { - return $this->accreditation; - } - - public function hasAccreditation() - { - return isset($this->accreditation); - } - - public function clearAccreditation() - { - unset($this->accreditation); - } - - /** - * Optional. The accreditations associated with the API version. - * This maps to the following system defined attribute: - * `projects/{project}/locations/{location}/attributes/system-accreditation` - * attribute. - * The number of values for this attribute will be based on the - * cardinality of the attribute. The same can be retrieved via GetAttribute - * API. All values should be from the list of allowed values defined for the - * attribute. - * - * Generated from protobuf field .google.cloud.apihub.v1.AttributeValues accreditation = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ApiHub\V1\AttributeValues $var - * @return $this - */ - public function setAccreditation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->accreditation = $var; - - return $this; - } - - /** - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. The list of user defined attributes associated with the Version - * resource. The key is the attribute name. It will be of the format: - * `projects/{project}/locations/{location}/attributes/{attribute}`. - * The value is the attribute values associated with the resource. - * - * Generated from protobuf field map attributes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiHub\V1\AttributeValues::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Optional. The selected deployment for a Version resource. - * This can be used when special handling is needed on client side for a - * particular deployment linked to the version. - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getSelectedDeployment() - { - return $this->selected_deployment; - } - - /** - * Optional. The selected deployment for a Version resource. - * This can be used when special handling is needed on client side for a - * particular deployment linked to the version. - * Format is - * `projects/{project}/locations/{location}/deployments/{deployment}` - * - * Generated from protobuf field string selected_deployment = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSelectedDeployment($var) - { - GPBUtil::checkString($var, True); - $this->selected_deployment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_api.php deleted file mode 100644 index 77b0ea235ec1..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_api.php +++ /dev/null @@ -1,78 +0,0 @@ -setDisplayName($apiDisplayName); - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApi($api); - - // Call the API and handle any network failures. - try { - /** @var Api $response */ - $response = $apiHubClient->createApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - $apiDisplayName = '[DISPLAY_NAME]'; - - create_api_sample($formattedParent, $apiDisplayName); -} -// [END apihub_v1_generated_ApiHub_CreateApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_attribute.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_attribute.php deleted file mode 100644 index 5158a636bbc9..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_attribute.php +++ /dev/null @@ -1,101 +0,0 @@ -setDisplayName($attributeDisplayName) - ->setScope($attributeScope) - ->setDataType($attributeDataType); - $request = (new CreateAttributeRequest()) - ->setParent($formattedParent) - ->setAttribute($attribute); - - // Call the API and handle any network failures. - try { - /** @var Attribute $response */ - $response = $apiHubClient->createAttribute($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - $attributeDisplayName = '[DISPLAY_NAME]'; - $attributeScope = Scope::SCOPE_UNSPECIFIED; - $attributeDataType = DataType::DATA_TYPE_UNSPECIFIED; - - create_attribute_sample( - $formattedParent, - $attributeDisplayName, - $attributeScope, - $attributeDataType - ); -} -// [END apihub_v1_generated_ApiHub_CreateAttribute_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_deployment.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_deployment.php deleted file mode 100644 index 866818406996..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_deployment.php +++ /dev/null @@ -1,102 +0,0 @@ -setDisplayName($deploymentDisplayName) - ->setDeploymentType($deploymentDeploymentType) - ->setResourceUri($deploymentResourceUri) - ->setEndpoints($deploymentEndpoints); - $request = (new CreateDeploymentRequest()) - ->setParent($formattedParent) - ->setDeployment($deployment); - - // Call the API and handle any network failures. - try { - /** @var Deployment $response */ - $response = $apiHubClient->createDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - $deploymentDisplayName = '[DISPLAY_NAME]'; - $deploymentResourceUri = '[RESOURCE_URI]'; - $deploymentEndpointsElement = '[ENDPOINTS]'; - - create_deployment_sample( - $formattedParent, - $deploymentDisplayName, - $deploymentResourceUri, - $deploymentEndpointsElement - ); -} -// [END apihub_v1_generated_ApiHub_CreateDeployment_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_external_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_external_api.php deleted file mode 100644 index 826dcf4e08d2..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_external_api.php +++ /dev/null @@ -1,78 +0,0 @@ -setDisplayName($externalApiDisplayName); - $request = (new CreateExternalApiRequest()) - ->setParent($formattedParent) - ->setExternalApi($externalApi); - - // Call the API and handle any network failures. - try { - /** @var ExternalApi $response */ - $response = $apiHubClient->createExternalApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - $externalApiDisplayName = '[DISPLAY_NAME]'; - - create_external_api_sample($formattedParent, $externalApiDisplayName); -} -// [END apihub_v1_generated_ApiHub_CreateExternalApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_spec.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_spec.php deleted file mode 100644 index 264b9eb369f2..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_spec.php +++ /dev/null @@ -1,102 +0,0 @@ -setDisplayName($specDisplayName) - ->setSpecType($specSpecType); - $request = (new CreateSpecRequest()) - ->setParent($formattedParent) - ->setSpec($spec); - - // Call the API and handle any network failures. - try { - /** @var Spec $response */ - $response = $apiHubClient->createSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $specDisplayName = '[DISPLAY_NAME]'; - - create_spec_sample($formattedParent, $specDisplayName); -} -// [END apihub_v1_generated_ApiHub_CreateSpec_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_version.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_version.php deleted file mode 100644 index cb972641e46c..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/create_version.php +++ /dev/null @@ -1,77 +0,0 @@ -setDisplayName($versionDisplayName); - $request = (new CreateVersionRequest()) - ->setParent($formattedParent) - ->setVersion($version); - - // Call the API and handle any network failures. - try { - /** @var Version $response */ - $response = $apiHubClient->createVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - $versionDisplayName = '[DISPLAY_NAME]'; - - create_version_sample($formattedParent, $versionDisplayName); -} -// [END apihub_v1_generated_ApiHub_CreateVersion_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_api.php deleted file mode 100644 index aa1487076d4a..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_api.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $apiHubClient->deleteApi($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - - delete_api_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_DeleteApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_attribute.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_attribute.php deleted file mode 100644 index 140b338c0109..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_attribute.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $apiHubClient->deleteAttribute($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::attributeName('[PROJECT]', '[LOCATION]', '[ATTRIBUTE]'); - - delete_attribute_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_DeleteAttribute_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_deployment.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_deployment.php deleted file mode 100644 index d3be14ad7332..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_deployment.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $apiHubClient->deleteDeployment($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); - - delete_deployment_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_DeleteDeployment_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_external_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_external_api.php deleted file mode 100644 index 03dc2ebef3c8..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_external_api.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $apiHubClient->deleteExternalApi($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::externalApiName('[PROJECT]', '[LOCATION]', '[EXTERNAL_API]'); - - delete_external_api_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_DeleteExternalApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_spec.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_spec.php deleted file mode 100644 index ea64ebaebdfb..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_spec.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $apiHubClient->deleteSpec($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - - delete_spec_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_DeleteSpec_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_version.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_version.php deleted file mode 100644 index 5913fb158e6a..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/delete_version.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $apiHubClient->deleteVersion($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - - delete_version_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_DeleteVersion_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_api.php deleted file mode 100644 index a1d8fac99647..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_api.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Api $response */ - $response = $apiHubClient->getApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - - get_api_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_api_operation.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_api_operation.php deleted file mode 100644 index f95f65041090..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_api_operation.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiOperation $response */ - $response = $apiHubClient->getApiOperation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::apiOperationName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[OPERATION]' - ); - - get_api_operation_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetApiOperation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_attribute.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_attribute.php deleted file mode 100644 index 25232ee51670..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_attribute.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Attribute $response */ - $response = $apiHubClient->getAttribute($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::attributeName('[PROJECT]', '[LOCATION]', '[ATTRIBUTE]'); - - get_attribute_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetAttribute_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_definition.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_definition.php deleted file mode 100644 index 41fd48578d6b..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_definition.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Definition $response */ - $response = $apiHubClient->getDefinition($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::definitionName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[DEFINITION]' - ); - - get_definition_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetDefinition_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_deployment.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_deployment.php deleted file mode 100644 index 1fc9d605eeeb..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_deployment.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Deployment $response */ - $response = $apiHubClient->getDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); - - get_deployment_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetDeployment_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_external_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_external_api.php deleted file mode 100644 index 6ff3010383ae..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_external_api.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ExternalApi $response */ - $response = $apiHubClient->getExternalApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::externalApiName('[PROJECT]', '[LOCATION]', '[EXTERNAL_API]'); - - get_external_api_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetExternalApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_location.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_location.php deleted file mode 100644 index 24ee8c3c9583..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_ApiHub_GetLocation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_spec.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_spec.php deleted file mode 100644 index a7650f9670ce..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_spec.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Spec $response */ - $response = $apiHubClient->getSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - - get_spec_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetSpec_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_spec_contents.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_spec_contents.php deleted file mode 100644 index c68ac753b167..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_spec_contents.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SpecContents $response */ - $response = $apiHubClient->getSpecContents($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - - get_spec_contents_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetSpecContents_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_version.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_version.php deleted file mode 100644 index faf11281a66f..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/get_version.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Version $response */ - $response = $apiHubClient->getVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubClient::versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - - get_version_sample($formattedName); -} -// [END apihub_v1_generated_ApiHub_GetVersion_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_api_operations.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_api_operations.php deleted file mode 100644 index 4fbac2701a07..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_api_operations.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->listApiOperations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - - list_api_operations_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHub_ListApiOperations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_apis.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_apis.php deleted file mode 100644 index b49bbc079679..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_apis.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->listApis($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_apis_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHub_ListApis_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_attributes.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_attributes.php deleted file mode 100644 index 52f49095134c..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_attributes.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->listAttributes($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_attributes_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHub_ListAttributes_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_deployments.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_deployments.php deleted file mode 100644 index a93e17b75305..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_deployments.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->listDeployments($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_deployments_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHub_ListDeployments_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_external_apis.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_external_apis.php deleted file mode 100644 index 4b918c4be28c..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_external_apis.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->listExternalApis($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_external_apis_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHub_ListExternalApis_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_locations.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_locations.php deleted file mode 100644 index c3e0a971ee08..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_locations.php +++ /dev/null @@ -1,60 +0,0 @@ -listLocations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_ApiHub_ListLocations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_specs.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_specs.php deleted file mode 100644 index 3b4908261ad9..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_specs.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->listSpecs($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - - list_specs_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHub_ListSpecs_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_versions.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_versions.php deleted file mode 100644 index 0443a0e3dca7..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/list_versions.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->listVersions($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - - list_versions_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHub_ListVersions_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/search_resources.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/search_resources.php deleted file mode 100644 index cc12a93e0b89..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/search_resources.php +++ /dev/null @@ -1,81 +0,0 @@ -setLocation($formattedLocation) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubClient->searchResources($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedLocation = ApiHubClient::locationName('[PROJECT]', '[LOCATION]'); - $query = '[QUERY]'; - - search_resources_sample($formattedLocation, $query); -} -// [END apihub_v1_generated_ApiHub_SearchResources_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_api.php deleted file mode 100644 index 99ea5312104a..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_api.php +++ /dev/null @@ -1,93 +0,0 @@ -setDisplayName($apiDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateApiRequest()) - ->setApi($api) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Api $response */ - $response = $apiHubClient->updateApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $apiDisplayName = '[DISPLAY_NAME]'; - - update_api_sample($apiDisplayName); -} -// [END apihub_v1_generated_ApiHub_UpdateApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_attribute.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_attribute.php deleted file mode 100644 index b370a1e0476b..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_attribute.php +++ /dev/null @@ -1,109 +0,0 @@ -setDisplayName($attributeDisplayName) - ->setScope($attributeScope) - ->setDataType($attributeDataType); - $updateMask = new FieldMask(); - $request = (new UpdateAttributeRequest()) - ->setAttribute($attribute) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Attribute $response */ - $response = $apiHubClient->updateAttribute($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $attributeDisplayName = '[DISPLAY_NAME]'; - $attributeScope = Scope::SCOPE_UNSPECIFIED; - $attributeDataType = DataType::DATA_TYPE_UNSPECIFIED; - - update_attribute_sample($attributeDisplayName, $attributeScope, $attributeDataType); -} -// [END apihub_v1_generated_ApiHub_UpdateAttribute_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_deployment.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_deployment.php deleted file mode 100644 index 9f4f6b6a1003..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_deployment.php +++ /dev/null @@ -1,112 +0,0 @@ -setDisplayName($deploymentDisplayName) - ->setDeploymentType($deploymentDeploymentType) - ->setResourceUri($deploymentResourceUri) - ->setEndpoints($deploymentEndpoints); - $updateMask = new FieldMask(); - $request = (new UpdateDeploymentRequest()) - ->setDeployment($deployment) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Deployment $response */ - $response = $apiHubClient->updateDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $deploymentDisplayName = '[DISPLAY_NAME]'; - $deploymentResourceUri = '[RESOURCE_URI]'; - $deploymentEndpointsElement = '[ENDPOINTS]'; - - update_deployment_sample( - $deploymentDisplayName, - $deploymentResourceUri, - $deploymentEndpointsElement - ); -} -// [END apihub_v1_generated_ApiHub_UpdateDeployment_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_external_api.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_external_api.php deleted file mode 100644 index 26374d90a70e..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_external_api.php +++ /dev/null @@ -1,87 +0,0 @@ -setDisplayName($externalApiDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateExternalApiRequest()) - ->setExternalApi($externalApi) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var ExternalApi $response */ - $response = $apiHubClient->updateExternalApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $externalApiDisplayName = '[DISPLAY_NAME]'; - - update_external_api_sample($externalApiDisplayName); -} -// [END apihub_v1_generated_ApiHub_UpdateExternalApi_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_spec.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_spec.php deleted file mode 100644 index e89b5d84c26e..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_spec.php +++ /dev/null @@ -1,100 +0,0 @@ -setDisplayName($specDisplayName) - ->setSpecType($specSpecType); - $updateMask = new FieldMask(); - $request = (new UpdateSpecRequest()) - ->setSpec($spec) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Spec $response */ - $response = $apiHubClient->updateSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $specDisplayName = '[DISPLAY_NAME]'; - - update_spec_sample($specDisplayName); -} -// [END apihub_v1_generated_ApiHub_UpdateSpec_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_version.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_version.php deleted file mode 100644 index 242daa5f17ec..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubClient/update_version.php +++ /dev/null @@ -1,89 +0,0 @@ -setDisplayName($versionDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateVersionRequest()) - ->setVersion($version) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Version $response */ - $response = $apiHubClient->updateVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $versionDisplayName = '[DISPLAY_NAME]'; - - update_version_sample($versionDisplayName); -} -// [END apihub_v1_generated_ApiHub_UpdateVersion_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/create_dependency.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/create_dependency.php deleted file mode 100644 index 9fb040be8d7b..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/create_dependency.php +++ /dev/null @@ -1,79 +0,0 @@ -setConsumer($dependencyConsumer) - ->setSupplier($dependencySupplier); - $request = (new CreateDependencyRequest()) - ->setParent($formattedParent) - ->setDependency($dependency); - - // Call the API and handle any network failures. - try { - /** @var Dependency $response */ - $response = $apiHubDependenciesClient->createDependency($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubDependenciesClient::locationName('[PROJECT]', '[LOCATION]'); - - create_dependency_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHubDependencies_CreateDependency_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/delete_dependency.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/delete_dependency.php deleted file mode 100644 index 9ae917b86ba1..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/delete_dependency.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $apiHubDependenciesClient->deleteDependency($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubDependenciesClient::dependencyName( - '[PROJECT]', - '[LOCATION]', - '[DEPENDENCY]' - ); - - delete_dependency_sample($formattedName); -} -// [END apihub_v1_generated_ApiHubDependencies_DeleteDependency_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/get_dependency.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/get_dependency.php deleted file mode 100644 index 49454e158126..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/get_dependency.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Dependency $response */ - $response = $apiHubDependenciesClient->getDependency($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubDependenciesClient::dependencyName( - '[PROJECT]', - '[LOCATION]', - '[DEPENDENCY]' - ); - - get_dependency_sample($formattedName); -} -// [END apihub_v1_generated_ApiHubDependencies_GetDependency_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/get_location.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/get_location.php deleted file mode 100644 index 5c33822686f1..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_ApiHubDependencies_GetLocation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/list_dependencies.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/list_dependencies.php deleted file mode 100644 index e7cd064df42e..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/list_dependencies.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiHubDependenciesClient->listDependencies($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiHubDependenciesClient::locationName('[PROJECT]', '[LOCATION]'); - - list_dependencies_sample($formattedParent); -} -// [END apihub_v1_generated_ApiHubDependencies_ListDependencies_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/list_locations.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/list_locations.php deleted file mode 100644 index b2ab997d301a..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/list_locations.php +++ /dev/null @@ -1,60 +0,0 @@ -listLocations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_ApiHubDependencies_ListLocations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/update_dependency.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/update_dependency.php deleted file mode 100644 index cf1f865ee455..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubDependenciesClient/update_dependency.php +++ /dev/null @@ -1,73 +0,0 @@ -setConsumer($dependencyConsumer) - ->setSupplier($dependencySupplier); - $updateMask = new FieldMask(); - $request = (new UpdateDependencyRequest()) - ->setDependency($dependency) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Dependency $response */ - $response = $apiHubDependenciesClient->updateDependency($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_ApiHubDependencies_UpdateDependency_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/disable_plugin.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/disable_plugin.php deleted file mode 100644 index c16e44e75070..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/disable_plugin.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Plugin $response */ - $response = $apiHubPluginClient->disablePlugin($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubPluginClient::pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - - disable_plugin_sample($formattedName); -} -// [END apihub_v1_generated_ApiHubPlugin_DisablePlugin_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/enable_plugin.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/enable_plugin.php deleted file mode 100644 index 31e65b20cc7e..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/enable_plugin.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Plugin $response */ - $response = $apiHubPluginClient->enablePlugin($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubPluginClient::pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - - enable_plugin_sample($formattedName); -} -// [END apihub_v1_generated_ApiHubPlugin_EnablePlugin_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/get_location.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/get_location.php deleted file mode 100644 index ad1f5d789fd9..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_ApiHubPlugin_GetLocation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/get_plugin.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/get_plugin.php deleted file mode 100644 index 570e914a4cf8..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/get_plugin.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Plugin $response */ - $response = $apiHubPluginClient->getPlugin($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiHubPluginClient::pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - - get_plugin_sample($formattedName); -} -// [END apihub_v1_generated_ApiHubPlugin_GetPlugin_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/list_locations.php b/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/list_locations.php deleted file mode 100644 index 425fa96077d9..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ApiHubPluginClient/list_locations.php +++ /dev/null @@ -1,60 +0,0 @@ -listLocations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_ApiHubPlugin_ListLocations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/create_host_project_registration.php b/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/create_host_project_registration.php deleted file mode 100644 index 34e4f1b7320d..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/create_host_project_registration.php +++ /dev/null @@ -1,100 +0,0 @@ -setGcpProject($formattedHostProjectRegistrationGcpProject); - $request = (new CreateHostProjectRegistrationRequest()) - ->setParent($formattedParent) - ->setHostProjectRegistrationId($hostProjectRegistrationId) - ->setHostProjectRegistration($hostProjectRegistration); - - // Call the API and handle any network failures. - try { - /** @var HostProjectRegistration $response */ - $response = $hostProjectRegistrationServiceClient->createHostProjectRegistration($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = HostProjectRegistrationServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $hostProjectRegistrationId = '[HOST_PROJECT_REGISTRATION_ID]'; - $formattedHostProjectRegistrationGcpProject = HostProjectRegistrationServiceClient::projectName( - '[PROJECT]' - ); - - create_host_project_registration_sample( - $formattedParent, - $hostProjectRegistrationId, - $formattedHostProjectRegistrationGcpProject - ); -} -// [END apihub_v1_generated_HostProjectRegistrationService_CreateHostProjectRegistration_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/get_host_project_registration.php b/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/get_host_project_registration.php deleted file mode 100644 index e7738e019f29..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/get_host_project_registration.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var HostProjectRegistration $response */ - $response = $hostProjectRegistrationServiceClient->getHostProjectRegistration($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = HostProjectRegistrationServiceClient::hostProjectRegistrationName( - '[PROJECT]', - '[LOCATION]', - '[HOST_PROJECT_REGISTRATION]' - ); - - get_host_project_registration_sample($formattedName); -} -// [END apihub_v1_generated_HostProjectRegistrationService_GetHostProjectRegistration_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/get_location.php b/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/get_location.php deleted file mode 100644 index 353d4211924e..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_HostProjectRegistrationService_GetLocation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/list_host_project_registrations.php b/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/list_host_project_registrations.php deleted file mode 100644 index baf1490913cd..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/list_host_project_registrations.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $hostProjectRegistrationServiceClient->listHostProjectRegistrations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = HostProjectRegistrationServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_host_project_registrations_sample($formattedParent); -} -// [END apihub_v1_generated_HostProjectRegistrationService_ListHostProjectRegistrations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/list_locations.php b/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/list_locations.php deleted file mode 100644 index c31d8c7dba73..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/HostProjectRegistrationServiceClient/list_locations.php +++ /dev/null @@ -1,60 +0,0 @@ -listLocations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_HostProjectRegistrationService_ListLocations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_location.php b/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_location.php deleted file mode 100644 index 6158d65c777f..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_LintingService_GetLocation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_style_guide.php b/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_style_guide.php deleted file mode 100644 index a6e6d25e2f30..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_style_guide.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var StyleGuide $response */ - $response = $lintingServiceClient->getStyleGuide($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = LintingServiceClient::styleGuideName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - - get_style_guide_sample($formattedName); -} -// [END apihub_v1_generated_LintingService_GetStyleGuide_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_style_guide_contents.php b/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_style_guide_contents.php deleted file mode 100644 index 28ca9efd764d..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/get_style_guide_contents.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var StyleGuideContents $response */ - $response = $lintingServiceClient->getStyleGuideContents($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = LintingServiceClient::styleGuideName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - - get_style_guide_contents_sample($formattedName); -} -// [END apihub_v1_generated_LintingService_GetStyleGuideContents_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/lint_spec.php b/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/lint_spec.php deleted file mode 100644 index 99ebfe4c766b..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/lint_spec.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $lintingServiceClient->lintSpec($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = LintingServiceClient::specName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - - lint_spec_sample($formattedName); -} -// [END apihub_v1_generated_LintingService_LintSpec_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/list_locations.php b/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/list_locations.php deleted file mode 100644 index 25ee357d223f..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/list_locations.php +++ /dev/null @@ -1,60 +0,0 @@ -listLocations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_LintingService_ListLocations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/update_style_guide.php b/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/update_style_guide.php deleted file mode 100644 index 2b3e98c36ad6..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/LintingServiceClient/update_style_guide.php +++ /dev/null @@ -1,89 +0,0 @@ -setContents($styleGuideContentsContents) - ->setMimeType($styleGuideContentsMimeType); - $styleGuide = (new StyleGuide()) - ->setLinter($styleGuideLinter) - ->setContents($styleGuideContents); - $request = (new UpdateStyleGuideRequest()) - ->setStyleGuide($styleGuide); - - // Call the API and handle any network failures. - try { - /** @var StyleGuide $response */ - $response = $lintingServiceClient->updateStyleGuide($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $styleGuideLinter = Linter::LINTER_UNSPECIFIED; - $styleGuideContentsContents = '...'; - $styleGuideContentsMimeType = '[MIME_TYPE]'; - - update_style_guide_sample( - $styleGuideLinter, - $styleGuideContentsContents, - $styleGuideContentsMimeType - ); -} -// [END apihub_v1_generated_LintingService_UpdateStyleGuide_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/create_api_hub_instance.php b/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/create_api_hub_instance.php deleted file mode 100644 index 3495093fc749..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/create_api_hub_instance.php +++ /dev/null @@ -1,97 +0,0 @@ -setCmekKeyName($apiHubInstanceConfigCmekKeyName); - $apiHubInstance = (new ApiHubInstance()) - ->setConfig($apiHubInstanceConfig); - $request = (new CreateApiHubInstanceRequest()) - ->setParent($formattedParent) - ->setApiHubInstance($apiHubInstance); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $provisioningClient->createApiHubInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ApiHubInstance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ProvisioningClient::locationName('[PROJECT]', '[LOCATION]'); - $apiHubInstanceConfigCmekKeyName = '[CMEK_KEY_NAME]'; - - create_api_hub_instance_sample($formattedParent, $apiHubInstanceConfigCmekKeyName); -} -// [END apihub_v1_generated_Provisioning_CreateApiHubInstance_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/get_api_hub_instance.php b/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/get_api_hub_instance.php deleted file mode 100644 index 973d6542b072..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/get_api_hub_instance.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiHubInstance $response */ - $response = $provisioningClient->getApiHubInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ProvisioningClient::apiHubInstanceName( - '[PROJECT]', - '[LOCATION]', - '[API_HUB_INSTANCE]' - ); - - get_api_hub_instance_sample($formattedName); -} -// [END apihub_v1_generated_Provisioning_GetApiHubInstance_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/get_location.php b/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/get_location.php deleted file mode 100644 index 0b0c6d0122fe..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_Provisioning_GetLocation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/list_locations.php b/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/list_locations.php deleted file mode 100644 index 3d3e68c10bc2..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/list_locations.php +++ /dev/null @@ -1,60 +0,0 @@ -listLocations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_Provisioning_ListLocations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/lookup_api_hub_instance.php b/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/lookup_api_hub_instance.php deleted file mode 100644 index c230997e1d03..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/ProvisioningClient/lookup_api_hub_instance.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var LookupApiHubInstanceResponse $response */ - $response = $provisioningClient->lookupApiHubInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ProvisioningClient::locationName('[PROJECT]', '[LOCATION]'); - - lookup_api_hub_instance_sample($formattedParent); -} -// [END apihub_v1_generated_Provisioning_LookupApiHubInstance_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/create_runtime_project_attachment.php b/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/create_runtime_project_attachment.php deleted file mode 100644 index e0f3b424d647..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/create_runtime_project_attachment.php +++ /dev/null @@ -1,96 +0,0 @@ -setRuntimeProject($formattedRuntimeProjectAttachmentRuntimeProject); - $request = (new CreateRuntimeProjectAttachmentRequest()) - ->setParent($formattedParent) - ->setRuntimeProjectAttachmentId($runtimeProjectAttachmentId) - ->setRuntimeProjectAttachment($runtimeProjectAttachment); - - // Call the API and handle any network failures. - try { - /** @var RuntimeProjectAttachment $response */ - $response = $runtimeProjectAttachmentServiceClient->createRuntimeProjectAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuntimeProjectAttachmentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $runtimeProjectAttachmentId = '[RUNTIME_PROJECT_ATTACHMENT_ID]'; - $formattedRuntimeProjectAttachmentRuntimeProject = RuntimeProjectAttachmentServiceClient::projectName( - '[PROJECT]' - ); - - create_runtime_project_attachment_sample( - $formattedParent, - $runtimeProjectAttachmentId, - $formattedRuntimeProjectAttachmentRuntimeProject - ); -} -// [END apihub_v1_generated_RuntimeProjectAttachmentService_CreateRuntimeProjectAttachment_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/delete_runtime_project_attachment.php b/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/delete_runtime_project_attachment.php deleted file mode 100644 index 6a942831b4ef..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/delete_runtime_project_attachment.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $runtimeProjectAttachmentServiceClient->deleteRuntimeProjectAttachment($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuntimeProjectAttachmentServiceClient::runtimeProjectAttachmentName( - '[PROJECT]', - '[LOCATION]', - '[RUNTIME_PROJECT_ATTACHMENT]' - ); - - delete_runtime_project_attachment_sample($formattedName); -} -// [END apihub_v1_generated_RuntimeProjectAttachmentService_DeleteRuntimeProjectAttachment_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/get_location.php b/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/get_location.php deleted file mode 100644 index d4ccaeb90a35..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_RuntimeProjectAttachmentService_GetLocation_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/get_runtime_project_attachment.php b/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/get_runtime_project_attachment.php deleted file mode 100644 index 69a5f834340c..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/get_runtime_project_attachment.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var RuntimeProjectAttachment $response */ - $response = $runtimeProjectAttachmentServiceClient->getRuntimeProjectAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuntimeProjectAttachmentServiceClient::runtimeProjectAttachmentName( - '[PROJECT]', - '[LOCATION]', - '[RUNTIME_PROJECT_ATTACHMENT]' - ); - - get_runtime_project_attachment_sample($formattedName); -} -// [END apihub_v1_generated_RuntimeProjectAttachmentService_GetRuntimeProjectAttachment_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/list_locations.php b/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/list_locations.php deleted file mode 100644 index 0baa8c5495d7..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/list_locations.php +++ /dev/null @@ -1,60 +0,0 @@ -listLocations($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apihub_v1_generated_RuntimeProjectAttachmentService_ListLocations_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/list_runtime_project_attachments.php b/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/list_runtime_project_attachments.php deleted file mode 100644 index 2ffdb9d02898..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/list_runtime_project_attachments.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $runtimeProjectAttachmentServiceClient->listRuntimeProjectAttachments($request); - - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RuntimeProjectAttachmentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_runtime_project_attachments_sample($formattedParent); -} -// [END apihub_v1_generated_RuntimeProjectAttachmentService_ListRuntimeProjectAttachments_sync] diff --git a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/lookup_runtime_project_attachment.php b/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/lookup_runtime_project_attachment.php deleted file mode 100644 index 99442e964af0..000000000000 --- a/owl-bot-staging/ApiHub/v1/samples/V1/RuntimeProjectAttachmentServiceClient/lookup_runtime_project_attachment.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var LookupRuntimeProjectAttachmentResponse $response */ - $response = $runtimeProjectAttachmentServiceClient->lookupRuntimeProjectAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RuntimeProjectAttachmentServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - lookup_runtime_project_attachment_sample($formattedName); -} -// [END apihub_v1_generated_RuntimeProjectAttachmentService_LookupRuntimeProjectAttachment_sync] diff --git a/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubClient.php b/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubClient.php deleted file mode 100644 index 44e86d846b9c..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubClient.php +++ /dev/null @@ -1,1572 +0,0 @@ - createApiAsync(CreateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAttributeAsync(CreateAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDeploymentAsync(CreateDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createExternalApiAsync(CreateExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSpecAsync(CreateSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface createVersionAsync(CreateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAttributeAsync(DeleteAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDeploymentAsync(DeleteDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteExternalApiAsync(DeleteExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSpecAsync(DeleteSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiOperationAsync(GetApiOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttributeAsync(GetAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDefinitionAsync(GetDefinitionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDeploymentAsync(GetDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getExternalApiAsync(GetExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpecAsync(GetSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpecContentsAsync(GetSpecContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiOperationsAsync(ListApiOperationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAttributesAsync(ListAttributesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeploymentsAsync(ListDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listExternalApisAsync(ListExternalApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpecsAsync(ListSpecsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchResourcesAsync(SearchResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAttributeAsync(UpdateAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDeploymentAsync(UpdateDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateExternalApiAsync(UpdateExternalApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpecAsync(UpdateSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class ApiHubClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apihub.v1.ApiHub'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apihub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apihub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/api_hub_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/api_hub_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/api_hub_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a api - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * - * @return string The formatted api resource. - */ - public static function apiName(string $project, string $location, string $api): string - { - return self::getPathTemplate('api')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * api_operation resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * @param string $operation - * - * @return string The formatted api_operation resource. - */ - public static function apiOperationName(string $project, string $location, string $api, string $version, string $operation): string - { - return self::getPathTemplate('apiOperation')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - 'operation' => $operation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a attribute - * resource. - * - * @param string $project - * @param string $location - * @param string $attribute - * - * @return string The formatted attribute resource. - */ - public static function attributeName(string $project, string $location, string $attribute): string - { - return self::getPathTemplate('attribute')->render([ - 'project' => $project, - 'location' => $location, - 'attribute' => $attribute, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a definition - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * @param string $definition - * - * @return string The formatted definition resource. - */ - public static function definitionName(string $project, string $location, string $api, string $version, string $definition): string - { - return self::getPathTemplate('definition')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - 'definition' => $definition, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a deployment - * resource. - * - * @param string $project - * @param string $location - * @param string $deployment - * - * @return string The formatted deployment resource. - */ - public static function deploymentName(string $project, string $location, string $deployment): string - { - return self::getPathTemplate('deployment')->render([ - 'project' => $project, - 'location' => $location, - 'deployment' => $deployment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a external_api - * resource. - * - * @param string $project - * @param string $location - * @param string $externalApi - * - * @return string The formatted external_api resource. - */ - public static function externalApiName(string $project, string $location, string $externalApi): string - { - return self::getPathTemplate('externalApi')->render([ - 'project' => $project, - 'location' => $location, - 'external_api' => $externalApi, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a spec - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * @param string $spec - * - * @return string The formatted spec resource. - */ - public static function specName(string $project, string $location, string $api, string $version, string $spec): string - { - return self::getPathTemplate('spec')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - 'spec' => $spec, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a version - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * - * @return string The formatted version resource. - */ - public static function versionName(string $project, string $location, string $api, string $version): string - { - return self::getPathTemplate('version')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - api: projects/{project}/locations/{location}/apis/{api} - * - apiOperation: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation} - * - attribute: projects/{project}/locations/{location}/attributes/{attribute} - * - definition: projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition} - * - deployment: projects/{project}/locations/{location}/deployments/{deployment} - * - externalApi: projects/{project}/locations/{location}/externalApis/{external_api} - * - location: projects/{project}/locations/{location} - * - spec: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec} - * - version: projects/{project}/locations/{location}/apis/{api}/versions/{version} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apihub.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create an API resource in the API hub. - * Once an API resource is created, versions can be added to it. - * - * The async variant is {@see ApiHubClient::createApiAsync()} . - * - * @example samples/V1/ApiHubClient/create_api.php - * - * @param CreateApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Api - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApi(CreateApiRequest $request, array $callOptions = []): Api - { - return $this->startApiCall('CreateApi', $request, $callOptions)->wait(); - } - - /** - * Create a user defined attribute. - * - * Certain pre defined attributes are already created by the API hub. These - * attributes will have type as `SYSTEM_DEFINED` and can be listed via - * [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method. - * Allowed values for the same can be updated via - * [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method. - * - * The async variant is {@see ApiHubClient::createAttributeAsync()} . - * - * @example samples/V1/ApiHubClient/create_attribute.php - * - * @param CreateAttributeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Attribute - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAttribute(CreateAttributeRequest $request, array $callOptions = []): Attribute - { - return $this->startApiCall('CreateAttribute', $request, $callOptions)->wait(); - } - - /** - * Create a deployment resource in the API hub. - * Once a deployment resource is created, it can be associated with API - * versions. - * - * The async variant is {@see ApiHubClient::createDeploymentAsync()} . - * - * @example samples/V1/ApiHubClient/create_deployment.php - * - * @param CreateDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Deployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDeployment(CreateDeploymentRequest $request, array $callOptions = []): Deployment - { - return $this->startApiCall('CreateDeployment', $request, $callOptions)->wait(); - } - - /** - * Create an External API resource in the API hub. - * - * The async variant is {@see ApiHubClient::createExternalApiAsync()} . - * - * @example samples/V1/ApiHubClient/create_external_api.php - * - * @param CreateExternalApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExternalApi - * - * @throws ApiException Thrown if the API call fails. - */ - public function createExternalApi(CreateExternalApiRequest $request, array $callOptions = []): ExternalApi - { - return $this->startApiCall('CreateExternalApi', $request, $callOptions)->wait(); - } - - /** - * Add a spec to an API version in the API hub. - * Multiple specs can be added to an API version. - * Note, while adding a spec, at least one of `contents` or `source_uri` must - * be provided. If `contents` is provided, then `spec_type` must also be - * provided. - * - * On adding a spec with contents to the version, the operations present in it - * will be added to the version.Note that the file contents in the spec should - * be of the same type as defined in the - * `projects/{project}/locations/{location}/attributes/system-spec-type` - * attribute associated with spec resource. Note that specs of various types - * can be uploaded, however parsing of details is supported for OpenAPI spec - * currently. - * - * In order to access the information parsed from the spec, use the - * [GetSpec][google.cloud.apihub.v1.ApiHub.GetSpec] method. - * In order to access the raw contents for a particular spec, use the - * [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method. - * In order to access the operations parsed from the spec, use the - * [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] - * method. - * - * The async variant is {@see ApiHubClient::createSpecAsync()} . - * - * @example samples/V1/ApiHubClient/create_spec.php - * - * @param CreateSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Spec - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSpec(CreateSpecRequest $request, array $callOptions = []): Spec - { - return $this->startApiCall('CreateSpec', $request, $callOptions)->wait(); - } - - /** - * Create an API version for an API resource in the API hub. - * - * The async variant is {@see ApiHubClient::createVersionAsync()} . - * - * @example samples/V1/ApiHubClient/create_version.php - * - * @param CreateVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Version - * - * @throws ApiException Thrown if the API call fails. - */ - public function createVersion(CreateVersionRequest $request, array $callOptions = []): Version - { - return $this->startApiCall('CreateVersion', $request, $callOptions)->wait(); - } - - /** - * Delete an API resource in the API hub. API can only be deleted if all - * underlying versions are deleted. - * - * The async variant is {@see ApiHubClient::deleteApiAsync()} . - * - * @example samples/V1/ApiHubClient/delete_api.php - * - * @param DeleteApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApi(DeleteApiRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteApi', $request, $callOptions)->wait(); - } - - /** - * Delete an attribute. - * - * Note: System defined attributes cannot be deleted. All - * associations of the attribute being deleted with any API hub resource will - * also get deleted. - * - * The async variant is {@see ApiHubClient::deleteAttributeAsync()} . - * - * @example samples/V1/ApiHubClient/delete_attribute.php - * - * @param DeleteAttributeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteAttribute(DeleteAttributeRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAttribute', $request, $callOptions)->wait(); - } - - /** - * Delete a deployment resource in the API hub. - * - * The async variant is {@see ApiHubClient::deleteDeploymentAsync()} . - * - * @example samples/V1/ApiHubClient/delete_deployment.php - * - * @param DeleteDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDeployment(DeleteDeploymentRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDeployment', $request, $callOptions)->wait(); - } - - /** - * Delete an External API resource in the API hub. - * - * The async variant is {@see ApiHubClient::deleteExternalApiAsync()} . - * - * @example samples/V1/ApiHubClient/delete_external_api.php - * - * @param DeleteExternalApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteExternalApi(DeleteExternalApiRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteExternalApi', $request, $callOptions)->wait(); - } - - /** - * Delete a spec. - * Deleting a spec will also delete the associated operations from the - * version. - * - * The async variant is {@see ApiHubClient::deleteSpecAsync()} . - * - * @example samples/V1/ApiHubClient/delete_spec.php - * - * @param DeleteSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSpec(DeleteSpecRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSpec', $request, $callOptions)->wait(); - } - - /** - * Delete an API version. Version can only be deleted if all underlying specs, - * operations, definitions and linked deployments are deleted. - * - * The async variant is {@see ApiHubClient::deleteVersionAsync()} . - * - * @example samples/V1/ApiHubClient/delete_version.php - * - * @param DeleteVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteVersion(DeleteVersionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteVersion', $request, $callOptions)->wait(); - } - - /** - * Get API resource details including the API versions contained in it. - * - * The async variant is {@see ApiHubClient::getApiAsync()} . - * - * @example samples/V1/ApiHubClient/get_api.php - * - * @param GetApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Api - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApi(GetApiRequest $request, array $callOptions = []): Api - { - return $this->startApiCall('GetApi', $request, $callOptions)->wait(); - } - - /** - * Get details about a particular operation in API version. - * - * The async variant is {@see ApiHubClient::getApiOperationAsync()} . - * - * @example samples/V1/ApiHubClient/get_api_operation.php - * - * @param GetApiOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiOperation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApiOperation(GetApiOperationRequest $request, array $callOptions = []): ApiOperation - { - return $this->startApiCall('GetApiOperation', $request, $callOptions)->wait(); - } - - /** - * Get details about the attribute. - * - * The async variant is {@see ApiHubClient::getAttributeAsync()} . - * - * @example samples/V1/ApiHubClient/get_attribute.php - * - * @param GetAttributeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Attribute - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAttribute(GetAttributeRequest $request, array $callOptions = []): Attribute - { - return $this->startApiCall('GetAttribute', $request, $callOptions)->wait(); - } - - /** - * Get details about a definition in an API version. - * - * The async variant is {@see ApiHubClient::getDefinitionAsync()} . - * - * @example samples/V1/ApiHubClient/get_definition.php - * - * @param GetDefinitionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Definition - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDefinition(GetDefinitionRequest $request, array $callOptions = []): Definition - { - return $this->startApiCall('GetDefinition', $request, $callOptions)->wait(); - } - - /** - * Get details about a deployment and the API versions linked to it. - * - * The async variant is {@see ApiHubClient::getDeploymentAsync()} . - * - * @example samples/V1/ApiHubClient/get_deployment.php - * - * @param GetDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Deployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDeployment(GetDeploymentRequest $request, array $callOptions = []): Deployment - { - return $this->startApiCall('GetDeployment', $request, $callOptions)->wait(); - } - - /** - * Get details about an External API resource in the API hub. - * - * The async variant is {@see ApiHubClient::getExternalApiAsync()} . - * - * @example samples/V1/ApiHubClient/get_external_api.php - * - * @param GetExternalApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExternalApi - * - * @throws ApiException Thrown if the API call fails. - */ - public function getExternalApi(GetExternalApiRequest $request, array $callOptions = []): ExternalApi - { - return $this->startApiCall('GetExternalApi', $request, $callOptions)->wait(); - } - - /** - * Get details about the information parsed from a spec. - * Note that this method does not return the raw spec contents. - * Use [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method - * to retrieve the same. - * - * The async variant is {@see ApiHubClient::getSpecAsync()} . - * - * @example samples/V1/ApiHubClient/get_spec.php - * - * @param GetSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Spec - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpec(GetSpecRequest $request, array $callOptions = []): Spec - { - return $this->startApiCall('GetSpec', $request, $callOptions)->wait(); - } - - /** - * Get spec contents. - * - * The async variant is {@see ApiHubClient::getSpecContentsAsync()} . - * - * @example samples/V1/ApiHubClient/get_spec_contents.php - * - * @param GetSpecContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpecContents - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpecContents(GetSpecContentsRequest $request, array $callOptions = []): SpecContents - { - return $this->startApiCall('GetSpecContents', $request, $callOptions)->wait(); - } - - /** - * Get details about the API version of an API resource. This will include - * information about the specs and operations present in the API - * version as well as the deployments linked to it. - * - * The async variant is {@see ApiHubClient::getVersionAsync()} . - * - * @example samples/V1/ApiHubClient/get_version.php - * - * @param GetVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Version - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVersion(GetVersionRequest $request, array $callOptions = []): Version - { - return $this->startApiCall('GetVersion', $request, $callOptions)->wait(); - } - - /** - * List operations in an API version. - * - * The async variant is {@see ApiHubClient::listApiOperationsAsync()} . - * - * @example samples/V1/ApiHubClient/list_api_operations.php - * - * @param ListApiOperationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApiOperations(ListApiOperationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApiOperations', $request, $callOptions); - } - - /** - * List API resources in the API hub. - * - * The async variant is {@see ApiHubClient::listApisAsync()} . - * - * @example samples/V1/ApiHubClient/list_apis.php - * - * @param ListApisRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApis(ListApisRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApis', $request, $callOptions); - } - - /** - * List all attributes. - * - * The async variant is {@see ApiHubClient::listAttributesAsync()} . - * - * @example samples/V1/ApiHubClient/list_attributes.php - * - * @param ListAttributesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAttributes(ListAttributesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAttributes', $request, $callOptions); - } - - /** - * List deployment resources in the API hub. - * - * The async variant is {@see ApiHubClient::listDeploymentsAsync()} . - * - * @example samples/V1/ApiHubClient/list_deployments.php - * - * @param ListDeploymentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDeployments(ListDeploymentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDeployments', $request, $callOptions); - } - - /** - * List External API resources in the API hub. - * - * The async variant is {@see ApiHubClient::listExternalApisAsync()} . - * - * @example samples/V1/ApiHubClient/list_external_apis.php - * - * @param ListExternalApisRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listExternalApis(ListExternalApisRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListExternalApis', $request, $callOptions); - } - - /** - * List specs corresponding to a particular API resource. - * - * The async variant is {@see ApiHubClient::listSpecsAsync()} . - * - * @example samples/V1/ApiHubClient/list_specs.php - * - * @param ListSpecsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSpecs(ListSpecsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSpecs', $request, $callOptions); - } - - /** - * List API versions of an API resource in the API hub. - * - * The async variant is {@see ApiHubClient::listVersionsAsync()} . - * - * @example samples/V1/ApiHubClient/list_versions.php - * - * @param ListVersionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listVersions(ListVersionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListVersions', $request, $callOptions); - } - - /** - * Search across API-Hub resources. - * - * The async variant is {@see ApiHubClient::searchResourcesAsync()} . - * - * @example samples/V1/ApiHubClient/search_resources.php - * - * @param SearchResourcesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchResources(SearchResourcesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchResources', $request, $callOptions); - } - - /** - * Update an API resource in the API hub. The following fields in the - * [API][] can be updated: - * - * * [display_name][google.cloud.apihub.v1.Api.display_name] - * * [description][google.cloud.apihub.v1.Api.description] - * * [owner][google.cloud.apihub.v1.Api.owner] - * * [documentation][google.cloud.apihub.v1.Api.documentation] - * * [target_user][google.cloud.apihub.v1.Api.target_user] - * * [team][google.cloud.apihub.v1.Api.team] - * * [business_unit][google.cloud.apihub.v1.Api.business_unit] - * * [maturity_level][google.cloud.apihub.v1.Api.maturity_level] - * * [attributes][google.cloud.apihub.v1.Api.attributes] - * - * The - * [update_mask][google.cloud.apihub.v1.UpdateApiRequest.update_mask] - * should be used to specify the fields being updated. - * - * Updating the owner field requires complete owner message - * and updates both owner and email fields. - * - * The async variant is {@see ApiHubClient::updateApiAsync()} . - * - * @example samples/V1/ApiHubClient/update_api.php - * - * @param UpdateApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Api - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApi(UpdateApiRequest $request, array $callOptions = []): Api - { - return $this->startApiCall('UpdateApi', $request, $callOptions)->wait(); - } - - /** - * Update the attribute. The following fields in the - * [Attribute resource][google.cloud.apihub.v1.Attribute] can be updated: - * - * * [display_name][google.cloud.apihub.v1.Attribute.display_name] - * The display name can be updated for user defined attributes only. - * * [description][google.cloud.apihub.v1.Attribute.description] - * The description can be updated for user defined attributes only. - * * [allowed_values][google.cloud.apihub.v1.Attribute.allowed_values] - * To update the list of allowed values, clients need to use the fetched list - * of allowed values and add or remove values to or from the same list. - * The mutable allowed values can be updated for both user defined and System - * defined attributes. The immutable allowed values cannot be updated or - * deleted. The updated list of allowed values cannot be empty. If an allowed - * value that is already used by some resource's attribute is deleted, then - * the association between the resource and the attribute value will also be - * deleted. - * * [cardinality][google.cloud.apihub.v1.Attribute.cardinality] - * The cardinality can be updated for user defined attributes only. - * Cardinality can only be increased during an update. - * - * The - * [update_mask][google.cloud.apihub.v1.UpdateAttributeRequest.update_mask] - * should be used to specify the fields being updated. - * - * The async variant is {@see ApiHubClient::updateAttributeAsync()} . - * - * @example samples/V1/ApiHubClient/update_attribute.php - * - * @param UpdateAttributeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Attribute - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAttribute(UpdateAttributeRequest $request, array $callOptions = []): Attribute - { - return $this->startApiCall('UpdateAttribute', $request, $callOptions)->wait(); - } - - /** - * Update a deployment resource in the API hub. The following fields in the - * [deployment resource][google.cloud.apihub.v1.Deployment] can be - * updated: - * - * * [display_name][google.cloud.apihub.v1.Deployment.display_name] - * * [description][google.cloud.apihub.v1.Deployment.description] - * * [documentation][google.cloud.apihub.v1.Deployment.documentation] - * * [deployment_type][google.cloud.apihub.v1.Deployment.deployment_type] - * * [resource_uri][google.cloud.apihub.v1.Deployment.resource_uri] - * * [endpoints][google.cloud.apihub.v1.Deployment.endpoints] - * * [slo][google.cloud.apihub.v1.Deployment.slo] - * * [environment][google.cloud.apihub.v1.Deployment.environment] - * * [attributes][google.cloud.apihub.v1.Deployment.attributes] - * - * The - * [update_mask][google.cloud.apihub.v1.UpdateDeploymentRequest.update_mask] - * should be used to specify the fields being updated. - * - * The async variant is {@see ApiHubClient::updateDeploymentAsync()} . - * - * @example samples/V1/ApiHubClient/update_deployment.php - * - * @param UpdateDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Deployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDeployment(UpdateDeploymentRequest $request, array $callOptions = []): Deployment - { - return $this->startApiCall('UpdateDeployment', $request, $callOptions)->wait(); - } - - /** - * Update an External API resource in the API hub. The following fields can be - * updated: - * - * * [display_name][google.cloud.apihub.v1.ExternalApi.display_name] - * * [description][google.cloud.apihub.v1.ExternalApi.description] - * * [documentation][google.cloud.apihub.v1.ExternalApi.documentation] - * * [endpoints][google.cloud.apihub.v1.ExternalApi.endpoints] - * * [paths][google.cloud.apihub.v1.ExternalApi.paths] - * - * The - * [update_mask][google.cloud.apihub.v1.UpdateExternalApiRequest.update_mask] - * should be used to specify the fields being updated. - * - * The async variant is {@see ApiHubClient::updateExternalApiAsync()} . - * - * @example samples/V1/ApiHubClient/update_external_api.php - * - * @param UpdateExternalApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ExternalApi - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateExternalApi(UpdateExternalApiRequest $request, array $callOptions = []): ExternalApi - { - return $this->startApiCall('UpdateExternalApi', $request, $callOptions)->wait(); - } - - /** - * Update spec. The following fields in the - * [spec][google.cloud.apihub.v1.Spec] can be updated: - * - * * [display_name][google.cloud.apihub.v1.Spec.display_name] - * * [source_uri][google.cloud.apihub.v1.Spec.source_uri] - * * [lint_response][google.cloud.apihub.v1.Spec.lint_response] - * * [attributes][google.cloud.apihub.v1.Spec.attributes] - * * [contents][google.cloud.apihub.v1.Spec.contents] - * * [spec_type][google.cloud.apihub.v1.Spec.spec_type] - * - * In case of an OAS spec, updating spec contents can lead to: - * 1. Creation, deletion and update of operations. - * 2. Creation, deletion and update of definitions. - * 3. Update of other info parsed out from the new spec. - * - * In case of contents or source_uri being present in update mask, spec_type - * must also be present. Also, spec_type can not be present in update mask if - * contents or source_uri is not present. - * - * The - * [update_mask][google.cloud.apihub.v1.UpdateSpecRequest.update_mask] - * should be used to specify the fields being updated. - * - * The async variant is {@see ApiHubClient::updateSpecAsync()} . - * - * @example samples/V1/ApiHubClient/update_spec.php - * - * @param UpdateSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Spec - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSpec(UpdateSpecRequest $request, array $callOptions = []): Spec - { - return $this->startApiCall('UpdateSpec', $request, $callOptions)->wait(); - } - - /** - * Update API version. The following fields in the - * [version][google.cloud.apihub.v1.Version] can be updated currently: - * - * * [display_name][google.cloud.apihub.v1.Version.display_name] - * * [description][google.cloud.apihub.v1.Version.description] - * * [documentation][google.cloud.apihub.v1.Version.documentation] - * * [deployments][google.cloud.apihub.v1.Version.deployments] - * * [lifecycle][google.cloud.apihub.v1.Version.lifecycle] - * * [compliance][google.cloud.apihub.v1.Version.compliance] - * * [accreditation][google.cloud.apihub.v1.Version.accreditation] - * * [attributes][google.cloud.apihub.v1.Version.attributes] - * - * The - * [update_mask][google.cloud.apihub.v1.UpdateVersionRequest.update_mask] - * should be used to specify the fields being updated. - * - * The async variant is {@see ApiHubClient::updateVersionAsync()} . - * - * @example samples/V1/ApiHubClient/update_version.php - * - * @param UpdateVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Version - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVersion(UpdateVersionRequest $request, array $callOptions = []): Version - { - return $this->startApiCall('UpdateVersion', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ApiHubClient::getLocationAsync()} . - * - * @example samples/V1/ApiHubClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see ApiHubClient::listLocationsAsync()} . - * - * @example samples/V1/ApiHubClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubDependenciesClient.php b/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubDependenciesClient.php deleted file mode 100644 index de2cef57d0fa..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubDependenciesClient.php +++ /dev/null @@ -1,463 +0,0 @@ - createDependencyAsync(CreateDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDependencyAsync(DeleteDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDependencyAsync(GetDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDependenciesAsync(ListDependenciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDependencyAsync(UpdateDependencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class ApiHubDependenciesClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apihub.v1.ApiHubDependencies'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apihub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apihub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/api_hub_dependencies_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/api_hub_dependencies_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/api_hub_dependencies_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a attribute - * resource. - * - * @param string $project - * @param string $location - * @param string $attribute - * - * @return string The formatted attribute resource. - */ - public static function attributeName(string $project, string $location, string $attribute): string - { - return self::getPathTemplate('attribute')->render([ - 'project' => $project, - 'location' => $location, - 'attribute' => $attribute, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a dependency - * resource. - * - * @param string $project - * @param string $location - * @param string $dependency - * - * @return string The formatted dependency resource. - */ - public static function dependencyName(string $project, string $location, string $dependency): string - { - return self::getPathTemplate('dependency')->render([ - 'project' => $project, - 'location' => $location, - 'dependency' => $dependency, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - attribute: projects/{project}/locations/{location}/attributes/{attribute} - * - dependency: projects/{project}/locations/{location}/dependencies/{dependency} - * - location: projects/{project}/locations/{location} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apihub.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create a dependency between two entities in the API hub. - * - * The async variant is {@see ApiHubDependenciesClient::createDependencyAsync()} . - * - * @example samples/V1/ApiHubDependenciesClient/create_dependency.php - * - * @param CreateDependencyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Dependency - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDependency(CreateDependencyRequest $request, array $callOptions = []): Dependency - { - return $this->startApiCall('CreateDependency', $request, $callOptions)->wait(); - } - - /** - * Delete the dependency resource. - * - * The async variant is {@see ApiHubDependenciesClient::deleteDependencyAsync()} . - * - * @example samples/V1/ApiHubDependenciesClient/delete_dependency.php - * - * @param DeleteDependencyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDependency(DeleteDependencyRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDependency', $request, $callOptions)->wait(); - } - - /** - * Get details about a dependency resource in the API hub. - * - * The async variant is {@see ApiHubDependenciesClient::getDependencyAsync()} . - * - * @example samples/V1/ApiHubDependenciesClient/get_dependency.php - * - * @param GetDependencyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Dependency - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDependency(GetDependencyRequest $request, array $callOptions = []): Dependency - { - return $this->startApiCall('GetDependency', $request, $callOptions)->wait(); - } - - /** - * List dependencies based on the provided filter and pagination parameters. - * - * The async variant is {@see ApiHubDependenciesClient::listDependenciesAsync()} . - * - * @example samples/V1/ApiHubDependenciesClient/list_dependencies.php - * - * @param ListDependenciesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDependencies(ListDependenciesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDependencies', $request, $callOptions); - } - - /** - * Update a dependency based on the - * [update_mask][google.cloud.apihub.v1.UpdateDependencyRequest.update_mask] - * provided in the request. - * - * The following fields in the [dependency][google.cloud.apihub.v1.Dependency] - * can be updated: - * * [description][google.cloud.apihub.v1.Dependency.description] - * - * The async variant is {@see ApiHubDependenciesClient::updateDependencyAsync()} . - * - * @example samples/V1/ApiHubDependenciesClient/update_dependency.php - * - * @param UpdateDependencyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Dependency - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDependency(UpdateDependencyRequest $request, array $callOptions = []): Dependency - { - return $this->startApiCall('UpdateDependency', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ApiHubDependenciesClient::getLocationAsync()} . - * - * @example samples/V1/ApiHubDependenciesClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see ApiHubDependenciesClient::listLocationsAsync()} . - * - * @example samples/V1/ApiHubDependenciesClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubPluginClient.php b/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubPluginClient.php deleted file mode 100644 index 0c60417205d9..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/Client/ApiHubPluginClient.php +++ /dev/null @@ -1,366 +0,0 @@ - disablePluginAsync(DisablePluginRequest $request, array $optionalArgs = []) - * @method PromiseInterface enablePluginAsync(EnablePluginRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPluginAsync(GetPluginRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class ApiHubPluginClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apihub.v1.ApiHubPlugin'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apihub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apihub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/api_hub_plugin_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/api_hub_plugin_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/api_hub_plugin_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a plugin - * resource. - * - * @param string $project - * @param string $location - * @param string $plugin - * - * @return string The formatted plugin resource. - */ - public static function pluginName(string $project, string $location, string $plugin): string - { - return self::getPathTemplate('plugin')->render([ - 'project' => $project, - 'location' => $location, - 'plugin' => $plugin, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - plugin: projects/{project}/locations/{location}/plugins/{plugin} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apihub.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Disables a plugin. - * The `state` of the plugin after disabling is `DISABLED` - * - * The async variant is {@see ApiHubPluginClient::disablePluginAsync()} . - * - * @example samples/V1/ApiHubPluginClient/disable_plugin.php - * - * @param DisablePluginRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Plugin - * - * @throws ApiException Thrown if the API call fails. - */ - public function disablePlugin(DisablePluginRequest $request, array $callOptions = []): Plugin - { - return $this->startApiCall('DisablePlugin', $request, $callOptions)->wait(); - } - - /** - * Enables a plugin. - * The `state` of the plugin after enabling is `ENABLED` - * - * The async variant is {@see ApiHubPluginClient::enablePluginAsync()} . - * - * @example samples/V1/ApiHubPluginClient/enable_plugin.php - * - * @param EnablePluginRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Plugin - * - * @throws ApiException Thrown if the API call fails. - */ - public function enablePlugin(EnablePluginRequest $request, array $callOptions = []): Plugin - { - return $this->startApiCall('EnablePlugin', $request, $callOptions)->wait(); - } - - /** - * Get details about an API Hub plugin. - * - * The async variant is {@see ApiHubPluginClient::getPluginAsync()} . - * - * @example samples/V1/ApiHubPluginClient/get_plugin.php - * - * @param GetPluginRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Plugin - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPlugin(GetPluginRequest $request, array $callOptions = []): Plugin - { - return $this->startApiCall('GetPlugin', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ApiHubPluginClient::getLocationAsync()} . - * - * @example samples/V1/ApiHubPluginClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see ApiHubPluginClient::listLocationsAsync()} . - * - * @example samples/V1/ApiHubPluginClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/Client/HostProjectRegistrationServiceClient.php b/owl-bot-staging/ApiHub/v1/src/V1/Client/HostProjectRegistrationServiceClient.php deleted file mode 100644 index 2b514a7ea0bb..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/Client/HostProjectRegistrationServiceClient.php +++ /dev/null @@ -1,409 +0,0 @@ - createHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getHostProjectRegistrationAsync(GetHostProjectRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class HostProjectRegistrationServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apihub.v1.HostProjectRegistrationService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apihub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apihub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/host_project_registration_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/host_project_registration_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/host_project_registration_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * host_project_registration resource. - * - * @param string $project - * @param string $location - * @param string $hostProjectRegistration - * - * @return string The formatted host_project_registration resource. - */ - public static function hostProjectRegistrationName(string $project, string $location, string $hostProjectRegistration): string - { - return self::getPathTemplate('hostProjectRegistration')->render([ - 'project' => $project, - 'location' => $location, - 'host_project_registration' => $hostProjectRegistration, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - hostProjectRegistration: projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration} - * - location: projects/{project}/locations/{location} - * - project: projects/{project} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apihub.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create a host project registration. - * A Google cloud project can be registered as a host project if it is not - * attached as a runtime project to another host project. - * A project can be registered as a host project only once. Subsequent - * register calls for the same project will fail. - * - * The async variant is - * {@see HostProjectRegistrationServiceClient::createHostProjectRegistrationAsync()} - * . - * - * @example samples/V1/HostProjectRegistrationServiceClient/create_host_project_registration.php - * - * @param CreateHostProjectRegistrationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HostProjectRegistration - * - * @throws ApiException Thrown if the API call fails. - */ - public function createHostProjectRegistration(CreateHostProjectRegistrationRequest $request, array $callOptions = []): HostProjectRegistration - { - return $this->startApiCall('CreateHostProjectRegistration', $request, $callOptions)->wait(); - } - - /** - * Get a host project registration. - * - * The async variant is - * {@see HostProjectRegistrationServiceClient::getHostProjectRegistrationAsync()} . - * - * @example samples/V1/HostProjectRegistrationServiceClient/get_host_project_registration.php - * - * @param GetHostProjectRegistrationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HostProjectRegistration - * - * @throws ApiException Thrown if the API call fails. - */ - public function getHostProjectRegistration(GetHostProjectRegistrationRequest $request, array $callOptions = []): HostProjectRegistration - { - return $this->startApiCall('GetHostProjectRegistration', $request, $callOptions)->wait(); - } - - /** - * Lists host project registrations. - * - * The async variant is - * {@see HostProjectRegistrationServiceClient::listHostProjectRegistrationsAsync()} - * . - * - * @example samples/V1/HostProjectRegistrationServiceClient/list_host_project_registrations.php - * - * @param ListHostProjectRegistrationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listHostProjectRegistrations(ListHostProjectRegistrationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListHostProjectRegistrations', $request, $callOptions); - } - - /** - * Gets information about a location. - * - * The async variant is - * {@see HostProjectRegistrationServiceClient::getLocationAsync()} . - * - * @example samples/V1/HostProjectRegistrationServiceClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is - * {@see HostProjectRegistrationServiceClient::listLocationsAsync()} . - * - * @example samples/V1/HostProjectRegistrationServiceClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/Client/LintingServiceClient.php b/owl-bot-staging/ApiHub/v1/src/V1/Client/LintingServiceClient.php deleted file mode 100644 index c5aec4b4418f..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/Client/LintingServiceClient.php +++ /dev/null @@ -1,417 +0,0 @@ - getStyleGuideAsync(GetStyleGuideRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStyleGuideContentsAsync(GetStyleGuideContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface lintSpecAsync(LintSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateStyleGuideAsync(UpdateStyleGuideRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class LintingServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apihub.v1.LintingService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apihub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apihub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/linting_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/linting_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/linting_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a spec - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * @param string $spec - * - * @return string The formatted spec resource. - */ - public static function specName(string $project, string $location, string $api, string $version, string $spec): string - { - return self::getPathTemplate('spec')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - 'spec' => $spec, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a style_guide - * resource. - * - * @param string $project - * @param string $location - * @param string $plugin - * - * @return string The formatted style_guide resource. - */ - public static function styleGuideName(string $project, string $location, string $plugin): string - { - return self::getPathTemplate('styleGuide')->render([ - 'project' => $project, - 'location' => $location, - 'plugin' => $plugin, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - spec: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec} - * - styleGuide: projects/{project}/locations/{location}/plugins/{plugin}/styleGuide - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apihub.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Get the style guide being used for linting. - * - * The async variant is {@see LintingServiceClient::getStyleGuideAsync()} . - * - * @example samples/V1/LintingServiceClient/get_style_guide.php - * - * @param GetStyleGuideRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StyleGuide - * - * @throws ApiException Thrown if the API call fails. - */ - public function getStyleGuide(GetStyleGuideRequest $request, array $callOptions = []): StyleGuide - { - return $this->startApiCall('GetStyleGuide', $request, $callOptions)->wait(); - } - - /** - * Get the contents of the style guide. - * - * The async variant is {@see LintingServiceClient::getStyleGuideContentsAsync()} . - * - * @example samples/V1/LintingServiceClient/get_style_guide_contents.php - * - * @param GetStyleGuideContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StyleGuideContents - * - * @throws ApiException Thrown if the API call fails. - */ - public function getStyleGuideContents(GetStyleGuideContentsRequest $request, array $callOptions = []): StyleGuideContents - { - return $this->startApiCall('GetStyleGuideContents', $request, $callOptions)->wait(); - } - - /** - * Lints the requested spec and updates the corresponding API Spec with the - * lint response. This lint response will be available in all subsequent - * Get and List Spec calls to Core service. - * - * The async variant is {@see LintingServiceClient::lintSpecAsync()} . - * - * @example samples/V1/LintingServiceClient/lint_spec.php - * - * @param LintSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function lintSpec(LintSpecRequest $request, array $callOptions = []): void - { - $this->startApiCall('LintSpec', $request, $callOptions)->wait(); - } - - /** - * Update the styleGuide to be used for liniting in by API hub. - * - * The async variant is {@see LintingServiceClient::updateStyleGuideAsync()} . - * - * @example samples/V1/LintingServiceClient/update_style_guide.php - * - * @param UpdateStyleGuideRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StyleGuide - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateStyleGuide(UpdateStyleGuideRequest $request, array $callOptions = []): StyleGuide - { - return $this->startApiCall('UpdateStyleGuide', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see LintingServiceClient::getLocationAsync()} . - * - * @example samples/V1/LintingServiceClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see LintingServiceClient::listLocationsAsync()} . - * - * @example samples/V1/LintingServiceClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/Client/ProvisioningClient.php b/owl-bot-staging/ApiHub/v1/src/V1/Client/ProvisioningClient.php deleted file mode 100644 index 4d0785f77a25..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/Client/ProvisioningClient.php +++ /dev/null @@ -1,438 +0,0 @@ - createApiHubInstanceAsync(CreateApiHubInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiHubInstanceAsync(GetApiHubInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupApiHubInstanceAsync(LookupApiHubInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class ProvisioningClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apihub.v1.Provisioning'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apihub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apihub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/provisioning_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/provisioning_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/provisioning_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * api_hub_instance resource. - * - * @param string $project - * @param string $location - * @param string $apiHubInstance - * - * @return string The formatted api_hub_instance resource. - */ - public static function apiHubInstanceName(string $project, string $location, string $apiHubInstance): string - { - return self::getPathTemplate('apiHubInstance')->render([ - 'project' => $project, - 'location' => $location, - 'api_hub_instance' => $apiHubInstance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - apiHubInstance: projects/{project}/locations/{location}/apiHubInstances/{api_hub_instance} - * - location: projects/{project}/locations/{location} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apihub.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Provisions instance resources for the API Hub. - * - * The async variant is {@see ProvisioningClient::createApiHubInstanceAsync()} . - * - * @example samples/V1/ProvisioningClient/create_api_hub_instance.php - * - * @param CreateApiHubInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApiHubInstance(CreateApiHubInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateApiHubInstance', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single API Hub instance. - * - * The async variant is {@see ProvisioningClient::getApiHubInstanceAsync()} . - * - * @example samples/V1/ProvisioningClient/get_api_hub_instance.php - * - * @param GetApiHubInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiHubInstance - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApiHubInstance(GetApiHubInstanceRequest $request, array $callOptions = []): ApiHubInstance - { - return $this->startApiCall('GetApiHubInstance', $request, $callOptions)->wait(); - } - - /** - * Looks up an Api Hub instance in a given GCP project. There will always be - * only one Api Hub instance for a GCP project across all locations. - * - * The async variant is {@see ProvisioningClient::lookupApiHubInstanceAsync()} . - * - * @example samples/V1/ProvisioningClient/lookup_api_hub_instance.php - * - * @param LookupApiHubInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LookupApiHubInstanceResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupApiHubInstance(LookupApiHubInstanceRequest $request, array $callOptions = []): LookupApiHubInstanceResponse - { - return $this->startApiCall('LookupApiHubInstance', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ProvisioningClient::getLocationAsync()} . - * - * @example samples/V1/ProvisioningClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see ProvisioningClient::listLocationsAsync()} . - * - * @example samples/V1/ProvisioningClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/Client/RuntimeProjectAttachmentServiceClient.php b/owl-bot-staging/ApiHub/v1/src/V1/Client/RuntimeProjectAttachmentServiceClient.php deleted file mode 100644 index 9bb12ba6bde0..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/Client/RuntimeProjectAttachmentServiceClient.php +++ /dev/null @@ -1,467 +0,0 @@ - createRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class RuntimeProjectAttachmentServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apihub.v1.RuntimeProjectAttachmentService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apihub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apihub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/runtime_project_attachment_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/runtime_project_attachment_service_descriptor_config.php', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - 'useJwtAccessWithScope' => false, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/runtime_project_attachment_service_rest_client_config.php', - ], - ], - ]; - } - - /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() - { - return 'rest'; - } - - /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() - { - return [ - 'rest', - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * runtime_project_attachment resource. - * - * @param string $project - * @param string $location - * @param string $runtimeProjectAttachment - * - * @return string The formatted runtime_project_attachment resource. - */ - public static function runtimeProjectAttachmentName(string $project, string $location, string $runtimeProjectAttachment): string - { - return self::getPathTemplate('runtimeProjectAttachment')->render([ - 'project' => $project, - 'location' => $location, - 'runtime_project_attachment' => $runtimeProjectAttachment, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - location: projects/{project}/locations/{location} - * - project: projects/{project} - * - runtimeProjectAttachment: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apihub.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. At the moment, supports only - * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method 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 - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Attaches a runtime project to the host project. - * - * The async variant is - * {@see RuntimeProjectAttachmentServiceClient::createRuntimeProjectAttachmentAsync()} - * . - * - * @example samples/V1/RuntimeProjectAttachmentServiceClient/create_runtime_project_attachment.php - * - * @param CreateRuntimeProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RuntimeProjectAttachment - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest $request, array $callOptions = []): RuntimeProjectAttachment - { - return $this->startApiCall('CreateRuntimeProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Delete a runtime project attachment in the API Hub. This call will detach - * the runtime project from the host project. - * - * The async variant is - * {@see RuntimeProjectAttachmentServiceClient::deleteRuntimeProjectAttachmentAsync()} - * . - * - * @example samples/V1/RuntimeProjectAttachmentServiceClient/delete_runtime_project_attachment.php - * - * @param DeleteRuntimeProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteRuntimeProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Gets a runtime project attachment. - * - * The async variant is - * {@see RuntimeProjectAttachmentServiceClient::getRuntimeProjectAttachmentAsync()} - * . - * - * @example samples/V1/RuntimeProjectAttachmentServiceClient/get_runtime_project_attachment.php - * - * @param GetRuntimeProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RuntimeProjectAttachment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest $request, array $callOptions = []): RuntimeProjectAttachment - { - return $this->startApiCall('GetRuntimeProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * List runtime projects attached to the host project. - * - * The async variant is - * {@see RuntimeProjectAttachmentServiceClient::listRuntimeProjectAttachmentsAsync()} - * . - * - * @example samples/V1/RuntimeProjectAttachmentServiceClient/list_runtime_project_attachments.php - * - * @param ListRuntimeProjectAttachmentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRuntimeProjectAttachments', $request, $callOptions); - } - - /** - * Look up a runtime project attachment. This API can be called in the context - * of any project. - * - * The async variant is - * {@see RuntimeProjectAttachmentServiceClient::lookupRuntimeProjectAttachmentAsync()} - * . - * - * @example samples/V1/RuntimeProjectAttachmentServiceClient/lookup_runtime_project_attachment.php - * - * @param LookupRuntimeProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LookupRuntimeProjectAttachmentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest $request, array $callOptions = []): LookupRuntimeProjectAttachmentResponse - { - return $this->startApiCall('LookupRuntimeProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is - * {@see RuntimeProjectAttachmentServiceClient::getLocationAsync()} . - * - * @example samples/V1/RuntimeProjectAttachmentServiceClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is - * {@see RuntimeProjectAttachmentServiceClient::listLocationsAsync()} . - * - * @example samples/V1/RuntimeProjectAttachmentServiceClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ApiHub/v1/src/V1/gapic_metadata.json deleted file mode 100644 index e8e869cb79ce..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,432 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.apihub.v1", - "libraryPackage": "Google\\Cloud\\ApiHub\\V1", - "services": { - "ApiHub": { - "clients": { - "grpc": { - "libraryClient": "ApiHubGapicClient", - "rpcs": { - "CreateApi": { - "methods": [ - "createApi" - ] - }, - "CreateAttribute": { - "methods": [ - "createAttribute" - ] - }, - "CreateDeployment": { - "methods": [ - "createDeployment" - ] - }, - "CreateExternalApi": { - "methods": [ - "createExternalApi" - ] - }, - "CreateSpec": { - "methods": [ - "createSpec" - ] - }, - "CreateVersion": { - "methods": [ - "createVersion" - ] - }, - "DeleteApi": { - "methods": [ - "deleteApi" - ] - }, - "DeleteAttribute": { - "methods": [ - "deleteAttribute" - ] - }, - "DeleteDeployment": { - "methods": [ - "deleteDeployment" - ] - }, - "DeleteExternalApi": { - "methods": [ - "deleteExternalApi" - ] - }, - "DeleteSpec": { - "methods": [ - "deleteSpec" - ] - }, - "DeleteVersion": { - "methods": [ - "deleteVersion" - ] - }, - "GetApi": { - "methods": [ - "getApi" - ] - }, - "GetApiOperation": { - "methods": [ - "getApiOperation" - ] - }, - "GetAttribute": { - "methods": [ - "getAttribute" - ] - }, - "GetDefinition": { - "methods": [ - "getDefinition" - ] - }, - "GetDeployment": { - "methods": [ - "getDeployment" - ] - }, - "GetExternalApi": { - "methods": [ - "getExternalApi" - ] - }, - "GetSpec": { - "methods": [ - "getSpec" - ] - }, - "GetSpecContents": { - "methods": [ - "getSpecContents" - ] - }, - "GetVersion": { - "methods": [ - "getVersion" - ] - }, - "ListApiOperations": { - "methods": [ - "listApiOperations" - ] - }, - "ListApis": { - "methods": [ - "listApis" - ] - }, - "ListAttributes": { - "methods": [ - "listAttributes" - ] - }, - "ListDeployments": { - "methods": [ - "listDeployments" - ] - }, - "ListExternalApis": { - "methods": [ - "listExternalApis" - ] - }, - "ListSpecs": { - "methods": [ - "listSpecs" - ] - }, - "ListVersions": { - "methods": [ - "listVersions" - ] - }, - "SearchResources": { - "methods": [ - "searchResources" - ] - }, - "UpdateApi": { - "methods": [ - "updateApi" - ] - }, - "UpdateAttribute": { - "methods": [ - "updateAttribute" - ] - }, - "UpdateDeployment": { - "methods": [ - "updateDeployment" - ] - }, - "UpdateExternalApi": { - "methods": [ - "updateExternalApi" - ] - }, - "UpdateSpec": { - "methods": [ - "updateSpec" - ] - }, - "UpdateVersion": { - "methods": [ - "updateVersion" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "ApiHubDependencies": { - "clients": { - "grpc": { - "libraryClient": "ApiHubDependenciesGapicClient", - "rpcs": { - "CreateDependency": { - "methods": [ - "createDependency" - ] - }, - "DeleteDependency": { - "methods": [ - "deleteDependency" - ] - }, - "GetDependency": { - "methods": [ - "getDependency" - ] - }, - "ListDependencies": { - "methods": [ - "listDependencies" - ] - }, - "UpdateDependency": { - "methods": [ - "updateDependency" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "HostProjectRegistrationService": { - "clients": { - "grpc": { - "libraryClient": "HostProjectRegistrationServiceGapicClient", - "rpcs": { - "CreateHostProjectRegistration": { - "methods": [ - "createHostProjectRegistration" - ] - }, - "GetHostProjectRegistration": { - "methods": [ - "getHostProjectRegistration" - ] - }, - "ListHostProjectRegistrations": { - "methods": [ - "listHostProjectRegistrations" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "LintingService": { - "clients": { - "grpc": { - "libraryClient": "LintingServiceGapicClient", - "rpcs": { - "GetStyleGuide": { - "methods": [ - "getStyleGuide" - ] - }, - "GetStyleGuideContents": { - "methods": [ - "getStyleGuideContents" - ] - }, - "LintSpec": { - "methods": [ - "lintSpec" - ] - }, - "UpdateStyleGuide": { - "methods": [ - "updateStyleGuide" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "ApiHubPlugin": { - "clients": { - "grpc": { - "libraryClient": "ApiHubPluginGapicClient", - "rpcs": { - "DisablePlugin": { - "methods": [ - "disablePlugin" - ] - }, - "EnablePlugin": { - "methods": [ - "enablePlugin" - ] - }, - "GetPlugin": { - "methods": [ - "getPlugin" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "Provisioning": { - "clients": { - "grpc": { - "libraryClient": "ProvisioningGapicClient", - "rpcs": { - "CreateApiHubInstance": { - "methods": [ - "createApiHubInstance" - ] - }, - "GetApiHubInstance": { - "methods": [ - "getApiHubInstance" - ] - }, - "LookupApiHubInstance": { - "methods": [ - "lookupApiHubInstance" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - }, - "RuntimeProjectAttachmentService": { - "clients": { - "grpc": { - "libraryClient": "RuntimeProjectAttachmentServiceGapicClient", - "rpcs": { - "CreateRuntimeProjectAttachment": { - "methods": [ - "createRuntimeProjectAttachment" - ] - }, - "DeleteRuntimeProjectAttachment": { - "methods": [ - "deleteRuntimeProjectAttachment" - ] - }, - "GetRuntimeProjectAttachment": { - "methods": [ - "getRuntimeProjectAttachment" - ] - }, - "ListRuntimeProjectAttachments": { - "methods": [ - "listRuntimeProjectAttachments" - ] - }, - "LookupRuntimeProjectAttachment": { - "methods": [ - "lookupRuntimeProjectAttachment" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_client_config.json b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_client_config.json deleted file mode 100644 index 76121f16cbf5..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_client_config.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "interfaces": { - "google.cloud.apihub.v1.ApiHub": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateApi": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateExternalApi": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateSpec": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteApi": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteExternalApi": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteSpec": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApiOperation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDefinition": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetExternalApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpec": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpecContents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetVersion": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApiOperations": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApis": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAttributes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDeployments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListExternalApis": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSpecs": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListVersions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchResources": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateApi": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateExternalApi": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateSpec": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_client_config.json b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_client_config.json deleted file mode 100644 index 2496913eec02..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_client_config.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "interfaces": { - "google.cloud.apihub.v1.ApiHubDependencies": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateDependency": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteDependency": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetDependency": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDependencies": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateDependency": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_descriptor_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_descriptor_config.php deleted file mode 100644 index 27eef222a797..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_descriptor_config.php +++ /dev/null @@ -1,136 +0,0 @@ - [ - 'google.cloud.apihub.v1.ApiHubDependencies' => [ - 'CreateDependency' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Dependency', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDependency' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDependency' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Dependency', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDependencies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDependencies', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListDependenciesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDependency' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Dependency', - 'headerParams' => [ - [ - 'keyName' => 'dependency.name', - 'fieldAccessors' => [ - 'getDependency', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'attribute' => 'projects/{project}/locations/{location}/attributes/{attribute}', - 'dependency' => 'projects/{project}/locations/{location}/dependencies/{dependency}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_rest_client_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_rest_client_config.php deleted file mode 100644 index 13b97a84c8cc..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_dependencies_rest_client_config.php +++ /dev/null @@ -1,161 +0,0 @@ - [ - 'google.cloud.apihub.v1.ApiHubDependencies' => [ - 'CreateDependency' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dependencies', - 'body' => 'dependency', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDependency' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dependencies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDependency' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dependencies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDependencies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dependencies', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDependency' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{dependency.name=projects/*/locations/*/dependencies/*}', - 'body' => 'dependency', - 'placeholders' => [ - 'dependency.name' => [ - 'getters' => [ - 'getDependency', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_descriptor_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_descriptor_config.php deleted file mode 100644 index bd08e09365bd..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_descriptor_config.php +++ /dev/null @@ -1,563 +0,0 @@ - [ - 'google.cloud.apihub.v1.ApiHub' => [ - 'CreateApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Api', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAttribute' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Attribute', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Deployment', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateExternalApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ExternalApi', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Spec', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Version', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAttribute' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteExternalApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Api', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApiOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ApiOperation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAttribute' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Attribute', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDefinition' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Definition', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Deployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetExternalApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ExternalApi', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Spec', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpecContents' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\SpecContents', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Version', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListApiOperations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApiOperations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListApiOperationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListApis' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApis', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListApisResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAttributes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAttributes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListAttributesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeployments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDeployments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListDeploymentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListExternalApis' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getExternalApis', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListExternalApisResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpecs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpecs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListSpecsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListVersions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVersions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListVersionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SearchResources' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSearchResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\SearchResourcesResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'UpdateApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Api', - 'headerParams' => [ - [ - 'keyName' => 'api.name', - 'fieldAccessors' => [ - 'getApi', - 'getName', - ], - ], - ], - ], - 'UpdateAttribute' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Attribute', - 'headerParams' => [ - [ - 'keyName' => 'attribute.name', - 'fieldAccessors' => [ - 'getAttribute', - 'getName', - ], - ], - ], - ], - 'UpdateDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Deployment', - 'headerParams' => [ - [ - 'keyName' => 'deployment.name', - 'fieldAccessors' => [ - 'getDeployment', - 'getName', - ], - ], - ], - ], - 'UpdateExternalApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ExternalApi', - 'headerParams' => [ - [ - 'keyName' => 'external_api.name', - 'fieldAccessors' => [ - 'getExternalApi', - 'getName', - ], - ], - ], - ], - 'UpdateSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Spec', - 'headerParams' => [ - [ - 'keyName' => 'spec.name', - 'fieldAccessors' => [ - 'getSpec', - 'getName', - ], - ], - ], - ], - 'UpdateVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Version', - 'headerParams' => [ - [ - 'keyName' => 'version.name', - 'fieldAccessors' => [ - 'getVersion', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'api' => 'projects/{project}/locations/{location}/apis/{api}', - 'apiOperation' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}', - 'attribute' => 'projects/{project}/locations/{location}/attributes/{attribute}', - 'definition' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}', - 'deployment' => 'projects/{project}/locations/{location}/deployments/{deployment}', - 'externalApi' => 'projects/{project}/locations/{location}/externalApis/{external_api}', - 'location' => 'projects/{project}/locations/{location}', - 'spec' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}', - 'version' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_client_config.json b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_client_config.json deleted file mode 100644 index 4cc0ae4423c6..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_client_config.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "interfaces": { - "google.cloud.apihub.v1.ApiHubPlugin": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "DisablePlugin": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "EnablePlugin": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetPlugin": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_descriptor_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_descriptor_config.php deleted file mode 100644 index b9e162da3a2c..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_descriptor_config.php +++ /dev/null @@ -1,101 +0,0 @@ - [ - 'google.cloud.apihub.v1.ApiHubPlugin' => [ - 'DisablePlugin' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Plugin', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'EnablePlugin' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Plugin', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPlugin' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\Plugin', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'plugin' => 'projects/{project}/locations/{location}/plugins/{plugin}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_rest_client_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_rest_client_config.php deleted file mode 100644 index a48fdd9bab73..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_plugin_rest_client_config.php +++ /dev/null @@ -1,135 +0,0 @@ - [ - 'google.cloud.apihub.v1.ApiHubPlugin' => [ - 'DisablePlugin' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/plugins/*}:disable', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'EnablePlugin' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/plugins/*}:enable', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPlugin' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/plugins/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_rest_client_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_rest_client_config.php deleted file mode 100644 index 7e7214c1695e..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/api_hub_rest_client_config.php +++ /dev/null @@ -1,522 +0,0 @@ - [ - 'google.cloud.apihub.v1.ApiHub' => [ - 'CreateApi' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apis', - 'body' => 'api', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAttribute' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attributes', - 'body' => 'attribute', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeployment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployments', - 'body' => 'deployment', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateExternalApi' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/externalApis', - 'body' => 'external_api', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSpec' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs', - 'body' => 'spec', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/versions', - 'body' => 'version', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteApi' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAttribute' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/attributes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeployment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteExternalApi' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/externalApis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSpec' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteVersion' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApi' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApiOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAttribute' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/attributes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDefinition' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/definitions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDeployment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetExternalApi' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/externalApis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpec' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpecContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:contents', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetVersion' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApiOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*}/operations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListApis' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apis', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAttributes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/attributes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeployments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListExternalApis' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/externalApis', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpecs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListVersions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/versions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SearchResources' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{location=projects/*/locations/*}:searchResources', - 'body' => '*', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'UpdateApi' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{api.name=projects/*/locations/*/apis/*}', - 'body' => 'api', - 'placeholders' => [ - 'api.name' => [ - 'getters' => [ - 'getApi', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAttribute' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{attribute.name=projects/*/locations/*/attributes/*}', - 'body' => 'attribute', - 'placeholders' => [ - 'attribute.name' => [ - 'getters' => [ - 'getAttribute', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDeployment' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{deployment.name=projects/*/locations/*/deployments/*}', - 'body' => 'deployment', - 'placeholders' => [ - 'deployment.name' => [ - 'getters' => [ - 'getDeployment', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateExternalApi' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{external_api.name=projects/*/locations/*/externalApis/*}', - 'body' => 'external_api', - 'placeholders' => [ - 'external_api.name' => [ - 'getters' => [ - 'getExternalApi', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSpec' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{spec.name=projects/*/locations/*/apis/*/versions/*/specs/*}', - 'body' => 'spec', - 'placeholders' => [ - 'spec.name' => [ - 'getters' => [ - 'getSpec', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateVersion' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{version.name=projects/*/locations/*/apis/*/versions/*}', - 'body' => 'version', - 'placeholders' => [ - 'version.name' => [ - 'getters' => [ - 'getVersion', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_client_config.json b/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_client_config.json deleted file mode 100644 index a53394d88e2f..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_client_config.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "interfaces": { - "google.cloud.apihub.v1.HostProjectRegistrationService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateHostProjectRegistration": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetHostProjectRegistration": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListHostProjectRegistrations": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_descriptor_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_descriptor_config.php deleted file mode 100644 index 08d67b403c72..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_descriptor_config.php +++ /dev/null @@ -1,111 +0,0 @@ - [ - 'google.cloud.apihub.v1.HostProjectRegistrationService' => [ - 'CreateHostProjectRegistration' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\HostProjectRegistration', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetHostProjectRegistration' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\HostProjectRegistration', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListHostProjectRegistrations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getHostProjectRegistrations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListHostProjectRegistrationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'hostProjectRegistration' => 'projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}', - 'location' => 'projects/{project}/locations/{location}', - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_rest_client_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_rest_client_config.php deleted file mode 100644 index 618cdf584b2f..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/host_project_registration_service_rest_client_config.php +++ /dev/null @@ -1,137 +0,0 @@ - [ - 'google.cloud.apihub.v1.HostProjectRegistrationService' => [ - 'CreateHostProjectRegistration' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/hostProjectRegistrations', - 'body' => 'host_project_registration', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'host_project_registration_id', - ], - ], - 'GetHostProjectRegistration' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/hostProjectRegistrations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListHostProjectRegistrations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/hostProjectRegistrations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_client_config.json b/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_client_config.json deleted file mode 100644 index f9458e392ed3..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_client_config.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "interfaces": { - "google.cloud.apihub.v1.LintingService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "GetStyleGuide": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetStyleGuideContents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "LintSpec": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateStyleGuide": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_descriptor_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_descriptor_config.php deleted file mode 100644 index 1abedf5d3cb9..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_descriptor_config.php +++ /dev/null @@ -1,115 +0,0 @@ - [ - 'google.cloud.apihub.v1.LintingService' => [ - 'GetStyleGuide' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\StyleGuide', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetStyleGuideContents' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\StyleGuideContents', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'LintSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateStyleGuide' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\StyleGuide', - 'headerParams' => [ - [ - 'keyName' => 'style_guide.name', - 'fieldAccessors' => [ - 'getStyleGuide', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'spec' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}', - 'styleGuide' => 'projects/{project}/locations/{location}/plugins/{plugin}/styleGuide', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_rest_client_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_rest_client_config.php deleted file mode 100644 index 875b4c3282ef..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/linting_service_rest_client_config.php +++ /dev/null @@ -1,147 +0,0 @@ - [ - 'google.cloud.apihub.v1.LintingService' => [ - 'GetStyleGuide' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/plugins/*/styleGuide}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetStyleGuideContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/plugins/*/styleGuide}:contents', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'LintSpec' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:lint', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateStyleGuide' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{style_guide.name=projects/*/locations/*/plugins/*/styleGuide}', - 'body' => 'style_guide', - 'placeholders' => [ - 'style_guide.name' => [ - 'getters' => [ - 'getStyleGuide', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_client_config.json b/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_client_config.json deleted file mode 100644 index 94731acd227f..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_client_config.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "interfaces": { - "google.cloud.apihub.v1.Provisioning": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateApiHubInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetApiHubInstance": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "LookupApiHubInstance": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_descriptor_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_descriptor_config.php deleted file mode 100644 index 54dc5e4857fa..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_descriptor_config.php +++ /dev/null @@ -1,109 +0,0 @@ - [ - 'google.cloud.apihub.v1.Provisioning' => [ - 'CreateApiHubInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiHub\V1\ApiHubInstance', - 'metadataReturnType' => '\Google\Cloud\ApiHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetApiHubInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ApiHubInstance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'LookupApiHubInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\LookupApiHubInstanceResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'apiHubInstance' => 'projects/{project}/locations/{location}/apiHubInstances/{api_hub_instance}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_rest_client_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_rest_client_config.php deleted file mode 100644 index c978445b4824..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/provisioning_rest_client_config.php +++ /dev/null @@ -1,134 +0,0 @@ - [ - 'google.cloud.apihub.v1.Provisioning' => [ - 'CreateApiHubInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apiHubInstances', - 'body' => 'api_hub_instance', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetApiHubInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apiHubInstances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'LookupApiHubInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apiHubInstances:lookup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_client_config.json b/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_client_config.json deleted file mode 100644 index 78f583dbd436..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_client_config.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "interfaces": { - "google.cloud.apihub.v1.RuntimeProjectAttachmentService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateRuntimeProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteRuntimeProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetRuntimeProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRuntimeProjectAttachments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "LookupRuntimeProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_descriptor_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_descriptor_config.php deleted file mode 100644 index 664ffb2b2aff..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_descriptor_config.php +++ /dev/null @@ -1,135 +0,0 @@ - [ - 'google.cloud.apihub.v1.RuntimeProjectAttachmentService' => [ - 'CreateRuntimeProjectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\RuntimeProjectAttachment', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteRuntimeProjectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRuntimeProjectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\RuntimeProjectAttachment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRuntimeProjectAttachments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRuntimeProjectAttachments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\ListRuntimeProjectAttachmentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'LookupRuntimeProjectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiHub\V1\LookupRuntimeProjectAttachmentResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'location' => 'projects/{project}/locations/{location}', - 'project' => 'projects/{project}', - 'runtimeProjectAttachment' => 'projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_rest_client_config.php b/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_rest_client_config.php deleted file mode 100644 index 9938a51266c3..000000000000 --- a/owl-bot-staging/ApiHub/v1/src/V1/resources/runtime_project_attachment_service_rest_client_config.php +++ /dev/null @@ -1,159 +0,0 @@ - [ - 'google.cloud.apihub.v1.RuntimeProjectAttachmentService' => [ - 'CreateRuntimeProjectAttachment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/runtimeProjectAttachments', - 'body' => 'runtime_project_attachment', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'runtime_project_attachment_id', - ], - ], - 'DeleteRuntimeProjectAttachment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/runtimeProjectAttachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRuntimeProjectAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/runtimeProjectAttachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRuntimeProjectAttachments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/runtimeProjectAttachments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'LookupRuntimeProjectAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupRuntimeProjectAttachment', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubClientTest.php b/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubClientTest.php deleted file mode 100644 index 5c70fc53c6da..000000000000 --- a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubClientTest.php +++ /dev/null @@ -1,2855 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ApiHubClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ApiHubClient($options); - } - - /** @test */ - public function createApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $selectedVersion = 'selectedVersion-1981289676'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSelectedVersion($selectedVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $api = new Api(); - $apiDisplayName = 'apiDisplayName-540110861'; - $api->setDisplayName($apiDisplayName); - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApi($api); - $response = $gapicClient->createApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/CreateApi', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $api = new Api(); - $apiDisplayName = 'apiDisplayName-540110861'; - $api->setDisplayName($apiDisplayName); - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApi($api); - try { - $gapicClient->createApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAttributeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $cardinality = 845213070; - $mandatory = false; - $expectedResponse = new Attribute(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCardinality($cardinality); - $expectedResponse->setMandatory($mandatory); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $attribute = new Attribute(); - $attributeDisplayName = 'attributeDisplayName-25142735'; - $attribute->setDisplayName($attributeDisplayName); - $attributeScope = Scope::SCOPE_UNSPECIFIED; - $attribute->setScope($attributeScope); - $attributeDataType = DataType::DATA_TYPE_UNSPECIFIED; - $attribute->setDataType($attributeDataType); - $request = (new CreateAttributeRequest()) - ->setParent($formattedParent) - ->setAttribute($attribute); - $response = $gapicClient->createAttribute($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/CreateAttribute', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAttribute(); - $this->assertProtobufEquals($attribute, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAttributeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $attribute = new Attribute(); - $attributeDisplayName = 'attributeDisplayName-25142735'; - $attribute->setDisplayName($attributeDisplayName); - $attributeScope = Scope::SCOPE_UNSPECIFIED; - $attribute->setScope($attributeScope); - $attributeDataType = DataType::DATA_TYPE_UNSPECIFIED; - $attribute->setDataType($attributeDataType); - $request = (new CreateAttributeRequest()) - ->setParent($formattedParent) - ->setAttribute($attribute); - try { - $gapicClient->createAttribute($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $resourceUri = 'resourceUri-384040517'; - $expectedResponse = new Deployment(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setResourceUri($resourceUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $deployment = new Deployment(); - $deploymentDisplayName = 'deploymentDisplayName-275331480'; - $deployment->setDisplayName($deploymentDisplayName); - $deploymentDeploymentType = new AttributeValues(); - $deployment->setDeploymentType($deploymentDeploymentType); - $deploymentResourceUri = 'deploymentResourceUri-754952583'; - $deployment->setResourceUri($deploymentResourceUri); - $deploymentEndpoints = []; - $deployment->setEndpoints($deploymentEndpoints); - $request = (new CreateDeploymentRequest()) - ->setParent($formattedParent) - ->setDeployment($deployment); - $response = $gapicClient->createDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/CreateDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDeployment(); - $this->assertProtobufEquals($deployment, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $deployment = new Deployment(); - $deploymentDisplayName = 'deploymentDisplayName-275331480'; - $deployment->setDisplayName($deploymentDisplayName); - $deploymentDeploymentType = new AttributeValues(); - $deployment->setDeploymentType($deploymentDeploymentType); - $deploymentResourceUri = 'deploymentResourceUri-754952583'; - $deployment->setResourceUri($deploymentResourceUri); - $deploymentEndpoints = []; - $deployment->setEndpoints($deploymentEndpoints); - $request = (new CreateDeploymentRequest()) - ->setParent($formattedParent) - ->setDeployment($deployment); - try { - $gapicClient->createDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExternalApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExternalApi(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $externalApi = new ExternalApi(); - $externalApiDisplayName = 'externalApiDisplayName1256374430'; - $externalApi->setDisplayName($externalApiDisplayName); - $request = (new CreateExternalApiRequest()) - ->setParent($formattedParent) - ->setExternalApi($externalApi); - $response = $gapicClient->createExternalApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/CreateExternalApi', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getExternalApi(); - $this->assertProtobufEquals($externalApi, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createExternalApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $externalApi = new ExternalApi(); - $externalApiDisplayName = 'externalApiDisplayName1256374430'; - $externalApi->setDisplayName($externalApiDisplayName); - $request = (new CreateExternalApiRequest()) - ->setParent($formattedParent) - ->setExternalApi($externalApi); - try { - $gapicClient->createExternalApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $sourceUri = 'sourceUri-1111107768'; - $expectedResponse = new Spec(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSourceUri($sourceUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $spec = new Spec(); - $specDisplayName = 'specDisplayName194180018'; - $spec->setDisplayName($specDisplayName); - $specSpecType = new AttributeValues(); - $spec->setSpecType($specSpecType); - $request = (new CreateSpecRequest()) - ->setParent($formattedParent) - ->setSpec($spec); - $response = $gapicClient->createSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/CreateSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSpec(); - $this->assertProtobufEquals($spec, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $spec = new Spec(); - $specDisplayName = 'specDisplayName194180018'; - $spec->setDisplayName($specDisplayName); - $specSpecType = new AttributeValues(); - $spec->setSpecType($specSpecType); - $request = (new CreateSpecRequest()) - ->setParent($formattedParent) - ->setSpec($spec); - try { - $gapicClient->createSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $selectedDeployment = 'selectedDeployment-550043927'; - $expectedResponse = new Version(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSelectedDeployment($selectedDeployment); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $version = new Version(); - $versionDisplayName = 'versionDisplayName1702521461'; - $version->setDisplayName($versionDisplayName); - $request = (new CreateVersionRequest()) - ->setParent($formattedParent) - ->setVersion($version); - $response = $gapicClient->createVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/CreateVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getVersion(); - $this->assertProtobufEquals($version, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $version = new Version(); - $versionDisplayName = 'versionDisplayName1702521461'; - $version->setDisplayName($versionDisplayName); - $request = (new CreateVersionRequest()) - ->setParent($formattedParent) - ->setVersion($version); - try { - $gapicClient->createVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new DeleteApiRequest()) - ->setName($formattedName); - $gapicClient->deleteApi($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/DeleteApi', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new DeleteApiRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAttributeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attributeName('[PROJECT]', '[LOCATION]', '[ATTRIBUTE]'); - $request = (new DeleteAttributeRequest()) - ->setName($formattedName); - $gapicClient->deleteAttribute($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/DeleteAttribute', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAttributeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attributeName('[PROJECT]', '[LOCATION]', '[ATTRIBUTE]'); - $request = (new DeleteAttributeRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAttribute($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); - $request = (new DeleteDeploymentRequest()) - ->setName($formattedName); - $gapicClient->deleteDeployment($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/DeleteDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); - $request = (new DeleteDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExternalApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->externalApiName('[PROJECT]', '[LOCATION]', '[EXTERNAL_API]'); - $request = (new DeleteExternalApiRequest()) - ->setName($formattedName); - $gapicClient->deleteExternalApi($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/DeleteExternalApi', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteExternalApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->externalApiName('[PROJECT]', '[LOCATION]', '[EXTERNAL_API]'); - $request = (new DeleteExternalApiRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteExternalApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new DeleteSpecRequest()) - ->setName($formattedName); - $gapicClient->deleteSpec($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/DeleteSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new DeleteSpecRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new DeleteVersionRequest()) - ->setName($formattedName); - $gapicClient->deleteVersion($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/DeleteVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new DeleteVersionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $selectedVersion = 'selectedVersion-1981289676'; - $expectedResponse = new Api(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSelectedVersion($selectedVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new GetApiRequest()) - ->setName($formattedName); - $response = $gapicClient->getApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetApi', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new GetApiRequest()) - ->setName($formattedName); - try { - $gapicClient->getApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $spec = 'spec3536827'; - $expectedResponse = new ApiOperation(); - $expectedResponse->setName($name2); - $expectedResponse->setSpec($spec); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiOperationName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[OPERATION]'); - $request = (new GetApiOperationRequest()) - ->setName($formattedName); - $response = $gapicClient->getApiOperation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetApiOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiOperationName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[OPERATION]'); - $request = (new GetApiOperationRequest()) - ->setName($formattedName); - try { - $gapicClient->getApiOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $cardinality = 845213070; - $mandatory = false; - $expectedResponse = new Attribute(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCardinality($cardinality); - $expectedResponse->setMandatory($mandatory); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attributeName('[PROJECT]', '[LOCATION]', '[ATTRIBUTE]'); - $request = (new GetAttributeRequest()) - ->setName($formattedName); - $response = $gapicClient->getAttribute($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetAttribute', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttributeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attributeName('[PROJECT]', '[LOCATION]', '[ATTRIBUTE]'); - $request = (new GetAttributeRequest()) - ->setName($formattedName); - try { - $gapicClient->getAttribute($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDefinitionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $spec = 'spec3536827'; - $expectedResponse = new Definition(); - $expectedResponse->setName($name2); - $expectedResponse->setSpec($spec); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->definitionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[DEFINITION]'); - $request = (new GetDefinitionRequest()) - ->setName($formattedName); - $response = $gapicClient->getDefinition($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetDefinition', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDefinitionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->definitionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[DEFINITION]'); - $request = (new GetDefinitionRequest()) - ->setName($formattedName); - try { - $gapicClient->getDefinition($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $resourceUri = 'resourceUri-384040517'; - $expectedResponse = new Deployment(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setResourceUri($resourceUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); - $request = (new GetDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->getDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deploymentName('[PROJECT]', '[LOCATION]', '[DEPLOYMENT]'); - $request = (new GetDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->getDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExternalApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExternalApi(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->externalApiName('[PROJECT]', '[LOCATION]', '[EXTERNAL_API]'); - $request = (new GetExternalApiRequest()) - ->setName($formattedName); - $response = $gapicClient->getExternalApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetExternalApi', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getExternalApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->externalApiName('[PROJECT]', '[LOCATION]', '[EXTERNAL_API]'); - $request = (new GetExternalApiRequest()) - ->setName($formattedName); - try { - $gapicClient->getExternalApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $sourceUri = 'sourceUri-1111107768'; - $expectedResponse = new Spec(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSourceUri($sourceUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetSpecRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetSpecRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpecContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contents = '26'; - $mimeType = 'mimeType-196041627'; - $expectedResponse = new SpecContents(); - $expectedResponse->setContents($contents); - $expectedResponse->setMimeType($mimeType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetSpecContentsRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpecContents($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetSpecContents', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpecContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetSpecContentsRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpecContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $selectedDeployment = 'selectedDeployment-550043927'; - $expectedResponse = new Version(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSelectedDeployment($selectedDeployment); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new GetVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->getVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/GetVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new GetVersionRequest()) - ->setName($formattedName); - try { - $gapicClient->getVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiOperationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apiOperationsElement = new ApiOperation(); - $apiOperations = [ - $apiOperationsElement, - ]; - $expectedResponse = new ListApiOperationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApiOperations($apiOperations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new ListApiOperationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApiOperations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApiOperations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/ListApiOperations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiOperationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new ListApiOperationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApiOperations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApisTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apisElement = new Api(); - $apis = [ - $apisElement, - ]; - $expectedResponse = new ListApisResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApis($apis); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApisRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApis($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApis()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/ListApis', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApisExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApisRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApis($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAttributesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $attributesElement = new Attribute(); - $attributes = [ - $attributesElement, - ]; - $expectedResponse = new ListAttributesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAttributes($attributes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAttributesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAttributes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAttributes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/ListAttributes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAttributesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAttributesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAttributes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeploymentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $deploymentsElement = new Deployment(); - $deployments = [ - $deploymentsElement, - ]; - $expectedResponse = new ListDeploymentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDeployments($deployments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDeploymentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDeployments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDeployments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/ListDeployments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeploymentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDeploymentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDeployments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExternalApisTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $externalApisElement = new ExternalApi(); - $externalApis = [ - $externalApisElement, - ]; - $expectedResponse = new ListExternalApisResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setExternalApis($externalApis); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListExternalApisRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listExternalApis($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getExternalApis()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/ListExternalApis', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listExternalApisExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListExternalApisRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listExternalApis($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpecsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $specsElement = new Spec(); - $specs = [ - $specsElement, - ]; - $expectedResponse = new ListSpecsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSpecs($specs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new ListSpecsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSpecs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpecs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/ListSpecs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpecsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new ListSpecsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSpecs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVersionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $versionsElement = new Version(); - $versions = [ - $versionsElement, - ]; - $expectedResponse = new ListVersionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setVersions($versions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new ListVersionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listVersions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVersions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/ListVersions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVersionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new ListVersionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listVersions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchResourcesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $searchResultsElement = new SearchResult(); - $searchResults = [ - $searchResultsElement, - ]; - $expectedResponse = new SearchResourcesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchResults($searchResults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $query = 'query107944136'; - $request = (new SearchResourcesRequest()) - ->setLocation($formattedLocation) - ->setQuery($query); - $response = $gapicClient->searchResources($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/SearchResources', $actualFuncCall); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchResourcesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $query = 'query107944136'; - $request = (new SearchResourcesRequest()) - ->setLocation($formattedLocation) - ->setQuery($query); - try { - $gapicClient->searchResources($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $selectedVersion = 'selectedVersion-1981289676'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSelectedVersion($selectedVersion); - $transport->addResponse($expectedResponse); - // Mock request - $api = new Api(); - $apiDisplayName = 'apiDisplayName-540110861'; - $api->setDisplayName($apiDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateApiRequest()) - ->setApi($api) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/UpdateApi', $actualFuncCall); - $actualValue = $actualRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $api = new Api(); - $apiDisplayName = 'apiDisplayName-540110861'; - $api->setDisplayName($apiDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateApiRequest()) - ->setApi($api) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $cardinality = 845213070; - $mandatory = false; - $expectedResponse = new Attribute(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setCardinality($cardinality); - $expectedResponse->setMandatory($mandatory); - $transport->addResponse($expectedResponse); - // Mock request - $attribute = new Attribute(); - $attributeDisplayName = 'attributeDisplayName-25142735'; - $attribute->setDisplayName($attributeDisplayName); - $attributeScope = Scope::SCOPE_UNSPECIFIED; - $attribute->setScope($attributeScope); - $attributeDataType = DataType::DATA_TYPE_UNSPECIFIED; - $attribute->setDataType($attributeDataType); - $updateMask = new FieldMask(); - $request = (new UpdateAttributeRequest()) - ->setAttribute($attribute) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAttribute($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/UpdateAttribute', $actualFuncCall); - $actualValue = $actualRequestObject->getAttribute(); - $this->assertProtobufEquals($attribute, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAttributeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $attribute = new Attribute(); - $attributeDisplayName = 'attributeDisplayName-25142735'; - $attribute->setDisplayName($attributeDisplayName); - $attributeScope = Scope::SCOPE_UNSPECIFIED; - $attribute->setScope($attributeScope); - $attributeDataType = DataType::DATA_TYPE_UNSPECIFIED; - $attribute->setDataType($attributeDataType); - $updateMask = new FieldMask(); - $request = (new UpdateAttributeRequest()) - ->setAttribute($attribute) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateAttribute($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $resourceUri = 'resourceUri-384040517'; - $expectedResponse = new Deployment(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setResourceUri($resourceUri); - $transport->addResponse($expectedResponse); - // Mock request - $deployment = new Deployment(); - $deploymentDisplayName = 'deploymentDisplayName-275331480'; - $deployment->setDisplayName($deploymentDisplayName); - $deploymentDeploymentType = new AttributeValues(); - $deployment->setDeploymentType($deploymentDeploymentType); - $deploymentResourceUri = 'deploymentResourceUri-754952583'; - $deployment->setResourceUri($deploymentResourceUri); - $deploymentEndpoints = []; - $deployment->setEndpoints($deploymentEndpoints); - $updateMask = new FieldMask(); - $request = (new UpdateDeploymentRequest()) - ->setDeployment($deployment) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/UpdateDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getDeployment(); - $this->assertProtobufEquals($deployment, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $deployment = new Deployment(); - $deploymentDisplayName = 'deploymentDisplayName-275331480'; - $deployment->setDisplayName($deploymentDisplayName); - $deploymentDeploymentType = new AttributeValues(); - $deployment->setDeploymentType($deploymentDeploymentType); - $deploymentResourceUri = 'deploymentResourceUri-754952583'; - $deployment->setResourceUri($deploymentResourceUri); - $deploymentEndpoints = []; - $deployment->setEndpoints($deploymentEndpoints); - $updateMask = new FieldMask(); - $request = (new UpdateDeploymentRequest()) - ->setDeployment($deployment) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExternalApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new ExternalApi(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $externalApi = new ExternalApi(); - $externalApiDisplayName = 'externalApiDisplayName1256374430'; - $externalApi->setDisplayName($externalApiDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateExternalApiRequest()) - ->setExternalApi($externalApi) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateExternalApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/UpdateExternalApi', $actualFuncCall); - $actualValue = $actualRequestObject->getExternalApi(); - $this->assertProtobufEquals($externalApi, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateExternalApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $externalApi = new ExternalApi(); - $externalApiDisplayName = 'externalApiDisplayName1256374430'; - $externalApi->setDisplayName($externalApiDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateExternalApiRequest()) - ->setExternalApi($externalApi) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateExternalApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $sourceUri = 'sourceUri-1111107768'; - $expectedResponse = new Spec(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSourceUri($sourceUri); - $transport->addResponse($expectedResponse); - // Mock request - $spec = new Spec(); - $specDisplayName = 'specDisplayName194180018'; - $spec->setDisplayName($specDisplayName); - $specSpecType = new AttributeValues(); - $spec->setSpecType($specSpecType); - $updateMask = new FieldMask(); - $request = (new UpdateSpecRequest()) - ->setSpec($spec) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/UpdateSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getSpec(); - $this->assertProtobufEquals($spec, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $spec = new Spec(); - $specDisplayName = 'specDisplayName194180018'; - $spec->setDisplayName($specDisplayName); - $specSpecType = new AttributeValues(); - $spec->setSpecType($specSpecType); - $updateMask = new FieldMask(); - $request = (new UpdateSpecRequest()) - ->setSpec($spec) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $selectedDeployment = 'selectedDeployment-550043927'; - $expectedResponse = new Version(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSelectedDeployment($selectedDeployment); - $transport->addResponse($expectedResponse); - // Mock request - $version = new Version(); - $versionDisplayName = 'versionDisplayName1702521461'; - $version->setDisplayName($versionDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateVersionRequest()) - ->setVersion($version) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/UpdateVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getVersion(); - $this->assertProtobufEquals($version, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $version = new Version(); - $versionDisplayName = 'versionDisplayName1702521461'; - $version->setDisplayName($versionDisplayName); - $updateMask = new FieldMask(); - $request = (new UpdateVersionRequest()) - ->setVersion($version) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $selectedVersion = 'selectedVersion-1981289676'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setSelectedVersion($selectedVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $api = new Api(); - $apiDisplayName = 'apiDisplayName-540110861'; - $api->setDisplayName($apiDisplayName); - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApi($api); - $response = $gapicClient->createApiAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHub/CreateApi', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubDependenciesClientTest.php b/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubDependenciesClientTest.php deleted file mode 100644 index 96330fa46e9f..000000000000 --- a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubDependenciesClientTest.php +++ /dev/null @@ -1,596 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ApiHubDependenciesClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ApiHubDependenciesClient($options); - } - - /** @test */ - public function createDependencyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new Dependency(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dependency = new Dependency(); - $dependencyConsumer = new DependencyEntityReference(); - $dependency->setConsumer($dependencyConsumer); - $dependencySupplier = new DependencyEntityReference(); - $dependency->setSupplier($dependencySupplier); - $request = (new CreateDependencyRequest()) - ->setParent($formattedParent) - ->setDependency($dependency); - $response = $gapicClient->createDependency($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubDependencies/CreateDependency', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDependency(); - $this->assertProtobufEquals($dependency, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDependencyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dependency = new Dependency(); - $dependencyConsumer = new DependencyEntityReference(); - $dependency->setConsumer($dependencyConsumer); - $dependencySupplier = new DependencyEntityReference(); - $dependency->setSupplier($dependencySupplier); - $request = (new CreateDependencyRequest()) - ->setParent($formattedParent) - ->setDependency($dependency); - try { - $gapicClient->createDependency($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDependencyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dependencyName('[PROJECT]', '[LOCATION]', '[DEPENDENCY]'); - $request = (new DeleteDependencyRequest()) - ->setName($formattedName); - $gapicClient->deleteDependency($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubDependencies/DeleteDependency', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDependencyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dependencyName('[PROJECT]', '[LOCATION]', '[DEPENDENCY]'); - $request = (new DeleteDependencyRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDependency($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDependencyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new Dependency(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dependencyName('[PROJECT]', '[LOCATION]', '[DEPENDENCY]'); - $request = (new GetDependencyRequest()) - ->setName($formattedName); - $response = $gapicClient->getDependency($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubDependencies/GetDependency', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDependencyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dependencyName('[PROJECT]', '[LOCATION]', '[DEPENDENCY]'); - $request = (new GetDependencyRequest()) - ->setName($formattedName); - try { - $gapicClient->getDependency($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDependenciesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dependenciesElement = new Dependency(); - $dependencies = [ - $dependenciesElement, - ]; - $expectedResponse = new ListDependenciesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDependencies($dependencies); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDependenciesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDependencies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDependencies()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubDependencies/ListDependencies', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDependenciesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDependenciesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDependencies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDependencyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new Dependency(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $dependency = new Dependency(); - $dependencyConsumer = new DependencyEntityReference(); - $dependency->setConsumer($dependencyConsumer); - $dependencySupplier = new DependencyEntityReference(); - $dependency->setSupplier($dependencySupplier); - $updateMask = new FieldMask(); - $request = (new UpdateDependencyRequest()) - ->setDependency($dependency) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDependency($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubDependencies/UpdateDependency', $actualFuncCall); - $actualValue = $actualRequestObject->getDependency(); - $this->assertProtobufEquals($dependency, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDependencyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dependency = new Dependency(); - $dependencyConsumer = new DependencyEntityReference(); - $dependency->setConsumer($dependencyConsumer); - $dependencySupplier = new DependencyEntityReference(); - $dependency->setSupplier($dependencySupplier); - $updateMask = new FieldMask(); - $request = (new UpdateDependencyRequest()) - ->setDependency($dependency) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDependency($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDependencyAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new Dependency(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dependency = new Dependency(); - $dependencyConsumer = new DependencyEntityReference(); - $dependency->setConsumer($dependencyConsumer); - $dependencySupplier = new DependencyEntityReference(); - $dependency->setSupplier($dependencySupplier); - $request = (new CreateDependencyRequest()) - ->setParent($formattedParent) - ->setDependency($dependency); - $response = $gapicClient->createDependencyAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubDependencies/CreateDependency', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDependency(); - $this->assertProtobufEquals($dependency, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubPluginClientTest.php b/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubPluginClientTest.php deleted file mode 100644 index 64f7bc33050a..000000000000 --- a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ApiHubPluginClientTest.php +++ /dev/null @@ -1,429 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ApiHubPluginClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ApiHubPluginClient($options); - } - - /** @test */ - public function disablePluginTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new Plugin(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new DisablePluginRequest()) - ->setName($formattedName); - $response = $gapicClient->disablePlugin($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubPlugin/DisablePlugin', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function disablePluginExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new DisablePluginRequest()) - ->setName($formattedName); - try { - $gapicClient->disablePlugin($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function enablePluginTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new Plugin(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new EnablePluginRequest()) - ->setName($formattedName); - $response = $gapicClient->enablePlugin($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubPlugin/EnablePlugin', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function enablePluginExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new EnablePluginRequest()) - ->setName($formattedName); - try { - $gapicClient->enablePlugin($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPluginTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new Plugin(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new GetPluginRequest()) - ->setName($formattedName); - $response = $gapicClient->getPlugin($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubPlugin/GetPlugin', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPluginExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new GetPluginRequest()) - ->setName($formattedName); - try { - $gapicClient->getPlugin($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function disablePluginAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new Plugin(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->pluginName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new DisablePluginRequest()) - ->setName($formattedName); - $response = $gapicClient->disablePluginAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.ApiHubPlugin/DisablePlugin', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/HostProjectRegistrationServiceClientTest.php b/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/HostProjectRegistrationServiceClientTest.php deleted file mode 100644 index 74057fecb859..000000000000 --- a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/HostProjectRegistrationServiceClientTest.php +++ /dev/null @@ -1,454 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return HostProjectRegistrationServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new HostProjectRegistrationServiceClient($options); - } - - /** @test */ - public function createHostProjectRegistrationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $gcpProject = 'gcpProject-1199887122'; - $expectedResponse = new HostProjectRegistration(); - $expectedResponse->setName($name); - $expectedResponse->setGcpProject($gcpProject); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $hostProjectRegistrationId = 'hostProjectRegistrationId-52202588'; - $hostProjectRegistration = new HostProjectRegistration(); - $hostProjectRegistrationGcpProject = $gapicClient->projectName('[PROJECT]'); - $hostProjectRegistration->setGcpProject($hostProjectRegistrationGcpProject); - $request = (new CreateHostProjectRegistrationRequest()) - ->setParent($formattedParent) - ->setHostProjectRegistrationId($hostProjectRegistrationId) - ->setHostProjectRegistration($hostProjectRegistration); - $response = $gapicClient->createHostProjectRegistration($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.HostProjectRegistrationService/CreateHostProjectRegistration', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getHostProjectRegistrationId(); - $this->assertProtobufEquals($hostProjectRegistrationId, $actualValue); - $actualValue = $actualRequestObject->getHostProjectRegistration(); - $this->assertProtobufEquals($hostProjectRegistration, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createHostProjectRegistrationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $hostProjectRegistrationId = 'hostProjectRegistrationId-52202588'; - $hostProjectRegistration = new HostProjectRegistration(); - $hostProjectRegistrationGcpProject = $gapicClient->projectName('[PROJECT]'); - $hostProjectRegistration->setGcpProject($hostProjectRegistrationGcpProject); - $request = (new CreateHostProjectRegistrationRequest()) - ->setParent($formattedParent) - ->setHostProjectRegistrationId($hostProjectRegistrationId) - ->setHostProjectRegistration($hostProjectRegistration); - try { - $gapicClient->createHostProjectRegistration($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getHostProjectRegistrationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $gcpProject = 'gcpProject-1199887122'; - $expectedResponse = new HostProjectRegistration(); - $expectedResponse->setName($name2); - $expectedResponse->setGcpProject($gcpProject); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->hostProjectRegistrationName('[PROJECT]', '[LOCATION]', '[HOST_PROJECT_REGISTRATION]'); - $request = (new GetHostProjectRegistrationRequest()) - ->setName($formattedName); - $response = $gapicClient->getHostProjectRegistration($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.HostProjectRegistrationService/GetHostProjectRegistration', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getHostProjectRegistrationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->hostProjectRegistrationName('[PROJECT]', '[LOCATION]', '[HOST_PROJECT_REGISTRATION]'); - $request = (new GetHostProjectRegistrationRequest()) - ->setName($formattedName); - try { - $gapicClient->getHostProjectRegistration($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listHostProjectRegistrationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $hostProjectRegistrationsElement = new HostProjectRegistration(); - $hostProjectRegistrations = [ - $hostProjectRegistrationsElement, - ]; - $expectedResponse = new ListHostProjectRegistrationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setHostProjectRegistrations($hostProjectRegistrations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListHostProjectRegistrationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listHostProjectRegistrations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getHostProjectRegistrations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.HostProjectRegistrationService/ListHostProjectRegistrations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listHostProjectRegistrationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListHostProjectRegistrationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listHostProjectRegistrations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createHostProjectRegistrationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $gcpProject = 'gcpProject-1199887122'; - $expectedResponse = new HostProjectRegistration(); - $expectedResponse->setName($name); - $expectedResponse->setGcpProject($gcpProject); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $hostProjectRegistrationId = 'hostProjectRegistrationId-52202588'; - $hostProjectRegistration = new HostProjectRegistration(); - $hostProjectRegistrationGcpProject = $gapicClient->projectName('[PROJECT]'); - $hostProjectRegistration->setGcpProject($hostProjectRegistrationGcpProject); - $request = (new CreateHostProjectRegistrationRequest()) - ->setParent($formattedParent) - ->setHostProjectRegistrationId($hostProjectRegistrationId) - ->setHostProjectRegistration($hostProjectRegistration); - $response = $gapicClient->createHostProjectRegistrationAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.HostProjectRegistrationService/CreateHostProjectRegistration', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getHostProjectRegistrationId(); - $this->assertProtobufEquals($hostProjectRegistrationId, $actualValue); - $actualValue = $actualRequestObject->getHostProjectRegistration(); - $this->assertProtobufEquals($hostProjectRegistration, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/LintingServiceClientTest.php b/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/LintingServiceClientTest.php deleted file mode 100644 index db793f59911c..000000000000 --- a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/LintingServiceClientTest.php +++ /dev/null @@ -1,496 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return LintingServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new LintingServiceClient($options); - } - - /** @test */ - public function getStyleGuideTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new StyleGuide(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->styleGuideName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new GetStyleGuideRequest()) - ->setName($formattedName); - $response = $gapicClient->getStyleGuide($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.LintingService/GetStyleGuide', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStyleGuideExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->styleGuideName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new GetStyleGuideRequest()) - ->setName($formattedName); - try { - $gapicClient->getStyleGuide($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStyleGuideContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contents = '26'; - $mimeType = 'mimeType-196041627'; - $expectedResponse = new StyleGuideContents(); - $expectedResponse->setContents($contents); - $expectedResponse->setMimeType($mimeType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->styleGuideName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new GetStyleGuideContentsRequest()) - ->setName($formattedName); - $response = $gapicClient->getStyleGuideContents($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.LintingService/GetStyleGuideContents', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStyleGuideContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->styleGuideName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new GetStyleGuideContentsRequest()) - ->setName($formattedName); - try { - $gapicClient->getStyleGuideContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lintSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new LintSpecRequest()) - ->setName($formattedName); - $gapicClient->lintSpec($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.LintingService/LintSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lintSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->specName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new LintSpecRequest()) - ->setName($formattedName); - try { - $gapicClient->lintSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateStyleGuideTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new StyleGuide(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $styleGuide = new StyleGuide(); - $styleGuideLinter = Linter::LINTER_UNSPECIFIED; - $styleGuide->setLinter($styleGuideLinter); - $styleGuideContents = new StyleGuideContents(); - $contentsContents = '84'; - $styleGuideContents->setContents($contentsContents); - $contentsMimeType = 'contentsMimeType1383592648'; - $styleGuideContents->setMimeType($contentsMimeType); - $styleGuide->setContents($styleGuideContents); - $request = (new UpdateStyleGuideRequest()) - ->setStyleGuide($styleGuide); - $response = $gapicClient->updateStyleGuide($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.LintingService/UpdateStyleGuide', $actualFuncCall); - $actualValue = $actualRequestObject->getStyleGuide(); - $this->assertProtobufEquals($styleGuide, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateStyleGuideExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $styleGuide = new StyleGuide(); - $styleGuideLinter = Linter::LINTER_UNSPECIFIED; - $styleGuide->setLinter($styleGuideLinter); - $styleGuideContents = new StyleGuideContents(); - $contentsContents = '84'; - $styleGuideContents->setContents($contentsContents); - $contentsMimeType = 'contentsMimeType1383592648'; - $styleGuideContents->setMimeType($contentsMimeType); - $styleGuide->setContents($styleGuideContents); - $request = (new UpdateStyleGuideRequest()) - ->setStyleGuide($styleGuide); - try { - $gapicClient->updateStyleGuide($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStyleGuideAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new StyleGuide(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->styleGuideName('[PROJECT]', '[LOCATION]', '[PLUGIN]'); - $request = (new GetStyleGuideRequest()) - ->setName($formattedName); - $response = $gapicClient->getStyleGuideAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.LintingService/GetStyleGuide', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ProvisioningClientTest.php b/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ProvisioningClientTest.php deleted file mode 100644 index fcbfc4837b3c..000000000000 --- a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/ProvisioningClientTest.php +++ /dev/null @@ -1,547 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ProvisioningClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ProvisioningClient($options); - } - - /** @test */ - public function createApiHubInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiHubInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $stateMessage = 'stateMessage29641305'; - $description = 'description-1724546052'; - $expectedResponse = new ApiHubInstance(); - $expectedResponse->setName($name); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApiHubInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $apiHubInstance = new ApiHubInstance(); - $apiHubInstanceConfig = new Config(); - $configCmekKeyName = 'configCmekKeyName-1633313736'; - $apiHubInstanceConfig->setCmekKeyName($configCmekKeyName); - $apiHubInstance->setConfig($apiHubInstanceConfig); - $request = (new CreateApiHubInstanceRequest()) - ->setParent($formattedParent) - ->setApiHubInstance($apiHubInstance); - $response = $gapicClient->createApiHubInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.Provisioning/CreateApiHubInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getApiHubInstance(); - $this->assertProtobufEquals($apiHubInstance, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiHubInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApiHubInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiHubInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $apiHubInstance = new ApiHubInstance(); - $apiHubInstanceConfig = new Config(); - $configCmekKeyName = 'configCmekKeyName-1633313736'; - $apiHubInstanceConfig->setCmekKeyName($configCmekKeyName); - $apiHubInstance->setConfig($apiHubInstanceConfig); - $request = (new CreateApiHubInstanceRequest()) - ->setParent($formattedParent) - ->setApiHubInstance($apiHubInstance); - $response = $gapicClient->createApiHubInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiHubInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getApiHubInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $stateMessage = 'stateMessage29641305'; - $description = 'description-1724546052'; - $expectedResponse = new ApiHubInstance(); - $expectedResponse->setName($name2); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiHubInstanceName('[PROJECT]', '[LOCATION]', '[API_HUB_INSTANCE]'); - $request = (new GetApiHubInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getApiHubInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.Provisioning/GetApiHubInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiHubInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiHubInstanceName('[PROJECT]', '[LOCATION]', '[API_HUB_INSTANCE]'); - $request = (new GetApiHubInstanceRequest()) - ->setName($formattedName); - try { - $gapicClient->getApiHubInstance($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupApiHubInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LookupApiHubInstanceResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new LookupApiHubInstanceRequest()) - ->setParent($formattedParent); - $response = $gapicClient->lookupApiHubInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.Provisioning/LookupApiHubInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupApiHubInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new LookupApiHubInstanceRequest()) - ->setParent($formattedParent); - try { - $gapicClient->lookupApiHubInstance($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiHubInstanceAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApiHubInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $stateMessage = 'stateMessage29641305'; - $description = 'description-1724546052'; - $expectedResponse = new ApiHubInstance(); - $expectedResponse->setName($name); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApiHubInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $apiHubInstance = new ApiHubInstance(); - $apiHubInstanceConfig = new Config(); - $configCmekKeyName = 'configCmekKeyName-1633313736'; - $apiHubInstanceConfig->setCmekKeyName($configCmekKeyName); - $apiHubInstance->setConfig($apiHubInstanceConfig); - $request = (new CreateApiHubInstanceRequest()) - ->setParent($formattedParent) - ->setApiHubInstance($apiHubInstance); - $response = $gapicClient->createApiHubInstanceAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.Provisioning/CreateApiHubInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getApiHubInstance(); - $this->assertProtobufEquals($apiHubInstance, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApiHubInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/RuntimeProjectAttachmentServiceClientTest.php b/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/RuntimeProjectAttachmentServiceClientTest.php deleted file mode 100644 index a427f85214ca..000000000000 --- a/owl-bot-staging/ApiHub/v1/tests/Unit/V1/Client/RuntimeProjectAttachmentServiceClientTest.php +++ /dev/null @@ -1,581 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RuntimeProjectAttachmentServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RuntimeProjectAttachmentServiceClient($options); - } - - /** @test */ - public function createRuntimeProjectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $runtimeProject = 'runtimeProject1158703538'; - $expectedResponse = new RuntimeProjectAttachment(); - $expectedResponse->setName($name); - $expectedResponse->setRuntimeProject($runtimeProject); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $runtimeProjectAttachmentId = 'runtimeProjectAttachmentId431078890'; - $runtimeProjectAttachment = new RuntimeProjectAttachment(); - $runtimeProjectAttachmentRuntimeProject = $gapicClient->projectName('[PROJECT]'); - $runtimeProjectAttachment->setRuntimeProject($runtimeProjectAttachmentRuntimeProject); - $request = (new CreateRuntimeProjectAttachmentRequest()) - ->setParent($formattedParent) - ->setRuntimeProjectAttachmentId($runtimeProjectAttachmentId) - ->setRuntimeProjectAttachment($runtimeProjectAttachment); - $response = $gapicClient->createRuntimeProjectAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.RuntimeProjectAttachmentService/CreateRuntimeProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRuntimeProjectAttachmentId(); - $this->assertProtobufEquals($runtimeProjectAttachmentId, $actualValue); - $actualValue = $actualRequestObject->getRuntimeProjectAttachment(); - $this->assertProtobufEquals($runtimeProjectAttachment, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRuntimeProjectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $runtimeProjectAttachmentId = 'runtimeProjectAttachmentId431078890'; - $runtimeProjectAttachment = new RuntimeProjectAttachment(); - $runtimeProjectAttachmentRuntimeProject = $gapicClient->projectName('[PROJECT]'); - $runtimeProjectAttachment->setRuntimeProject($runtimeProjectAttachmentRuntimeProject); - $request = (new CreateRuntimeProjectAttachmentRequest()) - ->setParent($formattedParent) - ->setRuntimeProjectAttachmentId($runtimeProjectAttachmentId) - ->setRuntimeProjectAttachment($runtimeProjectAttachment); - try { - $gapicClient->createRuntimeProjectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRuntimeProjectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->runtimeProjectAttachmentName('[PROJECT]', '[LOCATION]', '[RUNTIME_PROJECT_ATTACHMENT]'); - $request = (new DeleteRuntimeProjectAttachmentRequest()) - ->setName($formattedName); - $gapicClient->deleteRuntimeProjectAttachment($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.RuntimeProjectAttachmentService/DeleteRuntimeProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRuntimeProjectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->runtimeProjectAttachmentName('[PROJECT]', '[LOCATION]', '[RUNTIME_PROJECT_ATTACHMENT]'); - $request = (new DeleteRuntimeProjectAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteRuntimeProjectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuntimeProjectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $runtimeProject = 'runtimeProject1158703538'; - $expectedResponse = new RuntimeProjectAttachment(); - $expectedResponse->setName($name2); - $expectedResponse->setRuntimeProject($runtimeProject); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->runtimeProjectAttachmentName('[PROJECT]', '[LOCATION]', '[RUNTIME_PROJECT_ATTACHMENT]'); - $request = (new GetRuntimeProjectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->getRuntimeProjectAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.RuntimeProjectAttachmentService/GetRuntimeProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuntimeProjectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->runtimeProjectAttachmentName('[PROJECT]', '[LOCATION]', '[RUNTIME_PROJECT_ATTACHMENT]'); - $request = (new GetRuntimeProjectAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->getRuntimeProjectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuntimeProjectAttachmentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $runtimeProjectAttachmentsElement = new RuntimeProjectAttachment(); - $runtimeProjectAttachments = [ - $runtimeProjectAttachmentsElement, - ]; - $expectedResponse = new ListRuntimeProjectAttachmentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRuntimeProjectAttachments($runtimeProjectAttachments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRuntimeProjectAttachmentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRuntimeProjectAttachments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRuntimeProjectAttachments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.RuntimeProjectAttachmentService/ListRuntimeProjectAttachments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRuntimeProjectAttachmentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRuntimeProjectAttachmentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRuntimeProjectAttachments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupRuntimeProjectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LookupRuntimeProjectAttachmentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new LookupRuntimeProjectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->lookupRuntimeProjectAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.RuntimeProjectAttachmentService/LookupRuntimeProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupRuntimeProjectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new LookupRuntimeProjectAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->lookupRuntimeProjectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRuntimeProjectAttachmentAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $runtimeProject = 'runtimeProject1158703538'; - $expectedResponse = new RuntimeProjectAttachment(); - $expectedResponse->setName($name); - $expectedResponse->setRuntimeProject($runtimeProject); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $runtimeProjectAttachmentId = 'runtimeProjectAttachmentId431078890'; - $runtimeProjectAttachment = new RuntimeProjectAttachment(); - $runtimeProjectAttachmentRuntimeProject = $gapicClient->projectName('[PROJECT]'); - $runtimeProjectAttachment->setRuntimeProject($runtimeProjectAttachmentRuntimeProject); - $request = (new CreateRuntimeProjectAttachmentRequest()) - ->setParent($formattedParent) - ->setRuntimeProjectAttachmentId($runtimeProjectAttachmentId) - ->setRuntimeProjectAttachment($runtimeProjectAttachment); - $response = $gapicClient->createRuntimeProjectAttachmentAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apihub.v1.RuntimeProjectAttachmentService/CreateRuntimeProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRuntimeProjectAttachmentId(); - $this->assertProtobufEquals($runtimeProjectAttachmentId, $actualValue); - $actualValue = $actualRequestObject->getRuntimeProjectAttachment(); - $this->assertProtobufEquals($runtimeProjectAttachment, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/GPBMetadata/Google/Api/Apikeys/V2/Apikeys.php b/owl-bot-staging/ApiKeys/v2/proto/src/GPBMetadata/Google/Api/Apikeys/V2/Apikeys.php deleted file mode 100644 index 57fa2714f41a..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/GPBMetadata/Google/Api/Apikeys/V2/Apikeys.php +++ /dev/null @@ -1,86 +0,0 @@ -internalAddGeneratedFile( - ' - -#google/api/apikeys/v2/apikeys.protogoogle.api.apikeys.v2%google/api/apikeys/v2/resources.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" -CreateKeyRequest2 -parent ( B"AAapikeys.googleapis.com/Key, -key ( 2.google.api.apikeys.v2.KeyBA -key_id ( " -ListKeysRequest2 -parent ( B"AAapikeys.googleapis.com/Key - page_size (BA - -page_token ( BA - show_deleted (BA"U -ListKeysResponse( -keys ( 2.google.api.apikeys.v2.Key -next_page_token ( "A - GetKeyRequest0 -name ( B"AA -apikeys.googleapis.com/Key"G -GetKeyStringRequest0 -name ( B"AA -apikeys.googleapis.com/Key"* -GetKeyStringResponse - -key_string ( "q -UpdateKeyRequest, -key ( 2.google.api.apikeys.v2.KeyBA/ - update_mask ( 2.google.protobuf.FieldMask"W -DeleteKeyRequest0 -name ( B"AA -apikeys.googleapis.com/Key -etag ( BA"F -UndeleteKeyRequest0 -name ( B"AA -apikeys.googleapis.com/Key"+ -LookupKeyRequest - -key_string ( BA"1 -LookupKeyResponse -parent (  -name ( 2 -ApiKeys - CreateKey\'.google.api.apikeys.v2.CreateKeyRequest.google.longrunning.Operation"hA -Keygoogle.protobuf.EmptyAparent,key,key_id/"(/v2/{parent=projects/*/locations/*}/keys:key -ListKeys&.google.api.apikeys.v2.ListKeysRequest\'.google.api.apikeys.v2.ListKeysResponse"9Aparent*(/v2/{parent=projects/*/locations/*}/keys -GetKey$.google.api.apikeys.v2.GetKeyRequest.google.api.apikeys.v2.Key"7Aname*(/v2/{name=projects/*/locations/*/keys/*} - GetKeyString*.google.api.apikeys.v2.GetKeyStringRequest+.google.api.apikeys.v2.GetKeyStringResponse"AAname42/v2/{name=projects/*/locations/*/keys/*}/keyString - UpdateKey\'.google.api.apikeys.v2.UpdateKeyRequest.google.longrunning.Operation"jA -Keygoogle.protobuf.EmptyAkey,update_mask32,/v2/{key.name=projects/*/locations/*/keys/*}:key - DeleteKey\'.google.api.apikeys.v2.DeleteKeyRequest.google.longrunning.Operation"VA -Keygoogle.protobuf.EmptyAname**(/v2/{name=projects/*/locations/*/keys/*} - UndeleteKey).google.api.apikeys.v2.UndeleteKeyRequest.google.longrunning.Operation"[A -Keygoogle.protobuf.Empty6"1/v2/{name=projects/*/locations/*/keys/*}:undelete:*z - LookupKey\'.google.api.apikeys.v2.LookupKeyRequest(.google.api.apikeys.v2.LookupKeyResponse"/v2/keys:lookupKeyAapikeys.googleapis.comAghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB -com.google.api.apikeys.v2B ApiKeysProtoPZ5cloud.google.com/go/apikeys/apiv2/apikeyspb;apikeyspbGoogle.Cloud.ApiKeys.V2Google\\Cloud\\ApiKeys\\V2Google::Cloud::ApiKeys::V2bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/GPBMetadata/Google/Api/Apikeys/V2/Resources.php b/owl-bot-staging/ApiKeys/v2/proto/src/GPBMetadata/Google/Api/Apikeys/V2/Resources.php deleted file mode 100644 index 2647d4ef6503..000000000000 Binary files a/owl-bot-staging/ApiKeys/v2/proto/src/GPBMetadata/Google/Api/Apikeys/V2/Resources.php and /dev/null differ diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/AndroidApplication.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/AndroidApplication.php deleted file mode 100644 index 74f3d2346b24..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/AndroidApplication.php +++ /dev/null @@ -1,113 +0,0 @@ -google.api.apikeys.v2.AndroidApplication - */ -class AndroidApplication extends \Google\Protobuf\Internal\Message -{ - /** - * The SHA1 fingerprint of the application. For example, both sha1 formats are - * acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or - * DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. - * Output format is the latter. - * - * Generated from protobuf field string sha1_fingerprint = 1; - */ - protected $sha1_fingerprint = ''; - /** - * The package name of the application. - * - * Generated from protobuf field string package_name = 2; - */ - protected $package_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sha1_fingerprint - * The SHA1 fingerprint of the application. For example, both sha1 formats are - * acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or - * DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. - * Output format is the latter. - * @type string $package_name - * The package name of the application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The SHA1 fingerprint of the application. For example, both sha1 formats are - * acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or - * DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. - * Output format is the latter. - * - * Generated from protobuf field string sha1_fingerprint = 1; - * @return string - */ - public function getSha1Fingerprint() - { - return $this->sha1_fingerprint; - } - - /** - * The SHA1 fingerprint of the application. For example, both sha1 formats are - * acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or - * DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. - * Output format is the latter. - * - * Generated from protobuf field string sha1_fingerprint = 1; - * @param string $var - * @return $this - */ - public function setSha1Fingerprint($var) - { - GPBUtil::checkString($var, True); - $this->sha1_fingerprint = $var; - - return $this; - } - - /** - * The package name of the application. - * - * Generated from protobuf field string package_name = 2; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * The package name of the application. - * - * Generated from protobuf field string package_name = 2; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/AndroidKeyRestrictions.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/AndroidKeyRestrictions.php deleted file mode 100644 index c0dfc3845aa6..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/AndroidKeyRestrictions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.api.apikeys.v2.AndroidKeyRestrictions - */ -class AndroidKeyRestrictions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of Android applications that are allowed to make API calls with - * this key. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1; - */ - private $allowed_applications; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiKeys\V2\AndroidApplication>|\Google\Protobuf\Internal\RepeatedField $allowed_applications - * A list of Android applications that are allowed to make API calls with - * this key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A list of Android applications that are allowed to make API calls with - * this key. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedApplications() - { - return $this->allowed_applications; - } - - /** - * A list of Android applications that are allowed to make API calls with - * this key. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1; - * @param array<\Google\Cloud\ApiKeys\V2\AndroidApplication>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedApplications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiKeys\V2\AndroidApplication::class); - $this->allowed_applications = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ApiTarget.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ApiTarget.php deleted file mode 100644 index 196fb73d1918..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ApiTarget.php +++ /dev/null @@ -1,142 +0,0 @@ -google.api.apikeys.v2.ApiTarget - */ -class ApiTarget extends \Google\Protobuf\Internal\Message -{ - /** - * The service for this restriction. It should be the canonical - * service name, for example: `translate.googleapis.com`. - * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) - * to get a list of services that are enabled in the project. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * Optional. List of one or more methods that can be called. - * If empty, all methods for the service are allowed. A wildcard - * (*) can be used as the last symbol. - * Valid examples: - * `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` - * `TranslateText` - * `Get*` - * `translate.googleapis.com.Get*` - * - * Generated from protobuf field repeated string methods = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $methods; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * The service for this restriction. It should be the canonical - * service name, for example: `translate.googleapis.com`. - * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) - * to get a list of services that are enabled in the project. - * @type array|\Google\Protobuf\Internal\RepeatedField $methods - * Optional. List of one or more methods that can be called. - * If empty, all methods for the service are allowed. A wildcard - * (*) can be used as the last symbol. - * Valid examples: - * `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` - * `TranslateText` - * `Get*` - * `translate.googleapis.com.Get*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The service for this restriction. It should be the canonical - * service name, for example: `translate.googleapis.com`. - * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) - * to get a list of services that are enabled in the project. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * The service for this restriction. It should be the canonical - * service name, for example: `translate.googleapis.com`. - * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) - * to get a list of services that are enabled in the project. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Optional. List of one or more methods that can be called. - * If empty, all methods for the service are allowed. A wildcard - * (*) can be used as the last symbol. - * Valid examples: - * `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` - * `TranslateText` - * `Get*` - * `translate.googleapis.com.Get*` - * - * Generated from protobuf field repeated string methods = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMethods() - { - return $this->methods; - } - - /** - * Optional. List of one or more methods that can be called. - * If empty, all methods for the service are allowed. A wildcard - * (*) can be used as the last symbol. - * Valid examples: - * `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` - * `TranslateText` - * `Get*` - * `translate.googleapis.com.Get*` - * - * Generated from protobuf field repeated string methods = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMethods($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->methods = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/BrowserKeyRestrictions.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/BrowserKeyRestrictions.php deleted file mode 100644 index d1562680d92f..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/BrowserKeyRestrictions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.api.apikeys.v2.BrowserKeyRestrictions - */ -class BrowserKeyRestrictions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of regular expressions for the referrer URLs that are allowed - * to make API calls with this key. - * - * Generated from protobuf field repeated string allowed_referrers = 1; - */ - private $allowed_referrers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_referrers - * A list of regular expressions for the referrer URLs that are allowed - * to make API calls with this key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A list of regular expressions for the referrer URLs that are allowed - * to make API calls with this key. - * - * Generated from protobuf field repeated string allowed_referrers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedReferrers() - { - return $this->allowed_referrers; - } - - /** - * A list of regular expressions for the referrer URLs that are allowed - * to make API calls with this key. - * - * Generated from protobuf field repeated string allowed_referrers = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedReferrers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_referrers = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/CreateKeyRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/CreateKeyRequest.php deleted file mode 100644 index 9919979b799d..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/CreateKeyRequest.php +++ /dev/null @@ -1,205 +0,0 @@ -google.api.apikeys.v2.CreateKeyRequest - */ -class CreateKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project in which the API key is created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The API key fields to set at creation time. - * You can configure only the `display_name`, `restrictions`, and - * `annotations` fields. - * - * Generated from protobuf field .google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key = null; - /** - * User specified key id (optional). If specified, it will become the final - * component of the key resource name. - * The id must be unique within the project, must conform with RFC-1034, - * is restricted to lower-cased letters, and has a maximum length of 63 - * characters. In another word, the id must match the regular - * expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * The id must NOT be a UUID-like string. - * - * Generated from protobuf field string key_id = 3; - */ - protected $key_id = ''; - - /** - * @param string $parent Required. The project in which the API key is created. Please see - * {@see ApiKeysClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApiKeys\V2\Key $key Required. The API key fields to set at creation time. - * You can configure only the `display_name`, `restrictions`, and - * `annotations` fields. - * @param string $keyId User specified key id (optional). If specified, it will become the final - * component of the key resource name. - * - * The id must be unique within the project, must conform with RFC-1034, - * is restricted to lower-cased letters, and has a maximum length of 63 - * characters. In another word, the id must match the regular - * expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * The id must NOT be a UUID-like string. - * - * @return \Google\Cloud\ApiKeys\V2\CreateKeyRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApiKeys\V2\Key $key, string $keyId): self - { - return (new self()) - ->setParent($parent) - ->setKey($key) - ->setKeyId($keyId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project in which the API key is created. - * @type \Google\Cloud\ApiKeys\V2\Key $key - * Required. The API key fields to set at creation time. - * You can configure only the `display_name`, `restrictions`, and - * `annotations` fields. - * @type string $key_id - * User specified key id (optional). If specified, it will become the final - * component of the key resource name. - * The id must be unique within the project, must conform with RFC-1034, - * is restricted to lower-cased letters, and has a maximum length of 63 - * characters. In another word, the id must match the regular - * expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * The id must NOT be a UUID-like string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project in which the API key is created. - * - * 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 project in which the API key is created. - * - * 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 API key fields to set at creation time. - * You can configure only the `display_name`, `restrictions`, and - * `annotations` fields. - * - * Generated from protobuf field .google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiKeys\V2\Key|null - */ - public function getKey() - { - return $this->key; - } - - public function hasKey() - { - return isset($this->key); - } - - public function clearKey() - { - unset($this->key); - } - - /** - * Required. The API key fields to set at creation time. - * You can configure only the `display_name`, `restrictions`, and - * `annotations` fields. - * - * Generated from protobuf field .google.api.apikeys.v2.Key key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiKeys\V2\Key $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiKeys\V2\Key::class); - $this->key = $var; - - return $this; - } - - /** - * User specified key id (optional). If specified, it will become the final - * component of the key resource name. - * The id must be unique within the project, must conform with RFC-1034, - * is restricted to lower-cased letters, and has a maximum length of 63 - * characters. In another word, the id must match the regular - * expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * The id must NOT be a UUID-like string. - * - * Generated from protobuf field string key_id = 3; - * @return string - */ - public function getKeyId() - { - return $this->key_id; - } - - /** - * User specified key id (optional). If specified, it will become the final - * component of the key resource name. - * The id must be unique within the project, must conform with RFC-1034, - * is restricted to lower-cased letters, and has a maximum length of 63 - * characters. In another word, the id must match the regular - * expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * The id must NOT be a UUID-like string. - * - * Generated from protobuf field string key_id = 3; - * @param string $var - * @return $this - */ - public function setKeyId($var) - { - GPBUtil::checkString($var, True); - $this->key_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/DeleteKeyRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/DeleteKeyRequest.php deleted file mode 100644 index 203c84e8a5c6..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/DeleteKeyRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.api.apikeys.v2.DeleteKeyRequest - */ -class DeleteKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the API key to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag known to the client for the expected state of the key. - * This is to be used for optimistic concurrency. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the API key to be deleted. Please see - * {@see ApiKeysClient::keyName()} for help formatting this field. - * - * @return \Google\Cloud\ApiKeys\V2\DeleteKeyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the API key to be deleted. - * @type string $etag - * Optional. The etag known to the client for the expected state of the key. - * This is to be used for optimistic concurrency. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the API key to be deleted. - * - * 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 API key to be deleted. - * - * 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; - } - - /** - * Optional. The etag known to the client for the expected state of the key. - * This is to be used for optimistic concurrency. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag known to the client for the expected state of the key. - * This is to be used for optimistic concurrency. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyRequest.php deleted file mode 100644 index e062f1a91d1b..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.api.apikeys.v2.GetKeyRequest - */ -class GetKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the API key to get. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the API key to get. Please see - * {@see ApiKeysClient::keyName()} for help formatting this field. - * - * @return \Google\Cloud\ApiKeys\V2\GetKeyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the API key to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the API key to get. - * - * 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 API key to get. - * - * 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/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyStringRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyStringRequest.php deleted file mode 100644 index fbaa776ed03d..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyStringRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.api.apikeys.v2.GetKeyStringRequest - */ -class GetKeyStringRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the API key to be retrieved. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the API key to be retrieved. Please see - * {@see ApiKeysClient::keyName()} for help formatting this field. - * - * @return \Google\Cloud\ApiKeys\V2\GetKeyStringRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the API key to be retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the API key to be retrieved. - * - * 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 API key to be retrieved. - * - * 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/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyStringResponse.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyStringResponse.php deleted file mode 100644 index e54c1d58be2c..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/GetKeyStringResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.api.apikeys.v2.GetKeyStringResponse - */ -class GetKeyStringResponse extends \Google\Protobuf\Internal\Message -{ - /** - * An encrypted and signed value of the key. - * - * Generated from protobuf field string key_string = 1; - */ - protected $key_string = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_string - * An encrypted and signed value of the key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * An encrypted and signed value of the key. - * - * Generated from protobuf field string key_string = 1; - * @return string - */ - public function getKeyString() - { - return $this->key_string; - } - - /** - * An encrypted and signed value of the key. - * - * Generated from protobuf field string key_string = 1; - * @param string $var - * @return $this - */ - public function setKeyString($var) - { - GPBUtil::checkString($var, True); - $this->key_string = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/IosKeyRestrictions.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/IosKeyRestrictions.php deleted file mode 100644 index cdd2b259f381..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/IosKeyRestrictions.php +++ /dev/null @@ -1,67 +0,0 @@ -google.api.apikeys.v2.IosKeyRestrictions - */ -class IosKeyRestrictions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of bundle IDs that are allowed when making API calls with this key. - * - * Generated from protobuf field repeated string allowed_bundle_ids = 1; - */ - private $allowed_bundle_ids; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_bundle_ids - * A list of bundle IDs that are allowed when making API calls with this key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A list of bundle IDs that are allowed when making API calls with this key. - * - * Generated from protobuf field repeated string allowed_bundle_ids = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedBundleIds() - { - return $this->allowed_bundle_ids; - } - - /** - * A list of bundle IDs that are allowed when making API calls with this key. - * - * Generated from protobuf field repeated string allowed_bundle_ids = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedBundleIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_bundle_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/Key.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/Key.php deleted file mode 100644 index 3b1d10e0fe46..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/Key.php +++ /dev/null @@ -1,477 +0,0 @@ -google.api.apikeys.v2.Key - */ -class Key extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the key. - * The `name` has the form: - * `projects//locations/global/keys/`. - * For example: - * `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Unique id in UUID4 format. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Human-readable display name of this key that you can modify. - * The maximum length is 63 characters. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Output only. An encrypted and signed value held by this key. - * This field can be accessed only through the `GetKeyString` method. - * - * Generated from protobuf field string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $key_string = ''; - /** - * Output only. A timestamp identifying the time this key 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. A timestamp identifying the time this key was last - * updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. A timestamp when this key was deleted. If the resource is not - * deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Annotations is an unstructured key-value map stored with a policy that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * - * Generated from protobuf field map annotations = 8; - */ - private $annotations; - /** - * Key restrictions. - * - * Generated from protobuf field .google.api.apikeys.v2.Restrictions restrictions = 9; - */ - protected $restrictions = null; - /** - * Output only. A checksum computed by the server based on the current value - * of the Key resource. This may be sent on update and delete requests to - * ensure the client has an up-to-date value before proceeding. See - * https://google.aip.dev/154. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name of the key. - * The `name` has the form: - * `projects//locations/global/keys/`. - * For example: - * `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * @type string $uid - * Output only. Unique id in UUID4 format. - * @type string $display_name - * Human-readable display name of this key that you can modify. - * The maximum length is 63 characters. - * @type string $key_string - * Output only. An encrypted and signed value held by this key. - * This field can be accessed only through the `GetKeyString` method. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. A timestamp identifying the time this key was originally - * created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. A timestamp identifying the time this key was last - * updated. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. A timestamp when this key was deleted. If the resource is not - * deleted, this must be empty. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations is an unstructured key-value map stored with a policy that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * @type \Google\Cloud\ApiKeys\V2\Restrictions $restrictions - * Key restrictions. - * @type string $etag - * Output only. A checksum computed by the server based on the current value - * of the Key resource. This may be sent on update and delete requests to - * ensure the client has an up-to-date value before proceeding. See - * https://google.aip.dev/154. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the key. - * The `name` has the form: - * `projects//locations/global/keys/`. - * For example: - * `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name of the key. - * The `name` has the form: - * `projects//locations/global/keys/`. - * For example: - * `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * 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. Unique id in UUID4 format. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique id in UUID4 format. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Human-readable display name of this key that you can modify. - * The maximum length is 63 characters. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-readable display name of this key that you can modify. - * The maximum length is 63 characters. - * - * 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; - } - - /** - * Output only. An encrypted and signed value held by this key. - * This field can be accessed only through the `GetKeyString` method. - * - * Generated from protobuf field string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getKeyString() - { - return $this->key_string; - } - - /** - * Output only. An encrypted and signed value held by this key. - * This field can be accessed only through the `GetKeyString` method. - * - * Generated from protobuf field string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setKeyString($var) - { - GPBUtil::checkString($var, True); - $this->key_string = $var; - - return $this; - } - - /** - * Output only. A timestamp identifying the time this key 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. A timestamp identifying the time this key 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. A timestamp identifying the time this key was last - * updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. A timestamp identifying the time this key was last - * updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. A timestamp when this key was deleted. If the resource is not - * deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 7 [(.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. A timestamp when this key was deleted. If the resource is not - * deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 7 [(.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; - } - - /** - * Annotations is an unstructured key-value map stored with a policy that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * - * Generated from protobuf field map annotations = 8; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations is an unstructured key-value map stored with a policy that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * - * Generated from protobuf field map annotations = 8; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Key restrictions. - * - * Generated from protobuf field .google.api.apikeys.v2.Restrictions restrictions = 9; - * @return \Google\Cloud\ApiKeys\V2\Restrictions|null - */ - public function getRestrictions() - { - return $this->restrictions; - } - - public function hasRestrictions() - { - return isset($this->restrictions); - } - - public function clearRestrictions() - { - unset($this->restrictions); - } - - /** - * Key restrictions. - * - * Generated from protobuf field .google.api.apikeys.v2.Restrictions restrictions = 9; - * @param \Google\Cloud\ApiKeys\V2\Restrictions $var - * @return $this - */ - public function setRestrictions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiKeys\V2\Restrictions::class); - $this->restrictions = $var; - - return $this; - } - - /** - * Output only. A checksum computed by the server based on the current value - * of the Key resource. This may be sent on update and delete requests to - * ensure the client has an up-to-date value before proceeding. See - * https://google.aip.dev/154. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. A checksum computed by the server based on the current value - * of the Key resource. This may be sent on update and delete requests to - * ensure the client has an up-to-date value before proceeding. See - * https://google.aip.dev/154. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ListKeysRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ListKeysRequest.php deleted file mode 100644 index 04454c325db2..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ListKeysRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -google.api.apikeys.v2.ListKeysRequest - */ -class ListKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Lists all API keys associated with this project. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Specifies the maximum number of results to be returned at a time. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Requests a specific page of results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Indicate that keys deleted in the past 30 days should also be - * returned. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_deleted = false; - - /** - * @param string $parent Required. Lists all API keys associated with this project. Please see - * {@see ApiKeysClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApiKeys\V2\ListKeysRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Lists all API keys associated with this project. - * @type int $page_size - * Optional. Specifies the maximum number of results to be returned at a time. - * @type string $page_token - * Optional. Requests a specific page of results. - * @type bool $show_deleted - * Optional. Indicate that keys deleted in the past 30 days should also be - * returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. Lists all API keys associated with this project. - * - * 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. Lists all API keys associated with this project. - * - * 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. Specifies the maximum number of results to be returned at a time. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Specifies the maximum number of results to be returned at a time. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Requests a specific page of results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Requests a specific page of results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Indicate that keys deleted in the past 30 days should also be - * returned. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Optional. Indicate that keys deleted in the past 30 days should also be - * returned. - * - * Generated from protobuf field bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ListKeysResponse.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ListKeysResponse.php deleted file mode 100644 index e4bbd0c0d464..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ListKeysResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.api.apikeys.v2.ListKeysResponse - */ -class ListKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of API keys. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.Key keys = 1; - */ - private $keys; - /** - * The pagination token for the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApiKeys\V2\Key>|\Google\Protobuf\Internal\RepeatedField $keys - * A list of API keys. - * @type string $next_page_token - * The pagination token for the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * A list of API keys. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.Key keys = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * A list of API keys. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.Key keys = 1; - * @param array<\Google\Cloud\ApiKeys\V2\Key>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiKeys\V2\Key::class); - $this->keys = $arr; - - return $this; - } - - /** - * The pagination token for the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The pagination token for the next page of results. - * - * 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/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/LookupKeyRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/LookupKeyRequest.php deleted file mode 100644 index 4a9246dee323..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/LookupKeyRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.api.apikeys.v2.LookupKeyRequest - */ -class LookupKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Finds the project that owns the key string value. - * - * Generated from protobuf field string key_string = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key_string = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_string - * Required. Finds the project that owns the key string value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. Finds the project that owns the key string value. - * - * Generated from protobuf field string key_string = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKeyString() - { - return $this->key_string; - } - - /** - * Required. Finds the project that owns the key string value. - * - * Generated from protobuf field string key_string = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKeyString($var) - { - GPBUtil::checkString($var, True); - $this->key_string = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/LookupKeyResponse.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/LookupKeyResponse.php deleted file mode 100644 index be7d242b0d07..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/LookupKeyResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.api.apikeys.v2.LookupKeyResponse - */ -class LookupKeyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The project that owns the key with the value specified in the request. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * The resource name of the API key. If the API key has been purged, - * resource name is empty. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The project that owns the key with the value specified in the request. - * @type string $name - * The resource name of the API key. If the API key has been purged, - * resource name is empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * The project that owns the key with the value specified in the request. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The project that owns the key with the value specified in the request. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The resource name of the API key. If the API key has been purged, - * resource name is empty. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the API key. If the API key has been purged, - * resource name is empty. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/Restrictions.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/Restrictions.php deleted file mode 100644 index 97489f2de4ab..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/Restrictions.php +++ /dev/null @@ -1,220 +0,0 @@ -google.api.apikeys.v2.Restrictions - */ -class Restrictions extends \Google\Protobuf\Internal\Message -{ - /** - * A restriction for a specific service and optionally one or - * more specific methods. Requests are allowed if they - * match any of these restrictions. If no restrictions are - * specified, all targets are allowed. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.ApiTarget api_targets = 5; - */ - private $api_targets; - protected $client_restrictions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiKeys\V2\BrowserKeyRestrictions $browser_key_restrictions - * The HTTP referrers (websites) that are allowed to use the key. - * @type \Google\Cloud\ApiKeys\V2\ServerKeyRestrictions $server_key_restrictions - * The IP addresses of callers that are allowed to use the key. - * @type \Google\Cloud\ApiKeys\V2\AndroidKeyRestrictions $android_key_restrictions - * The Android apps that are allowed to use the key. - * @type \Google\Cloud\ApiKeys\V2\IosKeyRestrictions $ios_key_restrictions - * The iOS apps that are allowed to use the key. - * @type array<\Google\Cloud\ApiKeys\V2\ApiTarget>|\Google\Protobuf\Internal\RepeatedField $api_targets - * A restriction for a specific service and optionally one or - * more specific methods. Requests are allowed if they - * match any of these restrictions. If no restrictions are - * specified, all targets are allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The HTTP referrers (websites) that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1; - * @return \Google\Cloud\ApiKeys\V2\BrowserKeyRestrictions|null - */ - public function getBrowserKeyRestrictions() - { - return $this->readOneof(1); - } - - public function hasBrowserKeyRestrictions() - { - return $this->hasOneof(1); - } - - /** - * The HTTP referrers (websites) that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1; - * @param \Google\Cloud\ApiKeys\V2\BrowserKeyRestrictions $var - * @return $this - */ - public function setBrowserKeyRestrictions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiKeys\V2\BrowserKeyRestrictions::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The IP addresses of callers that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2; - * @return \Google\Cloud\ApiKeys\V2\ServerKeyRestrictions|null - */ - public function getServerKeyRestrictions() - { - return $this->readOneof(2); - } - - public function hasServerKeyRestrictions() - { - return $this->hasOneof(2); - } - - /** - * The IP addresses of callers that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2; - * @param \Google\Cloud\ApiKeys\V2\ServerKeyRestrictions $var - * @return $this - */ - public function setServerKeyRestrictions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiKeys\V2\ServerKeyRestrictions::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The Android apps that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3; - * @return \Google\Cloud\ApiKeys\V2\AndroidKeyRestrictions|null - */ - public function getAndroidKeyRestrictions() - { - return $this->readOneof(3); - } - - public function hasAndroidKeyRestrictions() - { - return $this->hasOneof(3); - } - - /** - * The Android apps that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3; - * @param \Google\Cloud\ApiKeys\V2\AndroidKeyRestrictions $var - * @return $this - */ - public function setAndroidKeyRestrictions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiKeys\V2\AndroidKeyRestrictions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The iOS apps that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4; - * @return \Google\Cloud\ApiKeys\V2\IosKeyRestrictions|null - */ - public function getIosKeyRestrictions() - { - return $this->readOneof(4); - } - - public function hasIosKeyRestrictions() - { - return $this->hasOneof(4); - } - - /** - * The iOS apps that are allowed to use the key. - * - * Generated from protobuf field .google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4; - * @param \Google\Cloud\ApiKeys\V2\IosKeyRestrictions $var - * @return $this - */ - public function setIosKeyRestrictions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiKeys\V2\IosKeyRestrictions::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A restriction for a specific service and optionally one or - * more specific methods. Requests are allowed if they - * match any of these restrictions. If no restrictions are - * specified, all targets are allowed. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.ApiTarget api_targets = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiTargets() - { - return $this->api_targets; - } - - /** - * A restriction for a specific service and optionally one or - * more specific methods. Requests are allowed if they - * match any of these restrictions. If no restrictions are - * specified, all targets are allowed. - * - * Generated from protobuf field repeated .google.api.apikeys.v2.ApiTarget api_targets = 5; - * @param array<\Google\Cloud\ApiKeys\V2\ApiTarget>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApiKeys\V2\ApiTarget::class); - $this->api_targets = $arr; - - return $this; - } - - /** - * @return string - */ - public function getClientRestrictions() - { - return $this->whichOneof("client_restrictions"); - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ServerKeyRestrictions.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ServerKeyRestrictions.php deleted file mode 100644 index c6ec92027b15..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/ServerKeyRestrictions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.api.apikeys.v2.ServerKeyRestrictions - */ -class ServerKeyRestrictions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of the caller IP addresses that are allowed to make API calls - * with this key. - * - * Generated from protobuf field repeated string allowed_ips = 1; - */ - private $allowed_ips; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_ips - * A list of the caller IP addresses that are allowed to make API calls - * with this key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Resources::initOnce(); - parent::__construct($data); - } - - /** - * A list of the caller IP addresses that are allowed to make API calls - * with this key. - * - * Generated from protobuf field repeated string allowed_ips = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedIps() - { - return $this->allowed_ips; - } - - /** - * A list of the caller IP addresses that are allowed to make API calls - * with this key. - * - * Generated from protobuf field repeated string allowed_ips = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedIps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_ips = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/UndeleteKeyRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/UndeleteKeyRequest.php deleted file mode 100644 index 4c3776147f8f..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/UndeleteKeyRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.api.apikeys.v2.UndeleteKeyRequest - */ -class UndeleteKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the API key to be undeleted. - * - * 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 API key to be undeleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the API key to be undeleted. - * - * 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 API key to be undeleted. - * - * 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/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/UpdateKeyRequest.php b/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/UpdateKeyRequest.php deleted file mode 100644 index 4ea641ec88f3..000000000000 --- a/owl-bot-staging/ApiKeys/v2/proto/src/Google/Cloud/ApiKeys/V2/UpdateKeyRequest.php +++ /dev/null @@ -1,176 +0,0 @@ -google.api.apikeys.v2.UpdateKeyRequest - */ -class UpdateKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Set the `name` field to the resource name of the API key to be - * updated. You can update only the `display_name`, `restrictions`, and - * `annotations` fields. - * - * Generated from protobuf field .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key = null; - /** - * The field mask specifies which fields to be updated as part of this - * request. All other fields are ignored. - * Mutable fields are: `display_name`, `restrictions`, and `annotations`. - * If an update mask is not provided, the service treats it as an implied mask - * equivalent to all allowed fields that are set on the wire. If the field - * mask has a special value "*", the service treats it equivalent to replace - * all allowed mutable fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ApiKeys\V2\Key $key Required. Set the `name` field to the resource name of the API key to be - * updated. You can update only the `display_name`, `restrictions`, and - * `annotations` fields. - * @param \Google\Protobuf\FieldMask $updateMask The field mask specifies which fields to be updated as part of this - * request. All other fields are ignored. - * Mutable fields are: `display_name`, `restrictions`, and `annotations`. - * If an update mask is not provided, the service treats it as an implied mask - * equivalent to all allowed fields that are set on the wire. If the field - * mask has a special value "*", the service treats it equivalent to replace - * all allowed mutable fields. - * - * @return \Google\Cloud\ApiKeys\V2\UpdateKeyRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApiKeys\V2\Key $key, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setKey($key) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApiKeys\V2\Key $key - * Required. Set the `name` field to the resource name of the API key to be - * updated. You can update only the `display_name`, `restrictions`, and - * `annotations` fields. - * @type \Google\Protobuf\FieldMask $update_mask - * The field mask specifies which fields to be updated as part of this - * request. All other fields are ignored. - * Mutable fields are: `display_name`, `restrictions`, and `annotations`. - * If an update mask is not provided, the service treats it as an implied mask - * equivalent to all allowed fields that are set on the wire. If the field - * mask has a special value "*", the service treats it equivalent to replace - * all allowed mutable fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Apikeys\V2\Apikeys::initOnce(); - parent::__construct($data); - } - - /** - * Required. Set the `name` field to the resource name of the API key to be - * updated. You can update only the `display_name`, `restrictions`, and - * `annotations` fields. - * - * Generated from protobuf field .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApiKeys\V2\Key|null - */ - public function getKey() - { - return $this->key; - } - - public function hasKey() - { - return isset($this->key); - } - - public function clearKey() - { - unset($this->key); - } - - /** - * Required. Set the `name` field to the resource name of the API key to be - * updated. You can update only the `display_name`, `restrictions`, and - * `annotations` fields. - * - * Generated from protobuf field .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApiKeys\V2\Key $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApiKeys\V2\Key::class); - $this->key = $var; - - return $this; - } - - /** - * The field mask specifies which fields to be updated as part of this - * request. All other fields are ignored. - * Mutable fields are: `display_name`, `restrictions`, and `annotations`. - * If an update mask is not provided, the service treats it as an implied mask - * equivalent to all allowed fields that are set on the wire. If the field - * mask has a special value "*", the service treats it equivalent to replace - * all allowed mutable fields. - * - * 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 field mask specifies which fields to be updated as part of this - * request. All other fields are ignored. - * Mutable fields are: `display_name`, `restrictions`, and `annotations`. - * If an update mask is not provided, the service treats it as an implied mask - * equivalent to all allowed fields that are set on the wire. If the field - * mask has a special value "*", the service treats it equivalent to replace - * all allowed mutable fields. - * - * 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/ApiKeys/v2/samples/V2/ApiKeysClient/create_key.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/create_key.php deleted file mode 100644 index 8acf24a38622..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/create_key.php +++ /dev/null @@ -1,88 +0,0 @@ -setParent($formattedParent) - ->setKey($key); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiKeysClient->createKey($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Key $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiKeysClient::locationName('[PROJECT]', '[LOCATION]'); - - create_key_sample($formattedParent); -} -// [END apikeys_v2_generated_ApiKeys_CreateKey_sync] diff --git a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/delete_key.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/delete_key.php deleted file mode 100644 index d78b573e9732..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/delete_key.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiKeysClient->deleteKey($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Key $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiKeysClient::keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - - delete_key_sample($formattedName); -} -// [END apikeys_v2_generated_ApiKeys_DeleteKey_sync] diff --git a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/get_key.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/get_key.php deleted file mode 100644 index c0640697bce7..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/get_key.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Key $response */ - $response = $apiKeysClient->getKey($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiKeysClient::keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - - get_key_sample($formattedName); -} -// [END apikeys_v2_generated_ApiKeys_GetKey_sync] diff --git a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/get_key_string.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/get_key_string.php deleted file mode 100644 index 4f73f8bec45e..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/get_key_string.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GetKeyStringResponse $response */ - $response = $apiKeysClient->getKeyString($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiKeysClient::keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - - get_key_string_sample($formattedName); -} -// [END apikeys_v2_generated_ApiKeys_GetKeyString_sync] diff --git a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/list_keys.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/list_keys.php deleted file mode 100644 index 7b87831cb245..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/list_keys.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $apiKeysClient->listKeys($request); - - /** @var Key $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ApiKeysClient::locationName('[PROJECT]', '[LOCATION]'); - - list_keys_sample($formattedParent); -} -// [END apikeys_v2_generated_ApiKeys_ListKeys_sync] diff --git a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/lookup_key.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/lookup_key.php deleted file mode 100644 index 89078486f195..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/lookup_key.php +++ /dev/null @@ -1,74 +0,0 @@ -setKeyString($keyString); - - // Call the API and handle any network failures. - try { - /** @var LookupKeyResponse $response */ - $response = $apiKeysClient->lookupKey($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $keyString = '[KEY_STRING]'; - - lookup_key_sample($keyString); -} -// [END apikeys_v2_generated_ApiKeys_LookupKey_sync] diff --git a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/undelete_key.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/undelete_key.php deleted file mode 100644 index 30f110bf0c8a..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/undelete_key.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiKeysClient->undeleteKey($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Key $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ApiKeysClient::keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - - undelete_key_sample($formattedName); -} -// [END apikeys_v2_generated_ApiKeys_UndeleteKey_sync] diff --git a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/update_key.php b/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/update_key.php deleted file mode 100644 index c78d9aa9cbb5..000000000000 --- a/owl-bot-staging/ApiKeys/v2/samples/V2/ApiKeysClient/update_key.php +++ /dev/null @@ -1,75 +0,0 @@ -setKey($key); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $apiKeysClient->updateKey($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Key $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apikeys_v2_generated_ApiKeys_UpdateKey_sync] diff --git a/owl-bot-staging/ApiKeys/v2/src/V2/Client/ApiKeysClient.php b/owl-bot-staging/ApiKeys/v2/src/V2/Client/ApiKeysClient.php deleted file mode 100644 index fe9120b8d9f0..000000000000 --- a/owl-bot-staging/ApiKeys/v2/src/V2/Client/ApiKeysClient.php +++ /dev/null @@ -1,540 +0,0 @@ - createKeyAsync(CreateKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteKeyAsync(DeleteKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyAsync(GetKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getKeyStringAsync(GetKeyStringRequest $request, array $optionalArgs = []) - * @method PromiseInterface listKeysAsync(ListKeysRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupKeyAsync(LookupKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface undeleteKeyAsync(UndeleteKeyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateKeyAsync(UpdateKeyRequest $request, array $optionalArgs = []) - */ -final class ApiKeysClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.api.apikeys.v2.ApiKeys'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apikeys.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apikeys.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/api_keys_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/api_keys_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/api_keys_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/api_keys_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a key - * resource. - * - * @param string $project - * @param string $location - * @param string $key - * - * @return string The formatted key resource. - */ - public static function keyName(string $project, string $location, string $key): string - { - return self::getPathTemplate('key')->render([ - 'project' => $project, - 'location' => $location, - 'key' => $key, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - key: projects/{project}/locations/{location}/keys/{key} - * - location: projects/{project}/locations/{location} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apikeys.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a new API key. - * - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * The async variant is {@see ApiKeysClient::createKeyAsync()} . - * - * @example samples/V2/ApiKeysClient/create_key.php - * - * @param CreateKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createKey(CreateKeyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateKey', $request, $callOptions)->wait(); - } - - /** - * Deletes an API key. Deleted key can be retrieved within 30 days of - * deletion. Afterward, key will be purged from the project. - * - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * The async variant is {@see ApiKeysClient::deleteKeyAsync()} . - * - * @example samples/V2/ApiKeysClient/delete_key.php - * - * @param DeleteKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteKey(DeleteKeyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteKey', $request, $callOptions)->wait(); - } - - /** - * Gets the metadata for an API key. The key string of the API key - * isn't included in the response. - * - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * The async variant is {@see ApiKeysClient::getKeyAsync()} . - * - * @example samples/V2/ApiKeysClient/get_key.php - * - * @param GetKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Key - * - * @throws ApiException Thrown if the API call fails. - */ - public function getKey(GetKeyRequest $request, array $callOptions = []): Key - { - return $this->startApiCall('GetKey', $request, $callOptions)->wait(); - } - - /** - * Get the key string for an API key. - * - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * The async variant is {@see ApiKeysClient::getKeyStringAsync()} . - * - * @example samples/V2/ApiKeysClient/get_key_string.php - * - * @param GetKeyStringRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GetKeyStringResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function getKeyString(GetKeyStringRequest $request, array $callOptions = []): GetKeyStringResponse - { - return $this->startApiCall('GetKeyString', $request, $callOptions)->wait(); - } - - /** - * Lists the API keys owned by a project. The key string of the API key - * isn't included in the response. - * - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * The async variant is {@see ApiKeysClient::listKeysAsync()} . - * - * @example samples/V2/ApiKeysClient/list_keys.php - * - * @param ListKeysRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listKeys(ListKeysRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListKeys', $request, $callOptions); - } - - /** - * Find the parent project and resource name of the API - * key that matches the key string in the request. If the API key has been - * purged, resource name will not be set. - * The service account must have the `apikeys.keys.lookup` permission - * on the parent project. - * - * The async variant is {@see ApiKeysClient::lookupKeyAsync()} . - * - * @example samples/V2/ApiKeysClient/lookup_key.php - * - * @param LookupKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LookupKeyResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupKey(LookupKeyRequest $request, array $callOptions = []): LookupKeyResponse - { - return $this->startApiCall('LookupKey', $request, $callOptions)->wait(); - } - - /** - * Undeletes an API key which was deleted within 30 days. - * - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * The async variant is {@see ApiKeysClient::undeleteKeyAsync()} . - * - * @example samples/V2/ApiKeysClient/undelete_key.php - * - * @param UndeleteKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function undeleteKey(UndeleteKeyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UndeleteKey', $request, $callOptions)->wait(); - } - - /** - * Patches the modifiable fields of an API key. - * The key string of the API key isn't included in the response. - * - * NOTE: Key is a global resource; hence the only supported value for - * location is `global`. - * - * The async variant is {@see ApiKeysClient::updateKeyAsync()} . - * - * @example samples/V2/ApiKeysClient/update_key.php - * - * @param UpdateKeyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateKey(UpdateKeyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateKey', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/ApiKeys/v2/src/V2/gapic_metadata.json b/owl-bot-staging/ApiKeys/v2/src/V2/gapic_metadata.json deleted file mode 100644 index 5054d5000712..000000000000 --- a/owl-bot-staging/ApiKeys/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.api.apikeys.v2", - "libraryPackage": "Google\\Cloud\\ApiKeys\\V2", - "services": { - "ApiKeys": { - "clients": { - "grpc": { - "libraryClient": "ApiKeysGapicClient", - "rpcs": { - "CreateKey": { - "methods": [ - "createKey" - ] - }, - "DeleteKey": { - "methods": [ - "deleteKey" - ] - }, - "GetKey": { - "methods": [ - "getKey" - ] - }, - "GetKeyString": { - "methods": [ - "getKeyString" - ] - }, - "ListKeys": { - "methods": [ - "listKeys" - ] - }, - "LookupKey": { - "methods": [ - "lookupKey" - ] - }, - "UndeleteKey": { - "methods": [ - "undeleteKey" - ] - }, - "UpdateKey": { - "methods": [ - "updateKey" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_client_config.json b/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_client_config.json deleted file mode 100644 index 08acf4cca498..000000000000 --- a/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_client_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "interfaces": { - "google.api.apikeys.v2.ApiKeys": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 10000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 10000, - "total_timeout_millis": 10000 - } - }, - "methods": { - "CreateKey": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteKey": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetKey": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetKeyString": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListKeys": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "LookupKey": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UndeleteKey": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateKey": { - "timeout_millis": 10000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_descriptor_config.php b/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_descriptor_config.php deleted file mode 100644 index 324a29669953..000000000000 --- a/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_descriptor_config.php +++ /dev/null @@ -1,157 +0,0 @@ - [ - 'google.api.apikeys.v2.ApiKeys' => [ - 'CreateKey' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiKeys\V2\Key', - 'metadataReturnType' => '\Google\Protobuf\GPBEmpty', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteKey' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiKeys\V2\Key', - 'metadataReturnType' => '\Google\Protobuf\GPBEmpty', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UndeleteKey' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiKeys\V2\Key', - 'metadataReturnType' => '\Google\Protobuf\GPBEmpty', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateKey' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApiKeys\V2\Key', - 'metadataReturnType' => '\Google\Protobuf\GPBEmpty', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'key.name', - 'fieldAccessors' => [ - 'getKey', - 'getName', - ], - ], - ], - ], - 'GetKey' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiKeys\V2\Key', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetKeyString' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiKeys\V2\GetKeyStringResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListKeys' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getKeys', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApiKeys\V2\ListKeysResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'LookupKey' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApiKeys\V2\LookupKeyResponse', - ], - 'templateMap' => [ - 'key' => 'projects/{project}/locations/{location}/keys/{key}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_rest_client_config.php b/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_rest_client_config.php deleted file mode 100644 index 718af4409ea4..000000000000 --- a/owl-bot-staging/ApiKeys/v2/src/V2/resources/api_keys_rest_client_config.php +++ /dev/null @@ -1,127 +0,0 @@ - [ - 'google.api.apikeys.v2.ApiKeys' => [ - 'CreateKey' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/keys', - 'body' => 'key', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteKey' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/keys/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetKey' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/keys/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetKeyString' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/keys/*}/keyString', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListKeys' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/keys', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'LookupKey' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/keys:lookupKey', - ], - 'UndeleteKey' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/keys/*}:undelete', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateKey' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{key.name=projects/*/locations/*/keys/*}', - 'body' => 'key', - 'placeholders' => [ - 'key.name' => [ - 'getters' => [ - 'getKey', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApiKeys/v2/tests/Unit/V2/Client/ApiKeysClientTest.php b/owl-bot-staging/ApiKeys/v2/tests/Unit/V2/Client/ApiKeysClientTest.php deleted file mode 100644 index 3edcdabc5284..000000000000 --- a/owl-bot-staging/ApiKeys/v2/tests/Unit/V2/Client/ApiKeysClientTest.php +++ /dev/null @@ -1,958 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ApiKeysClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ApiKeysClient($options); - } - - /** @test */ - public function createKeyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $keyString = 'keyString526755313'; - $etag = 'etag3123477'; - $expectedResponse = new Key(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setKeyString($keyString); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createKeyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $key = new Key(); - $request = (new CreateKeyRequest()) - ->setParent($formattedParent) - ->setKey($key); - $response = $gapicClient->createKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/CreateKey', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getKey(); - $this->assertProtobufEquals($key, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createKeyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createKeyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $key = new Key(); - $request = (new CreateKeyRequest()) - ->setParent($formattedParent) - ->setKey($key); - $response = $gapicClient->createKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createKeyTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteKeyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $keyString = 'keyString526755313'; - $etag2 = 'etag2-1293302904'; - $expectedResponse = new Key(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setKeyString($keyString); - $expectedResponse->setEtag($etag2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteKeyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new DeleteKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/DeleteKey', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteKeyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteKeyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new DeleteKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteKeyTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getKeyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $keyString = 'keyString526755313'; - $etag = 'etag3123477'; - $expectedResponse = new Key(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setKeyString($keyString); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new GetKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->getKey($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/GetKey', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new GetKeyRequest()) - ->setName($formattedName); - try { - $gapicClient->getKey($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyStringTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $keyString = 'keyString526755313'; - $expectedResponse = new GetKeyStringResponse(); - $expectedResponse->setKeyString($keyString); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new GetKeyStringRequest()) - ->setName($formattedName); - $response = $gapicClient->getKeyString($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/GetKeyString', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getKeyStringExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new GetKeyStringRequest()) - ->setName($formattedName); - try { - $gapicClient->getKeyString($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $keysElement = new Key(); - $keys = [ - $keysElement, - ]; - $expectedResponse = new ListKeysResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setKeys($keys); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListKeysRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listKeys($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getKeys()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/ListKeys', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListKeysRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listKeys($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupKeyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $parent = 'parent-995424086'; - $name = 'name3373707'; - $expectedResponse = new LookupKeyResponse(); - $expectedResponse->setParent($parent); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $keyString = 'keyString526755313'; - $request = (new LookupKeyRequest()) - ->setKeyString($keyString); - $response = $gapicClient->lookupKey($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/LookupKey', $actualFuncCall); - $actualValue = $actualRequestObject->getKeyString(); - $this->assertProtobufEquals($keyString, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupKeyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $keyString = 'keyString526755313'; - $request = (new LookupKeyRequest()) - ->setKeyString($keyString); - try { - $gapicClient->lookupKey($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function undeleteKeyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeleteKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $keyString = 'keyString526755313'; - $etag = 'etag3123477'; - $expectedResponse = new Key(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setKeyString($keyString); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/undeleteKeyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new UndeleteKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->undeleteKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/UndeleteKey', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeleteKeyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function undeleteKeyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeleteKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->keyName('[PROJECT]', '[LOCATION]', '[KEY]'); - $request = (new UndeleteKeyRequest()) - ->setName($formattedName); - $response = $gapicClient->undeleteKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeleteKeyTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateKeyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $keyString = 'keyString526755313'; - $etag = 'etag3123477'; - $expectedResponse = new Key(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setKeyString($keyString); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateKeyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $key = new Key(); - $request = (new UpdateKeyRequest()) - ->setKey($key); - $response = $gapicClient->updateKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/UpdateKey', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getKey(); - $this->assertProtobufEquals($key, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateKeyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateKeyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $key = new Key(); - $request = (new UpdateKeyRequest()) - ->setKey($key); - $response = $gapicClient->updateKey($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateKeyTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createKeyAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createKeyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $keyString = 'keyString526755313'; - $etag = 'etag3123477'; - $expectedResponse = new Key(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setKeyString($keyString); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createKeyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $key = new Key(); - $request = (new CreateKeyRequest()) - ->setParent($formattedParent) - ->setKey($key); - $response = $gapicClient->createKeyAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.api.apikeys.v2.ApiKeys/CreateKey', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getKey(); - $this->assertProtobufEquals($key, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createKeyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeconnect/V1/Connection.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeconnect/V1/Connection.php deleted file mode 100644 index 8c0927db175a..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeconnect/V1/Connection.php +++ /dev/null @@ -1,51 +0,0 @@ -internalAddGeneratedFile( - ' - -.google/cloud/apigeeconnect/v1/connection.protogoogle.cloud.apigeeconnect.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"~ -ListConnectionsRequest= -parent ( B-AA\' -%apigeeconnect.googleapis.com/Endpoint - page_size ( - -page_token ( "r -ListConnectionsResponse> - connections ( 2).google.cloud.apigeeconnect.v1.Connection -next_page_token ( "m - -Connection -endpoint ( 7 -cluster ( 2&.google.cloud.apigeeconnect.v1.Cluster - stream_count ("\' -Cluster -name (  -region ( 2 -ConnectionService -ListConnections5.google.cloud.apigeeconnect.v1.ListConnectionsRequest6.google.cloud.apigeeconnect.v1.ListConnectionsResponse"@Aparent1//v1/{parent=projects/*/endpoints/*}/connectionsPAapigeeconnect.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -!com.google.cloud.apigeeconnect.v1BConnectionProtoPZGcloud.google.com/go/apigeeconnect/apiv1/apigeeconnectpb;apigeeconnectpbGoogle.Cloud.ApigeeConnect.V1Google\\Cloud\\ApigeeConnect\\V1 Google::Cloud::ApigeeConnect::V1AP -%apigeeconnect.googleapis.com/Endpoint\'projects/{project}/endpoints/{endpoint}bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeconnect/V1/Tether.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeconnect/V1/Tether.php deleted file mode 100644 index e5493cced987..000000000000 Binary files a/owl-bot-staging/ApigeeConnect/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeconnect/V1/Tether.php and /dev/null differ diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Action.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Action.php deleted file mode 100644 index 9e35f7fb7298..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Action.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.apigeeconnect.v1.Action - */ -class Action -{ - /** - * Unspecified Action. - * - * Generated from protobuf enum ACTION_UNSPECIFIED = 0; - */ - const ACTION_UNSPECIFIED = 0; - /** - * Indicates that agent should open a new stream. - * - * Generated from protobuf enum OPEN_NEW_STREAM = 1; - */ - const OPEN_NEW_STREAM = 1; - - private static $valueToName = [ - self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', - self::OPEN_NEW_STREAM => 'OPEN_NEW_STREAM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Cluster.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Cluster.php deleted file mode 100644 index d9df792ea9b1..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Cluster.php +++ /dev/null @@ -1,99 +0,0 @@ -google.cloud.apigeeconnect.v1.Cluster - */ -class Cluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the cluster. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The region of the cluster. - * - * Generated from protobuf field string region = 2; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the cluster. - * @type string $region - * The region of the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Connection::initOnce(); - parent::__construct($data); - } - - /** - * The name of the cluster. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the cluster. - * - * 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; - } - - /** - * The region of the cluster. - * - * Generated from protobuf field string region = 2; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * The region of the cluster. - * - * Generated from protobuf field string region = 2; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Connection.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Connection.php deleted file mode 100644 index 605e1d267284..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Connection.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.apigeeconnect.v1.Connection - */ -class Connection extends \Google\Protobuf\Internal\Message -{ - /** - * The endpoint that the connection is made against. - * Format: `projects/{project_number}/endpoints/{endpoint}` - * - * Generated from protobuf field string endpoint = 1; - */ - protected $endpoint = ''; - /** - * Cluster information. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - */ - protected $cluster = null; - /** - * The count of streams. - * - * Generated from protobuf field int32 stream_count = 3; - */ - protected $stream_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $endpoint - * The endpoint that the connection is made against. - * Format: `projects/{project_number}/endpoints/{endpoint}` - * @type \Google\Cloud\ApigeeConnect\V1\Cluster $cluster - * Cluster information. - * @type int $stream_count - * The count of streams. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Connection::initOnce(); - parent::__construct($data); - } - - /** - * The endpoint that the connection is made against. - * Format: `projects/{project_number}/endpoints/{endpoint}` - * - * Generated from protobuf field string endpoint = 1; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * The endpoint that the connection is made against. - * Format: `projects/{project_number}/endpoints/{endpoint}` - * - * Generated from protobuf field string endpoint = 1; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * Cluster information. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * @return \Google\Cloud\ApigeeConnect\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Cluster information. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * @param \Google\Cloud\ApigeeConnect\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeConnect\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * The count of streams. - * - * Generated from protobuf field int32 stream_count = 3; - * @return int - */ - public function getStreamCount() - { - return $this->stream_count; - } - - /** - * The count of streams. - * - * Generated from protobuf field int32 stream_count = 3; - * @param int $var - * @return $this - */ - public function setStreamCount($var) - { - GPBUtil::checkInt32($var); - $this->stream_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/EgressRequest.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/EgressRequest.php deleted file mode 100644 index b8ae357db6e5..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/EgressRequest.php +++ /dev/null @@ -1,261 +0,0 @@ -google.cloud.apigeeconnect.v1.EgressRequest - */ -class EgressRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Unique identifier for the request. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Actual payload to send to agent. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Payload payload = 2; - */ - protected $payload = null; - /** - * Tether Endpoint. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - */ - protected $endpoint = 0; - /** - * GCP Project. - * Format: `projects/{project_number}`. - * - * Generated from protobuf field string project = 4; - */ - protected $project = ''; - /** - * Unique identifier for clients to trace their request/response. - * - * Generated from protobuf field string trace_id = 5; - */ - protected $trace_id = ''; - /** - * Timeout for the HTTP request. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - */ - protected $timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Unique identifier for the request. - * @type \Google\Cloud\ApigeeConnect\V1\Payload $payload - * Actual payload to send to agent. - * @type int $endpoint - * Tether Endpoint. - * @type string $project - * GCP Project. - * Format: `projects/{project_number}`. - * @type string $trace_id - * Unique identifier for clients to trace their request/response. - * @type \Google\Protobuf\Duration $timeout - * Timeout for the HTTP request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * Unique identifier for the request. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Unique identifier for the request. - * - * 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; - } - - /** - * Actual payload to send to agent. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Payload payload = 2; - * @return \Google\Cloud\ApigeeConnect\V1\Payload|null - */ - public function getPayload() - { - return $this->payload; - } - - public function hasPayload() - { - return isset($this->payload); - } - - public function clearPayload() - { - unset($this->payload); - } - - /** - * Actual payload to send to agent. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Payload payload = 2; - * @param \Google\Cloud\ApigeeConnect\V1\Payload $var - * @return $this - */ - public function setPayload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeConnect\V1\Payload::class); - $this->payload = $var; - - return $this; - } - - /** - * Tether Endpoint. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * @return int - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Tether Endpoint. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * @param int $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApigeeConnect\V1\TetherEndpoint::class); - $this->endpoint = $var; - - return $this; - } - - /** - * GCP Project. - * Format: `projects/{project_number}`. - * - * Generated from protobuf field string project = 4; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * GCP Project. - * Format: `projects/{project_number}`. - * - * Generated from protobuf field string project = 4; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Unique identifier for clients to trace their request/response. - * - * Generated from protobuf field string trace_id = 5; - * @return string - */ - public function getTraceId() - { - return $this->trace_id; - } - - /** - * Unique identifier for clients to trace their request/response. - * - * Generated from protobuf field string trace_id = 5; - * @param string $var - * @return $this - */ - public function setTraceId($var) - { - GPBUtil::checkString($var, True); - $this->trace_id = $var; - - return $this; - } - - /** - * Timeout for the HTTP request. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeout() - { - return $this->timeout; - } - - public function hasTimeout() - { - return isset($this->timeout); - } - - public function clearTimeout() - { - unset($this->timeout); - } - - /** - * Timeout for the HTTP request. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/EgressResponse.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/EgressResponse.php deleted file mode 100644 index 0f3a9b16f827..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/EgressResponse.php +++ /dev/null @@ -1,303 +0,0 @@ -google.cloud.apigeeconnect.v1.EgressResponse - */ -class EgressResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Unique identifier for the response. Matches the EgressRequest's id. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * HttpResponse. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - */ - protected $http_response = null; - /** - * Errors from application when handling the http request. - * - * Generated from protobuf field .google.rpc.Status status = 3; - */ - protected $status = null; - /** - * GCP Project. - * Format: `projects/{project_number}`. - * - * Generated from protobuf field string project = 4; - */ - protected $project = ''; - /** - * Unique identifier for clients to trace their request/response. Matches the - * EgressRequest's trace id - * - * Generated from protobuf field string trace_id = 5; - */ - protected $trace_id = ''; - /** - * Tether Endpoint. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - */ - protected $endpoint = 0; - /** - * Name is the full resource path of endpoint. - * Format: `projects/{project_number or project_id}/endpoints/{endpoint}` - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Unique identifier for the response. Matches the EgressRequest's id. - * @type \Google\Cloud\ApigeeConnect\V1\HttpResponse $http_response - * HttpResponse. - * @type \Google\Rpc\Status $status - * Errors from application when handling the http request. - * @type string $project - * GCP Project. - * Format: `projects/{project_number}`. - * @type string $trace_id - * Unique identifier for clients to trace their request/response. Matches the - * EgressRequest's trace id - * @type int $endpoint - * Tether Endpoint. - * @type string $name - * Name is the full resource path of endpoint. - * Format: `projects/{project_number or project_id}/endpoints/{endpoint}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * Unique identifier for the response. Matches the EgressRequest's id. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Unique identifier for the response. Matches the EgressRequest's id. - * - * 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; - } - - /** - * HttpResponse. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * @return \Google\Cloud\ApigeeConnect\V1\HttpResponse|null - */ - public function getHttpResponse() - { - return $this->http_response; - } - - public function hasHttpResponse() - { - return isset($this->http_response); - } - - public function clearHttpResponse() - { - unset($this->http_response); - } - - /** - * HttpResponse. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * @param \Google\Cloud\ApigeeConnect\V1\HttpResponse $var - * @return $this - */ - public function setHttpResponse($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeConnect\V1\HttpResponse::class); - $this->http_response = $var; - - return $this; - } - - /** - * Errors from application when handling the http request. - * - * Generated from protobuf field .google.rpc.Status status = 3; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Errors from application when handling the http request. - * - * Generated from protobuf field .google.rpc.Status status = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - - /** - * GCP Project. - * Format: `projects/{project_number}`. - * - * Generated from protobuf field string project = 4; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * GCP Project. - * Format: `projects/{project_number}`. - * - * Generated from protobuf field string project = 4; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Unique identifier for clients to trace their request/response. Matches the - * EgressRequest's trace id - * - * Generated from protobuf field string trace_id = 5; - * @return string - */ - public function getTraceId() - { - return $this->trace_id; - } - - /** - * Unique identifier for clients to trace their request/response. Matches the - * EgressRequest's trace id - * - * Generated from protobuf field string trace_id = 5; - * @param string $var - * @return $this - */ - public function setTraceId($var) - { - GPBUtil::checkString($var, True); - $this->trace_id = $var; - - return $this; - } - - /** - * Tether Endpoint. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * @return int - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Tether Endpoint. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * @param int $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApigeeConnect\V1\TetherEndpoint::class); - $this->endpoint = $var; - - return $this; - } - - /** - * Name is the full resource path of endpoint. - * Format: `projects/{project_number or project_id}/endpoints/{endpoint}` - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name is the full resource path of endpoint. - * Format: `projects/{project_number or project_id}/endpoints/{endpoint}` - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Header.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Header.php deleted file mode 100644 index 67bbddc21b71..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Header.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.apigeeconnect.v1.Header - */ -class Header extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * Generated from protobuf field repeated string values = 2; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated string values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Generated from protobuf field repeated string values = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/HttpRequest.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/HttpRequest.php deleted file mode 100644 index aa38738186a9..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/HttpRequest.php +++ /dev/null @@ -1,217 +0,0 @@ -google.cloud.apigeeconnect.v1.HttpRequest - */ -class HttpRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A unique identifier for the request. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The HTTP request method. - * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE". - * - * Generated from protobuf field string method = 2; - */ - protected $method = ''; - /** - * The HTTP request URL. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Url url = 3; - */ - protected $url = null; - /** - * The HTTP request headers. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Header headers = 4; - */ - private $headers; - /** - * HTTP request body. - * - * Generated from protobuf field bytes body = 5; - */ - protected $body = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * A unique identifier for the request. - * @type string $method - * The HTTP request method. - * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE". - * @type \Google\Cloud\ApigeeConnect\V1\Url $url - * The HTTP request URL. - * @type array<\Google\Cloud\ApigeeConnect\V1\Header>|\Google\Protobuf\Internal\RepeatedField $headers - * The HTTP request headers. - * @type string $body - * HTTP request body. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * A unique identifier for the request. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * A unique identifier for the request. - * - * 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; - } - - /** - * The HTTP request method. - * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE". - * - * Generated from protobuf field string method = 2; - * @return string - */ - public function getMethod() - { - return $this->method; - } - - /** - * The HTTP request method. - * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE". - * - * Generated from protobuf field string method = 2; - * @param string $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkString($var, True); - $this->method = $var; - - return $this; - } - - /** - * The HTTP request URL. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Url url = 3; - * @return \Google\Cloud\ApigeeConnect\V1\Url|null - */ - public function getUrl() - { - return $this->url; - } - - public function hasUrl() - { - return isset($this->url); - } - - public function clearUrl() - { - unset($this->url); - } - - /** - * The HTTP request URL. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Url url = 3; - * @param \Google\Cloud\ApigeeConnect\V1\Url $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeConnect\V1\Url::class); - $this->url = $var; - - return $this; - } - - /** - * The HTTP request headers. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Header headers = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * The HTTP request headers. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Header headers = 4; - * @param array<\Google\Cloud\ApigeeConnect\V1\Header>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeConnect\V1\Header::class); - $this->headers = $arr; - - return $this; - } - - /** - * HTTP request body. - * - * Generated from protobuf field bytes body = 5; - * @return string - */ - public function getBody() - { - return $this->body; - } - - /** - * HTTP request body. - * - * Generated from protobuf field bytes body = 5; - * @param string $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkString($var, False); - $this->body = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/HttpResponse.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/HttpResponse.php deleted file mode 100644 index d79ba359efb9..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/HttpResponse.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.apigeeconnect.v1.HttpResponse - */ -class HttpResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A unique identifier that matches the request ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Status of http response, e.g. "200 OK". - * - * Generated from protobuf field string status = 2; - */ - protected $status = ''; - /** - * Status code of http response, e.g. 200. - * - * Generated from protobuf field int32 status_code = 3; - */ - protected $status_code = 0; - /** - * The HTTP 1.1 response body. - * - * Generated from protobuf field bytes body = 4; - */ - protected $body = ''; - /** - * The HTTP response headers. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Header headers = 5; - */ - private $headers; - /** - * Content length records the length of the associated content. The - * value -1 indicates that the length is unknown. Unless http method - * is "HEAD", values >= 0 indicate that the given number of bytes may - * be read from Body. - * - * Generated from protobuf field int64 content_length = 6; - */ - protected $content_length = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * A unique identifier that matches the request ID. - * @type string $status - * Status of http response, e.g. "200 OK". - * @type int $status_code - * Status code of http response, e.g. 200. - * @type string $body - * The HTTP 1.1 response body. - * @type array<\Google\Cloud\ApigeeConnect\V1\Header>|\Google\Protobuf\Internal\RepeatedField $headers - * The HTTP response headers. - * @type int|string $content_length - * Content length records the length of the associated content. The - * value -1 indicates that the length is unknown. Unless http method - * is "HEAD", values >= 0 indicate that the given number of bytes may - * be read from Body. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * A unique identifier that matches the request ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * A unique identifier that matches the request ID. - * - * 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; - } - - /** - * Status of http response, e.g. "200 OK". - * - * Generated from protobuf field string status = 2; - * @return string - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of http response, e.g. "200 OK". - * - * Generated from protobuf field string status = 2; - * @param string $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkString($var, True); - $this->status = $var; - - return $this; - } - - /** - * Status code of http response, e.g. 200. - * - * Generated from protobuf field int32 status_code = 3; - * @return int - */ - public function getStatusCode() - { - return $this->status_code; - } - - /** - * Status code of http response, e.g. 200. - * - * Generated from protobuf field int32 status_code = 3; - * @param int $var - * @return $this - */ - public function setStatusCode($var) - { - GPBUtil::checkInt32($var); - $this->status_code = $var; - - return $this; - } - - /** - * The HTTP 1.1 response body. - * - * Generated from protobuf field bytes body = 4; - * @return string - */ - public function getBody() - { - return $this->body; - } - - /** - * The HTTP 1.1 response body. - * - * Generated from protobuf field bytes body = 4; - * @param string $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkString($var, False); - $this->body = $var; - - return $this; - } - - /** - * The HTTP response headers. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Header headers = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * The HTTP response headers. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Header headers = 5; - * @param array<\Google\Cloud\ApigeeConnect\V1\Header>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeConnect\V1\Header::class); - $this->headers = $arr; - - return $this; - } - - /** - * Content length records the length of the associated content. The - * value -1 indicates that the length is unknown. Unless http method - * is "HEAD", values >= 0 indicate that the given number of bytes may - * be read from Body. - * - * Generated from protobuf field int64 content_length = 6; - * @return int|string - */ - public function getContentLength() - { - return $this->content_length; - } - - /** - * Content length records the length of the associated content. The - * value -1 indicates that the length is unknown. Unless http method - * is "HEAD", values >= 0 indicate that the given number of bytes may - * be read from Body. - * - * Generated from protobuf field int64 content_length = 6; - * @param int|string $var - * @return $this - */ - public function setContentLength($var) - { - GPBUtil::checkInt64($var); - $this->content_length = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/ListConnectionsRequest.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/ListConnectionsRequest.php deleted file mode 100644 index 2ef0d60271f1..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/ListConnectionsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.apigeeconnect.v1.ListConnectionsRequest - */ -class ListConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent name of the form: - * `projects/{project_number or project_id}/endpoints/{endpoint}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of connections to return. The service may return fewer - * than this value. If unspecified, at most 100 connections will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListConnections` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConnections` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Parent name of the form: - * `projects/{project_number or project_id}/endpoints/{endpoint}`. Please see - * {@see ConnectionServiceClient::endpointName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeConnect\V1\ListConnectionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent name of the form: - * `projects/{project_number or project_id}/endpoints/{endpoint}`. - * @type int $page_size - * The maximum number of connections to return. The service may return fewer - * than this value. If unspecified, at most 100 connections will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListConnections` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConnections` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Connection::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent name of the form: - * `projects/{project_number or project_id}/endpoints/{endpoint}`. - * - * 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. Parent name of the form: - * `projects/{project_number or project_id}/endpoints/{endpoint}`. - * - * 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 connections to return. The service may return fewer - * than this value. If unspecified, at most 100 connections will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of connections to return. The service may return fewer - * than this value. If unspecified, at most 100 connections will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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 `ListConnections` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConnections` 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 `ListConnections` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConnections` 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/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/ListConnectionsResponse.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/ListConnectionsResponse.php deleted file mode 100644 index 66033f7b56a1..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/ListConnectionsResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.apigeeconnect.v1.ListConnectionsResponse - */ -class ListConnectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of clients. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; - */ - private $connections; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeConnect\V1\Connection>|\Google\Protobuf\Internal\RepeatedField $connections - * A list of clients. - * @type string $next_page_token - * A token that 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\Cloud\Apigeeconnect\V1\Connection::initOnce(); - parent::__construct($data); - } - - /** - * A list of clients. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConnections() - { - return $this->connections; - } - - /** - * A list of clients. - * - * Generated from protobuf field repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; - * @param array<\Google\Cloud\ApigeeConnect\V1\Connection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeConnect\V1\Connection::class); - $this->connections = $arr; - - return $this; - } - - /** - * A token that 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 that 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/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Payload.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Payload.php deleted file mode 100644 index 2ff9e187df43..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Payload.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.apigeeconnect.v1.Payload - */ -class Payload extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApigeeConnect\V1\HttpRequest $http_request - * The HttpRequest proto. - * @type \Google\Cloud\ApigeeConnect\V1\StreamInfo $stream_info - * The information of stream. - * @type int $action - * The action taken by agent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * The HttpRequest proto. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * @return \Google\Cloud\ApigeeConnect\V1\HttpRequest|null - */ - public function getHttpRequest() - { - return $this->readOneof(1); - } - - public function hasHttpRequest() - { - return $this->hasOneof(1); - } - - /** - * The HttpRequest proto. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * @param \Google\Cloud\ApigeeConnect\V1\HttpRequest $var - * @return $this - */ - public function setHttpRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeConnect\V1\HttpRequest::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The information of stream. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * @return \Google\Cloud\ApigeeConnect\V1\StreamInfo|null - */ - public function getStreamInfo() - { - return $this->readOneof(2); - } - - public function hasStreamInfo() - { - return $this->hasOneof(2); - } - - /** - * The information of stream. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * @param \Google\Cloud\ApigeeConnect\V1\StreamInfo $var - * @return $this - */ - public function setStreamInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeConnect\V1\StreamInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The action taken by agent. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Action action = 3; - * @return int - */ - public function getAction() - { - return $this->readOneof(3); - } - - public function hasAction() - { - return $this->hasOneof(3); - } - - /** - * The action taken by agent. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Action action = 3; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApigeeConnect\V1\Action::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Scheme.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Scheme.php deleted file mode 100644 index 5eab9e55f2e0..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Scheme.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.apigeeconnect.v1.Scheme - */ -class Scheme -{ - /** - * Unspecified scheme. - * - * Generated from protobuf enum SCHEME_UNSPECIFIED = 0; - */ - const SCHEME_UNSPECIFIED = 0; - /** - * HTTPS protocol. - * - * Generated from protobuf enum HTTPS = 1; - */ - const HTTPS = 1; - - private static $valueToName = [ - self::SCHEME_UNSPECIFIED => 'SCHEME_UNSPECIFIED', - self::HTTPS => 'HTTPS', - ]; - - 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/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/StreamInfo.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/StreamInfo.php deleted file mode 100644 index c75fc3c7d379..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/StreamInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.apigeeconnect.v1.StreamInfo - */ -class StreamInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Unique identifier for the stream. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Unique identifier for the stream. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * Unique identifier for the stream. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Unique identifier for the stream. - * - * 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; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/TetherEndpoint.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/TetherEndpoint.php deleted file mode 100644 index 2a2e2b23cacb..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/TetherEndpoint.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.apigeeconnect.v1.TetherEndpoint - */ -class TetherEndpoint -{ - /** - * Unspecified tether endpoint. - * - * Generated from protobuf enum TETHER_ENDPOINT_UNSPECIFIED = 0; - */ - const TETHER_ENDPOINT_UNSPECIFIED = 0; - /** - * Apigee MART endpoint. - * - * Generated from protobuf enum APIGEE_MART = 1; - */ - const APIGEE_MART = 1; - /** - * Apigee Runtime endpoint. - * - * Generated from protobuf enum APIGEE_RUNTIME = 2; - */ - const APIGEE_RUNTIME = 2; - /** - * Apigee Mint Rating endpoint. - * - * Generated from protobuf enum APIGEE_MINT_RATING = 3; - */ - const APIGEE_MINT_RATING = 3; - - private static $valueToName = [ - self::TETHER_ENDPOINT_UNSPECIFIED => 'TETHER_ENDPOINT_UNSPECIFIED', - self::APIGEE_MART => 'APIGEE_MART', - self::APIGEE_RUNTIME => 'APIGEE_RUNTIME', - self::APIGEE_MINT_RATING => 'APIGEE_MINT_RATING', - ]; - - 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/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Url.php b/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Url.php deleted file mode 100644 index e8c63a9d6598..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/proto/src/Google/Cloud/ApigeeConnect/V1/Url.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.apigeeconnect.v1.Url - */ -class Url extends \Google\Protobuf\Internal\Message -{ - /** - * Scheme. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - */ - protected $scheme = 0; - /** - * Host or Host:Port. - * - * Generated from protobuf field string host = 2; - */ - protected $host = ''; - /** - * Path starts with `/`. - * - * Generated from protobuf field string path = 3; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scheme - * Scheme. - * @type string $host - * Host or Host:Port. - * @type string $path - * Path starts with `/`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeconnect\V1\Tether::initOnce(); - parent::__construct($data); - } - - /** - * Scheme. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * @return int - */ - public function getScheme() - { - return $this->scheme; - } - - /** - * Scheme. - * - * Generated from protobuf field .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * @param int $var - * @return $this - */ - public function setScheme($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApigeeConnect\V1\Scheme::class); - $this->scheme = $var; - - return $this; - } - - /** - * Host or Host:Port. - * - * Generated from protobuf field string host = 2; - * @return string - */ - public function getHost() - { - return $this->host; - } - - /** - * Host or Host:Port. - * - * Generated from protobuf field string host = 2; - * @param string $var - * @return $this - */ - public function setHost($var) - { - GPBUtil::checkString($var, True); - $this->host = $var; - - return $this; - } - - /** - * Path starts with `/`. - * - * Generated from protobuf field string path = 3; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Path starts with `/`. - * - * Generated from protobuf field string path = 3; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeConnect/v1/samples/V1/ConnectionServiceClient/list_connections.php b/owl-bot-staging/ApigeeConnect/v1/samples/V1/ConnectionServiceClient/list_connections.php deleted file mode 100644 index 6807f5bd13af..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/samples/V1/ConnectionServiceClient/list_connections.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $connectionServiceClient->listConnections($request); - - /** @var Connection $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConnectionServiceClient::endpointName('[PROJECT]', '[ENDPOINT]'); - - list_connections_sample($formattedParent); -} -// [END apigeeconnect_v1_generated_ConnectionService_ListConnections_sync] diff --git a/owl-bot-staging/ApigeeConnect/v1/samples/V1/TetherClient/egress.php b/owl-bot-staging/ApigeeConnect/v1/samples/V1/TetherClient/egress.php deleted file mode 100644 index 1b7d552a55fa..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/samples/V1/TetherClient/egress.php +++ /dev/null @@ -1,69 +0,0 @@ -egress(); - $stream->writeAll([$request,]); - - /** @var EgressRequest $element */ - foreach ($stream->closeWriteAndReadAll() as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeconnect_v1_generated_Tether_Egress_sync] diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/Client/ConnectionServiceClient.php b/owl-bot-staging/ApigeeConnect/v1/src/V1/Client/ConnectionServiceClient.php deleted file mode 100644 index a01026cf8af1..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/Client/ConnectionServiceClient.php +++ /dev/null @@ -1,238 +0,0 @@ - listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) - */ -final class ConnectionServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apigeeconnect.v1.ConnectionService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apigeeconnect.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apigeeconnect.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/connection_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/connection_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/connection_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/connection_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a endpoint - * resource. - * - * @param string $project - * @param string $endpoint - * - * @return string The formatted endpoint resource. - */ - public static function endpointName(string $project, string $endpoint): string - { - return self::getPathTemplate('endpoint')->render([ - 'project' => $project, - 'endpoint' => $endpoint, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - endpoint: projects/{project}/endpoints/{endpoint} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apigeeconnect.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Lists connections that are currently active for the given Apigee Connect - * endpoint. - * - * The async variant is {@see ConnectionServiceClient::listConnectionsAsync()} . - * - * @example samples/V1/ConnectionServiceClient/list_connections.php - * - * @param ListConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listConnections(ListConnectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConnections', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/Client/TetherClient.php b/owl-bot-staging/ApigeeConnect/v1/src/V1/Client/TetherClient.php deleted file mode 100644 index 7e86e5933c7f..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/Client/TetherClient.php +++ /dev/null @@ -1,176 +0,0 @@ - self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/tether_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/tether_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/tether_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/tether_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apigeeconnect.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Egress streams egress requests and responses. Logically, this is not - * actually a streaming request, but uses streaming as a mechanism to flip - * the client-server relationship of gRPC so that the server can act as a - * client. - * The listener, the RPC server, accepts connections from the dialer, - * the RPC client. - * The listener streams http requests and the dialer streams http responses. - * - * @example samples/V1/TetherClient/egress.php - * - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return BidiStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function egress(array $callOptions = []): BidiStream - { - return $this->startApiCall('Egress', null, $callOptions); - } -} diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ApigeeConnect/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 8b57fd26fb84..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.apigeeconnect.v1", - "libraryPackage": "Google\\Cloud\\ApigeeConnect\\V1", - "services": { - "ConnectionService": { - "clients": { - "grpc": { - "libraryClient": "ConnectionServiceGapicClient", - "rpcs": { - "ListConnections": { - "methods": [ - "listConnections" - ] - } - } - } - } - }, - "Tether": { - "clients": { - "grpc": { - "libraryClient": "TetherGapicClient", - "rpcs": { - "Egress": { - "methods": [ - "egress" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_client_config.json b/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_client_config.json deleted file mode 100644 index 521e8562acdc..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_client_config.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "interfaces": { - "google.cloud.apigeeconnect.v1.ConnectionService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "UNKNOWN" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "ListConnections": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_descriptor_config.php b/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_descriptor_config.php deleted file mode 100644 index b71cd9a09e7c..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_descriptor_config.php +++ /dev/null @@ -1,51 +0,0 @@ - [ - 'google.cloud.apigeeconnect.v1.ConnectionService' => [ - 'ListConnections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConnections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeConnect\V1\ListConnectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'endpoint' => 'projects/{project}/endpoints/{endpoint}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_rest_client_config.php b/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_rest_client_config.php deleted file mode 100644 index bf69949de167..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/connection_service_rest_client_config.php +++ /dev/null @@ -1,40 +0,0 @@ - [ - 'google.cloud.apigeeconnect.v1.ConnectionService' => [ - 'ListConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/endpoints/*}/connections', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_client_config.json b/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_client_config.json deleted file mode 100644 index fa0d9fc86327..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_client_config.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "interfaces": { - "google.cloud.apigeeconnect.v1.Tether": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "Egress": { - "timeout_millis": 60000 - } - } - } - } -} diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_descriptor_config.php b/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_descriptor_config.php deleted file mode 100644 index 8275e8b8958b..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_descriptor_config.php +++ /dev/null @@ -1,35 +0,0 @@ - [ - 'google.cloud.apigeeconnect.v1.Tether' => [ - 'Egress' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'BidiStreaming', - ], - 'callType' => \Google\ApiCore\Call::BIDI_STREAMING_CALL, - 'responseType' => 'Google\Cloud\ApigeeConnect\V1\EgressRequest', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_rest_client_config.php b/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_rest_client_config.php deleted file mode 100644 index b33f57959be3..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/src/V1/resources/tether_rest_client_config.php +++ /dev/null @@ -1,26 +0,0 @@ - [], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApigeeConnect/v1/tests/Unit/V1/Client/ConnectionServiceClientTest.php b/owl-bot-staging/ApigeeConnect/v1/tests/Unit/V1/Client/ConnectionServiceClientTest.php deleted file mode 100644 index 591b3d4b6949..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/tests/Unit/V1/Client/ConnectionServiceClientTest.php +++ /dev/null @@ -1,172 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ConnectionServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ConnectionServiceClient($options); - } - - /** @test */ - public function listConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $connectionsElement = new Connection(); - $connections = [ - $connectionsElement, - ]; - $expectedResponse = new ListConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConnections($connections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->endpointName('[PROJECT]', '[ENDPOINT]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConnections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeconnect.v1.ConnectionService/ListConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->endpointName('[PROJECT]', '[ENDPOINT]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $connectionsElement = new Connection(); - $connections = [ - $connectionsElement, - ]; - $expectedResponse = new ListConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConnections($connections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->endpointName('[PROJECT]', '[ENDPOINT]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConnectionsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeconnect.v1.ConnectionService/ListConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApigeeConnect/v1/tests/Unit/V1/Client/TetherClientTest.php b/owl-bot-staging/ApigeeConnect/v1/tests/Unit/V1/Client/TetherClientTest.php deleted file mode 100644 index cbf4103ba99f..000000000000 --- a/owl-bot-staging/ApigeeConnect/v1/tests/Unit/V1/Client/TetherClientTest.php +++ /dev/null @@ -1,169 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return TetherClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new TetherClient($options); - } - - /** @test */ - public function egressTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $project = 'project-309310695'; - $traceId = 'traceId1270300245'; - $expectedResponse = new EgressRequest(); - $expectedResponse->setId($id); - $expectedResponse->setProject($project); - $expectedResponse->setTraceId($traceId); - $transport->addResponse($expectedResponse); - $id2 = 'id23227150'; - $project2 = 'project2-894831476'; - $traceId2 = 'traceId2987826376'; - $expectedResponse2 = new EgressRequest(); - $expectedResponse2->setId($id2); - $expectedResponse2->setProject($project2); - $expectedResponse2->setTraceId($traceId2); - $transport->addResponse($expectedResponse2); - $id3 = 'id33227151'; - $project3 = 'project3-894831475'; - $traceId3 = 'traceId3987826377'; - $expectedResponse3 = new EgressRequest(); - $expectedResponse3->setId($id3); - $expectedResponse3->setProject($project3); - $expectedResponse3->setTraceId($traceId3); - $transport->addResponse($expectedResponse3); - // Mock request - $request = new EgressResponse(); - $request2 = new EgressResponse(); - $request3 = new EgressResponse(); - $bidi = $gapicClient->egress(); - $this->assertInstanceOf(BidiStream::class, $bidi); - $bidi->write($request); - $responses = []; - $responses[] = $bidi->read(); - $bidi->writeAll([ - $request2, - $request3, - ]); - foreach ($bidi->closeWriteAndReadAll() as $response) { - $responses[] = $response; - } - - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $createStreamRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($createStreamRequests)); - $streamFuncCall = $createStreamRequests[0]->getFuncCall(); - $streamRequestObject = $createStreamRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeconnect.v1.Tether/Egress', $streamFuncCall); - $this->assertNull($streamRequestObject); - $callObjects = $transport->popCallObjects(); - $this->assertSame(1, count($callObjects)); - $bidiCall = $callObjects[0]; - $writeRequests = $bidiCall->popReceivedCalls(); - $expectedRequests = []; - $expectedRequests[] = $request; - $expectedRequests[] = $request2; - $expectedRequests[] = $request3; - $this->assertEquals($expectedRequests, $writeRequests); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function egressExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - $bidi = $gapicClient->egress(); - $results = $bidi->closeWriteAndReadAll(); - try { - iterator_to_array($results); - // If the close stream method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeregistry/V1/ProvisioningService.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeregistry/V1/ProvisioningService.php deleted file mode 100644 index b615e6091dd8..000000000000 Binary files a/owl-bot-staging/ApigeeRegistry/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeregistry/V1/ProvisioningService.php and /dev/null differ diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeregistry/V1/RegistryModels.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeregistry/V1/RegistryModels.php deleted file mode 100644 index a3b9f65f3681..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/GPBMetadata/Google/Cloud/Apigeeregistry/V1/RegistryModels.php +++ /dev/null @@ -1,127 +0,0 @@ -internalAddGeneratedFile( - ' - -4google/cloud/apigeeregistry/v1/registry_models.protogoogle.cloud.apigeeregistry.v1google/api/resource.protogoogle/protobuf/timestamp.proto" -Api -name (  - display_name (  - description ( 4 - create_time ( 2.google.protobuf.TimestampBA4 - update_time ( 2.google.protobuf.TimestampBA - availability ( J -recommended_version ( B-A* -(apigeeregistry.googleapis.com/ApiVersionP -recommended_deployment ( B0A- -+apigeeregistry.googleapis.com/ApiDeployment? -labels ( 2/.google.cloud.apigeeregistry.v1.Api.LabelsEntryI - annotations - ( 24.google.cloud.apigeeregistry.v1.Api.AnnotationsEntry- - LabelsEntry -key (  -value ( :82 -AnnotationsEntry -key (  -value ( :8:ZAW -!apigeeregistry.googleapis.com/Api2projects/{project}/locations/{location}/apis/{api}" - -ApiVersion -name (  - display_name (  - description ( 4 - create_time ( 2.google.protobuf.TimestampBA4 - update_time ( 2.google.protobuf.TimestampBA -state ( F -labels ( 26.google.cloud.apigeeregistry.v1.ApiVersion.LabelsEntryP - annotations ( 2;.google.cloud.apigeeregistry.v1.ApiVersion.AnnotationsEntry- - LabelsEntry -key (  -value ( :82 -AnnotationsEntry -key (  -value ( :8:tAq -(apigeeregistry.googleapis.com/ApiVersionEprojects/{project}/locations/{location}/apis/{api}/versions/{version}" -ApiSpec -name (  -filename (  - description (  - revision_id ( BAA4 - create_time ( 2.google.protobuf.TimestampBA= -revision_create_time ( 2.google.protobuf.TimestampBA= -revision_update_time ( 2.google.protobuf.TimestampBA - mime_type (  - -size_bytes (BA -hash - ( BA - -source_uri (  -contents ( BAC -labels ( 23.google.cloud.apigeeregistry.v1.ApiSpec.LabelsEntryM - annotations ( 28.google.cloud.apigeeregistry.v1.ApiSpec.AnnotationsEntry- - LabelsEntry -key (  -value ( :82 -AnnotationsEntry -key (  -value ( :8:~A{ -%apigeeregistry.googleapis.com/ApiSpecRprojects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}" - ApiDeployment -name (  - display_name (  - description (  - revision_id ( BAA4 - create_time ( 2.google.protobuf.TimestampBA= -revision_create_time ( 2.google.protobuf.TimestampBA= -revision_update_time ( 2.google.protobuf.TimestampBAE -api_spec_revision ( B*A\' -%apigeeregistry.googleapis.com/ApiSpec - endpoint_uri (  -external_channel_uri - (  -intended_audience (  -access_guidance ( I -labels ( 29.google.cloud.apigeeregistry.v1.ApiDeployment.LabelsEntryS - annotations ( 2>.google.cloud.apigeeregistry.v1.ApiDeployment.AnnotationsEntry- - LabelsEntry -key (  -value ( :82 -AnnotationsEntry -key (  -value ( :8:}Az -+apigeeregistry.googleapis.com/ApiDeploymentKprojects/{project}/locations/{location}/apis/{api}/deployments/{deployment}" -Artifact -name ( 4 - create_time ( 2.google.protobuf.TimestampBA4 - update_time ( 2.google.protobuf.TimestampBA - mime_type (  - -size_bytes (BA -hash ( BA -contents ( BA:A -&apigeeregistry.googleapis.com/ArtifactinternalAddGeneratedFile( - ' -r -5google/cloud/apigeeregistry/v1/registry_service.protogoogle.cloud.apigeeregistry.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/httpbody.protogoogle/api/resource.proto4google/cloud/apigeeregistry/v1/registry_models.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" -ListApisRequest9 -parent ( B)AA#!apigeeregistry.googleapis.com/Api - page_size ( - -page_token (  -filter ( "^ -ListApisResponse1 -apis ( 2#.google.cloud.apigeeregistry.v1.Api -next_page_token ( "H - GetApiRequest7 -name ( B)AA# -!apigeeregistry.googleapis.com/Api" -CreateApiRequest9 -parent ( B)AA#!apigeeregistry.googleapis.com/Api5 -api ( 2#.google.cloud.apigeeregistry.v1.ApiBA -api_id ( BA" -UpdateApiRequest5 -api ( 2#.google.cloud.apigeeregistry.v1.ApiBA/ - update_mask ( 2.google.protobuf.FieldMask - allow_missing ("Z -DeleteApiRequest7 -name ( B)AA# -!apigeeregistry.googleapis.com/Api -force (" -ListApiVersionsRequest@ -parent ( B0AA*(apigeeregistry.googleapis.com/ApiVersion - page_size ( - -page_token (  -filter ( "t -ListApiVersionsResponse@ - api_versions ( 2*.google.cloud.apigeeregistry.v1.ApiVersion -next_page_token ( "V -GetApiVersionRequest> -name ( B0AA* -(apigeeregistry.googleapis.com/ApiVersion" -CreateApiVersionRequest@ -parent ( B0AA*(apigeeregistry.googleapis.com/ApiVersionD - api_version ( 2*.google.cloud.apigeeregistry.v1.ApiVersionBA -api_version_id ( BA" -UpdateApiVersionRequestD - api_version ( 2*.google.cloud.apigeeregistry.v1.ApiVersionBA/ - update_mask ( 2.google.protobuf.FieldMask - allow_missing ("h -DeleteApiVersionRequest> -name ( B0AA* -(apigeeregistry.googleapis.com/ApiVersion -force (" -ListApiSpecsRequest= -parent ( B-AA\'%apigeeregistry.googleapis.com/ApiSpec - page_size ( - -page_token (  -filter ( "k -ListApiSpecsResponse: - api_specs ( 2\'.google.cloud.apigeeregistry.v1.ApiSpec -next_page_token ( "P -GetApiSpecRequest; -name ( B-AA\' -%apigeeregistry.googleapis.com/ApiSpec"X -GetApiSpecContentsRequest; -name ( B-AA\' -%apigeeregistry.googleapis.com/ApiSpec" -CreateApiSpecRequest= -parent ( B-AA\'%apigeeregistry.googleapis.com/ApiSpec> -api_spec ( 2\'.google.cloud.apigeeregistry.v1.ApiSpecBA - api_spec_id ( BA" -UpdateApiSpecRequest> -api_spec ( 2\'.google.cloud.apigeeregistry.v1.ApiSpecBA/ - update_mask ( 2.google.protobuf.FieldMask - allow_missing ("b -DeleteApiSpecRequest; -name ( B-AA\' -%apigeeregistry.googleapis.com/ApiSpec -force ("j -TagApiSpecRevisionRequest; -name ( B-AA\' -%apigeeregistry.googleapis.com/ApiSpec -tag ( BA" -ListApiSpecRevisionsRequest; -name ( B-AA\' -%apigeeregistry.googleapis.com/ApiSpec - page_size ( - -page_token ( "s -ListApiSpecRevisionsResponse: - api_specs ( 2\'.google.cloud.apigeeregistry.v1.ApiSpec -next_page_token ( "o -RollbackApiSpecRequest; -name ( B-AA\' -%apigeeregistry.googleapis.com/ApiSpec - revision_id ( BA"[ -DeleteApiSpecRevisionRequest; -name ( B-AA\' -%apigeeregistry.googleapis.com/ApiSpec" -ListApiDeploymentsRequestC -parent ( B3AA-+apigeeregistry.googleapis.com/ApiDeployment - page_size ( - -page_token (  -filter ( "} -ListApiDeploymentsResponseF -api_deployments ( 2-.google.cloud.apigeeregistry.v1.ApiDeployment -next_page_token ( "\\ -GetApiDeploymentRequestA -name ( B3AA- -+apigeeregistry.googleapis.com/ApiDeployment" -CreateApiDeploymentRequestC -parent ( B3AA-+apigeeregistry.googleapis.com/ApiDeploymentJ -api_deployment ( 2-.google.cloud.apigeeregistry.v1.ApiDeploymentBA -api_deployment_id ( BA" -UpdateApiDeploymentRequestJ -api_deployment ( 2-.google.cloud.apigeeregistry.v1.ApiDeploymentBA/ - update_mask ( 2.google.protobuf.FieldMask - allow_missing ("n -DeleteApiDeploymentRequestA -name ( B3AA- -+apigeeregistry.googleapis.com/ApiDeployment -force ("v -TagApiDeploymentRevisionRequestA -name ( B3AA- -+apigeeregistry.googleapis.com/ApiDeployment -tag ( BA" -!ListApiDeploymentRevisionsRequestA -name ( B3AA- -+apigeeregistry.googleapis.com/ApiDeployment - page_size ( - -page_token ( " -"ListApiDeploymentRevisionsResponseF -api_deployments ( 2-.google.cloud.apigeeregistry.v1.ApiDeployment -next_page_token ( "{ -RollbackApiDeploymentRequestA -name ( B3AA- -+apigeeregistry.googleapis.com/ApiDeployment - revision_id ( BA"g -"DeleteApiDeploymentRevisionRequestA -name ( B3AA- -+apigeeregistry.googleapis.com/ApiDeployment" -ListArtifactsRequest> -parent ( B.AA(&apigeeregistry.googleapis.com/Artifact - page_size ( - -page_token (  -filter ( "m -ListArtifactsResponse; - artifacts ( 2(.google.cloud.apigeeregistry.v1.Artifact -next_page_token ( "R -GetArtifactRequest< -name ( B.AA( -&apigeeregistry.googleapis.com/Artifact"Z -GetArtifactContentsRequest< -name ( B.AA( -&apigeeregistry.googleapis.com/Artifact" -CreateArtifactRequest> -parent ( B.AA(&apigeeregistry.googleapis.com/Artifact? -artifact ( 2(.google.cloud.apigeeregistry.v1.ArtifactBA - artifact_id ( BA"Y -ReplaceArtifactRequest? -artifact ( 2(.google.cloud.apigeeregistry.v1.ArtifactBA"U -DeleteArtifactRequest< -name ( B.AA( -&apigeeregistry.googleapis.com/Artifact2E -Registry -ListApis/.google.cloud.apigeeregistry.v1.ListApisRequest0.google.cloud.apigeeregistry.v1.ListApisResponse"9Aparent*(/v1/{parent=projects/*/locations/*}/apis -GetApi-.google.cloud.apigeeregistry.v1.GetApiRequest#.google.cloud.apigeeregistry.v1.Api"7Aname*(/v1/{name=projects/*/locations/*/apis/*} - CreateApi0.google.cloud.apigeeregistry.v1.CreateApiRequest#.google.cloud.apigeeregistry.v1.Api"IAparent,api,api_id/"(/v1/{parent=projects/*/locations/*}/apis:api - UpdateApi0.google.cloud.apigeeregistry.v1.UpdateApiRequest#.google.cloud.apigeeregistry.v1.Api"KAapi,update_mask32,/v1/{api.name=projects/*/locations/*/apis/*}:api - DeleteApi0.google.cloud.apigeeregistry.v1.DeleteApiRequest.google.protobuf.Empty"7Aname**(/v1/{name=projects/*/locations/*/apis/*} -ListApiVersions6.google.cloud.apigeeregistry.v1.ListApiVersionsRequest7.google.cloud.apigeeregistry.v1.ListApiVersionsResponse"DAparent53/v1/{parent=projects/*/locations/*/apis/*}/versions - GetApiVersion4.google.cloud.apigeeregistry.v1.GetApiVersionRequest*.google.cloud.apigeeregistry.v1.ApiVersion"BAname53/v1/{name=projects/*/locations/*/apis/*/versions/*} -CreateApiVersion7.google.cloud.apigeeregistry.v1.CreateApiVersionRequest*.google.cloud.apigeeregistry.v1.ApiVersion"lA!parent,api_version,api_version_idB"3/v1/{parent=projects/*/locations/*/apis/*}/versions: api_version -UpdateApiVersion7.google.cloud.apigeeregistry.v1.UpdateApiVersionRequest*.google.cloud.apigeeregistry.v1.ApiVersion"nAapi_version,update_maskN2?/v1/{api_version.name=projects/*/locations/*/apis/*/versions/*}: api_version -DeleteApiVersion7.google.cloud.apigeeregistry.v1.DeleteApiVersionRequest.google.protobuf.Empty"BAname5*3/v1/{name=projects/*/locations/*/apis/*/versions/*} - ListApiSpecs3.google.cloud.apigeeregistry.v1.ListApiSpecsRequest4.google.cloud.apigeeregistry.v1.ListApiSpecsResponse"LAparent=;/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs - -GetApiSpec1.google.cloud.apigeeregistry.v1.GetApiSpecRequest\'.google.cloud.apigeeregistry.v1.ApiSpec"JAname=;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*} -GetApiSpecContents9.google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest.google.api.HttpBody"VAnameIG/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:getContents - CreateApiSpec4.google.cloud.apigeeregistry.v1.CreateApiSpecRequest\'.google.cloud.apigeeregistry.v1.ApiSpec"kAparent,api_spec,api_spec_idG";/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs:api_spec - UpdateApiSpec4.google.cloud.apigeeregistry.v1.UpdateApiSpecRequest\'.google.cloud.apigeeregistry.v1.ApiSpec"mAapi_spec,update_maskP2D/v1/{api_spec.name=projects/*/locations/*/apis/*/versions/*/specs/*}:api_spec - DeleteApiSpec4.google.cloud.apigeeregistry.v1.DeleteApiSpecRequest.google.protobuf.Empty"JAname=*;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*} -TagApiSpecRevision9.google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest\'.google.cloud.apigeeregistry.v1.ApiSpec"RL"G/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:tagRevision:* -ListApiSpecRevisions;.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest<.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse"QKI/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:listRevisions -RollbackApiSpec6.google.cloud.apigeeregistry.v1.RollbackApiSpecRequest\'.google.cloud.apigeeregistry.v1.ApiSpec"OI"D/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:rollback:* -DeleteApiSpecRevision<.google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest\'.google.cloud.apigeeregistry.v1.ApiSpec"YAnameL*J/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:deleteRevision -ListApiDeployments9.google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest:.google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse"GAparent86/v1/{parent=projects/*/locations/*/apis/*}/deployments -GetApiDeployment7.google.cloud.apigeeregistry.v1.GetApiDeploymentRequest-.google.cloud.apigeeregistry.v1.ApiDeployment"EAname86/v1/{name=projects/*/locations/*/apis/*/deployments/*} -CreateApiDeployment:.google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest-.google.cloud.apigeeregistry.v1.ApiDeployment"xA\'parent,api_deployment,api_deployment_idH"6/v1/{parent=projects/*/locations/*/apis/*}/deployments:api_deployment -UpdateApiDeployment:.google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest-.google.cloud.apigeeregistry.v1.ApiDeployment"zAapi_deployment,update_maskW2E/v1/{api_deployment.name=projects/*/locations/*/apis/*/deployments/*}:api_deployment -DeleteApiDeployment:.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest.google.protobuf.Empty"EAname8*6/v1/{name=projects/*/locations/*/apis/*/deployments/*} -TagApiDeploymentRevision?.google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest-.google.cloud.apigeeregistry.v1.ApiDeployment"MG"B/v1/{name=projects/*/locations/*/apis/*/deployments/*}:tagRevision:* -ListApiDeploymentRevisionsA.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequestB.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse"LFD/v1/{name=projects/*/locations/*/apis/*/deployments/*}:listRevisions -RollbackApiDeployment<.google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest-.google.cloud.apigeeregistry.v1.ApiDeployment"JD"?/v1/{name=projects/*/locations/*/apis/*/deployments/*}:rollback:* -DeleteApiDeploymentRevisionB.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest-.google.cloud.apigeeregistry.v1.ApiDeployment"TAnameG*E/v1/{name=projects/*/locations/*/apis/*/deployments/*}:deleteRevision - ListArtifacts4.google.cloud.apigeeregistry.v1.ListArtifactsRequest5.google.cloud.apigeeregistry.v1.ListArtifactsResponse"Aparent-/v1/{parent=projects/*/locations/*}/artifactsZ64/v1/{parent=projects/*/locations/*/apis/*}/artifactsZA?/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifactsZIG/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifactsZDB/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts - GetArtifact2.google.cloud.apigeeregistry.v1.GetArtifactRequest(.google.cloud.apigeeregistry.v1.Artifact"Aname-/v1/{name=projects/*/locations/*/artifacts/*}Z64/v1/{name=projects/*/locations/*/apis/*/artifacts/*}ZA?/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}ZIG/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}ZDB/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*} -GetArtifactContents:.google.cloud.apigeeregistry.v1.GetArtifactContentsRequest.google.api.HttpBody"Aname9/v1/{name=projects/*/locations/*/artifacts/*}:getContentsZB@/v1/{name=projects/*/locations/*/apis/*/artifacts/*}:getContentsZMK/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}:getContentsZUS/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:getContentsZPN/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}:getContents -CreateArtifact5.google.cloud.apigeeregistry.v1.CreateArtifactRequest(.google.cloud.apigeeregistry.v1.Artifact"Aparent,artifact,artifact_id"-/v1/{parent=projects/*/locations/*}/artifacts:artifactZ@"4/v1/{parent=projects/*/locations/*/apis/*}/artifacts:artifactZK"?/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifacts:artifactZS"G/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifacts:artifactZN"B/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts:artifact -ReplaceArtifact6.google.cloud.apigeeregistry.v1.ReplaceArtifactRequest(.google.cloud.apigeeregistry.v1.Artifact"Aartifact6/v1/{artifact.name=projects/*/locations/*/artifacts/*}:artifactZI=/v1/{artifact.name=projects/*/locations/*/apis/*/artifacts/*}:artifactZTH/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/artifacts/*}:artifactZ\\P/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:artifactZWK/v1/{artifact.name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}:artifact -DeleteArtifact5.google.cloud.apigeeregistry.v1.DeleteArtifactRequest.google.protobuf.Empty"Aname*-/v1/{name=projects/*/locations/*/artifacts/*}Z6*4/v1/{name=projects/*/locations/*/apis/*/artifacts/*}ZA*?/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}ZI*G/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}ZD*B/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}QAapigeeregistry.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -"com.google.cloud.apigeeregistry.v1BRegistryServiceProtoPZJcloud.google.com/go/apigeeregistry/apiv1/apigeeregistrypb;apigeeregistrypbGoogle.Cloud.ApigeeRegistry.V1Google\\Cloud\\ApigeeRegistry\\V1!Google::Cloud::ApigeeRegistry::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Api.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Api.php deleted file mode 100644 index 493dcfe906ee..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Api.php +++ /dev/null @@ -1,458 +0,0 @@ -google.cloud.apigeeregistry.v1.Api - */ -class Api extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Human-meaningful name. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * A user-definable description of the availability of this service. - * Format: free-form, but we expect single words that describe availability, - * e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN". - * - * Generated from protobuf field string availability = 6; - */ - protected $availability = ''; - /** - * The recommended version of the API. - * Format: `apis/{api}/versions/{version}` - * - * Generated from protobuf field string recommended_version = 7 [(.google.api.resource_reference) = { - */ - protected $recommended_version = ''; - /** - * The recommended deployment of the API. - * Format: `apis/{api}/deployments/{deployment}` - * - * Generated from protobuf field string recommended_deployment = 8 [(.google.api.resource_reference) = { - */ - protected $recommended_deployment = ''; - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 9; - */ - private $labels; - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 10; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name. - * @type string $display_name - * Human-meaningful name. - * @type string $description - * A detailed description. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Last update timestamp. - * @type string $availability - * A user-definable description of the availability of this service. - * Format: free-form, but we expect single words that describe availability, - * e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN". - * @type string $recommended_version - * The recommended version of the API. - * Format: `apis/{api}/versions/{version}` - * @type string $recommended_deployment - * The recommended deployment of the API. - * Format: `apis/{api}/deployments/{deployment}` - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryModels::initOnce(); - parent::__construct($data); - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name. - * - * 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; - } - - /** - * Human-meaningful name. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-meaningful name. - * - * 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; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Creation timestamp. - * - * 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. Creation timestamp. - * - * 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. Last update timestamp. - * - * 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. Last update timestamp. - * - * 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; - } - - /** - * A user-definable description of the availability of this service. - * Format: free-form, but we expect single words that describe availability, - * e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN". - * - * Generated from protobuf field string availability = 6; - * @return string - */ - public function getAvailability() - { - return $this->availability; - } - - /** - * A user-definable description of the availability of this service. - * Format: free-form, but we expect single words that describe availability, - * e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN". - * - * Generated from protobuf field string availability = 6; - * @param string $var - * @return $this - */ - public function setAvailability($var) - { - GPBUtil::checkString($var, True); - $this->availability = $var; - - return $this; - } - - /** - * The recommended version of the API. - * Format: `apis/{api}/versions/{version}` - * - * Generated from protobuf field string recommended_version = 7 [(.google.api.resource_reference) = { - * @return string - */ - public function getRecommendedVersion() - { - return $this->recommended_version; - } - - /** - * The recommended version of the API. - * Format: `apis/{api}/versions/{version}` - * - * Generated from protobuf field string recommended_version = 7 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRecommendedVersion($var) - { - GPBUtil::checkString($var, True); - $this->recommended_version = $var; - - return $this; - } - - /** - * The recommended deployment of the API. - * Format: `apis/{api}/deployments/{deployment}` - * - * Generated from protobuf field string recommended_deployment = 8 [(.google.api.resource_reference) = { - * @return string - */ - public function getRecommendedDeployment() - { - return $this->recommended_deployment; - } - - /** - * The recommended deployment of the API. - * Format: `apis/{api}/deployments/{deployment}` - * - * Generated from protobuf field string recommended_deployment = 8 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRecommendedDeployment($var) - { - GPBUtil::checkString($var, True); - $this->recommended_deployment = $var; - - return $this; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 9; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 9; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiDeployment.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiDeployment.php deleted file mode 100644 index 8633b657fe3d..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiDeployment.php +++ /dev/null @@ -1,623 +0,0 @@ -google.cloud.apigeeregistry.v1.ApiDeployment - */ -class ApiDeployment extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Human-meaningful name. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. Immutable. The revision ID of the deployment. - * A new revision is committed whenever the deployment contents are changed. - * The format is an 8-character hexadecimal string. - * - * Generated from protobuf field string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_id = ''; - /** - * Output only. Creation timestamp; when the deployment resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Revision creation timestamp; when the represented revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_create_time = null; - /** - * Output only. Last update timestamp: when the represented revision was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_update_time = null; - /** - * The full resource name (including revision ID) of the spec of the API being - * served by the deployment. Changes to this value will update the revision. - * Format: `apis/{api}/deployments/{deployment}` - * - * Generated from protobuf field string api_spec_revision = 8 [(.google.api.resource_reference) = { - */ - protected $api_spec_revision = ''; - /** - * The address where the deployment is serving. Changes to this value will - * update the revision. - * - * Generated from protobuf field string endpoint_uri = 9; - */ - protected $endpoint_uri = ''; - /** - * The address of the external channel of the API (e.g., the Developer - * Portal). Changes to this value will not affect the revision. - * - * Generated from protobuf field string external_channel_uri = 10; - */ - protected $external_channel_uri = ''; - /** - * Text briefly identifying the intended audience of the API. Changes to this - * value will not affect the revision. - * - * Generated from protobuf field string intended_audience = 11; - */ - protected $intended_audience = ''; - /** - * Text briefly describing how to access the endpoint. Changes to this value - * will not affect the revision. - * - * Generated from protobuf field string access_guidance = 12; - */ - protected $access_guidance = ''; - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 14; - */ - private $labels; - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 15; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name. - * @type string $display_name - * Human-meaningful name. - * @type string $description - * A detailed description. - * @type string $revision_id - * Output only. Immutable. The revision ID of the deployment. - * A new revision is committed whenever the deployment contents are changed. - * The format is an 8-character hexadecimal string. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp; when the deployment resource was created. - * @type \Google\Protobuf\Timestamp $revision_create_time - * Output only. Revision creation timestamp; when the represented revision was created. - * @type \Google\Protobuf\Timestamp $revision_update_time - * Output only. Last update timestamp: when the represented revision was last modified. - * @type string $api_spec_revision - * The full resource name (including revision ID) of the spec of the API being - * served by the deployment. Changes to this value will update the revision. - * Format: `apis/{api}/deployments/{deployment}` - * @type string $endpoint_uri - * The address where the deployment is serving. Changes to this value will - * update the revision. - * @type string $external_channel_uri - * The address of the external channel of the API (e.g., the Developer - * Portal). Changes to this value will not affect the revision. - * @type string $intended_audience - * Text briefly identifying the intended audience of the API. Changes to this - * value will not affect the revision. - * @type string $access_guidance - * Text briefly describing how to access the endpoint. Changes to this value - * will not affect the revision. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryModels::initOnce(); - parent::__construct($data); - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name. - * - * 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; - } - - /** - * Human-meaningful name. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-meaningful name. - * - * 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; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Immutable. The revision ID of the deployment. - * A new revision is committed whenever the deployment contents are changed. - * The format is an 8-character hexadecimal string. - * - * Generated from protobuf field string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Output only. Immutable. The revision ID of the deployment. - * A new revision is committed whenever the deployment contents are changed. - * The format is an 8-character hexadecimal string. - * - * Generated from protobuf field string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - - /** - * Output only. Creation timestamp; when the deployment resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. Creation timestamp; when the deployment resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. Revision creation timestamp; when the represented revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionCreateTime() - { - return $this->revision_create_time; - } - - public function hasRevisionCreateTime() - { - return isset($this->revision_create_time); - } - - public function clearRevisionCreateTime() - { - unset($this->revision_create_time); - } - - /** - * Output only. Revision creation timestamp; when the represented revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_create_time = $var; - - return $this; - } - - /** - * Output only. Last update timestamp: when the represented revision was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionUpdateTime() - { - return $this->revision_update_time; - } - - public function hasRevisionUpdateTime() - { - return isset($this->revision_update_time); - } - - public function clearRevisionUpdateTime() - { - unset($this->revision_update_time); - } - - /** - * Output only. Last update timestamp: when the represented revision was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_update_time = $var; - - return $this; - } - - /** - * The full resource name (including revision ID) of the spec of the API being - * served by the deployment. Changes to this value will update the revision. - * Format: `apis/{api}/deployments/{deployment}` - * - * Generated from protobuf field string api_spec_revision = 8 [(.google.api.resource_reference) = { - * @return string - */ - public function getApiSpecRevision() - { - return $this->api_spec_revision; - } - - /** - * The full resource name (including revision ID) of the spec of the API being - * served by the deployment. Changes to this value will update the revision. - * Format: `apis/{api}/deployments/{deployment}` - * - * Generated from protobuf field string api_spec_revision = 8 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setApiSpecRevision($var) - { - GPBUtil::checkString($var, True); - $this->api_spec_revision = $var; - - return $this; - } - - /** - * The address where the deployment is serving. Changes to this value will - * update the revision. - * - * Generated from protobuf field string endpoint_uri = 9; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * The address where the deployment is serving. Changes to this value will - * update the revision. - * - * Generated from protobuf field string endpoint_uri = 9; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * The address of the external channel of the API (e.g., the Developer - * Portal). Changes to this value will not affect the revision. - * - * Generated from protobuf field string external_channel_uri = 10; - * @return string - */ - public function getExternalChannelUri() - { - return $this->external_channel_uri; - } - - /** - * The address of the external channel of the API (e.g., the Developer - * Portal). Changes to this value will not affect the revision. - * - * Generated from protobuf field string external_channel_uri = 10; - * @param string $var - * @return $this - */ - public function setExternalChannelUri($var) - { - GPBUtil::checkString($var, True); - $this->external_channel_uri = $var; - - return $this; - } - - /** - * Text briefly identifying the intended audience of the API. Changes to this - * value will not affect the revision. - * - * Generated from protobuf field string intended_audience = 11; - * @return string - */ - public function getIntendedAudience() - { - return $this->intended_audience; - } - - /** - * Text briefly identifying the intended audience of the API. Changes to this - * value will not affect the revision. - * - * Generated from protobuf field string intended_audience = 11; - * @param string $var - * @return $this - */ - public function setIntendedAudience($var) - { - GPBUtil::checkString($var, True); - $this->intended_audience = $var; - - return $this; - } - - /** - * Text briefly describing how to access the endpoint. Changes to this value - * will not affect the revision. - * - * Generated from protobuf field string access_guidance = 12; - * @return string - */ - public function getAccessGuidance() - { - return $this->access_guidance; - } - - /** - * Text briefly describing how to access the endpoint. Changes to this value - * will not affect the revision. - * - * Generated from protobuf field string access_guidance = 12; - * @param string $var - * @return $this - */ - public function setAccessGuidance($var) - { - GPBUtil::checkString($var, True); - $this->access_guidance = $var; - - return $this; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 14; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 14; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 15; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 15; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiSpec.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiSpec.php deleted file mode 100644 index 7b1714abd03a..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiSpec.php +++ /dev/null @@ -1,658 +0,0 @@ -google.cloud.apigeeregistry.v1.ApiSpec - */ -class ApiSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A possibly-hierarchical name used to refer to the spec from other specs. - * - * Generated from protobuf field string filename = 2; - */ - protected $filename = ''; - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. Immutable. The revision ID of the spec. - * A new revision is committed whenever the spec contents are changed. - * The format is an 8-character hexadecimal string. - * - * Generated from protobuf field string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_id = ''; - /** - * Output only. Creation timestamp; when the spec resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Revision creation timestamp; when the represented revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_create_time = null; - /** - * Output only. Last update timestamp: when the represented revision was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision_update_time = null; - /** - * A style (format) descriptor for this spec that is specified as a Media Type - * (https://en.wikipedia.org/wiki/Media_type). Possible values include - * `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and - * `application/vnd.apigee.graphql`, with possible suffixes representing - * compression types. These hypothetical names are defined in the vendor tree - * defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * - * Generated from protobuf field string mime_type = 8; - */ - protected $mime_type = ''; - /** - * Output only. The size of the spec file in bytes. If the spec is gzipped, this is the - * size of the uncompressed spec. - * - * Generated from protobuf field int32 size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $size_bytes = 0; - /** - * Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is - * the hash of the uncompressed spec. - * - * Generated from protobuf field string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $hash = ''; - /** - * The original source URI of the spec (if one exists). - * This is an external location that can be used for reference purposes - * but which may not be authoritative since this external resource may - * change after the spec is retrieved. - * - * Generated from protobuf field string source_uri = 11; - */ - protected $source_uri = ''; - /** - * Input only. The contents of the spec. - * Provided by API callers when specs are created or updated. - * To access the contents of a spec, use GetApiSpecContents. - * - * Generated from protobuf field bytes contents = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $contents = ''; - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 14; - */ - private $labels; - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 15; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name. - * @type string $filename - * A possibly-hierarchical name used to refer to the spec from other specs. - * @type string $description - * A detailed description. - * @type string $revision_id - * Output only. Immutable. The revision ID of the spec. - * A new revision is committed whenever the spec contents are changed. - * The format is an 8-character hexadecimal string. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp; when the spec resource was created. - * @type \Google\Protobuf\Timestamp $revision_create_time - * Output only. Revision creation timestamp; when the represented revision was created. - * @type \Google\Protobuf\Timestamp $revision_update_time - * Output only. Last update timestamp: when the represented revision was last modified. - * @type string $mime_type - * A style (format) descriptor for this spec that is specified as a Media Type - * (https://en.wikipedia.org/wiki/Media_type). Possible values include - * `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and - * `application/vnd.apigee.graphql`, with possible suffixes representing - * compression types. These hypothetical names are defined in the vendor tree - * defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * @type int $size_bytes - * Output only. The size of the spec file in bytes. If the spec is gzipped, this is the - * size of the uncompressed spec. - * @type string $hash - * Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is - * the hash of the uncompressed spec. - * @type string $source_uri - * The original source URI of the spec (if one exists). - * This is an external location that can be used for reference purposes - * but which may not be authoritative since this external resource may - * change after the spec is retrieved. - * @type string $contents - * Input only. The contents of the spec. - * Provided by API callers when specs are created or updated. - * To access the contents of a spec, use GetApiSpecContents. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryModels::initOnce(); - parent::__construct($data); - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name. - * - * 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; - } - - /** - * A possibly-hierarchical name used to refer to the spec from other specs. - * - * Generated from protobuf field string filename = 2; - * @return string - */ - public function getFilename() - { - return $this->filename; - } - - /** - * A possibly-hierarchical name used to refer to the spec from other specs. - * - * Generated from protobuf field string filename = 2; - * @param string $var - * @return $this - */ - public function setFilename($var) - { - GPBUtil::checkString($var, True); - $this->filename = $var; - - return $this; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Immutable. The revision ID of the spec. - * A new revision is committed whenever the spec contents are changed. - * The format is an 8-character hexadecimal string. - * - * Generated from protobuf field string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Output only. Immutable. The revision ID of the spec. - * A new revision is committed whenever the spec contents are changed. - * The format is an 8-character hexadecimal string. - * - * Generated from protobuf field string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - - /** - * Output only. Creation timestamp; when the spec resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. Creation timestamp; when the spec resource was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. Revision creation timestamp; when the represented revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionCreateTime() - { - return $this->revision_create_time; - } - - public function hasRevisionCreateTime() - { - return isset($this->revision_create_time); - } - - public function clearRevisionCreateTime() - { - unset($this->revision_create_time); - } - - /** - * Output only. Revision creation timestamp; when the represented revision was created. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_create_time = $var; - - return $this; - } - - /** - * Output only. Last update timestamp: when the represented revision was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRevisionUpdateTime() - { - return $this->revision_update_time; - } - - public function hasRevisionUpdateTime() - { - return isset($this->revision_update_time); - } - - public function clearRevisionUpdateTime() - { - unset($this->revision_update_time); - } - - /** - * Output only. Last update timestamp: when the represented revision was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp revision_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRevisionUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->revision_update_time = $var; - - return $this; - } - - /** - * A style (format) descriptor for this spec that is specified as a Media Type - * (https://en.wikipedia.org/wiki/Media_type). Possible values include - * `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and - * `application/vnd.apigee.graphql`, with possible suffixes representing - * compression types. These hypothetical names are defined in the vendor tree - * defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * - * Generated from protobuf field string mime_type = 8; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * A style (format) descriptor for this spec that is specified as a Media Type - * (https://en.wikipedia.org/wiki/Media_type). Possible values include - * `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and - * `application/vnd.apigee.graphql`, with possible suffixes representing - * compression types. These hypothetical names are defined in the vendor tree - * defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * - * Generated from protobuf field string mime_type = 8; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Output only. The size of the spec file in bytes. If the spec is gzipped, this is the - * size of the uncompressed spec. - * - * Generated from protobuf field int32 size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * Output only. The size of the spec file in bytes. If the spec is gzipped, this is the - * size of the uncompressed spec. - * - * Generated from protobuf field int32 size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt32($var); - $this->size_bytes = $var; - - return $this; - } - - /** - * Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is - * the hash of the uncompressed spec. - * - * Generated from protobuf field string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getHash() - { - return $this->hash; - } - - /** - * Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is - * the hash of the uncompressed spec. - * - * Generated from protobuf field string hash = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setHash($var) - { - GPBUtil::checkString($var, True); - $this->hash = $var; - - return $this; - } - - /** - * The original source URI of the spec (if one exists). - * This is an external location that can be used for reference purposes - * but which may not be authoritative since this external resource may - * change after the spec is retrieved. - * - * Generated from protobuf field string source_uri = 11; - * @return string - */ - public function getSourceUri() - { - return $this->source_uri; - } - - /** - * The original source URI of the spec (if one exists). - * This is an external location that can be used for reference purposes - * but which may not be authoritative since this external resource may - * change after the spec is retrieved. - * - * Generated from protobuf field string source_uri = 11; - * @param string $var - * @return $this - */ - public function setSourceUri($var) - { - GPBUtil::checkString($var, True); - $this->source_uri = $var; - - return $this; - } - - /** - * Input only. The contents of the spec. - * Provided by API callers when specs are created or updated. - * To access the contents of a spec, use GetApiSpecContents. - * - * Generated from protobuf field bytes contents = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Input only. The contents of the spec. - * Provided by API callers when specs are created or updated. - * To access the contents of a spec, use GetApiSpecContents. - * - * Generated from protobuf field bytes contents = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 14; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 14; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 15; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 15; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiVersion.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiVersion.php deleted file mode 100644 index 9d9c76302da0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ApiVersion.php +++ /dev/null @@ -1,386 +0,0 @@ -google.cloud.apigeeregistry.v1.ApiVersion - */ -class ApiVersion extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Human-meaningful name. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * A user-definable description of the lifecycle phase of this API version. - * Format: free-form, but we expect single words that describe API maturity, - * e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", - * "DEPRECATED", "RETIRED". - * - * Generated from protobuf field string state = 6; - */ - protected $state = ''; - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 7; - */ - private $labels; - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 8; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name. - * @type string $display_name - * Human-meaningful name. - * @type string $description - * A detailed description. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Last update timestamp. - * @type string $state - * A user-definable description of the lifecycle phase of this API version. - * Format: free-form, but we expect single words that describe API maturity, - * e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", - * "DEPRECATED", "RETIRED". - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryModels::initOnce(); - parent::__construct($data); - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name. - * - * 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; - } - - /** - * Human-meaningful name. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human-meaningful name. - * - * 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; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A detailed description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Creation timestamp. - * - * 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. Creation timestamp. - * - * 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. Last update timestamp. - * - * 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. Last update timestamp. - * - * 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; - } - - /** - * A user-definable description of the lifecycle phase of this API version. - * Format: free-form, but we expect single words that describe API maturity, - * e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", - * "DEPRECATED", "RETIRED". - * - * Generated from protobuf field string state = 6; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * A user-definable description of the lifecycle phase of this API version. - * Format: free-form, but we expect single words that describe API maturity, - * e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", - * "DEPRECATED", "RETIRED". - * - * Generated from protobuf field string state = 6; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels attach identifying metadata to resources. Identifying metadata can - * be used to filter list operations. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * No more than 64 user labels can be associated with one resource (System - * labels are excluded). - * See https://goo.gl/xmQnxf for more information and examples of labels. - * System reserved label keys are prefixed with - * `apigeeregistry.googleapis.com/` and cannot be changed. - * - * Generated from protobuf field map labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 8; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations attach non-identifying metadata to resources. - * Annotation keys and values are less restricted than those of labels, but - * should be generally used for small values of broad interest. Larger, topic- - * specific metadata should be stored in Artifacts. - * - * Generated from protobuf field map annotations = 8; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Artifact.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Artifact.php deleted file mode 100644 index 81472f82caab..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Artifact.php +++ /dev/null @@ -1,334 +0,0 @@ -google.cloud.apigeeregistry.v1.Artifact - */ -class Artifact extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * A content type specifier for the artifact. - * Content type specifiers are Media Types - * (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" - * parameter that specifies a schema for the stored information. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * - * Generated from protobuf field string mime_type = 4; - */ - protected $mime_type = ''; - /** - * Output only. The size of the artifact in bytes. If the artifact is gzipped, this is - * the size of the uncompressed artifact. - * - * Generated from protobuf field int32 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $size_bytes = 0; - /** - * Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, - * this is the hash of the uncompressed artifact. - * - * Generated from protobuf field string hash = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $hash = ''; - /** - * Input only. The contents of the artifact. - * Provided by API callers when artifacts are created or replaced. - * To access the contents of an artifact, use GetArtifactContents. - * - * Generated from protobuf field bytes contents = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Last update timestamp. - * @type string $mime_type - * A content type specifier for the artifact. - * Content type specifiers are Media Types - * (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" - * parameter that specifies a schema for the stored information. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * @type int $size_bytes - * Output only. The size of the artifact in bytes. If the artifact is gzipped, this is - * the size of the uncompressed artifact. - * @type string $hash - * Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, - * this is the hash of the uncompressed artifact. - * @type string $contents - * Input only. The contents of the artifact. - * Provided by API callers when artifacts are created or replaced. - * To access the contents of an artifact, use GetArtifactContents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryModels::initOnce(); - parent::__construct($data); - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name. - * - * 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; - } - - /** - * Output only. Creation timestamp. - * - * 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. Creation timestamp. - * - * 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. Last update timestamp. - * - * 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. Last update timestamp. - * - * 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; - } - - /** - * A content type specifier for the artifact. - * Content type specifiers are Media Types - * (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" - * parameter that specifies a schema for the stored information. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * - * Generated from protobuf field string mime_type = 4; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * A content type specifier for the artifact. - * Content type specifiers are Media Types - * (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" - * parameter that specifies a schema for the stored information. - * Content types can specify compression. Currently only GZip compression is - * supported (indicated with "+gzip"). - * - * Generated from protobuf field string mime_type = 4; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Output only. The size of the artifact in bytes. If the artifact is gzipped, this is - * the size of the uncompressed artifact. - * - * Generated from protobuf field int32 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * Output only. The size of the artifact in bytes. If the artifact is gzipped, this is - * the size of the uncompressed artifact. - * - * Generated from protobuf field int32 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt32($var); - $this->size_bytes = $var; - - return $this; - } - - /** - * Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, - * this is the hash of the uncompressed artifact. - * - * Generated from protobuf field string hash = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getHash() - { - return $this->hash; - } - - /** - * Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, - * this is the hash of the uncompressed artifact. - * - * Generated from protobuf field string hash = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setHash($var) - { - GPBUtil::checkString($var, True); - $this->hash = $var; - - return $this; - } - - /** - * Input only. The contents of the artifact. - * Provided by API callers when artifacts are created or replaced. - * To access the contents of an artifact, use GetArtifactContents. - * - * Generated from protobuf field bytes contents = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Input only. The contents of the artifact. - * Provided by API callers when artifacts are created or replaced. - * To access the contents of an artifact, use GetArtifactContents. - * - * Generated from protobuf field bytes contents = 7 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiDeploymentRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiDeploymentRequest.php deleted file mode 100644 index 05a8fcd9c088..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiDeploymentRequest.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest - */ -class CreateApiDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The deployment to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiDeployment api_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_deployment = null; - /** - * Required. The ID to use for the deployment, which will become the final component of - * the deployment's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_deployment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_deployment_id = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * Please see {@see RegistryClient::apiName()} for help formatting this field. - * @param \Google\Cloud\ApigeeRegistry\V1\ApiDeployment $apiDeployment Required. The deployment to create. - * @param string $apiDeploymentId Required. The ID to use for the deployment, which will become the final component of - * the deployment's resource name. - * - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Following AIP-162, IDs must not have the form of a UUID. - * - * @return \Google\Cloud\ApigeeRegistry\V1\CreateApiDeploymentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApigeeRegistry\V1\ApiDeployment $apiDeployment, string $apiDeploymentId): self - { - return (new self()) - ->setParent($parent) - ->setApiDeployment($apiDeployment) - ->setApiDeploymentId($apiDeploymentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * @type \Google\Cloud\ApigeeRegistry\V1\ApiDeployment $api_deployment - * Required. The deployment to create. - * @type string $api_deployment_id - * Required. The ID to use for the deployment, which will become the final component of - * the deployment's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * - * 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, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * - * 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 deployment to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiDeployment api_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\ApiDeployment|null - */ - public function getApiDeployment() - { - return $this->api_deployment; - } - - public function hasApiDeployment() - { - return isset($this->api_deployment); - } - - public function clearApiDeployment() - { - unset($this->api_deployment); - } - - /** - * Required. The deployment to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiDeployment api_deployment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\ApiDeployment $var - * @return $this - */ - public function setApiDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\ApiDeployment::class); - $this->api_deployment = $var; - - return $this; - } - - /** - * Required. The ID to use for the deployment, which will become the final component of - * the deployment's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_deployment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApiDeploymentId() - { - return $this->api_deployment_id; - } - - /** - * Required. The ID to use for the deployment, which will become the final component of - * the deployment's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_deployment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApiDeploymentId($var) - { - GPBUtil::checkString($var, True); - $this->api_deployment_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiRequest.php deleted file mode 100644 index 817c624551a5..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiRequest.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.apigeeregistry.v1.CreateApiRequest - */ -class CreateApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The API to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api = null; - /** - * Required. The ID to use for the API, which will become the final component of - * the API's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_id = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * Please see {@see RegistryClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApigeeRegistry\V1\Api $api Required. The API to create. - * @param string $apiId Required. The ID to use for the API, which will become the final component of - * the API's resource name. - * - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Following AIP-162, IDs must not have the form of a UUID. - * - * @return \Google\Cloud\ApigeeRegistry\V1\CreateApiRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApigeeRegistry\V1\Api $api, string $apiId): self - { - return (new self()) - ->setParent($parent) - ->setApi($api) - ->setApiId($apiId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * @type \Google\Cloud\ApigeeRegistry\V1\Api $api - * Required. The API to create. - * @type string $api_id - * Required. The ID to use for the API, which will become the final component of - * the API's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * - * 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, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * - * 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 API to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Required. The API to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\Api::class); - $this->api = $var; - - return $this; - } - - /** - * Required. The ID to use for the API, which will become the final component of - * the API's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApiId() - { - return $this->api_id; - } - - /** - * Required. The ID to use for the API, which will become the final component of - * the API's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApiId($var) - { - GPBUtil::checkString($var, True); - $this->api_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiSpecRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiSpecRequest.php deleted file mode 100644 index 871e03740f15..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiSpecRequest.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.apigeeregistry.v1.CreateApiSpecRequest - */ -class CreateApiSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The spec to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_spec = null; - /** - * Required. The ID to use for the spec, which will become the final component of - * the spec's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_spec_id = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * Please see {@see RegistryClient::apiVersionName()} for help formatting this field. - * @param \Google\Cloud\ApigeeRegistry\V1\ApiSpec $apiSpec Required. The spec to create. - * @param string $apiSpecId Required. The ID to use for the spec, which will become the final component of - * the spec's resource name. - * - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Following AIP-162, IDs must not have the form of a UUID. - * - * @return \Google\Cloud\ApigeeRegistry\V1\CreateApiSpecRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApigeeRegistry\V1\ApiSpec $apiSpec, string $apiSpecId): self - { - return (new self()) - ->setParent($parent) - ->setApiSpec($apiSpec) - ->setApiSpecId($apiSpecId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * @type \Google\Cloud\ApigeeRegistry\V1\ApiSpec $api_spec - * Required. The spec to create. - * @type string $api_spec_id - * Required. The ID to use for the spec, which will become the final component of - * the spec's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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 spec to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\ApiSpec|null - */ - public function getApiSpec() - { - return $this->api_spec; - } - - public function hasApiSpec() - { - return isset($this->api_spec); - } - - public function clearApiSpec() - { - unset($this->api_spec); - } - - /** - * Required. The spec to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\ApiSpec $var - * @return $this - */ - public function setApiSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\ApiSpec::class); - $this->api_spec = $var; - - return $this; - } - - /** - * Required. The ID to use for the spec, which will become the final component of - * the spec's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApiSpecId() - { - return $this->api_spec_id; - } - - /** - * Required. The ID to use for the spec, which will become the final component of - * the spec's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApiSpecId($var) - { - GPBUtil::checkString($var, True); - $this->api_spec_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiVersionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiVersionRequest.php deleted file mode 100644 index a364a983ba10..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateApiVersionRequest.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.apigeeregistry.v1.CreateApiVersionRequest - */ -class CreateApiVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The version to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiVersion api_version = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_version = null; - /** - * Required. The ID to use for the version, which will become the final component of - * the version's resource name. - * This value should be 1-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_version_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_version_id = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * Please see {@see RegistryClient::apiName()} for help formatting this field. - * @param \Google\Cloud\ApigeeRegistry\V1\ApiVersion $apiVersion Required. The version to create. - * @param string $apiVersionId Required. The ID to use for the version, which will become the final component of - * the version's resource name. - * - * This value should be 1-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Following AIP-162, IDs must not have the form of a UUID. - * - * @return \Google\Cloud\ApigeeRegistry\V1\CreateApiVersionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApigeeRegistry\V1\ApiVersion $apiVersion, string $apiVersionId): self - { - return (new self()) - ->setParent($parent) - ->setApiVersion($apiVersion) - ->setApiVersionId($apiVersionId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * @type \Google\Cloud\ApigeeRegistry\V1\ApiVersion $api_version - * Required. The version to create. - * @type string $api_version_id - * Required. The ID to use for the version, which will become the final component of - * the version's resource name. - * This value should be 1-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * - * 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, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * - * 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 version to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiVersion api_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\ApiVersion|null - */ - public function getApiVersion() - { - return $this->api_version; - } - - public function hasApiVersion() - { - return isset($this->api_version); - } - - public function clearApiVersion() - { - unset($this->api_version); - } - - /** - * Required. The version to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiVersion api_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\ApiVersion $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\ApiVersion::class); - $this->api_version = $var; - - return $this; - } - - /** - * Required. The ID to use for the version, which will become the final component of - * the version's resource name. - * This value should be 1-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_version_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApiVersionId() - { - return $this->api_version_id; - } - - /** - * Required. The ID to use for the version, which will become the final component of - * the version's resource name. - * This value should be 1-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string api_version_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApiVersionId($var) - { - GPBUtil::checkString($var, True); - $this->api_version_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateArtifactRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateArtifactRequest.php deleted file mode 100644 index 4b6f40f7857e..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateArtifactRequest.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.apigeeregistry.v1.CreateArtifactRequest - */ -class CreateArtifactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The artifact to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $artifact = null; - /** - * Required. The ID to use for the artifact, which will become the final component of - * the artifact's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string artifact_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $artifact_id = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * Please see {@see RegistryClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApigeeRegistry\V1\Artifact $artifact Required. The artifact to create. - * @param string $artifactId Required. The ID to use for the artifact, which will become the final component of - * the artifact's resource name. - * - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * - * Following AIP-162, IDs must not have the form of a UUID. - * - * @return \Google\Cloud\ApigeeRegistry\V1\CreateArtifactRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApigeeRegistry\V1\Artifact $artifact, string $artifactId): self - { - return (new self()) - ->setParent($parent) - ->setArtifact($artifact) - ->setArtifactId($artifactId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * @type \Google\Cloud\ApigeeRegistry\V1\Artifact $artifact - * Required. The artifact to create. - * @type string $artifact_id - * Required. The ID to use for the artifact, which will become the final component of - * the artifact's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * - * 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, which owns this collection of artifacts. - * Format: `{parent}` - * - * 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 artifact to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\Artifact|null - */ - public function getArtifact() - { - return $this->artifact; - } - - public function hasArtifact() - { - return isset($this->artifact); - } - - public function clearArtifact() - { - unset($this->artifact); - } - - /** - * Required. The artifact to create. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Artifact artifact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\Artifact $var - * @return $this - */ - public function setArtifact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\Artifact::class); - $this->artifact = $var; - - return $this; - } - - /** - * Required. The ID to use for the artifact, which will become the final component of - * the artifact's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string artifact_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getArtifactId() - { - return $this->artifact_id; - } - - /** - * Required. The ID to use for the artifact, which will become the final component of - * the artifact's resource name. - * This value should be 4-63 characters, and valid characters - * are /[a-z][0-9]-/. - * Following AIP-162, IDs must not have the form of a UUID. - * - * Generated from protobuf field string artifact_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setArtifactId($var) - { - GPBUtil::checkString($var, True); - $this->artifact_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateInstanceRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateInstanceRequest.php deleted file mode 100644 index c232f42c7835..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/CreateInstanceRequest.php +++ /dev/null @@ -1,168 +0,0 @@ -google.cloud.apigeeregistry.v1.CreateInstanceRequest - */ -class CreateInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource of the Instance, of the form: `projects/*/locations/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Identifier to assign to the Instance. Must be unique within scope of the - * parent resource. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = null; - - /** - * @param string $parent Required. Parent resource of the Instance, of the form: `projects/*/locations/*` - * Please see {@see ProvisioningClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ApigeeRegistry\V1\Instance $instance Required. The Instance. - * @param string $instanceId Required. Identifier to assign to the Instance. Must be unique within scope of the - * parent resource. - * - * @return \Google\Cloud\ApigeeRegistry\V1\CreateInstanceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ApigeeRegistry\V1\Instance $instance, string $instanceId): self - { - return (new self()) - ->setParent($parent) - ->setInstance($instance) - ->setInstanceId($instanceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource of the Instance, of the form: `projects/*/locations/*` - * @type string $instance_id - * Required. Identifier to assign to the Instance. Must be unique within scope of the - * parent resource. - * @type \Google\Cloud\ApigeeRegistry\V1\Instance $instance - * Required. The Instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource of the Instance, of the form: `projects/*/locations/*` - * - * 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. Parent resource of the Instance, of the form: `projects/*/locations/*` - * - * 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. Identifier to assign to the Instance. Must be unique within scope of the - * parent resource. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. Identifier to assign to the Instance. Must be unique within scope of the - * parent resource. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\Instance|null - */ - public function getInstance() - { - return $this->instance; - } - - public function hasInstance() - { - return isset($this->instance); - } - - public function clearInstance() - { - unset($this->instance); - } - - /** - * Required. The Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\Instance $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\Instance::class); - $this->instance = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiDeploymentRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiDeploymentRequest.php deleted file mode 100644 index 4ab9062cf586..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiDeploymentRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest - */ -class DeleteApiDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the deployment to delete. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the deployment to delete. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * Please see {@see RegistryClient::apiDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteApiDeploymentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the deployment to delete. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * @type bool $force - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the deployment to delete. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * 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 deployment to delete. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * 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; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiDeploymentRevisionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiDeploymentRevisionRequest.php deleted file mode 100644 index 1d309559b116..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiDeploymentRevisionRequest.php +++ /dev/null @@ -1,97 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest - */ -class DeleteApiDeploymentRevisionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the deployment revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the deployment revision to be deleted, - * with a revision ID explicitly included. - * - * Example: - * `projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8` - * Please see {@see RegistryClient::apiDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteApiDeploymentRevisionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the deployment revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the deployment revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8` - * - * 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 deployment revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiRequest.php deleted file mode 100644 index dae30192286a..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteApiRequest - */ -class DeleteApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the API to delete. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the API to delete. - * Format: `projects/*/locations/*/apis/*` - * Please see {@see RegistryClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the API to delete. - * Format: `projects/*/locations/*/apis/*` - * @type bool $force - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the API to delete. - * Format: `projects/*/locations/*/apis/*` - * - * 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 API to delete. - * Format: `projects/*/locations/*/apis/*` - * - * 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; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiSpecRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiSpecRequest.php deleted file mode 100644 index 9b2e02fd42e5..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiSpecRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteApiSpecRequest - */ -class DeleteApiSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to delete. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the spec to delete. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * Please see {@see RegistryClient::apiSpecName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteApiSpecRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec to delete. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * @type bool $force - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to delete. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * 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 spec to delete. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * 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; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiSpecRevisionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiSpecRevisionRequest.php deleted file mode 100644 index 30ea1c28b7b1..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiSpecRevisionRequest.php +++ /dev/null @@ -1,97 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest - */ -class DeleteApiSpecRevisionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the spec revision to be deleted, - * with a revision ID explicitly included. - * - * Example: - * `projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8` - * Please see {@see RegistryClient::apiSpecName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteApiSpecRevisionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8` - * - * 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 spec revision to be deleted, - * with a revision ID explicitly included. - * Example: - * `projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiVersionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiVersionRequest.php deleted file mode 100644 index d691cfd21455..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteApiVersionRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteApiVersionRequest - */ -class DeleteApiVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the version to delete. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - */ - protected $force = false; - - /** - * @param string $name Required. The name of the version to delete. - * Format: `projects/*/locations/*/apis/*/versions/*` - * Please see {@see RegistryClient::apiVersionName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteApiVersionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the version to delete. - * Format: `projects/*/locations/*/apis/*/versions/*` - * @type bool $force - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the version to delete. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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 version to delete. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * If set to true, any child resources will also be deleted. - * (Otherwise, the request will only work if there are no child resources.) - * - * Generated from protobuf field bool force = 2; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteArtifactRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteArtifactRequest.php deleted file mode 100644 index fc64de397281..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteArtifactRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteArtifactRequest - */ -class DeleteArtifactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the artifact to delete. - * Format: `{parent}/artifacts/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the artifact to delete. - * Format: `{parent}/artifacts/*` - * Please see {@see RegistryClient::artifactName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteArtifactRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the artifact to delete. - * Format: `{parent}/artifacts/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the artifact to delete. - * Format: `{parent}/artifacts/*` - * - * 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 artifact to delete. - * Format: `{parent}/artifacts/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteInstanceRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteInstanceRequest.php deleted file mode 100644 index 472a8ce533f3..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/DeleteInstanceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.DeleteInstanceRequest - */ -class DeleteInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Instance to delete. - * Format: `projects/*/locations/*/instances/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Instance to delete. - * Format: `projects/*/locations/*/instances/*`. Please see - * {@see ProvisioningClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\DeleteInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Instance to delete. - * Format: `projects/*/locations/*/instances/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Instance to delete. - * Format: `projects/*/locations/*/instances/*`. - * - * 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 Instance to delete. - * Format: `projects/*/locations/*/instances/*`. - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiDeploymentRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiDeploymentRequest.php deleted file mode 100644 index 6c175f9ce41c..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiDeploymentRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetApiDeploymentRequest - */ -class GetApiDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the deployment to retrieve. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the deployment to retrieve. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * Please see {@see RegistryClient::apiDeploymentName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetApiDeploymentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the deployment to retrieve. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the deployment to retrieve. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * 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 deployment to retrieve. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiRequest.php deleted file mode 100644 index f6e3f7c8e321..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetApiRequest - */ -class GetApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the API to retrieve. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the API to retrieve. - * Format: `projects/*/locations/*/apis/*` - * Please see {@see RegistryClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetApiRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the API to retrieve. - * Format: `projects/*/locations/*/apis/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the API to retrieve. - * Format: `projects/*/locations/*/apis/*` - * - * 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 API to retrieve. - * Format: `projects/*/locations/*/apis/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiSpecContentsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiSpecContentsRequest.php deleted file mode 100644 index b7e173d568cb..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiSpecContentsRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest - */ -class GetApiSpecContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec whose contents should be retrieved. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the spec whose contents should be retrieved. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * Please see {@see RegistryClient::apiSpecName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetApiSpecContentsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec whose contents should be retrieved. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec whose contents should be retrieved. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * 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 spec whose contents should be retrieved. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiSpecRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiSpecRequest.php deleted file mode 100644 index d7df0a4e9b06..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiSpecRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetApiSpecRequest - */ -class GetApiSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the spec to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * Please see {@see RegistryClient::apiSpecName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetApiSpecRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * 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 spec to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiVersionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiVersionRequest.php deleted file mode 100644 index 1d5e09b8ad20..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetApiVersionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetApiVersionRequest - */ -class GetApiVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the version to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the version to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*` - * Please see {@see RegistryClient::apiVersionName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetApiVersionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the version to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the version to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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 version to retrieve. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetArtifactContentsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetArtifactContentsRequest.php deleted file mode 100644 index 1c278a074f42..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetArtifactContentsRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetArtifactContentsRequest - */ -class GetArtifactContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the artifact whose contents should be retrieved. - * Format: `{parent}/artifacts/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the artifact whose contents should be retrieved. - * Format: `{parent}/artifacts/*` - * Please see {@see RegistryClient::artifactName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetArtifactContentsRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the artifact whose contents should be retrieved. - * Format: `{parent}/artifacts/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the artifact whose contents should be retrieved. - * Format: `{parent}/artifacts/*` - * - * 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 artifact whose contents should be retrieved. - * Format: `{parent}/artifacts/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetArtifactRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetArtifactRequest.php deleted file mode 100644 index fc1cc09862cc..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetArtifactRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetArtifactRequest - */ -class GetArtifactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the artifact to retrieve. - * Format: `{parent}/artifacts/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the artifact to retrieve. - * Format: `{parent}/artifacts/*` - * Please see {@see RegistryClient::artifactName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetArtifactRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the artifact to retrieve. - * Format: `{parent}/artifacts/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the artifact to retrieve. - * Format: `{parent}/artifacts/*` - * - * 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 artifact to retrieve. - * Format: `{parent}/artifacts/*` - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetInstanceRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetInstanceRequest.php deleted file mode 100644 index a82eda9d5780..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/GetInstanceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.apigeeregistry.v1.GetInstanceRequest - */ -class GetInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Instance to retrieve. - * Format: `projects/*/locations/*/instances/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Instance to retrieve. - * Format: `projects/*/locations/*/instances/*`. Please see - * {@see ProvisioningClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\GetInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Instance to retrieve. - * Format: `projects/*/locations/*/instances/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Instance to retrieve. - * Format: `projects/*/locations/*/instances/*`. - * - * 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 Instance to retrieve. - * Format: `projects/*/locations/*/instances/*`. - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance.php deleted file mode 100644 index d6b1670dec12..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance.php +++ /dev/null @@ -1,272 +0,0 @@ -google.cloud.apigeeregistry.v1.Instance - */ -class Instance extends \Google\Protobuf\Internal\Message -{ - /** - * Format: `projects/*/locations/*/instance`. - * Currently only `locations/global` is supported. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. Creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The current state of the Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Extra information of Instance.State if the state is `FAILED`. - * - * Generated from protobuf field string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Required. Config of the Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance.Config config = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Format: `projects/*/locations/*/instance`. - * Currently only `locations/global` is supported. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Creation timestamp. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Last update timestamp. - * @type int $state - * Output only. The current state of the Instance. - * @type string $state_message - * Output only. Extra information of Instance.State if the state is `FAILED`. - * @type \Google\Cloud\ApigeeRegistry\V1\Instance\Config $config - * Required. Config of the Instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Format: `projects/*/locations/*/instance`. - * Currently only `locations/global` is supported. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Format: `projects/*/locations/*/instance`. - * Currently only `locations/global` is supported. - * - * 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; - } - - /** - * Output only. Creation timestamp. - * - * 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. Creation timestamp. - * - * 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. Last update timestamp. - * - * 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. Last update timestamp. - * - * 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; - } - - /** - * Output only. The current state of the Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ApigeeRegistry\V1\Instance\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Extra information of Instance.State if the state is `FAILED`. - * - * Generated from protobuf field string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Extra information of Instance.State if the state is `FAILED`. - * - * Generated from protobuf field string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStateMessage($var) - { - GPBUtil::checkString($var, True); - $this->state_message = $var; - - return $this; - } - - /** - * Required. Config of the Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance.Config config = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\Instance\Config|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. Config of the Instance. - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Instance.Config config = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\Instance\Config $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\Instance\Config::class); - $this->config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance/Config.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance/Config.php deleted file mode 100644 index b9d5538203fe..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance/Config.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.apigeeregistry.v1.Instance.Config - */ -class Config extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The GCP location where the Instance resides. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - /** - * Required. The Customer Managed Encryption Key (CMEK) used for data encryption. - * The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the `location` must match InstanceConfig.location. - * - * Generated from protobuf field string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cmek_key_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Output only. The GCP location where the Instance resides. - * @type string $cmek_key_name - * Required. The Customer Managed Encryption Key (CMEK) used for data encryption. - * The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the `location` must match InstanceConfig.location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The GCP location where the Instance resides. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. The GCP location where the Instance resides. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Required. The Customer Managed Encryption Key (CMEK) used for data encryption. - * The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the `location` must match InstanceConfig.location. - * - * Generated from protobuf field string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCmekKeyName() - { - return $this->cmek_key_name; - } - - /** - * Required. The Customer Managed Encryption Key (CMEK) used for data encryption. - * The CMEK name should follow the format of - * `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, - * where the `location` must match InstanceConfig.location. - * - * Generated from protobuf field string cmek_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCmekKeyName($var) - { - GPBUtil::checkString($var, True); - $this->cmek_key_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Config::class, \Google\Cloud\ApigeeRegistry\V1\Instance_Config::class); - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance/State.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance/State.php deleted file mode 100644 index ce20920eecf0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/Instance/State.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.apigeeregistry.v1.Instance.State - */ -class State -{ - /** - * The default value. This value is used if the state is omitted. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The Instance has not been initialized or has been deleted. - * - * Generated from protobuf enum INACTIVE = 1; - */ - const INACTIVE = 1; - /** - * The Instance is being created. - * - * Generated from protobuf enum CREATING = 2; - */ - const CREATING = 2; - /** - * The Instance has been created and is ready for use. - * - * Generated from protobuf enum ACTIVE = 3; - */ - const ACTIVE = 3; - /** - * The Instance is being updated. - * - * Generated from protobuf enum UPDATING = 4; - */ - const UPDATING = 4; - /** - * The Instance is being deleted. - * - * Generated from protobuf enum DELETING = 5; - */ - const DELETING = 5; - /** - * The Instance encountered an error during a state change. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::INACTIVE => 'INACTIVE', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::FAILED => 'FAILED', - ]; - - 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(State::class, \Google\Cloud\ApigeeRegistry\V1\Instance_State::class); - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentRevisionsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentRevisionsRequest.php deleted file mode 100644 index 242c101b2383..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentRevisionsRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest - */ -class ListApiDeploymentRevisionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the deployment to list revisions for. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The maximum number of revisions to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token, received from a previous ListApiDeploymentRevisions call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the deployment to list revisions for. - * @type int $page_size - * The maximum number of revisions to return per page. - * @type string $page_token - * The page token, received from a previous ListApiDeploymentRevisions call. - * Provide this to retrieve the subsequent page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the deployment to list revisions for. - * - * 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 deployment to list revisions for. - * - * 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; - } - - /** - * The maximum number of revisions to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of revisions to return per page. - * - * 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; - } - - /** - * The page token, received from a previous ListApiDeploymentRevisions call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token, received from a previous ListApiDeploymentRevisions call. - * Provide this to retrieve the subsequent page. - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentRevisionsResponse.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentRevisionsResponse.php deleted file mode 100644 index cdd6bf172695..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentRevisionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse - */ -class ListApiDeploymentRevisionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The revisions of the deployment. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiDeployment api_deployments = 1; - */ - private $api_deployments; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeRegistry\V1\ApiDeployment>|\Google\Protobuf\Internal\RepeatedField $api_deployments - * The revisions of the deployment. - * @type string $next_page_token - * A token that 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\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * The revisions of the deployment. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiDeployment api_deployments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiDeployments() - { - return $this->api_deployments; - } - - /** - * The revisions of the deployment. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiDeployment api_deployments = 1; - * @param array<\Google\Cloud\ApigeeRegistry\V1\ApiDeployment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeRegistry\V1\ApiDeployment::class); - $this->api_deployments = $arr; - - return $this; - } - - /** - * A token that 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 that 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentsRequest.php deleted file mode 100644 index 5835a7b5de67..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentsRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest - */ -class ListApiDeploymentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of deployments to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListApiDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiDeployments` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * Please see {@see RegistryClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\ListApiDeploymentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * @type int $page_size - * The maximum number of deployments to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListApiDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiDeployments` must - * match the call that provided the page token. - * @type string $filter - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * - * 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, which owns this collection of deployments. - * Format: `projects/*/locations/*/apis/*` - * - * 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 deployments to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of deployments to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * 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 `ListApiDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiDeployments` 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 `ListApiDeployments` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiDeployments` 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; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentsResponse.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentsResponse.php deleted file mode 100644 index 826babba612a..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiDeploymentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse - */ -class ListApiDeploymentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The deployments from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiDeployment api_deployments = 1; - */ - private $api_deployments; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeRegistry\V1\ApiDeployment>|\Google\Protobuf\Internal\RepeatedField $api_deployments - * The deployments from the specified publisher. - * @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\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * The deployments from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiDeployment api_deployments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiDeployments() - { - return $this->api_deployments; - } - - /** - * The deployments from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiDeployment api_deployments = 1; - * @param array<\Google\Cloud\ApigeeRegistry\V1\ApiDeployment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiDeployments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeRegistry\V1\ApiDeployment::class); - $this->api_deployments = $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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecRevisionsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecRevisionsRequest.php deleted file mode 100644 index c68a6511d7d2..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecRevisionsRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest - */ -class ListApiSpecRevisionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to list revisions for. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The maximum number of revisions to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token, received from a previous ListApiSpecRevisions call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec to list revisions for. - * @type int $page_size - * The maximum number of revisions to return per page. - * @type string $page_token - * The page token, received from a previous ListApiSpecRevisions call. - * Provide this to retrieve the subsequent page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to list revisions for. - * - * 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 spec to list revisions for. - * - * 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; - } - - /** - * The maximum number of revisions to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of revisions to return per page. - * - * 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; - } - - /** - * The page token, received from a previous ListApiSpecRevisions call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token, received from a previous ListApiSpecRevisions call. - * Provide this to retrieve the subsequent page. - * - * 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecRevisionsResponse.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecRevisionsResponse.php deleted file mode 100644 index bff3c8059de3..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecRevisionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse - */ -class ListApiSpecRevisionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The revisions of the spec. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiSpec api_specs = 1; - */ - private $api_specs; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeRegistry\V1\ApiSpec>|\Google\Protobuf\Internal\RepeatedField $api_specs - * The revisions of the spec. - * @type string $next_page_token - * A token that 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\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * The revisions of the spec. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiSpec api_specs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiSpecs() - { - return $this->api_specs; - } - - /** - * The revisions of the spec. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiSpec api_specs = 1; - * @param array<\Google\Cloud\ApigeeRegistry\V1\ApiSpec>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeRegistry\V1\ApiSpec::class); - $this->api_specs = $arr; - - return $this; - } - - /** - * A token that 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 that 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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecsRequest.php deleted file mode 100644 index aec5dd0220ef..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecsRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiSpecsRequest - */ -class ListApiSpecsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of specs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListApiSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiSpecs` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * Please see {@see RegistryClient::apiVersionName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\ListApiSpecsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * @type int $page_size - * The maximum number of specs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListApiSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiSpecs` must match - * the call that provided the page token. - * @type string $filter - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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, which owns this collection of specs. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * 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 specs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of specs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * 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 `ListApiSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiSpecs` 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 `ListApiSpecs` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiSpecs` 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; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecsResponse.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecsResponse.php deleted file mode 100644 index 0e50209602ce..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiSpecsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiSpecsResponse - */ -class ListApiSpecsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The specs from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiSpec api_specs = 1; - */ - private $api_specs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeRegistry\V1\ApiSpec>|\Google\Protobuf\Internal\RepeatedField $api_specs - * The specs from the specified publisher. - * @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\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * The specs from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiSpec api_specs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiSpecs() - { - return $this->api_specs; - } - - /** - * The specs from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiSpec api_specs = 1; - * @param array<\Google\Cloud\ApigeeRegistry\V1\ApiSpec>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeRegistry\V1\ApiSpec::class); - $this->api_specs = $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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiVersionsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiVersionsRequest.php deleted file mode 100644 index bb2f87f59f83..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiVersionsRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiVersionsRequest - */ -class ListApiVersionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of versions to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListApiVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiVersions` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * Please see {@see RegistryClient::apiName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\ListApiVersionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * @type int $page_size - * The maximum number of versions to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListApiVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiVersions` must - * match the call that provided the page token. - * @type string $filter - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * - * 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, which owns this collection of versions. - * Format: `projects/*/locations/*/apis/*` - * - * 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 versions to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of versions to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * 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 `ListApiVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiVersions` 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 `ListApiVersions` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApiVersions` 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; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiVersionsResponse.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiVersionsResponse.php deleted file mode 100644 index 8c9d9fd14914..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApiVersionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApiVersionsResponse - */ -class ListApiVersionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The versions from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiVersion api_versions = 1; - */ - private $api_versions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeRegistry\V1\ApiVersion>|\Google\Protobuf\Internal\RepeatedField $api_versions - * The versions from the specified publisher. - * @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\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * The versions from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiVersion api_versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApiVersions() - { - return $this->api_versions; - } - - /** - * The versions from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.ApiVersion api_versions = 1; - * @param array<\Google\Cloud\ApigeeRegistry\V1\ApiVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApiVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeRegistry\V1\ApiVersion::class); - $this->api_versions = $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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApisRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApisRequest.php deleted file mode 100644 index 38d6263b8ecf..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApisRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApisRequest - */ -class ListApisRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of APIs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApis` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * Please see {@see RegistryClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\ListApisRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * @type int $page_size - * The maximum number of APIs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApis` must match - * the call that provided the page token. - * @type string $filter - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * - * 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, which owns this collection of APIs. - * Format: `projects/*/locations/*` - * - * 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 APIs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of APIs to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * 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 `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApis` 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 `ListApis` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListApis` 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; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApisResponse.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApisResponse.php deleted file mode 100644 index 83e9e5b911fd..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListApisResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.ListApisResponse - */ -class ListApisResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The APIs from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.Api apis = 1; - */ - private $apis; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeRegistry\V1\Api>|\Google\Protobuf\Internal\RepeatedField $apis - * The APIs from the specified publisher. - * @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\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * The APIs from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.Api apis = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApis() - { - return $this->apis; - } - - /** - * The APIs from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.Api apis = 1; - * @param array<\Google\Cloud\ApigeeRegistry\V1\Api>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeRegistry\V1\Api::class); - $this->apis = $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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListArtifactsRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListArtifactsRequest.php deleted file mode 100644 index dc72036104bd..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListArtifactsRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.apigeeregistry.v1.ListArtifactsRequest - */ -class ListArtifactsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of artifacts to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListArtifacts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListArtifacts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * Please see {@see RegistryClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ApigeeRegistry\V1\ListArtifactsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * @type int $page_size - * The maximum number of artifacts to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * A page token, received from a previous `ListArtifacts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListArtifacts` must - * match the call that provided the page token. - * @type string $filter - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of artifacts. - * Format: `{parent}` - * - * 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, which owns this collection of artifacts. - * Format: `{parent}` - * - * 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 artifacts to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of artifacts to return. - * The service may return fewer than this value. - * If unspecified, at most 50 values will be returned. - * The maximum is 1000; values above 1000 will be coerced to 1000. - * - * 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 `ListArtifacts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListArtifacts` 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 `ListArtifacts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListArtifacts` 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; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression that can be used to filter the list. Filters use the Common - * Expression Language and can refer to all message fields except contents. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListArtifactsResponse.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListArtifactsResponse.php deleted file mode 100644 index 24a8dd8f3843..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ListArtifactsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.ListArtifactsResponse - */ -class ListArtifactsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The artifacts from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.Artifact artifacts = 1; - */ - private $artifacts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ApigeeRegistry\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $artifacts - * The artifacts from the specified publisher. - * @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\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * The artifacts from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.Artifact artifacts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getArtifacts() - { - return $this->artifacts; - } - - /** - * The artifacts from the specified publisher. - * - * Generated from protobuf field repeated .google.cloud.apigeeregistry.v1.Artifact artifacts = 1; - * @param array<\Google\Cloud\ApigeeRegistry\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setArtifacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ApigeeRegistry\V1\Artifact::class); - $this->artifacts = $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/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/OperationMetadata.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/OperationMetadata.php deleted file mode 100644 index a6f59492977b..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/OperationMetadata.php +++ /dev/null @@ -1,303 +0,0 @@ -google.cloud.apigeeregistry.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - /** - * Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3; - */ - protected $target = ''; - /** - * Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4; - */ - protected $verb = ''; - /** - * Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5; - */ - protected $status_message = ''; - /** - * Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * - * Generated from protobuf field bool cancellation_requested = 6; - */ - protected $cancellation_requested = false; - /** - * API version used to start the operation. - * - * Generated from protobuf field string api_version = 7; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * The time the operation finished running. - * @type string $target - * Server-defined resource path for the target of the operation. - * @type string $verb - * Name of the verb executed by the operation. - * @type string $status_message - * Human-readable status of the operation, if any. - * @type bool $cancellation_requested - * Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * @type string $api_version - * API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\ProvisioningService::initOnce(); - parent::__construct($data); - } - - /** - * The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - * @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); - } - - /** - * The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * - * Generated from protobuf field bool cancellation_requested = 6; - * @return bool - */ - public function getCancellationRequested() - { - return $this->cancellation_requested; - } - - /** - * Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. - * - * Generated from protobuf field bool cancellation_requested = 6; - * @param bool $var - * @return $this - */ - public function setCancellationRequested($var) - { - GPBUtil::checkBool($var); - $this->cancellation_requested = $var; - - return $this; - } - - /** - * API version used to start the operation. - * - * Generated from protobuf field string api_version = 7; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * API version used to start the operation. - * - * Generated from protobuf field string api_version = 7; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ReplaceArtifactRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ReplaceArtifactRequest.php deleted file mode 100644 index 1d009819b815..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/ReplaceArtifactRequest.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.apigeeregistry.v1.ReplaceArtifactRequest - */ -class ReplaceArtifactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The artifact to replace. - * The `name` field is used to identify the artifact to replace. - * Format: `{parent}/artifacts/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $artifact = null; - - /** - * @param \Google\Cloud\ApigeeRegistry\V1\Artifact $artifact Required. The artifact to replace. - * - * The `name` field is used to identify the artifact to replace. - * Format: `{parent}/artifacts/*` - * - * @return \Google\Cloud\ApigeeRegistry\V1\ReplaceArtifactRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApigeeRegistry\V1\Artifact $artifact): self - { - return (new self()) - ->setArtifact($artifact); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApigeeRegistry\V1\Artifact $artifact - * Required. The artifact to replace. - * The `name` field is used to identify the artifact to replace. - * Format: `{parent}/artifacts/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The artifact to replace. - * The `name` field is used to identify the artifact to replace. - * Format: `{parent}/artifacts/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\Artifact|null - */ - public function getArtifact() - { - return $this->artifact; - } - - public function hasArtifact() - { - return isset($this->artifact); - } - - public function clearArtifact() - { - unset($this->artifact); - } - - /** - * Required. The artifact to replace. - * The `name` field is used to identify the artifact to replace. - * Format: `{parent}/artifacts/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\Artifact $var - * @return $this - */ - public function setArtifact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\Artifact::class); - $this->artifact = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/RollbackApiDeploymentRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/RollbackApiDeploymentRequest.php deleted file mode 100644 index 6dc4037fe5f4..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/RollbackApiDeploymentRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest - */ -class RollbackApiDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The deployment being rolled back. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The revision ID to roll back to. - * It must be a revision of the same deployment. - * Example: `c7cfa2a8` - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $revision_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The deployment being rolled back. - * @type string $revision_id - * Required. The revision ID to roll back to. - * It must be a revision of the same deployment. - * Example: `c7cfa2a8` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The deployment being rolled back. - * - * 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 deployment being rolled back. - * - * 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; - } - - /** - * Required. The revision ID to roll back to. - * It must be a revision of the same deployment. - * Example: `c7cfa2a8` - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Required. The revision ID to roll back to. - * It must be a revision of the same deployment. - * Example: `c7cfa2a8` - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/RollbackApiSpecRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/RollbackApiSpecRequest.php deleted file mode 100644 index fefe0e7930c9..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/RollbackApiSpecRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.apigeeregistry.v1.RollbackApiSpecRequest - */ -class RollbackApiSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The spec being rolled back. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The revision ID to roll back to. - * It must be a revision of the same spec. - * Example: `c7cfa2a8` - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $revision_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The spec being rolled back. - * @type string $revision_id - * Required. The revision ID to roll back to. - * It must be a revision of the same spec. - * Example: `c7cfa2a8` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The spec being rolled back. - * - * 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 spec being rolled back. - * - * 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; - } - - /** - * Required. The revision ID to roll back to. - * It must be a revision of the same spec. - * Example: `c7cfa2a8` - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Required. The revision ID to roll back to. - * It must be a revision of the same spec. - * Example: `c7cfa2a8` - * - * Generated from protobuf field string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/TagApiDeploymentRevisionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/TagApiDeploymentRevisionRequest.php deleted file mode 100644 index e838411654ab..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/TagApiDeploymentRevisionRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest - */ -class TagApiDeploymentRevisionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the deployment to be tagged, including the revision ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * - * Generated from protobuf field string tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the deployment to be tagged, including the revision ID. - * @type string $tag - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the deployment to be tagged, including the revision ID. - * - * 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 deployment to be tagged, including the revision ID. - * - * 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; - } - - /** - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * - * Generated from protobuf field string tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTag() - { - return $this->tag; - } - - /** - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * - * Generated from protobuf field string tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkString($var, True); - $this->tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/TagApiSpecRevisionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/TagApiSpecRevisionRequest.php deleted file mode 100644 index 741623a33dd0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/TagApiSpecRevisionRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest - */ -class TagApiSpecRevisionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the spec to be tagged, including the revision ID. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * - * Generated from protobuf field string tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the spec to be tagged, including the revision ID. - * @type string $tag - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the spec to be tagged, including the revision ID. - * - * 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 spec to be tagged, including the revision ID. - * - * 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; - } - - /** - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * - * Generated from protobuf field string tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTag() - { - return $this->tag; - } - - /** - * Required. The tag to apply. - * The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`. - * - * Generated from protobuf field string tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkString($var, True); - $this->tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiDeploymentRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiDeploymentRequest.php deleted file mode 100644 index c569dd3097af..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiDeploymentRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest - */ -class UpdateApiDeploymentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The deployment to update. - * The `name` field is used to identify the deployment to update. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiDeployment api_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_deployment = null; - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * If set to true, and the deployment is not found, a new deployment will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\ApigeeRegistry\V1\ApiDeployment $apiDeployment Required. The deployment to update. - * - * The `name` field is used to identify the deployment to update. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * @return \Google\Cloud\ApigeeRegistry\V1\UpdateApiDeploymentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApigeeRegistry\V1\ApiDeployment $apiDeployment, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApiDeployment($apiDeployment) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApigeeRegistry\V1\ApiDeployment $api_deployment - * Required. The deployment to update. - * The `name` field is used to identify the deployment to update. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * @type bool $allow_missing - * If set to true, and the deployment is not found, a new deployment will be - * created. In this situation, `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The deployment to update. - * The `name` field is used to identify the deployment to update. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiDeployment api_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\ApiDeployment|null - */ - public function getApiDeployment() - { - return $this->api_deployment; - } - - public function hasApiDeployment() - { - return isset($this->api_deployment); - } - - public function clearApiDeployment() - { - unset($this->api_deployment); - } - - /** - * Required. The deployment to update. - * The `name` field is used to identify the deployment to update. - * Format: `projects/*/locations/*/apis/*/deployments/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiDeployment api_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\ApiDeployment $var - * @return $this - */ - public function setApiDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\ApiDeployment::class); - $this->api_deployment = $var; - - return $this; - } - - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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; - } - - /** - * If set to true, and the deployment is not found, a new deployment will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the deployment is not found, a new deployment will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiRequest.php deleted file mode 100644 index 1f848f001408..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.apigeeregistry.v1.UpdateApiRequest - */ -class UpdateApiRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The API to update. - * The `name` field is used to identify the API to update. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api = null; - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * If set to true, and the API is not found, a new API will be created. - * In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\ApigeeRegistry\V1\Api $api Required. The API to update. - * - * The `name` field is used to identify the API to update. - * Format: `projects/*/locations/*/apis/*` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * @return \Google\Cloud\ApigeeRegistry\V1\UpdateApiRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApigeeRegistry\V1\Api $api, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApi($api) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApigeeRegistry\V1\Api $api - * Required. The API to update. - * The `name` field is used to identify the API to update. - * Format: `projects/*/locations/*/apis/*` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * @type bool $allow_missing - * If set to true, and the API is not found, a new API will be created. - * In this situation, `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The API to update. - * The `name` field is used to identify the API to update. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Required. The API to update. - * The `name` field is used to identify the API to update. - * Format: `projects/*/locations/*/apis/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.Api api = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\Api::class); - $this->api = $var; - - return $this; - } - - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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; - } - - /** - * If set to true, and the API is not found, a new API will be created. - * In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the API is not found, a new API will be created. - * In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiSpecRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiSpecRequest.php deleted file mode 100644 index 1aa6e58d7ee3..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiSpecRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.apigeeregistry.v1.UpdateApiSpecRequest - */ -class UpdateApiSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The spec to update. - * The `name` field is used to identify the spec to update. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_spec = null; - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * If set to true, and the spec is not found, a new spec will be created. - * In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\ApigeeRegistry\V1\ApiSpec $apiSpec Required. The spec to update. - * - * The `name` field is used to identify the spec to update. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * @return \Google\Cloud\ApigeeRegistry\V1\UpdateApiSpecRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApigeeRegistry\V1\ApiSpec $apiSpec, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApiSpec($apiSpec) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApigeeRegistry\V1\ApiSpec $api_spec - * Required. The spec to update. - * The `name` field is used to identify the spec to update. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * @type bool $allow_missing - * If set to true, and the spec is not found, a new spec will be created. - * In this situation, `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The spec to update. - * The `name` field is used to identify the spec to update. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\ApiSpec|null - */ - public function getApiSpec() - { - return $this->api_spec; - } - - public function hasApiSpec() - { - return isset($this->api_spec); - } - - public function clearApiSpec() - { - unset($this->api_spec); - } - - /** - * Required. The spec to update. - * The `name` field is used to identify the spec to update. - * Format: `projects/*/locations/*/apis/*/versions/*/specs/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiSpec api_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\ApiSpec $var - * @return $this - */ - public function setApiSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\ApiSpec::class); - $this->api_spec = $var; - - return $this; - } - - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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; - } - - /** - * If set to true, and the spec is not found, a new spec will be created. - * In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the spec is not found, a new spec will be created. - * In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiVersionRequest.php b/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiVersionRequest.php deleted file mode 100644 index f83ae4b5ff6e..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/proto/src/Google/Cloud/ApigeeRegistry/V1/UpdateApiVersionRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.apigeeregistry.v1.UpdateApiVersionRequest - */ -class UpdateApiVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The version to update. - * The `name` field is used to identify the version to update. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiVersion api_version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_version = null; - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * If set to true, and the version is not found, a new version will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\ApigeeRegistry\V1\ApiVersion $apiVersion Required. The version to update. - * - * The `name` field is used to identify the version to update. - * Format: `projects/*/locations/*/apis/*/versions/*` - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * @return \Google\Cloud\ApigeeRegistry\V1\UpdateApiVersionRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ApigeeRegistry\V1\ApiVersion $apiVersion, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApiVersion($apiVersion) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ApigeeRegistry\V1\ApiVersion $api_version - * Required. The version to update. - * The `name` field is used to identify the version to update. - * Format: `projects/*/locations/*/apis/*/versions/*` - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * @type bool $allow_missing - * If set to true, and the version is not found, a new version will be - * created. In this situation, `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apigeeregistry\V1\RegistryService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The version to update. - * The `name` field is used to identify the version to update. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiVersion api_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ApigeeRegistry\V1\ApiVersion|null - */ - public function getApiVersion() - { - return $this->api_version; - } - - public function hasApiVersion() - { - return isset($this->api_version); - } - - public function clearApiVersion() - { - unset($this->api_version); - } - - /** - * Required. The version to update. - * The `name` field is used to identify the version to update. - * Format: `projects/*/locations/*/apis/*/versions/*` - * - * Generated from protobuf field .google.cloud.apigeeregistry.v1.ApiVersion api_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ApigeeRegistry\V1\ApiVersion $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ApigeeRegistry\V1\ApiVersion::class); - $this->api_version = $var; - - return $this; - } - - /** - * The list of fields to be updated. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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. If omitted, all fields are updated that - * are set in the request message (fields set to default values are ignored). - * If an asterisk "*" is specified, all fields are updated, including fields - * that are unspecified/default in the request. - * - * 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; - } - - /** - * If set to true, and the version is not found, a new version will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the version is not found, a new version will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/create_instance.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/create_instance.php deleted file mode 100644 index fa128d023231..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/create_instance.php +++ /dev/null @@ -1,101 +0,0 @@ -setCmekKeyName($instanceConfigCmekKeyName); - $instance = (new Instance()) - ->setConfig($instanceConfig); - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $provisioningClient->createInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ProvisioningClient::locationName('[PROJECT]', '[LOCATION]'); - $instanceId = '[INSTANCE_ID]'; - $instanceConfigCmekKeyName = '[CMEK_KEY_NAME]'; - - create_instance_sample($formattedParent, $instanceId, $instanceConfigCmekKeyName); -} -// [END apigeeregistry_v1_generated_Provisioning_CreateInstance_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/delete_instance.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/delete_instance.php deleted file mode 100644 index 3ccaead8044c..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/delete_instance.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $provisioningClient->deleteInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ProvisioningClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - delete_instance_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Provisioning_DeleteInstance_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_iam_policy.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_iam_policy.php deleted file mode 100644 index c1805a324625..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $provisioningClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END apigeeregistry_v1_generated_Provisioning_GetIamPolicy_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_instance.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_instance.php deleted file mode 100644 index b76e65b5d10e..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_instance.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Instance $response */ - $response = $provisioningClient->getInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ProvisioningClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - - get_instance_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Provisioning_GetInstance_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_location.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_location.php deleted file mode 100644 index 4a4069dcedfe..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Provisioning_GetLocation_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/list_locations.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/list_locations.php deleted file mode 100644 index 0e0c0b6666d9..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Provisioning_ListLocations_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/set_iam_policy.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/set_iam_policy.php deleted file mode 100644 index 7330522ac4ce..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $provisioningClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END apigeeregistry_v1_generated_Provisioning_SetIamPolicy_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/test_iam_permissions.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/test_iam_permissions.php deleted file mode 100644 index 64327bfaa114..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/ProvisioningClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $provisioningClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END apigeeregistry_v1_generated_Provisioning_TestIamPermissions_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api.php deleted file mode 100644 index 8e42699d8496..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent) - ->setApi($api) - ->setApiId($apiId); - - // Call the API and handle any network failures. - try { - /** @var Api $response */ - $response = $registryClient->createApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::locationName('[PROJECT]', '[LOCATION]'); - $apiId = '[API_ID]'; - - create_api_sample($formattedParent, $apiId); -} -// [END apigeeregistry_v1_generated_Registry_CreateApi_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_deployment.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_deployment.php deleted file mode 100644 index 0299346e0ec7..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_deployment.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent) - ->setApiDeployment($apiDeployment) - ->setApiDeploymentId($apiDeploymentId); - - // Call the API and handle any network failures. - try { - /** @var ApiDeployment $response */ - $response = $registryClient->createApiDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - $apiDeploymentId = '[API_DEPLOYMENT_ID]'; - - create_api_deployment_sample($formattedParent, $apiDeploymentId); -} -// [END apigeeregistry_v1_generated_Registry_CreateApiDeployment_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_spec.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_spec.php deleted file mode 100644 index 22b2d26020b1..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_spec.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent) - ->setApiSpec($apiSpec) - ->setApiSpecId($apiSpecId); - - // Call the API and handle any network failures. - try { - /** @var ApiSpec $response */ - $response = $registryClient->createApiSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $apiSpecId = '[API_SPEC_ID]'; - - create_api_spec_sample($formattedParent, $apiSpecId); -} -// [END apigeeregistry_v1_generated_Registry_CreateApiSpec_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_version.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_version.php deleted file mode 100644 index a0cd2f7d1157..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_api_version.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent) - ->setApiVersion($apiVersion) - ->setApiVersionId($apiVersionId); - - // Call the API and handle any network failures. - try { - /** @var ApiVersion $response */ - $response = $registryClient->createApiVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - $apiVersionId = '[API_VERSION_ID]'; - - create_api_version_sample($formattedParent, $apiVersionId); -} -// [END apigeeregistry_v1_generated_Registry_CreateApiVersion_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_artifact.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_artifact.php deleted file mode 100644 index 0c7b49b347b2..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/create_artifact.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent) - ->setArtifact($artifact) - ->setArtifactId($artifactId); - - // Call the API and handle any network failures. - try { - /** @var Artifact $response */ - $response = $registryClient->createArtifact($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::locationName('[PROJECT]', '[LOCATION]'); - $artifactId = '[ARTIFACT_ID]'; - - create_artifact_sample($formattedParent, $artifactId); -} -// [END apigeeregistry_v1_generated_Registry_CreateArtifact_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api.php deleted file mode 100644 index 9d471bf6aa2f..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $registryClient->deleteApi($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - - delete_api_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_DeleteApi_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_deployment.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_deployment.php deleted file mode 100644 index 07d4fce7446d..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_deployment.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $registryClient->deleteApiDeployment($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[DEPLOYMENT]' - ); - - delete_api_deployment_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_DeleteApiDeployment_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_deployment_revision.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_deployment_revision.php deleted file mode 100644 index 9df230b810d0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_deployment_revision.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiDeployment $response */ - $response = $registryClient->deleteApiDeploymentRevision($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[DEPLOYMENT]' - ); - - delete_api_deployment_revision_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_DeleteApiDeploymentRevision_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_spec.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_spec.php deleted file mode 100644 index fee0c1f75416..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_spec.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $registryClient->deleteApiSpec($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiSpecName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - - delete_api_spec_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_DeleteApiSpec_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_spec_revision.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_spec_revision.php deleted file mode 100644 index b5142e8f84ac..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_spec_revision.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiSpec $response */ - $response = $registryClient->deleteApiSpecRevision($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiSpecName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - - delete_api_spec_revision_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_DeleteApiSpecRevision_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_version.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_version.php deleted file mode 100644 index 369c0ec26c24..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_api_version.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $registryClient->deleteApiVersion($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - - delete_api_version_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_DeleteApiVersion_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_artifact.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_artifact.php deleted file mode 100644 index ebc8ca67216d..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/delete_artifact.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $registryClient->deleteArtifact($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - - delete_artifact_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_DeleteArtifact_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api.php deleted file mode 100644 index 4b0c0da64bd0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Api $response */ - $response = $registryClient->getApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - - get_api_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_GetApi_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_deployment.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_deployment.php deleted file mode 100644 index 36161c28883e..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_deployment.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiDeployment $response */ - $response = $registryClient->getApiDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[DEPLOYMENT]' - ); - - get_api_deployment_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_GetApiDeployment_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_spec.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_spec.php deleted file mode 100644 index dcac72db39ea..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_spec.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiSpec $response */ - $response = $registryClient->getApiSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiSpecName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - - get_api_spec_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_GetApiSpec_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_spec_contents.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_spec_contents.php deleted file mode 100644 index b1682374d266..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_spec_contents.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var HttpBody $response */ - $response = $registryClient->getApiSpecContents($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiSpecName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - - get_api_spec_contents_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_GetApiSpecContents_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_version.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_version.php deleted file mode 100644 index 3506d0b32c41..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_api_version.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ApiVersion $response */ - $response = $registryClient->getApiVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - - get_api_version_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_GetApiVersion_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_artifact.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_artifact.php deleted file mode 100644 index 7886745ee42c..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_artifact.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Artifact $response */ - $response = $registryClient->getArtifact($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - - get_artifact_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_GetArtifact_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_artifact_contents.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_artifact_contents.php deleted file mode 100644 index 796339ebb682..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_artifact_contents.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var HttpBody $response */ - $response = $registryClient->getArtifactContents($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - - get_artifact_contents_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_GetArtifactContents_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_iam_policy.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_iam_policy.php deleted file mode 100644 index c91cffb68e3c..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $registryClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END apigeeregistry_v1_generated_Registry_GetIamPolicy_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_location.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_location.php deleted file mode 100644 index 174efeb47a87..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Registry_GetLocation_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_deployment_revisions.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_deployment_revisions.php deleted file mode 100644 index c18bcfae151f..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_deployment_revisions.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $registryClient->listApiDeploymentRevisions($request); - - /** @var ApiDeployment $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[DEPLOYMENT]' - ); - - list_api_deployment_revisions_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_ListApiDeploymentRevisions_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_deployments.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_deployments.php deleted file mode 100644 index 5bf94570e5b0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_deployments.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $registryClient->listApiDeployments($request); - - /** @var ApiDeployment $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - - list_api_deployments_sample($formattedParent); -} -// [END apigeeregistry_v1_generated_Registry_ListApiDeployments_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_spec_revisions.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_spec_revisions.php deleted file mode 100644 index 815e3b08e84a..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_spec_revisions.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $registryClient->listApiSpecRevisions($request); - - /** @var ApiSpec $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiSpecName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - - list_api_spec_revisions_sample($formattedName); -} -// [END apigeeregistry_v1_generated_Registry_ListApiSpecRevisions_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_specs.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_specs.php deleted file mode 100644 index bdfe9614356b..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_specs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $registryClient->listApiSpecs($request); - - /** @var ApiSpec $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - - list_api_specs_sample($formattedParent); -} -// [END apigeeregistry_v1_generated_Registry_ListApiSpecs_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_versions.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_versions.php deleted file mode 100644 index 2b3098e8d2ea..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_api_versions.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $registryClient->listApiVersions($request); - - /** @var ApiVersion $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::apiName('[PROJECT]', '[LOCATION]', '[API]'); - - list_api_versions_sample($formattedParent); -} -// [END apigeeregistry_v1_generated_Registry_ListApiVersions_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_apis.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_apis.php deleted file mode 100644 index bea6a0d21b67..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_apis.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $registryClient->listApis($request); - - /** @var Api $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::locationName('[PROJECT]', '[LOCATION]'); - - list_apis_sample($formattedParent); -} -// [END apigeeregistry_v1_generated_Registry_ListApis_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_artifacts.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_artifacts.php deleted file mode 100644 index 8110bcb618a0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_artifacts.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $registryClient->listArtifacts($request); - - /** @var Artifact $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RegistryClient::locationName('[PROJECT]', '[LOCATION]'); - - list_artifacts_sample($formattedParent); -} -// [END apigeeregistry_v1_generated_Registry_ListArtifacts_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_locations.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_locations.php deleted file mode 100644 index a882b71ce6c7..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Registry_ListLocations_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/replace_artifact.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/replace_artifact.php deleted file mode 100644 index cfa7bc6993fe..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/replace_artifact.php +++ /dev/null @@ -1,59 +0,0 @@ -setArtifact($artifact); - - // Call the API and handle any network failures. - try { - /** @var Artifact $response */ - $response = $registryClient->replaceArtifact($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Registry_ReplaceArtifact_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/rollback_api_deployment.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/rollback_api_deployment.php deleted file mode 100644 index 375100afe1a1..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/rollback_api_deployment.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName) - ->setRevisionId($revisionId); - - // Call the API and handle any network failures. - try { - /** @var ApiDeployment $response */ - $response = $registryClient->rollbackApiDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[DEPLOYMENT]' - ); - $revisionId = '[REVISION_ID]'; - - rollback_api_deployment_sample($formattedName, $revisionId); -} -// [END apigeeregistry_v1_generated_Registry_RollbackApiDeployment_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/rollback_api_spec.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/rollback_api_spec.php deleted file mode 100644 index ce45bcd418dd..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/rollback_api_spec.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName) - ->setRevisionId($revisionId); - - // Call the API and handle any network failures. - try { - /** @var ApiSpec $response */ - $response = $registryClient->rollbackApiSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiSpecName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - $revisionId = '[REVISION_ID]'; - - rollback_api_spec_sample($formattedName, $revisionId); -} -// [END apigeeregistry_v1_generated_Registry_RollbackApiSpec_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/set_iam_policy.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/set_iam_policy.php deleted file mode 100644 index de078b260dd0..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $registryClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END apigeeregistry_v1_generated_Registry_SetIamPolicy_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/tag_api_deployment_revision.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/tag_api_deployment_revision.php deleted file mode 100644 index 0eb4634f6fd6..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/tag_api_deployment_revision.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName) - ->setTag($tag); - - // Call the API and handle any network failures. - try { - /** @var ApiDeployment $response */ - $response = $registryClient->tagApiDeploymentRevision($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiDeploymentName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[DEPLOYMENT]' - ); - $tag = '[TAG]'; - - tag_api_deployment_revision_sample($formattedName, $tag); -} -// [END apigeeregistry_v1_generated_Registry_TagApiDeploymentRevision_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/tag_api_spec_revision.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/tag_api_spec_revision.php deleted file mode 100644 index ff2890df81aa..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/tag_api_spec_revision.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName) - ->setTag($tag); - - // Call the API and handle any network failures. - try { - /** @var ApiSpec $response */ - $response = $registryClient->tagApiSpecRevision($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RegistryClient::apiSpecName( - '[PROJECT]', - '[LOCATION]', - '[API]', - '[VERSION]', - '[SPEC]' - ); - $tag = '[TAG]'; - - tag_api_spec_revision_sample($formattedName, $tag); -} -// [END apigeeregistry_v1_generated_Registry_TagApiSpecRevision_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/test_iam_permissions.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/test_iam_permissions.php deleted file mode 100644 index 30821dba1240..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $registryClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END apigeeregistry_v1_generated_Registry_TestIamPermissions_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api.php deleted file mode 100644 index f27c1500d9a4..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api.php +++ /dev/null @@ -1,59 +0,0 @@ -setApi($api); - - // Call the API and handle any network failures. - try { - /** @var Api $response */ - $response = $registryClient->updateApi($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Registry_UpdateApi_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_deployment.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_deployment.php deleted file mode 100644 index 3a3a3730b4a4..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_deployment.php +++ /dev/null @@ -1,59 +0,0 @@ -setApiDeployment($apiDeployment); - - // Call the API and handle any network failures. - try { - /** @var ApiDeployment $response */ - $response = $registryClient->updateApiDeployment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Registry_UpdateApiDeployment_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_spec.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_spec.php deleted file mode 100644 index 2c317a94f194..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_spec.php +++ /dev/null @@ -1,59 +0,0 @@ -setApiSpec($apiSpec); - - // Call the API and handle any network failures. - try { - /** @var ApiSpec $response */ - $response = $registryClient->updateApiSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Registry_UpdateApiSpec_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_version.php b/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_version.php deleted file mode 100644 index 67fc0533cc8f..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/samples/V1/RegistryClient/update_api_version.php +++ /dev/null @@ -1,59 +0,0 @@ -setApiVersion($apiVersion); - - // Call the API and handle any network failures. - try { - /** @var ApiVersion $response */ - $response = $registryClient->updateApiVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apigeeregistry_v1_generated_Registry_UpdateApiVersion_sync] diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/Client/ProvisioningClient.php b/owl-bot-staging/ApigeeRegistry/v1/src/V1/Client/ProvisioningClient.php deleted file mode 100644 index d44edbe11be8..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/Client/ProvisioningClient.php +++ /dev/null @@ -1,523 +0,0 @@ - createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class ProvisioningClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apigeeregistry.v1.Provisioning'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apigeeregistry.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apigeeregistry.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/provisioning_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/provisioning_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/provisioning_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/provisioning_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $location - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $location, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'location' => $location, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - instance: projects/{project}/locations/{location}/instances/{instance} - * - location: projects/{project}/locations/{location} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apigeeregistry.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Provisions instance resources for the Registry. - * - * The async variant is {@see ProvisioningClient::createInstanceAsync()} . - * - * @example samples/V1/ProvisioningClient/create_instance.php - * - * @param CreateInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createInstance(CreateInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateInstance', $request, $callOptions)->wait(); - } - - /** - * Deletes the Registry instance. - * - * The async variant is {@see ProvisioningClient::deleteInstanceAsync()} . - * - * @example samples/V1/ProvisioningClient/delete_instance.php - * - * @param DeleteInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteInstance(DeleteInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteInstance', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Instance. - * - * The async variant is {@see ProvisioningClient::getInstanceAsync()} . - * - * @example samples/V1/ProvisioningClient/get_instance.php - * - * @param GetInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Instance - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance - { - return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ProvisioningClient::getLocationAsync()} . - * - * @example samples/V1/ProvisioningClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see ProvisioningClient::listLocationsAsync()} . - * - * @example samples/V1/ProvisioningClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see ProvisioningClient::getIamPolicyAsync()} . - * - * @example samples/V1/ProvisioningClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see ProvisioningClient::setIamPolicyAsync()} . - * - * @example samples/V1/ProvisioningClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see ProvisioningClient::testIamPermissionsAsync()} . - * - * @example samples/V1/ProvisioningClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/Client/RegistryClient.php b/owl-bot-staging/ApigeeRegistry/v1/src/V1/Client/RegistryClient.php deleted file mode 100644 index d02613acfa83..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/Client/RegistryClient.php +++ /dev/null @@ -1,1578 +0,0 @@ - createApiAsync(CreateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiDeploymentAsync(CreateApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiSpecAsync(CreateApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface createApiVersionAsync(CreateApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createArtifactAsync(CreateArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiAsync(DeleteApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiDeploymentAsync(DeleteApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiDeploymentRevisionAsync(DeleteApiDeploymentRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiSpecAsync(DeleteApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiSpecRevisionAsync(DeleteApiSpecRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApiVersionAsync(DeleteApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteArtifactAsync(DeleteArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiAsync(GetApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiDeploymentAsync(GetApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiSpecAsync(GetApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiSpecContentsAsync(GetApiSpecContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApiVersionAsync(GetApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getArtifactAsync(GetArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getArtifactContentsAsync(GetArtifactContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiDeploymentRevisionsAsync(ListApiDeploymentRevisionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiDeploymentsAsync(ListApiDeploymentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiSpecRevisionsAsync(ListApiSpecRevisionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiSpecsAsync(ListApiSpecsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApiVersionsAsync(ListApiVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApisAsync(ListApisRequest $request, array $optionalArgs = []) - * @method PromiseInterface listArtifactsAsync(ListArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface replaceArtifactAsync(ReplaceArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackApiDeploymentAsync(RollbackApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackApiSpecAsync(RollbackApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface tagApiDeploymentRevisionAsync(TagApiDeploymentRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface tagApiSpecRevisionAsync(TagApiSpecRevisionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiAsync(UpdateApiRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiDeploymentAsync(UpdateApiDeploymentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiSpecAsync(UpdateApiSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApiVersionAsync(UpdateApiVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class RegistryClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apigeeregistry.v1.Registry'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apigeeregistry.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apigeeregistry.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/registry_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/registry_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/registry_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/registry_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a api - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * - * @return string The formatted api resource. - */ - public static function apiName(string $project, string $location, string $api): string - { - return self::getPathTemplate('api')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * api_deployment resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $deployment - * - * @return string The formatted api_deployment resource. - */ - public static function apiDeploymentName(string $project, string $location, string $api, string $deployment): string - { - return self::getPathTemplate('apiDeployment')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'deployment' => $deployment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a api_spec - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * @param string $spec - * - * @return string The formatted api_spec resource. - */ - public static function apiSpecName(string $project, string $location, string $api, string $version, string $spec): string - { - return self::getPathTemplate('apiSpec')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - 'spec' => $spec, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a api_version - * resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * - * @return string The formatted api_version resource. - */ - public static function apiVersionName(string $project, string $location, string $api, string $version): string - { - return self::getPathTemplate('apiVersion')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a artifact - * resource. - * - * @param string $project - * @param string $location - * @param string $artifact - * - * @return string The formatted artifact resource. - */ - public static function artifactName(string $project, string $location, string $artifact): string - { - return self::getPathTemplate('artifact')->render([ - 'project' => $project, - 'location' => $location, - 'artifact' => $artifact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_api_artifact resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $artifact - * - * @return string The formatted project_location_api_artifact resource. - */ - public static function projectLocationApiArtifactName(string $project, string $location, string $api, string $artifact): string - { - return self::getPathTemplate('projectLocationApiArtifact')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'artifact' => $artifact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_api_deployment_artifact resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $deployment - * @param string $artifact - * - * @return string The formatted project_location_api_deployment_artifact resource. - */ - public static function projectLocationApiDeploymentArtifactName(string $project, string $location, string $api, string $deployment, string $artifact): string - { - return self::getPathTemplate('projectLocationApiDeploymentArtifact')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'deployment' => $deployment, - 'artifact' => $artifact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_api_version_artifact resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * @param string $artifact - * - * @return string The formatted project_location_api_version_artifact resource. - */ - public static function projectLocationApiVersionArtifactName(string $project, string $location, string $api, string $version, string $artifact): string - { - return self::getPathTemplate('projectLocationApiVersionArtifact')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - 'artifact' => $artifact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_api_version_spec_artifact resource. - * - * @param string $project - * @param string $location - * @param string $api - * @param string $version - * @param string $spec - * @param string $artifact - * - * @return string The formatted project_location_api_version_spec_artifact resource. - */ - public static function projectLocationApiVersionSpecArtifactName(string $project, string $location, string $api, string $version, string $spec, string $artifact): string - { - return self::getPathTemplate('projectLocationApiVersionSpecArtifact')->render([ - 'project' => $project, - 'location' => $location, - 'api' => $api, - 'version' => $version, - 'spec' => $spec, - 'artifact' => $artifact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_artifact resource. - * - * @param string $project - * @param string $location - * @param string $artifact - * - * @return string The formatted project_location_artifact resource. - */ - public static function projectLocationArtifactName(string $project, string $location, string $artifact): string - { - return self::getPathTemplate('projectLocationArtifact')->render([ - 'project' => $project, - 'location' => $location, - 'artifact' => $artifact, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - api: projects/{project}/locations/{location}/apis/{api} - * - apiDeployment: projects/{project}/locations/{location}/apis/{api}/deployments/{deployment} - * - apiSpec: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec} - * - apiVersion: projects/{project}/locations/{location}/apis/{api}/versions/{version} - * - artifact: projects/{project}/locations/{location}/artifacts/{artifact} - * - location: projects/{project}/locations/{location} - * - projectLocationApiArtifact: projects/{project}/locations/{location}/apis/{api}/artifacts/{artifact} - * - projectLocationApiDeploymentArtifact: projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}/artifacts/{artifact} - * - projectLocationApiVersionArtifact: projects/{project}/locations/{location}/apis/{api}/versions/{version}/artifacts/{artifact} - * - projectLocationApiVersionSpecArtifact: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}/artifacts/{artifact} - * - projectLocationArtifact: projects/{project}/locations/{location}/artifacts/{artifact} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apigeeregistry.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a specified API. - * - * The async variant is {@see RegistryClient::createApiAsync()} . - * - * @example samples/V1/RegistryClient/create_api.php - * - * @param CreateApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Api - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApi(CreateApiRequest $request, array $callOptions = []): Api - { - return $this->startApiCall('CreateApi', $request, $callOptions)->wait(); - } - - /** - * Creates a specified deployment. - * - * The async variant is {@see RegistryClient::createApiDeploymentAsync()} . - * - * @example samples/V1/RegistryClient/create_api_deployment.php - * - * @param CreateApiDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApiDeployment(CreateApiDeploymentRequest $request, array $callOptions = []): ApiDeployment - { - return $this->startApiCall('CreateApiDeployment', $request, $callOptions)->wait(); - } - - /** - * Creates a specified spec. - * - * The async variant is {@see RegistryClient::createApiSpecAsync()} . - * - * @example samples/V1/RegistryClient/create_api_spec.php - * - * @param CreateApiSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiSpec - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApiSpec(CreateApiSpecRequest $request, array $callOptions = []): ApiSpec - { - return $this->startApiCall('CreateApiSpec', $request, $callOptions)->wait(); - } - - /** - * Creates a specified version. - * - * The async variant is {@see RegistryClient::createApiVersionAsync()} . - * - * @example samples/V1/RegistryClient/create_api_version.php - * - * @param CreateApiVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiVersion - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApiVersion(CreateApiVersionRequest $request, array $callOptions = []): ApiVersion - { - return $this->startApiCall('CreateApiVersion', $request, $callOptions)->wait(); - } - - /** - * Creates a specified artifact. - * - * The async variant is {@see RegistryClient::createArtifactAsync()} . - * - * @example samples/V1/RegistryClient/create_artifact.php - * - * @param CreateArtifactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Artifact - * - * @throws ApiException Thrown if the API call fails. - */ - public function createArtifact(CreateArtifactRequest $request, array $callOptions = []): Artifact - { - return $this->startApiCall('CreateArtifact', $request, $callOptions)->wait(); - } - - /** - * Removes a specified API and all of the resources that it - * owns. - * - * The async variant is {@see RegistryClient::deleteApiAsync()} . - * - * @example samples/V1/RegistryClient/delete_api.php - * - * @param DeleteApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApi(DeleteApiRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteApi', $request, $callOptions)->wait(); - } - - /** - * Removes a specified deployment, all revisions, and all - * child resources (e.g., artifacts). - * - * The async variant is {@see RegistryClient::deleteApiDeploymentAsync()} . - * - * @example samples/V1/RegistryClient/delete_api_deployment.php - * - * @param DeleteApiDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApiDeployment(DeleteApiDeploymentRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteApiDeployment', $request, $callOptions)->wait(); - } - - /** - * Deletes a revision of a deployment. - * - * The async variant is {@see RegistryClient::deleteApiDeploymentRevisionAsync()} . - * - * @example samples/V1/RegistryClient/delete_api_deployment_revision.php - * - * @param DeleteApiDeploymentRevisionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest $request, array $callOptions = []): ApiDeployment - { - return $this->startApiCall('DeleteApiDeploymentRevision', $request, $callOptions)->wait(); - } - - /** - * Removes a specified spec, all revisions, and all child - * resources (e.g., artifacts). - * - * The async variant is {@see RegistryClient::deleteApiSpecAsync()} . - * - * @example samples/V1/RegistryClient/delete_api_spec.php - * - * @param DeleteApiSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApiSpec(DeleteApiSpecRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteApiSpec', $request, $callOptions)->wait(); - } - - /** - * Deletes a revision of a spec. - * - * The async variant is {@see RegistryClient::deleteApiSpecRevisionAsync()} . - * - * @example samples/V1/RegistryClient/delete_api_spec_revision.php - * - * @param DeleteApiSpecRevisionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiSpec - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApiSpecRevision(DeleteApiSpecRevisionRequest $request, array $callOptions = []): ApiSpec - { - return $this->startApiCall('DeleteApiSpecRevision', $request, $callOptions)->wait(); - } - - /** - * Removes a specified version and all of the resources that - * it owns. - * - * The async variant is {@see RegistryClient::deleteApiVersionAsync()} . - * - * @example samples/V1/RegistryClient/delete_api_version.php - * - * @param DeleteApiVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApiVersion(DeleteApiVersionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteApiVersion', $request, $callOptions)->wait(); - } - - /** - * Removes a specified artifact. - * - * The async variant is {@see RegistryClient::deleteArtifactAsync()} . - * - * @example samples/V1/RegistryClient/delete_artifact.php - * - * @param DeleteArtifactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteArtifact(DeleteArtifactRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteArtifact', $request, $callOptions)->wait(); - } - - /** - * Returns a specified API. - * - * The async variant is {@see RegistryClient::getApiAsync()} . - * - * @example samples/V1/RegistryClient/get_api.php - * - * @param GetApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Api - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApi(GetApiRequest $request, array $callOptions = []): Api - { - return $this->startApiCall('GetApi', $request, $callOptions)->wait(); - } - - /** - * Returns a specified deployment. - * - * The async variant is {@see RegistryClient::getApiDeploymentAsync()} . - * - * @example samples/V1/RegistryClient/get_api_deployment.php - * - * @param GetApiDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApiDeployment(GetApiDeploymentRequest $request, array $callOptions = []): ApiDeployment - { - return $this->startApiCall('GetApiDeployment', $request, $callOptions)->wait(); - } - - /** - * Returns a specified spec. - * - * The async variant is {@see RegistryClient::getApiSpecAsync()} . - * - * @example samples/V1/RegistryClient/get_api_spec.php - * - * @param GetApiSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiSpec - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApiSpec(GetApiSpecRequest $request, array $callOptions = []): ApiSpec - { - return $this->startApiCall('GetApiSpec', $request, $callOptions)->wait(); - } - - /** - * Returns the contents of a specified spec. - * If specs are stored with GZip compression, the default behavior - * is to return the spec uncompressed (the mime_type response field - * indicates the exact format returned). - * - * The async variant is {@see RegistryClient::getApiSpecContentsAsync()} . - * - * @example samples/V1/RegistryClient/get_api_spec_contents.php - * - * @param GetApiSpecContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HttpBody - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApiSpecContents(GetApiSpecContentsRequest $request, array $callOptions = []): HttpBody - { - return $this->startApiCall('GetApiSpecContents', $request, $callOptions)->wait(); - } - - /** - * Returns a specified version. - * - * The async variant is {@see RegistryClient::getApiVersionAsync()} . - * - * @example samples/V1/RegistryClient/get_api_version.php - * - * @param GetApiVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiVersion - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApiVersion(GetApiVersionRequest $request, array $callOptions = []): ApiVersion - { - return $this->startApiCall('GetApiVersion', $request, $callOptions)->wait(); - } - - /** - * Returns a specified artifact. - * - * The async variant is {@see RegistryClient::getArtifactAsync()} . - * - * @example samples/V1/RegistryClient/get_artifact.php - * - * @param GetArtifactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Artifact - * - * @throws ApiException Thrown if the API call fails. - */ - public function getArtifact(GetArtifactRequest $request, array $callOptions = []): Artifact - { - return $this->startApiCall('GetArtifact', $request, $callOptions)->wait(); - } - - /** - * Returns the contents of a specified artifact. - * If artifacts are stored with GZip compression, the default behavior - * is to return the artifact uncompressed (the mime_type response field - * indicates the exact format returned). - * - * The async variant is {@see RegistryClient::getArtifactContentsAsync()} . - * - * @example samples/V1/RegistryClient/get_artifact_contents.php - * - * @param GetArtifactContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HttpBody - * - * @throws ApiException Thrown if the API call fails. - */ - public function getArtifactContents(GetArtifactContentsRequest $request, array $callOptions = []): HttpBody - { - return $this->startApiCall('GetArtifactContents', $request, $callOptions)->wait(); - } - - /** - * Lists all revisions of a deployment. - * Revisions are returned in descending order of revision creation time. - * - * The async variant is {@see RegistryClient::listApiDeploymentRevisionsAsync()} . - * - * @example samples/V1/RegistryClient/list_api_deployment_revisions.php - * - * @param ListApiDeploymentRevisionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApiDeploymentRevisions(ListApiDeploymentRevisionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApiDeploymentRevisions', $request, $callOptions); - } - - /** - * Returns matching deployments. - * - * The async variant is {@see RegistryClient::listApiDeploymentsAsync()} . - * - * @example samples/V1/RegistryClient/list_api_deployments.php - * - * @param ListApiDeploymentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApiDeployments(ListApiDeploymentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApiDeployments', $request, $callOptions); - } - - /** - * Lists all revisions of a spec. - * Revisions are returned in descending order of revision creation time. - * - * The async variant is {@see RegistryClient::listApiSpecRevisionsAsync()} . - * - * @example samples/V1/RegistryClient/list_api_spec_revisions.php - * - * @param ListApiSpecRevisionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApiSpecRevisions(ListApiSpecRevisionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApiSpecRevisions', $request, $callOptions); - } - - /** - * Returns matching specs. - * - * The async variant is {@see RegistryClient::listApiSpecsAsync()} . - * - * @example samples/V1/RegistryClient/list_api_specs.php - * - * @param ListApiSpecsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApiSpecs(ListApiSpecsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApiSpecs', $request, $callOptions); - } - - /** - * Returns matching versions. - * - * The async variant is {@see RegistryClient::listApiVersionsAsync()} . - * - * @example samples/V1/RegistryClient/list_api_versions.php - * - * @param ListApiVersionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApiVersions(ListApiVersionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApiVersions', $request, $callOptions); - } - - /** - * Returns matching APIs. - * - * The async variant is {@see RegistryClient::listApisAsync()} . - * - * @example samples/V1/RegistryClient/list_apis.php - * - * @param ListApisRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApis(ListApisRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApis', $request, $callOptions); - } - - /** - * Returns matching artifacts. - * - * The async variant is {@see RegistryClient::listArtifactsAsync()} . - * - * @example samples/V1/RegistryClient/list_artifacts.php - * - * @param ListArtifactsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listArtifacts(ListArtifactsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListArtifacts', $request, $callOptions); - } - - /** - * Used to replace a specified artifact. - * - * The async variant is {@see RegistryClient::replaceArtifactAsync()} . - * - * @example samples/V1/RegistryClient/replace_artifact.php - * - * @param ReplaceArtifactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Artifact - * - * @throws ApiException Thrown if the API call fails. - */ - public function replaceArtifact(ReplaceArtifactRequest $request, array $callOptions = []): Artifact - { - return $this->startApiCall('ReplaceArtifact', $request, $callOptions)->wait(); - } - - /** - * Sets the current revision to a specified prior - * revision. Note that this creates a new revision with a new revision ID. - * - * The async variant is {@see RegistryClient::rollbackApiDeploymentAsync()} . - * - * @example samples/V1/RegistryClient/rollback_api_deployment.php - * - * @param RollbackApiDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function rollbackApiDeployment(RollbackApiDeploymentRequest $request, array $callOptions = []): ApiDeployment - { - return $this->startApiCall('RollbackApiDeployment', $request, $callOptions)->wait(); - } - - /** - * Sets the current revision to a specified prior revision. - * Note that this creates a new revision with a new revision ID. - * - * The async variant is {@see RegistryClient::rollbackApiSpecAsync()} . - * - * @example samples/V1/RegistryClient/rollback_api_spec.php - * - * @param RollbackApiSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiSpec - * - * @throws ApiException Thrown if the API call fails. - */ - public function rollbackApiSpec(RollbackApiSpecRequest $request, array $callOptions = []): ApiSpec - { - return $this->startApiCall('RollbackApiSpec', $request, $callOptions)->wait(); - } - - /** - * Adds a tag to a specified revision of a - * deployment. - * - * The async variant is {@see RegistryClient::tagApiDeploymentRevisionAsync()} . - * - * @example samples/V1/RegistryClient/tag_api_deployment_revision.php - * - * @param TagApiDeploymentRevisionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function tagApiDeploymentRevision(TagApiDeploymentRevisionRequest $request, array $callOptions = []): ApiDeployment - { - return $this->startApiCall('TagApiDeploymentRevision', $request, $callOptions)->wait(); - } - - /** - * Adds a tag to a specified revision of a spec. - * - * The async variant is {@see RegistryClient::tagApiSpecRevisionAsync()} . - * - * @example samples/V1/RegistryClient/tag_api_spec_revision.php - * - * @param TagApiSpecRevisionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiSpec - * - * @throws ApiException Thrown if the API call fails. - */ - public function tagApiSpecRevision(TagApiSpecRevisionRequest $request, array $callOptions = []): ApiSpec - { - return $this->startApiCall('TagApiSpecRevision', $request, $callOptions)->wait(); - } - - /** - * Used to modify a specified API. - * - * The async variant is {@see RegistryClient::updateApiAsync()} . - * - * @example samples/V1/RegistryClient/update_api.php - * - * @param UpdateApiRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Api - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApi(UpdateApiRequest $request, array $callOptions = []): Api - { - return $this->startApiCall('UpdateApi', $request, $callOptions)->wait(); - } - - /** - * Used to modify a specified deployment. - * - * The async variant is {@see RegistryClient::updateApiDeploymentAsync()} . - * - * @example samples/V1/RegistryClient/update_api_deployment.php - * - * @param UpdateApiDeploymentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiDeployment - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApiDeployment(UpdateApiDeploymentRequest $request, array $callOptions = []): ApiDeployment - { - return $this->startApiCall('UpdateApiDeployment', $request, $callOptions)->wait(); - } - - /** - * Used to modify a specified spec. - * - * The async variant is {@see RegistryClient::updateApiSpecAsync()} . - * - * @example samples/V1/RegistryClient/update_api_spec.php - * - * @param UpdateApiSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiSpec - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApiSpec(UpdateApiSpecRequest $request, array $callOptions = []): ApiSpec - { - return $this->startApiCall('UpdateApiSpec', $request, $callOptions)->wait(); - } - - /** - * Used to modify a specified version. - * - * The async variant is {@see RegistryClient::updateApiVersionAsync()} . - * - * @example samples/V1/RegistryClient/update_api_version.php - * - * @param UpdateApiVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApiVersion - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApiVersion(UpdateApiVersionRequest $request, array $callOptions = []): ApiVersion - { - return $this->startApiCall('UpdateApiVersion', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see RegistryClient::getLocationAsync()} . - * - * @example samples/V1/RegistryClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see RegistryClient::listLocationsAsync()} . - * - * @example samples/V1/RegistryClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see RegistryClient::getIamPolicyAsync()} . - * - * @example samples/V1/RegistryClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see RegistryClient::setIamPolicyAsync()} . - * - * @example samples/V1/RegistryClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see RegistryClient::testIamPermissionsAsync()} . - * - * @example samples/V1/RegistryClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ApigeeRegistry/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 73e417a14e1e..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.apigeeregistry.v1", - "libraryPackage": "Google\\Cloud\\ApigeeRegistry\\V1", - "services": { - "Provisioning": { - "clients": { - "grpc": { - "libraryClient": "ProvisioningGapicClient", - "rpcs": { - "CreateInstance": { - "methods": [ - "createInstance" - ] - }, - "DeleteInstance": { - "methods": [ - "deleteInstance" - ] - }, - "GetInstance": { - "methods": [ - "getInstance" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "Registry": { - "clients": { - "grpc": { - "libraryClient": "RegistryGapicClient", - "rpcs": { - "CreateApi": { - "methods": [ - "createApi" - ] - }, - "CreateApiDeployment": { - "methods": [ - "createApiDeployment" - ] - }, - "CreateApiSpec": { - "methods": [ - "createApiSpec" - ] - }, - "CreateApiVersion": { - "methods": [ - "createApiVersion" - ] - }, - "CreateArtifact": { - "methods": [ - "createArtifact" - ] - }, - "DeleteApi": { - "methods": [ - "deleteApi" - ] - }, - "DeleteApiDeployment": { - "methods": [ - "deleteApiDeployment" - ] - }, - "DeleteApiDeploymentRevision": { - "methods": [ - "deleteApiDeploymentRevision" - ] - }, - "DeleteApiSpec": { - "methods": [ - "deleteApiSpec" - ] - }, - "DeleteApiSpecRevision": { - "methods": [ - "deleteApiSpecRevision" - ] - }, - "DeleteApiVersion": { - "methods": [ - "deleteApiVersion" - ] - }, - "DeleteArtifact": { - "methods": [ - "deleteArtifact" - ] - }, - "GetApi": { - "methods": [ - "getApi" - ] - }, - "GetApiDeployment": { - "methods": [ - "getApiDeployment" - ] - }, - "GetApiSpec": { - "methods": [ - "getApiSpec" - ] - }, - "GetApiSpecContents": { - "methods": [ - "getApiSpecContents" - ] - }, - "GetApiVersion": { - "methods": [ - "getApiVersion" - ] - }, - "GetArtifact": { - "methods": [ - "getArtifact" - ] - }, - "GetArtifactContents": { - "methods": [ - "getArtifactContents" - ] - }, - "ListApiDeploymentRevisions": { - "methods": [ - "listApiDeploymentRevisions" - ] - }, - "ListApiDeployments": { - "methods": [ - "listApiDeployments" - ] - }, - "ListApiSpecRevisions": { - "methods": [ - "listApiSpecRevisions" - ] - }, - "ListApiSpecs": { - "methods": [ - "listApiSpecs" - ] - }, - "ListApiVersions": { - "methods": [ - "listApiVersions" - ] - }, - "ListApis": { - "methods": [ - "listApis" - ] - }, - "ListArtifacts": { - "methods": [ - "listArtifacts" - ] - }, - "ReplaceArtifact": { - "methods": [ - "replaceArtifact" - ] - }, - "RollbackApiDeployment": { - "methods": [ - "rollbackApiDeployment" - ] - }, - "RollbackApiSpec": { - "methods": [ - "rollbackApiSpec" - ] - }, - "TagApiDeploymentRevision": { - "methods": [ - "tagApiDeploymentRevision" - ] - }, - "TagApiSpecRevision": { - "methods": [ - "tagApiSpecRevision" - ] - }, - "UpdateApi": { - "methods": [ - "updateApi" - ] - }, - "UpdateApiDeployment": { - "methods": [ - "updateApiDeployment" - ] - }, - "UpdateApiSpec": { - "methods": [ - "updateApiSpec" - ] - }, - "UpdateApiVersion": { - "methods": [ - "updateApiVersion" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_client_config.json b/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_client_config.json deleted file mode 100644 index 223763c8985b..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_client_config.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "interfaces": { - "google.cloud.apigeeregistry.v1.Provisioning": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "CreateInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_descriptor_config.php b/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_descriptor_config.php deleted file mode 100644 index 9274a17b2b72..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_descriptor_config.php +++ /dev/null @@ -1,155 +0,0 @@ - [ - 'google.cloud.apigeeregistry.v1.Provisioning' => [ - 'CreateInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ApigeeRegistry\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\ApigeeRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ApigeeRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\Instance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'instance' => 'projects/{project}/locations/{location}/instances/{instance}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_rest_client_config.php b/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_rest_client_config.php deleted file mode 100644 index fa39c5fb7545..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/provisioning_rest_client_config.php +++ /dev/null @@ -1,306 +0,0 @@ - [ - 'google.cloud.apigeeregistry.v1.Provisioning' => [ - 'CreateInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/instances', - 'body' => 'instance', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'instance_id', - ], - ], - 'DeleteInstance' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/deployments/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/runtime}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/deployments/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/runtime}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/deployments/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/runtime}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_client_config.json b/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_client_config.json deleted file mode 100644 index c24d2f4e969d..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_client_config.json +++ /dev/null @@ -1,247 +0,0 @@ -{ - "interfaces": { - "google.cloud.apigeeregistry.v1.Registry": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "ABORTED", - "CANCELLED", - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ], - "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": 200, - "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": { - "CreateApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateApiDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateApiSpec": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateApiVersion": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateArtifact": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApiDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApiDeploymentRevision": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApiSpec": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApiSpecRevision": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteApiVersion": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteArtifact": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApiDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApiSpec": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApiSpecContents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetApiVersion": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetArtifact": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetArtifactContents": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApiDeploymentRevisions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApiDeployments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApiSpecRevisions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApiSpecs": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApiVersions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApis": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListArtifacts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReplaceArtifact": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RollbackApiDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RollbackApiSpec": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "TagApiDeploymentRevision": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "TagApiSpecRevision": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateApi": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateApiDeployment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateApiSpec": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateApiVersion": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_descriptor_config.php b/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_descriptor_config.php deleted file mode 100644 index f1503efab2af..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_descriptor_config.php +++ /dev/null @@ -1,595 +0,0 @@ - [ - 'google.cloud.apigeeregistry.v1.Registry' => [ - 'CreateApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\Api', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateApiDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiDeployment', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateApiSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiSpec', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateApiVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiVersion', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateArtifact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\Artifact', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiDeploymentRevision' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiSpecRevision' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiSpec', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteArtifact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\Api', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApiDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApiSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiSpec', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApiSpecContents' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Api\HttpBody', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApiVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiVersion', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetArtifact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\Artifact', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetArtifactContents' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Api\HttpBody', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListApiDeploymentRevisions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApiDeployments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ListApiDeploymentRevisionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListApiDeployments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApiDeployments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ListApiDeploymentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListApiSpecRevisions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApiSpecs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ListApiSpecRevisionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListApiSpecs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApiSpecs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ListApiSpecsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListApiVersions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApiVersions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ListApiVersionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListApis' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApis', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ListApisResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListArtifacts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getArtifacts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ListArtifactsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ReplaceArtifact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\Artifact', - 'headerParams' => [ - [ - 'keyName' => 'artifact.name', - 'fieldAccessors' => [ - 'getArtifact', - 'getName', - ], - ], - ], - ], - 'RollbackApiDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RollbackApiSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiSpec', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'TagApiDeploymentRevision' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiDeployment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'TagApiSpecRevision' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiSpec', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateApi' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\Api', - 'headerParams' => [ - [ - 'keyName' => 'api.name', - 'fieldAccessors' => [ - 'getApi', - 'getName', - ], - ], - ], - ], - 'UpdateApiDeployment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiDeployment', - 'headerParams' => [ - [ - 'keyName' => 'api_deployment.name', - 'fieldAccessors' => [ - 'getApiDeployment', - 'getName', - ], - ], - ], - ], - 'UpdateApiSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiSpec', - 'headerParams' => [ - [ - 'keyName' => 'api_spec.name', - 'fieldAccessors' => [ - 'getApiSpec', - 'getName', - ], - ], - ], - ], - 'UpdateApiVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ApigeeRegistry\V1\ApiVersion', - 'headerParams' => [ - [ - 'keyName' => 'api_version.name', - 'fieldAccessors' => [ - 'getApiVersion', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'api' => 'projects/{project}/locations/{location}/apis/{api}', - 'apiDeployment' => 'projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}', - 'apiSpec' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}', - 'apiVersion' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}', - 'artifact' => 'projects/{project}/locations/{location}/artifacts/{artifact}', - 'location' => 'projects/{project}/locations/{location}', - 'projectLocationApiArtifact' => 'projects/{project}/locations/{location}/apis/{api}/artifacts/{artifact}', - 'projectLocationApiDeploymentArtifact' => 'projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}/artifacts/{artifact}', - 'projectLocationApiVersionArtifact' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}/artifacts/{artifact}', - 'projectLocationApiVersionSpecArtifact' => 'projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}/artifacts/{artifact}', - 'projectLocationArtifact' => 'projects/{project}/locations/{location}/artifacts/{artifact}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_rest_client_config.php b/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_rest_client_config.php deleted file mode 100644 index c9206bb8fe9e..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/src/V1/resources/registry_rest_client_config.php +++ /dev/null @@ -1,816 +0,0 @@ - [ - 'google.cloud.apigeeregistry.v1.Registry' => [ - 'CreateApi' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apis', - 'body' => 'api', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'api_id', - ], - ], - 'CreateApiDeployment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/deployments', - 'body' => 'api_deployment', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'api_deployment_id', - ], - ], - 'CreateApiSpec' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs', - 'body' => 'api_spec', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'api_spec_id', - ], - ], - 'CreateApiVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/versions', - 'body' => 'api_version', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'api_version_id', - ], - ], - 'CreateArtifact' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/artifacts', - 'body' => 'artifact', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/artifacts', - 'body' => 'artifact', - 'queryParams' => [ - 'artifact_id', - ], - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifacts', - 'body' => 'artifact', - 'queryParams' => [ - 'artifact_id', - ], - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifacts', - 'body' => 'artifact', - 'queryParams' => [ - 'artifact_id', - ], - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts', - 'body' => 'artifact', - 'queryParams' => [ - 'artifact_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'artifact_id', - ], - ], - 'DeleteApi' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiDeployment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiDeploymentRevision' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*}:deleteRevision', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiSpec' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiSpecRevision' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:deleteRevision', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteApiVersion' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteArtifact' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/artifacts/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/artifacts/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApi' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApiDeployment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApiSpec' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApiSpecContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:getContents', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApiVersion' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetArtifact' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/artifacts/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/artifacts/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetArtifactContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/artifacts/*}:getContents', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/artifacts/*}:getContents', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}:getContents', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:getContents', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}:getContents', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApiDeploymentRevisions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*}:listRevisions', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApiDeployments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/deployments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListApiSpecRevisions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:listRevisions', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApiSpecs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListApiVersions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/versions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListApis' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/apis', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListArtifacts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/artifacts', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*}/artifacts', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifacts', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifacts', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ReplaceArtifact' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{artifact.name=projects/*/locations/*/artifacts/*}', - 'body' => 'artifact', - 'additionalBindings' => [ - [ - 'method' => 'put', - 'uriTemplate' => '/v1/{artifact.name=projects/*/locations/*/apis/*/artifacts/*}', - 'body' => 'artifact', - ], - [ - 'method' => 'put', - 'uriTemplate' => '/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/artifacts/*}', - 'body' => 'artifact', - ], - [ - 'method' => 'put', - 'uriTemplate' => '/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}', - 'body' => 'artifact', - ], - [ - 'method' => 'put', - 'uriTemplate' => '/v1/{artifact.name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}', - 'body' => 'artifact', - ], - ], - 'placeholders' => [ - 'artifact.name' => [ - 'getters' => [ - 'getArtifact', - 'getName', - ], - ], - ], - ], - 'RollbackApiDeployment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*}:rollback', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RollbackApiSpec' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:rollback', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'TagApiDeploymentRevision' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/deployments/*}:tagRevision', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'TagApiSpecRevision' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:tagRevision', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateApi' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{api.name=projects/*/locations/*/apis/*}', - 'body' => 'api', - 'placeholders' => [ - 'api.name' => [ - 'getters' => [ - 'getApi', - 'getName', - ], - ], - ], - ], - 'UpdateApiDeployment' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{api_deployment.name=projects/*/locations/*/apis/*/deployments/*}', - 'body' => 'api_deployment', - 'placeholders' => [ - 'api_deployment.name' => [ - 'getters' => [ - 'getApiDeployment', - 'getName', - ], - ], - ], - ], - 'UpdateApiSpec' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{api_spec.name=projects/*/locations/*/apis/*/versions/*/specs/*}', - 'body' => 'api_spec', - 'placeholders' => [ - 'api_spec.name' => [ - 'getters' => [ - 'getApiSpec', - 'getName', - ], - ], - ], - ], - 'UpdateApiVersion' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{api_version.name=projects/*/locations/*/apis/*/versions/*}', - 'body' => 'api_version', - 'placeholders' => [ - 'api_version.name' => [ - 'getters' => [ - 'getApiVersion', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/deployments/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/runtime}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/deployments/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/runtime}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/deployments/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/instances/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/runtime}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ApigeeRegistry/v1/tests/Unit/V1/Client/ProvisioningClientTest.php b/owl-bot-staging/ApigeeRegistry/v1/tests/Unit/V1/Client/ProvisioningClientTest.php deleted file mode 100644 index db794d651755..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/tests/Unit/V1/Client/ProvisioningClientTest.php +++ /dev/null @@ -1,821 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ProvisioningClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ProvisioningClient($options); - } - - /** @test */ - public function createInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $stateMessage = 'stateMessage29641305'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name); - $expectedResponse->setStateMessage($stateMessage); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceConfig = new Config(); - $configCmekKeyName = 'configCmekKeyName-1633313736'; - $instanceConfig->setCmekKeyName($configCmekKeyName); - $instance->setConfig($instanceConfig); - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - $response = $gapicClient->createInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Provisioning/CreateInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getInstanceId(); - $this->assertProtobufEquals($instanceId, $actualValue); - $actualValue = $actualApiRequestObject->getInstance(); - $this->assertProtobufEquals($instance, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceConfig = new Config(); - $configCmekKeyName = 'configCmekKeyName-1633313736'; - $instanceConfig->setCmekKeyName($configCmekKeyName); - $instance->setConfig($instanceConfig); - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - $response = $gapicClient->createInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new DeleteInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Provisioning/DeleteInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new DeleteInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $stateMessage = 'stateMessage29641305'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setStateMessage($stateMessage); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Provisioning/GetInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - try { - $gapicClient->getInstance($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createInstanceAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $stateMessage = 'stateMessage29641305'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name); - $expectedResponse->setStateMessage($stateMessage); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceConfig = new Config(); - $configCmekKeyName = 'configCmekKeyName-1633313736'; - $instanceConfig->setCmekKeyName($configCmekKeyName); - $instance->setConfig($instanceConfig); - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance); - $response = $gapicClient->createInstanceAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Provisioning/CreateInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getInstanceId(); - $this->assertProtobufEquals($instanceId, $actualValue); - $actualValue = $actualApiRequestObject->getInstance(); - $this->assertProtobufEquals($instance, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/ApigeeRegistry/v1/tests/Unit/V1/Client/RegistryClientTest.php b/owl-bot-staging/ApigeeRegistry/v1/tests/Unit/V1/Client/RegistryClientTest.php deleted file mode 100644 index 3385b814a201..000000000000 --- a/owl-bot-staging/ApigeeRegistry/v1/tests/Unit/V1/Client/RegistryClientTest.php +++ /dev/null @@ -1,3128 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RegistryClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RegistryClient($options); - } - - /** @test */ - public function createApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $availability = 'availability1997542747'; - $recommendedVersion = 'recommendedVersion265230068'; - $recommendedDeployment = 'recommendedDeployment1339243305'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setAvailability($availability); - $expectedResponse->setRecommendedVersion($recommendedVersion); - $expectedResponse->setRecommendedDeployment($recommendedDeployment); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $api = new Api(); - $apiId = 'apiId-1411282592'; - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApi($api) - ->setApiId($apiId); - $response = $gapicClient->createApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/CreateApi', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $actualValue = $actualRequestObject->getApiId(); - $this->assertProtobufEquals($apiId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $api = new Api(); - $apiId = 'apiId-1411282592'; - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApi($api) - ->setApiId($apiId); - try { - $gapicClient->createApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $apiSpecRevision = 'apiSpecRevision-1685452166'; - $endpointUri = 'endpointUri-850313278'; - $externalChannelUri = 'externalChannelUri-559177284'; - $intendedAudience = 'intendedAudience-1100067944'; - $accessGuidance = 'accessGuidance24590291'; - $expectedResponse = new ApiDeployment(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setApiSpecRevision($apiSpecRevision); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setExternalChannelUri($externalChannelUri); - $expectedResponse->setIntendedAudience($intendedAudience); - $expectedResponse->setAccessGuidance($accessGuidance); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $apiDeployment = new ApiDeployment(); - $apiDeploymentId = 'apiDeploymentId-276259984'; - $request = (new CreateApiDeploymentRequest()) - ->setParent($formattedParent) - ->setApiDeployment($apiDeployment) - ->setApiDeploymentId($apiDeploymentId); - $response = $gapicClient->createApiDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/CreateApiDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApiDeployment(); - $this->assertProtobufEquals($apiDeployment, $actualValue); - $actualValue = $actualRequestObject->getApiDeploymentId(); - $this->assertProtobufEquals($apiDeploymentId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $apiDeployment = new ApiDeployment(); - $apiDeploymentId = 'apiDeploymentId-276259984'; - $request = (new CreateApiDeploymentRequest()) - ->setParent($formattedParent) - ->setApiDeployment($apiDeployment) - ->setApiDeploymentId($apiDeploymentId); - try { - $gapicClient->createApiDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $filename = 'filename-734768633'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $sourceUri = 'sourceUri-1111107768'; - $contents = '26'; - $expectedResponse = new ApiSpec(); - $expectedResponse->setName($name); - $expectedResponse->setFilename($filename); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setSourceUri($sourceUri); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $apiSpec = new ApiSpec(); - $apiSpecId = 'apiSpecId800293626'; - $request = (new CreateApiSpecRequest()) - ->setParent($formattedParent) - ->setApiSpec($apiSpec) - ->setApiSpecId($apiSpecId); - $response = $gapicClient->createApiSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/CreateApiSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApiSpec(); - $this->assertProtobufEquals($apiSpec, $actualValue); - $actualValue = $actualRequestObject->getApiSpecId(); - $this->assertProtobufEquals($apiSpecId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $apiSpec = new ApiSpec(); - $apiSpecId = 'apiSpecId800293626'; - $request = (new CreateApiSpecRequest()) - ->setParent($formattedParent) - ->setApiSpec($apiSpec) - ->setApiSpecId($apiSpecId); - try { - $gapicClient->createApiSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $state = 'state109757585'; - $expectedResponse = new ApiVersion(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setState($state); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $apiVersion = new ApiVersion(); - $apiVersionId = 'apiVersionId790654247'; - $request = (new CreateApiVersionRequest()) - ->setParent($formattedParent) - ->setApiVersion($apiVersion) - ->setApiVersionId($apiVersionId); - $response = $gapicClient->createApiVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/CreateApiVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApiVersion(); - $this->assertProtobufEquals($apiVersion, $actualValue); - $actualValue = $actualRequestObject->getApiVersionId(); - $this->assertProtobufEquals($apiVersionId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $apiVersion = new ApiVersion(); - $apiVersionId = 'apiVersionId790654247'; - $request = (new CreateApiVersionRequest()) - ->setParent($formattedParent) - ->setApiVersion($apiVersion) - ->setApiVersionId($apiVersionId); - try { - $gapicClient->createApiVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createArtifactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $contents = '26'; - $expectedResponse = new Artifact(); - $expectedResponse->setName($name); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $artifact = new Artifact(); - $artifactId = 'artifactId-1130052952'; - $request = (new CreateArtifactRequest()) - ->setParent($formattedParent) - ->setArtifact($artifact) - ->setArtifactId($artifactId); - $response = $gapicClient->createArtifact($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/CreateArtifact', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getArtifact(); - $this->assertProtobufEquals($artifact, $actualValue); - $actualValue = $actualRequestObject->getArtifactId(); - $this->assertProtobufEquals($artifactId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createArtifactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $artifact = new Artifact(); - $artifactId = 'artifactId-1130052952'; - $request = (new CreateArtifactRequest()) - ->setParent($formattedParent) - ->setArtifact($artifact) - ->setArtifactId($artifactId); - try { - $gapicClient->createArtifact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new DeleteApiRequest()) - ->setName($formattedName); - $gapicClient->deleteApi($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/DeleteApi', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new DeleteApiRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new DeleteApiDeploymentRequest()) - ->setName($formattedName); - $gapicClient->deleteApiDeployment($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/DeleteApiDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new DeleteApiDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteApiDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiDeploymentRevisionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $apiSpecRevision = 'apiSpecRevision-1685452166'; - $endpointUri = 'endpointUri-850313278'; - $externalChannelUri = 'externalChannelUri-559177284'; - $intendedAudience = 'intendedAudience-1100067944'; - $accessGuidance = 'accessGuidance24590291'; - $expectedResponse = new ApiDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setApiSpecRevision($apiSpecRevision); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setExternalChannelUri($externalChannelUri); - $expectedResponse->setIntendedAudience($intendedAudience); - $expectedResponse->setAccessGuidance($accessGuidance); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new DeleteApiDeploymentRevisionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApiDeploymentRevision($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/DeleteApiDeploymentRevision', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiDeploymentRevisionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new DeleteApiDeploymentRevisionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteApiDeploymentRevision($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new DeleteApiSpecRequest()) - ->setName($formattedName); - $gapicClient->deleteApiSpec($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/DeleteApiSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new DeleteApiSpecRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteApiSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiSpecRevisionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $filename = 'filename-734768633'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $sourceUri = 'sourceUri-1111107768'; - $contents = '26'; - $expectedResponse = new ApiSpec(); - $expectedResponse->setName($name2); - $expectedResponse->setFilename($filename); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setSourceUri($sourceUri); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new DeleteApiSpecRevisionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApiSpecRevision($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/DeleteApiSpecRevision', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiSpecRevisionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new DeleteApiSpecRevisionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteApiSpecRevision($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new DeleteApiVersionRequest()) - ->setName($formattedName); - $gapicClient->deleteApiVersion($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/DeleteApiVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteApiVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new DeleteApiVersionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteApiVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteArtifactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - $request = (new DeleteArtifactRequest()) - ->setName($formattedName); - $gapicClient->deleteArtifact($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/DeleteArtifact', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteArtifactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - $request = (new DeleteArtifactRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteArtifact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $availability = 'availability1997542747'; - $recommendedVersion = 'recommendedVersion265230068'; - $recommendedDeployment = 'recommendedDeployment1339243305'; - $expectedResponse = new Api(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setAvailability($availability); - $expectedResponse->setRecommendedVersion($recommendedVersion); - $expectedResponse->setRecommendedDeployment($recommendedDeployment); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new GetApiRequest()) - ->setName($formattedName); - $response = $gapicClient->getApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/GetApi', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new GetApiRequest()) - ->setName($formattedName); - try { - $gapicClient->getApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $apiSpecRevision = 'apiSpecRevision-1685452166'; - $endpointUri = 'endpointUri-850313278'; - $externalChannelUri = 'externalChannelUri-559177284'; - $intendedAudience = 'intendedAudience-1100067944'; - $accessGuidance = 'accessGuidance24590291'; - $expectedResponse = new ApiDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setApiSpecRevision($apiSpecRevision); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setExternalChannelUri($externalChannelUri); - $expectedResponse->setIntendedAudience($intendedAudience); - $expectedResponse->setAccessGuidance($accessGuidance); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new GetApiDeploymentRequest()) - ->setName($formattedName); - $response = $gapicClient->getApiDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/GetApiDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new GetApiDeploymentRequest()) - ->setName($formattedName); - try { - $gapicClient->getApiDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $filename = 'filename-734768633'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $sourceUri = 'sourceUri-1111107768'; - $contents = '26'; - $expectedResponse = new ApiSpec(); - $expectedResponse->setName($name2); - $expectedResponse->setFilename($filename); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setSourceUri($sourceUri); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetApiSpecRequest()) - ->setName($formattedName); - $response = $gapicClient->getApiSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/GetApiSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetApiSpecRequest()) - ->setName($formattedName); - try { - $gapicClient->getApiSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiSpecContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contentType = 'contentType831846208'; - $data = '-86'; - $expectedResponse = new HttpBody(); - $expectedResponse->setContentType($contentType); - $expectedResponse->setData($data); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetApiSpecContentsRequest()) - ->setName($formattedName); - $response = $gapicClient->getApiSpecContents($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/GetApiSpecContents', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiSpecContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new GetApiSpecContentsRequest()) - ->setName($formattedName); - try { - $gapicClient->getApiSpecContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $state = 'state109757585'; - $expectedResponse = new ApiVersion(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setState($state); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new GetApiVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->getApiVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/GetApiVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApiVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new GetApiVersionRequest()) - ->setName($formattedName); - try { - $gapicClient->getApiVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getArtifactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $contents = '26'; - $expectedResponse = new Artifact(); - $expectedResponse->setName($name2); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - $request = (new GetArtifactRequest()) - ->setName($formattedName); - $response = $gapicClient->getArtifact($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/GetArtifact', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getArtifactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - $request = (new GetArtifactRequest()) - ->setName($formattedName); - try { - $gapicClient->getArtifact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getArtifactContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contentType = 'contentType831846208'; - $data = '-86'; - $expectedResponse = new HttpBody(); - $expectedResponse->setContentType($contentType); - $expectedResponse->setData($data); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - $request = (new GetArtifactContentsRequest()) - ->setName($formattedName); - $response = $gapicClient->getArtifactContents($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/GetArtifactContents', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getArtifactContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->artifactName('[PROJECT]', '[LOCATION]', '[ARTIFACT]'); - $request = (new GetArtifactContentsRequest()) - ->setName($formattedName); - try { - $gapicClient->getArtifactContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiDeploymentRevisionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apiDeploymentsElement = new ApiDeployment(); - $apiDeployments = [ - $apiDeploymentsElement, - ]; - $expectedResponse = new ListApiDeploymentRevisionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApiDeployments($apiDeployments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new ListApiDeploymentRevisionsRequest()) - ->setName($formattedName); - $response = $gapicClient->listApiDeploymentRevisions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApiDeployments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ListApiDeploymentRevisions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiDeploymentRevisionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $request = (new ListApiDeploymentRevisionsRequest()) - ->setName($formattedName); - try { - $gapicClient->listApiDeploymentRevisions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiDeploymentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apiDeploymentsElement = new ApiDeployment(); - $apiDeployments = [ - $apiDeploymentsElement, - ]; - $expectedResponse = new ListApiDeploymentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApiDeployments($apiDeployments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new ListApiDeploymentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApiDeployments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApiDeployments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ListApiDeployments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiDeploymentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new ListApiDeploymentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApiDeployments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiSpecRevisionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apiSpecsElement = new ApiSpec(); - $apiSpecs = [ - $apiSpecsElement, - ]; - $expectedResponse = new ListApiSpecRevisionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApiSpecs($apiSpecs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new ListApiSpecRevisionsRequest()) - ->setName($formattedName); - $response = $gapicClient->listApiSpecRevisions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApiSpecs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ListApiSpecRevisions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiSpecRevisionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $request = (new ListApiSpecRevisionsRequest()) - ->setName($formattedName); - try { - $gapicClient->listApiSpecRevisions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiSpecsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apiSpecsElement = new ApiSpec(); - $apiSpecs = [ - $apiSpecsElement, - ]; - $expectedResponse = new ListApiSpecsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApiSpecs($apiSpecs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new ListApiSpecsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApiSpecs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApiSpecs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ListApiSpecs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiSpecsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiVersionName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]'); - $request = (new ListApiSpecsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApiSpecs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiVersionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apiVersionsElement = new ApiVersion(); - $apiVersions = [ - $apiVersionsElement, - ]; - $expectedResponse = new ListApiVersionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApiVersions($apiVersions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new ListApiVersionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApiVersions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApiVersions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ListApiVersions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApiVersionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->apiName('[PROJECT]', '[LOCATION]', '[API]'); - $request = (new ListApiVersionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApiVersions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApisTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $apisElement = new Api(); - $apis = [ - $apisElement, - ]; - $expectedResponse = new ListApisResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApis($apis); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApisRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApis($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApis()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ListApis', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApisExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApisRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApis($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listArtifactsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $artifactsElement = new Artifact(); - $artifacts = [ - $artifactsElement, - ]; - $expectedResponse = new ListArtifactsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setArtifacts($artifacts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListArtifactsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listArtifacts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getArtifacts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ListArtifacts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listArtifactsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListArtifactsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listArtifacts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function replaceArtifactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $contents = '26'; - $expectedResponse = new Artifact(); - $expectedResponse->setName($name); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $artifact = new Artifact(); - $request = (new ReplaceArtifactRequest()) - ->setArtifact($artifact); - $response = $gapicClient->replaceArtifact($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/ReplaceArtifact', $actualFuncCall); - $actualValue = $actualRequestObject->getArtifact(); - $this->assertProtobufEquals($artifact, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function replaceArtifactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $artifact = new Artifact(); - $request = (new ReplaceArtifactRequest()) - ->setArtifact($artifact); - try { - $gapicClient->replaceArtifact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackApiDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $revisionId2 = 'revisionId2-100208654'; - $apiSpecRevision = 'apiSpecRevision-1685452166'; - $endpointUri = 'endpointUri-850313278'; - $externalChannelUri = 'externalChannelUri-559177284'; - $intendedAudience = 'intendedAudience-1100067944'; - $accessGuidance = 'accessGuidance24590291'; - $expectedResponse = new ApiDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId2); - $expectedResponse->setApiSpecRevision($apiSpecRevision); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setExternalChannelUri($externalChannelUri); - $expectedResponse->setIntendedAudience($intendedAudience); - $expectedResponse->setAccessGuidance($accessGuidance); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $revisionId = 'revisionId513861631'; - $request = (new RollbackApiDeploymentRequest()) - ->setName($formattedName) - ->setRevisionId($revisionId); - $response = $gapicClient->rollbackApiDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/RollbackApiDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getRevisionId(); - $this->assertProtobufEquals($revisionId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackApiDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $revisionId = 'revisionId513861631'; - $request = (new RollbackApiDeploymentRequest()) - ->setName($formattedName) - ->setRevisionId($revisionId); - try { - $gapicClient->rollbackApiDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackApiSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $filename = 'filename-734768633'; - $description = 'description-1724546052'; - $revisionId2 = 'revisionId2-100208654'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $sourceUri = 'sourceUri-1111107768'; - $contents = '26'; - $expectedResponse = new ApiSpec(); - $expectedResponse->setName($name2); - $expectedResponse->setFilename($filename); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId2); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setSourceUri($sourceUri); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $revisionId = 'revisionId513861631'; - $request = (new RollbackApiSpecRequest()) - ->setName($formattedName) - ->setRevisionId($revisionId); - $response = $gapicClient->rollbackApiSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/RollbackApiSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getRevisionId(); - $this->assertProtobufEquals($revisionId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackApiSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $revisionId = 'revisionId513861631'; - $request = (new RollbackApiSpecRequest()) - ->setName($formattedName) - ->setRevisionId($revisionId); - try { - $gapicClient->rollbackApiSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function tagApiDeploymentRevisionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $apiSpecRevision = 'apiSpecRevision-1685452166'; - $endpointUri = 'endpointUri-850313278'; - $externalChannelUri = 'externalChannelUri-559177284'; - $intendedAudience = 'intendedAudience-1100067944'; - $accessGuidance = 'accessGuidance24590291'; - $expectedResponse = new ApiDeployment(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setApiSpecRevision($apiSpecRevision); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setExternalChannelUri($externalChannelUri); - $expectedResponse->setIntendedAudience($intendedAudience); - $expectedResponse->setAccessGuidance($accessGuidance); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $tag = 'tag114586'; - $request = (new TagApiDeploymentRevisionRequest()) - ->setName($formattedName) - ->setTag($tag); - $response = $gapicClient->tagApiDeploymentRevision($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/TagApiDeploymentRevision', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getTag(); - $this->assertProtobufEquals($tag, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function tagApiDeploymentRevisionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiDeploymentName('[PROJECT]', '[LOCATION]', '[API]', '[DEPLOYMENT]'); - $tag = 'tag114586'; - $request = (new TagApiDeploymentRevisionRequest()) - ->setName($formattedName) - ->setTag($tag); - try { - $gapicClient->tagApiDeploymentRevision($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function tagApiSpecRevisionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $filename = 'filename-734768633'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $sourceUri = 'sourceUri-1111107768'; - $contents = '26'; - $expectedResponse = new ApiSpec(); - $expectedResponse->setName($name2); - $expectedResponse->setFilename($filename); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setSourceUri($sourceUri); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $tag = 'tag114586'; - $request = (new TagApiSpecRevisionRequest()) - ->setName($formattedName) - ->setTag($tag); - $response = $gapicClient->tagApiSpecRevision($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/TagApiSpecRevision', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getTag(); - $this->assertProtobufEquals($tag, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function tagApiSpecRevisionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->apiSpecName('[PROJECT]', '[LOCATION]', '[API]', '[VERSION]', '[SPEC]'); - $tag = 'tag114586'; - $request = (new TagApiSpecRevisionRequest()) - ->setName($formattedName) - ->setTag($tag); - try { - $gapicClient->tagApiSpecRevision($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $availability = 'availability1997542747'; - $recommendedVersion = 'recommendedVersion265230068'; - $recommendedDeployment = 'recommendedDeployment1339243305'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setAvailability($availability); - $expectedResponse->setRecommendedVersion($recommendedVersion); - $expectedResponse->setRecommendedDeployment($recommendedDeployment); - $transport->addResponse($expectedResponse); - // Mock request - $api = new Api(); - $request = (new UpdateApiRequest()) - ->setApi($api); - $response = $gapicClient->updateApi($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/UpdateApi', $actualFuncCall); - $actualValue = $actualRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $api = new Api(); - $request = (new UpdateApiRequest()) - ->setApi($api); - try { - $gapicClient->updateApi($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiDeploymentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $apiSpecRevision = 'apiSpecRevision-1685452166'; - $endpointUri = 'endpointUri-850313278'; - $externalChannelUri = 'externalChannelUri-559177284'; - $intendedAudience = 'intendedAudience-1100067944'; - $accessGuidance = 'accessGuidance24590291'; - $expectedResponse = new ApiDeployment(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setApiSpecRevision($apiSpecRevision); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setExternalChannelUri($externalChannelUri); - $expectedResponse->setIntendedAudience($intendedAudience); - $expectedResponse->setAccessGuidance($accessGuidance); - $transport->addResponse($expectedResponse); - // Mock request - $apiDeployment = new ApiDeployment(); - $request = (new UpdateApiDeploymentRequest()) - ->setApiDeployment($apiDeployment); - $response = $gapicClient->updateApiDeployment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/UpdateApiDeployment', $actualFuncCall); - $actualValue = $actualRequestObject->getApiDeployment(); - $this->assertProtobufEquals($apiDeployment, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiDeploymentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $apiDeployment = new ApiDeployment(); - $request = (new UpdateApiDeploymentRequest()) - ->setApiDeployment($apiDeployment); - try { - $gapicClient->updateApiDeployment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $filename = 'filename-734768633'; - $description = 'description-1724546052'; - $revisionId = 'revisionId513861631'; - $mimeType = 'mimeType-196041627'; - $sizeBytes = 1796325715; - $hash = 'hash3195150'; - $sourceUri = 'sourceUri-1111107768'; - $contents = '26'; - $expectedResponse = new ApiSpec(); - $expectedResponse->setName($name); - $expectedResponse->setFilename($filename); - $expectedResponse->setDescription($description); - $expectedResponse->setRevisionId($revisionId); - $expectedResponse->setMimeType($mimeType); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setHash($hash); - $expectedResponse->setSourceUri($sourceUri); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $apiSpec = new ApiSpec(); - $request = (new UpdateApiSpecRequest()) - ->setApiSpec($apiSpec); - $response = $gapicClient->updateApiSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/UpdateApiSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getApiSpec(); - $this->assertProtobufEquals($apiSpec, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $apiSpec = new ApiSpec(); - $request = (new UpdateApiSpecRequest()) - ->setApiSpec($apiSpec); - try { - $gapicClient->updateApiSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $state = 'state109757585'; - $expectedResponse = new ApiVersion(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setState($state); - $transport->addResponse($expectedResponse); - // Mock request - $apiVersion = new ApiVersion(); - $request = (new UpdateApiVersionRequest()) - ->setApiVersion($apiVersion); - $response = $gapicClient->updateApiVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/UpdateApiVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getApiVersion(); - $this->assertProtobufEquals($apiVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApiVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $apiVersion = new ApiVersion(); - $request = (new UpdateApiVersionRequest()) - ->setApiVersion($apiVersion); - try { - $gapicClient->updateApiVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApiAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $availability = 'availability1997542747'; - $recommendedVersion = 'recommendedVersion265230068'; - $recommendedDeployment = 'recommendedDeployment1339243305'; - $expectedResponse = new Api(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setAvailability($availability); - $expectedResponse->setRecommendedVersion($recommendedVersion); - $expectedResponse->setRecommendedDeployment($recommendedDeployment); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $api = new Api(); - $apiId = 'apiId-1411282592'; - $request = (new CreateApiRequest()) - ->setParent($formattedParent) - ->setApi($api) - ->setApiId($apiId); - $response = $gapicClient->createApiAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apigeeregistry.v1.Registry/CreateApi', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getApi(); - $this->assertProtobufEquals($api, $actualValue); - $actualValue = $actualRequestObject->getApiId(); - $this->assertProtobufEquals($apiId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/AppYaml.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/AppYaml.php deleted file mode 100644 index e4be7d258bfd..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/AppYaml.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Appengine.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Appengine.php deleted file mode 100644 index 61b723808af2..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Appengine.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Application.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Application.php deleted file mode 100644 index c663dbb8d7a8..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Application.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/AuditData.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/AuditData.php deleted file mode 100644 index 3c73354691f0..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/AuditData.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Certificate.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Certificate.php deleted file mode 100644 index 689af2952c8e..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Certificate.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Deploy.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Deploy.php deleted file mode 100644 index 29aa946902dc..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Deploy.php +++ /dev/null @@ -1,52 +0,0 @@ -internalAddGeneratedFile( - ' - - google/appengine/v1/deploy.protogoogle.appengine.v1" - -Deployment9 -files ( 2*.google.appengine.v1.Deployment.FilesEntry5 - container ( 2".google.appengine.v1.ContainerInfo) -zip ( 2.google.appengine.v1.ZipInfoC -cloud_build_options ( 2&.google.appengine.v1.CloudBuildOptionsK - -FilesEntry -key ( , -value ( 2.google.appengine.v1.FileInfo:8"C -FileInfo - -source_url (  -sha1_sum (  - mime_type ( " - ContainerInfo -image ( "b -CloudBuildOptions - app_yaml_path ( 6 -cloud_build_timeout ( 2.google.protobuf.Duration"2 -ZipInfo - -source_url (  - files_count (B -com.google.appengine.v1B DeployProtoPZ;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepbGoogle.Cloud.AppEngine.V1Google\\Cloud\\AppEngine\\V1Google::Cloud::AppEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/DeployedFiles.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/DeployedFiles.php deleted file mode 100644 index 7a47f2e23524..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/DeployedFiles.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - ' - -(google/appengine/v1/deployed_files.protogoogle.appengine.v1B -com.google.appengine.v1BDeployedFilesProtoPZ;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepbGoogle.Cloud.AppEngine.V1Google\\Cloud\\AppEngine\\V1Google::Cloud::AppEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Domain.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Domain.php deleted file mode 100644 index fd3367f14b29..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Domain.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - ' - - google/appengine/v1/domain.protogoogle.appengine.v1", -AuthorizedDomain -name (  - -id ( B -com.google.appengine.v1B DomainProtoPZ;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepbGoogle.Cloud.AppEngine.V1Google\\Cloud\\AppEngine\\V1Google::Cloud::AppEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/DomainMapping.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/DomainMapping.php deleted file mode 100644 index 83d5e9670cb9..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/DomainMapping.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Firewall.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Firewall.php deleted file mode 100644 index 346682553676..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Firewall.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Instance.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Instance.php deleted file mode 100644 index 2b9dfd386d87..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Instance.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Location.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Location.php deleted file mode 100644 index dd633da8d313..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Location.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' - -"google/appengine/v1/location.protogoogle.appengine.v1" -LocationMetadata& -standard_environment_available (& -flexible_environment_available (! -search_api_available (BAB -com.google.appengine.v1B LocationProtoPZ;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepbGoogle.Cloud.AppEngine.V1Google\\Cloud\\AppEngine\\V1Google::Cloud::AppEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/NetworkSettings.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/NetworkSettings.php deleted file mode 100644 index 018556f95380..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/NetworkSettings.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Operation.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Operation.php deleted file mode 100644 index f32308aa9c2b..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Operation.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Service.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Service.php deleted file mode 100644 index a2a3a2559213..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Service.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Version.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Version.php deleted file mode 100644 index 35537b2cda8a..000000000000 Binary files a/owl-bot-staging/AppEngineAdmin/v1/proto/src/GPBMetadata/Google/Appengine/V1/Version.php and /dev/null differ diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ApiConfigHandler.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ApiConfigHandler.php deleted file mode 100644 index 7aa8bf7c8421..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ApiConfigHandler.php +++ /dev/null @@ -1,212 +0,0 @@ -google.appengine.v1.ApiConfigHandler - */ -class ApiConfigHandler extends \Google\Protobuf\Internal\Message -{ - /** - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * - * Generated from protobuf field .google.appengine.v1.AuthFailAction auth_fail_action = 1; - */ - protected $auth_fail_action = 0; - /** - * Level of login required to access this resource. Defaults to - * `optional`. - * - * Generated from protobuf field .google.appengine.v1.LoginRequirement login = 2; - */ - protected $login = 0; - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script = 3; - */ - protected $script = ''; - /** - * Security (HTTPS) enforcement for this URL. - * - * Generated from protobuf field .google.appengine.v1.SecurityLevel security_level = 4; - */ - protected $security_level = 0; - /** - * URL to serve the endpoint at. - * - * Generated from protobuf field string url = 5; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $auth_fail_action - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * @type int $login - * Level of login required to access this resource. Defaults to - * `optional`. - * @type string $script - * Path to the script from the application root directory. - * @type int $security_level - * Security (HTTPS) enforcement for this URL. - * @type string $url - * URL to serve the endpoint at. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * - * Generated from protobuf field .google.appengine.v1.AuthFailAction auth_fail_action = 1; - * @return int - */ - public function getAuthFailAction() - { - return $this->auth_fail_action; - } - - /** - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * - * Generated from protobuf field .google.appengine.v1.AuthFailAction auth_fail_action = 1; - * @param int $var - * @return $this - */ - public function setAuthFailAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\AuthFailAction::class); - $this->auth_fail_action = $var; - - return $this; - } - - /** - * Level of login required to access this resource. Defaults to - * `optional`. - * - * Generated from protobuf field .google.appengine.v1.LoginRequirement login = 2; - * @return int - */ - public function getLogin() - { - return $this->login; - } - - /** - * Level of login required to access this resource. Defaults to - * `optional`. - * - * Generated from protobuf field .google.appengine.v1.LoginRequirement login = 2; - * @param int $var - * @return $this - */ - public function setLogin($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\LoginRequirement::class); - $this->login = $var; - - return $this; - } - - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script = 3; - * @return string - */ - public function getScript() - { - return $this->script; - } - - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script = 3; - * @param string $var - * @return $this - */ - public function setScript($var) - { - GPBUtil::checkString($var, True); - $this->script = $var; - - return $this; - } - - /** - * Security (HTTPS) enforcement for this URL. - * - * Generated from protobuf field .google.appengine.v1.SecurityLevel security_level = 4; - * @return int - */ - public function getSecurityLevel() - { - return $this->security_level; - } - - /** - * Security (HTTPS) enforcement for this URL. - * - * Generated from protobuf field .google.appengine.v1.SecurityLevel security_level = 4; - * @param int $var - * @return $this - */ - public function setSecurityLevel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\SecurityLevel::class); - $this->security_level = $var; - - return $this; - } - - /** - * URL to serve the endpoint at. - * - * Generated from protobuf field string url = 5; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * URL to serve the endpoint at. - * - * Generated from protobuf field string url = 5; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ApiEndpointHandler.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ApiEndpointHandler.php deleted file mode 100644 index c76aa8c9668e..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ApiEndpointHandler.php +++ /dev/null @@ -1,67 +0,0 @@ -google.appengine.v1.ApiEndpointHandler - */ -class ApiEndpointHandler extends \Google\Protobuf\Internal\Message -{ - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script_path = 1; - */ - protected $script_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $script_path - * Path to the script from the application root directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script_path = 1; - * @return string - */ - public function getScriptPath() - { - return $this->script_path; - } - - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script_path = 1; - * @param string $var - * @return $this - */ - public function setScriptPath($var) - { - GPBUtil::checkString($var, True); - $this->script_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application.php deleted file mode 100644 index 557354097147..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application.php +++ /dev/null @@ -1,663 +0,0 @@ -google.appengine.v1.Application - */ -class Application extends \Google\Protobuf\Internal\Message -{ - /** - * Full path to the Application resource in the API. - * Example: `apps/myapp`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Identifier of the Application resource. This identifier is equivalent - * to the project ID of the Google Cloud Platform project where you want to - * deploy your application. - * Example: `myapp`. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * HTTP path dispatch rules for requests to the application that do not - * explicitly target a service or version. Rules are order-dependent. - * Up to 20 dispatch rules can be supported. - * - * Generated from protobuf field repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; - */ - private $dispatch_rules; - /** - * Google Apps authentication domain that controls which users can access - * this application. - * Defaults to open access for any Google Account. - * - * Generated from protobuf field string auth_domain = 6; - */ - protected $auth_domain = ''; - /** - * Location from which this application runs. Application instances - * run out of the data centers in the specified location, which is also where - * all of the application's end user content is stored. - * Defaults to `us-central`. - * View the list of - * [supported locations](https://cloud.google.com/appengine/docs/locations). - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - /** - * Google Cloud Storage bucket that can be used for storing files - * associated with this application. This bucket is associated with the - * application and can be used by the gcloud deployment commands. - * @OutputOnly - * - * Generated from protobuf field string code_bucket = 8; - */ - protected $code_bucket = ''; - /** - * Cookie expiration policy for this application. - * - * Generated from protobuf field .google.protobuf.Duration default_cookie_expiration = 9; - */ - protected $default_cookie_expiration = null; - /** - * Serving status of this application. - * - * Generated from protobuf field .google.appengine.v1.Application.ServingStatus serving_status = 10; - */ - protected $serving_status = 0; - /** - * Hostname used to reach this application, as resolved by App Engine. - * @OutputOnly - * - * Generated from protobuf field string default_hostname = 11; - */ - protected $default_hostname = ''; - /** - * Google Cloud Storage bucket that can be used by this application to store - * content. - * @OutputOnly - * - * Generated from protobuf field string default_bucket = 12; - */ - protected $default_bucket = ''; - /** - * The service account associated with the application. - * This is the app-level default identity. If no identity provided during - * create version, Admin API will fallback to this one. - * - * Generated from protobuf field string service_account = 13; - */ - protected $service_account = ''; - /** - * Generated from protobuf field .google.appengine.v1.Application.IdentityAwareProxy iap = 14; - */ - protected $iap = null; - /** - * The Google Container Registry domain used for storing managed build docker - * images for this application. - * - * Generated from protobuf field string gcr_domain = 16; - */ - protected $gcr_domain = ''; - /** - * The type of the Cloud Firestore or Cloud Datastore database associated with - * this application. - * - * Generated from protobuf field .google.appengine.v1.Application.DatabaseType database_type = 17; - */ - protected $database_type = 0; - /** - * The feature specific settings to be used in the application. - * - * Generated from protobuf field .google.appengine.v1.Application.FeatureSettings feature_settings = 18; - */ - protected $feature_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Full path to the Application resource in the API. - * Example: `apps/myapp`. - * @OutputOnly - * @type string $id - * Identifier of the Application resource. This identifier is equivalent - * to the project ID of the Google Cloud Platform project where you want to - * deploy your application. - * Example: `myapp`. - * @type array<\Google\Cloud\AppEngine\V1\UrlDispatchRule>|\Google\Protobuf\Internal\RepeatedField $dispatch_rules - * HTTP path dispatch rules for requests to the application that do not - * explicitly target a service or version. Rules are order-dependent. - * Up to 20 dispatch rules can be supported. - * @type string $auth_domain - * Google Apps authentication domain that controls which users can access - * this application. - * Defaults to open access for any Google Account. - * @type string $location_id - * Location from which this application runs. Application instances - * run out of the data centers in the specified location, which is also where - * all of the application's end user content is stored. - * Defaults to `us-central`. - * View the list of - * [supported locations](https://cloud.google.com/appengine/docs/locations). - * @type string $code_bucket - * Google Cloud Storage bucket that can be used for storing files - * associated with this application. This bucket is associated with the - * application and can be used by the gcloud deployment commands. - * @OutputOnly - * @type \Google\Protobuf\Duration $default_cookie_expiration - * Cookie expiration policy for this application. - * @type int $serving_status - * Serving status of this application. - * @type string $default_hostname - * Hostname used to reach this application, as resolved by App Engine. - * @OutputOnly - * @type string $default_bucket - * Google Cloud Storage bucket that can be used by this application to store - * content. - * @OutputOnly - * @type string $service_account - * The service account associated with the application. - * This is the app-level default identity. If no identity provided during - * create version, Admin API will fallback to this one. - * @type \Google\Cloud\AppEngine\V1\Application\IdentityAwareProxy $iap - * @type string $gcr_domain - * The Google Container Registry domain used for storing managed build docker - * images for this application. - * @type int $database_type - * The type of the Cloud Firestore or Cloud Datastore database associated with - * this application. - * @type \Google\Cloud\AppEngine\V1\Application\FeatureSettings $feature_settings - * The feature specific settings to be used in the application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Application::initOnce(); - parent::__construct($data); - } - - /** - * Full path to the Application resource in the API. - * Example: `apps/myapp`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Full path to the Application resource in the API. - * Example: `apps/myapp`. - * @OutputOnly - * - * 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; - } - - /** - * Identifier of the Application resource. This identifier is equivalent - * to the project ID of the Google Cloud Platform project where you want to - * deploy your application. - * Example: `myapp`. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Identifier of the Application resource. This identifier is equivalent - * to the project ID of the Google Cloud Platform project where you want to - * deploy your application. - * Example: `myapp`. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * HTTP path dispatch rules for requests to the application that do not - * explicitly target a service or version. Rules are order-dependent. - * Up to 20 dispatch rules can be supported. - * - * Generated from protobuf field repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDispatchRules() - { - return $this->dispatch_rules; - } - - /** - * HTTP path dispatch rules for requests to the application that do not - * explicitly target a service or version. Rules are order-dependent. - * Up to 20 dispatch rules can be supported. - * - * Generated from protobuf field repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; - * @param array<\Google\Cloud\AppEngine\V1\UrlDispatchRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDispatchRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\UrlDispatchRule::class); - $this->dispatch_rules = $arr; - - return $this; - } - - /** - * Google Apps authentication domain that controls which users can access - * this application. - * Defaults to open access for any Google Account. - * - * Generated from protobuf field string auth_domain = 6; - * @return string - */ - public function getAuthDomain() - { - return $this->auth_domain; - } - - /** - * Google Apps authentication domain that controls which users can access - * this application. - * Defaults to open access for any Google Account. - * - * Generated from protobuf field string auth_domain = 6; - * @param string $var - * @return $this - */ - public function setAuthDomain($var) - { - GPBUtil::checkString($var, True); - $this->auth_domain = $var; - - return $this; - } - - /** - * Location from which this application runs. Application instances - * run out of the data centers in the specified location, which is also where - * all of the application's end user content is stored. - * Defaults to `us-central`. - * View the list of - * [supported locations](https://cloud.google.com/appengine/docs/locations). - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Location from which this application runs. Application instances - * run out of the data centers in the specified location, which is also where - * all of the application's end user content is stored. - * Defaults to `us-central`. - * View the list of - * [supported locations](https://cloud.google.com/appengine/docs/locations). - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * Google Cloud Storage bucket that can be used for storing files - * associated with this application. This bucket is associated with the - * application and can be used by the gcloud deployment commands. - * @OutputOnly - * - * Generated from protobuf field string code_bucket = 8; - * @return string - */ - public function getCodeBucket() - { - return $this->code_bucket; - } - - /** - * Google Cloud Storage bucket that can be used for storing files - * associated with this application. This bucket is associated with the - * application and can be used by the gcloud deployment commands. - * @OutputOnly - * - * Generated from protobuf field string code_bucket = 8; - * @param string $var - * @return $this - */ - public function setCodeBucket($var) - { - GPBUtil::checkString($var, True); - $this->code_bucket = $var; - - return $this; - } - - /** - * Cookie expiration policy for this application. - * - * Generated from protobuf field .google.protobuf.Duration default_cookie_expiration = 9; - * @return \Google\Protobuf\Duration|null - */ - public function getDefaultCookieExpiration() - { - return $this->default_cookie_expiration; - } - - public function hasDefaultCookieExpiration() - { - return isset($this->default_cookie_expiration); - } - - public function clearDefaultCookieExpiration() - { - unset($this->default_cookie_expiration); - } - - /** - * Cookie expiration policy for this application. - * - * Generated from protobuf field .google.protobuf.Duration default_cookie_expiration = 9; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDefaultCookieExpiration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->default_cookie_expiration = $var; - - return $this; - } - - /** - * Serving status of this application. - * - * Generated from protobuf field .google.appengine.v1.Application.ServingStatus serving_status = 10; - * @return int - */ - public function getServingStatus() - { - return $this->serving_status; - } - - /** - * Serving status of this application. - * - * Generated from protobuf field .google.appengine.v1.Application.ServingStatus serving_status = 10; - * @param int $var - * @return $this - */ - public function setServingStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\Application\ServingStatus::class); - $this->serving_status = $var; - - return $this; - } - - /** - * Hostname used to reach this application, as resolved by App Engine. - * @OutputOnly - * - * Generated from protobuf field string default_hostname = 11; - * @return string - */ - public function getDefaultHostname() - { - return $this->default_hostname; - } - - /** - * Hostname used to reach this application, as resolved by App Engine. - * @OutputOnly - * - * Generated from protobuf field string default_hostname = 11; - * @param string $var - * @return $this - */ - public function setDefaultHostname($var) - { - GPBUtil::checkString($var, True); - $this->default_hostname = $var; - - return $this; - } - - /** - * Google Cloud Storage bucket that can be used by this application to store - * content. - * @OutputOnly - * - * Generated from protobuf field string default_bucket = 12; - * @return string - */ - public function getDefaultBucket() - { - return $this->default_bucket; - } - - /** - * Google Cloud Storage bucket that can be used by this application to store - * content. - * @OutputOnly - * - * Generated from protobuf field string default_bucket = 12; - * @param string $var - * @return $this - */ - public function setDefaultBucket($var) - { - GPBUtil::checkString($var, True); - $this->default_bucket = $var; - - return $this; - } - - /** - * The service account associated with the application. - * This is the app-level default identity. If no identity provided during - * create version, Admin API will fallback to this one. - * - * Generated from protobuf field string service_account = 13; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The service account associated with the application. - * This is the app-level default identity. If no identity provided during - * create version, Admin API will fallback to this one. - * - * Generated from protobuf field string service_account = 13; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.appengine.v1.Application.IdentityAwareProxy iap = 14; - * @return \Google\Cloud\AppEngine\V1\Application\IdentityAwareProxy|null - */ - public function getIap() - { - return $this->iap; - } - - public function hasIap() - { - return isset($this->iap); - } - - public function clearIap() - { - unset($this->iap); - } - - /** - * Generated from protobuf field .google.appengine.v1.Application.IdentityAwareProxy iap = 14; - * @param \Google\Cloud\AppEngine\V1\Application\IdentityAwareProxy $var - * @return $this - */ - public function setIap($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Application\IdentityAwareProxy::class); - $this->iap = $var; - - return $this; - } - - /** - * The Google Container Registry domain used for storing managed build docker - * images for this application. - * - * Generated from protobuf field string gcr_domain = 16; - * @return string - */ - public function getGcrDomain() - { - return $this->gcr_domain; - } - - /** - * The Google Container Registry domain used for storing managed build docker - * images for this application. - * - * Generated from protobuf field string gcr_domain = 16; - * @param string $var - * @return $this - */ - public function setGcrDomain($var) - { - GPBUtil::checkString($var, True); - $this->gcr_domain = $var; - - return $this; - } - - /** - * The type of the Cloud Firestore or Cloud Datastore database associated with - * this application. - * - * Generated from protobuf field .google.appengine.v1.Application.DatabaseType database_type = 17; - * @return int - */ - public function getDatabaseType() - { - return $this->database_type; - } - - /** - * The type of the Cloud Firestore or Cloud Datastore database associated with - * this application. - * - * Generated from protobuf field .google.appengine.v1.Application.DatabaseType database_type = 17; - * @param int $var - * @return $this - */ - public function setDatabaseType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\Application\DatabaseType::class); - $this->database_type = $var; - - return $this; - } - - /** - * The feature specific settings to be used in the application. - * - * Generated from protobuf field .google.appengine.v1.Application.FeatureSettings feature_settings = 18; - * @return \Google\Cloud\AppEngine\V1\Application\FeatureSettings|null - */ - public function getFeatureSettings() - { - return $this->feature_settings; - } - - public function hasFeatureSettings() - { - return isset($this->feature_settings); - } - - public function clearFeatureSettings() - { - unset($this->feature_settings); - } - - /** - * The feature specific settings to be used in the application. - * - * Generated from protobuf field .google.appengine.v1.Application.FeatureSettings feature_settings = 18; - * @param \Google\Cloud\AppEngine\V1\Application\FeatureSettings $var - * @return $this - */ - public function setFeatureSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Application\FeatureSettings::class); - $this->feature_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/DatabaseType.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/DatabaseType.php deleted file mode 100644 index d73d3a98eb5a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/DatabaseType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.appengine.v1.Application.DatabaseType - */ -class DatabaseType -{ - /** - * Database type is unspecified. - * - * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_TYPE_UNSPECIFIED = 0; - /** - * Cloud Datastore - * - * Generated from protobuf enum CLOUD_DATASTORE = 1; - */ - const CLOUD_DATASTORE = 1; - /** - * Cloud Firestore Native - * - * Generated from protobuf enum CLOUD_FIRESTORE = 2; - */ - const CLOUD_FIRESTORE = 2; - /** - * Cloud Firestore in Datastore Mode - * - * Generated from protobuf enum CLOUD_DATASTORE_COMPATIBILITY = 3; - */ - const CLOUD_DATASTORE_COMPATIBILITY = 3; - - private static $valueToName = [ - self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', - self::CLOUD_DATASTORE => 'CLOUD_DATASTORE', - self::CLOUD_FIRESTORE => 'CLOUD_FIRESTORE', - self::CLOUD_DATASTORE_COMPATIBILITY => 'CLOUD_DATASTORE_COMPATIBILITY', - ]; - - 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(DatabaseType::class, \Google\Cloud\AppEngine\V1\Application_DatabaseType::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/FeatureSettings.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/FeatureSettings.php deleted file mode 100644 index a613b47af97d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/FeatureSettings.php +++ /dev/null @@ -1,129 +0,0 @@ -google.appengine.v1.Application.FeatureSettings - */ -class FeatureSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Boolean value indicating if split health checks should be used instead - * of the legacy health checks. At an app.yaml level, this means defaulting - * to 'readiness_check' and 'liveness_check' values instead of - * 'health_check' ones. Once the legacy 'health_check' behavior is - * deprecated, and this value is always true, this setting can - * be removed. - * - * Generated from protobuf field bool split_health_checks = 1; - */ - protected $split_health_checks = false; - /** - * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) - * base image for VMs, rather than a base Debian image. - * - * Generated from protobuf field bool use_container_optimized_os = 2; - */ - protected $use_container_optimized_os = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $split_health_checks - * Boolean value indicating if split health checks should be used instead - * of the legacy health checks. At an app.yaml level, this means defaulting - * to 'readiness_check' and 'liveness_check' values instead of - * 'health_check' ones. Once the legacy 'health_check' behavior is - * deprecated, and this value is always true, this setting can - * be removed. - * @type bool $use_container_optimized_os - * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) - * base image for VMs, rather than a base Debian image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Application::initOnce(); - parent::__construct($data); - } - - /** - * Boolean value indicating if split health checks should be used instead - * of the legacy health checks. At an app.yaml level, this means defaulting - * to 'readiness_check' and 'liveness_check' values instead of - * 'health_check' ones. Once the legacy 'health_check' behavior is - * deprecated, and this value is always true, this setting can - * be removed. - * - * Generated from protobuf field bool split_health_checks = 1; - * @return bool - */ - public function getSplitHealthChecks() - { - return $this->split_health_checks; - } - - /** - * Boolean value indicating if split health checks should be used instead - * of the legacy health checks. At an app.yaml level, this means defaulting - * to 'readiness_check' and 'liveness_check' values instead of - * 'health_check' ones. Once the legacy 'health_check' behavior is - * deprecated, and this value is always true, this setting can - * be removed. - * - * Generated from protobuf field bool split_health_checks = 1; - * @param bool $var - * @return $this - */ - public function setSplitHealthChecks($var) - { - GPBUtil::checkBool($var); - $this->split_health_checks = $var; - - return $this; - } - - /** - * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) - * base image for VMs, rather than a base Debian image. - * - * Generated from protobuf field bool use_container_optimized_os = 2; - * @return bool - */ - public function getUseContainerOptimizedOs() - { - return $this->use_container_optimized_os; - } - - /** - * If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) - * base image for VMs, rather than a base Debian image. - * - * Generated from protobuf field bool use_container_optimized_os = 2; - * @param bool $var - * @return $this - */ - public function setUseContainerOptimizedOs($var) - { - GPBUtil::checkBool($var); - $this->use_container_optimized_os = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FeatureSettings::class, \Google\Cloud\AppEngine\V1\Application_FeatureSettings::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/IdentityAwareProxy.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/IdentityAwareProxy.php deleted file mode 100644 index 0db1f56c7dbd..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/IdentityAwareProxy.php +++ /dev/null @@ -1,204 +0,0 @@ -google.appengine.v1.Application.IdentityAwareProxy - */ -class IdentityAwareProxy extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the serving infrastructure will authenticate and - * authorize all incoming requests. - * If true, the `oauth2_client_id` and `oauth2_client_secret` - * fields must be non-empty. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * OAuth2 client ID to use for the authentication flow. - * - * Generated from protobuf field string oauth2_client_id = 2; - */ - protected $oauth2_client_id = ''; - /** - * OAuth2 client secret to use for the authentication flow. - * For security reasons, this value cannot be retrieved via the API. - * Instead, the SHA-256 hash of the value is returned in the - * `oauth2_client_secret_sha256` field. - * @InputOnly - * - * Generated from protobuf field string oauth2_client_secret = 3; - */ - protected $oauth2_client_secret = ''; - /** - * Hex-encoded SHA-256 hash of the client secret. - * @OutputOnly - * - * Generated from protobuf field string oauth2_client_secret_sha256 = 4; - */ - protected $oauth2_client_secret_sha256 = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the serving infrastructure will authenticate and - * authorize all incoming requests. - * If true, the `oauth2_client_id` and `oauth2_client_secret` - * fields must be non-empty. - * @type string $oauth2_client_id - * OAuth2 client ID to use for the authentication flow. - * @type string $oauth2_client_secret - * OAuth2 client secret to use for the authentication flow. - * For security reasons, this value cannot be retrieved via the API. - * Instead, the SHA-256 hash of the value is returned in the - * `oauth2_client_secret_sha256` field. - * @InputOnly - * @type string $oauth2_client_secret_sha256 - * Hex-encoded SHA-256 hash of the client secret. - * @OutputOnly - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Application::initOnce(); - parent::__construct($data); - } - - /** - * Whether the serving infrastructure will authenticate and - * authorize all incoming requests. - * If true, the `oauth2_client_id` and `oauth2_client_secret` - * fields must be non-empty. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the serving infrastructure will authenticate and - * authorize all incoming requests. - * If true, the `oauth2_client_id` and `oauth2_client_secret` - * fields must be non-empty. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * OAuth2 client ID to use for the authentication flow. - * - * Generated from protobuf field string oauth2_client_id = 2; - * @return string - */ - public function getOauth2ClientId() - { - return $this->oauth2_client_id; - } - - /** - * OAuth2 client ID to use for the authentication flow. - * - * Generated from protobuf field string oauth2_client_id = 2; - * @param string $var - * @return $this - */ - public function setOauth2ClientId($var) - { - GPBUtil::checkString($var, True); - $this->oauth2_client_id = $var; - - return $this; - } - - /** - * OAuth2 client secret to use for the authentication flow. - * For security reasons, this value cannot be retrieved via the API. - * Instead, the SHA-256 hash of the value is returned in the - * `oauth2_client_secret_sha256` field. - * @InputOnly - * - * Generated from protobuf field string oauth2_client_secret = 3; - * @return string - */ - public function getOauth2ClientSecret() - { - return $this->oauth2_client_secret; - } - - /** - * OAuth2 client secret to use for the authentication flow. - * For security reasons, this value cannot be retrieved via the API. - * Instead, the SHA-256 hash of the value is returned in the - * `oauth2_client_secret_sha256` field. - * @InputOnly - * - * Generated from protobuf field string oauth2_client_secret = 3; - * @param string $var - * @return $this - */ - public function setOauth2ClientSecret($var) - { - GPBUtil::checkString($var, True); - $this->oauth2_client_secret = $var; - - return $this; - } - - /** - * Hex-encoded SHA-256 hash of the client secret. - * @OutputOnly - * - * Generated from protobuf field string oauth2_client_secret_sha256 = 4; - * @return string - */ - public function getOauth2ClientSecretSha256() - { - return $this->oauth2_client_secret_sha256; - } - - /** - * Hex-encoded SHA-256 hash of the client secret. - * @OutputOnly - * - * Generated from protobuf field string oauth2_client_secret_sha256 = 4; - * @param string $var - * @return $this - */ - public function setOauth2ClientSecretSha256($var) - { - GPBUtil::checkString($var, True); - $this->oauth2_client_secret_sha256 = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IdentityAwareProxy::class, \Google\Cloud\AppEngine\V1\Application_IdentityAwareProxy::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/ServingStatus.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/ServingStatus.php deleted file mode 100644 index 913296c27190..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Application/ServingStatus.php +++ /dev/null @@ -1,69 +0,0 @@ -google.appengine.v1.Application.ServingStatus - */ -class ServingStatus -{ - /** - * Serving status is unspecified. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Application is serving. - * - * Generated from protobuf enum SERVING = 1; - */ - const SERVING = 1; - /** - * Application has been disabled by the user. - * - * Generated from protobuf enum USER_DISABLED = 2; - */ - const USER_DISABLED = 2; - /** - * Application has been disabled by the system. - * - * Generated from protobuf enum SYSTEM_DISABLED = 3; - */ - const SYSTEM_DISABLED = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::SERVING => 'SERVING', - self::USER_DISABLED => 'USER_DISABLED', - self::SYSTEM_DISABLED => 'SYSTEM_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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ServingStatus::class, \Google\Cloud\AppEngine\V1\Application_ServingStatus::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuditData.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuditData.php deleted file mode 100644 index a7cd1598b6a3..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuditData.php +++ /dev/null @@ -1,108 +0,0 @@ -google.appengine.v1.AuditData - */ -class AuditData extends \Google\Protobuf\Internal\Message -{ - protected $method; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppEngine\V1\UpdateServiceMethod $update_service - * Detailed information about UpdateService call. - * @type \Google\Cloud\AppEngine\V1\CreateVersionMethod $create_version - * Detailed information about CreateVersion call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AuditData::initOnce(); - parent::__construct($data); - } - - /** - * Detailed information about UpdateService call. - * - * Generated from protobuf field .google.appengine.v1.UpdateServiceMethod update_service = 1; - * @return \Google\Cloud\AppEngine\V1\UpdateServiceMethod|null - */ - public function getUpdateService() - { - return $this->readOneof(1); - } - - public function hasUpdateService() - { - return $this->hasOneof(1); - } - - /** - * Detailed information about UpdateService call. - * - * Generated from protobuf field .google.appengine.v1.UpdateServiceMethod update_service = 1; - * @param \Google\Cloud\AppEngine\V1\UpdateServiceMethod $var - * @return $this - */ - public function setUpdateService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\UpdateServiceMethod::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Detailed information about CreateVersion call. - * - * Generated from protobuf field .google.appengine.v1.CreateVersionMethod create_version = 2; - * @return \Google\Cloud\AppEngine\V1\CreateVersionMethod|null - */ - public function getCreateVersion() - { - return $this->readOneof(2); - } - - public function hasCreateVersion() - { - return $this->hasOneof(2); - } - - /** - * Detailed information about CreateVersion call. - * - * Generated from protobuf field .google.appengine.v1.CreateVersionMethod create_version = 2; - * @param \Google\Cloud\AppEngine\V1\CreateVersionMethod $var - * @return $this - */ - public function setCreateVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\CreateVersionMethod::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getMethod() - { - return $this->whichOneof("method"); - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthFailAction.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthFailAction.php deleted file mode 100644 index 68890d38d8a2..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthFailAction.php +++ /dev/null @@ -1,63 +0,0 @@ -google.appengine.v1.AuthFailAction - */ -class AuthFailAction -{ - /** - * Not specified. `AUTH_FAIL_ACTION_REDIRECT` is assumed. - * - * Generated from protobuf enum AUTH_FAIL_ACTION_UNSPECIFIED = 0; - */ - const AUTH_FAIL_ACTION_UNSPECIFIED = 0; - /** - * Redirects user to "accounts.google.com". The user is redirected back to the - * application URL after signing in or creating an account. - * - * Generated from protobuf enum AUTH_FAIL_ACTION_REDIRECT = 1; - */ - const AUTH_FAIL_ACTION_REDIRECT = 1; - /** - * Rejects request with a `401` HTTP status code and an error - * message. - * - * Generated from protobuf enum AUTH_FAIL_ACTION_UNAUTHORIZED = 2; - */ - const AUTH_FAIL_ACTION_UNAUTHORIZED = 2; - - private static $valueToName = [ - self::AUTH_FAIL_ACTION_UNSPECIFIED => 'AUTH_FAIL_ACTION_UNSPECIFIED', - self::AUTH_FAIL_ACTION_REDIRECT => 'AUTH_FAIL_ACTION_REDIRECT', - self::AUTH_FAIL_ACTION_UNAUTHORIZED => 'AUTH_FAIL_ACTION_UNAUTHORIZED', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedCertificate.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedCertificate.php deleted file mode 100644 index 76ce9b222af2..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedCertificate.php +++ /dev/null @@ -1,479 +0,0 @@ -google.appengine.v1.AuthorizedCertificate - */ -class AuthorizedCertificate extends \Google\Protobuf\Internal\Message -{ - /** - * Full path to the `AuthorizedCertificate` resource in the API. Example: - * `apps/myapp/authorizedCertificates/12345`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Relative name of the certificate. This is a unique value autogenerated - * on `AuthorizedCertificate` resource creation. Example: `12345`. - * @OutputOnly - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * The user-specified display name of the certificate. This is not - * guaranteed to be unique. Example: `My Certificate`. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Topmost applicable domains of this certificate. This certificate - * applies to these domains and their subdomains. Example: `example.com`. - * @OutputOnly - * - * Generated from protobuf field repeated string domain_names = 4; - */ - private $domain_names; - /** - * The time when this certificate expires. To update the renewal time on this - * certificate, upload an SSL certificate with a different expiration time - * using [`AuthorizedCertificates.UpdateAuthorizedCertificate`](). - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 5; - */ - protected $expire_time = null; - /** - * The SSL certificate serving the `AuthorizedCertificate` resource. This - * must be obtained independently from a certificate authority. - * - * Generated from protobuf field .google.appengine.v1.CertificateRawData certificate_raw_data = 6; - */ - protected $certificate_raw_data = null; - /** - * Only applicable if this certificate is managed by App Engine. Managed - * certificates are tied to the lifecycle of a `DomainMapping` and cannot be - * updated or deleted via the `AuthorizedCertificates` API. If this - * certificate is manually administered by the user, this field will be empty. - * @OutputOnly - * - * Generated from protobuf field .google.appengine.v1.ManagedCertificate managed_certificate = 7; - */ - protected $managed_certificate = null; - /** - * The full paths to user visible Domain Mapping resources that have this - * certificate mapped. Example: `apps/myapp/domainMappings/example.com`. - * This may not represent the full list of mapped domain mappings if the user - * does not have `VIEWER` permissions on all of the applications that have - * this certificate mapped. See `domain_mappings_count` for a complete count. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * - * Generated from protobuf field repeated string visible_domain_mappings = 8; - */ - private $visible_domain_mappings; - /** - * Aggregate count of the domain mappings with this certificate mapped. This - * count includes domain mappings on applications for which the user does not - * have `VIEWER` permissions. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * - * Generated from protobuf field int32 domain_mappings_count = 9; - */ - protected $domain_mappings_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Full path to the `AuthorizedCertificate` resource in the API. Example: - * `apps/myapp/authorizedCertificates/12345`. - * @OutputOnly - * @type string $id - * Relative name of the certificate. This is a unique value autogenerated - * on `AuthorizedCertificate` resource creation. Example: `12345`. - * @OutputOnly - * @type string $display_name - * The user-specified display name of the certificate. This is not - * guaranteed to be unique. Example: `My Certificate`. - * @type array|\Google\Protobuf\Internal\RepeatedField $domain_names - * Topmost applicable domains of this certificate. This certificate - * applies to these domains and their subdomains. Example: `example.com`. - * @OutputOnly - * @type \Google\Protobuf\Timestamp $expire_time - * The time when this certificate expires. To update the renewal time on this - * certificate, upload an SSL certificate with a different expiration time - * using [`AuthorizedCertificates.UpdateAuthorizedCertificate`](). - * @OutputOnly - * @type \Google\Cloud\AppEngine\V1\CertificateRawData $certificate_raw_data - * The SSL certificate serving the `AuthorizedCertificate` resource. This - * must be obtained independently from a certificate authority. - * @type \Google\Cloud\AppEngine\V1\ManagedCertificate $managed_certificate - * Only applicable if this certificate is managed by App Engine. Managed - * certificates are tied to the lifecycle of a `DomainMapping` and cannot be - * updated or deleted via the `AuthorizedCertificates` API. If this - * certificate is manually administered by the user, this field will be empty. - * @OutputOnly - * @type array|\Google\Protobuf\Internal\RepeatedField $visible_domain_mappings - * The full paths to user visible Domain Mapping resources that have this - * certificate mapped. Example: `apps/myapp/domainMappings/example.com`. - * This may not represent the full list of mapped domain mappings if the user - * does not have `VIEWER` permissions on all of the applications that have - * this certificate mapped. See `domain_mappings_count` for a complete count. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * @type int $domain_mappings_count - * Aggregate count of the domain mappings with this certificate mapped. This - * count includes domain mappings on applications for which the user does not - * have `VIEWER` permissions. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Certificate::initOnce(); - parent::__construct($data); - } - - /** - * Full path to the `AuthorizedCertificate` resource in the API. Example: - * `apps/myapp/authorizedCertificates/12345`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Full path to the `AuthorizedCertificate` resource in the API. Example: - * `apps/myapp/authorizedCertificates/12345`. - * @OutputOnly - * - * 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; - } - - /** - * Relative name of the certificate. This is a unique value autogenerated - * on `AuthorizedCertificate` resource creation. Example: `12345`. - * @OutputOnly - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Relative name of the certificate. This is a unique value autogenerated - * on `AuthorizedCertificate` resource creation. Example: `12345`. - * @OutputOnly - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The user-specified display name of the certificate. This is not - * guaranteed to be unique. Example: `My Certificate`. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The user-specified display name of the certificate. This is not - * guaranteed to be unique. Example: `My Certificate`. - * - * 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; - } - - /** - * Topmost applicable domains of this certificate. This certificate - * applies to these domains and their subdomains. Example: `example.com`. - * @OutputOnly - * - * Generated from protobuf field repeated string domain_names = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDomainNames() - { - return $this->domain_names; - } - - /** - * Topmost applicable domains of this certificate. This certificate - * applies to these domains and their subdomains. Example: `example.com`. - * @OutputOnly - * - * Generated from protobuf field repeated string domain_names = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDomainNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->domain_names = $arr; - - return $this; - } - - /** - * The time when this certificate expires. To update the renewal time on this - * certificate, upload an SSL certificate with a different expiration time - * using [`AuthorizedCertificates.UpdateAuthorizedCertificate`](). - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 5; - * @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); - } - - /** - * The time when this certificate expires. To update the renewal time on this - * certificate, upload an SSL certificate with a different expiration time - * using [`AuthorizedCertificates.UpdateAuthorizedCertificate`](). - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * The SSL certificate serving the `AuthorizedCertificate` resource. This - * must be obtained independently from a certificate authority. - * - * Generated from protobuf field .google.appengine.v1.CertificateRawData certificate_raw_data = 6; - * @return \Google\Cloud\AppEngine\V1\CertificateRawData|null - */ - public function getCertificateRawData() - { - return $this->certificate_raw_data; - } - - public function hasCertificateRawData() - { - return isset($this->certificate_raw_data); - } - - public function clearCertificateRawData() - { - unset($this->certificate_raw_data); - } - - /** - * The SSL certificate serving the `AuthorizedCertificate` resource. This - * must be obtained independently from a certificate authority. - * - * Generated from protobuf field .google.appengine.v1.CertificateRawData certificate_raw_data = 6; - * @param \Google\Cloud\AppEngine\V1\CertificateRawData $var - * @return $this - */ - public function setCertificateRawData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\CertificateRawData::class); - $this->certificate_raw_data = $var; - - return $this; - } - - /** - * Only applicable if this certificate is managed by App Engine. Managed - * certificates are tied to the lifecycle of a `DomainMapping` and cannot be - * updated or deleted via the `AuthorizedCertificates` API. If this - * certificate is manually administered by the user, this field will be empty. - * @OutputOnly - * - * Generated from protobuf field .google.appengine.v1.ManagedCertificate managed_certificate = 7; - * @return \Google\Cloud\AppEngine\V1\ManagedCertificate|null - */ - public function getManagedCertificate() - { - return $this->managed_certificate; - } - - public function hasManagedCertificate() - { - return isset($this->managed_certificate); - } - - public function clearManagedCertificate() - { - unset($this->managed_certificate); - } - - /** - * Only applicable if this certificate is managed by App Engine. Managed - * certificates are tied to the lifecycle of a `DomainMapping` and cannot be - * updated or deleted via the `AuthorizedCertificates` API. If this - * certificate is manually administered by the user, this field will be empty. - * @OutputOnly - * - * Generated from protobuf field .google.appengine.v1.ManagedCertificate managed_certificate = 7; - * @param \Google\Cloud\AppEngine\V1\ManagedCertificate $var - * @return $this - */ - public function setManagedCertificate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ManagedCertificate::class); - $this->managed_certificate = $var; - - return $this; - } - - /** - * The full paths to user visible Domain Mapping resources that have this - * certificate mapped. Example: `apps/myapp/domainMappings/example.com`. - * This may not represent the full list of mapped domain mappings if the user - * does not have `VIEWER` permissions on all of the applications that have - * this certificate mapped. See `domain_mappings_count` for a complete count. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * - * Generated from protobuf field repeated string visible_domain_mappings = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVisibleDomainMappings() - { - return $this->visible_domain_mappings; - } - - /** - * The full paths to user visible Domain Mapping resources that have this - * certificate mapped. Example: `apps/myapp/domainMappings/example.com`. - * This may not represent the full list of mapped domain mappings if the user - * does not have `VIEWER` permissions on all of the applications that have - * this certificate mapped. See `domain_mappings_count` for a complete count. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * - * Generated from protobuf field repeated string visible_domain_mappings = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVisibleDomainMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->visible_domain_mappings = $arr; - - return $this; - } - - /** - * Aggregate count of the domain mappings with this certificate mapped. This - * count includes domain mappings on applications for which the user does not - * have `VIEWER` permissions. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * - * Generated from protobuf field int32 domain_mappings_count = 9; - * @return int - */ - public function getDomainMappingsCount() - { - return $this->domain_mappings_count; - } - - /** - * Aggregate count of the domain mappings with this certificate mapped. This - * count includes domain mappings on applications for which the user does not - * have `VIEWER` permissions. - * Only returned by `GET` or `LIST` requests when specifically requested by - * the `view=FULL_CERTIFICATE` option. - * @OutputOnly - * - * Generated from protobuf field int32 domain_mappings_count = 9; - * @param int $var - * @return $this - */ - public function setDomainMappingsCount($var) - { - GPBUtil::checkInt32($var); - $this->domain_mappings_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedCertificateView.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedCertificateView.php deleted file mode 100644 index ec642c96af04..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedCertificateView.php +++ /dev/null @@ -1,57 +0,0 @@ -google.appengine.v1.AuthorizedCertificateView - */ -class AuthorizedCertificateView -{ - /** - * Basic certificate information, including applicable domains and expiration - * date. - * - * Generated from protobuf enum BASIC_CERTIFICATE = 0; - */ - const BASIC_CERTIFICATE = 0; - /** - * The information from `BASIC_CERTIFICATE`, plus detailed information on the - * domain mappings that have this certificate mapped. - * - * Generated from protobuf enum FULL_CERTIFICATE = 1; - */ - const FULL_CERTIFICATE = 1; - - private static $valueToName = [ - self::BASIC_CERTIFICATE => 'BASIC_CERTIFICATE', - self::FULL_CERTIFICATE => 'FULL_CERTIFICATE', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedDomain.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedDomain.php deleted file mode 100644 index a3d5fe3b8112..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AuthorizedDomain.php +++ /dev/null @@ -1,115 +0,0 @@ -google.appengine.v1.AuthorizedDomain - */ -class AuthorizedDomain extends \Google\Protobuf\Internal\Message -{ - /** - * Full path to the `AuthorizedDomain` resource in the API. Example: - * `apps/myapp/authorizedDomains/example.com`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Fully qualified domain name of the domain authorized for use. Example: - * `example.com`. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Full path to the `AuthorizedDomain` resource in the API. Example: - * `apps/myapp/authorizedDomains/example.com`. - * @OutputOnly - * @type string $id - * Fully qualified domain name of the domain authorized for use. Example: - * `example.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Domain::initOnce(); - parent::__construct($data); - } - - /** - * Full path to the `AuthorizedDomain` resource in the API. Example: - * `apps/myapp/authorizedDomains/example.com`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Full path to the `AuthorizedDomain` resource in the API. Example: - * `apps/myapp/authorizedDomains/example.com`. - * @OutputOnly - * - * 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; - } - - /** - * Fully qualified domain name of the domain authorized for use. Example: - * `example.com`. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Fully qualified domain name of the domain authorized for use. Example: - * `example.com`. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AutomaticScaling.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AutomaticScaling.php deleted file mode 100644 index 3d699702372d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/AutomaticScaling.php +++ /dev/null @@ -1,608 +0,0 @@ -google.appengine.v1.AutomaticScaling - */ -class AutomaticScaling extends \Google\Protobuf\Internal\Message -{ - /** - * The time period that the - * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) - * should wait before it starts collecting information from a new instance. - * This prevents the autoscaler from collecting information when the instance - * is initializing, during which the collected usage would not be reliable. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.protobuf.Duration cool_down_period = 1; - */ - protected $cool_down_period = null; - /** - * Target scaling by CPU usage. - * - * Generated from protobuf field .google.appengine.v1.CpuUtilization cpu_utilization = 2; - */ - protected $cpu_utilization = null; - /** - * Number of concurrent requests an automatic scaling instance can accept - * before the scheduler spawns a new instance. - * Defaults to a runtime-specific value. - * - * Generated from protobuf field int32 max_concurrent_requests = 3; - */ - protected $max_concurrent_requests = 0; - /** - * Maximum number of idle instances that should be maintained for this - * version. - * - * Generated from protobuf field int32 max_idle_instances = 4; - */ - protected $max_idle_instances = 0; - /** - * Maximum number of instances that should be started to handle requests for - * this version. - * - * Generated from protobuf field int32 max_total_instances = 5; - */ - protected $max_total_instances = 0; - /** - * Maximum amount of time that a request should wait in the pending queue - * before starting a new instance to handle it. - * - * Generated from protobuf field .google.protobuf.Duration max_pending_latency = 6; - */ - protected $max_pending_latency = null; - /** - * Minimum number of idle instances that should be maintained for - * this version. Only applicable for the default version of a service. - * - * Generated from protobuf field int32 min_idle_instances = 7; - */ - protected $min_idle_instances = 0; - /** - * Minimum number of running instances that should be maintained for this - * version. - * - * Generated from protobuf field int32 min_total_instances = 8; - */ - protected $min_total_instances = 0; - /** - * Minimum amount of time a request should wait in the pending queue before - * starting a new instance to handle it. - * - * Generated from protobuf field .google.protobuf.Duration min_pending_latency = 9; - */ - protected $min_pending_latency = null; - /** - * Target scaling by request utilization. - * - * Generated from protobuf field .google.appengine.v1.RequestUtilization request_utilization = 10; - */ - protected $request_utilization = null; - /** - * Target scaling by disk usage. - * - * Generated from protobuf field .google.appengine.v1.DiskUtilization disk_utilization = 11; - */ - protected $disk_utilization = null; - /** - * Target scaling by network usage. - * - * Generated from protobuf field .google.appengine.v1.NetworkUtilization network_utilization = 12; - */ - protected $network_utilization = null; - /** - * Scheduler settings for standard environment. - * - * Generated from protobuf field .google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20; - */ - protected $standard_scheduler_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $cool_down_period - * The time period that the - * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) - * should wait before it starts collecting information from a new instance. - * This prevents the autoscaler from collecting information when the instance - * is initializing, during which the collected usage would not be reliable. - * Only applicable in the App Engine flexible environment. - * @type \Google\Cloud\AppEngine\V1\CpuUtilization $cpu_utilization - * Target scaling by CPU usage. - * @type int $max_concurrent_requests - * Number of concurrent requests an automatic scaling instance can accept - * before the scheduler spawns a new instance. - * Defaults to a runtime-specific value. - * @type int $max_idle_instances - * Maximum number of idle instances that should be maintained for this - * version. - * @type int $max_total_instances - * Maximum number of instances that should be started to handle requests for - * this version. - * @type \Google\Protobuf\Duration $max_pending_latency - * Maximum amount of time that a request should wait in the pending queue - * before starting a new instance to handle it. - * @type int $min_idle_instances - * Minimum number of idle instances that should be maintained for - * this version. Only applicable for the default version of a service. - * @type int $min_total_instances - * Minimum number of running instances that should be maintained for this - * version. - * @type \Google\Protobuf\Duration $min_pending_latency - * Minimum amount of time a request should wait in the pending queue before - * starting a new instance to handle it. - * @type \Google\Cloud\AppEngine\V1\RequestUtilization $request_utilization - * Target scaling by request utilization. - * @type \Google\Cloud\AppEngine\V1\DiskUtilization $disk_utilization - * Target scaling by disk usage. - * @type \Google\Cloud\AppEngine\V1\NetworkUtilization $network_utilization - * Target scaling by network usage. - * @type \Google\Cloud\AppEngine\V1\StandardSchedulerSettings $standard_scheduler_settings - * Scheduler settings for standard environment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The time period that the - * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) - * should wait before it starts collecting information from a new instance. - * This prevents the autoscaler from collecting information when the instance - * is initializing, during which the collected usage would not be reliable. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.protobuf.Duration cool_down_period = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getCoolDownPeriod() - { - return $this->cool_down_period; - } - - public function hasCoolDownPeriod() - { - return isset($this->cool_down_period); - } - - public function clearCoolDownPeriod() - { - unset($this->cool_down_period); - } - - /** - * The time period that the - * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) - * should wait before it starts collecting information from a new instance. - * This prevents the autoscaler from collecting information when the instance - * is initializing, during which the collected usage would not be reliable. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.protobuf.Duration cool_down_period = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setCoolDownPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->cool_down_period = $var; - - return $this; - } - - /** - * Target scaling by CPU usage. - * - * Generated from protobuf field .google.appengine.v1.CpuUtilization cpu_utilization = 2; - * @return \Google\Cloud\AppEngine\V1\CpuUtilization|null - */ - public function getCpuUtilization() - { - return $this->cpu_utilization; - } - - public function hasCpuUtilization() - { - return isset($this->cpu_utilization); - } - - public function clearCpuUtilization() - { - unset($this->cpu_utilization); - } - - /** - * Target scaling by CPU usage. - * - * Generated from protobuf field .google.appengine.v1.CpuUtilization cpu_utilization = 2; - * @param \Google\Cloud\AppEngine\V1\CpuUtilization $var - * @return $this - */ - public function setCpuUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\CpuUtilization::class); - $this->cpu_utilization = $var; - - return $this; - } - - /** - * Number of concurrent requests an automatic scaling instance can accept - * before the scheduler spawns a new instance. - * Defaults to a runtime-specific value. - * - * Generated from protobuf field int32 max_concurrent_requests = 3; - * @return int - */ - public function getMaxConcurrentRequests() - { - return $this->max_concurrent_requests; - } - - /** - * Number of concurrent requests an automatic scaling instance can accept - * before the scheduler spawns a new instance. - * Defaults to a runtime-specific value. - * - * Generated from protobuf field int32 max_concurrent_requests = 3; - * @param int $var - * @return $this - */ - public function setMaxConcurrentRequests($var) - { - GPBUtil::checkInt32($var); - $this->max_concurrent_requests = $var; - - return $this; - } - - /** - * Maximum number of idle instances that should be maintained for this - * version. - * - * Generated from protobuf field int32 max_idle_instances = 4; - * @return int - */ - public function getMaxIdleInstances() - { - return $this->max_idle_instances; - } - - /** - * Maximum number of idle instances that should be maintained for this - * version. - * - * Generated from protobuf field int32 max_idle_instances = 4; - * @param int $var - * @return $this - */ - public function setMaxIdleInstances($var) - { - GPBUtil::checkInt32($var); - $this->max_idle_instances = $var; - - return $this; - } - - /** - * Maximum number of instances that should be started to handle requests for - * this version. - * - * Generated from protobuf field int32 max_total_instances = 5; - * @return int - */ - public function getMaxTotalInstances() - { - return $this->max_total_instances; - } - - /** - * Maximum number of instances that should be started to handle requests for - * this version. - * - * Generated from protobuf field int32 max_total_instances = 5; - * @param int $var - * @return $this - */ - public function setMaxTotalInstances($var) - { - GPBUtil::checkInt32($var); - $this->max_total_instances = $var; - - return $this; - } - - /** - * Maximum amount of time that a request should wait in the pending queue - * before starting a new instance to handle it. - * - * Generated from protobuf field .google.protobuf.Duration max_pending_latency = 6; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxPendingLatency() - { - return $this->max_pending_latency; - } - - public function hasMaxPendingLatency() - { - return isset($this->max_pending_latency); - } - - public function clearMaxPendingLatency() - { - unset($this->max_pending_latency); - } - - /** - * Maximum amount of time that a request should wait in the pending queue - * before starting a new instance to handle it. - * - * Generated from protobuf field .google.protobuf.Duration max_pending_latency = 6; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxPendingLatency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_pending_latency = $var; - - return $this; - } - - /** - * Minimum number of idle instances that should be maintained for - * this version. Only applicable for the default version of a service. - * - * Generated from protobuf field int32 min_idle_instances = 7; - * @return int - */ - public function getMinIdleInstances() - { - return $this->min_idle_instances; - } - - /** - * Minimum number of idle instances that should be maintained for - * this version. Only applicable for the default version of a service. - * - * Generated from protobuf field int32 min_idle_instances = 7; - * @param int $var - * @return $this - */ - public function setMinIdleInstances($var) - { - GPBUtil::checkInt32($var); - $this->min_idle_instances = $var; - - return $this; - } - - /** - * Minimum number of running instances that should be maintained for this - * version. - * - * Generated from protobuf field int32 min_total_instances = 8; - * @return int - */ - public function getMinTotalInstances() - { - return $this->min_total_instances; - } - - /** - * Minimum number of running instances that should be maintained for this - * version. - * - * Generated from protobuf field int32 min_total_instances = 8; - * @param int $var - * @return $this - */ - public function setMinTotalInstances($var) - { - GPBUtil::checkInt32($var); - $this->min_total_instances = $var; - - return $this; - } - - /** - * Minimum amount of time a request should wait in the pending queue before - * starting a new instance to handle it. - * - * Generated from protobuf field .google.protobuf.Duration min_pending_latency = 9; - * @return \Google\Protobuf\Duration|null - */ - public function getMinPendingLatency() - { - return $this->min_pending_latency; - } - - public function hasMinPendingLatency() - { - return isset($this->min_pending_latency); - } - - public function clearMinPendingLatency() - { - unset($this->min_pending_latency); - } - - /** - * Minimum amount of time a request should wait in the pending queue before - * starting a new instance to handle it. - * - * Generated from protobuf field .google.protobuf.Duration min_pending_latency = 9; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinPendingLatency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_pending_latency = $var; - - return $this; - } - - /** - * Target scaling by request utilization. - * - * Generated from protobuf field .google.appengine.v1.RequestUtilization request_utilization = 10; - * @return \Google\Cloud\AppEngine\V1\RequestUtilization|null - */ - public function getRequestUtilization() - { - return $this->request_utilization; - } - - public function hasRequestUtilization() - { - return isset($this->request_utilization); - } - - public function clearRequestUtilization() - { - unset($this->request_utilization); - } - - /** - * Target scaling by request utilization. - * - * Generated from protobuf field .google.appengine.v1.RequestUtilization request_utilization = 10; - * @param \Google\Cloud\AppEngine\V1\RequestUtilization $var - * @return $this - */ - public function setRequestUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\RequestUtilization::class); - $this->request_utilization = $var; - - return $this; - } - - /** - * Target scaling by disk usage. - * - * Generated from protobuf field .google.appengine.v1.DiskUtilization disk_utilization = 11; - * @return \Google\Cloud\AppEngine\V1\DiskUtilization|null - */ - public function getDiskUtilization() - { - return $this->disk_utilization; - } - - public function hasDiskUtilization() - { - return isset($this->disk_utilization); - } - - public function clearDiskUtilization() - { - unset($this->disk_utilization); - } - - /** - * Target scaling by disk usage. - * - * Generated from protobuf field .google.appengine.v1.DiskUtilization disk_utilization = 11; - * @param \Google\Cloud\AppEngine\V1\DiskUtilization $var - * @return $this - */ - public function setDiskUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\DiskUtilization::class); - $this->disk_utilization = $var; - - return $this; - } - - /** - * Target scaling by network usage. - * - * Generated from protobuf field .google.appengine.v1.NetworkUtilization network_utilization = 12; - * @return \Google\Cloud\AppEngine\V1\NetworkUtilization|null - */ - public function getNetworkUtilization() - { - return $this->network_utilization; - } - - public function hasNetworkUtilization() - { - return isset($this->network_utilization); - } - - public function clearNetworkUtilization() - { - unset($this->network_utilization); - } - - /** - * Target scaling by network usage. - * - * Generated from protobuf field .google.appengine.v1.NetworkUtilization network_utilization = 12; - * @param \Google\Cloud\AppEngine\V1\NetworkUtilization $var - * @return $this - */ - public function setNetworkUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\NetworkUtilization::class); - $this->network_utilization = $var; - - return $this; - } - - /** - * Scheduler settings for standard environment. - * - * Generated from protobuf field .google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20; - * @return \Google\Cloud\AppEngine\V1\StandardSchedulerSettings|null - */ - public function getStandardSchedulerSettings() - { - return $this->standard_scheduler_settings; - } - - public function hasStandardSchedulerSettings() - { - return isset($this->standard_scheduler_settings); - } - - public function clearStandardSchedulerSettings() - { - unset($this->standard_scheduler_settings); - } - - /** - * Scheduler settings for standard environment. - * - * Generated from protobuf field .google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20; - * @param \Google\Cloud\AppEngine\V1\StandardSchedulerSettings $var - * @return $this - */ - public function setStandardSchedulerSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\StandardSchedulerSettings::class); - $this->standard_scheduler_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BasicScaling.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BasicScaling.php deleted file mode 100644 index e3b0d527039d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BasicScaling.php +++ /dev/null @@ -1,118 +0,0 @@ -google.appengine.v1.BasicScaling - */ -class BasicScaling extends \Google\Protobuf\Internal\Message -{ - /** - * Duration of time after the last request that an instance must wait before - * the instance is shut down. - * - * Generated from protobuf field .google.protobuf.Duration idle_timeout = 1; - */ - protected $idle_timeout = null; - /** - * Maximum number of instances to create for this version. - * - * Generated from protobuf field int32 max_instances = 2; - */ - protected $max_instances = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $idle_timeout - * Duration of time after the last request that an instance must wait before - * the instance is shut down. - * @type int $max_instances - * Maximum number of instances to create for this version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Duration of time after the last request that an instance must wait before - * the instance is shut down. - * - * Generated from protobuf field .google.protobuf.Duration idle_timeout = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getIdleTimeout() - { - return $this->idle_timeout; - } - - public function hasIdleTimeout() - { - return isset($this->idle_timeout); - } - - public function clearIdleTimeout() - { - unset($this->idle_timeout); - } - - /** - * Duration of time after the last request that an instance must wait before - * the instance is shut down. - * - * Generated from protobuf field .google.protobuf.Duration idle_timeout = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setIdleTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->idle_timeout = $var; - - return $this; - } - - /** - * Maximum number of instances to create for this version. - * - * Generated from protobuf field int32 max_instances = 2; - * @return int - */ - public function getMaxInstances() - { - return $this->max_instances; - } - - /** - * Maximum number of instances to create for this version. - * - * Generated from protobuf field int32 max_instances = 2; - * @param int $var - * @return $this - */ - public function setMaxInstances($var) - { - GPBUtil::checkInt32($var); - $this->max_instances = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BatchUpdateIngressRulesRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BatchUpdateIngressRulesRequest.php deleted file mode 100644 index b9d789dd43be..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BatchUpdateIngressRulesRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.appengine.v1.BatchUpdateIngressRulesRequest - */ -class BatchUpdateIngressRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Firewall collection to set. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A list of FirewallRules to replace the existing set. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 2; - */ - private $ingress_rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the Firewall collection to set. - * Example: `apps/myapp/firewall/ingressRules`. - * @type array<\Google\Cloud\AppEngine\V1\FirewallRule>|\Google\Protobuf\Internal\RepeatedField $ingress_rules - * A list of FirewallRules to replace the existing set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Firewall collection to set. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the Firewall collection to set. - * Example: `apps/myapp/firewall/ingressRules`. - * - * 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; - } - - /** - * A list of FirewallRules to replace the existing set. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIngressRules() - { - return $this->ingress_rules; - } - - /** - * A list of FirewallRules to replace the existing set. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 2; - * @param array<\Google\Cloud\AppEngine\V1\FirewallRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIngressRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\FirewallRule::class); - $this->ingress_rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BatchUpdateIngressRulesResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BatchUpdateIngressRulesResponse.php deleted file mode 100644 index d0603ca5bf69..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/BatchUpdateIngressRulesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.appengine.v1.BatchUpdateIngressRulesResponse - */ -class BatchUpdateIngressRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The full list of ingress FirewallRules for this application. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 1; - */ - private $ingress_rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\FirewallRule>|\Google\Protobuf\Internal\RepeatedField $ingress_rules - * The full list of ingress FirewallRules for this application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The full list of ingress FirewallRules for this application. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIngressRules() - { - return $this->ingress_rules; - } - - /** - * The full list of ingress FirewallRules for this application. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 1; - * @param array<\Google\Cloud\AppEngine\V1\FirewallRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIngressRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\FirewallRule::class); - $this->ingress_rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CertificateRawData.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CertificateRawData.php deleted file mode 100644 index 0dfa0039ba8d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CertificateRawData.php +++ /dev/null @@ -1,157 +0,0 @@ -google.appengine.v1.CertificateRawData - */ -class CertificateRawData extends \Google\Protobuf\Internal\Message -{ - /** - * PEM encoded x.509 public key certificate. This field is set once on - * certificate creation. Must include the header and footer. Example: - *
-     * -----BEGIN CERTIFICATE-----
-     * 
-     * -----END CERTIFICATE-----
-     * 
- * - * Generated from protobuf field string public_certificate = 1; - */ - protected $public_certificate = ''; - /** - * Unencrypted PEM encoded RSA private key. This field is set once on - * certificate creation and then encrypted. The key size must be 2048 - * bits or fewer. Must include the header and footer. Example: - *
-     * -----BEGIN RSA PRIVATE KEY-----
-     * 
-     * -----END RSA PRIVATE KEY-----
-     * 
- * @InputOnly - * - * Generated from protobuf field string private_key = 2; - */ - protected $private_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $public_certificate - * PEM encoded x.509 public key certificate. This field is set once on - * certificate creation. Must include the header and footer. Example: - *
-     *           -----BEGIN CERTIFICATE-----
-     *           
-     *           -----END CERTIFICATE-----
-     *           
- * @type string $private_key - * Unencrypted PEM encoded RSA private key. This field is set once on - * certificate creation and then encrypted. The key size must be 2048 - * bits or fewer. Must include the header and footer. Example: - *
-     *           -----BEGIN RSA PRIVATE KEY-----
-     *           
-     *           -----END RSA PRIVATE KEY-----
-     *           
- * @InputOnly - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Certificate::initOnce(); - parent::__construct($data); - } - - /** - * PEM encoded x.509 public key certificate. This field is set once on - * certificate creation. Must include the header and footer. Example: - *
-     * -----BEGIN CERTIFICATE-----
-     * 
-     * -----END CERTIFICATE-----
-     * 
- * - * Generated from protobuf field string public_certificate = 1; - * @return string - */ - public function getPublicCertificate() - { - return $this->public_certificate; - } - - /** - * PEM encoded x.509 public key certificate. This field is set once on - * certificate creation. Must include the header and footer. Example: - *
-     * -----BEGIN CERTIFICATE-----
-     * 
-     * -----END CERTIFICATE-----
-     * 
- * - * Generated from protobuf field string public_certificate = 1; - * @param string $var - * @return $this - */ - public function setPublicCertificate($var) - { - GPBUtil::checkString($var, True); - $this->public_certificate = $var; - - return $this; - } - - /** - * Unencrypted PEM encoded RSA private key. This field is set once on - * certificate creation and then encrypted. The key size must be 2048 - * bits or fewer. Must include the header and footer. Example: - *
-     * -----BEGIN RSA PRIVATE KEY-----
-     * 
-     * -----END RSA PRIVATE KEY-----
-     * 
- * @InputOnly - * - * Generated from protobuf field string private_key = 2; - * @return string - */ - public function getPrivateKey() - { - return $this->private_key; - } - - /** - * Unencrypted PEM encoded RSA private key. This field is set once on - * certificate creation and then encrypted. The key size must be 2048 - * bits or fewer. Must include the header and footer. Example: - *
-     * -----BEGIN RSA PRIVATE KEY-----
-     * 
-     * -----END RSA PRIVATE KEY-----
-     * 
- * @InputOnly - * - * Generated from protobuf field string private_key = 2; - * @param string $var - * @return $this - */ - public function setPrivateKey($var) - { - GPBUtil::checkString($var, True); - $this->private_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CloudBuildOptions.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CloudBuildOptions.php deleted file mode 100644 index a3fb1f595d9c..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CloudBuildOptions.php +++ /dev/null @@ -1,133 +0,0 @@ -google.appengine.v1.CloudBuildOptions - */ -class CloudBuildOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Path to the yaml file used in deployment, used to determine runtime - * configuration details. - * Required for flexible environment builds. - * See https://cloud.google.com/appengine/docs/standard/python/config/appref - * for more details. - * - * Generated from protobuf field string app_yaml_path = 1; - */ - protected $app_yaml_path = ''; - /** - * The Cloud Build timeout used as part of any dependent builds performed by - * version creation. Defaults to 10 minutes. - * - * Generated from protobuf field .google.protobuf.Duration cloud_build_timeout = 2; - */ - protected $cloud_build_timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $app_yaml_path - * Path to the yaml file used in deployment, used to determine runtime - * configuration details. - * Required for flexible environment builds. - * See https://cloud.google.com/appengine/docs/standard/python/config/appref - * for more details. - * @type \Google\Protobuf\Duration $cloud_build_timeout - * The Cloud Build timeout used as part of any dependent builds performed by - * version creation. Defaults to 10 minutes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Deploy::initOnce(); - parent::__construct($data); - } - - /** - * Path to the yaml file used in deployment, used to determine runtime - * configuration details. - * Required for flexible environment builds. - * See https://cloud.google.com/appengine/docs/standard/python/config/appref - * for more details. - * - * Generated from protobuf field string app_yaml_path = 1; - * @return string - */ - public function getAppYamlPath() - { - return $this->app_yaml_path; - } - - /** - * Path to the yaml file used in deployment, used to determine runtime - * configuration details. - * Required for flexible environment builds. - * See https://cloud.google.com/appengine/docs/standard/python/config/appref - * for more details. - * - * Generated from protobuf field string app_yaml_path = 1; - * @param string $var - * @return $this - */ - public function setAppYamlPath($var) - { - GPBUtil::checkString($var, True); - $this->app_yaml_path = $var; - - return $this; - } - - /** - * The Cloud Build timeout used as part of any dependent builds performed by - * version creation. Defaults to 10 minutes. - * - * Generated from protobuf field .google.protobuf.Duration cloud_build_timeout = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getCloudBuildTimeout() - { - return $this->cloud_build_timeout; - } - - public function hasCloudBuildTimeout() - { - return isset($this->cloud_build_timeout); - } - - public function clearCloudBuildTimeout() - { - unset($this->cloud_build_timeout); - } - - /** - * The Cloud Build timeout used as part of any dependent builds performed by - * version creation. Defaults to 10 minutes. - * - * Generated from protobuf field .google.protobuf.Duration cloud_build_timeout = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setCloudBuildTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->cloud_build_timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ContainerInfo.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ContainerInfo.php deleted file mode 100644 index 41d302c0970c..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ContainerInfo.php +++ /dev/null @@ -1,77 +0,0 @@ -google.appengine.v1.ContainerInfo - */ -class ContainerInfo extends \Google\Protobuf\Internal\Message -{ - /** - * URI to the hosted container image in Google Container Registry. The URI - * must be fully qualified and include a tag or digest. - * Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" - * - * Generated from protobuf field string image = 1; - */ - protected $image = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image - * URI to the hosted container image in Google Container Registry. The URI - * must be fully qualified and include a tag or digest. - * Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Deploy::initOnce(); - parent::__construct($data); - } - - /** - * URI to the hosted container image in Google Container Registry. The URI - * must be fully qualified and include a tag or digest. - * Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" - * - * Generated from protobuf field string image = 1; - * @return string - */ - public function getImage() - { - return $this->image; - } - - /** - * URI to the hosted container image in Google Container Registry. The URI - * must be fully qualified and include a tag or digest. - * Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" - * - * Generated from protobuf field string image = 1; - * @param string $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkString($var, True); - $this->image = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CpuUtilization.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CpuUtilization.php deleted file mode 100644 index fb1b7378ccdd..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CpuUtilization.php +++ /dev/null @@ -1,115 +0,0 @@ -google.appengine.v1.CpuUtilization - */ -class CpuUtilization extends \Google\Protobuf\Internal\Message -{ - /** - * Period of time over which CPU utilization is calculated. - * - * Generated from protobuf field .google.protobuf.Duration aggregation_window_length = 1; - */ - protected $aggregation_window_length = null; - /** - * Target CPU utilization ratio to maintain when scaling. Must be between 0 - * and 1. - * - * Generated from protobuf field double target_utilization = 2; - */ - protected $target_utilization = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $aggregation_window_length - * Period of time over which CPU utilization is calculated. - * @type float $target_utilization - * Target CPU utilization ratio to maintain when scaling. Must be between 0 - * and 1. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Period of time over which CPU utilization is calculated. - * - * Generated from protobuf field .google.protobuf.Duration aggregation_window_length = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getAggregationWindowLength() - { - return $this->aggregation_window_length; - } - - public function hasAggregationWindowLength() - { - return isset($this->aggregation_window_length); - } - - public function clearAggregationWindowLength() - { - unset($this->aggregation_window_length); - } - - /** - * Period of time over which CPU utilization is calculated. - * - * Generated from protobuf field .google.protobuf.Duration aggregation_window_length = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setAggregationWindowLength($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->aggregation_window_length = $var; - - return $this; - } - - /** - * Target CPU utilization ratio to maintain when scaling. Must be between 0 - * and 1. - * - * Generated from protobuf field double target_utilization = 2; - * @return float - */ - public function getTargetUtilization() - { - return $this->target_utilization; - } - - /** - * Target CPU utilization ratio to maintain when scaling. Must be between 0 - * and 1. - * - * Generated from protobuf field double target_utilization = 2; - * @param float $var - * @return $this - */ - public function setTargetUtilization($var) - { - GPBUtil::checkDouble($var); - $this->target_utilization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateApplicationRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateApplicationRequest.php deleted file mode 100644 index 633a8e5f1469..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateApplicationRequest.php +++ /dev/null @@ -1,77 +0,0 @@ -google.appengine.v1.CreateApplicationRequest - */ -class CreateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application configuration. - * - * Generated from protobuf field .google.appengine.v1.Application application = 2; - */ - protected $application = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppEngine\V1\Application $application - * Application configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Application configuration. - * - * Generated from protobuf field .google.appengine.v1.Application application = 2; - * @return \Google\Cloud\AppEngine\V1\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Application configuration. - * - * Generated from protobuf field .google.appengine.v1.Application application = 2; - * @param \Google\Cloud\AppEngine\V1\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Application::class); - $this->application = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateAuthorizedCertificateRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateAuthorizedCertificateRequest.php deleted file mode 100644 index ea89c2f24cfe..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateAuthorizedCertificateRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.appengine.v1.CreateAuthorizedCertificateRequest - */ -class CreateAuthorizedCertificateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent `Application` resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * SSL certificate data. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificate certificate = 2; - */ - protected $certificate = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Name of the parent `Application` resource. Example: `apps/myapp`. - * @type \Google\Cloud\AppEngine\V1\AuthorizedCertificate $certificate - * SSL certificate data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent `Application` resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent `Application` resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * SSL certificate data. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificate certificate = 2; - * @return \Google\Cloud\AppEngine\V1\AuthorizedCertificate|null - */ - public function getCertificate() - { - return $this->certificate; - } - - public function hasCertificate() - { - return isset($this->certificate); - } - - public function clearCertificate() - { - unset($this->certificate); - } - - /** - * SSL certificate data. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificate certificate = 2; - * @param \Google\Cloud\AppEngine\V1\AuthorizedCertificate $var - * @return $this - */ - public function setCertificate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\AuthorizedCertificate::class); - $this->certificate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateDomainMappingRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateDomainMappingRequest.php deleted file mode 100644 index e6f5f562dbb6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateDomainMappingRequest.php +++ /dev/null @@ -1,149 +0,0 @@ -google.appengine.v1.CreateDomainMappingRequest - */ -class CreateDomainMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Domain mapping configuration. - * - * Generated from protobuf field .google.appengine.v1.DomainMapping domain_mapping = 2; - */ - protected $domain_mapping = null; - /** - * Whether the domain creation should override any existing mappings for this - * domain. By default, overrides are rejected. - * - * Generated from protobuf field .google.appengine.v1.DomainOverrideStrategy override_strategy = 4; - */ - protected $override_strategy = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Name of the parent Application resource. Example: `apps/myapp`. - * @type \Google\Cloud\AppEngine\V1\DomainMapping $domain_mapping - * Domain mapping configuration. - * @type int $override_strategy - * Whether the domain creation should override any existing mappings for this - * domain. By default, overrides are rejected. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Domain mapping configuration. - * - * Generated from protobuf field .google.appengine.v1.DomainMapping domain_mapping = 2; - * @return \Google\Cloud\AppEngine\V1\DomainMapping|null - */ - public function getDomainMapping() - { - return $this->domain_mapping; - } - - public function hasDomainMapping() - { - return isset($this->domain_mapping); - } - - public function clearDomainMapping() - { - unset($this->domain_mapping); - } - - /** - * Domain mapping configuration. - * - * Generated from protobuf field .google.appengine.v1.DomainMapping domain_mapping = 2; - * @param \Google\Cloud\AppEngine\V1\DomainMapping $var - * @return $this - */ - public function setDomainMapping($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\DomainMapping::class); - $this->domain_mapping = $var; - - return $this; - } - - /** - * Whether the domain creation should override any existing mappings for this - * domain. By default, overrides are rejected. - * - * Generated from protobuf field .google.appengine.v1.DomainOverrideStrategy override_strategy = 4; - * @return int - */ - public function getOverrideStrategy() - { - return $this->override_strategy; - } - - /** - * Whether the domain creation should override any existing mappings for this - * domain. By default, overrides are rejected. - * - * Generated from protobuf field .google.appengine.v1.DomainOverrideStrategy override_strategy = 4; - * @param int $var - * @return $this - */ - public function setOverrideStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\DomainOverrideStrategy::class); - $this->override_strategy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateIngressRuleRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateIngressRuleRequest.php deleted file mode 100644 index 79e5383c3f1e..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateIngressRuleRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.appengine.v1.CreateIngressRuleRequest - */ -class CreateIngressRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent Firewall collection in which to create a new rule. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * A FirewallRule containing the new resource. - * The user may optionally provide a position at which the new rule will be - * placed. The positions define a sequential list starting at 1. If a rule - * already exists at the given position, rules greater than the provided - * position will be moved forward by one. - * If no position is provided, the server will place the rule as the second to - * last rule in the sequence before the required default allow-all or deny-all - * rule. - * - * Generated from protobuf field .google.appengine.v1.FirewallRule rule = 2; - */ - protected $rule = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Name of the parent Firewall collection in which to create a new rule. - * Example: `apps/myapp/firewall/ingressRules`. - * @type \Google\Cloud\AppEngine\V1\FirewallRule $rule - * A FirewallRule containing the new resource. - * The user may optionally provide a position at which the new rule will be - * placed. The positions define a sequential list starting at 1. If a rule - * already exists at the given position, rules greater than the provided - * position will be moved forward by one. - * If no position is provided, the server will place the rule as the second to - * last rule in the sequence before the required default allow-all or deny-all - * rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent Firewall collection in which to create a new rule. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent Firewall collection in which to create a new rule. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * A FirewallRule containing the new resource. - * The user may optionally provide a position at which the new rule will be - * placed. The positions define a sequential list starting at 1. If a rule - * already exists at the given position, rules greater than the provided - * position will be moved forward by one. - * If no position is provided, the server will place the rule as the second to - * last rule in the sequence before the required default allow-all or deny-all - * rule. - * - * Generated from protobuf field .google.appengine.v1.FirewallRule rule = 2; - * @return \Google\Cloud\AppEngine\V1\FirewallRule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * A FirewallRule containing the new resource. - * The user may optionally provide a position at which the new rule will be - * placed. The positions define a sequential list starting at 1. If a rule - * already exists at the given position, rules greater than the provided - * position will be moved forward by one. - * If no position is provided, the server will place the rule as the second to - * last rule in the sequence before the required default allow-all or deny-all - * rule. - * - * Generated from protobuf field .google.appengine.v1.FirewallRule rule = 2; - * @param \Google\Cloud\AppEngine\V1\FirewallRule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\FirewallRule::class); - $this->rule = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionMetadataV1.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionMetadataV1.php deleted file mode 100644 index 15c6f525ef04..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionMetadataV1.php +++ /dev/null @@ -1,72 +0,0 @@ -google.appengine.v1.CreateVersionMetadataV1 - */ -class CreateVersionMetadataV1 extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud Build ID if one was created as part of the version create. - * @OutputOnly - * - * Generated from protobuf field string cloud_build_id = 1; - */ - protected $cloud_build_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_build_id - * The Cloud Build ID if one was created as part of the version create. - * @OutputOnly - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Operation::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Build ID if one was created as part of the version create. - * @OutputOnly - * - * Generated from protobuf field string cloud_build_id = 1; - * @return string - */ - public function getCloudBuildId() - { - return $this->cloud_build_id; - } - - /** - * The Cloud Build ID if one was created as part of the version create. - * @OutputOnly - * - * Generated from protobuf field string cloud_build_id = 1; - * @param string $var - * @return $this - */ - public function setCloudBuildId($var) - { - GPBUtil::checkString($var, True); - $this->cloud_build_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionMethod.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionMethod.php deleted file mode 100644 index 512ee518530a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionMethod.php +++ /dev/null @@ -1,77 +0,0 @@ -google.appengine.v1.CreateVersionMethod - */ -class CreateVersionMethod extends \Google\Protobuf\Internal\Message -{ - /** - * Create version request. - * - * Generated from protobuf field .google.appengine.v1.CreateVersionRequest request = 1; - */ - protected $request = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppEngine\V1\CreateVersionRequest $request - * Create version request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AuditData::initOnce(); - parent::__construct($data); - } - - /** - * Create version request. - * - * Generated from protobuf field .google.appengine.v1.CreateVersionRequest request = 1; - * @return \Google\Cloud\AppEngine\V1\CreateVersionRequest|null - */ - public function getRequest() - { - return $this->request; - } - - public function hasRequest() - { - return isset($this->request); - } - - public function clearRequest() - { - unset($this->request); - } - - /** - * Create version request. - * - * Generated from protobuf field .google.appengine.v1.CreateVersionRequest request = 1; - * @param \Google\Cloud\AppEngine\V1\CreateVersionRequest $var - * @return $this - */ - public function setRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\CreateVersionRequest::class); - $this->request = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionRequest.php deleted file mode 100644 index 21e748ead3f6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/CreateVersionRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.appengine.v1.CreateVersionRequest - */ -class CreateVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent resource to create this version under. Example: - * `apps/myapp/services/default`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Application deployment configuration. - * - * Generated from protobuf field .google.appengine.v1.Version version = 2; - */ - protected $version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Name of the parent resource to create this version under. Example: - * `apps/myapp/services/default`. - * @type \Google\Cloud\AppEngine\V1\Version $version - * Application deployment configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent resource to create this version under. Example: - * `apps/myapp/services/default`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent resource to create this version under. Example: - * `apps/myapp/services/default`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Application deployment configuration. - * - * Generated from protobuf field .google.appengine.v1.Version version = 2; - * @return \Google\Cloud\AppEngine\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * Application deployment configuration. - * - * Generated from protobuf field .google.appengine.v1.Version version = 2; - * @param \Google\Cloud\AppEngine\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Version::class); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DebugInstanceRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DebugInstanceRequest.php deleted file mode 100644 index 81d8c1f36e47..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DebugInstanceRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.appengine.v1.DebugInstanceRequest - */ -class DebugInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Public SSH key to add to the instance. Examples: - * * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]` - * * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` - * For more information, see - * [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). - * - * Generated from protobuf field string ssh_key = 2; - */ - protected $ssh_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * @type string $ssh_key - * Public SSH key to add to the instance. Examples: - * * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]` - * * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` - * For more information, see - * [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * 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; - } - - /** - * Public SSH key to add to the instance. Examples: - * * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]` - * * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` - * For more information, see - * [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). - * - * Generated from protobuf field string ssh_key = 2; - * @return string - */ - public function getSshKey() - { - return $this->ssh_key; - } - - /** - * Public SSH key to add to the instance. Examples: - * * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]` - * * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` - * For more information, see - * [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). - * - * Generated from protobuf field string ssh_key = 2; - * @param string $var - * @return $this - */ - public function setSshKey($var) - { - GPBUtil::checkString($var, True); - $this->ssh_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteAuthorizedCertificateRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteAuthorizedCertificateRequest.php deleted file mode 100644 index 84ee5c03ead6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteAuthorizedCertificateRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.DeleteAuthorizedCertificateRequest - */ -class DeleteAuthorizedCertificateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource to delete. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource to delete. Example: - * `apps/myapp/authorizedCertificates/12345`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource to delete. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource to delete. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteDomainMappingRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteDomainMappingRequest.php deleted file mode 100644 index c327f6f760ef..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteDomainMappingRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.DeleteDomainMappingRequest - */ -class DeleteDomainMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource to delete. Example: - * `apps/myapp/domainMappings/example.com`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource to delete. Example: - * `apps/myapp/domainMappings/example.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource to delete. Example: - * `apps/myapp/domainMappings/example.com`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource to delete. Example: - * `apps/myapp/domainMappings/example.com`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteIngressRuleRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteIngressRuleRequest.php deleted file mode 100644 index b565ec2f60b1..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteIngressRuleRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.DeleteIngressRuleRequest - */ -class DeleteIngressRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Firewall resource to delete. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the Firewall resource to delete. - * Example: `apps/myapp/firewall/ingressRules/100`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Firewall resource to delete. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the Firewall resource to delete. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteInstanceRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteInstanceRequest.php deleted file mode 100644 index cadf2cdd0f26..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteInstanceRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.DeleteInstanceRequest - */ -class DeleteInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteServiceRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteServiceRequest.php deleted file mode 100644 index 3746b828ba66..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteServiceRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.appengine.v1.DeleteServiceRequest - */ -class DeleteServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: `apps/myapp/services/default`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: `apps/myapp/services/default`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: `apps/myapp/services/default`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: `apps/myapp/services/default`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteVersionRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteVersionRequest.php deleted file mode 100644 index 91a551861f62..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DeleteVersionRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.DeleteVersionRequest - */ -class DeleteVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Deployment.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Deployment.php deleted file mode 100644 index c06d77621be5..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Deployment.php +++ /dev/null @@ -1,223 +0,0 @@ -google.appengine.v1.Deployment - */ -class Deployment extends \Google\Protobuf\Internal\Message -{ - /** - * Manifest of the files stored in Google Cloud Storage that are included - * as part of this version. All files must be readable using the - * credentials supplied with this call. - * - * Generated from protobuf field map files = 1; - */ - private $files; - /** - * The Docker image for the container that runs the version. - * Only applicable for instances running in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.ContainerInfo container = 2; - */ - protected $container = null; - /** - * The zip file for this deployment, if this is a zip deployment. - * - * Generated from protobuf field .google.appengine.v1.ZipInfo zip = 3; - */ - protected $zip = null; - /** - * Options for any Google Cloud Build builds created as a part of this - * deployment. - * These options will only be used if a new build is created, such as when - * deploying to the App Engine flexible environment using files or zip. - * - * Generated from protobuf field .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; - */ - protected $cloud_build_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $files - * Manifest of the files stored in Google Cloud Storage that are included - * as part of this version. All files must be readable using the - * credentials supplied with this call. - * @type \Google\Cloud\AppEngine\V1\ContainerInfo $container - * The Docker image for the container that runs the version. - * Only applicable for instances running in the App Engine flexible environment. - * @type \Google\Cloud\AppEngine\V1\ZipInfo $zip - * The zip file for this deployment, if this is a zip deployment. - * @type \Google\Cloud\AppEngine\V1\CloudBuildOptions $cloud_build_options - * Options for any Google Cloud Build builds created as a part of this - * deployment. - * These options will only be used if a new build is created, such as when - * deploying to the App Engine flexible environment using files or zip. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Deploy::initOnce(); - parent::__construct($data); - } - - /** - * Manifest of the files stored in Google Cloud Storage that are included - * as part of this version. All files must be readable using the - * credentials supplied with this call. - * - * Generated from protobuf field map files = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getFiles() - { - return $this->files; - } - - /** - * Manifest of the files stored in Google Cloud Storage that are included - * as part of this version. All files must be readable using the - * credentials supplied with this call. - * - * Generated from protobuf field map files = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setFiles($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\FileInfo::class); - $this->files = $arr; - - return $this; - } - - /** - * The Docker image for the container that runs the version. - * Only applicable for instances running in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.ContainerInfo container = 2; - * @return \Google\Cloud\AppEngine\V1\ContainerInfo|null - */ - public function getContainer() - { - return $this->container; - } - - public function hasContainer() - { - return isset($this->container); - } - - public function clearContainer() - { - unset($this->container); - } - - /** - * The Docker image for the container that runs the version. - * Only applicable for instances running in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.ContainerInfo container = 2; - * @param \Google\Cloud\AppEngine\V1\ContainerInfo $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ContainerInfo::class); - $this->container = $var; - - return $this; - } - - /** - * The zip file for this deployment, if this is a zip deployment. - * - * Generated from protobuf field .google.appengine.v1.ZipInfo zip = 3; - * @return \Google\Cloud\AppEngine\V1\ZipInfo|null - */ - public function getZip() - { - return $this->zip; - } - - public function hasZip() - { - return isset($this->zip); - } - - public function clearZip() - { - unset($this->zip); - } - - /** - * The zip file for this deployment, if this is a zip deployment. - * - * Generated from protobuf field .google.appengine.v1.ZipInfo zip = 3; - * @param \Google\Cloud\AppEngine\V1\ZipInfo $var - * @return $this - */ - public function setZip($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ZipInfo::class); - $this->zip = $var; - - return $this; - } - - /** - * Options for any Google Cloud Build builds created as a part of this - * deployment. - * These options will only be used if a new build is created, such as when - * deploying to the App Engine flexible environment using files or zip. - * - * Generated from protobuf field .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; - * @return \Google\Cloud\AppEngine\V1\CloudBuildOptions|null - */ - public function getCloudBuildOptions() - { - return $this->cloud_build_options; - } - - public function hasCloudBuildOptions() - { - return isset($this->cloud_build_options); - } - - public function clearCloudBuildOptions() - { - unset($this->cloud_build_options); - } - - /** - * Options for any Google Cloud Build builds created as a part of this - * deployment. - * These options will only be used if a new build is created, such as when - * deploying to the App Engine flexible environment using files or zip. - * - * Generated from protobuf field .google.appengine.v1.CloudBuildOptions cloud_build_options = 6; - * @param \Google\Cloud\AppEngine\V1\CloudBuildOptions $var - * @return $this - */ - public function setCloudBuildOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\CloudBuildOptions::class); - $this->cloud_build_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DiskUtilization.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DiskUtilization.php deleted file mode 100644 index 9ac298bcd91a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DiskUtilization.php +++ /dev/null @@ -1,170 +0,0 @@ -google.appengine.v1.DiskUtilization - */ -class DiskUtilization extends \Google\Protobuf\Internal\Message -{ - /** - * Target bytes written per second. - * - * Generated from protobuf field int32 target_write_bytes_per_second = 14; - */ - protected $target_write_bytes_per_second = 0; - /** - * Target ops written per second. - * - * Generated from protobuf field int32 target_write_ops_per_second = 15; - */ - protected $target_write_ops_per_second = 0; - /** - * Target bytes read per second. - * - * Generated from protobuf field int32 target_read_bytes_per_second = 16; - */ - protected $target_read_bytes_per_second = 0; - /** - * Target ops read per seconds. - * - * Generated from protobuf field int32 target_read_ops_per_second = 17; - */ - protected $target_read_ops_per_second = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $target_write_bytes_per_second - * Target bytes written per second. - * @type int $target_write_ops_per_second - * Target ops written per second. - * @type int $target_read_bytes_per_second - * Target bytes read per second. - * @type int $target_read_ops_per_second - * Target ops read per seconds. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Target bytes written per second. - * - * Generated from protobuf field int32 target_write_bytes_per_second = 14; - * @return int - */ - public function getTargetWriteBytesPerSecond() - { - return $this->target_write_bytes_per_second; - } - - /** - * Target bytes written per second. - * - * Generated from protobuf field int32 target_write_bytes_per_second = 14; - * @param int $var - * @return $this - */ - public function setTargetWriteBytesPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_write_bytes_per_second = $var; - - return $this; - } - - /** - * Target ops written per second. - * - * Generated from protobuf field int32 target_write_ops_per_second = 15; - * @return int - */ - public function getTargetWriteOpsPerSecond() - { - return $this->target_write_ops_per_second; - } - - /** - * Target ops written per second. - * - * Generated from protobuf field int32 target_write_ops_per_second = 15; - * @param int $var - * @return $this - */ - public function setTargetWriteOpsPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_write_ops_per_second = $var; - - return $this; - } - - /** - * Target bytes read per second. - * - * Generated from protobuf field int32 target_read_bytes_per_second = 16; - * @return int - */ - public function getTargetReadBytesPerSecond() - { - return $this->target_read_bytes_per_second; - } - - /** - * Target bytes read per second. - * - * Generated from protobuf field int32 target_read_bytes_per_second = 16; - * @param int $var - * @return $this - */ - public function setTargetReadBytesPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_read_bytes_per_second = $var; - - return $this; - } - - /** - * Target ops read per seconds. - * - * Generated from protobuf field int32 target_read_ops_per_second = 17; - * @return int - */ - public function getTargetReadOpsPerSecond() - { - return $this->target_read_ops_per_second; - } - - /** - * Target ops read per seconds. - * - * Generated from protobuf field int32 target_read_ops_per_second = 17; - * @param int $var - * @return $this - */ - public function setTargetReadOpsPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_read_ops_per_second = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DomainMapping.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DomainMapping.php deleted file mode 100644 index 35dea908c1c7..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DomainMapping.php +++ /dev/null @@ -1,207 +0,0 @@ -google.appengine.v1.DomainMapping - */ -class DomainMapping extends \Google\Protobuf\Internal\Message -{ - /** - * Full path to the `DomainMapping` resource in the API. Example: - * `apps/myapp/domainMapping/example.com`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Relative name of the domain serving the application. Example: - * `example.com`. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * SSL configuration for this domain. If unconfigured, this domain will not - * serve with SSL. - * - * Generated from protobuf field .google.appengine.v1.SslSettings ssl_settings = 3; - */ - protected $ssl_settings = null; - /** - * The resource records required to configure this domain mapping. These - * records must be added to the domain's DNS configuration in order to - * serve the application via this domain mapping. - * @OutputOnly - * - * Generated from protobuf field repeated .google.appengine.v1.ResourceRecord resource_records = 4; - */ - private $resource_records; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Full path to the `DomainMapping` resource in the API. Example: - * `apps/myapp/domainMapping/example.com`. - * @OutputOnly - * @type string $id - * Relative name of the domain serving the application. Example: - * `example.com`. - * @type \Google\Cloud\AppEngine\V1\SslSettings $ssl_settings - * SSL configuration for this domain. If unconfigured, this domain will not - * serve with SSL. - * @type array<\Google\Cloud\AppEngine\V1\ResourceRecord>|\Google\Protobuf\Internal\RepeatedField $resource_records - * The resource records required to configure this domain mapping. These - * records must be added to the domain's DNS configuration in order to - * serve the application via this domain mapping. - * @OutputOnly - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\DomainMapping::initOnce(); - parent::__construct($data); - } - - /** - * Full path to the `DomainMapping` resource in the API. Example: - * `apps/myapp/domainMapping/example.com`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Full path to the `DomainMapping` resource in the API. Example: - * `apps/myapp/domainMapping/example.com`. - * @OutputOnly - * - * 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; - } - - /** - * Relative name of the domain serving the application. Example: - * `example.com`. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Relative name of the domain serving the application. Example: - * `example.com`. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * SSL configuration for this domain. If unconfigured, this domain will not - * serve with SSL. - * - * Generated from protobuf field .google.appengine.v1.SslSettings ssl_settings = 3; - * @return \Google\Cloud\AppEngine\V1\SslSettings|null - */ - public function getSslSettings() - { - return $this->ssl_settings; - } - - public function hasSslSettings() - { - return isset($this->ssl_settings); - } - - public function clearSslSettings() - { - unset($this->ssl_settings); - } - - /** - * SSL configuration for this domain. If unconfigured, this domain will not - * serve with SSL. - * - * Generated from protobuf field .google.appengine.v1.SslSettings ssl_settings = 3; - * @param \Google\Cloud\AppEngine\V1\SslSettings $var - * @return $this - */ - public function setSslSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\SslSettings::class); - $this->ssl_settings = $var; - - return $this; - } - - /** - * The resource records required to configure this domain mapping. These - * records must be added to the domain's DNS configuration in order to - * serve the application via this domain mapping. - * @OutputOnly - * - * Generated from protobuf field repeated .google.appengine.v1.ResourceRecord resource_records = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceRecords() - { - return $this->resource_records; - } - - /** - * The resource records required to configure this domain mapping. These - * records must be added to the domain's DNS configuration in order to - * serve the application via this domain mapping. - * @OutputOnly - * - * Generated from protobuf field repeated .google.appengine.v1.ResourceRecord resource_records = 4; - * @param array<\Google\Cloud\AppEngine\V1\ResourceRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\ResourceRecord::class); - $this->resource_records = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DomainOverrideStrategy.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DomainOverrideStrategy.php deleted file mode 100644 index ad66bcdff3a6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/DomainOverrideStrategy.php +++ /dev/null @@ -1,66 +0,0 @@ -google.appengine.v1.DomainOverrideStrategy - */ -class DomainOverrideStrategy -{ - /** - * Strategy unspecified. Defaults to `STRICT`. - * - * Generated from protobuf enum UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY = 0; - */ - const UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY = 0; - /** - * Overrides not allowed. If a mapping already exists for the - * specified domain, the request will return an ALREADY_EXISTS (409). - * - * Generated from protobuf enum STRICT = 1; - */ - const STRICT = 1; - /** - * Overrides allowed. If a mapping already exists for the specified domain, - * the request will overwrite it. Note that this might stop another - * Google product from serving. For example, if the domain is - * mapped to another App Engine application, that app will no - * longer serve from that domain. - * - * Generated from protobuf enum OVERRIDE = 2; - */ - const OVERRIDE = 2; - - private static $valueToName = [ - self::UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY => 'UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY', - self::STRICT => 'STRICT', - self::OVERRIDE => 'OVERRIDE', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/EndpointsApiService.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/EndpointsApiService.php deleted file mode 100644 index 9d964b9b01ff..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/EndpointsApiService.php +++ /dev/null @@ -1,222 +0,0 @@ -google.appengine.v1.EndpointsApiService - */ -class EndpointsApiService extends \Google\Protobuf\Internal\Message -{ - /** - * Endpoints service name which is the name of the "service" resource in the - * Service Management API. For example "myapi.endpoints.myproject.cloud.goog" - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Endpoints service configuration ID as specified by the Service Management - * API. For example "2016-09-19r1". - * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. - * This means that Endpoints starts up with a particular configuration ID. - * When a new configuration is rolled out, Endpoints must be given the new - * configuration ID. The `config_id` field is used to give the configuration - * ID and is required in this case. - * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. - * When using this, Endpoints fetches the latest configuration and does not - * need the configuration ID. In this case, `config_id` must be omitted. - * - * Generated from protobuf field string config_id = 2; - */ - protected $config_id = ''; - /** - * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If - * `MANAGED`, `config_id` must be omitted. - * - * Generated from protobuf field .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; - */ - protected $rollout_strategy = 0; - /** - * Enable or disable trace sampling. By default, this is set to false for - * enabled. - * - * Generated from protobuf field bool disable_trace_sampling = 4; - */ - protected $disable_trace_sampling = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Endpoints service name which is the name of the "service" resource in the - * Service Management API. For example "myapi.endpoints.myproject.cloud.goog" - * @type string $config_id - * Endpoints service configuration ID as specified by the Service Management - * API. For example "2016-09-19r1". - * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. - * This means that Endpoints starts up with a particular configuration ID. - * When a new configuration is rolled out, Endpoints must be given the new - * configuration ID. The `config_id` field is used to give the configuration - * ID and is required in this case. - * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. - * When using this, Endpoints fetches the latest configuration and does not - * need the configuration ID. In this case, `config_id` must be omitted. - * @type int $rollout_strategy - * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If - * `MANAGED`, `config_id` must be omitted. - * @type bool $disable_trace_sampling - * Enable or disable trace sampling. By default, this is set to false for - * enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Endpoints service name which is the name of the "service" resource in the - * Service Management API. For example "myapi.endpoints.myproject.cloud.goog" - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Endpoints service name which is the name of the "service" resource in the - * Service Management API. For example "myapi.endpoints.myproject.cloud.goog" - * - * 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; - } - - /** - * Endpoints service configuration ID as specified by the Service Management - * API. For example "2016-09-19r1". - * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. - * This means that Endpoints starts up with a particular configuration ID. - * When a new configuration is rolled out, Endpoints must be given the new - * configuration ID. The `config_id` field is used to give the configuration - * ID and is required in this case. - * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. - * When using this, Endpoints fetches the latest configuration and does not - * need the configuration ID. In this case, `config_id` must be omitted. - * - * Generated from protobuf field string config_id = 2; - * @return string - */ - public function getConfigId() - { - return $this->config_id; - } - - /** - * Endpoints service configuration ID as specified by the Service Management - * API. For example "2016-09-19r1". - * By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. - * This means that Endpoints starts up with a particular configuration ID. - * When a new configuration is rolled out, Endpoints must be given the new - * configuration ID. The `config_id` field is used to give the configuration - * ID and is required in this case. - * Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. - * When using this, Endpoints fetches the latest configuration and does not - * need the configuration ID. In this case, `config_id` must be omitted. - * - * Generated from protobuf field string config_id = 2; - * @param string $var - * @return $this - */ - public function setConfigId($var) - { - GPBUtil::checkString($var, True); - $this->config_id = $var; - - return $this; - } - - /** - * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If - * `MANAGED`, `config_id` must be omitted. - * - * Generated from protobuf field .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; - * @return int - */ - public function getRolloutStrategy() - { - return $this->rollout_strategy; - } - - /** - * Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If - * `MANAGED`, `config_id` must be omitted. - * - * Generated from protobuf field .google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3; - * @param int $var - * @return $this - */ - public function setRolloutStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\EndpointsApiService\RolloutStrategy::class); - $this->rollout_strategy = $var; - - return $this; - } - - /** - * Enable or disable trace sampling. By default, this is set to false for - * enabled. - * - * Generated from protobuf field bool disable_trace_sampling = 4; - * @return bool - */ - public function getDisableTraceSampling() - { - return $this->disable_trace_sampling; - } - - /** - * Enable or disable trace sampling. By default, this is set to false for - * enabled. - * - * Generated from protobuf field bool disable_trace_sampling = 4; - * @param bool $var - * @return $this - */ - public function setDisableTraceSampling($var) - { - GPBUtil::checkBool($var); - $this->disable_trace_sampling = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/EndpointsApiService/RolloutStrategy.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/EndpointsApiService/RolloutStrategy.php deleted file mode 100644 index 1737b3528ab9..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/EndpointsApiService/RolloutStrategy.php +++ /dev/null @@ -1,65 +0,0 @@ -google.appengine.v1.EndpointsApiService.RolloutStrategy - */ -class RolloutStrategy -{ - /** - * Not specified. Defaults to `FIXED`. - * - * Generated from protobuf enum UNSPECIFIED_ROLLOUT_STRATEGY = 0; - */ - const UNSPECIFIED_ROLLOUT_STRATEGY = 0; - /** - * Endpoints service configuration ID will be fixed to the configuration ID - * specified by `config_id`. - * - * Generated from protobuf enum FIXED = 1; - */ - const FIXED = 1; - /** - * Endpoints service configuration ID will be updated with each rollout. - * - * Generated from protobuf enum MANAGED = 2; - */ - const MANAGED = 2; - - private static $valueToName = [ - self::UNSPECIFIED_ROLLOUT_STRATEGY => 'UNSPECIFIED_ROLLOUT_STRATEGY', - self::FIXED => 'FIXED', - self::MANAGED => 'MANAGED', - ]; - - 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(RolloutStrategy::class, \Google\Cloud\AppEngine\V1\EndpointsApiService_RolloutStrategy::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Entrypoint.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Entrypoint.php deleted file mode 100644 index 10446d9a9ffc..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Entrypoint.php +++ /dev/null @@ -1,75 +0,0 @@ -google.appengine.v1.Entrypoint - */ -class Entrypoint extends \Google\Protobuf\Internal\Message -{ - protected $command; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $shell - * The format should be a shell command that can be fed to `bash -c`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The format should be a shell command that can be fed to `bash -c`. - * - * Generated from protobuf field string shell = 1; - * @return string - */ - public function getShell() - { - return $this->readOneof(1); - } - - public function hasShell() - { - return $this->hasOneof(1); - } - - /** - * The format should be a shell command that can be fed to `bash -c`. - * - * Generated from protobuf field string shell = 1; - * @param string $var - * @return $this - */ - public function setShell($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getCommand() - { - return $this->whichOneof("command"); - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ErrorHandler.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ErrorHandler.php deleted file mode 100644 index 2228bf5fc7da..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ErrorHandler.php +++ /dev/null @@ -1,135 +0,0 @@ -google.appengine.v1.ErrorHandler - */ -class ErrorHandler extends \Google\Protobuf\Internal\Message -{ - /** - * Error condition this handler applies to. - * - * Generated from protobuf field .google.appengine.v1.ErrorHandler.ErrorCode error_code = 1; - */ - protected $error_code = 0; - /** - * Static file content to be served for this error. - * - * Generated from protobuf field string static_file = 2; - */ - protected $static_file = ''; - /** - * MIME type of file. Defaults to `text/html`. - * - * Generated from protobuf field string mime_type = 3; - */ - protected $mime_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $error_code - * Error condition this handler applies to. - * @type string $static_file - * Static file content to be served for this error. - * @type string $mime_type - * MIME type of file. Defaults to `text/html`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * Error condition this handler applies to. - * - * Generated from protobuf field .google.appengine.v1.ErrorHandler.ErrorCode error_code = 1; - * @return int - */ - public function getErrorCode() - { - return $this->error_code; - } - - /** - * Error condition this handler applies to. - * - * Generated from protobuf field .google.appengine.v1.ErrorHandler.ErrorCode error_code = 1; - * @param int $var - * @return $this - */ - public function setErrorCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\ErrorHandler\ErrorCode::class); - $this->error_code = $var; - - return $this; - } - - /** - * Static file content to be served for this error. - * - * Generated from protobuf field string static_file = 2; - * @return string - */ - public function getStaticFile() - { - return $this->static_file; - } - - /** - * Static file content to be served for this error. - * - * Generated from protobuf field string static_file = 2; - * @param string $var - * @return $this - */ - public function setStaticFile($var) - { - GPBUtil::checkString($var, True); - $this->static_file = $var; - - return $this; - } - - /** - * MIME type of file. Defaults to `text/html`. - * - * Generated from protobuf field string mime_type = 3; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * MIME type of file. Defaults to `text/html`. - * - * Generated from protobuf field string mime_type = 3; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ErrorHandler/ErrorCode.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ErrorHandler/ErrorCode.php deleted file mode 100644 index 703016dc1025..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ErrorHandler/ErrorCode.php +++ /dev/null @@ -1,79 +0,0 @@ -google.appengine.v1.ErrorHandler.ErrorCode - */ -class ErrorCode -{ - /** - * Not specified. ERROR_CODE_DEFAULT is assumed. - * - * Generated from protobuf enum ERROR_CODE_UNSPECIFIED = 0; - */ - const ERROR_CODE_UNSPECIFIED = 0; - /** - * All other error types. - * - * Generated from protobuf enum ERROR_CODE_DEFAULT = 0; - */ - const ERROR_CODE_DEFAULT = 0; - /** - * Application has exceeded a resource quota. - * - * Generated from protobuf enum ERROR_CODE_OVER_QUOTA = 1; - */ - const ERROR_CODE_OVER_QUOTA = 1; - /** - * Client blocked by the application's Denial of Service protection - * configuration. - * - * Generated from protobuf enum ERROR_CODE_DOS_API_DENIAL = 2; - */ - const ERROR_CODE_DOS_API_DENIAL = 2; - /** - * Deadline reached before the application responds. - * - * Generated from protobuf enum ERROR_CODE_TIMEOUT = 3; - */ - const ERROR_CODE_TIMEOUT = 3; - - private static $valueToName = [ - self::ERROR_CODE_UNSPECIFIED => 'ERROR_CODE_UNSPECIFIED', - self::ERROR_CODE_DEFAULT => 'ERROR_CODE_DEFAULT', - self::ERROR_CODE_OVER_QUOTA => 'ERROR_CODE_OVER_QUOTA', - self::ERROR_CODE_DOS_API_DENIAL => 'ERROR_CODE_DOS_API_DENIAL', - self::ERROR_CODE_TIMEOUT => 'ERROR_CODE_TIMEOUT', - ]; - - 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(ErrorCode::class, \Google\Cloud\AppEngine\V1\ErrorHandler_ErrorCode::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FileInfo.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FileInfo.php deleted file mode 100644 index 630278cae021..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FileInfo.php +++ /dev/null @@ -1,148 +0,0 @@ -google.appengine.v1.FileInfo - */ -class FileInfo extends \Google\Protobuf\Internal\Message -{ - /** - * URL source to use to fetch this file. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * - * Generated from protobuf field string source_url = 1; - */ - protected $source_url = ''; - /** - * The SHA1 hash of the file, in hex. - * - * Generated from protobuf field string sha1_sum = 2; - */ - protected $sha1_sum = ''; - /** - * The MIME type of the file. - * Defaults to the value from Google Cloud Storage. - * - * Generated from protobuf field string mime_type = 3; - */ - protected $mime_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_url - * URL source to use to fetch this file. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * @type string $sha1_sum - * The SHA1 hash of the file, in hex. - * @type string $mime_type - * The MIME type of the file. - * Defaults to the value from Google Cloud Storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Deploy::initOnce(); - parent::__construct($data); - } - - /** - * URL source to use to fetch this file. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * - * Generated from protobuf field string source_url = 1; - * @return string - */ - public function getSourceUrl() - { - return $this->source_url; - } - - /** - * URL source to use to fetch this file. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * - * Generated from protobuf field string source_url = 1; - * @param string $var - * @return $this - */ - public function setSourceUrl($var) - { - GPBUtil::checkString($var, True); - $this->source_url = $var; - - return $this; - } - - /** - * The SHA1 hash of the file, in hex. - * - * Generated from protobuf field string sha1_sum = 2; - * @return string - */ - public function getSha1Sum() - { - return $this->sha1_sum; - } - - /** - * The SHA1 hash of the file, in hex. - * - * Generated from protobuf field string sha1_sum = 2; - * @param string $var - * @return $this - */ - public function setSha1Sum($var) - { - GPBUtil::checkString($var, True); - $this->sha1_sum = $var; - - return $this; - } - - /** - * The MIME type of the file. - * Defaults to the value from Google Cloud Storage. - * - * Generated from protobuf field string mime_type = 3; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * The MIME type of the file. - * Defaults to the value from Google Cloud Storage. - * - * Generated from protobuf field string mime_type = 3; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FirewallRule.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FirewallRule.php deleted file mode 100644 index c229ed39234c..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FirewallRule.php +++ /dev/null @@ -1,222 +0,0 @@ -google.appengine.v1.FirewallRule - */ -class FirewallRule extends \Google\Protobuf\Internal\Message -{ - /** - * A positive integer between [1, Int32.MaxValue-1] that defines the order of - * rule evaluation. Rules with the lowest priority are evaluated first. - * A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic - * when no previous rule matches. Only the action of this rule can be modified - * by the user. - * - * Generated from protobuf field int32 priority = 1; - */ - protected $priority = 0; - /** - * The action to take on matched requests. - * - * Generated from protobuf field .google.appengine.v1.FirewallRule.Action action = 2; - */ - protected $action = 0; - /** - * IP address or range, defined using CIDR notation, of requests that this - * rule applies to. You can use the wildcard character "*" to match all IPs - * equivalent to "0/0" and "::/0" together. - * Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` - * or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. - *

Truncation will be silently performed on addresses which are not - * properly truncated. For example, `1.2.3.4/24` is accepted as the same - * address as `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` is accepted - * as the same address as `2001:db8::/32`. - * - * Generated from protobuf field string source_range = 3; - */ - protected $source_range = ''; - /** - * An optional string description of this rule. - * This field has a maximum length of 100 characters. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $priority - * A positive integer between [1, Int32.MaxValue-1] that defines the order of - * rule evaluation. Rules with the lowest priority are evaluated first. - * A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic - * when no previous rule matches. Only the action of this rule can be modified - * by the user. - * @type int $action - * The action to take on matched requests. - * @type string $source_range - * IP address or range, defined using CIDR notation, of requests that this - * rule applies to. You can use the wildcard character "*" to match all IPs - * equivalent to "0/0" and "::/0" together. - * Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` - * or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. - *

Truncation will be silently performed on addresses which are not - * properly truncated. For example, `1.2.3.4/24` is accepted as the same - * address as `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` is accepted - * as the same address as `2001:db8::/32`. - * @type string $description - * An optional string description of this rule. - * This field has a maximum length of 100 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Firewall::initOnce(); - parent::__construct($data); - } - - /** - * A positive integer between [1, Int32.MaxValue-1] that defines the order of - * rule evaluation. Rules with the lowest priority are evaluated first. - * A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic - * when no previous rule matches. Only the action of this rule can be modified - * by the user. - * - * Generated from protobuf field int32 priority = 1; - * @return int - */ - public function getPriority() - { - return $this->priority; - } - - /** - * A positive integer between [1, Int32.MaxValue-1] that defines the order of - * rule evaluation. Rules with the lowest priority are evaluated first. - * A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic - * when no previous rule matches. Only the action of this rule can be modified - * by the user. - * - * Generated from protobuf field int32 priority = 1; - * @param int $var - * @return $this - */ - public function setPriority($var) - { - GPBUtil::checkInt32($var); - $this->priority = $var; - - return $this; - } - - /** - * The action to take on matched requests. - * - * Generated from protobuf field .google.appengine.v1.FirewallRule.Action action = 2; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The action to take on matched requests. - * - * Generated from protobuf field .google.appengine.v1.FirewallRule.Action action = 2; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\FirewallRule\Action::class); - $this->action = $var; - - return $this; - } - - /** - * IP address or range, defined using CIDR notation, of requests that this - * rule applies to. You can use the wildcard character "*" to match all IPs - * equivalent to "0/0" and "::/0" together. - * Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` - * or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. - *

Truncation will be silently performed on addresses which are not - * properly truncated. For example, `1.2.3.4/24` is accepted as the same - * address as `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` is accepted - * as the same address as `2001:db8::/32`. - * - * Generated from protobuf field string source_range = 3; - * @return string - */ - public function getSourceRange() - { - return $this->source_range; - } - - /** - * IP address or range, defined using CIDR notation, of requests that this - * rule applies to. You can use the wildcard character "*" to match all IPs - * equivalent to "0/0" and "::/0" together. - * Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` - * or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. - *

Truncation will be silently performed on addresses which are not - * properly truncated. For example, `1.2.3.4/24` is accepted as the same - * address as `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` is accepted - * as the same address as `2001:db8::/32`. - * - * Generated from protobuf field string source_range = 3; - * @param string $var - * @return $this - */ - public function setSourceRange($var) - { - GPBUtil::checkString($var, True); - $this->source_range = $var; - - return $this; - } - - /** - * An optional string description of this rule. - * This field has a maximum length of 100 characters. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * An optional string description of this rule. - * This field has a maximum length of 100 characters. - * - * Generated from protobuf field string description = 4; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FirewallRule/Action.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FirewallRule/Action.php deleted file mode 100644 index f7867762a4a6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/FirewallRule/Action.php +++ /dev/null @@ -1,62 +0,0 @@ -google.appengine.v1.FirewallRule.Action - */ -class Action -{ - /** - * Generated from protobuf enum UNSPECIFIED_ACTION = 0; - */ - const UNSPECIFIED_ACTION = 0; - /** - * Matching requests are allowed. - * - * Generated from protobuf enum ALLOW = 1; - */ - const ALLOW = 1; - /** - * Matching requests are denied. - * - * Generated from protobuf enum DENY = 2; - */ - const DENY = 2; - - private static $valueToName = [ - self::UNSPECIFIED_ACTION => 'UNSPECIFIED_ACTION', - self::ALLOW => 'ALLOW', - self::DENY => 'DENY', - ]; - - 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(Action::class, \Google\Cloud\AppEngine\V1\FirewallRule_Action::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetApplicationRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetApplicationRequest.php deleted file mode 100644 index 25f8fab9e500..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetApplicationRequest.php +++ /dev/null @@ -1,80 +0,0 @@ -google.appengine.v1.GetApplicationRequest - */ -class GetApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Application resource to get. Example: `apps/myapp`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * @param string $name Name of the Application resource to get. Example: `apps/myapp`. - * - * @return \Google\Cloud\AppEngine\V1\GetApplicationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the Application resource to get. Example: `apps/myapp`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Application resource to get. Example: `apps/myapp`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the Application resource to get. Example: `apps/myapp`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetAuthorizedCertificateRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetAuthorizedCertificateRequest.php deleted file mode 100644 index 41ddf83b8942..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetAuthorizedCertificateRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.appengine.v1.GetAuthorizedCertificateRequest - */ -class GetAuthorizedCertificateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Controls the set of fields returned in the `GET` response. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificateView view = 2; - */ - protected $view = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: - * `apps/myapp/authorizedCertificates/12345`. - * @type int $view - * Controls the set of fields returned in the `GET` response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * 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; - } - - /** - * Controls the set of fields returned in the `GET` response. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificateView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Controls the set of fields returned in the `GET` response. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificateView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\AuthorizedCertificateView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetDomainMappingRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetDomainMappingRequest.php deleted file mode 100644 index 8e6d0a8b5c6a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetDomainMappingRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.GetDomainMappingRequest - */ -class GetDomainMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: - * `apps/myapp/domainMappings/example.com`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: - * `apps/myapp/domainMappings/example.com`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/domainMappings/example.com`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/domainMappings/example.com`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetIngressRuleRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetIngressRuleRequest.php deleted file mode 100644 index 37edcae8acb3..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetIngressRuleRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.GetIngressRuleRequest - */ -class GetIngressRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Firewall resource to retrieve. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the Firewall resource to retrieve. - * Example: `apps/myapp/firewall/ingressRules/100`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Firewall resource to retrieve. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the Firewall resource to retrieve. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetInstanceRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetInstanceRequest.php deleted file mode 100644 index 5d1574e3987d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetInstanceRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.GetInstanceRequest - */ -class GetInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetServiceRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetServiceRequest.php deleted file mode 100644 index f5ffe3d0c844..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetServiceRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.appengine.v1.GetServiceRequest - */ -class GetServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: `apps/myapp/services/default`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: `apps/myapp/services/default`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: `apps/myapp/services/default`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: `apps/myapp/services/default`. - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetVersionRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetVersionRequest.php deleted file mode 100644 index ae922ed4d71f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/GetVersionRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.appengine.v1.GetVersionRequest - */ -class GetVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Controls the set of fields returned in the `Get` response. - * - * Generated from protobuf field .google.appengine.v1.VersionView view = 2; - */ - protected $view = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * @type int $view - * Controls the set of fields returned in the `Get` response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. - * - * 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; - } - - /** - * Controls the set of fields returned in the `Get` response. - * - * Generated from protobuf field .google.appengine.v1.VersionView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Controls the set of fields returned in the `Get` response. - * - * Generated from protobuf field .google.appengine.v1.VersionView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\VersionView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/HealthCheck.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/HealthCheck.php deleted file mode 100644 index d87b993a72e2..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/HealthCheck.php +++ /dev/null @@ -1,309 +0,0 @@ -google.appengine.v1.HealthCheck - */ -class HealthCheck extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to explicitly disable health checks for this instance. - * - * Generated from protobuf field bool disable_health_check = 1; - */ - protected $disable_health_check = false; - /** - * Host header to send when performing an HTTP health check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - */ - protected $host = ''; - /** - * Number of consecutive successful health checks required before receiving - * traffic. - * - * Generated from protobuf field uint32 healthy_threshold = 3; - */ - protected $healthy_threshold = 0; - /** - * Number of consecutive failed health checks required before removing - * traffic. - * - * Generated from protobuf field uint32 unhealthy_threshold = 4; - */ - protected $unhealthy_threshold = 0; - /** - * Number of consecutive failed health checks required before an instance is - * restarted. - * - * Generated from protobuf field uint32 restart_threshold = 5; - */ - protected $restart_threshold = 0; - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 6; - */ - protected $check_interval = null; - /** - * Time before the health check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 7; - */ - protected $timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disable_health_check - * Whether to explicitly disable health checks for this instance. - * @type string $host - * Host header to send when performing an HTTP health check. - * Example: "myapp.appspot.com" - * @type int $healthy_threshold - * Number of consecutive successful health checks required before receiving - * traffic. - * @type int $unhealthy_threshold - * Number of consecutive failed health checks required before removing - * traffic. - * @type int $restart_threshold - * Number of consecutive failed health checks required before an instance is - * restarted. - * @type \Google\Protobuf\Duration $check_interval - * Interval between health checks. - * @type \Google\Protobuf\Duration $timeout - * Time before the health check is considered failed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * Whether to explicitly disable health checks for this instance. - * - * Generated from protobuf field bool disable_health_check = 1; - * @return bool - */ - public function getDisableHealthCheck() - { - return $this->disable_health_check; - } - - /** - * Whether to explicitly disable health checks for this instance. - * - * Generated from protobuf field bool disable_health_check = 1; - * @param bool $var - * @return $this - */ - public function setDisableHealthCheck($var) - { - GPBUtil::checkBool($var); - $this->disable_health_check = $var; - - return $this; - } - - /** - * Host header to send when performing an HTTP health check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - * @return string - */ - public function getHost() - { - return $this->host; - } - - /** - * Host header to send when performing an HTTP health check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - * @param string $var - * @return $this - */ - public function setHost($var) - { - GPBUtil::checkString($var, True); - $this->host = $var; - - return $this; - } - - /** - * Number of consecutive successful health checks required before receiving - * traffic. - * - * Generated from protobuf field uint32 healthy_threshold = 3; - * @return int - */ - public function getHealthyThreshold() - { - return $this->healthy_threshold; - } - - /** - * Number of consecutive successful health checks required before receiving - * traffic. - * - * Generated from protobuf field uint32 healthy_threshold = 3; - * @param int $var - * @return $this - */ - public function setHealthyThreshold($var) - { - GPBUtil::checkUint32($var); - $this->healthy_threshold = $var; - - return $this; - } - - /** - * Number of consecutive failed health checks required before removing - * traffic. - * - * Generated from protobuf field uint32 unhealthy_threshold = 4; - * @return int - */ - public function getUnhealthyThreshold() - { - return $this->unhealthy_threshold; - } - - /** - * Number of consecutive failed health checks required before removing - * traffic. - * - * Generated from protobuf field uint32 unhealthy_threshold = 4; - * @param int $var - * @return $this - */ - public function setUnhealthyThreshold($var) - { - GPBUtil::checkUint32($var); - $this->unhealthy_threshold = $var; - - return $this; - } - - /** - * Number of consecutive failed health checks required before an instance is - * restarted. - * - * Generated from protobuf field uint32 restart_threshold = 5; - * @return int - */ - public function getRestartThreshold() - { - return $this->restart_threshold; - } - - /** - * Number of consecutive failed health checks required before an instance is - * restarted. - * - * Generated from protobuf field uint32 restart_threshold = 5; - * @param int $var - * @return $this - */ - public function setRestartThreshold($var) - { - GPBUtil::checkUint32($var); - $this->restart_threshold = $var; - - return $this; - } - - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 6; - * @return \Google\Protobuf\Duration|null - */ - public function getCheckInterval() - { - return $this->check_interval; - } - - public function hasCheckInterval() - { - return isset($this->check_interval); - } - - public function clearCheckInterval() - { - unset($this->check_interval); - } - - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 6; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setCheckInterval($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->check_interval = $var; - - return $this; - } - - /** - * Time before the health check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 7; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeout() - { - return $this->timeout; - } - - public function hasTimeout() - { - return isset($this->timeout); - } - - public function clearTimeout() - { - unset($this->timeout); - } - - /** - * Time before the health check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 7; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/InboundServiceType.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/InboundServiceType.php deleted file mode 100644 index f209feec6b5c..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/InboundServiceType.php +++ /dev/null @@ -1,104 +0,0 @@ -google.appengine.v1.InboundServiceType - */ -class InboundServiceType -{ - /** - * Not specified. - * - * Generated from protobuf enum INBOUND_SERVICE_UNSPECIFIED = 0; - */ - const INBOUND_SERVICE_UNSPECIFIED = 0; - /** - * Allows an application to receive mail. - * - * Generated from protobuf enum INBOUND_SERVICE_MAIL = 1; - */ - const INBOUND_SERVICE_MAIL = 1; - /** - * Allows an application to receive email-bound notifications. - * - * Generated from protobuf enum INBOUND_SERVICE_MAIL_BOUNCE = 2; - */ - const INBOUND_SERVICE_MAIL_BOUNCE = 2; - /** - * Allows an application to receive error stanzas. - * - * Generated from protobuf enum INBOUND_SERVICE_XMPP_ERROR = 3; - */ - const INBOUND_SERVICE_XMPP_ERROR = 3; - /** - * Allows an application to receive instant messages. - * - * Generated from protobuf enum INBOUND_SERVICE_XMPP_MESSAGE = 4; - */ - const INBOUND_SERVICE_XMPP_MESSAGE = 4; - /** - * Allows an application to receive user subscription POSTs. - * - * Generated from protobuf enum INBOUND_SERVICE_XMPP_SUBSCRIBE = 5; - */ - const INBOUND_SERVICE_XMPP_SUBSCRIBE = 5; - /** - * Allows an application to receive a user's chat presence. - * - * Generated from protobuf enum INBOUND_SERVICE_XMPP_PRESENCE = 6; - */ - const INBOUND_SERVICE_XMPP_PRESENCE = 6; - /** - * Registers an application for notifications when a client connects or - * disconnects from a channel. - * - * Generated from protobuf enum INBOUND_SERVICE_CHANNEL_PRESENCE = 7; - */ - const INBOUND_SERVICE_CHANNEL_PRESENCE = 7; - /** - * Enables warmup requests. - * - * Generated from protobuf enum INBOUND_SERVICE_WARMUP = 9; - */ - const INBOUND_SERVICE_WARMUP = 9; - - private static $valueToName = [ - self::INBOUND_SERVICE_UNSPECIFIED => 'INBOUND_SERVICE_UNSPECIFIED', - self::INBOUND_SERVICE_MAIL => 'INBOUND_SERVICE_MAIL', - self::INBOUND_SERVICE_MAIL_BOUNCE => 'INBOUND_SERVICE_MAIL_BOUNCE', - self::INBOUND_SERVICE_XMPP_ERROR => 'INBOUND_SERVICE_XMPP_ERROR', - self::INBOUND_SERVICE_XMPP_MESSAGE => 'INBOUND_SERVICE_XMPP_MESSAGE', - self::INBOUND_SERVICE_XMPP_SUBSCRIBE => 'INBOUND_SERVICE_XMPP_SUBSCRIBE', - self::INBOUND_SERVICE_XMPP_PRESENCE => 'INBOUND_SERVICE_XMPP_PRESENCE', - self::INBOUND_SERVICE_CHANNEL_PRESENCE => 'INBOUND_SERVICE_CHANNEL_PRESENCE', - self::INBOUND_SERVICE_WARMUP => 'INBOUND_SERVICE_WARMUP', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance.php deleted file mode 100644 index 853f45476d69..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance.php +++ /dev/null @@ -1,662 +0,0 @@ -google.appengine.v1.Instance - */ -class Instance extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Full path to the Instance resource in the API. - * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Relative name of the instance within the version. - * Example: `instance-1`. - * - * Generated from protobuf field string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $id = ''; - /** - * Output only. App Engine release this instance is running on. - * - * Generated from protobuf field string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $app_engine_release = ''; - /** - * Output only. Availability of the instance. - * - * Generated from protobuf field .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $availability = 0; - /** - * Output only. Name of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * - * Generated from protobuf field string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vm_name = ''; - /** - * Output only. Zone where the virtual machine is located. Only applicable for instances - * in App Engine flexible environment. - * - * Generated from protobuf field string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vm_zone_name = ''; - /** - * Output only. Virtual machine ID of this instance. Only applicable for instances in - * App Engine flexible environment. - * - * Generated from protobuf field string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vm_id = ''; - /** - * Output only. Time that this instance was started. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Number of requests since this instance was started. - * - * Generated from protobuf field int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requests = 0; - /** - * Output only. Number of errors since this instance was started. - * - * Generated from protobuf field int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $errors = 0; - /** - * Output only. Average queries per second (QPS) over the last minute. - * - * Generated from protobuf field float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $qps = 0.0; - /** - * Output only. Average latency (ms) over the last minute. - * - * Generated from protobuf field int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $average_latency = 0; - /** - * Output only. Total memory in use (bytes). - * - * Generated from protobuf field int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $memory_usage = 0; - /** - * Output only. Status of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * - * Generated from protobuf field string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vm_status = ''; - /** - * Output only. Whether this instance is in debug mode. Only applicable for instances in - * App Engine flexible environment. - * - * Generated from protobuf field bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vm_debug_enabled = false; - /** - * Output only. The IP address of this instance. Only applicable for instances in App - * Engine flexible environment. - * - * Generated from protobuf field string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vm_ip = ''; - /** - * Output only. The liveness health check of this instance. Only applicable for instances - * in App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $vm_liveness = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Full path to the Instance resource in the API. - * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. - * @type string $id - * Output only. Relative name of the instance within the version. - * Example: `instance-1`. - * @type string $app_engine_release - * Output only. App Engine release this instance is running on. - * @type int $availability - * Output only. Availability of the instance. - * @type string $vm_name - * Output only. Name of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * @type string $vm_zone_name - * Output only. Zone where the virtual machine is located. Only applicable for instances - * in App Engine flexible environment. - * @type string $vm_id - * Output only. Virtual machine ID of this instance. Only applicable for instances in - * App Engine flexible environment. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Time that this instance was started. - * @OutputOnly - * @type int $requests - * Output only. Number of requests since this instance was started. - * @type int $errors - * Output only. Number of errors since this instance was started. - * @type float $qps - * Output only. Average queries per second (QPS) over the last minute. - * @type int $average_latency - * Output only. Average latency (ms) over the last minute. - * @type int|string $memory_usage - * Output only. Total memory in use (bytes). - * @type string $vm_status - * Output only. Status of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * @type bool $vm_debug_enabled - * Output only. Whether this instance is in debug mode. Only applicable for instances in - * App Engine flexible environment. - * @type string $vm_ip - * Output only. The IP address of this instance. Only applicable for instances in App - * Engine flexible environment. - * @type int $vm_liveness - * Output only. The liveness health check of this instance. Only applicable for instances - * in App Engine flexible environment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Full path to the Instance resource in the API. - * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Full path to the Instance resource in the API. - * Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. - * - * 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. Relative name of the instance within the version. - * Example: `instance-1`. - * - * Generated from protobuf field string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. Relative name of the instance within the version. - * Example: `instance-1`. - * - * Generated from protobuf field string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Output only. App Engine release this instance is running on. - * - * Generated from protobuf field string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAppEngineRelease() - { - return $this->app_engine_release; - } - - /** - * Output only. App Engine release this instance is running on. - * - * Generated from protobuf field string app_engine_release = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAppEngineRelease($var) - { - GPBUtil::checkString($var, True); - $this->app_engine_release = $var; - - return $this; - } - - /** - * Output only. Availability of the instance. - * - * Generated from protobuf field .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAvailability() - { - return $this->availability; - } - - /** - * Output only. Availability of the instance. - * - * Generated from protobuf field .google.appengine.v1.Instance.Availability availability = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAvailability($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\Instance\Availability::class); - $this->availability = $var; - - return $this; - } - - /** - * Output only. Name of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * - * Generated from protobuf field string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVmName() - { - return $this->vm_name; - } - - /** - * Output only. Name of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * - * Generated from protobuf field string vm_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVmName($var) - { - GPBUtil::checkString($var, True); - $this->vm_name = $var; - - return $this; - } - - /** - * Output only. Zone where the virtual machine is located. Only applicable for instances - * in App Engine flexible environment. - * - * Generated from protobuf field string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVmZoneName() - { - return $this->vm_zone_name; - } - - /** - * Output only. Zone where the virtual machine is located. Only applicable for instances - * in App Engine flexible environment. - * - * Generated from protobuf field string vm_zone_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVmZoneName($var) - { - GPBUtil::checkString($var, True); - $this->vm_zone_name = $var; - - return $this; - } - - /** - * Output only. Virtual machine ID of this instance. Only applicable for instances in - * App Engine flexible environment. - * - * Generated from protobuf field string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVmId() - { - return $this->vm_id; - } - - /** - * Output only. Virtual machine ID of this instance. Only applicable for instances in - * App Engine flexible environment. - * - * Generated from protobuf field string vm_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVmId($var) - { - GPBUtil::checkString($var, True); - $this->vm_id = $var; - - return $this; - } - - /** - * Output only. Time that this instance was started. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Time that this instance was started. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Number of requests since this instance was started. - * - * Generated from protobuf field int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Output only. Number of requests since this instance was started. - * - * Generated from protobuf field int32 requests = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRequests($var) - { - GPBUtil::checkInt32($var); - $this->requests = $var; - - return $this; - } - - /** - * Output only. Number of errors since this instance was started. - * - * Generated from protobuf field int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. Number of errors since this instance was started. - * - * Generated from protobuf field int32 errors = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setErrors($var) - { - GPBUtil::checkInt32($var); - $this->errors = $var; - - return $this; - } - - /** - * Output only. Average queries per second (QPS) over the last minute. - * - * Generated from protobuf field float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getQps() - { - return $this->qps; - } - - /** - * Output only. Average queries per second (QPS) over the last minute. - * - * Generated from protobuf field float qps = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setQps($var) - { - GPBUtil::checkFloat($var); - $this->qps = $var; - - return $this; - } - - /** - * Output only. Average latency (ms) over the last minute. - * - * Generated from protobuf field int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAverageLatency() - { - return $this->average_latency; - } - - /** - * Output only. Average latency (ms) over the last minute. - * - * Generated from protobuf field int32 average_latency = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAverageLatency($var) - { - GPBUtil::checkInt32($var); - $this->average_latency = $var; - - return $this; - } - - /** - * Output only. Total memory in use (bytes). - * - * Generated from protobuf field int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMemoryUsage() - { - return $this->memory_usage; - } - - /** - * Output only. Total memory in use (bytes). - * - * Generated from protobuf field int64 memory_usage = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMemoryUsage($var) - { - GPBUtil::checkInt64($var); - $this->memory_usage = $var; - - return $this; - } - - /** - * Output only. Status of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * - * Generated from protobuf field string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVmStatus() - { - return $this->vm_status; - } - - /** - * Output only. Status of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. - * - * Generated from protobuf field string vm_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVmStatus($var) - { - GPBUtil::checkString($var, True); - $this->vm_status = $var; - - return $this; - } - - /** - * Output only. Whether this instance is in debug mode. Only applicable for instances in - * App Engine flexible environment. - * - * Generated from protobuf field bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getVmDebugEnabled() - { - return $this->vm_debug_enabled; - } - - /** - * Output only. Whether this instance is in debug mode. Only applicable for instances in - * App Engine flexible environment. - * - * Generated from protobuf field bool vm_debug_enabled = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setVmDebugEnabled($var) - { - GPBUtil::checkBool($var); - $this->vm_debug_enabled = $var; - - return $this; - } - - /** - * Output only. The IP address of this instance. Only applicable for instances in App - * Engine flexible environment. - * - * Generated from protobuf field string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVmIp() - { - return $this->vm_ip; - } - - /** - * Output only. The IP address of this instance. Only applicable for instances in App - * Engine flexible environment. - * - * Generated from protobuf field string vm_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVmIp($var) - { - GPBUtil::checkString($var, True); - $this->vm_ip = $var; - - return $this; - } - - /** - * Output only. The liveness health check of this instance. Only applicable for instances - * in App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getVmLiveness() - { - return $this->vm_liveness; - } - - /** - * Output only. The liveness health check of this instance. Only applicable for instances - * in App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Instance.Liveness.LivenessState vm_liveness = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setVmLiveness($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\Instance\Liveness\LivenessState::class); - $this->vm_liveness = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Availability.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Availability.php deleted file mode 100644 index 7f13bdbfc40c..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Availability.php +++ /dev/null @@ -1,58 +0,0 @@ -google.appengine.v1.Instance.Availability - */ -class Availability -{ - /** - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Generated from protobuf enum RESIDENT = 1; - */ - const RESIDENT = 1; - /** - * Generated from protobuf enum DYNAMIC = 2; - */ - const DYNAMIC = 2; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::RESIDENT => 'RESIDENT', - self::DYNAMIC => 'DYNAMIC', - ]; - - 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(Availability::class, \Google\Cloud\AppEngine\V1\Instance_Availability::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Liveness.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Liveness.php deleted file mode 100644 index 3aa59e5191db..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Liveness.php +++ /dev/null @@ -1,36 +0,0 @@ -google.appengine.v1.Instance.Liveness - */ -class Liveness extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Instance::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Liveness::class, \Google\Cloud\AppEngine\V1\Instance_Liveness::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Liveness/LivenessState.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Liveness/LivenessState.php deleted file mode 100644 index 5f8c35df8eda..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Instance/Liveness/LivenessState.php +++ /dev/null @@ -1,93 +0,0 @@ -google.appengine.v1.Instance.Liveness.LivenessState - */ -class LivenessState -{ - /** - * There is no liveness health check for the instance. Only applicable for - * instances in App Engine standard environment. - * - * Generated from protobuf enum LIVENESS_STATE_UNSPECIFIED = 0; - */ - const LIVENESS_STATE_UNSPECIFIED = 0; - /** - * The health checking system is aware of the instance but its health is - * not known at the moment. - * - * Generated from protobuf enum UNKNOWN = 1; - */ - const UNKNOWN = 1; - /** - * The instance is reachable i.e. a connection to the application health - * checking endpoint can be established, and conforms to the requirements - * defined by the health check. - * - * Generated from protobuf enum HEALTHY = 2; - */ - const HEALTHY = 2; - /** - * The instance is reachable, but does not conform to the requirements - * defined by the health check. - * - * Generated from protobuf enum UNHEALTHY = 3; - */ - const UNHEALTHY = 3; - /** - * The instance is being drained. The existing connections to the instance - * have time to complete, but the new ones are being refused. - * - * Generated from protobuf enum DRAINING = 4; - */ - const DRAINING = 4; - /** - * The instance is unreachable i.e. a connection to the application health - * checking endpoint cannot be established, or the server does not respond - * within the specified timeout. - * - * Generated from protobuf enum TIMEOUT = 5; - */ - const TIMEOUT = 5; - - private static $valueToName = [ - self::LIVENESS_STATE_UNSPECIFIED => 'LIVENESS_STATE_UNSPECIFIED', - self::UNKNOWN => 'UNKNOWN', - self::HEALTHY => 'HEALTHY', - self::UNHEALTHY => 'UNHEALTHY', - self::DRAINING => 'DRAINING', - self::TIMEOUT => 'TIMEOUT', - ]; - - 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(LivenessState::class, \Google\Cloud\AppEngine\V1\Instance_Liveness_LivenessState::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Library.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Library.php deleted file mode 100644 index e63ca7327b43..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Library.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.Library - */ -class Library extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the library. Example: "django". - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Version of the library to select, or "latest". - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the library. Example: "django". - * @type string $version - * Version of the library to select, or "latest". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * Name of the library. Example: "django". - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the library. Example: "django". - * - * 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; - } - - /** - * Version of the library to select, or "latest". - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of the library to select, or "latest". - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedCertificatesRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedCertificatesRequest.php deleted file mode 100644 index f076ef3bd7c3..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedCertificatesRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.appengine.v1.ListAuthorizedCertificatesRequest - */ -class ListAuthorizedCertificatesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent `Application` resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Controls the set of fields returned in the `LIST` response. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificateView view = 4; - */ - protected $view = 0; - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Continuation token for fetching the next page of results. - * - * 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 - * Name of the parent `Application` resource. Example: `apps/myapp`. - * @type int $view - * Controls the set of fields returned in the `LIST` response. - * @type int $page_size - * Maximum results to return per page. - * @type string $page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent `Application` resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent `Application` resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Controls the set of fields returned in the `LIST` response. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificateView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Controls the set of fields returned in the `LIST` response. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificateView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\AuthorizedCertificateView::class); - $this->view = $var; - - return $this; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum results to return per page. - * - * 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; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedCertificatesResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedCertificatesResponse.php deleted file mode 100644 index 38b1b9cb99bb..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedCertificatesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ListAuthorizedCertificatesResponse - */ -class ListAuthorizedCertificatesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The SSL certificates the user is authorized to administer. - * - * Generated from protobuf field repeated .google.appengine.v1.AuthorizedCertificate certificates = 1; - */ - private $certificates; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\AuthorizedCertificate>|\Google\Protobuf\Internal\RepeatedField $certificates - * The SSL certificates the user is authorized to administer. - * @type string $next_page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The SSL certificates the user is authorized to administer. - * - * Generated from protobuf field repeated .google.appengine.v1.AuthorizedCertificate certificates = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCertificates() - { - return $this->certificates; - } - - /** - * The SSL certificates the user is authorized to administer. - * - * Generated from protobuf field repeated .google.appengine.v1.AuthorizedCertificate certificates = 1; - * @param array<\Google\Cloud\AppEngine\V1\AuthorizedCertificate>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCertificates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\AuthorizedCertificate::class); - $this->certificates = $arr; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedDomainsRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedDomainsRequest.php deleted file mode 100644 index ec9f7ecb9401..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedDomainsRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.appengine.v1.ListAuthorizedDomainsRequest - */ -class ListAuthorizedDomainsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Continuation token for fetching the next page of results. - * - * 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 - * Name of the parent Application resource. Example: `apps/myapp`. - * @type int $page_size - * Maximum results to return per page. - * @type string $page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum results to return per page. - * - * 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; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedDomainsResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedDomainsResponse.php deleted file mode 100644 index 06eb119c0c85..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListAuthorizedDomainsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ListAuthorizedDomainsResponse - */ -class ListAuthorizedDomainsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The authorized domains belonging to the user. - * - * Generated from protobuf field repeated .google.appengine.v1.AuthorizedDomain domains = 1; - */ - private $domains; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\AuthorizedDomain>|\Google\Protobuf\Internal\RepeatedField $domains - * The authorized domains belonging to the user. - * @type string $next_page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The authorized domains belonging to the user. - * - * Generated from protobuf field repeated .google.appengine.v1.AuthorizedDomain domains = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDomains() - { - return $this->domains; - } - - /** - * The authorized domains belonging to the user. - * - * Generated from protobuf field repeated .google.appengine.v1.AuthorizedDomain domains = 1; - * @param array<\Google\Cloud\AppEngine\V1\AuthorizedDomain>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDomains($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\AuthorizedDomain::class); - $this->domains = $arr; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListDomainMappingsRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListDomainMappingsRequest.php deleted file mode 100644 index 2b6ef0e2d1d1..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListDomainMappingsRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.appengine.v1.ListDomainMappingsRequest - */ -class ListDomainMappingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Continuation token for fetching the next page of results. - * - * 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 - * Name of the parent Application resource. Example: `apps/myapp`. - * @type int $page_size - * Maximum results to return per page. - * @type string $page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum results to return per page. - * - * 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; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListDomainMappingsResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListDomainMappingsResponse.php deleted file mode 100644 index 50dbf0b1447d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListDomainMappingsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ListDomainMappingsResponse - */ -class ListDomainMappingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The domain mappings for the application. - * - * Generated from protobuf field repeated .google.appengine.v1.DomainMapping domain_mappings = 1; - */ - private $domain_mappings; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\DomainMapping>|\Google\Protobuf\Internal\RepeatedField $domain_mappings - * The domain mappings for the application. - * @type string $next_page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The domain mappings for the application. - * - * Generated from protobuf field repeated .google.appengine.v1.DomainMapping domain_mappings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDomainMappings() - { - return $this->domain_mappings; - } - - /** - * The domain mappings for the application. - * - * Generated from protobuf field repeated .google.appengine.v1.DomainMapping domain_mappings = 1; - * @param array<\Google\Cloud\AppEngine\V1\DomainMapping>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDomainMappings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\DomainMapping::class); - $this->domain_mappings = $arr; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListIngressRulesRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListIngressRulesRequest.php deleted file mode 100644 index 1cedf08b305b..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListIngressRulesRequest.php +++ /dev/null @@ -1,181 +0,0 @@ -google.appengine.v1.ListIngressRulesRequest - */ -class ListIngressRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Firewall collection to retrieve. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A valid IP Address. If set, only rules matching this address will be - * returned. The first returned rule will be the rule that fires on requests - * from this IP. - * - * Generated from protobuf field string matching_address = 4; - */ - protected $matching_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Name of the Firewall collection to retrieve. - * Example: `apps/myapp/firewall/ingressRules`. - * @type int $page_size - * Maximum results to return per page. - * @type string $page_token - * Continuation token for fetching the next page of results. - * @type string $matching_address - * A valid IP Address. If set, only rules matching this address will be - * returned. The first returned rule will be the rule that fires on requests - * from this IP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Firewall collection to retrieve. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the Firewall collection to retrieve. - * Example: `apps/myapp/firewall/ingressRules`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum results to return per page. - * - * 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; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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; - } - - /** - * A valid IP Address. If set, only rules matching this address will be - * returned. The first returned rule will be the rule that fires on requests - * from this IP. - * - * Generated from protobuf field string matching_address = 4; - * @return string - */ - public function getMatchingAddress() - { - return $this->matching_address; - } - - /** - * A valid IP Address. If set, only rules matching this address will be - * returned. The first returned rule will be the rule that fires on requests - * from this IP. - * - * Generated from protobuf field string matching_address = 4; - * @param string $var - * @return $this - */ - public function setMatchingAddress($var) - { - GPBUtil::checkString($var, True); - $this->matching_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListIngressRulesResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListIngressRulesResponse.php deleted file mode 100644 index 6b096e735b29..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListIngressRulesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ListIngressRulesResponse - */ -class ListIngressRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The ingress FirewallRules for this application. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 1; - */ - private $ingress_rules; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\FirewallRule>|\Google\Protobuf\Internal\RepeatedField $ingress_rules - * The ingress FirewallRules for this application. - * @type string $next_page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The ingress FirewallRules for this application. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIngressRules() - { - return $this->ingress_rules; - } - - /** - * The ingress FirewallRules for this application. - * - * Generated from protobuf field repeated .google.appengine.v1.FirewallRule ingress_rules = 1; - * @param array<\Google\Cloud\AppEngine\V1\FirewallRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIngressRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\FirewallRule::class); - $this->ingress_rules = $arr; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListInstancesRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListInstancesRequest.php deleted file mode 100644 index 507603adf354..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListInstancesRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.appengine.v1.ListInstancesRequest - */ -class ListInstancesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent Version resource. Example: - * `apps/myapp/services/default/versions/v1`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Continuation token for fetching the next page of results. - * - * 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 - * Name of the parent Version resource. Example: - * `apps/myapp/services/default/versions/v1`. - * @type int $page_size - * Maximum results to return per page. - * @type string $page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent Version resource. Example: - * `apps/myapp/services/default/versions/v1`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent Version resource. Example: - * `apps/myapp/services/default/versions/v1`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum results to return per page. - * - * 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; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListInstancesResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListInstancesResponse.php deleted file mode 100644 index 013474591dcc..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListInstancesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ListInstancesResponse - */ -class ListInstancesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The instances belonging to the requested version. - * - * Generated from protobuf field repeated .google.appengine.v1.Instance instances = 1; - */ - private $instances; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $instances - * The instances belonging to the requested version. - * @type string $next_page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The instances belonging to the requested version. - * - * Generated from protobuf field repeated .google.appengine.v1.Instance instances = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstances() - { - return $this->instances; - } - - /** - * The instances belonging to the requested version. - * - * Generated from protobuf field repeated .google.appengine.v1.Instance instances = 1; - * @param array<\Google\Cloud\AppEngine\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstances($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\Instance::class); - $this->instances = $arr; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListServicesRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListServicesRequest.php deleted file mode 100644 index 02f514926bae..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListServicesRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.appengine.v1.ListServicesRequest - */ -class ListServicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Continuation token for fetching the next page of results. - * - * 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 - * Name of the parent Application resource. Example: `apps/myapp`. - * @type int $page_size - * Maximum results to return per page. - * @type string $page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent Application resource. Example: `apps/myapp`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum results to return per page. - * - * 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; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListServicesResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListServicesResponse.php deleted file mode 100644 index 44509bc73c90..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListServicesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ListServicesResponse - */ -class ListServicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The services belonging to the requested application. - * - * Generated from protobuf field repeated .google.appengine.v1.Service services = 1; - */ - private $services; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\Service>|\Google\Protobuf\Internal\RepeatedField $services - * The services belonging to the requested application. - * @type string $next_page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The services belonging to the requested application. - * - * Generated from protobuf field repeated .google.appengine.v1.Service services = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServices() - { - return $this->services; - } - - /** - * The services belonging to the requested application. - * - * Generated from protobuf field repeated .google.appengine.v1.Service services = 1; - * @param array<\Google\Cloud\AppEngine\V1\Service>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\Service::class); - $this->services = $arr; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListVersionsRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListVersionsRequest.php deleted file mode 100644 index d734bc711741..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListVersionsRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.appengine.v1.ListVersionsRequest - */ -class ListVersionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the parent Service resource. Example: - * `apps/myapp/services/default`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Controls the set of fields returned in the `List` response. - * - * Generated from protobuf field .google.appengine.v1.VersionView view = 2; - */ - protected $view = 0; - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Name of the parent Service resource. Example: - * `apps/myapp/services/default`. - * @type int $view - * Controls the set of fields returned in the `List` response. - * @type int $page_size - * Maximum results to return per page. - * @type string $page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the parent Service resource. Example: - * `apps/myapp/services/default`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Name of the parent Service resource. Example: - * `apps/myapp/services/default`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Controls the set of fields returned in the `List` response. - * - * Generated from protobuf field .google.appengine.v1.VersionView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Controls the set of fields returned in the `List` response. - * - * Generated from protobuf field .google.appengine.v1.VersionView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\VersionView::class); - $this->view = $var; - - return $this; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum results to return per page. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListVersionsResponse.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListVersionsResponse.php deleted file mode 100644 index d8f4beec2bdc..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ListVersionsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ListVersionsResponse - */ -class ListVersionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The versions belonging to the requested service. - * - * Generated from protobuf field repeated .google.appengine.v1.Version versions = 1; - */ - private $versions; - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppEngine\V1\Version>|\Google\Protobuf\Internal\RepeatedField $versions - * The versions belonging to the requested service. - * @type string $next_page_token - * Continuation token for fetching the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * The versions belonging to the requested service. - * - * Generated from protobuf field repeated .google.appengine.v1.Version versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersions() - { - return $this->versions; - } - - /** - * The versions belonging to the requested service. - * - * Generated from protobuf field repeated .google.appengine.v1.Version versions = 1; - * @param array<\Google\Cloud\AppEngine\V1\Version>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\Version::class); - $this->versions = $arr; - - return $this; - } - - /** - * Continuation token for fetching the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token for fetching the next page of results. - * - * 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LivenessCheck.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LivenessCheck.php deleted file mode 100644 index e924b7cca822..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LivenessCheck.php +++ /dev/null @@ -1,314 +0,0 @@ -google.appengine.v1.LivenessCheck - */ -class LivenessCheck extends \Google\Protobuf\Internal\Message -{ - /** - * The request path. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * Host header to send when performing a HTTP Liveness check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - */ - protected $host = ''; - /** - * Number of consecutive failed checks required before considering the - * VM unhealthy. - * - * Generated from protobuf field uint32 failure_threshold = 3; - */ - protected $failure_threshold = 0; - /** - * Number of consecutive successful checks required before considering - * the VM healthy. - * - * Generated from protobuf field uint32 success_threshold = 4; - */ - protected $success_threshold = 0; - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 5; - */ - protected $check_interval = null; - /** - * Time before the check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - */ - protected $timeout = null; - /** - * The initial delay before starting to execute the checks. - * - * Generated from protobuf field .google.protobuf.Duration initial_delay = 7; - */ - protected $initial_delay = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * The request path. - * @type string $host - * Host header to send when performing a HTTP Liveness check. - * Example: "myapp.appspot.com" - * @type int $failure_threshold - * Number of consecutive failed checks required before considering the - * VM unhealthy. - * @type int $success_threshold - * Number of consecutive successful checks required before considering - * the VM healthy. - * @type \Google\Protobuf\Duration $check_interval - * Interval between health checks. - * @type \Google\Protobuf\Duration $timeout - * Time before the check is considered failed. - * @type \Google\Protobuf\Duration $initial_delay - * The initial delay before starting to execute the checks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * The request path. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The request path. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Host header to send when performing a HTTP Liveness check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - * @return string - */ - public function getHost() - { - return $this->host; - } - - /** - * Host header to send when performing a HTTP Liveness check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - * @param string $var - * @return $this - */ - public function setHost($var) - { - GPBUtil::checkString($var, True); - $this->host = $var; - - return $this; - } - - /** - * Number of consecutive failed checks required before considering the - * VM unhealthy. - * - * Generated from protobuf field uint32 failure_threshold = 3; - * @return int - */ - public function getFailureThreshold() - { - return $this->failure_threshold; - } - - /** - * Number of consecutive failed checks required before considering the - * VM unhealthy. - * - * Generated from protobuf field uint32 failure_threshold = 3; - * @param int $var - * @return $this - */ - public function setFailureThreshold($var) - { - GPBUtil::checkUint32($var); - $this->failure_threshold = $var; - - return $this; - } - - /** - * Number of consecutive successful checks required before considering - * the VM healthy. - * - * Generated from protobuf field uint32 success_threshold = 4; - * @return int - */ - public function getSuccessThreshold() - { - return $this->success_threshold; - } - - /** - * Number of consecutive successful checks required before considering - * the VM healthy. - * - * Generated from protobuf field uint32 success_threshold = 4; - * @param int $var - * @return $this - */ - public function setSuccessThreshold($var) - { - GPBUtil::checkUint32($var); - $this->success_threshold = $var; - - return $this; - } - - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getCheckInterval() - { - return $this->check_interval; - } - - public function hasCheckInterval() - { - return isset($this->check_interval); - } - - public function clearCheckInterval() - { - unset($this->check_interval); - } - - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setCheckInterval($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->check_interval = $var; - - return $this; - } - - /** - * Time before the check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeout() - { - return $this->timeout; - } - - public function hasTimeout() - { - return isset($this->timeout); - } - - public function clearTimeout() - { - unset($this->timeout); - } - - /** - * Time before the check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->timeout = $var; - - return $this; - } - - /** - * The initial delay before starting to execute the checks. - * - * Generated from protobuf field .google.protobuf.Duration initial_delay = 7; - * @return \Google\Protobuf\Duration|null - */ - public function getInitialDelay() - { - return $this->initial_delay; - } - - public function hasInitialDelay() - { - return isset($this->initial_delay); - } - - public function clearInitialDelay() - { - unset($this->initial_delay); - } - - /** - * The initial delay before starting to execute the checks. - * - * Generated from protobuf field .google.protobuf.Duration initial_delay = 7; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setInitialDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->initial_delay = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LocationMetadata.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LocationMetadata.php deleted file mode 100644 index 3530b83d0fb9..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LocationMetadata.php +++ /dev/null @@ -1,147 +0,0 @@ -google.appengine.v1.LocationMetadata - */ -class LocationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * App Engine standard environment is available in the given location. - * @OutputOnly - * - * Generated from protobuf field bool standard_environment_available = 2; - */ - protected $standard_environment_available = false; - /** - * App Engine flexible environment is available in the given location. - * @OutputOnly - * - * Generated from protobuf field bool flexible_environment_available = 4; - */ - protected $flexible_environment_available = false; - /** - * Output only. [Search API](https://cloud.google.com/appengine/docs/standard/python/search) - * is available in the given location. - * - * Generated from protobuf field bool search_api_available = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $search_api_available = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $standard_environment_available - * App Engine standard environment is available in the given location. - * @OutputOnly - * @type bool $flexible_environment_available - * App Engine flexible environment is available in the given location. - * @OutputOnly - * @type bool $search_api_available - * Output only. [Search API](https://cloud.google.com/appengine/docs/standard/python/search) - * is available in the given location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Location::initOnce(); - parent::__construct($data); - } - - /** - * App Engine standard environment is available in the given location. - * @OutputOnly - * - * Generated from protobuf field bool standard_environment_available = 2; - * @return bool - */ - public function getStandardEnvironmentAvailable() - { - return $this->standard_environment_available; - } - - /** - * App Engine standard environment is available in the given location. - * @OutputOnly - * - * Generated from protobuf field bool standard_environment_available = 2; - * @param bool $var - * @return $this - */ - public function setStandardEnvironmentAvailable($var) - { - GPBUtil::checkBool($var); - $this->standard_environment_available = $var; - - return $this; - } - - /** - * App Engine flexible environment is available in the given location. - * @OutputOnly - * - * Generated from protobuf field bool flexible_environment_available = 4; - * @return bool - */ - public function getFlexibleEnvironmentAvailable() - { - return $this->flexible_environment_available; - } - - /** - * App Engine flexible environment is available in the given location. - * @OutputOnly - * - * Generated from protobuf field bool flexible_environment_available = 4; - * @param bool $var - * @return $this - */ - public function setFlexibleEnvironmentAvailable($var) - { - GPBUtil::checkBool($var); - $this->flexible_environment_available = $var; - - return $this; - } - - /** - * Output only. [Search API](https://cloud.google.com/appengine/docs/standard/python/search) - * is available in the given location. - * - * Generated from protobuf field bool search_api_available = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSearchApiAvailable() - { - return $this->search_api_available; - } - - /** - * Output only. [Search API](https://cloud.google.com/appengine/docs/standard/python/search) - * is available in the given location. - * - * Generated from protobuf field bool search_api_available = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSearchApiAvailable($var) - { - GPBUtil::checkBool($var); - $this->search_api_available = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LoginRequirement.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LoginRequirement.php deleted file mode 100644 index c251a4d8b63f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/LoginRequirement.php +++ /dev/null @@ -1,73 +0,0 @@ -google.appengine.v1.LoginRequirement - */ -class LoginRequirement -{ - /** - * Not specified. `LOGIN_OPTIONAL` is assumed. - * - * Generated from protobuf enum LOGIN_UNSPECIFIED = 0; - */ - const LOGIN_UNSPECIFIED = 0; - /** - * Does not require that the user is signed in. - * - * Generated from protobuf enum LOGIN_OPTIONAL = 1; - */ - const LOGIN_OPTIONAL = 1; - /** - * If the user is not signed in, the `auth_fail_action` is taken. - * In addition, if the user is not an administrator for the - * application, they are given an error message regardless of - * `auth_fail_action`. If the user is an administrator, the handler - * proceeds. - * - * Generated from protobuf enum LOGIN_ADMIN = 2; - */ - const LOGIN_ADMIN = 2; - /** - * If the user has signed in, the handler proceeds normally. Otherwise, the - * auth_fail_action is taken. - * - * Generated from protobuf enum LOGIN_REQUIRED = 3; - */ - const LOGIN_REQUIRED = 3; - - private static $valueToName = [ - self::LOGIN_UNSPECIFIED => 'LOGIN_UNSPECIFIED', - self::LOGIN_OPTIONAL => 'LOGIN_OPTIONAL', - self::LOGIN_ADMIN => 'LOGIN_ADMIN', - self::LOGIN_REQUIRED => 'LOGIN_REQUIRED', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManagedCertificate.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManagedCertificate.php deleted file mode 100644 index 0a4ad9261204..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManagedCertificate.php +++ /dev/null @@ -1,131 +0,0 @@ -google.appengine.v1.ManagedCertificate - */ -class ManagedCertificate extends \Google\Protobuf\Internal\Message -{ - /** - * Time at which the certificate was last renewed. The renewal process is - * fully managed. Certificate renewal will automatically occur before the - * certificate expires. Renewal errors can be tracked via `ManagementStatus`. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp last_renewal_time = 1; - */ - protected $last_renewal_time = null; - /** - * Status of certificate management. Refers to the most recent certificate - * acquisition or renewal attempt. - * @OutputOnly - * - * Generated from protobuf field .google.appengine.v1.ManagementStatus status = 2; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $last_renewal_time - * Time at which the certificate was last renewed. The renewal process is - * fully managed. Certificate renewal will automatically occur before the - * certificate expires. Renewal errors can be tracked via `ManagementStatus`. - * @OutputOnly - * @type int $status - * Status of certificate management. Refers to the most recent certificate - * acquisition or renewal attempt. - * @OutputOnly - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Certificate::initOnce(); - parent::__construct($data); - } - - /** - * Time at which the certificate was last renewed. The renewal process is - * fully managed. Certificate renewal will automatically occur before the - * certificate expires. Renewal errors can be tracked via `ManagementStatus`. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp last_renewal_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastRenewalTime() - { - return $this->last_renewal_time; - } - - public function hasLastRenewalTime() - { - return isset($this->last_renewal_time); - } - - public function clearLastRenewalTime() - { - unset($this->last_renewal_time); - } - - /** - * Time at which the certificate was last renewed. The renewal process is - * fully managed. Certificate renewal will automatically occur before the - * certificate expires. Renewal errors can be tracked via `ManagementStatus`. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp last_renewal_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastRenewalTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_renewal_time = $var; - - return $this; - } - - /** - * Status of certificate management. Refers to the most recent certificate - * acquisition or renewal attempt. - * @OutputOnly - * - * Generated from protobuf field .google.appengine.v1.ManagementStatus status = 2; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of certificate management. Refers to the most recent certificate - * acquisition or renewal attempt. - * @OutputOnly - * - * Generated from protobuf field .google.appengine.v1.ManagementStatus status = 2; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\ManagementStatus::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManagementStatus.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManagementStatus.php deleted file mode 100644 index ba022f0e7c51..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManagementStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -google.appengine.v1.ManagementStatus - */ -class ManagementStatus -{ - /** - * Generated from protobuf enum MANAGEMENT_STATUS_UNSPECIFIED = 0; - */ - const MANAGEMENT_STATUS_UNSPECIFIED = 0; - /** - * Certificate was successfully obtained and inserted into the serving - * system. - * - * Generated from protobuf enum OK = 1; - */ - const OK = 1; - /** - * Certificate is under active attempts to acquire or renew. - * - * Generated from protobuf enum PENDING = 2; - */ - const PENDING = 2; - /** - * Most recent renewal failed due to an invalid DNS setup and will be - * retried. Renewal attempts will continue to fail until the certificate - * domain's DNS configuration is fixed. The last successfully provisioned - * certificate may still be serving. - * - * Generated from protobuf enum FAILED_RETRYING_NOT_VISIBLE = 4; - */ - const FAILED_RETRYING_NOT_VISIBLE = 4; - /** - * All renewal attempts have been exhausted, likely due to an invalid DNS - * setup. - * - * Generated from protobuf enum FAILED_PERMANENT = 6; - */ - const FAILED_PERMANENT = 6; - /** - * Most recent renewal failed due to an explicit CAA record that does not - * include one of the in-use CAs (Google CA and Let's Encrypt). Renewals will - * continue to fail until the CAA is reconfigured. The last successfully - * provisioned certificate may still be serving. - * - * Generated from protobuf enum FAILED_RETRYING_CAA_FORBIDDEN = 7; - */ - const FAILED_RETRYING_CAA_FORBIDDEN = 7; - /** - * Most recent renewal failed due to a CAA retrieval failure. This means that - * the domain's DNS provider does not properly handle CAA records, failing - * requests for CAA records when no CAA records are defined. Renewals will - * continue to fail until the DNS provider is changed or a CAA record is - * added for the given domain. The last successfully provisioned certificate - * may still be serving. - * - * Generated from protobuf enum FAILED_RETRYING_CAA_CHECKING = 8; - */ - const FAILED_RETRYING_CAA_CHECKING = 8; - - private static $valueToName = [ - self::MANAGEMENT_STATUS_UNSPECIFIED => 'MANAGEMENT_STATUS_UNSPECIFIED', - self::OK => 'OK', - self::PENDING => 'PENDING', - self::FAILED_RETRYING_NOT_VISIBLE => 'FAILED_RETRYING_NOT_VISIBLE', - self::FAILED_PERMANENT => 'FAILED_PERMANENT', - self::FAILED_RETRYING_CAA_FORBIDDEN => 'FAILED_RETRYING_CAA_FORBIDDEN', - self::FAILED_RETRYING_CAA_CHECKING => 'FAILED_RETRYING_CAA_CHECKING', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManualScaling.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManualScaling.php deleted file mode 100644 index 8ba9147619d3..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ManualScaling.php +++ /dev/null @@ -1,80 +0,0 @@ -google.appengine.v1.ManualScaling - */ -class ManualScaling extends \Google\Protobuf\Internal\Message -{ - /** - * Number of instances to assign to the service at the start. This number - * can later be altered by using the - * [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions) - * `set_num_instances()` function. - * - * Generated from protobuf field int32 instances = 1; - */ - protected $instances = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $instances - * Number of instances to assign to the service at the start. This number - * can later be altered by using the - * [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions) - * `set_num_instances()` function. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Number of instances to assign to the service at the start. This number - * can later be altered by using the - * [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions) - * `set_num_instances()` function. - * - * Generated from protobuf field int32 instances = 1; - * @return int - */ - public function getInstances() - { - return $this->instances; - } - - /** - * Number of instances to assign to the service at the start. This number - * can later be altered by using the - * [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions) - * `set_num_instances()` function. - * - * Generated from protobuf field int32 instances = 1; - * @param int $var - * @return $this - */ - public function setInstances($var) - { - GPBUtil::checkInt32($var); - $this->instances = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Network.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Network.php deleted file mode 100644 index 037888adcf7f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Network.php +++ /dev/null @@ -1,284 +0,0 @@ -google.appengine.v1.Network - */ -class Network extends \Google\Protobuf\Internal\Message -{ - /** - * List of ports, or port pairs, to forward from the virtual machine to the - * application container. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field repeated string forwarded_ports = 1; - */ - private $forwarded_ports; - /** - * Tag to apply to the instance during creation. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field string instance_tag = 2; - */ - protected $instance_tag = ''; - /** - * Google Compute Engine network where the virtual machines are created. - * Specify the short name, not the resource path. - * Defaults to `default`. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * Google Cloud Platform sub-network where the virtual machines are created. - * Specify the short name, not the resource path. - * If a subnetwork name is specified, a network name will also be required - * unless it is for the default network. - * * If the network that the instance is being created in is a Legacy network, - * then the IP address is allocated from the IPv4Range. - * * If the network that the instance is being created in is an auto Subnet - * Mode Network, then only network name should be specified (not the - * subnetwork_name) and the IP address is created from the IPCidrRange of the - * subnetwork that exists in that zone for that network. - * * If the network that the instance is being created in is a custom Subnet - * Mode Network, then the subnetwork_name must be specified and the - * IP address is created from the IPCidrRange of the subnetwork. - * If specified, the subnetwork must exist in the same region as the - * App Engine flexible environment application. - * - * Generated from protobuf field string subnetwork_name = 4; - */ - protected $subnetwork_name = ''; - /** - * Enable session affinity. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field bool session_affinity = 5; - */ - protected $session_affinity = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $forwarded_ports - * List of ports, or port pairs, to forward from the virtual machine to the - * application container. - * Only applicable in the App Engine flexible environment. - * @type string $instance_tag - * Tag to apply to the instance during creation. - * Only applicable in the App Engine flexible environment. - * @type string $name - * Google Compute Engine network where the virtual machines are created. - * Specify the short name, not the resource path. - * Defaults to `default`. - * @type string $subnetwork_name - * Google Cloud Platform sub-network where the virtual machines are created. - * Specify the short name, not the resource path. - * If a subnetwork name is specified, a network name will also be required - * unless it is for the default network. - * * If the network that the instance is being created in is a Legacy network, - * then the IP address is allocated from the IPv4Range. - * * If the network that the instance is being created in is an auto Subnet - * Mode Network, then only network name should be specified (not the - * subnetwork_name) and the IP address is created from the IPCidrRange of the - * subnetwork that exists in that zone for that network. - * * If the network that the instance is being created in is a custom Subnet - * Mode Network, then the subnetwork_name must be specified and the - * IP address is created from the IPCidrRange of the subnetwork. - * If specified, the subnetwork must exist in the same region as the - * App Engine flexible environment application. - * @type bool $session_affinity - * Enable session affinity. - * Only applicable in the App Engine flexible environment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * List of ports, or port pairs, to forward from the virtual machine to the - * application container. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field repeated string forwarded_ports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getForwardedPorts() - { - return $this->forwarded_ports; - } - - /** - * List of ports, or port pairs, to forward from the virtual machine to the - * application container. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field repeated string forwarded_ports = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setForwardedPorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->forwarded_ports = $arr; - - return $this; - } - - /** - * Tag to apply to the instance during creation. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field string instance_tag = 2; - * @return string - */ - public function getInstanceTag() - { - return $this->instance_tag; - } - - /** - * Tag to apply to the instance during creation. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field string instance_tag = 2; - * @param string $var - * @return $this - */ - public function setInstanceTag($var) - { - GPBUtil::checkString($var, True); - $this->instance_tag = $var; - - return $this; - } - - /** - * Google Compute Engine network where the virtual machines are created. - * Specify the short name, not the resource path. - * Defaults to `default`. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Google Compute Engine network where the virtual machines are created. - * Specify the short name, not the resource path. - * Defaults to `default`. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Google Cloud Platform sub-network where the virtual machines are created. - * Specify the short name, not the resource path. - * If a subnetwork name is specified, a network name will also be required - * unless it is for the default network. - * * If the network that the instance is being created in is a Legacy network, - * then the IP address is allocated from the IPv4Range. - * * If the network that the instance is being created in is an auto Subnet - * Mode Network, then only network name should be specified (not the - * subnetwork_name) and the IP address is created from the IPCidrRange of the - * subnetwork that exists in that zone for that network. - * * If the network that the instance is being created in is a custom Subnet - * Mode Network, then the subnetwork_name must be specified and the - * IP address is created from the IPCidrRange of the subnetwork. - * If specified, the subnetwork must exist in the same region as the - * App Engine flexible environment application. - * - * Generated from protobuf field string subnetwork_name = 4; - * @return string - */ - public function getSubnetworkName() - { - return $this->subnetwork_name; - } - - /** - * Google Cloud Platform sub-network where the virtual machines are created. - * Specify the short name, not the resource path. - * If a subnetwork name is specified, a network name will also be required - * unless it is for the default network. - * * If the network that the instance is being created in is a Legacy network, - * then the IP address is allocated from the IPv4Range. - * * If the network that the instance is being created in is an auto Subnet - * Mode Network, then only network name should be specified (not the - * subnetwork_name) and the IP address is created from the IPCidrRange of the - * subnetwork that exists in that zone for that network. - * * If the network that the instance is being created in is a custom Subnet - * Mode Network, then the subnetwork_name must be specified and the - * IP address is created from the IPCidrRange of the subnetwork. - * If specified, the subnetwork must exist in the same region as the - * App Engine flexible environment application. - * - * Generated from protobuf field string subnetwork_name = 4; - * @param string $var - * @return $this - */ - public function setSubnetworkName($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork_name = $var; - - return $this; - } - - /** - * Enable session affinity. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field bool session_affinity = 5; - * @return bool - */ - public function getSessionAffinity() - { - return $this->session_affinity; - } - - /** - * Enable session affinity. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field bool session_affinity = 5; - * @param bool $var - * @return $this - */ - public function setSessionAffinity($var) - { - GPBUtil::checkBool($var); - $this->session_affinity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkSettings.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkSettings.php deleted file mode 100644 index 45776cd47066..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkSettings.php +++ /dev/null @@ -1,68 +0,0 @@ -google.appengine.v1.NetworkSettings - */ -class NetworkSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The ingress settings for version or service. - * - * Generated from protobuf field .google.appengine.v1.NetworkSettings.IngressTrafficAllowed ingress_traffic_allowed = 1; - */ - protected $ingress_traffic_allowed = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $ingress_traffic_allowed - * The ingress settings for version or service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\NetworkSettings::initOnce(); - parent::__construct($data); - } - - /** - * The ingress settings for version or service. - * - * Generated from protobuf field .google.appengine.v1.NetworkSettings.IngressTrafficAllowed ingress_traffic_allowed = 1; - * @return int - */ - public function getIngressTrafficAllowed() - { - return $this->ingress_traffic_allowed; - } - - /** - * The ingress settings for version or service. - * - * Generated from protobuf field .google.appengine.v1.NetworkSettings.IngressTrafficAllowed ingress_traffic_allowed = 1; - * @param int $var - * @return $this - */ - public function setIngressTrafficAllowed($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\NetworkSettings\IngressTrafficAllowed::class); - $this->ingress_traffic_allowed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkSettings/IngressTrafficAllowed.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkSettings/IngressTrafficAllowed.php deleted file mode 100644 index 7d39efe6ff95..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkSettings/IngressTrafficAllowed.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.NetworkSettings.IngressTrafficAllowed - */ -class IngressTrafficAllowed -{ - /** - * Unspecified - * - * Generated from protobuf enum INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED = 0; - */ - const INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED = 0; - /** - * Allow HTTP traffic from public and private sources. - * - * Generated from protobuf enum INGRESS_TRAFFIC_ALLOWED_ALL = 1; - */ - const INGRESS_TRAFFIC_ALLOWED_ALL = 1; - /** - * Allow HTTP traffic from only private VPC sources. - * - * Generated from protobuf enum INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY = 2; - */ - const INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY = 2; - /** - * Allow HTTP traffic from private VPC sources and through load balancers. - * - * Generated from protobuf enum INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB = 3; - */ - const INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB = 3; - - private static $valueToName = [ - self::INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED => 'INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED', - self::INGRESS_TRAFFIC_ALLOWED_ALL => 'INGRESS_TRAFFIC_ALLOWED_ALL', - self::INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY => 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY', - self::INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB => 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB', - ]; - - 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(IngressTrafficAllowed::class, \Google\Cloud\AppEngine\V1\NetworkSettings_IngressTrafficAllowed::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkUtilization.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkUtilization.php deleted file mode 100644 index acb445f5c189..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/NetworkUtilization.php +++ /dev/null @@ -1,170 +0,0 @@ -google.appengine.v1.NetworkUtilization - */ -class NetworkUtilization extends \Google\Protobuf\Internal\Message -{ - /** - * Target bytes sent per second. - * - * Generated from protobuf field int32 target_sent_bytes_per_second = 1; - */ - protected $target_sent_bytes_per_second = 0; - /** - * Target packets sent per second. - * - * Generated from protobuf field int32 target_sent_packets_per_second = 11; - */ - protected $target_sent_packets_per_second = 0; - /** - * Target bytes received per second. - * - * Generated from protobuf field int32 target_received_bytes_per_second = 12; - */ - protected $target_received_bytes_per_second = 0; - /** - * Target packets received per second. - * - * Generated from protobuf field int32 target_received_packets_per_second = 13; - */ - protected $target_received_packets_per_second = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $target_sent_bytes_per_second - * Target bytes sent per second. - * @type int $target_sent_packets_per_second - * Target packets sent per second. - * @type int $target_received_bytes_per_second - * Target bytes received per second. - * @type int $target_received_packets_per_second - * Target packets received per second. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Target bytes sent per second. - * - * Generated from protobuf field int32 target_sent_bytes_per_second = 1; - * @return int - */ - public function getTargetSentBytesPerSecond() - { - return $this->target_sent_bytes_per_second; - } - - /** - * Target bytes sent per second. - * - * Generated from protobuf field int32 target_sent_bytes_per_second = 1; - * @param int $var - * @return $this - */ - public function setTargetSentBytesPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_sent_bytes_per_second = $var; - - return $this; - } - - /** - * Target packets sent per second. - * - * Generated from protobuf field int32 target_sent_packets_per_second = 11; - * @return int - */ - public function getTargetSentPacketsPerSecond() - { - return $this->target_sent_packets_per_second; - } - - /** - * Target packets sent per second. - * - * Generated from protobuf field int32 target_sent_packets_per_second = 11; - * @param int $var - * @return $this - */ - public function setTargetSentPacketsPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_sent_packets_per_second = $var; - - return $this; - } - - /** - * Target bytes received per second. - * - * Generated from protobuf field int32 target_received_bytes_per_second = 12; - * @return int - */ - public function getTargetReceivedBytesPerSecond() - { - return $this->target_received_bytes_per_second; - } - - /** - * Target bytes received per second. - * - * Generated from protobuf field int32 target_received_bytes_per_second = 12; - * @param int $var - * @return $this - */ - public function setTargetReceivedBytesPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_received_bytes_per_second = $var; - - return $this; - } - - /** - * Target packets received per second. - * - * Generated from protobuf field int32 target_received_packets_per_second = 13; - * @return int - */ - public function getTargetReceivedPacketsPerSecond() - { - return $this->target_received_packets_per_second; - } - - /** - * Target packets received per second. - * - * Generated from protobuf field int32 target_received_packets_per_second = 13; - * @param int $var - * @return $this - */ - public function setTargetReceivedPacketsPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_received_packets_per_second = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/OperationMetadataV1.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/OperationMetadataV1.php deleted file mode 100644 index 7fe4d72cd0fe..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/OperationMetadataV1.php +++ /dev/null @@ -1,364 +0,0 @@ -google.appengine.v1.OperationMetadataV1 - */ -class OperationMetadataV1 extends \Google\Protobuf\Internal\Message -{ - /** - * API method that initiated this operation. Example: - * `google.appengine.v1.Versions.CreateVersion`. - * @OutputOnly - * - * Generated from protobuf field string method = 1; - */ - protected $method = ''; - /** - * Time that this operation was created. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp insert_time = 2; - */ - protected $insert_time = null; - /** - * Time that this operation completed. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - /** - * User who requested this operation. - * @OutputOnly - * - * Generated from protobuf field string user = 4; - */ - protected $user = ''; - /** - * Name of the resource that this operation is acting on. Example: - * `apps/myapp/services/default`. - * @OutputOnly - * - * Generated from protobuf field string target = 5; - */ - protected $target = ''; - /** - * Ephemeral message that may change every time the operation is polled. - * @OutputOnly - * - * Generated from protobuf field string ephemeral_message = 6; - */ - protected $ephemeral_message = ''; - /** - * Durable messages that persist on every operation poll. - * @OutputOnly - * - * Generated from protobuf field repeated string warning = 7; - */ - private $warning; - protected $method_metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $method - * API method that initiated this operation. Example: - * `google.appengine.v1.Versions.CreateVersion`. - * @OutputOnly - * @type \Google\Protobuf\Timestamp $insert_time - * Time that this operation was created. - * @OutputOnly - * @type \Google\Protobuf\Timestamp $end_time - * Time that this operation completed. - * @OutputOnly - * @type string $user - * User who requested this operation. - * @OutputOnly - * @type string $target - * Name of the resource that this operation is acting on. Example: - * `apps/myapp/services/default`. - * @OutputOnly - * @type string $ephemeral_message - * Ephemeral message that may change every time the operation is polled. - * @OutputOnly - * @type array|\Google\Protobuf\Internal\RepeatedField $warning - * Durable messages that persist on every operation poll. - * @OutputOnly - * @type \Google\Cloud\AppEngine\V1\CreateVersionMetadataV1 $create_version_metadata - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Operation::initOnce(); - parent::__construct($data); - } - - /** - * API method that initiated this operation. Example: - * `google.appengine.v1.Versions.CreateVersion`. - * @OutputOnly - * - * Generated from protobuf field string method = 1; - * @return string - */ - public function getMethod() - { - return $this->method; - } - - /** - * API method that initiated this operation. Example: - * `google.appengine.v1.Versions.CreateVersion`. - * @OutputOnly - * - * Generated from protobuf field string method = 1; - * @param string $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkString($var, True); - $this->method = $var; - - return $this; - } - - /** - * Time that this operation was created. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp insert_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getInsertTime() - { - return $this->insert_time; - } - - public function hasInsertTime() - { - return isset($this->insert_time); - } - - public function clearInsertTime() - { - unset($this->insert_time); - } - - /** - * Time that this operation was created. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp insert_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setInsertTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->insert_time = $var; - - return $this; - } - - /** - * Time that this operation completed. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Time that this operation completed. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * User who requested this operation. - * @OutputOnly - * - * Generated from protobuf field string user = 4; - * @return string - */ - public function getUser() - { - return $this->user; - } - - /** - * User who requested this operation. - * @OutputOnly - * - * Generated from protobuf field string user = 4; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->user = $var; - - return $this; - } - - /** - * Name of the resource that this operation is acting on. Example: - * `apps/myapp/services/default`. - * @OutputOnly - * - * Generated from protobuf field string target = 5; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Name of the resource that this operation is acting on. Example: - * `apps/myapp/services/default`. - * @OutputOnly - * - * Generated from protobuf field string target = 5; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Ephemeral message that may change every time the operation is polled. - * @OutputOnly - * - * Generated from protobuf field string ephemeral_message = 6; - * @return string - */ - public function getEphemeralMessage() - { - return $this->ephemeral_message; - } - - /** - * Ephemeral message that may change every time the operation is polled. - * @OutputOnly - * - * Generated from protobuf field string ephemeral_message = 6; - * @param string $var - * @return $this - */ - public function setEphemeralMessage($var) - { - GPBUtil::checkString($var, True); - $this->ephemeral_message = $var; - - return $this; - } - - /** - * Durable messages that persist on every operation poll. - * @OutputOnly - * - * Generated from protobuf field repeated string warning = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWarning() - { - return $this->warning; - } - - /** - * Durable messages that persist on every operation poll. - * @OutputOnly - * - * Generated from protobuf field repeated string warning = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWarning($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->warning = $arr; - - return $this; - } - - /** - * Generated from protobuf field .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8; - * @return \Google\Cloud\AppEngine\V1\CreateVersionMetadataV1|null - */ - public function getCreateVersionMetadata() - { - return $this->readOneof(8); - } - - public function hasCreateVersionMetadata() - { - return $this->hasOneof(8); - } - - /** - * Generated from protobuf field .google.appengine.v1.CreateVersionMetadataV1 create_version_metadata = 8; - * @param \Google\Cloud\AppEngine\V1\CreateVersionMetadataV1 $var - * @return $this - */ - public function setCreateVersionMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\CreateVersionMetadataV1::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getMethodMetadata() - { - return $this->whichOneof("method_metadata"); - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ReadinessCheck.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ReadinessCheck.php deleted file mode 100644 index 25c56a9b3d4e..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ReadinessCheck.php +++ /dev/null @@ -1,322 +0,0 @@ -google.appengine.v1.ReadinessCheck - */ -class ReadinessCheck extends \Google\Protobuf\Internal\Message -{ - /** - * The request path. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * Host header to send when performing a HTTP Readiness check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - */ - protected $host = ''; - /** - * Number of consecutive failed checks required before removing - * traffic. - * - * Generated from protobuf field uint32 failure_threshold = 3; - */ - protected $failure_threshold = 0; - /** - * Number of consecutive successful checks required before receiving - * traffic. - * - * Generated from protobuf field uint32 success_threshold = 4; - */ - protected $success_threshold = 0; - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 5; - */ - protected $check_interval = null; - /** - * Time before the check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - */ - protected $timeout = null; - /** - * A maximum time limit on application initialization, measured from moment - * the application successfully replies to a healthcheck until it is ready to - * serve traffic. - * - * Generated from protobuf field .google.protobuf.Duration app_start_timeout = 7; - */ - protected $app_start_timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * The request path. - * @type string $host - * Host header to send when performing a HTTP Readiness check. - * Example: "myapp.appspot.com" - * @type int $failure_threshold - * Number of consecutive failed checks required before removing - * traffic. - * @type int $success_threshold - * Number of consecutive successful checks required before receiving - * traffic. - * @type \Google\Protobuf\Duration $check_interval - * Interval between health checks. - * @type \Google\Protobuf\Duration $timeout - * Time before the check is considered failed. - * @type \Google\Protobuf\Duration $app_start_timeout - * A maximum time limit on application initialization, measured from moment - * the application successfully replies to a healthcheck until it is ready to - * serve traffic. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * The request path. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The request path. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Host header to send when performing a HTTP Readiness check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - * @return string - */ - public function getHost() - { - return $this->host; - } - - /** - * Host header to send when performing a HTTP Readiness check. - * Example: "myapp.appspot.com" - * - * Generated from protobuf field string host = 2; - * @param string $var - * @return $this - */ - public function setHost($var) - { - GPBUtil::checkString($var, True); - $this->host = $var; - - return $this; - } - - /** - * Number of consecutive failed checks required before removing - * traffic. - * - * Generated from protobuf field uint32 failure_threshold = 3; - * @return int - */ - public function getFailureThreshold() - { - return $this->failure_threshold; - } - - /** - * Number of consecutive failed checks required before removing - * traffic. - * - * Generated from protobuf field uint32 failure_threshold = 3; - * @param int $var - * @return $this - */ - public function setFailureThreshold($var) - { - GPBUtil::checkUint32($var); - $this->failure_threshold = $var; - - return $this; - } - - /** - * Number of consecutive successful checks required before receiving - * traffic. - * - * Generated from protobuf field uint32 success_threshold = 4; - * @return int - */ - public function getSuccessThreshold() - { - return $this->success_threshold; - } - - /** - * Number of consecutive successful checks required before receiving - * traffic. - * - * Generated from protobuf field uint32 success_threshold = 4; - * @param int $var - * @return $this - */ - public function setSuccessThreshold($var) - { - GPBUtil::checkUint32($var); - $this->success_threshold = $var; - - return $this; - } - - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getCheckInterval() - { - return $this->check_interval; - } - - public function hasCheckInterval() - { - return isset($this->check_interval); - } - - public function clearCheckInterval() - { - unset($this->check_interval); - } - - /** - * Interval between health checks. - * - * Generated from protobuf field .google.protobuf.Duration check_interval = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setCheckInterval($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->check_interval = $var; - - return $this; - } - - /** - * Time before the check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeout() - { - return $this->timeout; - } - - public function hasTimeout() - { - return isset($this->timeout); - } - - public function clearTimeout() - { - unset($this->timeout); - } - - /** - * Time before the check is considered failed. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->timeout = $var; - - return $this; - } - - /** - * A maximum time limit on application initialization, measured from moment - * the application successfully replies to a healthcheck until it is ready to - * serve traffic. - * - * Generated from protobuf field .google.protobuf.Duration app_start_timeout = 7; - * @return \Google\Protobuf\Duration|null - */ - public function getAppStartTimeout() - { - return $this->app_start_timeout; - } - - public function hasAppStartTimeout() - { - return isset($this->app_start_timeout); - } - - public function clearAppStartTimeout() - { - unset($this->app_start_timeout); - } - - /** - * A maximum time limit on application initialization, measured from moment - * the application successfully replies to a healthcheck until it is ready to - * serve traffic. - * - * Generated from protobuf field .google.protobuf.Duration app_start_timeout = 7; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setAppStartTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->app_start_timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/RepairApplicationRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/RepairApplicationRequest.php deleted file mode 100644 index 5c32ed212c07..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/RepairApplicationRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.appengine.v1.RepairApplicationRequest - */ -class RepairApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the application to repair. Example: `apps/myapp` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the application to repair. Example: `apps/myapp` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the application to repair. Example: `apps/myapp` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the application to repair. Example: `apps/myapp` - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/RequestUtilization.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/RequestUtilization.php deleted file mode 100644 index 11cd067443ce..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/RequestUtilization.php +++ /dev/null @@ -1,102 +0,0 @@ -google.appengine.v1.RequestUtilization - */ -class RequestUtilization extends \Google\Protobuf\Internal\Message -{ - /** - * Target requests per second. - * - * Generated from protobuf field int32 target_request_count_per_second = 1; - */ - protected $target_request_count_per_second = 0; - /** - * Target number of concurrent requests. - * - * Generated from protobuf field int32 target_concurrent_requests = 2; - */ - protected $target_concurrent_requests = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $target_request_count_per_second - * Target requests per second. - * @type int $target_concurrent_requests - * Target number of concurrent requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Target requests per second. - * - * Generated from protobuf field int32 target_request_count_per_second = 1; - * @return int - */ - public function getTargetRequestCountPerSecond() - { - return $this->target_request_count_per_second; - } - - /** - * Target requests per second. - * - * Generated from protobuf field int32 target_request_count_per_second = 1; - * @param int $var - * @return $this - */ - public function setTargetRequestCountPerSecond($var) - { - GPBUtil::checkInt32($var); - $this->target_request_count_per_second = $var; - - return $this; - } - - /** - * Target number of concurrent requests. - * - * Generated from protobuf field int32 target_concurrent_requests = 2; - * @return int - */ - public function getTargetConcurrentRequests() - { - return $this->target_concurrent_requests; - } - - /** - * Target number of concurrent requests. - * - * Generated from protobuf field int32 target_concurrent_requests = 2; - * @param int $var - * @return $this - */ - public function setTargetConcurrentRequests($var) - { - GPBUtil::checkInt32($var); - $this->target_concurrent_requests = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ResourceRecord.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ResourceRecord.php deleted file mode 100644 index 98a89d893cfd..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ResourceRecord.php +++ /dev/null @@ -1,143 +0,0 @@ -google.appengine.v1.ResourceRecord - */ -class ResourceRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Relative name of the object affected by this record. Only applicable for - * `CNAME` records. Example: 'www'. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Data for this record. Values vary by record type, as defined in RFC 1035 - * (section 5) and RFC 1034 (section 3.6.1). - * - * Generated from protobuf field string rrdata = 2; - */ - protected $rrdata = ''; - /** - * Resource record type. Example: `AAAA`. - * - * Generated from protobuf field .google.appengine.v1.ResourceRecord.RecordType type = 3; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Relative name of the object affected by this record. Only applicable for - * `CNAME` records. Example: 'www'. - * @type string $rrdata - * Data for this record. Values vary by record type, as defined in RFC 1035 - * (section 5) and RFC 1034 (section 3.6.1). - * @type int $type - * Resource record type. Example: `AAAA`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\DomainMapping::initOnce(); - parent::__construct($data); - } - - /** - * Relative name of the object affected by this record. Only applicable for - * `CNAME` records. Example: 'www'. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Relative name of the object affected by this record. Only applicable for - * `CNAME` records. Example: 'www'. - * - * 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; - } - - /** - * Data for this record. Values vary by record type, as defined in RFC 1035 - * (section 5) and RFC 1034 (section 3.6.1). - * - * Generated from protobuf field string rrdata = 2; - * @return string - */ - public function getRrdata() - { - return $this->rrdata; - } - - /** - * Data for this record. Values vary by record type, as defined in RFC 1035 - * (section 5) and RFC 1034 (section 3.6.1). - * - * Generated from protobuf field string rrdata = 2; - * @param string $var - * @return $this - */ - public function setRrdata($var) - { - GPBUtil::checkString($var, True); - $this->rrdata = $var; - - return $this; - } - - /** - * Resource record type. Example: `AAAA`. - * - * Generated from protobuf field .google.appengine.v1.ResourceRecord.RecordType type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Resource record type. Example: `AAAA`. - * - * Generated from protobuf field .google.appengine.v1.ResourceRecord.RecordType type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\ResourceRecord\RecordType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ResourceRecord/RecordType.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ResourceRecord/RecordType.php deleted file mode 100644 index 2f929535d04b..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ResourceRecord/RecordType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.appengine.v1.ResourceRecord.RecordType - */ -class RecordType -{ - /** - * An unknown resource record. - * - * Generated from protobuf enum RECORD_TYPE_UNSPECIFIED = 0; - */ - const RECORD_TYPE_UNSPECIFIED = 0; - /** - * An A resource record. Data is an IPv4 address. - * - * Generated from protobuf enum A = 1; - */ - const A = 1; - /** - * An AAAA resource record. Data is an IPv6 address. - * - * Generated from protobuf enum AAAA = 2; - */ - const AAAA = 2; - /** - * A CNAME resource record. Data is a domain name to be aliased. - * - * Generated from protobuf enum CNAME = 3; - */ - const CNAME = 3; - - private static $valueToName = [ - self::RECORD_TYPE_UNSPECIFIED => 'RECORD_TYPE_UNSPECIFIED', - self::A => 'A', - self::AAAA => 'AAAA', - self::CNAME => 'CNAME', - ]; - - 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(RecordType::class, \Google\Cloud\AppEngine\V1\ResourceRecord_RecordType::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Resources.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Resources.php deleted file mode 100644 index 43a41dca065b..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Resources.php +++ /dev/null @@ -1,207 +0,0 @@ -google.appengine.v1.Resources - */ -class Resources extends \Google\Protobuf\Internal\Message -{ - /** - * Number of CPU cores needed. - * - * Generated from protobuf field double cpu = 1; - */ - protected $cpu = 0.0; - /** - * Disk size (GB) needed. - * - * Generated from protobuf field double disk_gb = 2; - */ - protected $disk_gb = 0.0; - /** - * Memory (GB) needed. - * - * Generated from protobuf field double memory_gb = 3; - */ - protected $memory_gb = 0.0; - /** - * User specified volumes. - * - * Generated from protobuf field repeated .google.appengine.v1.Volume volumes = 4; - */ - private $volumes; - /** - * The name of the encryption key that is stored in Google Cloud KMS. - * Only should be used by Cloud Composer to encrypt the vm disk - * - * Generated from protobuf field string kms_key_reference = 5; - */ - protected $kms_key_reference = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $cpu - * Number of CPU cores needed. - * @type float $disk_gb - * Disk size (GB) needed. - * @type float $memory_gb - * Memory (GB) needed. - * @type array<\Google\Cloud\AppEngine\V1\Volume>|\Google\Protobuf\Internal\RepeatedField $volumes - * User specified volumes. - * @type string $kms_key_reference - * The name of the encryption key that is stored in Google Cloud KMS. - * Only should be used by Cloud Composer to encrypt the vm disk - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Number of CPU cores needed. - * - * Generated from protobuf field double cpu = 1; - * @return float - */ - public function getCpu() - { - return $this->cpu; - } - - /** - * Number of CPU cores needed. - * - * Generated from protobuf field double cpu = 1; - * @param float $var - * @return $this - */ - public function setCpu($var) - { - GPBUtil::checkDouble($var); - $this->cpu = $var; - - return $this; - } - - /** - * Disk size (GB) needed. - * - * Generated from protobuf field double disk_gb = 2; - * @return float - */ - public function getDiskGb() - { - return $this->disk_gb; - } - - /** - * Disk size (GB) needed. - * - * Generated from protobuf field double disk_gb = 2; - * @param float $var - * @return $this - */ - public function setDiskGb($var) - { - GPBUtil::checkDouble($var); - $this->disk_gb = $var; - - return $this; - } - - /** - * Memory (GB) needed. - * - * Generated from protobuf field double memory_gb = 3; - * @return float - */ - public function getMemoryGb() - { - return $this->memory_gb; - } - - /** - * Memory (GB) needed. - * - * Generated from protobuf field double memory_gb = 3; - * @param float $var - * @return $this - */ - public function setMemoryGb($var) - { - GPBUtil::checkDouble($var); - $this->memory_gb = $var; - - return $this; - } - - /** - * User specified volumes. - * - * Generated from protobuf field repeated .google.appengine.v1.Volume volumes = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVolumes() - { - return $this->volumes; - } - - /** - * User specified volumes. - * - * Generated from protobuf field repeated .google.appengine.v1.Volume volumes = 4; - * @param array<\Google\Cloud\AppEngine\V1\Volume>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVolumes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\Volume::class); - $this->volumes = $arr; - - return $this; - } - - /** - * The name of the encryption key that is stored in Google Cloud KMS. - * Only should be used by Cloud Composer to encrypt the vm disk - * - * Generated from protobuf field string kms_key_reference = 5; - * @return string - */ - public function getKmsKeyReference() - { - return $this->kms_key_reference; - } - - /** - * The name of the encryption key that is stored in Google Cloud KMS. - * Only should be used by Cloud Composer to encrypt the vm disk - * - * Generated from protobuf field string kms_key_reference = 5; - * @param string $var - * @return $this - */ - public function setKmsKeyReference($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_reference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ScriptHandler.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ScriptHandler.php deleted file mode 100644 index a7c109dcacdb..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ScriptHandler.php +++ /dev/null @@ -1,67 +0,0 @@ -google.appengine.v1.ScriptHandler - */ -class ScriptHandler extends \Google\Protobuf\Internal\Message -{ - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script_path = 1; - */ - protected $script_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $script_path - * Path to the script from the application root directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script_path = 1; - * @return string - */ - public function getScriptPath() - { - return $this->script_path; - } - - /** - * Path to the script from the application root directory. - * - * Generated from protobuf field string script_path = 1; - * @param string $var - * @return $this - */ - public function setScriptPath($var) - { - GPBUtil::checkString($var, True); - $this->script_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SecurityLevel.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SecurityLevel.php deleted file mode 100644 index 2fca9437cec1..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SecurityLevel.php +++ /dev/null @@ -1,82 +0,0 @@ -google.appengine.v1.SecurityLevel - */ -class SecurityLevel -{ - /** - * Not specified. - * - * Generated from protobuf enum SECURE_UNSPECIFIED = 0; - */ - const SECURE_UNSPECIFIED = 0; - /** - * Both HTTP and HTTPS requests with URLs that match the handler succeed - * without redirects. The application can examine the request to determine - * which protocol was used, and respond accordingly. - * - * Generated from protobuf enum SECURE_DEFAULT = 0; - */ - const SECURE_DEFAULT = 0; - /** - * Requests for a URL that match this handler that use HTTPS are automatically - * redirected to the HTTP equivalent URL. - * - * Generated from protobuf enum SECURE_NEVER = 1; - */ - const SECURE_NEVER = 1; - /** - * Both HTTP and HTTPS requests with URLs that match the handler succeed - * without redirects. The application can examine the request to determine - * which protocol was used and respond accordingly. - * - * Generated from protobuf enum SECURE_OPTIONAL = 2; - */ - const SECURE_OPTIONAL = 2; - /** - * Requests for a URL that match this handler that do not use HTTPS are - * automatically redirected to the HTTPS URL with the same path. Query - * parameters are reserved for the redirect. - * - * Generated from protobuf enum SECURE_ALWAYS = 3; - */ - const SECURE_ALWAYS = 3; - - private static $valueToName = [ - self::SECURE_UNSPECIFIED => 'SECURE_UNSPECIFIED', - self::SECURE_DEFAULT => 'SECURE_DEFAULT', - self::SECURE_NEVER => 'SECURE_NEVER', - self::SECURE_OPTIONAL => 'SECURE_OPTIONAL', - self::SECURE_ALWAYS => 'SECURE_ALWAYS', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Service.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Service.php deleted file mode 100644 index 392073939bd9..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Service.php +++ /dev/null @@ -1,285 +0,0 @@ -google.appengine.v1.Service - */ -class Service extends \Google\Protobuf\Internal\Message -{ - /** - * Full path to the Service resource in the API. - * Example: `apps/myapp/services/default`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Relative name of the service within the application. - * Example: `default`. - * @OutputOnly - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * Mapping that defines fractional HTTP traffic diversion to - * different versions within the service. - * - * Generated from protobuf field .google.appengine.v1.TrafficSplit split = 3; - */ - protected $split = null; - /** - * A set of labels to apply to this service. Labels are key/value pairs that - * describe the service and all resources that belong to it (e.g., - * versions). The labels can be used to search and group resources, and are - * propagated to the usage and billing reports, enabling fine-grain analysis - * of costs. An example of using labels is to tag resources belonging to - * different environments (e.g., "env=prod", "env=qa"). - *

Label keys and values can be no longer than 63 characters and can only - * contain lowercase letters, numeric characters, underscores, dashes, and - * international characters. Label keys must start with a lowercase letter - * or an international character. Each service can have at most 32 labels. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Ingress settings for this service. Will apply to all versions. - * - * Generated from protobuf field .google.appengine.v1.NetworkSettings network_settings = 6; - */ - protected $network_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Full path to the Service resource in the API. - * Example: `apps/myapp/services/default`. - * @OutputOnly - * @type string $id - * Relative name of the service within the application. - * Example: `default`. - * @OutputOnly - * @type \Google\Cloud\AppEngine\V1\TrafficSplit $split - * Mapping that defines fractional HTTP traffic diversion to - * different versions within the service. - * @type array|\Google\Protobuf\Internal\MapField $labels - * A set of labels to apply to this service. Labels are key/value pairs that - * describe the service and all resources that belong to it (e.g., - * versions). The labels can be used to search and group resources, and are - * propagated to the usage and billing reports, enabling fine-grain analysis - * of costs. An example of using labels is to tag resources belonging to - * different environments (e.g., "env=prod", "env=qa"). - *

Label keys and values can be no longer than 63 characters and can only - * contain lowercase letters, numeric characters, underscores, dashes, and - * international characters. Label keys must start with a lowercase letter - * or an international character. Each service can have at most 32 labels. - * @type \Google\Cloud\AppEngine\V1\NetworkSettings $network_settings - * Ingress settings for this service. Will apply to all versions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Full path to the Service resource in the API. - * Example: `apps/myapp/services/default`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Full path to the Service resource in the API. - * Example: `apps/myapp/services/default`. - * @OutputOnly - * - * 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; - } - - /** - * Relative name of the service within the application. - * Example: `default`. - * @OutputOnly - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Relative name of the service within the application. - * Example: `default`. - * @OutputOnly - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Mapping that defines fractional HTTP traffic diversion to - * different versions within the service. - * - * Generated from protobuf field .google.appengine.v1.TrafficSplit split = 3; - * @return \Google\Cloud\AppEngine\V1\TrafficSplit|null - */ - public function getSplit() - { - return $this->split; - } - - public function hasSplit() - { - return isset($this->split); - } - - public function clearSplit() - { - unset($this->split); - } - - /** - * Mapping that defines fractional HTTP traffic diversion to - * different versions within the service. - * - * Generated from protobuf field .google.appengine.v1.TrafficSplit split = 3; - * @param \Google\Cloud\AppEngine\V1\TrafficSplit $var - * @return $this - */ - public function setSplit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\TrafficSplit::class); - $this->split = $var; - - return $this; - } - - /** - * A set of labels to apply to this service. Labels are key/value pairs that - * describe the service and all resources that belong to it (e.g., - * versions). The labels can be used to search and group resources, and are - * propagated to the usage and billing reports, enabling fine-grain analysis - * of costs. An example of using labels is to tag resources belonging to - * different environments (e.g., "env=prod", "env=qa"). - *

Label keys and values can be no longer than 63 characters and can only - * contain lowercase letters, numeric characters, underscores, dashes, and - * international characters. Label keys must start with a lowercase letter - * or an international character. Each service can have at most 32 labels. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * A set of labels to apply to this service. Labels are key/value pairs that - * describe the service and all resources that belong to it (e.g., - * versions). The labels can be used to search and group resources, and are - * propagated to the usage and billing reports, enabling fine-grain analysis - * of costs. An example of using labels is to tag resources belonging to - * different environments (e.g., "env=prod", "env=qa"). - *

Label keys and values can be no longer than 63 characters and can only - * contain lowercase letters, numeric characters, underscores, dashes, and - * international characters. Label keys must start with a lowercase letter - * or an international character. Each service can have at most 32 labels. - * - * Generated from protobuf field map labels = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Ingress settings for this service. Will apply to all versions. - * - * Generated from protobuf field .google.appengine.v1.NetworkSettings network_settings = 6; - * @return \Google\Cloud\AppEngine\V1\NetworkSettings|null - */ - public function getNetworkSettings() - { - return $this->network_settings; - } - - public function hasNetworkSettings() - { - return isset($this->network_settings); - } - - public function clearNetworkSettings() - { - unset($this->network_settings); - } - - /** - * Ingress settings for this service. Will apply to all versions. - * - * Generated from protobuf field .google.appengine.v1.NetworkSettings network_settings = 6; - * @param \Google\Cloud\AppEngine\V1\NetworkSettings $var - * @return $this - */ - public function setNetworkSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\NetworkSettings::class); - $this->network_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ServingStatus.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ServingStatus.php deleted file mode 100644 index 95c8c44b943f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ServingStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.appengine.v1.ServingStatus - */ -class ServingStatus -{ - /** - * Not specified. - * - * Generated from protobuf enum SERVING_STATUS_UNSPECIFIED = 0; - */ - const SERVING_STATUS_UNSPECIFIED = 0; - /** - * Currently serving. Instances are created according to the - * scaling settings of the version. - * - * Generated from protobuf enum SERVING = 1; - */ - const SERVING = 1; - /** - * Disabled. No instances will be created and the scaling - * settings are ignored until the state of the version changes - * to `SERVING`. - * - * Generated from protobuf enum STOPPED = 2; - */ - const STOPPED = 2; - - private static $valueToName = [ - self::SERVING_STATUS_UNSPECIFIED => 'SERVING_STATUS_UNSPECIFIED', - self::SERVING => 'SERVING', - self::STOPPED => 'STOPPED', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SslSettings.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SslSettings.php deleted file mode 100644 index 7032bff837e3..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SslSettings.php +++ /dev/null @@ -1,199 +0,0 @@ -google.appengine.v1.SslSettings - */ -class SslSettings extends \Google\Protobuf\Internal\Message -{ - /** - * ID of the `AuthorizedCertificate` resource configuring SSL for the - * application. Clearing this field will remove SSL support. - * By default, a managed certificate is automatically created for every - * domain mapping. To omit SSL support or to configure SSL manually, specify - * `SslManagementType.MANUAL` on a `CREATE` or `UPDATE` request. You must - * be authorized to administer the `AuthorizedCertificate` resource to - * manually map it to a `DomainMapping` resource. - * Example: `12345`. - * - * Generated from protobuf field string certificate_id = 1; - */ - protected $certificate_id = ''; - /** - * SSL management type for this domain. If `AUTOMATIC`, a managed certificate - * is automatically provisioned. If `MANUAL`, `certificate_id` must be - * manually specified in order to configure SSL for this domain. - * - * Generated from protobuf field .google.appengine.v1.SslSettings.SslManagementType ssl_management_type = 3; - */ - protected $ssl_management_type = 0; - /** - * ID of the managed `AuthorizedCertificate` resource currently being - * provisioned, if applicable. Until the new managed certificate has been - * successfully provisioned, the previous SSL state will be preserved. Once - * the provisioning process completes, the `certificate_id` field will reflect - * the new managed certificate and this field will be left empty. To remove - * SSL support while there is still a pending managed certificate, clear the - * `certificate_id` field with an `UpdateDomainMappingRequest`. - * @OutputOnly - * - * Generated from protobuf field string pending_managed_certificate_id = 4; - */ - protected $pending_managed_certificate_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $certificate_id - * ID of the `AuthorizedCertificate` resource configuring SSL for the - * application. Clearing this field will remove SSL support. - * By default, a managed certificate is automatically created for every - * domain mapping. To omit SSL support or to configure SSL manually, specify - * `SslManagementType.MANUAL` on a `CREATE` or `UPDATE` request. You must - * be authorized to administer the `AuthorizedCertificate` resource to - * manually map it to a `DomainMapping` resource. - * Example: `12345`. - * @type int $ssl_management_type - * SSL management type for this domain. If `AUTOMATIC`, a managed certificate - * is automatically provisioned. If `MANUAL`, `certificate_id` must be - * manually specified in order to configure SSL for this domain. - * @type string $pending_managed_certificate_id - * ID of the managed `AuthorizedCertificate` resource currently being - * provisioned, if applicable. Until the new managed certificate has been - * successfully provisioned, the previous SSL state will be preserved. Once - * the provisioning process completes, the `certificate_id` field will reflect - * the new managed certificate and this field will be left empty. To remove - * SSL support while there is still a pending managed certificate, clear the - * `certificate_id` field with an `UpdateDomainMappingRequest`. - * @OutputOnly - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\DomainMapping::initOnce(); - parent::__construct($data); - } - - /** - * ID of the `AuthorizedCertificate` resource configuring SSL for the - * application. Clearing this field will remove SSL support. - * By default, a managed certificate is automatically created for every - * domain mapping. To omit SSL support or to configure SSL manually, specify - * `SslManagementType.MANUAL` on a `CREATE` or `UPDATE` request. You must - * be authorized to administer the `AuthorizedCertificate` resource to - * manually map it to a `DomainMapping` resource. - * Example: `12345`. - * - * Generated from protobuf field string certificate_id = 1; - * @return string - */ - public function getCertificateId() - { - return $this->certificate_id; - } - - /** - * ID of the `AuthorizedCertificate` resource configuring SSL for the - * application. Clearing this field will remove SSL support. - * By default, a managed certificate is automatically created for every - * domain mapping. To omit SSL support or to configure SSL manually, specify - * `SslManagementType.MANUAL` on a `CREATE` or `UPDATE` request. You must - * be authorized to administer the `AuthorizedCertificate` resource to - * manually map it to a `DomainMapping` resource. - * Example: `12345`. - * - * Generated from protobuf field string certificate_id = 1; - * @param string $var - * @return $this - */ - public function setCertificateId($var) - { - GPBUtil::checkString($var, True); - $this->certificate_id = $var; - - return $this; - } - - /** - * SSL management type for this domain. If `AUTOMATIC`, a managed certificate - * is automatically provisioned. If `MANUAL`, `certificate_id` must be - * manually specified in order to configure SSL for this domain. - * - * Generated from protobuf field .google.appengine.v1.SslSettings.SslManagementType ssl_management_type = 3; - * @return int - */ - public function getSslManagementType() - { - return $this->ssl_management_type; - } - - /** - * SSL management type for this domain. If `AUTOMATIC`, a managed certificate - * is automatically provisioned. If `MANUAL`, `certificate_id` must be - * manually specified in order to configure SSL for this domain. - * - * Generated from protobuf field .google.appengine.v1.SslSettings.SslManagementType ssl_management_type = 3; - * @param int $var - * @return $this - */ - public function setSslManagementType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\SslSettings\SslManagementType::class); - $this->ssl_management_type = $var; - - return $this; - } - - /** - * ID of the managed `AuthorizedCertificate` resource currently being - * provisioned, if applicable. Until the new managed certificate has been - * successfully provisioned, the previous SSL state will be preserved. Once - * the provisioning process completes, the `certificate_id` field will reflect - * the new managed certificate and this field will be left empty. To remove - * SSL support while there is still a pending managed certificate, clear the - * `certificate_id` field with an `UpdateDomainMappingRequest`. - * @OutputOnly - * - * Generated from protobuf field string pending_managed_certificate_id = 4; - * @return string - */ - public function getPendingManagedCertificateId() - { - return $this->pending_managed_certificate_id; - } - - /** - * ID of the managed `AuthorizedCertificate` resource currently being - * provisioned, if applicable. Until the new managed certificate has been - * successfully provisioned, the previous SSL state will be preserved. Once - * the provisioning process completes, the `certificate_id` field will reflect - * the new managed certificate and this field will be left empty. To remove - * SSL support while there is still a pending managed certificate, clear the - * `certificate_id` field with an `UpdateDomainMappingRequest`. - * @OutputOnly - * - * Generated from protobuf field string pending_managed_certificate_id = 4; - * @param string $var - * @return $this - */ - public function setPendingManagedCertificateId($var) - { - GPBUtil::checkString($var, True); - $this->pending_managed_certificate_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SslSettings/SslManagementType.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SslSettings/SslManagementType.php deleted file mode 100644 index 06eb0144a9c6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/SslSettings/SslManagementType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.appengine.v1.SslSettings.SslManagementType - */ -class SslManagementType -{ - /** - * Defaults to `AUTOMATIC`. - * - * Generated from protobuf enum SSL_MANAGEMENT_TYPE_UNSPECIFIED = 0; - */ - const SSL_MANAGEMENT_TYPE_UNSPECIFIED = 0; - /** - * SSL support for this domain is configured automatically. The mapped SSL - * certificate will be automatically renewed. - * - * Generated from protobuf enum AUTOMATIC = 1; - */ - const AUTOMATIC = 1; - /** - * SSL support for this domain is configured manually by the user. Either - * the domain has no SSL support or a user-obtained SSL certificate has been - * explictly mapped to this domain. - * - * Generated from protobuf enum MANUAL = 2; - */ - const MANUAL = 2; - - private static $valueToName = [ - self::SSL_MANAGEMENT_TYPE_UNSPECIFIED => 'SSL_MANAGEMENT_TYPE_UNSPECIFIED', - self::AUTOMATIC => 'AUTOMATIC', - self::MANUAL => 'MANUAL', - ]; - - 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(SslManagementType::class, \Google\Cloud\AppEngine\V1\SslSettings_SslManagementType::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/StandardSchedulerSettings.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/StandardSchedulerSettings.php deleted file mode 100644 index 79ef6ec0ea52..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/StandardSchedulerSettings.php +++ /dev/null @@ -1,177 +0,0 @@ -google.appengine.v1.StandardSchedulerSettings - */ -class StandardSchedulerSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Target CPU utilization ratio to maintain when scaling. - * - * Generated from protobuf field double target_cpu_utilization = 1; - */ - protected $target_cpu_utilization = 0.0; - /** - * Target throughput utilization ratio to maintain when scaling - * - * Generated from protobuf field double target_throughput_utilization = 2; - */ - protected $target_throughput_utilization = 0.0; - /** - * Minimum number of instances to run for this version. Set to zero to disable - * `min_instances` configuration. - * - * Generated from protobuf field int32 min_instances = 3; - */ - protected $min_instances = 0; - /** - * Maximum number of instances to run for this version. Set to zero to disable - * `max_instances` configuration. - * - * Generated from protobuf field int32 max_instances = 4; - */ - protected $max_instances = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $target_cpu_utilization - * Target CPU utilization ratio to maintain when scaling. - * @type float $target_throughput_utilization - * Target throughput utilization ratio to maintain when scaling - * @type int $min_instances - * Minimum number of instances to run for this version. Set to zero to disable - * `min_instances` configuration. - * @type int $max_instances - * Maximum number of instances to run for this version. Set to zero to disable - * `max_instances` configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Target CPU utilization ratio to maintain when scaling. - * - * Generated from protobuf field double target_cpu_utilization = 1; - * @return float - */ - public function getTargetCpuUtilization() - { - return $this->target_cpu_utilization; - } - - /** - * Target CPU utilization ratio to maintain when scaling. - * - * Generated from protobuf field double target_cpu_utilization = 1; - * @param float $var - * @return $this - */ - public function setTargetCpuUtilization($var) - { - GPBUtil::checkDouble($var); - $this->target_cpu_utilization = $var; - - return $this; - } - - /** - * Target throughput utilization ratio to maintain when scaling - * - * Generated from protobuf field double target_throughput_utilization = 2; - * @return float - */ - public function getTargetThroughputUtilization() - { - return $this->target_throughput_utilization; - } - - /** - * Target throughput utilization ratio to maintain when scaling - * - * Generated from protobuf field double target_throughput_utilization = 2; - * @param float $var - * @return $this - */ - public function setTargetThroughputUtilization($var) - { - GPBUtil::checkDouble($var); - $this->target_throughput_utilization = $var; - - return $this; - } - - /** - * Minimum number of instances to run for this version. Set to zero to disable - * `min_instances` configuration. - * - * Generated from protobuf field int32 min_instances = 3; - * @return int - */ - public function getMinInstances() - { - return $this->min_instances; - } - - /** - * Minimum number of instances to run for this version. Set to zero to disable - * `min_instances` configuration. - * - * Generated from protobuf field int32 min_instances = 3; - * @param int $var - * @return $this - */ - public function setMinInstances($var) - { - GPBUtil::checkInt32($var); - $this->min_instances = $var; - - return $this; - } - - /** - * Maximum number of instances to run for this version. Set to zero to disable - * `max_instances` configuration. - * - * Generated from protobuf field int32 max_instances = 4; - * @return int - */ - public function getMaxInstances() - { - return $this->max_instances; - } - - /** - * Maximum number of instances to run for this version. Set to zero to disable - * `max_instances` configuration. - * - * Generated from protobuf field int32 max_instances = 4; - * @param int $var - * @return $this - */ - public function setMaxInstances($var) - { - GPBUtil::checkInt32($var); - $this->max_instances = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/StaticFilesHandler.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/StaticFilesHandler.php deleted file mode 100644 index 6d14a8fa6a05..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/StaticFilesHandler.php +++ /dev/null @@ -1,328 +0,0 @@ -google.appengine.v1.StaticFilesHandler - */ -class StaticFilesHandler extends \Google\Protobuf\Internal\Message -{ - /** - * Path to the static files matched by the URL pattern, from the - * application root directory. The path can refer to text matched in groupings - * in the URL pattern. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * Regular expression that matches the file paths for all files that should be - * referenced by this handler. - * - * Generated from protobuf field string upload_path_regex = 2; - */ - protected $upload_path_regex = ''; - /** - * HTTP headers to use for all responses from these URLs. - * - * Generated from protobuf field map http_headers = 3; - */ - private $http_headers; - /** - * MIME type used to serve all files served by this handler. - * Defaults to file-specific MIME types, which are derived from each file's - * filename extension. - * - * Generated from protobuf field string mime_type = 4; - */ - protected $mime_type = ''; - /** - * Time a static file served by this handler should be cached - * by web proxies and browsers. - * - * Generated from protobuf field .google.protobuf.Duration expiration = 5; - */ - protected $expiration = null; - /** - * Whether this handler should match the request if the file - * referenced by the handler does not exist. - * - * Generated from protobuf field bool require_matching_file = 6; - */ - protected $require_matching_file = false; - /** - * Whether files should also be uploaded as code data. By default, files - * declared in static file handlers are uploaded as static - * data and are only served to end users; they cannot be read by the - * application. If enabled, uploads are charged against both your code and - * static data storage resource quotas. - * - * Generated from protobuf field bool application_readable = 7; - */ - protected $application_readable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * Path to the static files matched by the URL pattern, from the - * application root directory. The path can refer to text matched in groupings - * in the URL pattern. - * @type string $upload_path_regex - * Regular expression that matches the file paths for all files that should be - * referenced by this handler. - * @type array|\Google\Protobuf\Internal\MapField $http_headers - * HTTP headers to use for all responses from these URLs. - * @type string $mime_type - * MIME type used to serve all files served by this handler. - * Defaults to file-specific MIME types, which are derived from each file's - * filename extension. - * @type \Google\Protobuf\Duration $expiration - * Time a static file served by this handler should be cached - * by web proxies and browsers. - * @type bool $require_matching_file - * Whether this handler should match the request if the file - * referenced by the handler does not exist. - * @type bool $application_readable - * Whether files should also be uploaded as code data. By default, files - * declared in static file handlers are uploaded as static - * data and are only served to end users; they cannot be read by the - * application. If enabled, uploads are charged against both your code and - * static data storage resource quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * Path to the static files matched by the URL pattern, from the - * application root directory. The path can refer to text matched in groupings - * in the URL pattern. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Path to the static files matched by the URL pattern, from the - * application root directory. The path can refer to text matched in groupings - * in the URL pattern. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Regular expression that matches the file paths for all files that should be - * referenced by this handler. - * - * Generated from protobuf field string upload_path_regex = 2; - * @return string - */ - public function getUploadPathRegex() - { - return $this->upload_path_regex; - } - - /** - * Regular expression that matches the file paths for all files that should be - * referenced by this handler. - * - * Generated from protobuf field string upload_path_regex = 2; - * @param string $var - * @return $this - */ - public function setUploadPathRegex($var) - { - GPBUtil::checkString($var, True); - $this->upload_path_regex = $var; - - return $this; - } - - /** - * HTTP headers to use for all responses from these URLs. - * - * Generated from protobuf field map http_headers = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getHttpHeaders() - { - return $this->http_headers; - } - - /** - * HTTP headers to use for all responses from these URLs. - * - * Generated from protobuf field map http_headers = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setHttpHeaders($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->http_headers = $arr; - - return $this; - } - - /** - * MIME type used to serve all files served by this handler. - * Defaults to file-specific MIME types, which are derived from each file's - * filename extension. - * - * Generated from protobuf field string mime_type = 4; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * MIME type used to serve all files served by this handler. - * Defaults to file-specific MIME types, which are derived from each file's - * filename extension. - * - * Generated from protobuf field string mime_type = 4; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Time a static file served by this handler should be cached - * by web proxies and browsers. - * - * Generated from protobuf field .google.protobuf.Duration expiration = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getExpiration() - { - return $this->expiration; - } - - public function hasExpiration() - { - return isset($this->expiration); - } - - public function clearExpiration() - { - unset($this->expiration); - } - - /** - * Time a static file served by this handler should be cached - * by web proxies and browsers. - * - * Generated from protobuf field .google.protobuf.Duration expiration = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setExpiration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->expiration = $var; - - return $this; - } - - /** - * Whether this handler should match the request if the file - * referenced by the handler does not exist. - * - * Generated from protobuf field bool require_matching_file = 6; - * @return bool - */ - public function getRequireMatchingFile() - { - return $this->require_matching_file; - } - - /** - * Whether this handler should match the request if the file - * referenced by the handler does not exist. - * - * Generated from protobuf field bool require_matching_file = 6; - * @param bool $var - * @return $this - */ - public function setRequireMatchingFile($var) - { - GPBUtil::checkBool($var); - $this->require_matching_file = $var; - - return $this; - } - - /** - * Whether files should also be uploaded as code data. By default, files - * declared in static file handlers are uploaded as static - * data and are only served to end users; they cannot be read by the - * application. If enabled, uploads are charged against both your code and - * static data storage resource quotas. - * - * Generated from protobuf field bool application_readable = 7; - * @return bool - */ - public function getApplicationReadable() - { - return $this->application_readable; - } - - /** - * Whether files should also be uploaded as code data. By default, files - * declared in static file handlers are uploaded as static - * data and are only served to end users; they cannot be read by the - * application. If enabled, uploads are charged against both your code and - * static data storage resource quotas. - * - * Generated from protobuf field bool application_readable = 7; - * @param bool $var - * @return $this - */ - public function setApplicationReadable($var) - { - GPBUtil::checkBool($var); - $this->application_readable = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/TrafficSplit.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/TrafficSplit.php deleted file mode 100644 index 99523b4351c0..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/TrafficSplit.php +++ /dev/null @@ -1,138 +0,0 @@ -google.appengine.v1.TrafficSplit - */ -class TrafficSplit extends \Google\Protobuf\Internal\Message -{ - /** - * Mechanism used to determine which version a request is sent to. - * The traffic selection algorithm will - * be stable for either type until allocations are changed. - * - * Generated from protobuf field .google.appengine.v1.TrafficSplit.ShardBy shard_by = 1; - */ - protected $shard_by = 0; - /** - * Mapping from version IDs within the service to fractional - * (0.000, 1] allocations of traffic for that version. Each version can - * be specified only once, but some versions in the service may not - * have any traffic allocation. Services that have traffic allocated - * cannot be deleted until either the service is deleted or - * their traffic allocation is removed. Allocations must sum to 1. - * Up to two decimal place precision is supported for IP-based splits and - * up to three decimal places is supported for cookie-based splits. - * - * Generated from protobuf field map allocations = 2; - */ - private $allocations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $shard_by - * Mechanism used to determine which version a request is sent to. - * The traffic selection algorithm will - * be stable for either type until allocations are changed. - * @type array|\Google\Protobuf\Internal\MapField $allocations - * Mapping from version IDs within the service to fractional - * (0.000, 1] allocations of traffic for that version. Each version can - * be specified only once, but some versions in the service may not - * have any traffic allocation. Services that have traffic allocated - * cannot be deleted until either the service is deleted or - * their traffic allocation is removed. Allocations must sum to 1. - * Up to two decimal place precision is supported for IP-based splits and - * up to three decimal places is supported for cookie-based splits. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Mechanism used to determine which version a request is sent to. - * The traffic selection algorithm will - * be stable for either type until allocations are changed. - * - * Generated from protobuf field .google.appengine.v1.TrafficSplit.ShardBy shard_by = 1; - * @return int - */ - public function getShardBy() - { - return $this->shard_by; - } - - /** - * Mechanism used to determine which version a request is sent to. - * The traffic selection algorithm will - * be stable for either type until allocations are changed. - * - * Generated from protobuf field .google.appengine.v1.TrafficSplit.ShardBy shard_by = 1; - * @param int $var - * @return $this - */ - public function setShardBy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\TrafficSplit\ShardBy::class); - $this->shard_by = $var; - - return $this; - } - - /** - * Mapping from version IDs within the service to fractional - * (0.000, 1] allocations of traffic for that version. Each version can - * be specified only once, but some versions in the service may not - * have any traffic allocation. Services that have traffic allocated - * cannot be deleted until either the service is deleted or - * their traffic allocation is removed. Allocations must sum to 1. - * Up to two decimal place precision is supported for IP-based splits and - * up to three decimal places is supported for cookie-based splits. - * - * Generated from protobuf field map allocations = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAllocations() - { - return $this->allocations; - } - - /** - * Mapping from version IDs within the service to fractional - * (0.000, 1] allocations of traffic for that version. Each version can - * be specified only once, but some versions in the service may not - * have any traffic allocation. Services that have traffic allocated - * cannot be deleted until either the service is deleted or - * their traffic allocation is removed. Allocations must sum to 1. - * Up to two decimal place precision is supported for IP-based splits and - * up to three decimal places is supported for cookie-based splits. - * - * Generated from protobuf field map allocations = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAllocations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::DOUBLE); - $this->allocations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/TrafficSplit/ShardBy.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/TrafficSplit/ShardBy.php deleted file mode 100644 index 513dab71f71b..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/TrafficSplit/ShardBy.php +++ /dev/null @@ -1,75 +0,0 @@ -google.appengine.v1.TrafficSplit.ShardBy - */ -class ShardBy -{ - /** - * Diversion method unspecified. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Diversion based on a specially named cookie, "GOOGAPPUID." The cookie - * must be set by the application itself or no diversion will occur. - * - * Generated from protobuf enum COOKIE = 1; - */ - const COOKIE = 1; - /** - * Diversion based on applying the modulus operation to a fingerprint - * of the IP address. - * - * Generated from protobuf enum IP = 2; - */ - const IP = 2; - /** - * Diversion based on weighted random assignment. An incoming request is - * randomly routed to a version in the traffic split, with probability - * proportional to the version's traffic share. - * - * Generated from protobuf enum RANDOM = 3; - */ - const RANDOM = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::COOKIE => 'COOKIE', - self::IP => 'IP', - self::RANDOM => 'RANDOM', - ]; - - 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(ShardBy::class, \Google\Cloud\AppEngine\V1\TrafficSplit_ShardBy::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateApplicationRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateApplicationRequest.php deleted file mode 100644 index 2ad2fb016878..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateApplicationRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.appengine.v1.UpdateApplicationRequest - */ -class UpdateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Application resource to update. Example: `apps/myapp`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * An Application containing the updated resource. - * - * Generated from protobuf field .google.appengine.v1.Application application = 2; - */ - protected $application = null; - /** - * Required. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the Application resource to update. Example: `apps/myapp`. - * @type \Google\Cloud\AppEngine\V1\Application $application - * An Application containing the updated resource. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Standard field mask for the set of fields to be updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Application resource to update. Example: `apps/myapp`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the Application resource to update. Example: `apps/myapp`. - * - * 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; - } - - /** - * An Application containing the updated resource. - * - * Generated from protobuf field .google.appengine.v1.Application application = 2; - * @return \Google\Cloud\AppEngine\V1\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * An Application containing the updated resource. - * - * Generated from protobuf field .google.appengine.v1.Application application = 2; - * @param \Google\Cloud\AppEngine\V1\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Application::class); - $this->application = $var; - - return $this; - } - - /** - * Required. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateAuthorizedCertificateRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateAuthorizedCertificateRequest.php deleted file mode 100644 index 1cb4eb885ab5..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateAuthorizedCertificateRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.appengine.v1.UpdateAuthorizedCertificateRequest - */ -class UpdateAuthorizedCertificateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource to update. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * An `AuthorizedCertificate` containing the updated resource. Only fields set - * in the field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificate certificate = 2; - */ - protected $certificate = null; - /** - * Standard field mask for the set of fields to be updated. Updates are only - * supported on the `certificate_raw_data` and `display_name` fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource to update. Example: - * `apps/myapp/authorizedCertificates/12345`. - * @type \Google\Cloud\AppEngine\V1\AuthorizedCertificate $certificate - * An `AuthorizedCertificate` containing the updated resource. Only fields set - * in the field mask will be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Standard field mask for the set of fields to be updated. Updates are only - * supported on the `certificate_raw_data` and `display_name` fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource to update. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource to update. Example: - * `apps/myapp/authorizedCertificates/12345`. - * - * 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; - } - - /** - * An `AuthorizedCertificate` containing the updated resource. Only fields set - * in the field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificate certificate = 2; - * @return \Google\Cloud\AppEngine\V1\AuthorizedCertificate|null - */ - public function getCertificate() - { - return $this->certificate; - } - - public function hasCertificate() - { - return isset($this->certificate); - } - - public function clearCertificate() - { - unset($this->certificate); - } - - /** - * An `AuthorizedCertificate` containing the updated resource. Only fields set - * in the field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.AuthorizedCertificate certificate = 2; - * @param \Google\Cloud\AppEngine\V1\AuthorizedCertificate $var - * @return $this - */ - public function setCertificate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\AuthorizedCertificate::class); - $this->certificate = $var; - - return $this; - } - - /** - * Standard field mask for the set of fields to be updated. Updates are only - * supported on the `certificate_raw_data` and `display_name` fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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); - } - - /** - * Standard field mask for the set of fields to be updated. Updates are only - * supported on the `certificate_raw_data` and `display_name` fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateDomainMappingRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateDomainMappingRequest.php deleted file mode 100644 index cdc8c1d9cd4f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateDomainMappingRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.appengine.v1.UpdateDomainMappingRequest - */ -class UpdateDomainMappingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource to update. Example: - * `apps/myapp/domainMappings/example.com`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A domain mapping containing the updated resource. Only fields set - * in the field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.DomainMapping domain_mapping = 2; - */ - protected $domain_mapping = null; - /** - * Required. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource to update. Example: - * `apps/myapp/domainMappings/example.com`. - * @type \Google\Cloud\AppEngine\V1\DomainMapping $domain_mapping - * A domain mapping containing the updated resource. Only fields set - * in the field mask will be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Standard field mask for the set of fields to be updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource to update. Example: - * `apps/myapp/domainMappings/example.com`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource to update. Example: - * `apps/myapp/domainMappings/example.com`. - * - * 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; - } - - /** - * A domain mapping containing the updated resource. Only fields set - * in the field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.DomainMapping domain_mapping = 2; - * @return \Google\Cloud\AppEngine\V1\DomainMapping|null - */ - public function getDomainMapping() - { - return $this->domain_mapping; - } - - public function hasDomainMapping() - { - return isset($this->domain_mapping); - } - - public function clearDomainMapping() - { - unset($this->domain_mapping); - } - - /** - * A domain mapping containing the updated resource. Only fields set - * in the field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.DomainMapping domain_mapping = 2; - * @param \Google\Cloud\AppEngine\V1\DomainMapping $var - * @return $this - */ - public function setDomainMapping($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\DomainMapping::class); - $this->domain_mapping = $var; - - return $this; - } - - /** - * Required. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateIngressRuleRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateIngressRuleRequest.php deleted file mode 100644 index 5f93317ea436..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateIngressRuleRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.appengine.v1.UpdateIngressRuleRequest - */ -class UpdateIngressRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Firewall resource to update. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A FirewallRule containing the updated resource - * - * Generated from protobuf field .google.appengine.v1.FirewallRule rule = 2; - */ - protected $rule = null; - /** - * Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the Firewall resource to update. - * Example: `apps/myapp/firewall/ingressRules/100`. - * @type \Google\Cloud\AppEngine\V1\FirewallRule $rule - * A FirewallRule containing the updated resource - * @type \Google\Protobuf\FieldMask $update_mask - * Standard field mask for the set of fields to be updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Firewall resource to update. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the Firewall resource to update. - * Example: `apps/myapp/firewall/ingressRules/100`. - * - * 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; - } - - /** - * A FirewallRule containing the updated resource - * - * Generated from protobuf field .google.appengine.v1.FirewallRule rule = 2; - * @return \Google\Cloud\AppEngine\V1\FirewallRule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * A FirewallRule containing the updated resource - * - * Generated from protobuf field .google.appengine.v1.FirewallRule rule = 2; - * @param \Google\Cloud\AppEngine\V1\FirewallRule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\FirewallRule::class); - $this->rule = $var; - - return $this; - } - - /** - * Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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); - } - - /** - * Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateServiceMethod.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateServiceMethod.php deleted file mode 100644 index b6f934c27ac3..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateServiceMethod.php +++ /dev/null @@ -1,77 +0,0 @@ -google.appengine.v1.UpdateServiceMethod - */ -class UpdateServiceMethod extends \Google\Protobuf\Internal\Message -{ - /** - * Update service request. - * - * Generated from protobuf field .google.appengine.v1.UpdateServiceRequest request = 1; - */ - protected $request = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppEngine\V1\UpdateServiceRequest $request - * Update service request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AuditData::initOnce(); - parent::__construct($data); - } - - /** - * Update service request. - * - * Generated from protobuf field .google.appengine.v1.UpdateServiceRequest request = 1; - * @return \Google\Cloud\AppEngine\V1\UpdateServiceRequest|null - */ - public function getRequest() - { - return $this->request; - } - - public function hasRequest() - { - return isset($this->request); - } - - public function clearRequest() - { - unset($this->request); - } - - /** - * Update service request. - * - * Generated from protobuf field .google.appengine.v1.UpdateServiceRequest request = 1; - * @param \Google\Cloud\AppEngine\V1\UpdateServiceRequest $var - * @return $this - */ - public function setRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\UpdateServiceRequest::class); - $this->request = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateServiceRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateServiceRequest.php deleted file mode 100644 index 1f8e7dcc1bbf..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateServiceRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.appengine.v1.UpdateServiceRequest - */ -class UpdateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource to update. Example: `apps/myapp/services/default`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A Service resource containing the updated service. Only fields set in the - * field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.Service service = 2; - */ - protected $service = null; - /** - * Required. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - /** - * Set to `true` to gradually shift traffic to one or more versions that you - * specify. By default, traffic is shifted immediately. - * For gradual traffic migration, the target versions - * must be located within instances that are configured for both - * [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) - * and - * [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). - * You must specify the - * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) - * field in the Service resource. Gradual traffic migration is not - * supported in the App Engine flexible environment. For examples, see - * [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). - * - * Generated from protobuf field bool migrate_traffic = 4; - */ - protected $migrate_traffic = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource to update. Example: `apps/myapp/services/default`. - * @type \Google\Cloud\AppEngine\V1\Service $service - * A Service resource containing the updated service. Only fields set in the - * field mask will be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Standard field mask for the set of fields to be updated. - * @type bool $migrate_traffic - * Set to `true` to gradually shift traffic to one or more versions that you - * specify. By default, traffic is shifted immediately. - * For gradual traffic migration, the target versions - * must be located within instances that are configured for both - * [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) - * and - * [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). - * You must specify the - * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) - * field in the Service resource. Gradual traffic migration is not - * supported in the App Engine flexible environment. For examples, see - * [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource to update. Example: `apps/myapp/services/default`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource to update. Example: `apps/myapp/services/default`. - * - * 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; - } - - /** - * A Service resource containing the updated service. Only fields set in the - * field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.Service service = 2; - * @return \Google\Cloud\AppEngine\V1\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * A Service resource containing the updated service. Only fields set in the - * field mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.Service service = 2; - * @param \Google\Cloud\AppEngine\V1\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Required. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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. Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Set to `true` to gradually shift traffic to one or more versions that you - * specify. By default, traffic is shifted immediately. - * For gradual traffic migration, the target versions - * must be located within instances that are configured for both - * [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) - * and - * [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). - * You must specify the - * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) - * field in the Service resource. Gradual traffic migration is not - * supported in the App Engine flexible environment. For examples, see - * [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). - * - * Generated from protobuf field bool migrate_traffic = 4; - * @return bool - */ - public function getMigrateTraffic() - { - return $this->migrate_traffic; - } - - /** - * Set to `true` to gradually shift traffic to one or more versions that you - * specify. By default, traffic is shifted immediately. - * For gradual traffic migration, the target versions - * must be located within instances that are configured for both - * [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) - * and - * [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). - * You must specify the - * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) - * field in the Service resource. Gradual traffic migration is not - * supported in the App Engine flexible environment. For examples, see - * [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). - * - * Generated from protobuf field bool migrate_traffic = 4; - * @param bool $var - * @return $this - */ - public function setMigrateTraffic($var) - { - GPBUtil::checkBool($var); - $this->migrate_traffic = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateVersionRequest.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateVersionRequest.php deleted file mode 100644 index 411cacfac89a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UpdateVersionRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.appengine.v1.UpdateVersionRequest - */ -class UpdateVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the resource to update. Example: - * `apps/myapp/services/default/versions/1`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A Version containing the updated resource. Only fields set in the field - * mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.Version version = 2; - */ - protected $version = null; - /** - * Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the resource to update. Example: - * `apps/myapp/services/default/versions/1`. - * @type \Google\Cloud\AppEngine\V1\Version $version - * A Version containing the updated resource. Only fields set in the field - * mask will be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Standard field mask for the set of fields to be updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Appengine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the resource to update. Example: - * `apps/myapp/services/default/versions/1`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the resource to update. Example: - * `apps/myapp/services/default/versions/1`. - * - * 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; - } - - /** - * A Version containing the updated resource. Only fields set in the field - * mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.Version version = 2; - * @return \Google\Cloud\AppEngine\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * A Version containing the updated resource. Only fields set in the field - * mask will be updated. - * - * Generated from protobuf field .google.appengine.v1.Version version = 2; - * @param \Google\Cloud\AppEngine\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Version::class); - $this->version = $var; - - return $this; - } - - /** - * Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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); - } - - /** - * Standard field mask for the set of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlDispatchRule.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlDispatchRule.php deleted file mode 100644 index 6cedb687d196..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlDispatchRule.php +++ /dev/null @@ -1,163 +0,0 @@ -google.appengine.v1.UrlDispatchRule - */ -class UrlDispatchRule extends \Google\Protobuf\Internal\Message -{ - /** - * Domain name to match against. The wildcard "`*`" is supported if - * specified before a period: "`*.`". - * Defaults to matching all domains: "`*`". - * - * Generated from protobuf field string domain = 1; - */ - protected $domain = ''; - /** - * Pathname within the host. Must start with a "`/`". A - * single "`*`" can be included at the end of the path. - * The sum of the lengths of the domain and path may not - * exceed 100 characters. - * - * Generated from protobuf field string path = 2; - */ - protected $path = ''; - /** - * Resource ID of a service in this application that should - * serve the matched request. The service must already - * exist. Example: `default`. - * - * Generated from protobuf field string service = 3; - */ - protected $service = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $domain - * Domain name to match against. The wildcard "`*`" is supported if - * specified before a period: "`*.`". - * Defaults to matching all domains: "`*`". - * @type string $path - * Pathname within the host. Must start with a "`/`". A - * single "`*`" can be included at the end of the path. - * The sum of the lengths of the domain and path may not - * exceed 100 characters. - * @type string $service - * Resource ID of a service in this application that should - * serve the matched request. The service must already - * exist. Example: `default`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Application::initOnce(); - parent::__construct($data); - } - - /** - * Domain name to match against. The wildcard "`*`" is supported if - * specified before a period: "`*.`". - * Defaults to matching all domains: "`*`". - * - * Generated from protobuf field string domain = 1; - * @return string - */ - public function getDomain() - { - return $this->domain; - } - - /** - * Domain name to match against. The wildcard "`*`" is supported if - * specified before a period: "`*.`". - * Defaults to matching all domains: "`*`". - * - * Generated from protobuf field string domain = 1; - * @param string $var - * @return $this - */ - public function setDomain($var) - { - GPBUtil::checkString($var, True); - $this->domain = $var; - - return $this; - } - - /** - * Pathname within the host. Must start with a "`/`". A - * single "`*`" can be included at the end of the path. - * The sum of the lengths of the domain and path may not - * exceed 100 characters. - * - * Generated from protobuf field string path = 2; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Pathname within the host. Must start with a "`/`". A - * single "`*`" can be included at the end of the path. - * The sum of the lengths of the domain and path may not - * exceed 100 characters. - * - * Generated from protobuf field string path = 2; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Resource ID of a service in this application that should - * serve the matched request. The service must already - * exist. Example: `default`. - * - * Generated from protobuf field string service = 3; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Resource ID of a service in this application that should - * serve the matched request. The service must already - * exist. Example: `default`. - * - * Generated from protobuf field string service = 3; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlMap.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlMap.php deleted file mode 100644 index 32ef9748ed72..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlMap.php +++ /dev/null @@ -1,343 +0,0 @@ -google.appengine.v1.UrlMap - */ -class UrlMap extends \Google\Protobuf\Internal\Message -{ - /** - * URL prefix. Uses regular expression syntax, which means regexp - * special characters must be escaped, but should not contain groupings. - * All URLs that begin with this prefix are handled by this handler, using the - * portion of the URL after the prefix as part of the file path. - * - * Generated from protobuf field string url_regex = 1; - */ - protected $url_regex = ''; - /** - * Security (HTTPS) enforcement for this URL. - * - * Generated from protobuf field .google.appengine.v1.SecurityLevel security_level = 5; - */ - protected $security_level = 0; - /** - * Level of login required to access this resource. Not supported for Node.js - * in the App Engine standard environment. - * - * Generated from protobuf field .google.appengine.v1.LoginRequirement login = 6; - */ - protected $login = 0; - /** - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * - * Generated from protobuf field .google.appengine.v1.AuthFailAction auth_fail_action = 7; - */ - protected $auth_fail_action = 0; - /** - * `30x` code to use when performing redirects for the `secure` field. - * Defaults to `302`. - * - * Generated from protobuf field .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; - */ - protected $redirect_http_response_code = 0; - protected $handler_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url_regex - * URL prefix. Uses regular expression syntax, which means regexp - * special characters must be escaped, but should not contain groupings. - * All URLs that begin with this prefix are handled by this handler, using the - * portion of the URL after the prefix as part of the file path. - * @type \Google\Cloud\AppEngine\V1\StaticFilesHandler $static_files - * Returns the contents of a file, such as an image, as the response. - * @type \Google\Cloud\AppEngine\V1\ScriptHandler $script - * Executes a script to handle the requests that match this URL - * pattern. Only the `auto` value is supported for Node.js in the - * App Engine standard environment, for example `"script": "auto"`. - * @type \Google\Cloud\AppEngine\V1\ApiEndpointHandler $api_endpoint - * Uses API Endpoints to handle requests. - * @type int $security_level - * Security (HTTPS) enforcement for this URL. - * @type int $login - * Level of login required to access this resource. Not supported for Node.js - * in the App Engine standard environment. - * @type int $auth_fail_action - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * @type int $redirect_http_response_code - * `30x` code to use when performing redirects for the `secure` field. - * Defaults to `302`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\AppYaml::initOnce(); - parent::__construct($data); - } - - /** - * URL prefix. Uses regular expression syntax, which means regexp - * special characters must be escaped, but should not contain groupings. - * All URLs that begin with this prefix are handled by this handler, using the - * portion of the URL after the prefix as part of the file path. - * - * Generated from protobuf field string url_regex = 1; - * @return string - */ - public function getUrlRegex() - { - return $this->url_regex; - } - - /** - * URL prefix. Uses regular expression syntax, which means regexp - * special characters must be escaped, but should not contain groupings. - * All URLs that begin with this prefix are handled by this handler, using the - * portion of the URL after the prefix as part of the file path. - * - * Generated from protobuf field string url_regex = 1; - * @param string $var - * @return $this - */ - public function setUrlRegex($var) - { - GPBUtil::checkString($var, True); - $this->url_regex = $var; - - return $this; - } - - /** - * Returns the contents of a file, such as an image, as the response. - * - * Generated from protobuf field .google.appengine.v1.StaticFilesHandler static_files = 2; - * @return \Google\Cloud\AppEngine\V1\StaticFilesHandler|null - */ - public function getStaticFiles() - { - return $this->readOneof(2); - } - - public function hasStaticFiles() - { - return $this->hasOneof(2); - } - - /** - * Returns the contents of a file, such as an image, as the response. - * - * Generated from protobuf field .google.appengine.v1.StaticFilesHandler static_files = 2; - * @param \Google\Cloud\AppEngine\V1\StaticFilesHandler $var - * @return $this - */ - public function setStaticFiles($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\StaticFilesHandler::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Executes a script to handle the requests that match this URL - * pattern. Only the `auto` value is supported for Node.js in the - * App Engine standard environment, for example `"script": "auto"`. - * - * Generated from protobuf field .google.appengine.v1.ScriptHandler script = 3; - * @return \Google\Cloud\AppEngine\V1\ScriptHandler|null - */ - public function getScript() - { - return $this->readOneof(3); - } - - public function hasScript() - { - return $this->hasOneof(3); - } - - /** - * Executes a script to handle the requests that match this URL - * pattern. Only the `auto` value is supported for Node.js in the - * App Engine standard environment, for example `"script": "auto"`. - * - * Generated from protobuf field .google.appengine.v1.ScriptHandler script = 3; - * @param \Google\Cloud\AppEngine\V1\ScriptHandler $var - * @return $this - */ - public function setScript($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ScriptHandler::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Uses API Endpoints to handle requests. - * - * Generated from protobuf field .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; - * @return \Google\Cloud\AppEngine\V1\ApiEndpointHandler|null - */ - public function getApiEndpoint() - { - return $this->readOneof(4); - } - - public function hasApiEndpoint() - { - return $this->hasOneof(4); - } - - /** - * Uses API Endpoints to handle requests. - * - * Generated from protobuf field .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; - * @param \Google\Cloud\AppEngine\V1\ApiEndpointHandler $var - * @return $this - */ - public function setApiEndpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ApiEndpointHandler::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Security (HTTPS) enforcement for this URL. - * - * Generated from protobuf field .google.appengine.v1.SecurityLevel security_level = 5; - * @return int - */ - public function getSecurityLevel() - { - return $this->security_level; - } - - /** - * Security (HTTPS) enforcement for this URL. - * - * Generated from protobuf field .google.appengine.v1.SecurityLevel security_level = 5; - * @param int $var - * @return $this - */ - public function setSecurityLevel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\SecurityLevel::class); - $this->security_level = $var; - - return $this; - } - - /** - * Level of login required to access this resource. Not supported for Node.js - * in the App Engine standard environment. - * - * Generated from protobuf field .google.appengine.v1.LoginRequirement login = 6; - * @return int - */ - public function getLogin() - { - return $this->login; - } - - /** - * Level of login required to access this resource. Not supported for Node.js - * in the App Engine standard environment. - * - * Generated from protobuf field .google.appengine.v1.LoginRequirement login = 6; - * @param int $var - * @return $this - */ - public function setLogin($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\LoginRequirement::class); - $this->login = $var; - - return $this; - } - - /** - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * - * Generated from protobuf field .google.appengine.v1.AuthFailAction auth_fail_action = 7; - * @return int - */ - public function getAuthFailAction() - { - return $this->auth_fail_action; - } - - /** - * Action to take when users access resources that require - * authentication. Defaults to `redirect`. - * - * Generated from protobuf field .google.appengine.v1.AuthFailAction auth_fail_action = 7; - * @param int $var - * @return $this - */ - public function setAuthFailAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\AuthFailAction::class); - $this->auth_fail_action = $var; - - return $this; - } - - /** - * `30x` code to use when performing redirects for the `secure` field. - * Defaults to `302`. - * - * Generated from protobuf field .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; - * @return int - */ - public function getRedirectHttpResponseCode() - { - return $this->redirect_http_response_code; - } - - /** - * `30x` code to use when performing redirects for the `secure` field. - * Defaults to `302`. - * - * Generated from protobuf field .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; - * @param int $var - * @return $this - */ - public function setRedirectHttpResponseCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\UrlMap\RedirectHttpResponseCode::class); - $this->redirect_http_response_code = $var; - - return $this; - } - - /** - * @return string - */ - public function getHandlerType() - { - return $this->whichOneof("handler_type"); - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlMap/RedirectHttpResponseCode.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlMap/RedirectHttpResponseCode.php deleted file mode 100644 index b7e265b488e7..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/UrlMap/RedirectHttpResponseCode.php +++ /dev/null @@ -1,78 +0,0 @@ -google.appengine.v1.UrlMap.RedirectHttpResponseCode - */ -class RedirectHttpResponseCode -{ - /** - * Not specified. `302` is assumed. - * - * Generated from protobuf enum REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED = 0; - */ - const REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED = 0; - /** - * `301 Moved Permanently` code. - * - * Generated from protobuf enum REDIRECT_HTTP_RESPONSE_CODE_301 = 1; - */ - const REDIRECT_HTTP_RESPONSE_CODE_301 = 1; - /** - * `302 Moved Temporarily` code. - * - * Generated from protobuf enum REDIRECT_HTTP_RESPONSE_CODE_302 = 2; - */ - const REDIRECT_HTTP_RESPONSE_CODE_302 = 2; - /** - * `303 See Other` code. - * - * Generated from protobuf enum REDIRECT_HTTP_RESPONSE_CODE_303 = 3; - */ - const REDIRECT_HTTP_RESPONSE_CODE_303 = 3; - /** - * `307 Temporary Redirect` code. - * - * Generated from protobuf enum REDIRECT_HTTP_RESPONSE_CODE_307 = 4; - */ - const REDIRECT_HTTP_RESPONSE_CODE_307 = 4; - - private static $valueToName = [ - self::REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED => 'REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED', - self::REDIRECT_HTTP_RESPONSE_CODE_301 => 'REDIRECT_HTTP_RESPONSE_CODE_301', - self::REDIRECT_HTTP_RESPONSE_CODE_302 => 'REDIRECT_HTTP_RESPONSE_CODE_302', - self::REDIRECT_HTTP_RESPONSE_CODE_303 => 'REDIRECT_HTTP_RESPONSE_CODE_303', - self::REDIRECT_HTTP_RESPONSE_CODE_307 => 'REDIRECT_HTTP_RESPONSE_CODE_307', - ]; - - 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(RedirectHttpResponseCode::class, \Google\Cloud\AppEngine\V1\UrlMap_RedirectHttpResponseCode::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Version.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Version.php deleted file mode 100644 index 61b488f2e64d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Version.php +++ /dev/null @@ -1,1757 +0,0 @@ -google.appengine.v1.Version - */ -class Version extends \Google\Protobuf\Internal\Message -{ - /** - * Full path to the Version resource in the API. Example: - * `apps/myapp/services/default/versions/v1`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Relative name of the version within the service. Example: `v1`. - * Version names can contain only lowercase letters, numbers, or hyphens. - * Reserved names: "default", "latest", and any name with the prefix "ah-". - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * Before an application can receive email or XMPP messages, the application - * must be configured to enable the service. - * - * Generated from protobuf field repeated .google.appengine.v1.InboundServiceType inbound_services = 6; - */ - private $inbound_services; - /** - * Instance class that is used to run this version. Valid values are: - * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` - * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` - * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or - * BasicScaling. - * - * Generated from protobuf field string instance_class = 7; - */ - protected $instance_class = ''; - /** - * Extra network settings. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Network network = 8; - */ - protected $network = null; - /** - * The Google Compute Engine zones that are supported by this version in the - * App Engine flexible environment. Deprecated. - * - * Generated from protobuf field repeated string zones = 118; - */ - private $zones; - /** - * Machine resources for this version. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Resources resources = 9; - */ - protected $resources = null; - /** - * Desired runtime. Example: `python27`. - * - * Generated from protobuf field string runtime = 10; - */ - protected $runtime = ''; - /** - * The channel of the runtime to use. Only available for some - * runtimes. Defaults to the `default` channel. - * - * Generated from protobuf field string runtime_channel = 117; - */ - protected $runtime_channel = ''; - /** - * Whether multiple requests can be dispatched to this version at once. - * - * Generated from protobuf field bool threadsafe = 11; - */ - protected $threadsafe = false; - /** - * Whether to deploy this version in a container on a virtual machine. - * - * Generated from protobuf field bool vm = 12; - */ - protected $vm = false; - /** - * Allows App Engine second generation runtimes to access the legacy bundled - * services. - * - * Generated from protobuf field bool app_engine_apis = 128; - */ - protected $app_engine_apis = false; - /** - * Metadata settings that are supplied to this version to enable - * beta runtime features. - * - * Generated from protobuf field map beta_settings = 13; - */ - private $beta_settings; - /** - * App Engine execution environment for this version. - * Defaults to `standard`. - * - * Generated from protobuf field string env = 14; - */ - protected $env = ''; - /** - * Current serving status of this version. Only the versions with a - * `SERVING` status create instances and can be billed. - * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. - * - * Generated from protobuf field .google.appengine.v1.ServingStatus serving_status = 15; - */ - protected $serving_status = 0; - /** - * Email address of the user who created this version. - * @OutputOnly - * - * Generated from protobuf field string created_by = 16; - */ - protected $created_by = ''; - /** - * Time that this version was created. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17; - */ - protected $create_time = null; - /** - * Total size in bytes of all the files that are included in this version - * and currently hosted on the App Engine disk. - * @OutputOnly - * - * Generated from protobuf field int64 disk_usage_bytes = 18; - */ - protected $disk_usage_bytes = 0; - /** - * The version of the API in the given runtime environment. Please see the - * app.yaml reference for valid values at - * https://cloud.google.com/appengine/docs/standard//config/appref - * - * Generated from protobuf field string runtime_api_version = 21; - */ - protected $runtime_api_version = ''; - /** - * The path or name of the app's main executable. - * - * Generated from protobuf field string runtime_main_executable_path = 22; - */ - protected $runtime_main_executable_path = ''; - /** - * The identity that the deployed version will run as. - * Admin API will use the App Engine Appspot service account as default if - * this field is neither provided in app.yaml file nor through CLI flag. - * - * Generated from protobuf field string service_account = 127; - */ - protected $service_account = ''; - /** - * An ordered list of URL-matching patterns that should be applied to incoming - * requests. The first matching URL handles the request and other request - * handlers are not attempted. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.UrlMap handlers = 100; - */ - private $handlers; - /** - * Custom static error pages. Limited to 10KB per page. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.ErrorHandler error_handlers = 101; - */ - private $error_handlers; - /** - * Configuration for third-party Python runtime libraries that are required - * by the application. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.Library libraries = 102; - */ - private $libraries; - /** - * Serving configuration for - * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.ApiConfigHandler api_config = 103; - */ - protected $api_config = null; - /** - * Environment variables available to the application. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field map env_variables = 104; - */ - private $env_variables; - /** - * Environment variables available to the build environment. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field map build_env_variables = 125; - */ - private $build_env_variables; - /** - * Duration that static files should be cached by web proxies and browsers. - * Only applicable if the corresponding - * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) - * does not specify its own expiration time. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.protobuf.Duration default_expiration = 105; - */ - protected $default_expiration = null; - /** - * Configures health checking for instances. Unhealthy instances are - * stopped and replaced with new instances. - * Only applicable in the App Engine flexible environment. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.HealthCheck health_check = 106; - */ - protected $health_check = null; - /** - * Configures readiness health checking for instances. - * Unhealthy instances are not put into the backend traffic rotation. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.ReadinessCheck readiness_check = 112; - */ - protected $readiness_check = null; - /** - * Configures liveness health checking for instances. - * Unhealthy instances are stopped and replaced with new instances - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.LivenessCheck liveness_check = 113; - */ - protected $liveness_check = null; - /** - * Files that match this pattern will not be built into this version. - * Only applicable for Go runtimes. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field string nobuild_files_regex = 107; - */ - protected $nobuild_files_regex = ''; - /** - * Code and application artifacts that make up this version. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.Deployment deployment = 108; - */ - protected $deployment = null; - /** - * Serving URL for this version. Example: - * "https://myversion-dot-myservice-dot-myapp.appspot.com" - * @OutputOnly - * - * Generated from protobuf field string version_url = 109; - */ - protected $version_url = ''; - /** - * Cloud Endpoints configuration. - * If endpoints_api_service is set, the Cloud Endpoints Extensible Service - * Proxy will be provided to serve the API implemented by the app. - * - * Generated from protobuf field .google.appengine.v1.EndpointsApiService endpoints_api_service = 110; - */ - protected $endpoints_api_service = null; - /** - * The entrypoint for the application. - * - * Generated from protobuf field .google.appengine.v1.Entrypoint entrypoint = 122; - */ - protected $entrypoint = null; - /** - * Enables VPC connectivity for standard apps. - * - * Generated from protobuf field .google.appengine.v1.VpcAccessConnector vpc_access_connector = 121; - */ - protected $vpc_access_connector = null; - protected $scaling; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Full path to the Version resource in the API. Example: - * `apps/myapp/services/default/versions/v1`. - * @OutputOnly - * @type string $id - * Relative name of the version within the service. Example: `v1`. - * Version names can contain only lowercase letters, numbers, or hyphens. - * Reserved names: "default", "latest", and any name with the prefix "ah-". - * @type \Google\Cloud\AppEngine\V1\AutomaticScaling $automatic_scaling - * Automatic scaling is based on request rate, response latencies, and other - * application metrics. Instances are dynamically created and destroyed as - * needed in order to handle traffic. - * @type \Google\Cloud\AppEngine\V1\BasicScaling $basic_scaling - * A service with basic scaling will create an instance when the application - * receives a request. The instance will be turned down when the app becomes - * idle. Basic scaling is ideal for work that is intermittent or driven by - * user activity. - * @type \Google\Cloud\AppEngine\V1\ManualScaling $manual_scaling - * A service with manual scaling runs continuously, allowing you to perform - * complex initialization and rely on the state of its memory over time. - * Manually scaled versions are sometimes referred to as "backends". - * @type array|\Google\Protobuf\Internal\RepeatedField $inbound_services - * Before an application can receive email or XMPP messages, the application - * must be configured to enable the service. - * @type string $instance_class - * Instance class that is used to run this version. Valid values are: - * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` - * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` - * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or - * BasicScaling. - * @type \Google\Cloud\AppEngine\V1\Network $network - * Extra network settings. - * Only applicable in the App Engine flexible environment. - * @type array|\Google\Protobuf\Internal\RepeatedField $zones - * The Google Compute Engine zones that are supported by this version in the - * App Engine flexible environment. Deprecated. - * @type \Google\Cloud\AppEngine\V1\Resources $resources - * Machine resources for this version. - * Only applicable in the App Engine flexible environment. - * @type string $runtime - * Desired runtime. Example: `python27`. - * @type string $runtime_channel - * The channel of the runtime to use. Only available for some - * runtimes. Defaults to the `default` channel. - * @type bool $threadsafe - * Whether multiple requests can be dispatched to this version at once. - * @type bool $vm - * Whether to deploy this version in a container on a virtual machine. - * @type bool $app_engine_apis - * Allows App Engine second generation runtimes to access the legacy bundled - * services. - * @type array|\Google\Protobuf\Internal\MapField $beta_settings - * Metadata settings that are supplied to this version to enable - * beta runtime features. - * @type string $env - * App Engine execution environment for this version. - * Defaults to `standard`. - * @type int $serving_status - * Current serving status of this version. Only the versions with a - * `SERVING` status create instances and can be billed. - * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. - * @type string $created_by - * Email address of the user who created this version. - * @OutputOnly - * @type \Google\Protobuf\Timestamp $create_time - * Time that this version was created. - * @OutputOnly - * @type int|string $disk_usage_bytes - * Total size in bytes of all the files that are included in this version - * and currently hosted on the App Engine disk. - * @OutputOnly - * @type string $runtime_api_version - * The version of the API in the given runtime environment. Please see the - * app.yaml reference for valid values at - * https://cloud.google.com/appengine/docs/standard//config/appref - * @type string $runtime_main_executable_path - * The path or name of the app's main executable. - * @type string $service_account - * The identity that the deployed version will run as. - * Admin API will use the App Engine Appspot service account as default if - * this field is neither provided in app.yaml file nor through CLI flag. - * @type array<\Google\Cloud\AppEngine\V1\UrlMap>|\Google\Protobuf\Internal\RepeatedField $handlers - * An ordered list of URL-matching patterns that should be applied to incoming - * requests. The first matching URL handles the request and other request - * handlers are not attempted. - * Only returned in `GET` requests if `view=FULL` is set. - * @type array<\Google\Cloud\AppEngine\V1\ErrorHandler>|\Google\Protobuf\Internal\RepeatedField $error_handlers - * Custom static error pages. Limited to 10KB per page. - * Only returned in `GET` requests if `view=FULL` is set. - * @type array<\Google\Cloud\AppEngine\V1\Library>|\Google\Protobuf\Internal\RepeatedField $libraries - * Configuration for third-party Python runtime libraries that are required - * by the application. - * Only returned in `GET` requests if `view=FULL` is set. - * @type \Google\Cloud\AppEngine\V1\ApiConfigHandler $api_config - * Serving configuration for - * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). - * Only returned in `GET` requests if `view=FULL` is set. - * @type array|\Google\Protobuf\Internal\MapField $env_variables - * Environment variables available to the application. - * Only returned in `GET` requests if `view=FULL` is set. - * @type array|\Google\Protobuf\Internal\MapField $build_env_variables - * Environment variables available to the build environment. - * Only returned in `GET` requests if `view=FULL` is set. - * @type \Google\Protobuf\Duration $default_expiration - * Duration that static files should be cached by web proxies and browsers. - * Only applicable if the corresponding - * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) - * does not specify its own expiration time. - * Only returned in `GET` requests if `view=FULL` is set. - * @type \Google\Cloud\AppEngine\V1\HealthCheck $health_check - * Configures health checking for instances. Unhealthy instances are - * stopped and replaced with new instances. - * Only applicable in the App Engine flexible environment. - * Only returned in `GET` requests if `view=FULL` is set. - * @type \Google\Cloud\AppEngine\V1\ReadinessCheck $readiness_check - * Configures readiness health checking for instances. - * Unhealthy instances are not put into the backend traffic rotation. - * Only returned in `GET` requests if `view=FULL` is set. - * @type \Google\Cloud\AppEngine\V1\LivenessCheck $liveness_check - * Configures liveness health checking for instances. - * Unhealthy instances are stopped and replaced with new instances - * Only returned in `GET` requests if `view=FULL` is set. - * @type string $nobuild_files_regex - * Files that match this pattern will not be built into this version. - * Only applicable for Go runtimes. - * Only returned in `GET` requests if `view=FULL` is set. - * @type \Google\Cloud\AppEngine\V1\Deployment $deployment - * Code and application artifacts that make up this version. - * Only returned in `GET` requests if `view=FULL` is set. - * @type string $version_url - * Serving URL for this version. Example: - * "https://myversion-dot-myservice-dot-myapp.appspot.com" - * @OutputOnly - * @type \Google\Cloud\AppEngine\V1\EndpointsApiService $endpoints_api_service - * Cloud Endpoints configuration. - * If endpoints_api_service is set, the Cloud Endpoints Extensible Service - * Proxy will be provided to serve the API implemented by the app. - * @type \Google\Cloud\AppEngine\V1\Entrypoint $entrypoint - * The entrypoint for the application. - * @type \Google\Cloud\AppEngine\V1\VpcAccessConnector $vpc_access_connector - * Enables VPC connectivity for standard apps. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Full path to the Version resource in the API. Example: - * `apps/myapp/services/default/versions/v1`. - * @OutputOnly - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Full path to the Version resource in the API. Example: - * `apps/myapp/services/default/versions/v1`. - * @OutputOnly - * - * 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; - } - - /** - * Relative name of the version within the service. Example: `v1`. - * Version names can contain only lowercase letters, numbers, or hyphens. - * Reserved names: "default", "latest", and any name with the prefix "ah-". - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Relative name of the version within the service. Example: `v1`. - * Version names can contain only lowercase letters, numbers, or hyphens. - * Reserved names: "default", "latest", and any name with the prefix "ah-". - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Automatic scaling is based on request rate, response latencies, and other - * application metrics. Instances are dynamically created and destroyed as - * needed in order to handle traffic. - * - * Generated from protobuf field .google.appengine.v1.AutomaticScaling automatic_scaling = 3; - * @return \Google\Cloud\AppEngine\V1\AutomaticScaling|null - */ - public function getAutomaticScaling() - { - return $this->readOneof(3); - } - - public function hasAutomaticScaling() - { - return $this->hasOneof(3); - } - - /** - * Automatic scaling is based on request rate, response latencies, and other - * application metrics. Instances are dynamically created and destroyed as - * needed in order to handle traffic. - * - * Generated from protobuf field .google.appengine.v1.AutomaticScaling automatic_scaling = 3; - * @param \Google\Cloud\AppEngine\V1\AutomaticScaling $var - * @return $this - */ - public function setAutomaticScaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\AutomaticScaling::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A service with basic scaling will create an instance when the application - * receives a request. The instance will be turned down when the app becomes - * idle. Basic scaling is ideal for work that is intermittent or driven by - * user activity. - * - * Generated from protobuf field .google.appengine.v1.BasicScaling basic_scaling = 4; - * @return \Google\Cloud\AppEngine\V1\BasicScaling|null - */ - public function getBasicScaling() - { - return $this->readOneof(4); - } - - public function hasBasicScaling() - { - return $this->hasOneof(4); - } - - /** - * A service with basic scaling will create an instance when the application - * receives a request. The instance will be turned down when the app becomes - * idle. Basic scaling is ideal for work that is intermittent or driven by - * user activity. - * - * Generated from protobuf field .google.appengine.v1.BasicScaling basic_scaling = 4; - * @param \Google\Cloud\AppEngine\V1\BasicScaling $var - * @return $this - */ - public function setBasicScaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\BasicScaling::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A service with manual scaling runs continuously, allowing you to perform - * complex initialization and rely on the state of its memory over time. - * Manually scaled versions are sometimes referred to as "backends". - * - * Generated from protobuf field .google.appengine.v1.ManualScaling manual_scaling = 5; - * @return \Google\Cloud\AppEngine\V1\ManualScaling|null - */ - public function getManualScaling() - { - return $this->readOneof(5); - } - - public function hasManualScaling() - { - return $this->hasOneof(5); - } - - /** - * A service with manual scaling runs continuously, allowing you to perform - * complex initialization and rely on the state of its memory over time. - * Manually scaled versions are sometimes referred to as "backends". - * - * Generated from protobuf field .google.appengine.v1.ManualScaling manual_scaling = 5; - * @param \Google\Cloud\AppEngine\V1\ManualScaling $var - * @return $this - */ - public function setManualScaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ManualScaling::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Before an application can receive email or XMPP messages, the application - * must be configured to enable the service. - * - * Generated from protobuf field repeated .google.appengine.v1.InboundServiceType inbound_services = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInboundServices() - { - return $this->inbound_services; - } - - /** - * Before an application can receive email or XMPP messages, the application - * must be configured to enable the service. - * - * Generated from protobuf field repeated .google.appengine.v1.InboundServiceType inbound_services = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInboundServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\AppEngine\V1\InboundServiceType::class); - $this->inbound_services = $arr; - - return $this; - } - - /** - * Instance class that is used to run this version. Valid values are: - * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` - * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` - * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or - * BasicScaling. - * - * Generated from protobuf field string instance_class = 7; - * @return string - */ - public function getInstanceClass() - { - return $this->instance_class; - } - - /** - * Instance class that is used to run this version. Valid values are: - * * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` - * * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` - * Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or - * BasicScaling. - * - * Generated from protobuf field string instance_class = 7; - * @param string $var - * @return $this - */ - public function setInstanceClass($var) - { - GPBUtil::checkString($var, True); - $this->instance_class = $var; - - return $this; - } - - /** - * Extra network settings. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Network network = 8; - * @return \Google\Cloud\AppEngine\V1\Network|null - */ - public function getNetwork() - { - return $this->network; - } - - public function hasNetwork() - { - return isset($this->network); - } - - public function clearNetwork() - { - unset($this->network); - } - - /** - * Extra network settings. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Network network = 8; - * @param \Google\Cloud\AppEngine\V1\Network $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Network::class); - $this->network = $var; - - return $this; - } - - /** - * The Google Compute Engine zones that are supported by this version in the - * App Engine flexible environment. Deprecated. - * - * Generated from protobuf field repeated string zones = 118; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getZones() - { - return $this->zones; - } - - /** - * The Google Compute Engine zones that are supported by this version in the - * App Engine flexible environment. Deprecated. - * - * Generated from protobuf field repeated string zones = 118; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->zones = $arr; - - return $this; - } - - /** - * Machine resources for this version. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Resources resources = 9; - * @return \Google\Cloud\AppEngine\V1\Resources|null - */ - public function getResources() - { - return $this->resources; - } - - public function hasResources() - { - return isset($this->resources); - } - - public function clearResources() - { - unset($this->resources); - } - - /** - * Machine resources for this version. - * Only applicable in the App Engine flexible environment. - * - * Generated from protobuf field .google.appengine.v1.Resources resources = 9; - * @param \Google\Cloud\AppEngine\V1\Resources $var - * @return $this - */ - public function setResources($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Resources::class); - $this->resources = $var; - - return $this; - } - - /** - * Desired runtime. Example: `python27`. - * - * Generated from protobuf field string runtime = 10; - * @return string - */ - public function getRuntime() - { - return $this->runtime; - } - - /** - * Desired runtime. Example: `python27`. - * - * Generated from protobuf field string runtime = 10; - * @param string $var - * @return $this - */ - public function setRuntime($var) - { - GPBUtil::checkString($var, True); - $this->runtime = $var; - - return $this; - } - - /** - * The channel of the runtime to use. Only available for some - * runtimes. Defaults to the `default` channel. - * - * Generated from protobuf field string runtime_channel = 117; - * @return string - */ - public function getRuntimeChannel() - { - return $this->runtime_channel; - } - - /** - * The channel of the runtime to use. Only available for some - * runtimes. Defaults to the `default` channel. - * - * Generated from protobuf field string runtime_channel = 117; - * @param string $var - * @return $this - */ - public function setRuntimeChannel($var) - { - GPBUtil::checkString($var, True); - $this->runtime_channel = $var; - - return $this; - } - - /** - * Whether multiple requests can be dispatched to this version at once. - * - * Generated from protobuf field bool threadsafe = 11; - * @return bool - */ - public function getThreadsafe() - { - return $this->threadsafe; - } - - /** - * Whether multiple requests can be dispatched to this version at once. - * - * Generated from protobuf field bool threadsafe = 11; - * @param bool $var - * @return $this - */ - public function setThreadsafe($var) - { - GPBUtil::checkBool($var); - $this->threadsafe = $var; - - return $this; - } - - /** - * Whether to deploy this version in a container on a virtual machine. - * - * Generated from protobuf field bool vm = 12; - * @return bool - */ - public function getVm() - { - return $this->vm; - } - - /** - * Whether to deploy this version in a container on a virtual machine. - * - * Generated from protobuf field bool vm = 12; - * @param bool $var - * @return $this - */ - public function setVm($var) - { - GPBUtil::checkBool($var); - $this->vm = $var; - - return $this; - } - - /** - * Allows App Engine second generation runtimes to access the legacy bundled - * services. - * - * Generated from protobuf field bool app_engine_apis = 128; - * @return bool - */ - public function getAppEngineApis() - { - return $this->app_engine_apis; - } - - /** - * Allows App Engine second generation runtimes to access the legacy bundled - * services. - * - * Generated from protobuf field bool app_engine_apis = 128; - * @param bool $var - * @return $this - */ - public function setAppEngineApis($var) - { - GPBUtil::checkBool($var); - $this->app_engine_apis = $var; - - return $this; - } - - /** - * Metadata settings that are supplied to this version to enable - * beta runtime features. - * - * Generated from protobuf field map beta_settings = 13; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBetaSettings() - { - return $this->beta_settings; - } - - /** - * Metadata settings that are supplied to this version to enable - * beta runtime features. - * - * Generated from protobuf field map beta_settings = 13; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBetaSettings($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->beta_settings = $arr; - - return $this; - } - - /** - * App Engine execution environment for this version. - * Defaults to `standard`. - * - * Generated from protobuf field string env = 14; - * @return string - */ - public function getEnv() - { - return $this->env; - } - - /** - * App Engine execution environment for this version. - * Defaults to `standard`. - * - * Generated from protobuf field string env = 14; - * @param string $var - * @return $this - */ - public function setEnv($var) - { - GPBUtil::checkString($var, True); - $this->env = $var; - - return $this; - } - - /** - * Current serving status of this version. Only the versions with a - * `SERVING` status create instances and can be billed. - * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. - * - * Generated from protobuf field .google.appengine.v1.ServingStatus serving_status = 15; - * @return int - */ - public function getServingStatus() - { - return $this->serving_status; - } - - /** - * Current serving status of this version. Only the versions with a - * `SERVING` status create instances and can be billed. - * `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. - * - * Generated from protobuf field .google.appengine.v1.ServingStatus serving_status = 15; - * @param int $var - * @return $this - */ - public function setServingStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\ServingStatus::class); - $this->serving_status = $var; - - return $this; - } - - /** - * Email address of the user who created this version. - * @OutputOnly - * - * Generated from protobuf field string created_by = 16; - * @return string - */ - public function getCreatedBy() - { - return $this->created_by; - } - - /** - * Email address of the user who created this version. - * @OutputOnly - * - * Generated from protobuf field string created_by = 16; - * @param string $var - * @return $this - */ - public function setCreatedBy($var) - { - GPBUtil::checkString($var, True); - $this->created_by = $var; - - return $this; - } - - /** - * Time that this version was created. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17; - * @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); - } - - /** - * Time that this version was created. - * @OutputOnly - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Total size in bytes of all the files that are included in this version - * and currently hosted on the App Engine disk. - * @OutputOnly - * - * Generated from protobuf field int64 disk_usage_bytes = 18; - * @return int|string - */ - public function getDiskUsageBytes() - { - return $this->disk_usage_bytes; - } - - /** - * Total size in bytes of all the files that are included in this version - * and currently hosted on the App Engine disk. - * @OutputOnly - * - * Generated from protobuf field int64 disk_usage_bytes = 18; - * @param int|string $var - * @return $this - */ - public function setDiskUsageBytes($var) - { - GPBUtil::checkInt64($var); - $this->disk_usage_bytes = $var; - - return $this; - } - - /** - * The version of the API in the given runtime environment. Please see the - * app.yaml reference for valid values at - * https://cloud.google.com/appengine/docs/standard//config/appref - * - * Generated from protobuf field string runtime_api_version = 21; - * @return string - */ - public function getRuntimeApiVersion() - { - return $this->runtime_api_version; - } - - /** - * The version of the API in the given runtime environment. Please see the - * app.yaml reference for valid values at - * https://cloud.google.com/appengine/docs/standard//config/appref - * - * Generated from protobuf field string runtime_api_version = 21; - * @param string $var - * @return $this - */ - public function setRuntimeApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->runtime_api_version = $var; - - return $this; - } - - /** - * The path or name of the app's main executable. - * - * Generated from protobuf field string runtime_main_executable_path = 22; - * @return string - */ - public function getRuntimeMainExecutablePath() - { - return $this->runtime_main_executable_path; - } - - /** - * The path or name of the app's main executable. - * - * Generated from protobuf field string runtime_main_executable_path = 22; - * @param string $var - * @return $this - */ - public function setRuntimeMainExecutablePath($var) - { - GPBUtil::checkString($var, True); - $this->runtime_main_executable_path = $var; - - return $this; - } - - /** - * The identity that the deployed version will run as. - * Admin API will use the App Engine Appspot service account as default if - * this field is neither provided in app.yaml file nor through CLI flag. - * - * Generated from protobuf field string service_account = 127; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The identity that the deployed version will run as. - * Admin API will use the App Engine Appspot service account as default if - * this field is neither provided in app.yaml file nor through CLI flag. - * - * Generated from protobuf field string service_account = 127; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * An ordered list of URL-matching patterns that should be applied to incoming - * requests. The first matching URL handles the request and other request - * handlers are not attempted. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.UrlMap handlers = 100; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHandlers() - { - return $this->handlers; - } - - /** - * An ordered list of URL-matching patterns that should be applied to incoming - * requests. The first matching URL handles the request and other request - * handlers are not attempted. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.UrlMap handlers = 100; - * @param array<\Google\Cloud\AppEngine\V1\UrlMap>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHandlers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\UrlMap::class); - $this->handlers = $arr; - - return $this; - } - - /** - * Custom static error pages. Limited to 10KB per page. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.ErrorHandler error_handlers = 101; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorHandlers() - { - return $this->error_handlers; - } - - /** - * Custom static error pages. Limited to 10KB per page. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.ErrorHandler error_handlers = 101; - * @param array<\Google\Cloud\AppEngine\V1\ErrorHandler>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorHandlers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\ErrorHandler::class); - $this->error_handlers = $arr; - - return $this; - } - - /** - * Configuration for third-party Python runtime libraries that are required - * by the application. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.Library libraries = 102; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLibraries() - { - return $this->libraries; - } - - /** - * Configuration for third-party Python runtime libraries that are required - * by the application. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field repeated .google.appengine.v1.Library libraries = 102; - * @param array<\Google\Cloud\AppEngine\V1\Library>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLibraries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppEngine\V1\Library::class); - $this->libraries = $arr; - - return $this; - } - - /** - * Serving configuration for - * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.ApiConfigHandler api_config = 103; - * @return \Google\Cloud\AppEngine\V1\ApiConfigHandler|null - */ - public function getApiConfig() - { - return $this->api_config; - } - - public function hasApiConfig() - { - return isset($this->api_config); - } - - public function clearApiConfig() - { - unset($this->api_config); - } - - /** - * Serving configuration for - * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.ApiConfigHandler api_config = 103; - * @param \Google\Cloud\AppEngine\V1\ApiConfigHandler $var - * @return $this - */ - public function setApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ApiConfigHandler::class); - $this->api_config = $var; - - return $this; - } - - /** - * Environment variables available to the application. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field map env_variables = 104; - * @return \Google\Protobuf\Internal\MapField - */ - public function getEnvVariables() - { - return $this->env_variables; - } - - /** - * Environment variables available to the application. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field map env_variables = 104; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setEnvVariables($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->env_variables = $arr; - - return $this; - } - - /** - * Environment variables available to the build environment. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field map build_env_variables = 125; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBuildEnvVariables() - { - return $this->build_env_variables; - } - - /** - * Environment variables available to the build environment. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field map build_env_variables = 125; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBuildEnvVariables($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->build_env_variables = $arr; - - return $this; - } - - /** - * Duration that static files should be cached by web proxies and browsers. - * Only applicable if the corresponding - * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) - * does not specify its own expiration time. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.protobuf.Duration default_expiration = 105; - * @return \Google\Protobuf\Duration|null - */ - public function getDefaultExpiration() - { - return $this->default_expiration; - } - - public function hasDefaultExpiration() - { - return isset($this->default_expiration); - } - - public function clearDefaultExpiration() - { - unset($this->default_expiration); - } - - /** - * Duration that static files should be cached by web proxies and browsers. - * Only applicable if the corresponding - * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) - * does not specify its own expiration time. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.protobuf.Duration default_expiration = 105; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDefaultExpiration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->default_expiration = $var; - - return $this; - } - - /** - * Configures health checking for instances. Unhealthy instances are - * stopped and replaced with new instances. - * Only applicable in the App Engine flexible environment. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.HealthCheck health_check = 106; - * @return \Google\Cloud\AppEngine\V1\HealthCheck|null - */ - public function getHealthCheck() - { - return $this->health_check; - } - - public function hasHealthCheck() - { - return isset($this->health_check); - } - - public function clearHealthCheck() - { - unset($this->health_check); - } - - /** - * Configures health checking for instances. Unhealthy instances are - * stopped and replaced with new instances. - * Only applicable in the App Engine flexible environment. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.HealthCheck health_check = 106; - * @param \Google\Cloud\AppEngine\V1\HealthCheck $var - * @return $this - */ - public function setHealthCheck($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\HealthCheck::class); - $this->health_check = $var; - - return $this; - } - - /** - * Configures readiness health checking for instances. - * Unhealthy instances are not put into the backend traffic rotation. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.ReadinessCheck readiness_check = 112; - * @return \Google\Cloud\AppEngine\V1\ReadinessCheck|null - */ - public function getReadinessCheck() - { - return $this->readiness_check; - } - - public function hasReadinessCheck() - { - return isset($this->readiness_check); - } - - public function clearReadinessCheck() - { - unset($this->readiness_check); - } - - /** - * Configures readiness health checking for instances. - * Unhealthy instances are not put into the backend traffic rotation. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.ReadinessCheck readiness_check = 112; - * @param \Google\Cloud\AppEngine\V1\ReadinessCheck $var - * @return $this - */ - public function setReadinessCheck($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\ReadinessCheck::class); - $this->readiness_check = $var; - - return $this; - } - - /** - * Configures liveness health checking for instances. - * Unhealthy instances are stopped and replaced with new instances - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.LivenessCheck liveness_check = 113; - * @return \Google\Cloud\AppEngine\V1\LivenessCheck|null - */ - public function getLivenessCheck() - { - return $this->liveness_check; - } - - public function hasLivenessCheck() - { - return isset($this->liveness_check); - } - - public function clearLivenessCheck() - { - unset($this->liveness_check); - } - - /** - * Configures liveness health checking for instances. - * Unhealthy instances are stopped and replaced with new instances - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.LivenessCheck liveness_check = 113; - * @param \Google\Cloud\AppEngine\V1\LivenessCheck $var - * @return $this - */ - public function setLivenessCheck($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\LivenessCheck::class); - $this->liveness_check = $var; - - return $this; - } - - /** - * Files that match this pattern will not be built into this version. - * Only applicable for Go runtimes. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field string nobuild_files_regex = 107; - * @return string - */ - public function getNobuildFilesRegex() - { - return $this->nobuild_files_regex; - } - - /** - * Files that match this pattern will not be built into this version. - * Only applicable for Go runtimes. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field string nobuild_files_regex = 107; - * @param string $var - * @return $this - */ - public function setNobuildFilesRegex($var) - { - GPBUtil::checkString($var, True); - $this->nobuild_files_regex = $var; - - return $this; - } - - /** - * Code and application artifacts that make up this version. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.Deployment deployment = 108; - * @return \Google\Cloud\AppEngine\V1\Deployment|null - */ - public function getDeployment() - { - return $this->deployment; - } - - public function hasDeployment() - { - return isset($this->deployment); - } - - public function clearDeployment() - { - unset($this->deployment); - } - - /** - * Code and application artifacts that make up this version. - * Only returned in `GET` requests if `view=FULL` is set. - * - * Generated from protobuf field .google.appengine.v1.Deployment deployment = 108; - * @param \Google\Cloud\AppEngine\V1\Deployment $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Deployment::class); - $this->deployment = $var; - - return $this; - } - - /** - * Serving URL for this version. Example: - * "https://myversion-dot-myservice-dot-myapp.appspot.com" - * @OutputOnly - * - * Generated from protobuf field string version_url = 109; - * @return string - */ - public function getVersionUrl() - { - return $this->version_url; - } - - /** - * Serving URL for this version. Example: - * "https://myversion-dot-myservice-dot-myapp.appspot.com" - * @OutputOnly - * - * Generated from protobuf field string version_url = 109; - * @param string $var - * @return $this - */ - public function setVersionUrl($var) - { - GPBUtil::checkString($var, True); - $this->version_url = $var; - - return $this; - } - - /** - * Cloud Endpoints configuration. - * If endpoints_api_service is set, the Cloud Endpoints Extensible Service - * Proxy will be provided to serve the API implemented by the app. - * - * Generated from protobuf field .google.appengine.v1.EndpointsApiService endpoints_api_service = 110; - * @return \Google\Cloud\AppEngine\V1\EndpointsApiService|null - */ - public function getEndpointsApiService() - { - return $this->endpoints_api_service; - } - - public function hasEndpointsApiService() - { - return isset($this->endpoints_api_service); - } - - public function clearEndpointsApiService() - { - unset($this->endpoints_api_service); - } - - /** - * Cloud Endpoints configuration. - * If endpoints_api_service is set, the Cloud Endpoints Extensible Service - * Proxy will be provided to serve the API implemented by the app. - * - * Generated from protobuf field .google.appengine.v1.EndpointsApiService endpoints_api_service = 110; - * @param \Google\Cloud\AppEngine\V1\EndpointsApiService $var - * @return $this - */ - public function setEndpointsApiService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\EndpointsApiService::class); - $this->endpoints_api_service = $var; - - return $this; - } - - /** - * The entrypoint for the application. - * - * Generated from protobuf field .google.appengine.v1.Entrypoint entrypoint = 122; - * @return \Google\Cloud\AppEngine\V1\Entrypoint|null - */ - public function getEntrypoint() - { - return $this->entrypoint; - } - - public function hasEntrypoint() - { - return isset($this->entrypoint); - } - - public function clearEntrypoint() - { - unset($this->entrypoint); - } - - /** - * The entrypoint for the application. - * - * Generated from protobuf field .google.appengine.v1.Entrypoint entrypoint = 122; - * @param \Google\Cloud\AppEngine\V1\Entrypoint $var - * @return $this - */ - public function setEntrypoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\Entrypoint::class); - $this->entrypoint = $var; - - return $this; - } - - /** - * Enables VPC connectivity for standard apps. - * - * Generated from protobuf field .google.appengine.v1.VpcAccessConnector vpc_access_connector = 121; - * @return \Google\Cloud\AppEngine\V1\VpcAccessConnector|null - */ - public function getVpcAccessConnector() - { - return $this->vpc_access_connector; - } - - public function hasVpcAccessConnector() - { - return isset($this->vpc_access_connector); - } - - public function clearVpcAccessConnector() - { - unset($this->vpc_access_connector); - } - - /** - * Enables VPC connectivity for standard apps. - * - * Generated from protobuf field .google.appengine.v1.VpcAccessConnector vpc_access_connector = 121; - * @param \Google\Cloud\AppEngine\V1\VpcAccessConnector $var - * @return $this - */ - public function setVpcAccessConnector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppEngine\V1\VpcAccessConnector::class); - $this->vpc_access_connector = $var; - - return $this; - } - - /** - * @return string - */ - public function getScaling() - { - return $this->whichOneof("scaling"); - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VersionView.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VersionView.php deleted file mode 100644 index 1fdf92f36fc6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VersionView.php +++ /dev/null @@ -1,58 +0,0 @@ -google.appengine.v1.VersionView - */ -class VersionView -{ - /** - * Basic version information including scaling and inbound services, - * but not detailed deployment information. - * - * Generated from protobuf enum BASIC = 0; - */ - const BASIC = 0; - /** - * The information from `BASIC`, plus detailed information about the - * deployment. This format is required when creating resources, but - * is not returned in `Get` or `List` by default. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - - private static $valueToName = [ - self::BASIC => 'BASIC', - self::FULL => 'FULL', - ]; - - 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/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Volume.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Volume.php deleted file mode 100644 index 9be21e0fa637..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/Volume.php +++ /dev/null @@ -1,136 +0,0 @@ -google.appengine.v1.Volume - */ -class Volume extends \Google\Protobuf\Internal\Message -{ - /** - * Unique name for the volume. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Underlying volume type, e.g. 'tmpfs'. - * - * Generated from protobuf field string volume_type = 2; - */ - protected $volume_type = ''; - /** - * Volume size in gigabytes. - * - * Generated from protobuf field double size_gb = 3; - */ - protected $size_gb = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Unique name for the volume. - * @type string $volume_type - * Underlying volume type, e.g. 'tmpfs'. - * @type float $size_gb - * Volume size in gigabytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Unique name for the volume. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Unique name for the volume. - * - * 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; - } - - /** - * Underlying volume type, e.g. 'tmpfs'. - * - * Generated from protobuf field string volume_type = 2; - * @return string - */ - public function getVolumeType() - { - return $this->volume_type; - } - - /** - * Underlying volume type, e.g. 'tmpfs'. - * - * Generated from protobuf field string volume_type = 2; - * @param string $var - * @return $this - */ - public function setVolumeType($var) - { - GPBUtil::checkString($var, True); - $this->volume_type = $var; - - return $this; - } - - /** - * Volume size in gigabytes. - * - * Generated from protobuf field double size_gb = 3; - * @return float - */ - public function getSizeGb() - { - return $this->size_gb; - } - - /** - * Volume size in gigabytes. - * - * Generated from protobuf field double size_gb = 3; - * @param float $var - * @return $this - */ - public function setSizeGb($var) - { - GPBUtil::checkDouble($var); - $this->size_gb = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VpcAccessConnector.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VpcAccessConnector.php deleted file mode 100644 index eec0eaeed424..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VpcAccessConnector.php +++ /dev/null @@ -1,109 +0,0 @@ -google.appengine.v1.VpcAccessConnector - */ -class VpcAccessConnector extends \Google\Protobuf\Internal\Message -{ - /** - * Full Serverless VPC Access Connector name e.g. - * /projects/my-project/locations/us-central1/connectors/c1. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The egress setting for the connector, controlling what traffic is diverted - * through it. - * - * Generated from protobuf field .google.appengine.v1.VpcAccessConnector.EgressSetting egress_setting = 2; - */ - protected $egress_setting = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Full Serverless VPC Access Connector name e.g. - * /projects/my-project/locations/us-central1/connectors/c1. - * @type int $egress_setting - * The egress setting for the connector, controlling what traffic is diverted - * through it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Full Serverless VPC Access Connector name e.g. - * /projects/my-project/locations/us-central1/connectors/c1. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Full Serverless VPC Access Connector name e.g. - * /projects/my-project/locations/us-central1/connectors/c1. - * - * 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; - } - - /** - * The egress setting for the connector, controlling what traffic is diverted - * through it. - * - * Generated from protobuf field .google.appengine.v1.VpcAccessConnector.EgressSetting egress_setting = 2; - * @return int - */ - public function getEgressSetting() - { - return $this->egress_setting; - } - - /** - * The egress setting for the connector, controlling what traffic is diverted - * through it. - * - * Generated from protobuf field .google.appengine.v1.VpcAccessConnector.EgressSetting egress_setting = 2; - * @param int $var - * @return $this - */ - public function setEgressSetting($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppEngine\V1\VpcAccessConnector\EgressSetting::class); - $this->egress_setting = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VpcAccessConnector/EgressSetting.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VpcAccessConnector/EgressSetting.php deleted file mode 100644 index af59b90c6706..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/VpcAccessConnector/EgressSetting.php +++ /dev/null @@ -1,64 +0,0 @@ -google.appengine.v1.VpcAccessConnector.EgressSetting - */ -class EgressSetting -{ - /** - * Generated from protobuf enum EGRESS_SETTING_UNSPECIFIED = 0; - */ - const EGRESS_SETTING_UNSPECIFIED = 0; - /** - * Force the use of VPC Access for all egress traffic from the function. - * - * Generated from protobuf enum ALL_TRAFFIC = 1; - */ - const ALL_TRAFFIC = 1; - /** - * Use the VPC Access Connector for private IP space from RFC1918. - * - * Generated from protobuf enum PRIVATE_IP_RANGES = 2; - */ - const PRIVATE_IP_RANGES = 2; - - private static $valueToName = [ - self::EGRESS_SETTING_UNSPECIFIED => 'EGRESS_SETTING_UNSPECIFIED', - self::ALL_TRAFFIC => 'ALL_TRAFFIC', - self::PRIVATE_IP_RANGES => 'PRIVATE_IP_RANGES', - ]; - - 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(EgressSetting::class, \Google\Cloud\AppEngine\V1\VpcAccessConnector_EgressSetting::class); - diff --git a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ZipInfo.php b/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ZipInfo.php deleted file mode 100644 index 2b3b7094c9d9..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/proto/src/Google/Cloud/AppEngine/V1/ZipInfo.php +++ /dev/null @@ -1,117 +0,0 @@ -google.appengine.v1.ZipInfo - */ -class ZipInfo extends \Google\Protobuf\Internal\Message -{ - /** - * URL of the zip file to deploy from. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * - * Generated from protobuf field string source_url = 3; - */ - protected $source_url = ''; - /** - * An estimate of the number of files in a zip for a zip deployment. - * If set, must be greater than or equal to the actual number of files. - * Used for optimizing performance; if not provided, deployment may be slow. - * - * Generated from protobuf field int32 files_count = 4; - */ - protected $files_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_url - * URL of the zip file to deploy from. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * @type int $files_count - * An estimate of the number of files in a zip for a zip deployment. - * If set, must be greater than or equal to the actual number of files. - * Used for optimizing performance; if not provided, deployment may be slow. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Appengine\V1\Deploy::initOnce(); - parent::__construct($data); - } - - /** - * URL of the zip file to deploy from. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * - * Generated from protobuf field string source_url = 3; - * @return string - */ - public function getSourceUrl() - { - return $this->source_url; - } - - /** - * URL of the zip file to deploy from. Must be a URL to a resource in - * Google Cloud Storage in the form - * 'http(s)://storage.googleapis.com/\/\'. - * - * Generated from protobuf field string source_url = 3; - * @param string $var - * @return $this - */ - public function setSourceUrl($var) - { - GPBUtil::checkString($var, True); - $this->source_url = $var; - - return $this; - } - - /** - * An estimate of the number of files in a zip for a zip deployment. - * If set, must be greater than or equal to the actual number of files. - * Used for optimizing performance; if not provided, deployment may be slow. - * - * Generated from protobuf field int32 files_count = 4; - * @return int - */ - public function getFilesCount() - { - return $this->files_count; - } - - /** - * An estimate of the number of files in a zip for a zip deployment. - * If set, must be greater than or equal to the actual number of files. - * Used for optimizing performance; if not provided, deployment may be slow. - * - * Generated from protobuf field int32 files_count = 4; - * @param int $var - * @return $this - */ - public function setFilesCount($var) - { - GPBUtil::checkInt32($var); - $this->files_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/create_application.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/create_application.php deleted file mode 100644 index f4cbee9b4c80..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/create_application.php +++ /dev/null @@ -1,75 +0,0 @@ -createApplication($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Application $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Applications_CreateApplication_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/get_application.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/get_application.php deleted file mode 100644 index 9fe15c6299dc..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/get_application.php +++ /dev/null @@ -1,57 +0,0 @@ -getApplication($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Applications_GetApplication_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/repair_application.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/repair_application.php deleted file mode 100644 index 83de5a4a1803..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/repair_application.php +++ /dev/null @@ -1,78 +0,0 @@ -repairApplication($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Application $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Applications_RepairApplication_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/update_application.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/update_application.php deleted file mode 100644 index 8227d9c4bb02..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ApplicationsClient/update_application.php +++ /dev/null @@ -1,74 +0,0 @@ -updateApplication($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Application $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Applications_UpdateApplication_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/create_authorized_certificate.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/create_authorized_certificate.php deleted file mode 100644 index dddc92bc3b70..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/create_authorized_certificate.php +++ /dev/null @@ -1,57 +0,0 @@ -createAuthorizedCertificate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_AuthorizedCertificates_CreateAuthorizedCertificate_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/delete_authorized_certificate.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/delete_authorized_certificate.php deleted file mode 100644 index decad60e34b1..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/delete_authorized_certificate.php +++ /dev/null @@ -1,55 +0,0 @@ -deleteAuthorizedCertificate($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_AuthorizedCertificates_DeleteAuthorizedCertificate_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/get_authorized_certificate.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/get_authorized_certificate.php deleted file mode 100644 index 542de6e065ce..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/get_authorized_certificate.php +++ /dev/null @@ -1,57 +0,0 @@ -getAuthorizedCertificate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_AuthorizedCertificates_GetAuthorizedCertificate_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/list_authorized_certificates.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/list_authorized_certificates.php deleted file mode 100644 index b56a9f2756f8..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/list_authorized_certificates.php +++ /dev/null @@ -1,62 +0,0 @@ -listAuthorizedCertificates($request); - - /** @var AuthorizedCertificate $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_AuthorizedCertificates_ListAuthorizedCertificates_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/update_authorized_certificate.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/update_authorized_certificate.php deleted file mode 100644 index b1d08fbcefa6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedCertificatesClient/update_authorized_certificate.php +++ /dev/null @@ -1,61 +0,0 @@ -updateAuthorizedCertificate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_AuthorizedCertificates_UpdateAuthorizedCertificate_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedDomainsClient/list_authorized_domains.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedDomainsClient/list_authorized_domains.php deleted file mode 100644 index d5c3939e0a26..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/AuthorizedDomainsClient/list_authorized_domains.php +++ /dev/null @@ -1,62 +0,0 @@ -listAuthorizedDomains($request); - - /** @var AuthorizedDomain $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_AuthorizedDomains_ListAuthorizedDomains_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/create_domain_mapping.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/create_domain_mapping.php deleted file mode 100644 index 845ca5264eab..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/create_domain_mapping.php +++ /dev/null @@ -1,71 +0,0 @@ -createDomainMapping($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DomainMapping $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_DomainMappings_CreateDomainMapping_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/delete_domain_mapping.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/delete_domain_mapping.php deleted file mode 100644 index 81e12753d212..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/delete_domain_mapping.php +++ /dev/null @@ -1,68 +0,0 @@ -deleteDomainMapping($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_DomainMappings_DeleteDomainMapping_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/get_domain_mapping.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/get_domain_mapping.php deleted file mode 100644 index a2b89e879a28..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/get_domain_mapping.php +++ /dev/null @@ -1,57 +0,0 @@ -getDomainMapping($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_DomainMappings_GetDomainMapping_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/list_domain_mappings.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/list_domain_mappings.php deleted file mode 100644 index 065ddd90b84f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/list_domain_mappings.php +++ /dev/null @@ -1,62 +0,0 @@ -listDomainMappings($request); - - /** @var DomainMapping $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_DomainMappings_ListDomainMappings_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/update_domain_mapping.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/update_domain_mapping.php deleted file mode 100644 index 2536fc7dbec6..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/DomainMappingsClient/update_domain_mapping.php +++ /dev/null @@ -1,72 +0,0 @@ -updateDomainMapping($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DomainMapping $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_DomainMappings_UpdateDomainMapping_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/batch_update_ingress_rules.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/batch_update_ingress_rules.php deleted file mode 100644 index 54c3e741a2dd..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/batch_update_ingress_rules.php +++ /dev/null @@ -1,61 +0,0 @@ -batchUpdateIngressRules($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Firewall_BatchUpdateIngressRules_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/create_ingress_rule.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/create_ingress_rule.php deleted file mode 100644 index 85b9c19f40f8..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/create_ingress_rule.php +++ /dev/null @@ -1,57 +0,0 @@ -createIngressRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Firewall_CreateIngressRule_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/delete_ingress_rule.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/delete_ingress_rule.php deleted file mode 100644 index ff3cf33fc51a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/delete_ingress_rule.php +++ /dev/null @@ -1,55 +0,0 @@ -deleteIngressRule($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Firewall_DeleteIngressRule_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/get_ingress_rule.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/get_ingress_rule.php deleted file mode 100644 index 9f2ab52e931b..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/get_ingress_rule.php +++ /dev/null @@ -1,57 +0,0 @@ -getIngressRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Firewall_GetIngressRule_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/list_ingress_rules.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/list_ingress_rules.php deleted file mode 100644 index adcf5cf1e5e9..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/list_ingress_rules.php +++ /dev/null @@ -1,62 +0,0 @@ -listIngressRules($request); - - /** @var FirewallRule $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Firewall_ListIngressRules_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/update_ingress_rule.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/update_ingress_rule.php deleted file mode 100644 index 60b211b11851..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/FirewallClient/update_ingress_rule.php +++ /dev/null @@ -1,57 +0,0 @@ -updateIngressRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Firewall_UpdateIngressRule_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/debug_instance.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/debug_instance.php deleted file mode 100644 index b5286f05012d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/debug_instance.php +++ /dev/null @@ -1,76 +0,0 @@ -debugInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Instances_DebugInstance_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/delete_instance.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/delete_instance.php deleted file mode 100644 index a6ae89f36bcd..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/delete_instance.php +++ /dev/null @@ -1,77 +0,0 @@ -deleteInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Instances_DeleteInstance_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/get_instance.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/get_instance.php deleted file mode 100644 index e5b952df3462..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/get_instance.php +++ /dev/null @@ -1,57 +0,0 @@ -getInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Instances_GetInstance_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/list_instances.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/list_instances.php deleted file mode 100644 index 598245aebbab..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/InstancesClient/list_instances.php +++ /dev/null @@ -1,65 +0,0 @@ -listInstances($request); - - /** @var Instance $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Instances_ListInstances_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/delete_service.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/delete_service.php deleted file mode 100644 index e880538a6044..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/delete_service.php +++ /dev/null @@ -1,66 +0,0 @@ -deleteService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Services_DeleteService_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/get_service.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/get_service.php deleted file mode 100644 index 7ed283774a35..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/get_service.php +++ /dev/null @@ -1,57 +0,0 @@ -getService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Services_GetService_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/list_services.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/list_services.php deleted file mode 100644 index 66bc25ecd776..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/list_services.php +++ /dev/null @@ -1,62 +0,0 @@ -listServices($request); - - /** @var Service $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Services_ListServices_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/update_service.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/update_service.php deleted file mode 100644 index 3450b9111663..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/ServicesClient/update_service.php +++ /dev/null @@ -1,69 +0,0 @@ -updateService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Services_UpdateService_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/create_version.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/create_version.php deleted file mode 100644 index f8c6d40d154a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/create_version.php +++ /dev/null @@ -1,69 +0,0 @@ -createVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Version $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Versions_CreateVersion_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/delete_version.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/delete_version.php deleted file mode 100644 index ad9e5fe1f3fb..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/delete_version.php +++ /dev/null @@ -1,66 +0,0 @@ -deleteVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Versions_DeleteVersion_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/get_version.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/get_version.php deleted file mode 100644 index d8fc7e9a5161..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/get_version.php +++ /dev/null @@ -1,59 +0,0 @@ -getVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Versions_GetVersion_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/list_versions.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/list_versions.php deleted file mode 100644 index eb2522a7176f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/list_versions.php +++ /dev/null @@ -1,62 +0,0 @@ -listVersions($request); - - /** @var Version $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Versions_ListVersions_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/update_version.php b/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/update_version.php deleted file mode 100644 index 93cf373145de..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/samples/V1/VersionsClient/update_version.php +++ /dev/null @@ -1,104 +0,0 @@ -updateVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Version $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END appengine_v1_generated_Versions_UpdateVersion_sync] diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/ApplicationsClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/ApplicationsClient.php deleted file mode 100644 index cd440ee4e748..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/ApplicationsClient.php +++ /dev/null @@ -1,349 +0,0 @@ - createApplicationAsync(CreateApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApplicationAsync(GetApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface repairApplicationAsync(RepairApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApplicationAsync(UpdateApplicationRequest $request, array $optionalArgs = []) - */ -final class ApplicationsClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.Applications'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/applications_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/applications_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/applications_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/applications_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates an App Engine application for a Google Cloud Platform project. - * Required fields: - * - * * `id` - The ID of the target Cloud Platform project. - * * *location* - The [region](https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located. - * - * For more information about App Engine applications, see [Managing Projects, Applications, and Billing](https://cloud.google.com/appengine/docs/standard/python/console/). - * - * The async variant is {@see ApplicationsClient::createApplicationAsync()} . - * - * @example samples/V1/ApplicationsClient/create_application.php - * - * @param CreateApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApplication(CreateApplicationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateApplication', $request, $callOptions)->wait(); - } - - /** - * Gets information about an application. - * - * The async variant is {@see ApplicationsClient::getApplicationAsync()} . - * - * @example samples/V1/ApplicationsClient/get_application.php - * - * @param GetApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Application - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApplication(GetApplicationRequest $request, array $callOptions = []): Application - { - return $this->startApiCall('GetApplication', $request, $callOptions)->wait(); - } - - /** - * Recreates the required App Engine features for the specified App Engine - * application, for example a Cloud Storage bucket or App Engine service - * account. - * Use this method if you receive an error message about a missing feature, - * for example, *Error retrieving the App Engine service account*. - * If you have deleted your App Engine service account, this will - * not be able to recreate it. Instead, you should attempt to use the - * IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . - * If the deletion was recent, the numeric ID can be found in the Cloud - * Console Activity Log. - * - * The async variant is {@see ApplicationsClient::repairApplicationAsync()} . - * - * @example samples/V1/ApplicationsClient/repair_application.php - * - * @param RepairApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function repairApplication(RepairApplicationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RepairApplication', $request, $callOptions)->wait(); - } - - /** - * Updates the specified Application resource. - * You can update the following fields: - * - * * `auth_domain` - Google authentication domain for controlling user access to the application. - * * `default_cookie_expiration` - Cookie expiration policy for the application. - * * `iap` - Identity-Aware Proxy properties for the application. - * - * The async variant is {@see ApplicationsClient::updateApplicationAsync()} . - * - * @example samples/V1/ApplicationsClient/update_application.php - * - * @param UpdateApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApplication(UpdateApplicationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateApplication', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/AuthorizedCertificatesClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/AuthorizedCertificatesClient.php deleted file mode 100644 index faef07c60e94..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/AuthorizedCertificatesClient.php +++ /dev/null @@ -1,312 +0,0 @@ - createAuthorizedCertificateAsync(CreateAuthorizedCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAuthorizedCertificateAsync(DeleteAuthorizedCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAuthorizedCertificateAsync(GetAuthorizedCertificateRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAuthorizedCertificatesAsync(ListAuthorizedCertificatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAuthorizedCertificateAsync(UpdateAuthorizedCertificateRequest $request, array $optionalArgs = []) - */ -final class AuthorizedCertificatesClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.AuthorizedCertificates'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/authorized_certificates_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/authorized_certificates_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/authorized_certificates_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/authorized_certificates_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Uploads the specified SSL certificate. - * - * The async variant is - * {@see AuthorizedCertificatesClient::createAuthorizedCertificateAsync()} . - * - * @example samples/V1/AuthorizedCertificatesClient/create_authorized_certificate.php - * - * @param CreateAuthorizedCertificateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AuthorizedCertificate - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAuthorizedCertificate(CreateAuthorizedCertificateRequest $request, array $callOptions = []): AuthorizedCertificate - { - return $this->startApiCall('CreateAuthorizedCertificate', $request, $callOptions)->wait(); - } - - /** - * Deletes the specified SSL certificate. - * - * The async variant is - * {@see AuthorizedCertificatesClient::deleteAuthorizedCertificateAsync()} . - * - * @example samples/V1/AuthorizedCertificatesClient/delete_authorized_certificate.php - * - * @param DeleteAuthorizedCertificateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteAuthorizedCertificate(DeleteAuthorizedCertificateRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAuthorizedCertificate', $request, $callOptions)->wait(); - } - - /** - * Gets the specified SSL certificate. - * - * The async variant is - * {@see AuthorizedCertificatesClient::getAuthorizedCertificateAsync()} . - * - * @example samples/V1/AuthorizedCertificatesClient/get_authorized_certificate.php - * - * @param GetAuthorizedCertificateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AuthorizedCertificate - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAuthorizedCertificate(GetAuthorizedCertificateRequest $request, array $callOptions = []): AuthorizedCertificate - { - return $this->startApiCall('GetAuthorizedCertificate', $request, $callOptions)->wait(); - } - - /** - * Lists all SSL certificates the user is authorized to administer. - * - * The async variant is - * {@see AuthorizedCertificatesClient::listAuthorizedCertificatesAsync()} . - * - * @example samples/V1/AuthorizedCertificatesClient/list_authorized_certificates.php - * - * @param ListAuthorizedCertificatesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAuthorizedCertificates(ListAuthorizedCertificatesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAuthorizedCertificates', $request, $callOptions); - } - - /** - * Updates the specified SSL certificate. To renew a certificate and maintain - * its existing domain mappings, update `certificate_data` with a new - * certificate. The new certificate must be applicable to the same domains as - * the original certificate. The certificate `display_name` may also be - * updated. - * - * The async variant is - * {@see AuthorizedCertificatesClient::updateAuthorizedCertificateAsync()} . - * - * @example samples/V1/AuthorizedCertificatesClient/update_authorized_certificate.php - * - * @param UpdateAuthorizedCertificateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AuthorizedCertificate - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAuthorizedCertificate(UpdateAuthorizedCertificateRequest $request, array $callOptions = []): AuthorizedCertificate - { - return $this->startApiCall('UpdateAuthorizedCertificate', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/AuthorizedDomainsClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/AuthorizedDomainsClient.php deleted file mode 100644 index 49a1a95c0f7f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/AuthorizedDomainsClient.php +++ /dev/null @@ -1,194 +0,0 @@ - listAuthorizedDomainsAsync(ListAuthorizedDomainsRequest $request, array $optionalArgs = []) - */ -final class AuthorizedDomainsClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.AuthorizedDomains'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/authorized_domains_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/authorized_domains_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/authorized_domains_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/authorized_domains_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Lists all domains the user is authorized to administer. - * - * The async variant is - * {@see AuthorizedDomainsClient::listAuthorizedDomainsAsync()} . - * - * @example samples/V1/AuthorizedDomainsClient/list_authorized_domains.php - * - * @param ListAuthorizedDomainsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAuthorizedDomains(ListAuthorizedDomainsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAuthorizedDomains', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/DomainMappingsClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/DomainMappingsClient.php deleted file mode 100644 index 350a695baceb..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/DomainMappingsClient.php +++ /dev/null @@ -1,365 +0,0 @@ - createDomainMappingAsync(CreateDomainMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDomainMappingAsync(DeleteDomainMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDomainMappingAsync(GetDomainMappingRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDomainMappingsAsync(ListDomainMappingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDomainMappingAsync(UpdateDomainMappingRequest $request, array $optionalArgs = []) - */ -final class DomainMappingsClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.DomainMappings'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/domain_mappings_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/domain_mappings_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/domain_mappings_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/domain_mappings_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Maps a domain to an application. A user must be authorized to administer a - * domain in order to map it to an application. For a list of available - * authorized domains, see [`AuthorizedDomains.ListAuthorizedDomains`](). - * - * The async variant is {@see DomainMappingsClient::createDomainMappingAsync()} . - * - * @example samples/V1/DomainMappingsClient/create_domain_mapping.php - * - * @param CreateDomainMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDomainMapping(CreateDomainMappingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDomainMapping', $request, $callOptions)->wait(); - } - - /** - * Deletes the specified domain mapping. A user must be authorized to - * administer the associated domain in order to delete a `DomainMapping` - * resource. - * - * The async variant is {@see DomainMappingsClient::deleteDomainMappingAsync()} . - * - * @example samples/V1/DomainMappingsClient/delete_domain_mapping.php - * - * @param DeleteDomainMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDomainMapping(DeleteDomainMappingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDomainMapping', $request, $callOptions)->wait(); - } - - /** - * Gets the specified domain mapping. - * - * The async variant is {@see DomainMappingsClient::getDomainMappingAsync()} . - * - * @example samples/V1/DomainMappingsClient/get_domain_mapping.php - * - * @param GetDomainMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DomainMapping - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDomainMapping(GetDomainMappingRequest $request, array $callOptions = []): DomainMapping - { - return $this->startApiCall('GetDomainMapping', $request, $callOptions)->wait(); - } - - /** - * Lists the domain mappings on an application. - * - * The async variant is {@see DomainMappingsClient::listDomainMappingsAsync()} . - * - * @example samples/V1/DomainMappingsClient/list_domain_mappings.php - * - * @param ListDomainMappingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDomainMappings(ListDomainMappingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDomainMappings', $request, $callOptions); - } - - /** - * Updates the specified domain mapping. To map an SSL certificate to a - * domain mapping, update `certificate_id` to point to an `AuthorizedCertificate` - * resource. A user must be authorized to administer the associated domain - * in order to update a `DomainMapping` resource. - * - * The async variant is {@see DomainMappingsClient::updateDomainMappingAsync()} . - * - * @example samples/V1/DomainMappingsClient/update_domain_mapping.php - * - * @param UpdateDomainMappingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDomainMapping(UpdateDomainMappingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDomainMapping', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/FirewallClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/FirewallClient.php deleted file mode 100644 index 378fd7c9e859..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/FirewallClient.php +++ /dev/null @@ -1,344 +0,0 @@ - batchUpdateIngressRulesAsync(BatchUpdateIngressRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createIngressRuleAsync(CreateIngressRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteIngressRuleAsync(DeleteIngressRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIngressRuleAsync(GetIngressRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface listIngressRulesAsync(ListIngressRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateIngressRuleAsync(UpdateIngressRuleRequest $request, array $optionalArgs = []) - */ -final class FirewallClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.Firewall'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/firewall_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/firewall_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/firewall_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/firewall_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Replaces the entire firewall ruleset in one bulk operation. This overrides - * and replaces the rules of an existing firewall with the new rules. - * - * If the final rule does not match traffic with the '*' wildcard IP range, - * then an "allow all" rule is explicitly added to the end of the list. - * - * The async variant is {@see FirewallClient::batchUpdateIngressRulesAsync()} . - * - * @example samples/V1/FirewallClient/batch_update_ingress_rules.php - * - * @param BatchUpdateIngressRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchUpdateIngressRulesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchUpdateIngressRules(BatchUpdateIngressRulesRequest $request, array $callOptions = []): BatchUpdateIngressRulesResponse - { - return $this->startApiCall('BatchUpdateIngressRules', $request, $callOptions)->wait(); - } - - /** - * Creates a firewall rule for the application. - * - * The async variant is {@see FirewallClient::createIngressRuleAsync()} . - * - * @example samples/V1/FirewallClient/create_ingress_rule.php - * - * @param CreateIngressRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FirewallRule - * - * @throws ApiException Thrown if the API call fails. - */ - public function createIngressRule(CreateIngressRuleRequest $request, array $callOptions = []): FirewallRule - { - return $this->startApiCall('CreateIngressRule', $request, $callOptions)->wait(); - } - - /** - * Deletes the specified firewall rule. - * - * The async variant is {@see FirewallClient::deleteIngressRuleAsync()} . - * - * @example samples/V1/FirewallClient/delete_ingress_rule.php - * - * @param DeleteIngressRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteIngressRule(DeleteIngressRuleRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteIngressRule', $request, $callOptions)->wait(); - } - - /** - * Gets the specified firewall rule. - * - * The async variant is {@see FirewallClient::getIngressRuleAsync()} . - * - * @example samples/V1/FirewallClient/get_ingress_rule.php - * - * @param GetIngressRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FirewallRule - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIngressRule(GetIngressRuleRequest $request, array $callOptions = []): FirewallRule - { - return $this->startApiCall('GetIngressRule', $request, $callOptions)->wait(); - } - - /** - * Lists the firewall rules of an application. - * - * The async variant is {@see FirewallClient::listIngressRulesAsync()} . - * - * @example samples/V1/FirewallClient/list_ingress_rules.php - * - * @param ListIngressRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listIngressRules(ListIngressRulesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListIngressRules', $request, $callOptions); - } - - /** - * Updates the specified firewall rule. - * - * The async variant is {@see FirewallClient::updateIngressRuleAsync()} . - * - * @example samples/V1/FirewallClient/update_ingress_rule.php - * - * @param UpdateIngressRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FirewallRule - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateIngressRule(UpdateIngressRuleRequest $request, array $callOptions = []): FirewallRule - { - return $this->startApiCall('UpdateIngressRule', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/InstancesClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/InstancesClient.php deleted file mode 100644 index 9ed640a823ed..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/InstancesClient.php +++ /dev/null @@ -1,351 +0,0 @@ - debugInstanceAsync(DebugInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) - */ -final class InstancesClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.Instances'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/instances_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/instances_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/instances_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/instances_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Enables debugging on a VM instance. This allows you to use the SSH - * command to connect to the virtual machine where the instance lives. - * While in "debug mode", the instance continues to serve live traffic. - * You should delete the instance when you are done debugging and then - * allow the system to take over and determine if another instance - * should be started. - * - * Only applicable for instances in App Engine flexible environment. - * - * The async variant is {@see InstancesClient::debugInstanceAsync()} . - * - * @example samples/V1/InstancesClient/debug_instance.php - * - * @param DebugInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function debugInstance(DebugInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DebugInstance', $request, $callOptions)->wait(); - } - - /** - * Stops a running instance. - * - * The instance might be automatically recreated based on the scaling settings - * of the version. For more information, see "How Instances are Managed" - * ([standard environment](https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed) | - * [flexible environment](https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-managed)). - * - * To ensure that instances are not re-created and avoid getting billed, you - * can stop all instances within the target version by changing the serving - * status of the version to `STOPPED` with the - * [`apps.services.versions.patch`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/patch) - * method. - * - * The async variant is {@see InstancesClient::deleteInstanceAsync()} . - * - * @example samples/V1/InstancesClient/delete_instance.php - * - * @param DeleteInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteInstance(DeleteInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteInstance', $request, $callOptions)->wait(); - } - - /** - * Gets instance information. - * - * The async variant is {@see InstancesClient::getInstanceAsync()} . - * - * @example samples/V1/InstancesClient/get_instance.php - * - * @param GetInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Instance - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance - { - return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); - } - - /** - * Lists the instances of a version. - * - * Tip: To aggregate details about instances over time, see the - * [Stackdriver Monitoring API](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). - * - * The async variant is {@see InstancesClient::listInstancesAsync()} . - * - * @example samples/V1/InstancesClient/list_instances.php - * - * @param ListInstancesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listInstances(ListInstancesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListInstances', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/ServicesClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/ServicesClient.php deleted file mode 100644 index a70089e300a0..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/ServicesClient.php +++ /dev/null @@ -1,330 +0,0 @@ - deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) - */ -final class ServicesClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.Services'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/services_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/services_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/services_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/services_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Deletes the specified service and all enclosed versions. - * - * The async variant is {@see ServicesClient::deleteServiceAsync()} . - * - * @example samples/V1/ServicesClient/delete_service.php - * - * @param DeleteServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteService(DeleteServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteService', $request, $callOptions)->wait(); - } - - /** - * Gets the current configuration of the specified service. - * - * The async variant is {@see ServicesClient::getServiceAsync()} . - * - * @example samples/V1/ServicesClient/get_service.php - * - * @param GetServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Service - * - * @throws ApiException Thrown if the API call fails. - */ - public function getService(GetServiceRequest $request, array $callOptions = []): Service - { - return $this->startApiCall('GetService', $request, $callOptions)->wait(); - } - - /** - * Lists all the services in the application. - * - * The async variant is {@see ServicesClient::listServicesAsync()} . - * - * @example samples/V1/ServicesClient/list_services.php - * - * @param ListServicesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listServices(ListServicesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListServices', $request, $callOptions); - } - - /** - * Updates the configuration of the specified service. - * - * The async variant is {@see ServicesClient::updateServiceAsync()} . - * - * @example samples/V1/ServicesClient/update_service.php - * - * @param UpdateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateService(UpdateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateService', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/VersionsClient.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/VersionsClient.php deleted file mode 100644 index 02072fc334f9..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/Client/VersionsClient.php +++ /dev/null @@ -1,395 +0,0 @@ - createVersionAsync(CreateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) - */ -final class VersionsClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.appengine.v1.Versions'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'appengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'appengine.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/appengine.admin', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/versions_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/versions_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/versions_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/versions_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'appengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Deploys code and resource files to a new version. - * - * The async variant is {@see VersionsClient::createVersionAsync()} . - * - * @example samples/V1/VersionsClient/create_version.php - * - * @param CreateVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createVersion(CreateVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateVersion', $request, $callOptions)->wait(); - } - - /** - * Deletes an existing Version resource. - * - * The async variant is {@see VersionsClient::deleteVersionAsync()} . - * - * @example samples/V1/VersionsClient/delete_version.php - * - * @param DeleteVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteVersion(DeleteVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteVersion', $request, $callOptions)->wait(); - } - - /** - * Gets the specified Version resource. - * By default, only a `BASIC_VIEW` will be returned. - * Specify the `FULL_VIEW` parameter to get the full resource. - * - * The async variant is {@see VersionsClient::getVersionAsync()} . - * - * @example samples/V1/VersionsClient/get_version.php - * - * @param GetVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Version - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVersion(GetVersionRequest $request, array $callOptions = []): Version - { - return $this->startApiCall('GetVersion', $request, $callOptions)->wait(); - } - - /** - * Lists the versions of a service. - * - * The async variant is {@see VersionsClient::listVersionsAsync()} . - * - * @example samples/V1/VersionsClient/list_versions.php - * - * @param ListVersionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listVersions(ListVersionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListVersions', $request, $callOptions); - } - - /** - * Updates the specified Version resource. - * You can specify the following fields depending on the App Engine - * environment and type of scaling that the version resource uses: - * - * **Standard environment** - * - * * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class) - * - * *automatic scaling* in the standard environment: - * - * * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) - * * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) - * * [`automaticScaling.standard_scheduler_settings.max_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) - * * [`automaticScaling.standard_scheduler_settings.min_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) - * * [`automaticScaling.standard_scheduler_settings.target_cpu_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) - * * [`automaticScaling.standard_scheduler_settings.target_throughput_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) - * - * *basic scaling* or *manual scaling* in the standard environment: - * - * * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) - * * [`manual_scaling.instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling) - * - * **Flexible environment** - * - * * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) - * - * *automatic scaling* in the flexible environment: - * - * * [`automatic_scaling.min_total_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) - * * [`automatic_scaling.max_total_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) - * * [`automatic_scaling.cool_down_period_sec`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) - * * [`automatic_scaling.cpu_utilization.target_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) - * - * *manual scaling* in the flexible environment: - * - * * [`manual_scaling.instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling) - * - * The async variant is {@see VersionsClient::updateVersionAsync()} . - * - * @example samples/V1/VersionsClient/update_version.php - * - * @param UpdateVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVersion(UpdateVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateVersion', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 83cd2fd2abfe..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,251 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.appengine.v1", - "libraryPackage": "Google\\Cloud\\AppEngine\\V1", - "services": { - "Applications": { - "clients": { - "grpc": { - "libraryClient": "ApplicationsGapicClient", - "rpcs": { - "CreateApplication": { - "methods": [ - "createApplication" - ] - }, - "GetApplication": { - "methods": [ - "getApplication" - ] - }, - "RepairApplication": { - "methods": [ - "repairApplication" - ] - }, - "UpdateApplication": { - "methods": [ - "updateApplication" - ] - } - } - } - } - }, - "Services": { - "clients": { - "grpc": { - "libraryClient": "ServicesGapicClient", - "rpcs": { - "DeleteService": { - "methods": [ - "deleteService" - ] - }, - "GetService": { - "methods": [ - "getService" - ] - }, - "ListServices": { - "methods": [ - "listServices" - ] - }, - "UpdateService": { - "methods": [ - "updateService" - ] - } - } - } - } - }, - "Versions": { - "clients": { - "grpc": { - "libraryClient": "VersionsGapicClient", - "rpcs": { - "CreateVersion": { - "methods": [ - "createVersion" - ] - }, - "DeleteVersion": { - "methods": [ - "deleteVersion" - ] - }, - "GetVersion": { - "methods": [ - "getVersion" - ] - }, - "ListVersions": { - "methods": [ - "listVersions" - ] - }, - "UpdateVersion": { - "methods": [ - "updateVersion" - ] - } - } - } - } - }, - "Instances": { - "clients": { - "grpc": { - "libraryClient": "InstancesGapicClient", - "rpcs": { - "DebugInstance": { - "methods": [ - "debugInstance" - ] - }, - "DeleteInstance": { - "methods": [ - "deleteInstance" - ] - }, - "GetInstance": { - "methods": [ - "getInstance" - ] - }, - "ListInstances": { - "methods": [ - "listInstances" - ] - } - } - } - } - }, - "Firewall": { - "clients": { - "grpc": { - "libraryClient": "FirewallGapicClient", - "rpcs": { - "BatchUpdateIngressRules": { - "methods": [ - "batchUpdateIngressRules" - ] - }, - "CreateIngressRule": { - "methods": [ - "createIngressRule" - ] - }, - "DeleteIngressRule": { - "methods": [ - "deleteIngressRule" - ] - }, - "GetIngressRule": { - "methods": [ - "getIngressRule" - ] - }, - "ListIngressRules": { - "methods": [ - "listIngressRules" - ] - }, - "UpdateIngressRule": { - "methods": [ - "updateIngressRule" - ] - } - } - } - } - }, - "AuthorizedDomains": { - "clients": { - "grpc": { - "libraryClient": "AuthorizedDomainsGapicClient", - "rpcs": { - "ListAuthorizedDomains": { - "methods": [ - "listAuthorizedDomains" - ] - } - } - } - } - }, - "AuthorizedCertificates": { - "clients": { - "grpc": { - "libraryClient": "AuthorizedCertificatesGapicClient", - "rpcs": { - "CreateAuthorizedCertificate": { - "methods": [ - "createAuthorizedCertificate" - ] - }, - "DeleteAuthorizedCertificate": { - "methods": [ - "deleteAuthorizedCertificate" - ] - }, - "GetAuthorizedCertificate": { - "methods": [ - "getAuthorizedCertificate" - ] - }, - "ListAuthorizedCertificates": { - "methods": [ - "listAuthorizedCertificates" - ] - }, - "UpdateAuthorizedCertificate": { - "methods": [ - "updateAuthorizedCertificate" - ] - } - } - } - } - }, - "DomainMappings": { - "clients": { - "grpc": { - "libraryClient": "DomainMappingsGapicClient", - "rpcs": { - "CreateDomainMapping": { - "methods": [ - "createDomainMapping" - ] - }, - "DeleteDomainMapping": { - "methods": [ - "deleteDomainMapping" - ] - }, - "GetDomainMapping": { - "methods": [ - "getDomainMapping" - ] - }, - "ListDomainMappings": { - "methods": [ - "listDomainMappings" - ] - }, - "UpdateDomainMapping": { - "methods": [ - "updateDomainMapping" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_client_config.json deleted file mode 100644 index f4c73b272c47..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.Applications": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "CreateApplication": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetApplication": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RepairApplication": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateApplication": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_descriptor_config.php deleted file mode 100644 index 51f18ca13cfe..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_descriptor_config.php +++ /dev/null @@ -1,89 +0,0 @@ - [ - 'google.appengine.v1.Applications' => [ - 'CreateApplication' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\Application', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - ], - 'RepairApplication' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\Application', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateApplication' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\Application', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApplication' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\Application', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_rest_client_config.php deleted file mode 100644 index dbce0ad31d58..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/applications_rest_client_config.php +++ /dev/null @@ -1,117 +0,0 @@ - [ - 'google.appengine.v1.Applications' => [ - 'CreateApplication' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/apps', - 'body' => 'application', - ], - 'GetApplication' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RepairApplication' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=apps/*}:repair', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateApplication' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=apps/*}', - 'body' => 'application', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_client_config.json deleted file mode 100644 index cbea8bbb3cec..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_client_config.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.AuthorizedCertificates": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "CreateAuthorizedCertificate": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAuthorizedCertificate": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAuthorizedCertificate": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAuthorizedCertificates": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAuthorizedCertificate": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_descriptor_config.php deleted file mode 100644 index 6ece424ef35b..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_descriptor_config.php +++ /dev/null @@ -1,96 +0,0 @@ - [ - 'google.appengine.v1.AuthorizedCertificates' => [ - 'CreateAuthorizedCertificate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\AuthorizedCertificate', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAuthorizedCertificate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAuthorizedCertificate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\AuthorizedCertificate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAuthorizedCertificates' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCertificates', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\ListAuthorizedCertificatesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAuthorizedCertificate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\AuthorizedCertificate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_rest_client_config.php deleted file mode 100644 index c410bbf4ee5f..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_certificates_rest_client_config.php +++ /dev/null @@ -1,134 +0,0 @@ - [ - 'google.appengine.v1.AuthorizedCertificates' => [ - 'CreateAuthorizedCertificate' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=apps/*}/authorizedCertificates', - 'body' => 'certificate', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAuthorizedCertificate' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=apps/*/authorizedCertificates/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAuthorizedCertificate' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/authorizedCertificates/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAuthorizedCertificates' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=apps/*}/authorizedCertificates', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAuthorizedCertificate' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=apps/*/authorizedCertificates/*}', - 'body' => 'certificate', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_client_config.json deleted file mode 100644 index f4ebcc5cda31..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_client_config.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.AuthorizedDomains": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "ListAuthorizedDomains": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_descriptor_config.php deleted file mode 100644 index 233e6c55fda3..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_descriptor_config.php +++ /dev/null @@ -1,48 +0,0 @@ - [ - 'google.appengine.v1.AuthorizedDomains' => [ - 'ListAuthorizedDomains' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDomains', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\ListAuthorizedDomainsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_rest_client_config.php deleted file mode 100644 index 0953fe164775..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/authorized_domains_rest_client_config.php +++ /dev/null @@ -1,88 +0,0 @@ - [ - 'google.appengine.v1.AuthorizedDomains' => [ - 'ListAuthorizedDomains' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=apps/*}/authorizedDomains', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_client_config.json deleted file mode 100644 index 7bd0860c9528..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_client_config.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.DomainMappings": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "CreateDomainMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteDomainMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetDomainMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListDomainMappings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDomainMapping": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_descriptor_config.php deleted file mode 100644 index 64a4a2b3c373..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_descriptor_config.php +++ /dev/null @@ -1,117 +0,0 @@ - [ - 'google.appengine.v1.DomainMappings' => [ - 'CreateDomainMapping' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\DomainMapping', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDomainMapping' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDomainMapping' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\DomainMapping', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDomainMapping' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\DomainMapping', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDomainMappings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDomainMappings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\ListDomainMappingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_rest_client_config.php deleted file mode 100644 index 8fd15c30a939..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/domain_mappings_rest_client_config.php +++ /dev/null @@ -1,134 +0,0 @@ - [ - 'google.appengine.v1.DomainMappings' => [ - 'CreateDomainMapping' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=apps/*}/domainMappings', - 'body' => 'domain_mapping', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDomainMapping' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=apps/*/domainMappings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDomainMapping' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/domainMappings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDomainMappings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=apps/*}/domainMappings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDomainMapping' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=apps/*/domainMappings/*}', - 'body' => 'domain_mapping', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_client_config.json deleted file mode 100644 index 5d3d0c1e6f32..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_client_config.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.Firewall": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "BatchUpdateIngressRules": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateIngressRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteIngressRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetIngressRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListIngressRules": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateIngressRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_descriptor_config.php deleted file mode 100644 index 089c98f6aa48..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_descriptor_config.php +++ /dev/null @@ -1,108 +0,0 @@ - [ - 'google.appengine.v1.Firewall' => [ - 'BatchUpdateIngressRules' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\BatchUpdateIngressRulesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateIngressRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\FirewallRule', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteIngressRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIngressRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\FirewallRule', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListIngressRules' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getIngressRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\ListIngressRulesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateIngressRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\FirewallRule', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_rest_client_config.php deleted file mode 100644 index 5f9008663200..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/firewall_rest_client_config.php +++ /dev/null @@ -1,146 +0,0 @@ - [ - 'google.appengine.v1.Firewall' => [ - 'BatchUpdateIngressRules' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=apps/*/firewall/ingressRules}:batchUpdate', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateIngressRule' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=apps/*}/firewall/ingressRules', - 'body' => 'rule', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteIngressRule' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=apps/*/firewall/ingressRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIngressRule' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/firewall/ingressRules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListIngressRules' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=apps/*}/firewall/ingressRules', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateIngressRule' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=apps/*/firewall/ingressRules/*}', - 'body' => 'rule', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_client_config.json deleted file mode 100644 index 7fbcdcc849b0..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.Instances": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "DebugInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetInstance": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListInstances": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_descriptor_config.php deleted file mode 100644 index d852db5a94c9..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_descriptor_config.php +++ /dev/null @@ -1,98 +0,0 @@ - [ - 'google.appengine.v1.Instances' => [ - 'DebugInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\Instance', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\Instance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListInstances' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getInstances', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\ListInstancesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_rest_client_config.php deleted file mode 100644 index 48939f9d582a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/instances_rest_client_config.php +++ /dev/null @@ -1,122 +0,0 @@ - [ - 'google.appengine.v1.Instances' => [ - 'DebugInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=apps/*/services/*/versions/*/instances/*}:debug', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInstance' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=apps/*/services/*/versions/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/services/*/versions/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListInstances' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=apps/*/services/*/versions/*}/instances', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_client_config.json deleted file mode 100644 index 67b6284790a2..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.Services": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "DeleteService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListServices": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_descriptor_config.php deleted file mode 100644 index 80a1755d41e1..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_descriptor_config.php +++ /dev/null @@ -1,98 +0,0 @@ - [ - 'google.appengine.v1.Services' => [ - 'DeleteService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\Service', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\Service', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListServices' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getServices', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\ListServicesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_rest_client_config.php deleted file mode 100644 index 035f11399eb0..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/services_rest_client_config.php +++ /dev/null @@ -1,122 +0,0 @@ - [ - 'google.appengine.v1.Services' => [ - 'DeleteService' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=apps/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListServices' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=apps/*}/services', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateService' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=apps/*/services/*}', - 'body' => 'service', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_client_config.json b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_client_config.json deleted file mode 100644 index 7a00f6493715..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_client_config.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "interfaces": { - "google.appengine.v1.Versions": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "CreateVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListVersions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_descriptor_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_descriptor_config.php deleted file mode 100644 index a673822bcd8e..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_descriptor_config.php +++ /dev/null @@ -1,117 +0,0 @@ - [ - 'google.appengine.v1.Versions' => [ - 'CreateVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\Version', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\CreateVersionMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppEngine\V1\Version', - 'metadataReturnType' => '\Google\Cloud\AppEngine\V1\OperationMetadataV1', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\Version', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListVersions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVersions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppEngine\V1\ListVersionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_rest_client_config.php b/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_rest_client_config.php deleted file mode 100644 index b5e675c6d60a..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/src/V1/resources/versions_rest_client_config.php +++ /dev/null @@ -1,134 +0,0 @@ - [ - 'google.appengine.v1.Versions' => [ - 'CreateVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=apps/*/services/*}/versions', - 'body' => 'version', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteVersion' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=apps/*/services/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetVersion' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/services/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListVersions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=apps/*/services/*}/versions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateVersion' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=apps/*/services/*/versions/*}', - 'body' => 'version', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=apps/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/ApplicationsClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/ApplicationsClientTest.php deleted file mode 100644 index 90bf0d42739d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/ApplicationsClientTest.php +++ /dev/null @@ -1,611 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ApplicationsClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ApplicationsClient($options); - } - - /** @test */ - public function createApplicationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $id = 'id3355'; - $authDomain = 'authDomain-988231877'; - $locationId = 'locationId552319461'; - $codeBucket = 'codeBucket-1239055236'; - $defaultHostname = 'defaultHostname-402050959'; - $defaultBucket = 'defaultBucket1669731752'; - $serviceAccount = 'serviceAccount-1948028253'; - $gcrDomain = 'gcrDomain883768845'; - $expectedResponse = new Application(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setAuthDomain($authDomain); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setCodeBucket($codeBucket); - $expectedResponse->setDefaultHostname($defaultHostname); - $expectedResponse->setDefaultBucket($defaultBucket); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setGcrDomain($gcrDomain); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateApplicationRequest(); - $response = $gapicClient->createApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Applications/CreateApplication', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApplicationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new CreateApplicationRequest(); - $response = $gapicClient->createApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApplicationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getApplicationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $authDomain = 'authDomain-988231877'; - $locationId = 'locationId552319461'; - $codeBucket = 'codeBucket-1239055236'; - $defaultHostname = 'defaultHostname-402050959'; - $defaultBucket = 'defaultBucket1669731752'; - $serviceAccount = 'serviceAccount-1948028253'; - $gcrDomain = 'gcrDomain883768845'; - $expectedResponse = new Application(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setAuthDomain($authDomain); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setCodeBucket($codeBucket); - $expectedResponse->setDefaultHostname($defaultHostname); - $expectedResponse->setDefaultBucket($defaultBucket); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setGcrDomain($gcrDomain); - $transport->addResponse($expectedResponse); - $request = new GetApplicationRequest(); - $response = $gapicClient->getApplication($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Applications/GetApplication', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApplicationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetApplicationRequest(); - try { - $gapicClient->getApplication($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function repairApplicationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/repairApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $authDomain = 'authDomain-988231877'; - $locationId = 'locationId552319461'; - $codeBucket = 'codeBucket-1239055236'; - $defaultHostname = 'defaultHostname-402050959'; - $defaultBucket = 'defaultBucket1669731752'; - $serviceAccount = 'serviceAccount-1948028253'; - $gcrDomain = 'gcrDomain883768845'; - $expectedResponse = new Application(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setAuthDomain($authDomain); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setCodeBucket($codeBucket); - $expectedResponse->setDefaultHostname($defaultHostname); - $expectedResponse->setDefaultBucket($defaultBucket); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setGcrDomain($gcrDomain); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/repairApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new RepairApplicationRequest(); - $response = $gapicClient->repairApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Applications/RepairApplication', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/repairApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function repairApplicationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/repairApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new RepairApplicationRequest(); - $response = $gapicClient->repairApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/repairApplicationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateApplicationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $authDomain = 'authDomain-988231877'; - $locationId = 'locationId552319461'; - $codeBucket = 'codeBucket-1239055236'; - $defaultHostname = 'defaultHostname-402050959'; - $defaultBucket = 'defaultBucket1669731752'; - $serviceAccount = 'serviceAccount-1948028253'; - $gcrDomain = 'gcrDomain883768845'; - $expectedResponse = new Application(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setAuthDomain($authDomain); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setCodeBucket($codeBucket); - $expectedResponse->setDefaultHostname($defaultHostname); - $expectedResponse->setDefaultBucket($defaultBucket); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setGcrDomain($gcrDomain); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new UpdateApplicationRequest(); - $response = $gapicClient->updateApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Applications/UpdateApplication', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateApplicationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new UpdateApplicationRequest(); - $response = $gapicClient->updateApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApplicationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApplicationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $id = 'id3355'; - $authDomain = 'authDomain-988231877'; - $locationId = 'locationId552319461'; - $codeBucket = 'codeBucket-1239055236'; - $defaultHostname = 'defaultHostname-402050959'; - $defaultBucket = 'defaultBucket1669731752'; - $serviceAccount = 'serviceAccount-1948028253'; - $gcrDomain = 'gcrDomain883768845'; - $expectedResponse = new Application(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setAuthDomain($authDomain); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setCodeBucket($codeBucket); - $expectedResponse->setDefaultHostname($defaultHostname); - $expectedResponse->setDefaultBucket($defaultBucket); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setGcrDomain($gcrDomain); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateApplicationRequest(); - $response = $gapicClient->createApplicationAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Applications/CreateApplication', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/AuthorizedCertificatesClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/AuthorizedCertificatesClientTest.php deleted file mode 100644 index ffd5468c7c2b..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/AuthorizedCertificatesClientTest.php +++ /dev/null @@ -1,401 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AuthorizedCertificatesClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AuthorizedCertificatesClient($options); - } - - /** @test */ - public function createAuthorizedCertificateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $id = 'id3355'; - $displayName = 'displayName1615086568'; - $domainMappingsCount = 307278192; - $expectedResponse = new AuthorizedCertificate(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDomainMappingsCount($domainMappingsCount); - $transport->addResponse($expectedResponse); - $request = new CreateAuthorizedCertificateRequest(); - $response = $gapicClient->createAuthorizedCertificate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedCertificates/CreateAuthorizedCertificate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAuthorizedCertificateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CreateAuthorizedCertificateRequest(); - try { - $gapicClient->createAuthorizedCertificate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAuthorizedCertificateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new DeleteAuthorizedCertificateRequest(); - $gapicClient->deleteAuthorizedCertificate($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedCertificates/DeleteAuthorizedCertificate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAuthorizedCertificateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DeleteAuthorizedCertificateRequest(); - try { - $gapicClient->deleteAuthorizedCertificate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAuthorizedCertificateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $displayName = 'displayName1615086568'; - $domainMappingsCount = 307278192; - $expectedResponse = new AuthorizedCertificate(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDomainMappingsCount($domainMappingsCount); - $transport->addResponse($expectedResponse); - $request = new GetAuthorizedCertificateRequest(); - $response = $gapicClient->getAuthorizedCertificate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedCertificates/GetAuthorizedCertificate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAuthorizedCertificateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetAuthorizedCertificateRequest(); - try { - $gapicClient->getAuthorizedCertificate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAuthorizedCertificatesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $certificatesElement = new AuthorizedCertificate(); - $certificates = [ - $certificatesElement, - ]; - $expectedResponse = new ListAuthorizedCertificatesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCertificates($certificates); - $transport->addResponse($expectedResponse); - $request = new ListAuthorizedCertificatesRequest(); - $response = $gapicClient->listAuthorizedCertificates($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCertificates()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedCertificates/ListAuthorizedCertificates', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAuthorizedCertificatesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAuthorizedCertificatesRequest(); - try { - $gapicClient->listAuthorizedCertificates($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAuthorizedCertificateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $displayName = 'displayName1615086568'; - $domainMappingsCount = 307278192; - $expectedResponse = new AuthorizedCertificate(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDomainMappingsCount($domainMappingsCount); - $transport->addResponse($expectedResponse); - $request = new UpdateAuthorizedCertificateRequest(); - $response = $gapicClient->updateAuthorizedCertificate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedCertificates/UpdateAuthorizedCertificate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAuthorizedCertificateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new UpdateAuthorizedCertificateRequest(); - try { - $gapicClient->updateAuthorizedCertificate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAuthorizedCertificateAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $id = 'id3355'; - $displayName = 'displayName1615086568'; - $domainMappingsCount = 307278192; - $expectedResponse = new AuthorizedCertificate(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDomainMappingsCount($domainMappingsCount); - $transport->addResponse($expectedResponse); - $request = new CreateAuthorizedCertificateRequest(); - $response = $gapicClient->createAuthorizedCertificateAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedCertificates/CreateAuthorizedCertificate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/AuthorizedDomainsClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/AuthorizedDomainsClientTest.php deleted file mode 100644 index acda6058d02d..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/AuthorizedDomainsClientTest.php +++ /dev/null @@ -1,159 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AuthorizedDomainsClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AuthorizedDomainsClient($options); - } - - /** @test */ - public function listAuthorizedDomainsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $domainsElement = new AuthorizedDomain(); - $domains = [ - $domainsElement, - ]; - $expectedResponse = new ListAuthorizedDomainsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDomains($domains); - $transport->addResponse($expectedResponse); - $request = new ListAuthorizedDomainsRequest(); - $response = $gapicClient->listAuthorizedDomains($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDomains()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedDomains/ListAuthorizedDomains', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAuthorizedDomainsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListAuthorizedDomainsRequest(); - try { - $gapicClient->listAuthorizedDomains($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAuthorizedDomainsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $domainsElement = new AuthorizedDomain(); - $domains = [ - $domainsElement, - ]; - $expectedResponse = new ListAuthorizedDomainsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDomains($domains); - $transport->addResponse($expectedResponse); - $request = new ListAuthorizedDomainsRequest(); - $response = $gapicClient->listAuthorizedDomainsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDomains()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.AuthorizedDomains/ListAuthorizedDomains', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/DomainMappingsClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/DomainMappingsClientTest.php deleted file mode 100644 index 4958abca8418..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/DomainMappingsClientTest.php +++ /dev/null @@ -1,604 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DomainMappingsClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DomainMappingsClient($options); - } - - /** @test */ - public function createDomainMappingTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDomainMappingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $id = 'id3355'; - $expectedResponse = new DomainMapping(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDomainMappingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateDomainMappingRequest(); - $response = $gapicClient->createDomainMapping($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.DomainMappings/CreateDomainMapping', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDomainMappingTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createDomainMappingExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDomainMappingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new CreateDomainMappingRequest(); - $response = $gapicClient->createDomainMapping($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDomainMappingTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDomainMappingTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDomainMappingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDomainMappingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteDomainMappingRequest(); - $response = $gapicClient->deleteDomainMapping($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.DomainMappings/DeleteDomainMapping', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDomainMappingTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDomainMappingExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDomainMappingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new DeleteDomainMappingRequest(); - $response = $gapicClient->deleteDomainMapping($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDomainMappingTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getDomainMappingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $expectedResponse = new DomainMapping(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $transport->addResponse($expectedResponse); - $request = new GetDomainMappingRequest(); - $response = $gapicClient->getDomainMapping($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.DomainMappings/GetDomainMapping', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDomainMappingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetDomainMappingRequest(); - try { - $gapicClient->getDomainMapping($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDomainMappingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $domainMappingsElement = new DomainMapping(); - $domainMappings = [ - $domainMappingsElement, - ]; - $expectedResponse = new ListDomainMappingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDomainMappings($domainMappings); - $transport->addResponse($expectedResponse); - $request = new ListDomainMappingsRequest(); - $response = $gapicClient->listDomainMappings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDomainMappings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.DomainMappings/ListDomainMappings', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDomainMappingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListDomainMappingsRequest(); - try { - $gapicClient->listDomainMappings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDomainMappingTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDomainMappingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $expectedResponse = new DomainMapping(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDomainMappingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new UpdateDomainMappingRequest(); - $response = $gapicClient->updateDomainMapping($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.DomainMappings/UpdateDomainMapping', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDomainMappingTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDomainMappingExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDomainMappingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new UpdateDomainMappingRequest(); - $response = $gapicClient->updateDomainMapping($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDomainMappingTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createDomainMappingAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDomainMappingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $id = 'id3355'; - $expectedResponse = new DomainMapping(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDomainMappingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateDomainMappingRequest(); - $response = $gapicClient->createDomainMappingAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.DomainMappings/CreateDomainMapping', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDomainMappingTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/FirewallClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/FirewallClientTest.php deleted file mode 100644 index 99b088e75299..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/FirewallClientTest.php +++ /dev/null @@ -1,443 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return FirewallClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new FirewallClient($options); - } - - /** @test */ - public function batchUpdateIngressRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateIngressRulesResponse(); - $transport->addResponse($expectedResponse); - $request = new BatchUpdateIngressRulesRequest(); - $response = $gapicClient->batchUpdateIngressRules($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Firewall/BatchUpdateIngressRules', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateIngressRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new BatchUpdateIngressRulesRequest(); - try { - $gapicClient->batchUpdateIngressRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createIngressRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $priority = 1165461084; - $sourceRange = 'sourceRange1669022745'; - $description = 'description-1724546052'; - $expectedResponse = new FirewallRule(); - $expectedResponse->setPriority($priority); - $expectedResponse->setSourceRange($sourceRange); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - $request = new CreateIngressRuleRequest(); - $response = $gapicClient->createIngressRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Firewall/CreateIngressRule', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createIngressRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CreateIngressRuleRequest(); - try { - $gapicClient->createIngressRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteIngressRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new DeleteIngressRuleRequest(); - $gapicClient->deleteIngressRule($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Firewall/DeleteIngressRule', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteIngressRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DeleteIngressRuleRequest(); - try { - $gapicClient->deleteIngressRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIngressRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $priority = 1165461084; - $sourceRange = 'sourceRange1669022745'; - $description = 'description-1724546052'; - $expectedResponse = new FirewallRule(); - $expectedResponse->setPriority($priority); - $expectedResponse->setSourceRange($sourceRange); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - $request = new GetIngressRuleRequest(); - $response = $gapicClient->getIngressRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Firewall/GetIngressRule', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIngressRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetIngressRuleRequest(); - try { - $gapicClient->getIngressRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listIngressRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $ingressRulesElement = new FirewallRule(); - $ingressRules = [ - $ingressRulesElement, - ]; - $expectedResponse = new ListIngressRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setIngressRules($ingressRules); - $transport->addResponse($expectedResponse); - $request = new ListIngressRulesRequest(); - $response = $gapicClient->listIngressRules($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getIngressRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Firewall/ListIngressRules', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listIngressRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListIngressRulesRequest(); - try { - $gapicClient->listIngressRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateIngressRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $priority = 1165461084; - $sourceRange = 'sourceRange1669022745'; - $description = 'description-1724546052'; - $expectedResponse = new FirewallRule(); - $expectedResponse->setPriority($priority); - $expectedResponse->setSourceRange($sourceRange); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - $request = new UpdateIngressRuleRequest(); - $response = $gapicClient->updateIngressRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Firewall/UpdateIngressRule', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateIngressRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new UpdateIngressRuleRequest(); - try { - $gapicClient->updateIngressRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateIngressRulesAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateIngressRulesResponse(); - $transport->addResponse($expectedResponse); - $request = new BatchUpdateIngressRulesRequest(); - $response = $gapicClient->batchUpdateIngressRulesAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Firewall/BatchUpdateIngressRules', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/InstancesClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/InstancesClientTest.php deleted file mode 100644 index b08f3dbe9566..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/InstancesClientTest.php +++ /dev/null @@ -1,558 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return InstancesClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new InstancesClient($options); - } - - /** @test */ - public function debugInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/debugInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $appEngineRelease = 'appEngineRelease-720849688'; - $vmName = 'vmName562937619'; - $vmZoneName = 'vmZoneName-1200108618'; - $vmId = 'vmId112317347'; - $requests = 393257020; - $errors = 1294635157; - $qps = 11218; - $averageLatency = 1814586588; - $memoryUsage = 1034557667; - $vmStatus = 'vmStatus-22474118'; - $vmDebugEnabled = false; - $vmIp = 'vmIp112317359'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setAppEngineRelease($appEngineRelease); - $expectedResponse->setVmName($vmName); - $expectedResponse->setVmZoneName($vmZoneName); - $expectedResponse->setVmId($vmId); - $expectedResponse->setRequests($requests); - $expectedResponse->setErrors($errors); - $expectedResponse->setQps($qps); - $expectedResponse->setAverageLatency($averageLatency); - $expectedResponse->setMemoryUsage($memoryUsage); - $expectedResponse->setVmStatus($vmStatus); - $expectedResponse->setVmDebugEnabled($vmDebugEnabled); - $expectedResponse->setVmIp($vmIp); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/debugInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DebugInstanceRequest(); - $response = $gapicClient->debugInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Instances/DebugInstance', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/debugInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function debugInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/debugInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new DebugInstanceRequest(); - $response = $gapicClient->debugInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/debugInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteInstanceRequest(); - $response = $gapicClient->deleteInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Instances/DeleteInstance', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new DeleteInstanceRequest(); - $response = $gapicClient->deleteInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $appEngineRelease = 'appEngineRelease-720849688'; - $vmName = 'vmName562937619'; - $vmZoneName = 'vmZoneName-1200108618'; - $vmId = 'vmId112317347'; - $requests = 393257020; - $errors = 1294635157; - $qps = 11218; - $averageLatency = 1814586588; - $memoryUsage = 1034557667; - $vmStatus = 'vmStatus-22474118'; - $vmDebugEnabled = false; - $vmIp = 'vmIp112317359'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setAppEngineRelease($appEngineRelease); - $expectedResponse->setVmName($vmName); - $expectedResponse->setVmZoneName($vmZoneName); - $expectedResponse->setVmId($vmId); - $expectedResponse->setRequests($requests); - $expectedResponse->setErrors($errors); - $expectedResponse->setQps($qps); - $expectedResponse->setAverageLatency($averageLatency); - $expectedResponse->setMemoryUsage($memoryUsage); - $expectedResponse->setVmStatus($vmStatus); - $expectedResponse->setVmDebugEnabled($vmDebugEnabled); - $expectedResponse->setVmIp($vmIp); - $transport->addResponse($expectedResponse); - $request = new GetInstanceRequest(); - $response = $gapicClient->getInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Instances/GetInstance', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetInstanceRequest(); - try { - $gapicClient->getInstance($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInstancesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $instancesElement = new Instance(); - $instances = [ - $instancesElement, - ]; - $expectedResponse = new ListInstancesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setInstances($instances); - $transport->addResponse($expectedResponse); - $request = new ListInstancesRequest(); - $response = $gapicClient->listInstances($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getInstances()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Instances/ListInstances', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInstancesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListInstancesRequest(); - try { - $gapicClient->listInstances($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function debugInstanceAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/debugInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $appEngineRelease = 'appEngineRelease-720849688'; - $vmName = 'vmName562937619'; - $vmZoneName = 'vmZoneName-1200108618'; - $vmId = 'vmId112317347'; - $requests = 393257020; - $errors = 1294635157; - $qps = 11218; - $averageLatency = 1814586588; - $memoryUsage = 1034557667; - $vmStatus = 'vmStatus-22474118'; - $vmDebugEnabled = false; - $vmIp = 'vmIp112317359'; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setAppEngineRelease($appEngineRelease); - $expectedResponse->setVmName($vmName); - $expectedResponse->setVmZoneName($vmZoneName); - $expectedResponse->setVmId($vmId); - $expectedResponse->setRequests($requests); - $expectedResponse->setErrors($errors); - $expectedResponse->setQps($qps); - $expectedResponse->setAverageLatency($averageLatency); - $expectedResponse->setMemoryUsage($memoryUsage); - $expectedResponse->setVmStatus($vmStatus); - $expectedResponse->setVmDebugEnabled($vmDebugEnabled); - $expectedResponse->setVmIp($vmIp); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/debugInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DebugInstanceRequest(); - $response = $gapicClient->debugInstanceAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Instances/DebugInstance', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/debugInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/ServicesClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/ServicesClientTest.php deleted file mode 100644 index 8af9e5231ff8..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/ServicesClientTest.php +++ /dev/null @@ -1,482 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ServicesClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ServicesClient($options); - } - - /** @test */ - public function deleteServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteServiceRequest(); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Services/DeleteService', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new DeleteServiceRequest(); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $expectedResponse = new Service(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $transport->addResponse($expectedResponse); - $request = new GetServiceRequest(); - $response = $gapicClient->getService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Services/GetService', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetServiceRequest(); - try { - $gapicClient->getService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $servicesElement = new Service(); - $services = [ - $servicesElement, - ]; - $expectedResponse = new ListServicesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setServices($services); - $transport->addResponse($expectedResponse); - $request = new ListServicesRequest(); - $response = $gapicClient->listServices($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getServices()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Services/ListServices', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListServicesRequest(); - try { - $gapicClient->listServices($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $expectedResponse = new Service(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new UpdateServiceRequest(); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Services/UpdateService', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new UpdateServiceRequest(); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteServiceRequest(); - $response = $gapicClient->deleteServiceAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Services/DeleteService', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/VersionsClientTest.php b/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/VersionsClientTest.php deleted file mode 100644 index 3d354895e721..000000000000 --- a/owl-bot-staging/AppEngineAdmin/v1/tests/Unit/V1/Client/VersionsClientTest.php +++ /dev/null @@ -1,716 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return VersionsClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new VersionsClient($options); - } - - /** @test */ - public function createVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $id = 'id3355'; - $instanceClass = 'instanceClass77208910'; - $runtime = 'runtime1550962648'; - $runtimeChannel = 'runtimeChannel-2088002660'; - $threadsafe = false; - $vm = false; - $appEngineApis = true; - $env = 'env100589'; - $createdBy = 'createdBy1369680142'; - $diskUsageBytes = 1139084459; - $runtimeApiVersion = 'runtimeApiVersion51162572'; - $runtimeMainExecutablePath = 'runtimeMainExecutablePath2027790971'; - $serviceAccount = 'serviceAccount-1948028253'; - $nobuildFilesRegex = 'nobuildFilesRegex935728269'; - $versionUrl = 'versionUrl689431944'; - $expectedResponse = new Version(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setInstanceClass($instanceClass); - $expectedResponse->setRuntime($runtime); - $expectedResponse->setRuntimeChannel($runtimeChannel); - $expectedResponse->setThreadsafe($threadsafe); - $expectedResponse->setVm($vm); - $expectedResponse->setAppEngineApis($appEngineApis); - $expectedResponse->setEnv($env); - $expectedResponse->setCreatedBy($createdBy); - $expectedResponse->setDiskUsageBytes($diskUsageBytes); - $expectedResponse->setRuntimeApiVersion($runtimeApiVersion); - $expectedResponse->setRuntimeMainExecutablePath($runtimeMainExecutablePath); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setNobuildFilesRegex($nobuildFilesRegex); - $expectedResponse->setVersionUrl($versionUrl); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateVersionRequest(); - $response = $gapicClient->createVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Versions/CreateVersion', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVersionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new CreateVersionRequest(); - $response = $gapicClient->createVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVersionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteVersionRequest(); - $response = $gapicClient->deleteVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Versions/DeleteVersion', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVersionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new DeleteVersionRequest(); - $response = $gapicClient->deleteVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVersionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $instanceClass = 'instanceClass77208910'; - $runtime = 'runtime1550962648'; - $runtimeChannel = 'runtimeChannel-2088002660'; - $threadsafe = false; - $vm = false; - $appEngineApis = true; - $env = 'env100589'; - $createdBy = 'createdBy1369680142'; - $diskUsageBytes = 1139084459; - $runtimeApiVersion = 'runtimeApiVersion51162572'; - $runtimeMainExecutablePath = 'runtimeMainExecutablePath2027790971'; - $serviceAccount = 'serviceAccount-1948028253'; - $nobuildFilesRegex = 'nobuildFilesRegex935728269'; - $versionUrl = 'versionUrl689431944'; - $expectedResponse = new Version(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setInstanceClass($instanceClass); - $expectedResponse->setRuntime($runtime); - $expectedResponse->setRuntimeChannel($runtimeChannel); - $expectedResponse->setThreadsafe($threadsafe); - $expectedResponse->setVm($vm); - $expectedResponse->setAppEngineApis($appEngineApis); - $expectedResponse->setEnv($env); - $expectedResponse->setCreatedBy($createdBy); - $expectedResponse->setDiskUsageBytes($diskUsageBytes); - $expectedResponse->setRuntimeApiVersion($runtimeApiVersion); - $expectedResponse->setRuntimeMainExecutablePath($runtimeMainExecutablePath); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setNobuildFilesRegex($nobuildFilesRegex); - $expectedResponse->setVersionUrl($versionUrl); - $transport->addResponse($expectedResponse); - $request = new GetVersionRequest(); - $response = $gapicClient->getVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Versions/GetVersion', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetVersionRequest(); - try { - $gapicClient->getVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVersionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $versionsElement = new Version(); - $versions = [ - $versionsElement, - ]; - $expectedResponse = new ListVersionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setVersions($versions); - $transport->addResponse($expectedResponse); - $request = new ListVersionsRequest(); - $response = $gapicClient->listVersions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVersions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Versions/ListVersions', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVersionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListVersionsRequest(); - try { - $gapicClient->listVersions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $instanceClass = 'instanceClass77208910'; - $runtime = 'runtime1550962648'; - $runtimeChannel = 'runtimeChannel-2088002660'; - $threadsafe = false; - $vm = false; - $appEngineApis = true; - $env = 'env100589'; - $createdBy = 'createdBy1369680142'; - $diskUsageBytes = 1139084459; - $runtimeApiVersion = 'runtimeApiVersion51162572'; - $runtimeMainExecutablePath = 'runtimeMainExecutablePath2027790971'; - $serviceAccount = 'serviceAccount-1948028253'; - $nobuildFilesRegex = 'nobuildFilesRegex935728269'; - $versionUrl = 'versionUrl689431944'; - $expectedResponse = new Version(); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setInstanceClass($instanceClass); - $expectedResponse->setRuntime($runtime); - $expectedResponse->setRuntimeChannel($runtimeChannel); - $expectedResponse->setThreadsafe($threadsafe); - $expectedResponse->setVm($vm); - $expectedResponse->setAppEngineApis($appEngineApis); - $expectedResponse->setEnv($env); - $expectedResponse->setCreatedBy($createdBy); - $expectedResponse->setDiskUsageBytes($diskUsageBytes); - $expectedResponse->setRuntimeApiVersion($runtimeApiVersion); - $expectedResponse->setRuntimeMainExecutablePath($runtimeMainExecutablePath); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setNobuildFilesRegex($nobuildFilesRegex); - $expectedResponse->setVersionUrl($versionUrl); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new UpdateVersionRequest(); - $response = $gapicClient->updateVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Versions/UpdateVersion', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateVersionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new UpdateVersionRequest(); - $response = $gapicClient->updateVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateVersionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createVersionAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $id = 'id3355'; - $instanceClass = 'instanceClass77208910'; - $runtime = 'runtime1550962648'; - $runtimeChannel = 'runtimeChannel-2088002660'; - $threadsafe = false; - $vm = false; - $appEngineApis = true; - $env = 'env100589'; - $createdBy = 'createdBy1369680142'; - $diskUsageBytes = 1139084459; - $runtimeApiVersion = 'runtimeApiVersion51162572'; - $runtimeMainExecutablePath = 'runtimeMainExecutablePath2027790971'; - $serviceAccount = 'serviceAccount-1948028253'; - $nobuildFilesRegex = 'nobuildFilesRegex935728269'; - $versionUrl = 'versionUrl689431944'; - $expectedResponse = new Version(); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setInstanceClass($instanceClass); - $expectedResponse->setRuntime($runtime); - $expectedResponse->setRuntimeChannel($runtimeChannel); - $expectedResponse->setThreadsafe($threadsafe); - $expectedResponse->setVm($vm); - $expectedResponse->setAppEngineApis($appEngineApis); - $expectedResponse->setEnv($env); - $expectedResponse->setCreatedBy($createdBy); - $expectedResponse->setDiskUsageBytes($diskUsageBytes); - $expectedResponse->setRuntimeApiVersion($runtimeApiVersion); - $expectedResponse->setRuntimeMainExecutablePath($runtimeMainExecutablePath); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setNobuildFilesRegex($nobuildFilesRegex); - $expectedResponse->setVersionUrl($versionUrl); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateVersionRequest(); - $response = $gapicClient->createVersionAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.appengine.v1.Versions/CreateVersion', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createVersionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppHub/v1/proto/src/GPBMetadata/Google/Cloud/Apphub/V1/ApphubService.php b/owl-bot-staging/AppHub/v1/proto/src/GPBMetadata/Google/Cloud/Apphub/V1/ApphubService.php deleted file mode 100644 index baa62a3f86f5..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/GPBMetadata/Google/Cloud/Apphub/V1/ApphubService.php +++ /dev/null @@ -1,252 +0,0 @@ -internalAddGeneratedFile( - ' -^ -+google/cloud/apphub/v1/apphub_service.protogoogle.cloud.apphub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto(google/cloud/apphub/v1/application.proto$google/cloud/apphub/v1/service.proto7google/cloud/apphub/v1/service_project_attachment.proto%google/cloud/apphub/v1/workload.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"` -%LookupServiceProjectAttachmentRequest7 -name ( B)AA# -!locations.googleapis.com/Location"~ -&LookupServiceProjectAttachmentResponseT -service_project_attachment ( 20.google.cloud.apphub.v1.ServiceProjectAttachment" -$ListServiceProjectAttachmentsRequestF -parent ( B6AA0.apphub.googleapis.com/ServiceProjectAttachment - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA" -%ListServiceProjectAttachmentsResponseU -service_project_attachments ( 20.google.cloud.apphub.v1.ServiceProjectAttachment -next_page_token (  - unreachable ( " -%CreateServiceProjectAttachmentRequestF -parent ( B6AA0.apphub.googleapis.com/ServiceProjectAttachment* -service_project_attachment_id ( BAY -service_project_attachment ( 20.google.cloud.apphub.v1.ServiceProjectAttachmentBA - -request_id ( BA"j -"GetServiceProjectAttachmentRequestD -name ( B6AA0 -.apphub.googleapis.com/ServiceProjectAttachment" -%DeleteServiceProjectAttachmentRequestD -name ( B6AA0 -.apphub.googleapis.com/ServiceProjectAttachment - -request_id ( BA"` -%DetachServiceProjectAttachmentRequest7 -name ( B)AA# -!locations.googleapis.com/Location"( -&DetachServiceProjectAttachmentResponse" -ListServicesRequest5 -parent ( B%AAapphub.googleapis.com/Service - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA"w -ListServicesResponse1 -services ( 2.google.cloud.apphub.v1.Service -next_page_token (  - unreachable ( " -ListDiscoveredServicesRequest? -parent ( B/AA)\'apphub.googleapis.com/DiscoveredService - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA" -ListDiscoveredServicesResponseF -discovered_services ( 2).google.cloud.apphub.v1.DiscoveredService -next_page_token (  - unreachable ( " -CreateServiceRequest5 -parent ( B%AAapphub.googleapis.com/Service - -service_id ( BA5 -service ( 2.google.cloud.apphub.v1.ServiceBA - -request_id ( BA"H -GetServiceRequest3 -name ( B%AA -apphub.googleapis.com/Service"\\ -GetDiscoveredServiceRequest= -name ( B/AA) -\'apphub.googleapis.com/DiscoveredService"s -LookupDiscoveredServiceRequest? -parent ( B/AA)\'apphub.googleapis.com/DiscoveredService -uri ( BA"h -LookupDiscoveredServiceResponseE -discovered_service ( 2).google.cloud.apphub.v1.DiscoveredService" -UpdateServiceRequest4 - update_mask ( 2.google.protobuf.FieldMaskBA5 -service ( 2.google.cloud.apphub.v1.ServiceBA - -request_id ( BA"d -DeleteServiceRequest3 -name ( B%AA -apphub.googleapis.com/Service - -request_id ( BA" -ListApplicationsRequest9 -parent ( B)AA#!apphub.googleapis.com/Application - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA" -ListApplicationsResponse9 - applications ( 2#.google.cloud.apphub.v1.Application -next_page_token (  - unreachable ( " -CreateApplicationRequest9 -parent ( B)AA#!apphub.googleapis.com/Application -application_id ( BA= - application ( 2#.google.cloud.apphub.v1.ApplicationBA - -request_id ( BA"P -GetApplicationRequest7 -name ( B)AA# -!apphub.googleapis.com/Application" -UpdateApplicationRequest4 - update_mask ( 2.google.protobuf.FieldMaskBA= - application ( 2#.google.cloud.apphub.v1.ApplicationBA - -request_id ( BA"l -DeleteApplicationRequest7 -name ( B)AA# -!apphub.googleapis.com/Application - -request_id ( BA" -ListWorkloadsRequest6 -parent ( B&AA apphub.googleapis.com/Workload - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA"z -ListWorkloadsResponse3 - workloads ( 2 .google.cloud.apphub.v1.Workload -next_page_token (  - unreachable ( " -ListDiscoveredWorkloadsRequest@ -parent ( B0AA*(apphub.googleapis.com/DiscoveredWorkload - page_size (BA - -page_token ( BA -filter ( BA -order_by ( BA" -ListDiscoveredWorkloadsResponseH -discovered_workloads ( 2*.google.cloud.apphub.v1.DiscoveredWorkload -next_page_token (  - unreachable ( " -CreateWorkloadRequest6 -parent ( B&AA apphub.googleapis.com/Workload - workload_id ( BA7 -workload ( 2 .google.cloud.apphub.v1.WorkloadBA - -request_id ( BA"J -GetWorkloadRequest4 -name ( B&AA -apphub.googleapis.com/Workload"^ -GetDiscoveredWorkloadRequest> -name ( B0AA* -(apphub.googleapis.com/DiscoveredWorkload"u -LookupDiscoveredWorkloadRequest@ -parent ( B0AA*(apphub.googleapis.com/DiscoveredWorkload -uri ( BA"k - LookupDiscoveredWorkloadResponseG -discovered_workload ( 2*.google.cloud.apphub.v1.DiscoveredWorkload" -UpdateWorkloadRequest4 - update_mask ( 2.google.protobuf.FieldMaskBA7 -workload ( 2 .google.cloud.apphub.v1.WorkloadBA - -request_id ( BA"f -DeleteWorkloadRequest4 -name ( B&AA -apphub.googleapis.com/Workload - -request_id ( BA" -OperationMetadata4 - create_time ( 2.google.protobuf.TimestampBA1 -end_time ( 2.google.protobuf.TimestampBA -target ( BA -verb ( BA -status_message ( BA# -requested_cancellation (BA - api_version ( BA2/ -AppHub -LookupServiceProjectAttachment=.google.cloud.apphub.v1.LookupServiceProjectAttachmentRequest>.google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse"OAnameB@/v1/{name=projects/*/locations/*}:lookupServiceProjectAttachment -ListServiceProjectAttachments<.google.cloud.apphub.v1.ListServiceProjectAttachmentsRequest=.google.cloud.apphub.v1.ListServiceProjectAttachmentsResponse"NAparent?=/v1/{parent=projects/*/locations/*}/serviceProjectAttachments -CreateServiceProjectAttachment=.google.cloud.apphub.v1.CreateServiceProjectAttachmentRequest.google.longrunning.Operation"A- -ServiceProjectAttachmentOperationMetadataA?parent,service_project_attachment,service_project_attachment_id["=/v1/{parent=projects/*/locations/*}/serviceProjectAttachments:service_project_attachment -GetServiceProjectAttachment:.google.cloud.apphub.v1.GetServiceProjectAttachmentRequest0.google.cloud.apphub.v1.ServiceProjectAttachment"LAname?=/v1/{name=projects/*/locations/*/serviceProjectAttachments/*} -DeleteServiceProjectAttachment=.google.cloud.apphub.v1.DeleteServiceProjectAttachmentRequest.google.longrunning.Operation"yA* -google.protobuf.EmptyOperationMetadataAname?*=/v1/{name=projects/*/locations/*/serviceProjectAttachments/*} -DetachServiceProjectAttachment=.google.cloud.apphub.v1.DetachServiceProjectAttachmentRequest>.google.cloud.apphub.v1.DetachServiceProjectAttachmentResponse"RAnameE"@/v1/{name=projects/*/locations/*}:detachServiceProjectAttachment:* -ListDiscoveredServices5.google.cloud.apphub.v1.ListDiscoveredServicesRequest6.google.cloud.apphub.v1.ListDiscoveredServicesResponse"GAparent86/v1/{parent=projects/*/locations/*}/discoveredServices -GetDiscoveredService3.google.cloud.apphub.v1.GetDiscoveredServiceRequest).google.cloud.apphub.v1.DiscoveredService"EAname86/v1/{name=projects/*/locations/*/discoveredServices/*} -LookupDiscoveredService6.google.cloud.apphub.v1.LookupDiscoveredServiceRequest7.google.cloud.apphub.v1.LookupDiscoveredServiceResponse"RA -parent,uri?=/v1/{parent=projects/*/locations/*}/discoveredServices:lookup - ListServices+.google.cloud.apphub.v1.ListServicesRequest,.google.cloud.apphub.v1.ListServicesResponse"LAparent=;/v1/{parent=projects/*/locations/*/applications/*}/services - CreateService,.google.cloud.apphub.v1.CreateServiceRequest.google.longrunning.Operation"A -ServiceOperationMetadataAparent,service,service_idF";/v1/{parent=projects/*/locations/*/applications/*}/services:service - -GetService).google.cloud.apphub.v1.GetServiceRequest.google.cloud.apphub.v1.Service"JAname=;/v1/{name=projects/*/locations/*/applications/*/services/*} - UpdateService,.google.cloud.apphub.v1.UpdateServiceRequest.google.longrunning.Operation"A -ServiceOperationMetadataAservice,update_maskN2C/v1/{service.name=projects/*/locations/*/applications/*/services/*}:service - DeleteService,.google.cloud.apphub.v1.DeleteServiceRequest.google.longrunning.Operation"wA* -google.protobuf.EmptyOperationMetadataAname=*;/v1/{name=projects/*/locations/*/applications/*/services/*} -ListDiscoveredWorkloads6.google.cloud.apphub.v1.ListDiscoveredWorkloadsRequest7.google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse"HAparent97/v1/{parent=projects/*/locations/*}/discoveredWorkloads -GetDiscoveredWorkload4.google.cloud.apphub.v1.GetDiscoveredWorkloadRequest*.google.cloud.apphub.v1.DiscoveredWorkload"FAname97/v1/{name=projects/*/locations/*/discoveredWorkloads/*} -LookupDiscoveredWorkload7.google.cloud.apphub.v1.LookupDiscoveredWorkloadRequest8.google.cloud.apphub.v1.LookupDiscoveredWorkloadResponse"SA -parent,uri@>/v1/{parent=projects/*/locations/*}/discoveredWorkloads:lookup - ListWorkloads,.google.cloud.apphub.v1.ListWorkloadsRequest-.google.cloud.apphub.v1.ListWorkloadsResponse"MAparent>*google.cloud.apphub.v1.Application - */ -class Application extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of an Application. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. User-defined name for the Application. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined description of an Application. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $attributes = null; - /** - * Output only. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. Immutable. Defines what data can be included into this - * Application. Limits which Services and Workloads can be registered. - * - * Generated from protobuf field .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $scope = null; - /** - * Output only. A universally unique identifier (in UUID4 format) for the - * `Application`. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. Application state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of an Application. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}" - * @type string $display_name - * Optional. User-defined name for the Application. - * Can have a maximum length of 63 characters. - * @type string $description - * Optional. User-defined description of an Application. - * Can have a maximum length of 2048 characters. - * @type \Google\Cloud\AppHub\V1\Attributes $attributes - * Optional. Consumer provided attributes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Update time. - * @type \Google\Cloud\AppHub\V1\Scope $scope - * Required. Immutable. Defines what data can be included into this - * Application. Limits which Services and Workloads can be registered. - * @type string $uid - * Output only. A universally unique identifier (in UUID4 format) for the - * `Application`. - * @type int $state - * Output only. Application state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Application::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of an Application. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of an Application. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User-defined name for the Application. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User-defined name for the Application. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. User-defined description of an Application. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. User-defined description of an Application. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AppHub\V1\Attributes|null - */ - public function getAttributes() - { - return $this->attributes; - } - - public function hasAttributes() - { - return isset($this->attributes); - } - - public function clearAttributes() - { - unset($this->attributes); - } - - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AppHub\V1\Attributes $var - * @return $this - */ - public function setAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Attributes::class); - $this->attributes = $var; - - return $this; - } - - /** - * Output only. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. Defines what data can be included into this - * Application. Limits which Services and Workloads can be registered. - * - * Generated from protobuf field .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AppHub\V1\Scope|null - */ - public function getScope() - { - return $this->scope; - } - - public function hasScope() - { - return isset($this->scope); - } - - public function clearScope() - { - unset($this->scope); - } - - /** - * Required. Immutable. Defines what data can be included into this - * Application. Limits which Services and Workloads can be registered. - * - * Generated from protobuf field .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AppHub\V1\Scope $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Scope::class); - $this->scope = $var; - - return $this; - } - - /** - * Output only. A universally unique identifier (in UUID4 format) for the - * `Application`. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A universally unique identifier (in UUID4 format) for the - * `Application`. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. Application state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Application state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppHub\V1\Application\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Application/State.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Application/State.php deleted file mode 100644 index 3edae7a05e10..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Application/State.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.apphub.v1.Application.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The Application is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The Application is ready to register Services and Workloads. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The Application is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - ]; - - 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(State::class, \Google\Cloud\AppHub\V1\Application_State::class); - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Attributes.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Attributes.php deleted file mode 100644 index 1c564d4bf636..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Attributes.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.apphub.v1.Attributes - */ -class Attributes extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. User-defined criticality information. - * - * Generated from protobuf field .google.cloud.apphub.v1.Criticality criticality = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $criticality = null; - /** - * Optional. User-defined environment information. - * - * Generated from protobuf field .google.cloud.apphub.v1.Environment environment = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $environment = null; - /** - * Optional. Developer team that owns development and coding. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo developer_owners = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $developer_owners; - /** - * Optional. Operator team that ensures runtime and operations. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo operator_owners = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $operator_owners; - /** - * Optional. Business team that ensures user needs are met and value is - * delivered - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo business_owners = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $business_owners; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppHub\V1\Criticality $criticality - * Optional. User-defined criticality information. - * @type \Google\Cloud\AppHub\V1\Environment $environment - * Optional. User-defined environment information. - * @type array<\Google\Cloud\AppHub\V1\ContactInfo>|\Google\Protobuf\Internal\RepeatedField $developer_owners - * Optional. Developer team that owns development and coding. - * @type array<\Google\Cloud\AppHub\V1\ContactInfo>|\Google\Protobuf\Internal\RepeatedField $operator_owners - * Optional. Operator team that ensures runtime and operations. - * @type array<\Google\Cloud\AppHub\V1\ContactInfo>|\Google\Protobuf\Internal\RepeatedField $business_owners - * Optional. Business team that ensures user needs are met and value is - * delivered - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Attributes::initOnce(); - parent::__construct($data); - } - - /** - * Optional. User-defined criticality information. - * - * Generated from protobuf field .google.cloud.apphub.v1.Criticality criticality = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AppHub\V1\Criticality|null - */ - public function getCriticality() - { - return $this->criticality; - } - - public function hasCriticality() - { - return isset($this->criticality); - } - - public function clearCriticality() - { - unset($this->criticality); - } - - /** - * Optional. User-defined criticality information. - * - * Generated from protobuf field .google.cloud.apphub.v1.Criticality criticality = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AppHub\V1\Criticality $var - * @return $this - */ - public function setCriticality($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Criticality::class); - $this->criticality = $var; - - return $this; - } - - /** - * Optional. User-defined environment information. - * - * Generated from protobuf field .google.cloud.apphub.v1.Environment environment = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AppHub\V1\Environment|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * Optional. User-defined environment information. - * - * Generated from protobuf field .google.cloud.apphub.v1.Environment environment = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AppHub\V1\Environment $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Environment::class); - $this->environment = $var; - - return $this; - } - - /** - * Optional. Developer team that owns development and coding. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo developer_owners = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeveloperOwners() - { - return $this->developer_owners; - } - - /** - * Optional. Developer team that owns development and coding. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo developer_owners = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\AppHub\V1\ContactInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeveloperOwners($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\ContactInfo::class); - $this->developer_owners = $arr; - - return $this; - } - - /** - * Optional. Operator team that ensures runtime and operations. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo operator_owners = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperatorOwners() - { - return $this->operator_owners; - } - - /** - * Optional. Operator team that ensures runtime and operations. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo operator_owners = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\AppHub\V1\ContactInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperatorOwners($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\ContactInfo::class); - $this->operator_owners = $arr; - - return $this; - } - - /** - * Optional. Business team that ensures user needs are met and value is - * delivered - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo business_owners = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBusinessOwners() - { - return $this->business_owners; - } - - /** - * Optional. Business team that ensures user needs are met and value is - * delivered - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ContactInfo business_owners = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\AppHub\V1\ContactInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBusinessOwners($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\ContactInfo::class); - $this->business_owners = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ContactInfo.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ContactInfo.php deleted file mode 100644 index b6120f2e5ea3..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ContactInfo.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.apphub.v1.ContactInfo - */ -class ContactInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Contact's name. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. Email address of the contacts. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Optional. Contact's name. - * Can have a maximum length of 63 characters. - * @type string $email - * Required. Email address of the contacts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Attributes::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Contact's name. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Contact's name. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Email address of the contacts. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Required. Email address of the contacts. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateApplicationRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateApplicationRequest.php deleted file mode 100644 index 141d16e3f1f3..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateApplicationRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.cloud.apphub.v1.CreateApplicationRequest - */ -class CreateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project and location to create Application in. - * Expected format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Application identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $application_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.apphub.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $application = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Project and location to create Application in. - * Expected format: `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AppHub\V1\Application $application Required. The resource being created - * @param string $applicationId Required. The Application identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * @return \Google\Cloud\AppHub\V1\CreateApplicationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AppHub\V1\Application $application, string $applicationId): self - { - return (new self()) - ->setParent($parent) - ->setApplication($application) - ->setApplicationId($applicationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Project and location to create Application in. - * Expected format: `projects/{project}/locations/{location}`. - * @type string $application_id - * Required. The Application identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * @type \Google\Cloud\AppHub\V1\Application $application - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project and location to create Application in. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Project and location to create Application in. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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 Application identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Required. The Application identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string application_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.apphub.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AppHub\V1\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.apphub.v1.Application application = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AppHub\V1\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Application::class); - $this->application = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateServiceProjectAttachmentRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateServiceProjectAttachmentRequest.php deleted file mode 100644 index 1ef41d2e2645..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateServiceProjectAttachmentRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.cloud.apphub.v1.CreateServiceProjectAttachmentRequest - */ -class CreateServiceProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Host project ID and location to which service project is being - * attached. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The service project attachment identifier must contain the - * project id of the service project specified in the - * service_project_attachment.service_project field. - * - * Generated from protobuf field string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_project_attachment_id = ''; - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_project_attachment = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Host project ID and location to which service project is being - * attached. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AppHub\V1\ServiceProjectAttachment $serviceProjectAttachment Required. The resource being created. - * @param string $serviceProjectAttachmentId Required. The service project attachment identifier must contain the - * project id of the service project specified in the - * service_project_attachment.service_project field. - * - * @return \Google\Cloud\AppHub\V1\CreateServiceProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AppHub\V1\ServiceProjectAttachment $serviceProjectAttachment, string $serviceProjectAttachmentId): self - { - return (new self()) - ->setParent($parent) - ->setServiceProjectAttachment($serviceProjectAttachment) - ->setServiceProjectAttachmentId($serviceProjectAttachmentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Host project ID and location to which service project is being - * attached. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * @type string $service_project_attachment_id - * Required. The service project attachment identifier must contain the - * project id of the service project specified in the - * service_project_attachment.service_project field. - * @type \Google\Cloud\AppHub\V1\ServiceProjectAttachment $service_project_attachment - * Required. The resource being created. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Host project ID and location to which service project is being - * attached. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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. Host project ID and location to which service project is being - * attached. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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 service project attachment identifier must contain the - * project id of the service project specified in the - * service_project_attachment.service_project field. - * - * Generated from protobuf field string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getServiceProjectAttachmentId() - { - return $this->service_project_attachment_id; - } - - /** - * Required. The service project attachment identifier must contain the - * project id of the service project specified in the - * service_project_attachment.service_project field. - * - * Generated from protobuf field string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setServiceProjectAttachmentId($var) - { - GPBUtil::checkString($var, True); - $this->service_project_attachment_id = $var; - - return $this; - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AppHub\V1\ServiceProjectAttachment|null - */ - public function getServiceProjectAttachment() - { - return $this->service_project_attachment; - } - - public function hasServiceProjectAttachment() - { - return isset($this->service_project_attachment); - } - - public function clearServiceProjectAttachment() - { - unset($this->service_project_attachment); - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AppHub\V1\ServiceProjectAttachment $var - * @return $this - */ - public function setServiceProjectAttachment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\ServiceProjectAttachment::class); - $this->service_project_attachment = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateServiceRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateServiceRequest.php deleted file mode 100644 index 6ea89e3e33ed..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateServiceRequest.php +++ /dev/null @@ -1,262 +0,0 @@ -google.cloud.apphub.v1.CreateServiceRequest - */ -class CreateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the parent Application to create the - * Service in. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Service identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_id = ''; - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Fully qualified name of the parent Application to create the - * Service in. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. Please see - * {@see AppHubClient::applicationName()} for help formatting this field. - * @param \Google\Cloud\AppHub\V1\Service $service Required. The resource being created. - * @param string $serviceId Required. The Service identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * @return \Google\Cloud\AppHub\V1\CreateServiceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AppHub\V1\Service $service, string $serviceId): self - { - return (new self()) - ->setParent($parent) - ->setService($service) - ->setServiceId($serviceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Fully qualified name of the parent Application to create the - * Service in. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * @type string $service_id - * Required. The Service identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * @type \Google\Cloud\AppHub\V1\Service $service - * Required. The resource being created. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the parent Application to create the - * Service in. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Fully qualified name of the parent Application to create the - * Service in. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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 Service identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getServiceId() - { - return $this->service_id; - } - - /** - * Required. The Service identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setServiceId($var) - { - GPBUtil::checkString($var, True); - $this->service_id = $var; - - return $this; - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AppHub\V1\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AppHub\V1\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateWorkloadRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateWorkloadRequest.php deleted file mode 100644 index e0fc59e26d60..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/CreateWorkloadRequest.php +++ /dev/null @@ -1,262 +0,0 @@ -google.cloud.apphub.v1.CreateWorkloadRequest - */ -class CreateWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Application to create Workload in. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Workload identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workload_id = ''; - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload workload = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workload = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Fully qualified name of the Application to create Workload in. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. Please see - * {@see AppHubClient::applicationName()} for help formatting this field. - * @param \Google\Cloud\AppHub\V1\Workload $workload Required. The resource being created. - * @param string $workloadId Required. The Workload identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * @return \Google\Cloud\AppHub\V1\CreateWorkloadRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AppHub\V1\Workload $workload, string $workloadId): self - { - return (new self()) - ->setParent($parent) - ->setWorkload($workload) - ->setWorkloadId($workloadId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Fully qualified name of the Application to create Workload in. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * @type string $workload_id - * Required. The Workload identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * @type \Google\Cloud\AppHub\V1\Workload $workload - * Required. The resource being created. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Application to create Workload in. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Fully qualified name of the Application to create Workload in. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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 Workload identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWorkloadId() - { - return $this->workload_id; - } - - /** - * Required. The Workload identifier. - * Must contain only lowercase letters, numbers - * or hyphens, with the first character a letter, the last a letter or a - * number, and a 63 character maximum. - * - * Generated from protobuf field string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWorkloadId($var) - { - GPBUtil::checkString($var, True); - $this->workload_id = $var; - - return $this; - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload workload = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AppHub\V1\Workload|null - */ - public function getWorkload() - { - return $this->workload; - } - - public function hasWorkload() - { - return isset($this->workload); - } - - public function clearWorkload() - { - unset($this->workload); - } - - /** - * Required. The resource being created. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload workload = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AppHub\V1\Workload $var - * @return $this - */ - public function setWorkload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Workload::class); - $this->workload = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Criticality.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Criticality.php deleted file mode 100644 index 09e117a23b2d..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Criticality.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.apphub.v1.Criticality - */ -class Criticality extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Criticality Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Criticality.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Required. Criticality Type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Attributes::initOnce(); - parent::__construct($data); - } - - /** - * Required. Criticality Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Criticality.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Criticality Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Criticality.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppHub\V1\Criticality\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Criticality/Type.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Criticality/Type.php deleted file mode 100644 index ace2ecc1432c..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Criticality/Type.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.apphub.v1.Criticality.Type - */ -class Type -{ - /** - * Unspecified type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Mission critical service, application or workload. - * - * Generated from protobuf enum MISSION_CRITICAL = 1; - */ - const MISSION_CRITICAL = 1; - /** - * High impact. - * - * Generated from protobuf enum HIGH = 2; - */ - const HIGH = 2; - /** - * Medium impact. - * - * Generated from protobuf enum MEDIUM = 3; - */ - const MEDIUM = 3; - /** - * Low impact. - * - * Generated from protobuf enum LOW = 4; - */ - const LOW = 4; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::MISSION_CRITICAL => 'MISSION_CRITICAL', - self::HIGH => 'HIGH', - self::MEDIUM => 'MEDIUM', - self::LOW => 'LOW', - ]; - - 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(Type::class, \Google\Cloud\AppHub\V1\Criticality_Type::class); - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteApplicationRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteApplicationRequest.php deleted file mode 100644 index bcbb69ff2e45..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteApplicationRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.apphub.v1.DeleteApplicationRequest - */ -class DeleteApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Application to delete. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Fully qualified name of the Application to delete. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. Please see - * {@see AppHubClient::applicationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\DeleteApplicationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Application to delete. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Application to delete. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Fully qualified name of the Application to delete. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteServiceProjectAttachmentRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteServiceProjectAttachmentRequest.php deleted file mode 100644 index 0d903781ef56..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteServiceProjectAttachmentRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.apphub.v1.DeleteServiceProjectAttachmentRequest - */ -class DeleteServiceProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the service project attachment to delete. - * Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Fully qualified name of the service project attachment to delete. - * Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. Please see - * {@see AppHubClient::serviceProjectAttachmentName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\DeleteServiceProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the service project attachment to delete. - * Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the service project attachment to delete. - * Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * - * 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. Fully qualified name of the service project attachment to delete. - * Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteServiceRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteServiceRequest.php deleted file mode 100644 index 880c1ae69626..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteServiceRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.apphub.v1.DeleteServiceRequest - */ -class DeleteServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Service to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Fully qualified name of the Service to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. Please see - * {@see AppHubClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\DeleteServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Service to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Service to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * - * 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. Fully qualified name of the Service to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteWorkloadRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteWorkloadRequest.php deleted file mode 100644 index 11fe9885bcf1..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DeleteWorkloadRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.apphub.v1.DeleteWorkloadRequest - */ -class DeleteWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Workload to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Fully qualified name of the Workload to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. Please see - * {@see AppHubClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\DeleteWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Workload to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Workload to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * - * 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. Fully qualified name of the Workload to delete from an - * Application. Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DetachServiceProjectAttachmentRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DetachServiceProjectAttachmentRequest.php deleted file mode 100644 index af4258cec305..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DetachServiceProjectAttachmentRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.DetachServiceProjectAttachmentRequest - */ -class DetachServiceProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Service project id and location to detach from a host project. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Service project id and location to detach from a host project. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\DetachServiceProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Service project id and location to detach from a host project. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Service project id and location to detach from a host project. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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. Service project id and location to detach from a host project. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DetachServiceProjectAttachmentResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DetachServiceProjectAttachmentResponse.php deleted file mode 100644 index 6c80f95d324b..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DetachServiceProjectAttachmentResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.apphub.v1.DetachServiceProjectAttachmentResponse - */ -class DetachServiceProjectAttachmentResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DiscoveredService.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DiscoveredService.php deleted file mode 100644 index ea83e9fe9d87..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DiscoveredService.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.apphub.v1.DiscoveredService - */ -class DiscoveredService extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the discovered service. Format: - * "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_reference = null; - /** - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_properties = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the discovered service. Format: - * "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"" - * @type \Google\Cloud\AppHub\V1\ServiceReference $service_reference - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * @type \Google\Cloud\AppHub\V1\ServiceProperties $service_properties - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the discovered service. Format: - * "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the discovered service. Format: - * "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\ServiceReference|null - */ - public function getServiceReference() - { - return $this->service_reference; - } - - public function hasServiceReference() - { - return isset($this->service_reference); - } - - public function clearServiceReference() - { - unset($this->service_reference); - } - - /** - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceReference service_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\ServiceReference $var - * @return $this - */ - public function setServiceReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\ServiceReference::class); - $this->service_reference = $var; - - return $this; - } - - /** - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\ServiceProperties|null - */ - public function getServiceProperties() - { - return $this->service_properties; - } - - public function hasServiceProperties() - { - return isset($this->service_properties); - } - - public function clearServiceProperties() - { - unset($this->service_properties); - } - - /** - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProperties service_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\ServiceProperties $var - * @return $this - */ - public function setServiceProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\ServiceProperties::class); - $this->service_properties = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DiscoveredWorkload.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DiscoveredWorkload.php deleted file mode 100644 index b0aac9322d5a..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/DiscoveredWorkload.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.apphub.v1.DiscoveredWorkload - */ -class DiscoveredWorkload extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the discovered workload. Format: - * "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_reference = null; - /** - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_properties = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the discovered workload. Format: - * "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}" - * @type \Google\Cloud\AppHub\V1\WorkloadReference $workload_reference - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * @type \Google\Cloud\AppHub\V1\WorkloadProperties $workload_properties - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Workload::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the discovered workload. Format: - * "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the discovered workload. Format: - * "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\WorkloadReference|null - */ - public function getWorkloadReference() - { - return $this->workload_reference; - } - - public function hasWorkloadReference() - { - return isset($this->workload_reference); - } - - public function clearWorkloadReference() - { - unset($this->workload_reference); - } - - /** - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadReference workload_reference = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\WorkloadReference $var - * @return $this - */ - public function setWorkloadReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\WorkloadReference::class); - $this->workload_reference = $var; - - return $this; - } - - /** - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\WorkloadProperties|null - */ - public function getWorkloadProperties() - { - return $this->workload_properties; - } - - public function hasWorkloadProperties() - { - return isset($this->workload_properties); - } - - public function clearWorkloadProperties() - { - unset($this->workload_properties); - } - - /** - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadProperties workload_properties = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\WorkloadProperties $var - * @return $this - */ - public function setWorkloadProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\WorkloadProperties::class); - $this->workload_properties = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Environment.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Environment.php deleted file mode 100644 index b96c21b3a0de..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Environment.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.apphub.v1.Environment - */ -class Environment extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Environment Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Required. Environment Type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Attributes::initOnce(); - parent::__construct($data); - } - - /** - * Required. Environment Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Environment Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Environment.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppHub\V1\Environment\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Environment/Type.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Environment/Type.php deleted file mode 100644 index 4b872b16515d..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Environment/Type.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.apphub.v1.Environment.Type - */ -class Type -{ - /** - * Unspecified type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Production environment. - * - * Generated from protobuf enum PRODUCTION = 1; - */ - const PRODUCTION = 1; - /** - * Staging environment. - * - * Generated from protobuf enum STAGING = 2; - */ - const STAGING = 2; - /** - * Test environment. - * - * Generated from protobuf enum TEST = 3; - */ - const TEST = 3; - /** - * Development environment. - * - * Generated from protobuf enum DEVELOPMENT = 4; - */ - const DEVELOPMENT = 4; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::PRODUCTION => 'PRODUCTION', - self::STAGING => 'STAGING', - self::TEST => 'TEST', - self::DEVELOPMENT => 'DEVELOPMENT', - ]; - - 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(Type::class, \Google\Cloud\AppHub\V1\Environment_Type::class); - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetApplicationRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetApplicationRequest.php deleted file mode 100644 index e4648e2c10d7..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetApplicationRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.GetApplicationRequest - */ -class GetApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Application to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Fully qualified name of the Application to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. Please see - * {@see AppHubClient::applicationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\GetApplicationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Application to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Application to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Fully qualified name of the Application to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetDiscoveredServiceRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetDiscoveredServiceRequest.php deleted file mode 100644 index 024d9159bb7f..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetDiscoveredServiceRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.GetDiscoveredServiceRequest - */ -class GetDiscoveredServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Discovered Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Fully qualified name of the Discovered Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. Please see - * {@see AppHubClient::discoveredServiceName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\GetDiscoveredServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Discovered Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Discovered Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. - * - * 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. Fully qualified name of the Discovered Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetDiscoveredWorkloadRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetDiscoveredWorkloadRequest.php deleted file mode 100644 index 8eacd410a1df..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetDiscoveredWorkloadRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.GetDiscoveredWorkloadRequest - */ -class GetDiscoveredWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Discovered Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Fully qualified name of the Discovered Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. Please see - * {@see AppHubClient::discoveredWorkloadName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\GetDiscoveredWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Discovered Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Discovered Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. - * - * 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. Fully qualified name of the Discovered Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetServiceProjectAttachmentRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetServiceProjectAttachmentRequest.php deleted file mode 100644 index f42aaeac7c36..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetServiceProjectAttachmentRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.GetServiceProjectAttachmentRequest - */ -class GetServiceProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the service project attachment to - * retrieve. Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Fully qualified name of the service project attachment to - * retrieve. Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. Please see - * {@see AppHubClient::serviceProjectAttachmentName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\GetServiceProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the service project attachment to - * retrieve. Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the service project attachment to - * retrieve. Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * - * 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. Fully qualified name of the service project attachment to - * retrieve. Expected format: - * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetServiceRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetServiceRequest.php deleted file mode 100644 index 1b347d394f29..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetServiceRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.GetServiceRequest - */ -class GetServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Fully qualified name of the Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. Please see - * {@see AppHubClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\GetServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * - * 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. Fully qualified name of the Service to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetWorkloadRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetWorkloadRequest.php deleted file mode 100644 index 5795c8670c1d..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/GetWorkloadRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.GetWorkloadRequest - */ -class GetWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Fully qualified name of the Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. Please see - * {@see AppHubClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\GetWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Fully qualified name of the Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * - * 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. Fully qualified name of the Workload to fetch. - * Expected format: - * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListApplicationsRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListApplicationsRequest.php deleted file mode 100644 index 929e580145c3..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListApplicationsRequest.php +++ /dev/null @@ -1,226 +0,0 @@ -google.cloud.apphub.v1.ListApplicationsRequest - */ -class ListApplicationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project and location to list Applications on. - * Expected format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Project and location to list Applications on. - * Expected format: `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\ListApplicationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Project and location to list Applications on. - * Expected format: `projects/{project}/locations/{location}`. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project and location to list Applications on. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Project and location to list Applications on. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListApplicationsResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListApplicationsResponse.php deleted file mode 100644 index 38a2e6a2ab70..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListApplicationsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apphub.v1.ListApplicationsResponse - */ -class ListApplicationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Applications. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Application applications = 1; - */ - private $applications; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppHub\V1\Application>|\Google\Protobuf\Internal\RepeatedField $applications - * List of Applications. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * List of Applications. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Application applications = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getApplications() - { - return $this->applications; - } - - /** - * List of Applications. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Application applications = 1; - * @param array<\Google\Cloud\AppHub\V1\Application>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setApplications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\Application::class); - $this->applications = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredServicesRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredServicesRequest.php deleted file mode 100644 index 5dc98a26cfae..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredServicesRequest.php +++ /dev/null @@ -1,226 +0,0 @@ -google.cloud.apphub.v1.ListDiscoveredServicesRequest - */ -class ListDiscoveredServicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project and location to list Discovered Services on. - * Expected format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Project and location to list Discovered Services on. - * Expected format: `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\ListDiscoveredServicesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Project and location to list Discovered Services on. - * Expected format: `projects/{project}/locations/{location}`. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project and location to list Discovered Services on. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Project and location to list Discovered Services on. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredServicesResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredServicesResponse.php deleted file mode 100644 index ec9cfadd4568..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredServicesResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apphub.v1.ListDiscoveredServicesResponse - */ -class ListDiscoveredServicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Discovered Services. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; - */ - private $discovered_services; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppHub\V1\DiscoveredService>|\Google\Protobuf\Internal\RepeatedField $discovered_services - * List of Discovered Services. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * List of Discovered Services. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDiscoveredServices() - { - return $this->discovered_services; - } - - /** - * List of Discovered Services. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; - * @param array<\Google\Cloud\AppHub\V1\DiscoveredService>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDiscoveredServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\DiscoveredService::class); - $this->discovered_services = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredWorkloadsRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredWorkloadsRequest.php deleted file mode 100644 index d3fb39cf0360..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredWorkloadsRequest.php +++ /dev/null @@ -1,226 +0,0 @@ -google.cloud.apphub.v1.ListDiscoveredWorkloadsRequest - */ -class ListDiscoveredWorkloadsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project and location to list Discovered Workloads on. - * Expected format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Project and location to list Discovered Workloads on. - * Expected format: `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\ListDiscoveredWorkloadsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Project and location to list Discovered Workloads on. - * Expected format: `projects/{project}/locations/{location}`. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project and location to list Discovered Workloads on. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Project and location to list Discovered Workloads on. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredWorkloadsResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredWorkloadsResponse.php deleted file mode 100644 index 8dccde34de65..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListDiscoveredWorkloadsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse - */ -class ListDiscoveredWorkloadsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Discovered Workloads. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; - */ - private $discovered_workloads; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppHub\V1\DiscoveredWorkload>|\Google\Protobuf\Internal\RepeatedField $discovered_workloads - * List of Discovered Workloads. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * List of Discovered Workloads. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDiscoveredWorkloads() - { - return $this->discovered_workloads; - } - - /** - * List of Discovered Workloads. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; - * @param array<\Google\Cloud\AppHub\V1\DiscoveredWorkload>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDiscoveredWorkloads($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\DiscoveredWorkload::class); - $this->discovered_workloads = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServiceProjectAttachmentsRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServiceProjectAttachmentsRequest.php deleted file mode 100644 index 7273fec3bbe1..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServiceProjectAttachmentsRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.apphub.v1.ListServiceProjectAttachmentsRequest - */ -class ListServiceProjectAttachmentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Host project ID and location to list service project attachments. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Host project ID and location to list service project attachments. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\ListServiceProjectAttachmentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Host project ID and location to list service project attachments. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Host project ID and location to list service project attachments. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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. Host project ID and location to list service project attachments. - * Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServiceProjectAttachmentsResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServiceProjectAttachmentsResponse.php deleted file mode 100644 index 7ff93923cabb..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServiceProjectAttachmentsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apphub.v1.ListServiceProjectAttachmentsResponse - */ -class ListServiceProjectAttachmentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of service project attachments. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachments = 1; - */ - private $service_project_attachments; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppHub\V1\ServiceProjectAttachment>|\Google\Protobuf\Internal\RepeatedField $service_project_attachments - * List of service project attachments. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * List of service project attachments. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceProjectAttachments() - { - return $this->service_project_attachments; - } - - /** - * List of service project attachments. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachments = 1; - * @param array<\Google\Cloud\AppHub\V1\ServiceProjectAttachment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceProjectAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\ServiceProjectAttachment::class); - $this->service_project_attachments = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServicesRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServicesRequest.php deleted file mode 100644 index 658c7dd0caf4..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServicesRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.apphub.v1.ListServicesRequest - */ -class ListServicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the parent Application to list Services - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Fully qualified name of the parent Application to list Services - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. Please see - * {@see AppHubClient::applicationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\ListServicesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Fully qualified name of the parent Application to list Services - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results - * @type string $order_by - * Optional. Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the parent Application to list Services - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Fully qualified name of the parent Application to list Services - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServicesResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServicesResponse.php deleted file mode 100644 index a8ad314412f8..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListServicesResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apphub.v1.ListServicesResponse - */ -class ListServicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Services. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Service services = 1; - */ - private $services; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppHub\V1\Service>|\Google\Protobuf\Internal\RepeatedField $services - * List of Services. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * List of Services. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Service services = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServices() - { - return $this->services; - } - - /** - * List of Services. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Service services = 1; - * @param array<\Google\Cloud\AppHub\V1\Service>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\Service::class); - $this->services = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListWorkloadsRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListWorkloadsRequest.php deleted file mode 100644 index 540b9edb4a8d..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListWorkloadsRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.apphub.v1.ListWorkloadsRequest - */ -class ListWorkloadsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fully qualified name of the parent Application to list Workloads - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Fully qualified name of the parent Application to list Workloads - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. Please see - * {@see AppHubClient::applicationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\ListWorkloadsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Fully qualified name of the parent Application to list Workloads - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fully qualified name of the parent Application to list Workloads - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Fully qualified name of the parent Application to list Workloads - * for. Expected format: - * `projects/{project}/locations/{location}/applications/{application}`. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListWorkloadsResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListWorkloadsResponse.php deleted file mode 100644 index 9a9daf8bd0ba..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ListWorkloadsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.apphub.v1.ListWorkloadsResponse - */ -class ListWorkloadsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Workloads. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Workload workloads = 1; - */ - private $workloads; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AppHub\V1\Workload>|\Google\Protobuf\Internal\RepeatedField $workloads - * List of Workloads. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * List of Workloads. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Workload workloads = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkloads() - { - return $this->workloads; - } - - /** - * List of Workloads. - * - * Generated from protobuf field repeated .google.cloud.apphub.v1.Workload workloads = 1; - * @param array<\Google\Cloud\AppHub\V1\Workload>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkloads($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AppHub\V1\Workload::class); - $this->workloads = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredServiceRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredServiceRequest.php deleted file mode 100644 index cc52aa8d539f..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredServiceRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.apphub.v1.LookupDiscoveredServiceRequest - */ -class LookupDiscoveredServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Host project ID and location to lookup Discovered Service in. - * Expected format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Resource URI to find DiscoveredService for. - * Accepts both project number and project ID and does translation when - * needed. - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - - /** - * @param string $parent Required. Host project ID and location to lookup Discovered Service in. - * Expected format: `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * @param string $uri Required. Resource URI to find DiscoveredService for. - * Accepts both project number and project ID and does translation when - * needed. - * - * @return \Google\Cloud\AppHub\V1\LookupDiscoveredServiceRequest - * - * @experimental - */ - public static function build(string $parent, string $uri): self - { - return (new self()) - ->setParent($parent) - ->setUri($uri); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Host project ID and location to lookup Discovered Service in. - * Expected format: `projects/{project}/locations/{location}`. - * @type string $uri - * Required. Resource URI to find DiscoveredService for. - * Accepts both project number and project ID and does translation when - * needed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Host project ID and location to lookup Discovered Service in. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Host project ID and location to lookup Discovered Service in. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Resource URI to find DiscoveredService for. - * Accepts both project number and project ID and does translation when - * needed. - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. Resource URI to find DiscoveredService for. - * Accepts both project number and project ID and does translation when - * needed. - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredServiceResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredServiceResponse.php deleted file mode 100644 index 326eb3adf03d..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredServiceResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.apphub.v1.LookupDiscoveredServiceResponse - */ -class LookupDiscoveredServiceResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Discovered Service if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; - */ - protected $discovered_service = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppHub\V1\DiscoveredService $discovered_service - * Discovered Service if exists, empty otherwise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Discovered Service if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; - * @return \Google\Cloud\AppHub\V1\DiscoveredService|null - */ - public function getDiscoveredService() - { - return $this->discovered_service; - } - - public function hasDiscoveredService() - { - return isset($this->discovered_service); - } - - public function clearDiscoveredService() - { - unset($this->discovered_service); - } - - /** - * Discovered Service if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; - * @param \Google\Cloud\AppHub\V1\DiscoveredService $var - * @return $this - */ - public function setDiscoveredService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\DiscoveredService::class); - $this->discovered_service = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredWorkloadRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredWorkloadRequest.php deleted file mode 100644 index 309d7f34d70e..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredWorkloadRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.apphub.v1.LookupDiscoveredWorkloadRequest - */ -class LookupDiscoveredWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Host project ID and location to lookup Discovered Workload in. - * Expected format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Resource URI to find Discovered Workload for. - * Accepts both project number and project ID and does translation when - * needed. - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - - /** - * @param string $parent Required. Host project ID and location to lookup Discovered Workload in. - * Expected format: `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * @param string $uri Required. Resource URI to find Discovered Workload for. - * Accepts both project number and project ID and does translation when - * needed. - * - * @return \Google\Cloud\AppHub\V1\LookupDiscoveredWorkloadRequest - * - * @experimental - */ - public static function build(string $parent, string $uri): self - { - return (new self()) - ->setParent($parent) - ->setUri($uri); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Host project ID and location to lookup Discovered Workload in. - * Expected format: `projects/{project}/locations/{location}`. - * @type string $uri - * Required. Resource URI to find Discovered Workload for. - * Accepts both project number and project ID and does translation when - * needed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Host project ID and location to lookup Discovered Workload in. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Host project ID and location to lookup Discovered Workload in. - * Expected format: `projects/{project}/locations/{location}`. - * - * 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. Resource URI to find Discovered Workload for. - * Accepts both project number and project ID and does translation when - * needed. - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. Resource URI to find Discovered Workload for. - * Accepts both project number and project ID and does translation when - * needed. - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredWorkloadResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredWorkloadResponse.php deleted file mode 100644 index c1bc4a66a2dc..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupDiscoveredWorkloadResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.apphub.v1.LookupDiscoveredWorkloadResponse - */ -class LookupDiscoveredWorkloadResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Discovered Workload if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; - */ - protected $discovered_workload = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppHub\V1\DiscoveredWorkload $discovered_workload - * Discovered Workload if exists, empty otherwise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Discovered Workload if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; - * @return \Google\Cloud\AppHub\V1\DiscoveredWorkload|null - */ - public function getDiscoveredWorkload() - { - return $this->discovered_workload; - } - - public function hasDiscoveredWorkload() - { - return isset($this->discovered_workload); - } - - public function clearDiscoveredWorkload() - { - unset($this->discovered_workload); - } - - /** - * Discovered Workload if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; - * @param \Google\Cloud\AppHub\V1\DiscoveredWorkload $var - * @return $this - */ - public function setDiscoveredWorkload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\DiscoveredWorkload::class); - $this->discovered_workload = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupServiceProjectAttachmentRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupServiceProjectAttachmentRequest.php deleted file mode 100644 index 65ca37f51635..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupServiceProjectAttachmentRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.apphub.v1.LookupServiceProjectAttachmentRequest - */ -class LookupServiceProjectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Service project ID and location to lookup service project - * attachment for. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Service project ID and location to lookup service project - * attachment for. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. Please see - * {@see AppHubClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AppHub\V1\LookupServiceProjectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Service project ID and location to lookup service project - * attachment for. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Service project ID and location to lookup service project - * attachment for. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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. Service project ID and location to lookup service project - * attachment for. Only global location is supported. Expected format: - * `projects/{project}/locations/{location}`. - * - * 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/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupServiceProjectAttachmentResponse.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupServiceProjectAttachmentResponse.php deleted file mode 100644 index 348fc6383fae..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/LookupServiceProjectAttachmentResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse - */ -class LookupServiceProjectAttachmentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Service project attachment for a project if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 1; - */ - protected $service_project_attachment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AppHub\V1\ServiceProjectAttachment $service_project_attachment - * Service project attachment for a project if exists, empty otherwise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Service project attachment for a project if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 1; - * @return \Google\Cloud\AppHub\V1\ServiceProjectAttachment|null - */ - public function getServiceProjectAttachment() - { - return $this->service_project_attachment; - } - - public function hasServiceProjectAttachment() - { - return isset($this->service_project_attachment); - } - - public function clearServiceProjectAttachment() - { - unset($this->service_project_attachment); - } - - /** - * Service project attachment for a project if exists, empty otherwise. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment service_project_attachment = 1; - * @param \Google\Cloud\AppHub\V1\ServiceProjectAttachment $var - * @return $this - */ - public function setServiceProjectAttachment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\ServiceProjectAttachment::class); - $this->service_project_attachment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/OperationMetadata.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/OperationMetadata.php deleted file mode 100644 index a30443b7fea7..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.apphub.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Scope.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Scope.php deleted file mode 100644 index eba26a36def3..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Scope.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.apphub.v1.Scope - */ -class Scope extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Scope Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Scope.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Required. Scope Type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Application::initOnce(); - parent::__construct($data); - } - - /** - * Required. Scope Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Scope.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Scope Type. - * - * Generated from protobuf field .google.cloud.apphub.v1.Scope.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppHub\V1\Scope\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Scope/Type.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Scope/Type.php deleted file mode 100644 index a50fca19e848..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Scope/Type.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.apphub.v1.Scope.Type - */ -class Type -{ - /** - * Unspecified type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Regional type. - * - * Generated from protobuf enum REGIONAL = 1; - */ - const REGIONAL = 1; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::REGIONAL => 'REGIONAL', - ]; - - 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(Type::class, \Google\Cloud\AppHub\V1\Scope_Type::class); - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Service.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Service.php deleted file mode 100644 index 5d25b3ee3cc1..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Service.php +++ /dev/null @@ -1,483 +0,0 @@ -google.cloud.apphub.v1.Service - */ -class Service extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of a Service. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. User-defined name for the Service. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined description of a Service. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_reference = null; - /** - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_properties = null; - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $attributes = null; - /** - * Required. Immutable. The resource name of the original discovered service. - * - * Generated from protobuf field string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $discovered_service = ''; - /** - * Output only. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. A universally unique identifier (UUID) for the `Service` in - * the UUID4 format. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. Service state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of a Service. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}" - * @type string $display_name - * Optional. User-defined name for the Service. - * Can have a maximum length of 63 characters. - * @type string $description - * Optional. User-defined description of a Service. - * Can have a maximum length of 2048 characters. - * @type \Google\Cloud\AppHub\V1\ServiceReference $service_reference - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * @type \Google\Cloud\AppHub\V1\ServiceProperties $service_properties - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * @type \Google\Cloud\AppHub\V1\Attributes $attributes - * Optional. Consumer provided attributes. - * @type string $discovered_service - * Required. Immutable. The resource name of the original discovered service. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Update time. - * @type string $uid - * Output only. A universally unique identifier (UUID) for the `Service` in - * the UUID4 format. - * @type int $state - * Output only. Service state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of a Service. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of a Service. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User-defined name for the Service. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User-defined name for the Service. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. User-defined description of a Service. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. User-defined description of a Service. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\ServiceReference|null - */ - public function getServiceReference() - { - return $this->service_reference; - } - - public function hasServiceReference() - { - return isset($this->service_reference); - } - - public function clearServiceReference() - { - unset($this->service_reference); - } - - /** - * Output only. Reference to an underlying networking resource that can - * comprise a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceReference service_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\ServiceReference $var - * @return $this - */ - public function setServiceReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\ServiceReference::class); - $this->service_reference = $var; - - return $this; - } - - /** - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\ServiceProperties|null - */ - public function getServiceProperties() - { - return $this->service_properties; - } - - public function hasServiceProperties() - { - return isset($this->service_properties); - } - - public function clearServiceProperties() - { - unset($this->service_properties); - } - - /** - * Output only. Properties of an underlying compute resource that can comprise - * a Service. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProperties service_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\ServiceProperties $var - * @return $this - */ - public function setServiceProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\ServiceProperties::class); - $this->service_properties = $var; - - return $this; - } - - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AppHub\V1\Attributes|null - */ - public function getAttributes() - { - return $this->attributes; - } - - public function hasAttributes() - { - return isset($this->attributes); - } - - public function clearAttributes() - { - unset($this->attributes); - } - - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AppHub\V1\Attributes $var - * @return $this - */ - public function setAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Attributes::class); - $this->attributes = $var; - - return $this; - } - - /** - * Required. Immutable. The resource name of the original discovered service. - * - * Generated from protobuf field string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getDiscoveredService() - { - return $this->discovered_service; - } - - /** - * Required. Immutable. The resource name of the original discovered service. - * - * Generated from protobuf field string discovered_service = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDiscoveredService($var) - { - GPBUtil::checkString($var, True); - $this->discovered_service = $var; - - return $this; - } - - /** - * Output only. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. A universally unique identifier (UUID) for the `Service` in - * the UUID4 format. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A universally unique identifier (UUID) for the `Service` in - * the UUID4 format. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. Service state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Service state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppHub\V1\Service\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Service/State.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Service/State.php deleted file mode 100644 index 83784b3ca3dd..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Service/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.apphub.v1.Service.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The service is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The service is ready. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The service is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The underlying networking resources have been deleted. - * - * Generated from protobuf enum DETACHED = 4; - */ - const DETACHED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - self::DETACHED => 'DETACHED', - ]; - - 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(State::class, \Google\Cloud\AppHub\V1\Service_State::class); - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProjectAttachment.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProjectAttachment.php deleted file mode 100644 index f18dcc7e6c50..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProjectAttachment.php +++ /dev/null @@ -1,233 +0,0 @@ -google.cloud.apphub.v1.ServiceProjectAttachment - */ -class ServiceProjectAttachment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of a ServiceProjectAttachment. Format: - * "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. Service project name in the format: "projects/abc" or - * "projects/123". As input, project name with either project id or number are - * accepted. As output, this field will contain project number. - * - * Generated from protobuf field string service_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $service_project = ''; - /** - * Output only. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. A globally unique identifier (in UUID4 format) for the - * `ServiceProjectAttachment`. - * - * Generated from protobuf field string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. ServiceProjectAttachment state. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of a ServiceProjectAttachment. Format: - * "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." - * @type string $service_project - * Required. Immutable. Service project name in the format: "projects/abc" or - * "projects/123". As input, project name with either project id or number are - * accepted. As output, this field will contain project number. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time. - * @type string $uid - * Output only. A globally unique identifier (in UUID4 format) for the - * `ServiceProjectAttachment`. - * @type int $state - * Output only. ServiceProjectAttachment state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ServiceProjectAttachment::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of a ServiceProjectAttachment. Format: - * "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of a ServiceProjectAttachment. Format: - * "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Service project name in the format: "projects/abc" or - * "projects/123". As input, project name with either project id or number are - * accepted. As output, this field will contain project number. - * - * Generated from protobuf field string service_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getServiceProject() - { - return $this->service_project; - } - - /** - * Required. Immutable. Service project name in the format: "projects/abc" or - * "projects/123". As input, project name with either project id or number are - * accepted. As output, this field will contain project number. - * - * Generated from protobuf field string service_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServiceProject($var) - { - GPBUtil::checkString($var, True); - $this->service_project = $var; - - return $this; - } - - /** - * Output only. Create time. - * - * 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. Create time. - * - * 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. A globally unique identifier (in UUID4 format) for the - * `ServiceProjectAttachment`. - * - * Generated from protobuf field string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A globally unique identifier (in UUID4 format) for the - * `ServiceProjectAttachment`. - * - * Generated from protobuf field string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. ServiceProjectAttachment state. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. ServiceProjectAttachment state. - * - * Generated from protobuf field .google.cloud.apphub.v1.ServiceProjectAttachment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppHub\V1\ServiceProjectAttachment\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProjectAttachment/State.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProjectAttachment/State.php deleted file mode 100644 index 2c4346b40cd9..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProjectAttachment/State.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.apphub.v1.ServiceProjectAttachment.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The ServiceProjectAttachment is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The ServiceProjectAttachment is ready. - * This means Services and Workloads under the corresponding - * ServiceProjectAttachment is ready for registration. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The ServiceProjectAttachment is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - ]; - - 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(State::class, \Google\Cloud\AppHub\V1\ServiceProjectAttachment_State::class); - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProperties.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProperties.php deleted file mode 100644 index 852df6756dc8..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceProperties.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.apphub.v1.ServiceProperties - */ -class ServiceProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The service project identifier that the underlying cloud - * resource resides in. - * - * Generated from protobuf field string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $gcp_project = ''; - /** - * Output only. The location that the underlying resource resides in, for - * example, us-west1. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - /** - * Output only. The location that the underlying resource resides in if it is - * zonal, for example, us-west1-a). - * - * Generated from protobuf field string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $zone = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcp_project - * Output only. The service project identifier that the underlying cloud - * resource resides in. - * @type string $location - * Output only. The location that the underlying resource resides in, for - * example, us-west1. - * @type string $zone - * Output only. The location that the underlying resource resides in if it is - * zonal, for example, us-west1-a). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The service project identifier that the underlying cloud - * resource resides in. - * - * Generated from protobuf field string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGcpProject() - { - return $this->gcp_project; - } - - /** - * Output only. The service project identifier that the underlying cloud - * resource resides in. - * - * Generated from protobuf field string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGcpProject($var) - { - GPBUtil::checkString($var, True); - $this->gcp_project = $var; - - return $this; - } - - /** - * Output only. The location that the underlying resource resides in, for - * example, us-west1. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. The location that the underlying resource resides in, for - * example, us-west1. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Output only. The location that the underlying resource resides in if it is - * zonal, for example, us-west1-a). - * - * Generated from protobuf field string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Output only. The location that the underlying resource resides in if it is - * zonal, for example, us-west1-a). - * - * Generated from protobuf field string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceReference.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceReference.php deleted file mode 100644 index b1cf8790727b..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/ServiceReference.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.apphub.v1.ServiceReference - */ -class ServiceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The underlying resource URI (For example, URI of Forwarding - * Rule, URL Map, and Backend Service). - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Output only. The underlying resource URI (For example, URI of Forwarding - * Rule, URL Map, and Backend Service). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The underlying resource URI (For example, URI of Forwarding - * Rule, URL Map, and Backend Service). - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Output only. The underlying resource URI (For example, URI of Forwarding - * Rule, URL Map, and Backend Service). - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateApplicationRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateApplicationRequest.php deleted file mode 100644 index 6ff72ac786ff..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateApplicationRequest.php +++ /dev/null @@ -1,250 +0,0 @@ -google.cloud.apphub.v1.UpdateApplicationRequest - */ -class UpdateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Application resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $application = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\AppHub\V1\Application $application Required. The resource being updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Application resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * @return \Google\Cloud\AppHub\V1\UpdateApplicationRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AppHub\V1\Application $application, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setApplication($application) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * Application resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * @type \Google\Cloud\AppHub\V1\Application $application - * Required. The resource being updated. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Application resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * Application resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AppHub\V1\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AppHub\V1\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Application::class); - $this->application = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateServiceRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateServiceRequest.php deleted file mode 100644 index 704c3dbb83f8..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateServiceRequest.php +++ /dev/null @@ -1,250 +0,0 @@ -google.cloud.apphub.v1.UpdateServiceRequest - */ -class UpdateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Service resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\AppHub\V1\Service $service Required. The resource being updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Service resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * @return \Google\Cloud\AppHub\V1\UpdateServiceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AppHub\V1\Service $service, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setService($service) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * Service resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * @type \Google\Cloud\AppHub\V1\Service $service - * Required. The resource being updated. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Service resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * Service resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AppHub\V1\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AppHub\V1\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateWorkloadRequest.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateWorkloadRequest.php deleted file mode 100644 index d00ff29fd3bb..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/UpdateWorkloadRequest.php +++ /dev/null @@ -1,250 +0,0 @@ -google.cloud.apphub.v1.UpdateWorkloadRequest - */ -class UpdateWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Workload resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workload = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\AppHub\V1\Workload $workload Required. The resource being updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Workload resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * @return \Google\Cloud\AppHub\V1\UpdateWorkloadRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AppHub\V1\Workload $workload, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * Workload resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * @type \Google\Cloud\AppHub\V1\Workload $workload - * Required. The resource being updated. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\ApphubService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Workload resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * Workload resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. - * The API changes the values of the fields as specified in the update_mask. - * The API ignores the values of all fields not covered by the update_mask. - * You can also unset a field by not specifying it in the updated message, but - * adding the field to the mask. This clears whatever value the field - * previously had. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AppHub\V1\Workload|null - */ - public function getWorkload() - { - return $this->workload; - } - - public function hasWorkload() - { - return isset($this->workload); - } - - public function clearWorkload() - { - unset($this->workload); - } - - /** - * Required. The resource being updated. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AppHub\V1\Workload $var - * @return $this - */ - public function setWorkload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Workload::class); - $this->workload = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Workload.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Workload.php deleted file mode 100644 index 31f2c7fe7890..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Workload.php +++ /dev/null @@ -1,484 +0,0 @@ -google.cloud.apphub.v1.Workload - */ -class Workload extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the Workload. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. User-defined name for the Workload. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined description of a Workload. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_reference = null; - /** - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workload_properties = null; - /** - * Required. Immutable. The resource name of the original discovered workload. - * - * Generated from protobuf field string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $discovered_workload = ''; - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $attributes = null; - /** - * Output only. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. A universally unique identifier (UUID) for the `Workload` in - * the UUID4 format. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. Workload state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the Workload. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}" - * @type string $display_name - * Optional. User-defined name for the Workload. - * Can have a maximum length of 63 characters. - * @type string $description - * Optional. User-defined description of a Workload. - * Can have a maximum length of 2048 characters. - * @type \Google\Cloud\AppHub\V1\WorkloadReference $workload_reference - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * @type \Google\Cloud\AppHub\V1\WorkloadProperties $workload_properties - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * @type string $discovered_workload - * Required. Immutable. The resource name of the original discovered workload. - * @type \Google\Cloud\AppHub\V1\Attributes $attributes - * Optional. Consumer provided attributes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Create time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Update time. - * @type string $uid - * Output only. A universally unique identifier (UUID) for the `Workload` in - * the UUID4 format. - * @type int $state - * Output only. Workload state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Workload::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the Workload. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the Workload. Format: - * "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User-defined name for the Workload. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User-defined name for the Workload. - * Can have a maximum length of 63 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. User-defined description of a Workload. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. User-defined description of a Workload. - * Can have a maximum length of 2048 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\WorkloadReference|null - */ - public function getWorkloadReference() - { - return $this->workload_reference; - } - - public function hasWorkloadReference() - { - return isset($this->workload_reference); - } - - public function clearWorkloadReference() - { - unset($this->workload_reference); - } - - /** - * Output only. Reference of an underlying compute resource represented by the - * Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadReference workload_reference = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\WorkloadReference $var - * @return $this - */ - public function setWorkloadReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\WorkloadReference::class); - $this->workload_reference = $var; - - return $this; - } - - /** - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AppHub\V1\WorkloadProperties|null - */ - public function getWorkloadProperties() - { - return $this->workload_properties; - } - - public function hasWorkloadProperties() - { - return isset($this->workload_properties); - } - - public function clearWorkloadProperties() - { - unset($this->workload_properties); - } - - /** - * Output only. Properties of an underlying compute resource represented by - * the Workload. These are immutable. - * - * Generated from protobuf field .google.cloud.apphub.v1.WorkloadProperties workload_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AppHub\V1\WorkloadProperties $var - * @return $this - */ - public function setWorkloadProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\WorkloadProperties::class); - $this->workload_properties = $var; - - return $this; - } - - /** - * Required. Immutable. The resource name of the original discovered workload. - * - * Generated from protobuf field string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getDiscoveredWorkload() - { - return $this->discovered_workload; - } - - /** - * Required. Immutable. The resource name of the original discovered workload. - * - * Generated from protobuf field string discovered_workload = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDiscoveredWorkload($var) - { - GPBUtil::checkString($var, True); - $this->discovered_workload = $var; - - return $this; - } - - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AppHub\V1\Attributes|null - */ - public function getAttributes() - { - return $this->attributes; - } - - public function hasAttributes() - { - return isset($this->attributes); - } - - public function clearAttributes() - { - unset($this->attributes); - } - - /** - * Optional. Consumer provided attributes. - * - * Generated from protobuf field .google.cloud.apphub.v1.Attributes attributes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AppHub\V1\Attributes $var - * @return $this - */ - public function setAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AppHub\V1\Attributes::class); - $this->attributes = $var; - - return $this; - } - - /** - * Output only. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. Create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. Update time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.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. A universally unique identifier (UUID) for the `Workload` in - * the UUID4 format. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A universally unique identifier (UUID) for the `Workload` in - * the UUID4 format. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. Workload state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Workload state. - * - * Generated from protobuf field .google.cloud.apphub.v1.Workload.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AppHub\V1\Workload\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Workload/State.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Workload/State.php deleted file mode 100644 index c6eab0e33c71..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/Workload/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.apphub.v1.Workload.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The Workload is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The Workload is ready. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The Workload is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The underlying compute resources have been deleted. - * - * Generated from protobuf enum DETACHED = 4; - */ - const DETACHED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - self::DETACHED => 'DETACHED', - ]; - - 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(State::class, \Google\Cloud\AppHub\V1\Workload_State::class); - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/WorkloadProperties.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/WorkloadProperties.php deleted file mode 100644 index 1dd1d0e2ef87..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/WorkloadProperties.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.apphub.v1.WorkloadProperties - */ -class WorkloadProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The service project identifier that the underlying cloud - * resource resides in. Empty for non cloud resources. - * - * Generated from protobuf field string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $gcp_project = ''; - /** - * Output only. The location that the underlying compute resource resides in - * (e.g us-west1). - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - /** - * Output only. The location that the underlying compute resource resides in - * if it is zonal (e.g us-west1-a). - * - * Generated from protobuf field string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $zone = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcp_project - * Output only. The service project identifier that the underlying cloud - * resource resides in. Empty for non cloud resources. - * @type string $location - * Output only. The location that the underlying compute resource resides in - * (e.g us-west1). - * @type string $zone - * Output only. The location that the underlying compute resource resides in - * if it is zonal (e.g us-west1-a). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Workload::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The service project identifier that the underlying cloud - * resource resides in. Empty for non cloud resources. - * - * Generated from protobuf field string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGcpProject() - { - return $this->gcp_project; - } - - /** - * Output only. The service project identifier that the underlying cloud - * resource resides in. Empty for non cloud resources. - * - * Generated from protobuf field string gcp_project = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGcpProject($var) - { - GPBUtil::checkString($var, True); - $this->gcp_project = $var; - - return $this; - } - - /** - * Output only. The location that the underlying compute resource resides in - * (e.g us-west1). - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. The location that the underlying compute resource resides in - * (e.g us-west1). - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Output only. The location that the underlying compute resource resides in - * if it is zonal (e.g us-west1-a). - * - * Generated from protobuf field string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Output only. The location that the underlying compute resource resides in - * if it is zonal (e.g us-west1-a). - * - * Generated from protobuf field string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/WorkloadReference.php b/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/WorkloadReference.php deleted file mode 100644 index 4ca4363d5f84..000000000000 --- a/owl-bot-staging/AppHub/v1/proto/src/Google/Cloud/AppHub/V1/WorkloadReference.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.apphub.v1.WorkloadReference - */ -class WorkloadReference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The underlying compute resource uri. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Output only. The underlying compute resource uri. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Apphub\V1\Workload::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The underlying compute resource uri. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Output only. The underlying compute resource uri. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_application.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_application.php deleted file mode 100644 index 8d8c05653b18..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_application.php +++ /dev/null @@ -1,102 +0,0 @@ -setType($applicationScopeType); - $application = (new Application()) - ->setScope($applicationScope); - $request = (new CreateApplicationRequest()) - ->setParent($formattedParent) - ->setApplicationId($applicationId) - ->setApplication($application); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->createApplication($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Application $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - $applicationId = '[APPLICATION_ID]'; - $applicationScopeType = Type::TYPE_UNSPECIFIED; - - create_application_sample($formattedParent, $applicationId, $applicationScopeType); -} -// [END apphub_v1_generated_AppHub_CreateApplication_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_service.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_service.php deleted file mode 100644 index 74bef1d8f909..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_service.php +++ /dev/null @@ -1,100 +0,0 @@ -setDiscoveredService($formattedServiceDiscoveredService); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->createService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $serviceId = '[SERVICE_ID]'; - $formattedServiceDiscoveredService = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - create_service_sample($formattedParent, $serviceId, $formattedServiceDiscoveredService); -} -// [END apphub_v1_generated_AppHub_CreateService_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_service_project_attachment.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_service_project_attachment.php deleted file mode 100644 index 102da3f0d3be..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_service_project_attachment.php +++ /dev/null @@ -1,105 +0,0 @@ -setServiceProject($formattedServiceProjectAttachmentServiceProject); - $request = (new CreateServiceProjectAttachmentRequest()) - ->setParent($formattedParent) - ->setServiceProjectAttachmentId($serviceProjectAttachmentId) - ->setServiceProjectAttachment($serviceProjectAttachment); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->createServiceProjectAttachment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ServiceProjectAttachment $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - $serviceProjectAttachmentId = '[SERVICE_PROJECT_ATTACHMENT_ID]'; - $formattedServiceProjectAttachmentServiceProject = AppHubClient::projectName('[PROJECT]'); - - create_service_project_attachment_sample( - $formattedParent, - $serviceProjectAttachmentId, - $formattedServiceProjectAttachmentServiceProject - ); -} -// [END apphub_v1_generated_AppHub_CreateServiceProjectAttachment_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_workload.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_workload.php deleted file mode 100644 index 6ff89d53bc67..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/create_workload.php +++ /dev/null @@ -1,100 +0,0 @@ -setDiscoveredWorkload($formattedWorkloadDiscoveredWorkload); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkloadId($workloadId) - ->setWorkload($workload); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->createWorkload($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Workload $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $workloadId = '[WORKLOAD_ID]'; - $formattedWorkloadDiscoveredWorkload = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - create_workload_sample($formattedParent, $workloadId, $formattedWorkloadDiscoveredWorkload); -} -// [END apphub_v1_generated_AppHub_CreateWorkload_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_application.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_application.php deleted file mode 100644 index 6e178772b58d..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_application.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->deleteApplication($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - - delete_application_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_DeleteApplication_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_service.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_service.php deleted file mode 100644 index babdfe3f79a3..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_service.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->deleteService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::serviceName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[SERVICE]'); - - delete_service_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_DeleteService_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_service_project_attachment.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_service_project_attachment.php deleted file mode 100644 index 1c37a1356e23..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_service_project_attachment.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->deleteServiceProjectAttachment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::serviceProjectAttachmentName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE_PROJECT_ATTACHMENT]' - ); - - delete_service_project_attachment_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_DeleteServiceProjectAttachment_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_workload.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_workload.php deleted file mode 100644 index 5b243a5ac416..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/delete_workload.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->deleteWorkload($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::workloadName( - '[PROJECT]', - '[LOCATION]', - '[APPLICATION]', - '[WORKLOAD]' - ); - - delete_workload_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_DeleteWorkload_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/detach_service_project_attachment.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/detach_service_project_attachment.php deleted file mode 100644 index d20f2a5d002f..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/detach_service_project_attachment.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DetachServiceProjectAttachmentResponse $response */ - $response = $appHubClient->detachServiceProjectAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - detach_service_project_attachment_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_DetachServiceProjectAttachment_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_application.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_application.php deleted file mode 100644 index 00d79bd11388..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_application.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Application $response */ - $response = $appHubClient->getApplication($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - - get_application_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_GetApplication_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_discovered_service.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_discovered_service.php deleted file mode 100644 index b4f35288f2b8..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_discovered_service.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DiscoveredService $response */ - $response = $appHubClient->getDiscoveredService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::discoveredServiceName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERED_SERVICE]' - ); - - get_discovered_service_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_GetDiscoveredService_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_discovered_workload.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_discovered_workload.php deleted file mode 100644 index 378b09120efe..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_discovered_workload.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DiscoveredWorkload $response */ - $response = $appHubClient->getDiscoveredWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::discoveredWorkloadName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERED_WORKLOAD]' - ); - - get_discovered_workload_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_GetDiscoveredWorkload_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_iam_policy.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_iam_policy.php deleted file mode 100644 index 07a25026e931..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $appHubClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END apphub_v1_generated_AppHub_GetIamPolicy_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_location.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_location.php deleted file mode 100644 index b26240487542..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apphub_v1_generated_AppHub_GetLocation_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_service.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_service.php deleted file mode 100644 index a15ecd886f85..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_service.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Service $response */ - $response = $appHubClient->getService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::serviceName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[SERVICE]'); - - get_service_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_GetService_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_service_project_attachment.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_service_project_attachment.php deleted file mode 100644 index d9dd4d237e0b..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_service_project_attachment.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ServiceProjectAttachment $response */ - $response = $appHubClient->getServiceProjectAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::serviceProjectAttachmentName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE_PROJECT_ATTACHMENT]' - ); - - get_service_project_attachment_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_GetServiceProjectAttachment_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_workload.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_workload.php deleted file mode 100644 index f8fc755c465e..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/get_workload.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Workload $response */ - $response = $appHubClient->getWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::workloadName( - '[PROJECT]', - '[LOCATION]', - '[APPLICATION]', - '[WORKLOAD]' - ); - - get_workload_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_GetWorkload_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_applications.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_applications.php deleted file mode 100644 index c248fb9e7efb..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_applications.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $appHubClient->listApplications($request); - - /** @var Application $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_applications_sample($formattedParent); -} -// [END apphub_v1_generated_AppHub_ListApplications_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_discovered_services.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_discovered_services.php deleted file mode 100644 index 09802e9bbbc1..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_discovered_services.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $appHubClient->listDiscoveredServices($request); - - /** @var DiscoveredService $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_discovered_services_sample($formattedParent); -} -// [END apphub_v1_generated_AppHub_ListDiscoveredServices_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_discovered_workloads.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_discovered_workloads.php deleted file mode 100644 index 86b013669015..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_discovered_workloads.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $appHubClient->listDiscoveredWorkloads($request); - - /** @var DiscoveredWorkload $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_discovered_workloads_sample($formattedParent); -} -// [END apphub_v1_generated_AppHub_ListDiscoveredWorkloads_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_locations.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_locations.php deleted file mode 100644 index 40b015e938de..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END apphub_v1_generated_AppHub_ListLocations_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_service_project_attachments.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_service_project_attachments.php deleted file mode 100644 index c4d9586c16d0..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_service_project_attachments.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $appHubClient->listServiceProjectAttachments($request); - - /** @var ServiceProjectAttachment $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - list_service_project_attachments_sample($formattedParent); -} -// [END apphub_v1_generated_AppHub_ListServiceProjectAttachments_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_services.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_services.php deleted file mode 100644 index 0bbf151b09c8..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_services.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $appHubClient->listServices($request); - - /** @var Service $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - - list_services_sample($formattedParent); -} -// [END apphub_v1_generated_AppHub_ListServices_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_workloads.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_workloads.php deleted file mode 100644 index e594129b9411..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/list_workloads.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $appHubClient->listWorkloads($request); - - /** @var Workload $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - - list_workloads_sample($formattedParent); -} -// [END apphub_v1_generated_AppHub_ListWorkloads_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_discovered_service.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_discovered_service.php deleted file mode 100644 index 51782b15c8ee..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_discovered_service.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent) - ->setUri($uri); - - // Call the API and handle any network failures. - try { - /** @var LookupDiscoveredServiceResponse $response */ - $response = $appHubClient->lookupDiscoveredService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - $uri = '[URI]'; - - lookup_discovered_service_sample($formattedParent, $uri); -} -// [END apphub_v1_generated_AppHub_LookupDiscoveredService_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_discovered_workload.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_discovered_workload.php deleted file mode 100644 index c33484e99e16..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_discovered_workload.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent) - ->setUri($uri); - - // Call the API and handle any network failures. - try { - /** @var LookupDiscoveredWorkloadResponse $response */ - $response = $appHubClient->lookupDiscoveredWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - $uri = '[URI]'; - - lookup_discovered_workload_sample($formattedParent, $uri); -} -// [END apphub_v1_generated_AppHub_LookupDiscoveredWorkload_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_service_project_attachment.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_service_project_attachment.php deleted file mode 100644 index 784b06267e6b..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/lookup_service_project_attachment.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var LookupServiceProjectAttachmentResponse $response */ - $response = $appHubClient->lookupServiceProjectAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - lookup_service_project_attachment_sample($formattedName); -} -// [END apphub_v1_generated_AppHub_LookupServiceProjectAttachment_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/set_iam_policy.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/set_iam_policy.php deleted file mode 100644 index 2b3a02804669..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $appHubClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END apphub_v1_generated_AppHub_SetIamPolicy_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/test_iam_permissions.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/test_iam_permissions.php deleted file mode 100644 index 0987f4f6f2c6..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $appHubClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END apphub_v1_generated_AppHub_TestIamPermissions_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_application.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_application.php deleted file mode 100644 index f8f410a0abe6..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_application.php +++ /dev/null @@ -1,91 +0,0 @@ -setType($applicationScopeType); - $application = (new Application()) - ->setScope($applicationScope); - $request = (new UpdateApplicationRequest()) - ->setUpdateMask($updateMask) - ->setApplication($application); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->updateApplication($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Application $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $applicationScopeType = Type::TYPE_UNSPECIFIED; - - update_application_sample($applicationScopeType); -} -// [END apphub_v1_generated_AppHub_UpdateApplication_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_service.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_service.php deleted file mode 100644 index 822629fcb851..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_service.php +++ /dev/null @@ -1,88 +0,0 @@ -setDiscoveredService($formattedServiceDiscoveredService); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->updateService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedServiceDiscoveredService = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - update_service_sample($formattedServiceDiscoveredService); -} -// [END apphub_v1_generated_AppHub_UpdateService_sync] diff --git a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_workload.php b/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_workload.php deleted file mode 100644 index c40c860ec066..000000000000 --- a/owl-bot-staging/AppHub/v1/samples/V1/AppHubClient/update_workload.php +++ /dev/null @@ -1,88 +0,0 @@ -setDiscoveredWorkload($formattedWorkloadDiscoveredWorkload); - $request = (new UpdateWorkloadRequest()) - ->setUpdateMask($updateMask) - ->setWorkload($workload); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $appHubClient->updateWorkload($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Workload $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkloadDiscoveredWorkload = AppHubClient::locationName('[PROJECT]', '[LOCATION]'); - - update_workload_sample($formattedWorkloadDiscoveredWorkload); -} -// [END apphub_v1_generated_AppHub_UpdateWorkload_sync] diff --git a/owl-bot-staging/AppHub/v1/src/V1/Client/AppHubClient.php b/owl-bot-staging/AppHub/v1/src/V1/Client/AppHubClient.php deleted file mode 100644 index 4a7578bb7b07..000000000000 --- a/owl-bot-staging/AppHub/v1/src/V1/Client/AppHubClient.php +++ /dev/null @@ -1,1334 +0,0 @@ - createApplicationAsync(CreateApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceProjectAttachmentAsync(CreateServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteApplicationAsync(DeleteApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceProjectAttachmentAsync(DeleteServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface detachServiceProjectAttachmentAsync(DetachServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getApplicationAsync(GetApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDiscoveredServiceAsync(GetDiscoveredServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDiscoveredWorkloadAsync(GetDiscoveredWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceProjectAttachmentAsync(GetServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface listApplicationsAsync(ListApplicationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDiscoveredServicesAsync(ListDiscoveredServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDiscoveredWorkloadsAsync(ListDiscoveredWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServiceProjectAttachmentsAsync(ListServiceProjectAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupDiscoveredServiceAsync(LookupDiscoveredServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupDiscoveredWorkloadAsync(LookupDiscoveredWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupServiceProjectAttachmentAsync(LookupServiceProjectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateApplicationAsync(UpdateApplicationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class AppHubClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.apphub.v1.AppHub'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'apphub.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'apphub.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/app_hub_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/app_hub_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/app_hub_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/app_hub_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a application - * resource. - * - * @param string $project - * @param string $location - * @param string $application - * - * @return string The formatted application resource. - */ - public static function applicationName(string $project, string $location, string $application): string - { - return self::getPathTemplate('application')->render([ - 'project' => $project, - 'location' => $location, - 'application' => $application, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * discovered_service resource. - * - * @param string $project - * @param string $location - * @param string $discoveredService - * - * @return string The formatted discovered_service resource. - */ - public static function discoveredServiceName(string $project, string $location, string $discoveredService): string - { - return self::getPathTemplate('discoveredService')->render([ - 'project' => $project, - 'location' => $location, - 'discovered_service' => $discoveredService, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * discovered_workload resource. - * - * @param string $project - * @param string $location - * @param string $discoveredWorkload - * - * @return string The formatted discovered_workload resource. - */ - public static function discoveredWorkloadName(string $project, string $location, string $discoveredWorkload): string - { - return self::getPathTemplate('discoveredWorkload')->render([ - 'project' => $project, - 'location' => $location, - 'discovered_workload' => $discoveredWorkload, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a service - * resource. - * - * @param string $project - * @param string $location - * @param string $application - * @param string $service - * - * @return string The formatted service resource. - */ - public static function serviceName(string $project, string $location, string $application, string $service): string - { - return self::getPathTemplate('service')->render([ - 'project' => $project, - 'location' => $location, - 'application' => $application, - 'service' => $service, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * service_project_attachment resource. - * - * @param string $project - * @param string $location - * @param string $serviceProjectAttachment - * - * @return string The formatted service_project_attachment resource. - */ - public static function serviceProjectAttachmentName(string $project, string $location, string $serviceProjectAttachment): string - { - return self::getPathTemplate('serviceProjectAttachment')->render([ - 'project' => $project, - 'location' => $location, - 'service_project_attachment' => $serviceProjectAttachment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workload - * resource. - * - * @param string $project - * @param string $location - * @param string $application - * @param string $workload - * - * @return string The formatted workload resource. - */ - public static function workloadName(string $project, string $location, string $application, string $workload): string - { - return self::getPathTemplate('workload')->render([ - 'project' => $project, - 'location' => $location, - 'application' => $application, - 'workload' => $workload, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - application: projects/{project}/locations/{location}/applications/{application} - * - discoveredService: projects/{project}/locations/{location}/discoveredServices/{discovered_service} - * - discoveredWorkload: projects/{project}/locations/{location}/discoveredWorkloads/{discovered_workload} - * - location: projects/{project}/locations/{location} - * - project: projects/{project} - * - service: projects/{project}/locations/{location}/applications/{application}/services/{service} - * - serviceProjectAttachment: projects/{project}/locations/{location}/serviceProjectAttachments/{service_project_attachment} - * - workload: projects/{project}/locations/{location}/applications/{application}/workloads/{workload} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'apphub.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates an Application in a host project and location. - * - * The async variant is {@see AppHubClient::createApplicationAsync()} . - * - * @example samples/V1/AppHubClient/create_application.php - * - * @param CreateApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createApplication(CreateApplicationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateApplication', $request, $callOptions)->wait(); - } - - /** - * Creates a Service in an Application. - * - * The async variant is {@see AppHubClient::createServiceAsync()} . - * - * @example samples/V1/AppHubClient/create_service.php - * - * @param CreateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createService(CreateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateService', $request, $callOptions)->wait(); - } - - /** - * Attaches a service project to the host project. - * - * The async variant is {@see AppHubClient::createServiceProjectAttachmentAsync()} - * . - * - * @example samples/V1/AppHubClient/create_service_project_attachment.php - * - * @param CreateServiceProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createServiceProjectAttachment(CreateServiceProjectAttachmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateServiceProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Creates a Workload in an Application. - * - * The async variant is {@see AppHubClient::createWorkloadAsync()} . - * - * @example samples/V1/AppHubClient/create_workload.php - * - * @param CreateWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createWorkload(CreateWorkloadRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateWorkload', $request, $callOptions)->wait(); - } - - /** - * Deletes an Application in a host project and location. - * - * The async variant is {@see AppHubClient::deleteApplicationAsync()} . - * - * @example samples/V1/AppHubClient/delete_application.php - * - * @param DeleteApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteApplication(DeleteApplicationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteApplication', $request, $callOptions)->wait(); - } - - /** - * Deletes a Service from an Application. - * - * The async variant is {@see AppHubClient::deleteServiceAsync()} . - * - * @example samples/V1/AppHubClient/delete_service.php - * - * @param DeleteServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteService(DeleteServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteService', $request, $callOptions)->wait(); - } - - /** - * Deletes a service project attachment. - * - * The async variant is {@see AppHubClient::deleteServiceProjectAttachmentAsync()} - * . - * - * @example samples/V1/AppHubClient/delete_service_project_attachment.php - * - * @param DeleteServiceProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteServiceProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Deletes a Workload from an Application. - * - * The async variant is {@see AppHubClient::deleteWorkloadAsync()} . - * - * @example samples/V1/AppHubClient/delete_workload.php - * - * @param DeleteWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteWorkload(DeleteWorkloadRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteWorkload', $request, $callOptions)->wait(); - } - - /** - * Detaches a service project from a host project. - * You can call this API from any service project without needing access to - * the host project that it is attached to. - * - * The async variant is {@see AppHubClient::detachServiceProjectAttachmentAsync()} - * . - * - * @example samples/V1/AppHubClient/detach_service_project_attachment.php - * - * @param DetachServiceProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DetachServiceProjectAttachmentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function detachServiceProjectAttachment(DetachServiceProjectAttachmentRequest $request, array $callOptions = []): DetachServiceProjectAttachmentResponse - { - return $this->startApiCall('DetachServiceProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Gets an Application in a host project and location. - * - * The async variant is {@see AppHubClient::getApplicationAsync()} . - * - * @example samples/V1/AppHubClient/get_application.php - * - * @param GetApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Application - * - * @throws ApiException Thrown if the API call fails. - */ - public function getApplication(GetApplicationRequest $request, array $callOptions = []): Application - { - return $this->startApiCall('GetApplication', $request, $callOptions)->wait(); - } - - /** - * Gets a Discovered Service in a host project and location. - * - * The async variant is {@see AppHubClient::getDiscoveredServiceAsync()} . - * - * @example samples/V1/AppHubClient/get_discovered_service.php - * - * @param GetDiscoveredServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveredService - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDiscoveredService(GetDiscoveredServiceRequest $request, array $callOptions = []): DiscoveredService - { - return $this->startApiCall('GetDiscoveredService', $request, $callOptions)->wait(); - } - - /** - * Gets a Discovered Workload in a host project and location. - * - * The async variant is {@see AppHubClient::getDiscoveredWorkloadAsync()} . - * - * @example samples/V1/AppHubClient/get_discovered_workload.php - * - * @param GetDiscoveredWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveredWorkload - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDiscoveredWorkload(GetDiscoveredWorkloadRequest $request, array $callOptions = []): DiscoveredWorkload - { - return $this->startApiCall('GetDiscoveredWorkload', $request, $callOptions)->wait(); - } - - /** - * Gets a Service in an Application. - * - * The async variant is {@see AppHubClient::getServiceAsync()} . - * - * @example samples/V1/AppHubClient/get_service.php - * - * @param GetServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Service - * - * @throws ApiException Thrown if the API call fails. - */ - public function getService(GetServiceRequest $request, array $callOptions = []): Service - { - return $this->startApiCall('GetService', $request, $callOptions)->wait(); - } - - /** - * Gets a service project attachment. - * - * The async variant is {@see AppHubClient::getServiceProjectAttachmentAsync()} . - * - * @example samples/V1/AppHubClient/get_service_project_attachment.php - * - * @param GetServiceProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ServiceProjectAttachment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getServiceProjectAttachment(GetServiceProjectAttachmentRequest $request, array $callOptions = []): ServiceProjectAttachment - { - return $this->startApiCall('GetServiceProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Gets a Workload in an Application. - * - * The async variant is {@see AppHubClient::getWorkloadAsync()} . - * - * @example samples/V1/AppHubClient/get_workload.php - * - * @param GetWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workload - * - * @throws ApiException Thrown if the API call fails. - */ - public function getWorkload(GetWorkloadRequest $request, array $callOptions = []): Workload - { - return $this->startApiCall('GetWorkload', $request, $callOptions)->wait(); - } - - /** - * Lists Applications in a host project and location. - * - * The async variant is {@see AppHubClient::listApplicationsAsync()} . - * - * @example samples/V1/AppHubClient/list_applications.php - * - * @param ListApplicationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listApplications(ListApplicationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListApplications', $request, $callOptions); - } - - /** - * Lists Discovered Services that can be added to an Application in a host - * project and location. - * - * The async variant is {@see AppHubClient::listDiscoveredServicesAsync()} . - * - * @example samples/V1/AppHubClient/list_discovered_services.php - * - * @param ListDiscoveredServicesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDiscoveredServices(ListDiscoveredServicesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDiscoveredServices', $request, $callOptions); - } - - /** - * Lists Discovered Workloads that can be added to an Application in a host - * project and location. - * - * The async variant is {@see AppHubClient::listDiscoveredWorkloadsAsync()} . - * - * @example samples/V1/AppHubClient/list_discovered_workloads.php - * - * @param ListDiscoveredWorkloadsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDiscoveredWorkloads(ListDiscoveredWorkloadsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDiscoveredWorkloads', $request, $callOptions); - } - - /** - * Lists service projects attached to the host project. - * - * The async variant is {@see AppHubClient::listServiceProjectAttachmentsAsync()} . - * - * @example samples/V1/AppHubClient/list_service_project_attachments.php - * - * @param ListServiceProjectAttachmentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listServiceProjectAttachments(ListServiceProjectAttachmentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListServiceProjectAttachments', $request, $callOptions); - } - - /** - * Lists Services in an Application. - * - * The async variant is {@see AppHubClient::listServicesAsync()} . - * - * @example samples/V1/AppHubClient/list_services.php - * - * @param ListServicesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listServices(ListServicesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListServices', $request, $callOptions); - } - - /** - * Lists Workloads in an Application. - * - * The async variant is {@see AppHubClient::listWorkloadsAsync()} . - * - * @example samples/V1/AppHubClient/list_workloads.php - * - * @param ListWorkloadsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listWorkloads(ListWorkloadsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkloads', $request, $callOptions); - } - - /** - * Lists a Discovered Service in a host project and location, with a - * given resource URI. - * - * The async variant is {@see AppHubClient::lookupDiscoveredServiceAsync()} . - * - * @example samples/V1/AppHubClient/lookup_discovered_service.php - * - * @param LookupDiscoveredServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LookupDiscoveredServiceResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupDiscoveredService(LookupDiscoveredServiceRequest $request, array $callOptions = []): LookupDiscoveredServiceResponse - { - return $this->startApiCall('LookupDiscoveredService', $request, $callOptions)->wait(); - } - - /** - * Lists a Discovered Workload in a host project and location, with a - * given resource URI. - * - * The async variant is {@see AppHubClient::lookupDiscoveredWorkloadAsync()} . - * - * @example samples/V1/AppHubClient/lookup_discovered_workload.php - * - * @param LookupDiscoveredWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LookupDiscoveredWorkloadResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest $request, array $callOptions = []): LookupDiscoveredWorkloadResponse - { - return $this->startApiCall('LookupDiscoveredWorkload', $request, $callOptions)->wait(); - } - - /** - * Lists a service project attachment for a given service project. You can - * call this API from any project to find if it is attached to a host project. - * - * The async variant is {@see AppHubClient::lookupServiceProjectAttachmentAsync()} - * . - * - * @example samples/V1/AppHubClient/lookup_service_project_attachment.php - * - * @param LookupServiceProjectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LookupServiceProjectAttachmentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest $request, array $callOptions = []): LookupServiceProjectAttachmentResponse - { - return $this->startApiCall('LookupServiceProjectAttachment', $request, $callOptions)->wait(); - } - - /** - * Updates an Application in a host project and location. - * - * The async variant is {@see AppHubClient::updateApplicationAsync()} . - * - * @example samples/V1/AppHubClient/update_application.php - * - * @param UpdateApplicationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateApplication(UpdateApplicationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateApplication', $request, $callOptions)->wait(); - } - - /** - * Updates a Service in an Application. - * - * The async variant is {@see AppHubClient::updateServiceAsync()} . - * - * @example samples/V1/AppHubClient/update_service.php - * - * @param UpdateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateService(UpdateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateService', $request, $callOptions)->wait(); - } - - /** - * Updates a Workload in an Application. - * - * The async variant is {@see AppHubClient::updateWorkloadAsync()} . - * - * @example samples/V1/AppHubClient/update_workload.php - * - * @param UpdateWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateWorkload(UpdateWorkloadRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateWorkload', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see AppHubClient::getLocationAsync()} . - * - * @example samples/V1/AppHubClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see AppHubClient::listLocationsAsync()} . - * - * @example samples/V1/AppHubClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see AppHubClient::getIamPolicyAsync()} . - * - * @example samples/V1/AppHubClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see AppHubClient::setIamPolicyAsync()} . - * - * @example samples/V1/AppHubClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see AppHubClient::testIamPermissionsAsync()} . - * - * @example samples/V1/AppHubClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppHub/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AppHub/v1/src/V1/gapic_metadata.json deleted file mode 100644 index dde9c50e1101..000000000000 --- a/owl-bot-staging/AppHub/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.apphub.v1", - "libraryPackage": "Google\\Cloud\\AppHub\\V1", - "services": { - "AppHub": { - "clients": { - "grpc": { - "libraryClient": "AppHubGapicClient", - "rpcs": { - "CreateApplication": { - "methods": [ - "createApplication" - ] - }, - "CreateService": { - "methods": [ - "createService" - ] - }, - "CreateServiceProjectAttachment": { - "methods": [ - "createServiceProjectAttachment" - ] - }, - "CreateWorkload": { - "methods": [ - "createWorkload" - ] - }, - "DeleteApplication": { - "methods": [ - "deleteApplication" - ] - }, - "DeleteService": { - "methods": [ - "deleteService" - ] - }, - "DeleteServiceProjectAttachment": { - "methods": [ - "deleteServiceProjectAttachment" - ] - }, - "DeleteWorkload": { - "methods": [ - "deleteWorkload" - ] - }, - "DetachServiceProjectAttachment": { - "methods": [ - "detachServiceProjectAttachment" - ] - }, - "GetApplication": { - "methods": [ - "getApplication" - ] - }, - "GetDiscoveredService": { - "methods": [ - "getDiscoveredService" - ] - }, - "GetDiscoveredWorkload": { - "methods": [ - "getDiscoveredWorkload" - ] - }, - "GetService": { - "methods": [ - "getService" - ] - }, - "GetServiceProjectAttachment": { - "methods": [ - "getServiceProjectAttachment" - ] - }, - "GetWorkload": { - "methods": [ - "getWorkload" - ] - }, - "ListApplications": { - "methods": [ - "listApplications" - ] - }, - "ListDiscoveredServices": { - "methods": [ - "listDiscoveredServices" - ] - }, - "ListDiscoveredWorkloads": { - "methods": [ - "listDiscoveredWorkloads" - ] - }, - "ListServiceProjectAttachments": { - "methods": [ - "listServiceProjectAttachments" - ] - }, - "ListServices": { - "methods": [ - "listServices" - ] - }, - "ListWorkloads": { - "methods": [ - "listWorkloads" - ] - }, - "LookupDiscoveredService": { - "methods": [ - "lookupDiscoveredService" - ] - }, - "LookupDiscoveredWorkload": { - "methods": [ - "lookupDiscoveredWorkload" - ] - }, - "LookupServiceProjectAttachment": { - "methods": [ - "lookupServiceProjectAttachment" - ] - }, - "UpdateApplication": { - "methods": [ - "updateApplication" - ] - }, - "UpdateService": { - "methods": [ - "updateService" - ] - }, - "UpdateWorkload": { - "methods": [ - "updateWorkload" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_client_config.json b/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_client_config.json deleted file mode 100644 index dce9eb86471f..000000000000 --- a/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_client_config.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "interfaces": { - "google.cloud.apphub.v1.AppHub": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateApplication": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateServiceProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteApplication": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteServiceProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DetachServiceProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetApplication": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDiscoveredService": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDiscoveredWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetService": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetServiceProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListApplications": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDiscoveredServices": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDiscoveredWorkloads": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListServiceProjectAttachments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListServices": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListWorkloads": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "LookupDiscoveredService": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "LookupDiscoveredWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "LookupServiceProjectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateApplication": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_descriptor_config.php b/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_descriptor_config.php deleted file mode 100644 index d0234e911973..000000000000 --- a/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_descriptor_config.php +++ /dev/null @@ -1,563 +0,0 @@ - [ - 'google.cloud.apphub.v1.AppHub' => [ - 'CreateApplication' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppHub\V1\Application', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppHub\V1\Service', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateServiceProjectAttachment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppHub\V1\ServiceProjectAttachment', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkload' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppHub\V1\Workload', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteApplication' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteServiceProjectAttachment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkload' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateApplication' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppHub\V1\Application', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'application.name', - 'fieldAccessors' => [ - 'getApplication', - 'getName', - ], - ], - ], - ], - 'UpdateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppHub\V1\Service', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service.name', - 'fieldAccessors' => [ - 'getService', - 'getName', - ], - ], - ], - ], - 'UpdateWorkload' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AppHub\V1\Workload', - 'metadataReturnType' => '\Google\Cloud\AppHub\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'workload.name', - 'fieldAccessors' => [ - 'getWorkload', - 'getName', - ], - ], - ], - ], - 'DetachServiceProjectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\DetachServiceProjectAttachmentResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetApplication' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\Application', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveredService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\DiscoveredService', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveredWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\DiscoveredWorkload', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\Service', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetServiceProjectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\ServiceProjectAttachment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\Workload', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListApplications' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getApplications', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\ListApplicationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveredServices' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDiscoveredServices', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\ListDiscoveredServicesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveredWorkloads' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDiscoveredWorkloads', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\ListDiscoveredWorkloadsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListServiceProjectAttachments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getServiceProjectAttachments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\ListServiceProjectAttachmentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getServices', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\ListServicesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkloads' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkloads', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\ListWorkloadsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'LookupDiscoveredService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\LookupDiscoveredServiceResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'LookupDiscoveredWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\LookupDiscoveredWorkloadResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'LookupServiceProjectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AppHub\V1\LookupServiceProjectAttachmentResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'application' => 'projects/{project}/locations/{location}/applications/{application}', - 'discoveredService' => 'projects/{project}/locations/{location}/discoveredServices/{discovered_service}', - 'discoveredWorkload' => 'projects/{project}/locations/{location}/discoveredWorkloads/{discovered_workload}', - 'location' => 'projects/{project}/locations/{location}', - 'project' => 'projects/{project}', - 'service' => 'projects/{project}/locations/{location}/applications/{application}/services/{service}', - 'serviceProjectAttachment' => 'projects/{project}/locations/{location}/serviceProjectAttachments/{service_project_attachment}', - 'workload' => 'projects/{project}/locations/{location}/applications/{application}/workloads/{workload}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_rest_client_config.php b/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_rest_client_config.php deleted file mode 100644 index b00dce3f170c..000000000000 --- a/owl-bot-staging/AppHub/v1/src/V1/resources/app_hub_rest_client_config.php +++ /dev/null @@ -1,466 +0,0 @@ - [ - 'google.cloud.apphub.v1.AppHub' => [ - 'CreateApplication' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/applications', - 'body' => 'application', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'application_id', - ], - ], - 'CreateService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/applications/*}/services', - 'body' => 'service', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'service_id', - ], - ], - 'CreateServiceProjectAttachment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/serviceProjectAttachments', - 'body' => 'service_project_attachment', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'service_project_attachment_id', - ], - ], - 'CreateWorkload' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/applications/*}/workloads', - 'body' => 'workload', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'workload_id', - ], - ], - 'DeleteApplication' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/applications/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/applications/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteServiceProjectAttachment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/serviceProjectAttachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkload' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/applications/*/workloads/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DetachServiceProjectAttachment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:detachServiceProjectAttachment', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetApplication' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/applications/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveredService' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/discoveredServices/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveredWorkload' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/discoveredWorkloads/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/applications/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetServiceProjectAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/serviceProjectAttachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkload' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/applications/*/workloads/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListApplications' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/applications', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveredServices' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/discoveredServices', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveredWorkloads' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/discoveredWorkloads', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListServiceProjectAttachments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/serviceProjectAttachments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/applications/*}/services', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkloads' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/applications/*}/workloads', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'LookupDiscoveredService' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/discoveredServices:lookup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'LookupDiscoveredWorkload' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/discoveredWorkloads:lookup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'LookupServiceProjectAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupServiceProjectAttachment', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateApplication' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{application.name=projects/*/locations/*/applications/*}', - 'body' => 'application', - 'placeholders' => [ - 'application.name' => [ - 'getters' => [ - 'getApplication', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateService' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{service.name=projects/*/locations/*/applications/*/services/*}', - 'body' => 'service', - 'placeholders' => [ - 'service.name' => [ - 'getters' => [ - 'getService', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateWorkload' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{workload.name=projects/*/locations/*/applications/*/workloads/*}', - 'body' => 'workload', - 'placeholders' => [ - 'workload.name' => [ - 'getters' => [ - 'getWorkload', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/applications/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/applications/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/applications/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppHub/v1/tests/Unit/V1/Client/AppHubClientTest.php b/owl-bot-staging/AppHub/v1/tests/Unit/V1/Client/AppHubClientTest.php deleted file mode 100644 index dc28dfe7ab7f..000000000000 --- a/owl-bot-staging/AppHub/v1/tests/Unit/V1/Client/AppHubClientTest.php +++ /dev/null @@ -1,3131 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AppHubClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AppHubClient($options); - } - - /** @test */ - public function createApplicationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $uid = 'uid115792'; - $expectedResponse = new Application(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $applicationId = 'applicationId-1287148950'; - $application = new Application(); - $applicationScope = new Scope(); - $scopeType = Type::TYPE_UNSPECIFIED; - $applicationScope->setType($scopeType); - $application->setScope($applicationScope); - $request = (new CreateApplicationRequest()) - ->setParent($formattedParent) - ->setApplicationId($applicationId) - ->setApplication($application); - $response = $gapicClient->createApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/CreateApplication', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getApplicationId(); - $this->assertProtobufEquals($applicationId, $actualValue); - $actualValue = $actualApiRequestObject->getApplication(); - $this->assertProtobufEquals($application, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createApplicationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $applicationId = 'applicationId-1287148950'; - $application = new Application(); - $applicationScope = new Scope(); - $scopeType = Type::TYPE_UNSPECIFIED; - $applicationScope->setType($scopeType); - $application->setScope($applicationScope); - $request = (new CreateApplicationRequest()) - ->setParent($formattedParent) - ->setApplicationId($applicationId) - ->setApplication($application); - $response = $gapicClient->createApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApplicationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $discoveredService = 'discoveredService2014237630'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDiscoveredService($discoveredService); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $serviceDiscoveredService = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $service->setDiscoveredService($serviceDiscoveredService); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/CreateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getServiceId(); - $this->assertProtobufEquals($serviceId, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $serviceDiscoveredService = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $service->setDiscoveredService($serviceDiscoveredService); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceProjectAttachmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceProjectAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $serviceProject = 'serviceProject-1080020081'; - $uid = 'uid115792'; - $expectedResponse = new ServiceProjectAttachment(); - $expectedResponse->setName($name); - $expectedResponse->setServiceProject($serviceProject); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createServiceProjectAttachmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceProjectAttachmentId = 'serviceProjectAttachmentId1188593927'; - $serviceProjectAttachment = new ServiceProjectAttachment(); - $serviceProjectAttachmentServiceProject = $gapicClient->projectName('[PROJECT]'); - $serviceProjectAttachment->setServiceProject($serviceProjectAttachmentServiceProject); - $request = (new CreateServiceProjectAttachmentRequest()) - ->setParent($formattedParent) - ->setServiceProjectAttachmentId($serviceProjectAttachmentId) - ->setServiceProjectAttachment($serviceProjectAttachment); - $response = $gapicClient->createServiceProjectAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/CreateServiceProjectAttachment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getServiceProjectAttachmentId(); - $this->assertProtobufEquals($serviceProjectAttachmentId, $actualValue); - $actualValue = $actualApiRequestObject->getServiceProjectAttachment(); - $this->assertProtobufEquals($serviceProjectAttachment, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceProjectAttachmentTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceProjectAttachmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceProjectAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceProjectAttachmentId = 'serviceProjectAttachmentId1188593927'; - $serviceProjectAttachment = new ServiceProjectAttachment(); - $serviceProjectAttachmentServiceProject = $gapicClient->projectName('[PROJECT]'); - $serviceProjectAttachment->setServiceProject($serviceProjectAttachmentServiceProject); - $request = (new CreateServiceProjectAttachmentRequest()) - ->setParent($formattedParent) - ->setServiceProjectAttachmentId($serviceProjectAttachmentId) - ->setServiceProjectAttachment($serviceProjectAttachment); - $response = $gapicClient->createServiceProjectAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceProjectAttachmentTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createWorkloadTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $discoveredWorkload = 'discoveredWorkload968175502'; - $uid = 'uid115792'; - $expectedResponse = new Workload(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDiscoveredWorkload($discoveredWorkload); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createWorkloadTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $workloadId = 'workloadId-1479602461'; - $workload = new Workload(); - $workloadDiscoveredWorkload = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $workload->setDiscoveredWorkload($workloadDiscoveredWorkload); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkloadId($workloadId) - ->setWorkload($workload); - $response = $gapicClient->createWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/CreateWorkload', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getWorkloadId(); - $this->assertProtobufEquals($workloadId, $actualValue); - $actualValue = $actualApiRequestObject->getWorkload(); - $this->assertProtobufEquals($workload, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createWorkloadTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createWorkloadExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $workloadId = 'workloadId-1479602461'; - $workload = new Workload(); - $workloadDiscoveredWorkload = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $workload->setDiscoveredWorkload($workloadDiscoveredWorkload); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkloadId($workloadId) - ->setWorkload($workload); - $response = $gapicClient->createWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createWorkloadTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteApplicationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new DeleteApplicationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/DeleteApplication', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteApplicationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new DeleteApplicationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteApplicationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/DeleteService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceProjectAttachmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceProjectAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServiceProjectAttachmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->serviceProjectAttachmentName('[PROJECT]', '[LOCATION]', '[SERVICE_PROJECT_ATTACHMENT]'); - $request = (new DeleteServiceProjectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteServiceProjectAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/DeleteServiceProjectAttachment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceProjectAttachmentTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceProjectAttachmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceProjectAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceProjectAttachmentName('[PROJECT]', '[LOCATION]', '[SERVICE_PROJECT_ATTACHMENT]'); - $request = (new DeleteServiceProjectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteServiceProjectAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceProjectAttachmentTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteWorkloadTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteWorkloadTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->workloadName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[WORKLOAD]'); - $request = (new DeleteWorkloadRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/DeleteWorkload', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteWorkloadTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteWorkloadExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workloadName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[WORKLOAD]'); - $request = (new DeleteWorkloadRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteWorkloadTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function detachServiceProjectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DetachServiceProjectAttachmentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new DetachServiceProjectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->detachServiceProjectAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/DetachServiceProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function detachServiceProjectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new DetachServiceProjectAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->detachServiceProjectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApplicationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $uid = 'uid115792'; - $expectedResponse = new Application(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new GetApplicationRequest()) - ->setName($formattedName); - $response = $gapicClient->getApplication($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/GetApplication', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getApplicationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new GetApplicationRequest()) - ->setName($formattedName); - try { - $gapicClient->getApplication($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveredServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new DiscoveredService(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveredServiceName('[PROJECT]', '[LOCATION]', '[DISCOVERED_SERVICE]'); - $request = (new GetDiscoveredServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->getDiscoveredService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/GetDiscoveredService', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveredServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveredServiceName('[PROJECT]', '[LOCATION]', '[DISCOVERED_SERVICE]'); - $request = (new GetDiscoveredServiceRequest()) - ->setName($formattedName); - try { - $gapicClient->getDiscoveredService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveredWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new DiscoveredWorkload(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveredWorkloadName('[PROJECT]', '[LOCATION]', '[DISCOVERED_WORKLOAD]'); - $request = (new GetDiscoveredWorkloadRequest()) - ->setName($formattedName); - $response = $gapicClient->getDiscoveredWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/GetDiscoveredWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveredWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveredWorkloadName('[PROJECT]', '[LOCATION]', '[DISCOVERED_WORKLOAD]'); - $request = (new GetDiscoveredWorkloadRequest()) - ->setName($formattedName); - try { - $gapicClient->getDiscoveredWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $discoveredService = 'discoveredService2014237630'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDiscoveredService($discoveredService); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->getService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/GetService', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - try { - $gapicClient->getService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceProjectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $serviceProject = 'serviceProject-1080020081'; - $uid = 'uid115792'; - $expectedResponse = new ServiceProjectAttachment(); - $expectedResponse->setName($name2); - $expectedResponse->setServiceProject($serviceProject); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->serviceProjectAttachmentName('[PROJECT]', '[LOCATION]', '[SERVICE_PROJECT_ATTACHMENT]'); - $request = (new GetServiceProjectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->getServiceProjectAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/GetServiceProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceProjectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceProjectAttachmentName('[PROJECT]', '[LOCATION]', '[SERVICE_PROJECT_ATTACHMENT]'); - $request = (new GetServiceProjectAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->getServiceProjectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $discoveredWorkload = 'discoveredWorkload968175502'; - $uid = 'uid115792'; - $expectedResponse = new Workload(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDiscoveredWorkload($discoveredWorkload); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workloadName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/GetWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workloadName('[PROJECT]', '[LOCATION]', '[APPLICATION]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApplicationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $applicationsElement = new Application(); - $applications = [ - $applicationsElement, - ]; - $expectedResponse = new ListApplicationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setApplications($applications); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApplicationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listApplications($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getApplications()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/ListApplications', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listApplicationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListApplicationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listApplications($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveredServicesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $discoveredServicesElement = new DiscoveredService(); - $discoveredServices = [ - $discoveredServicesElement, - ]; - $expectedResponse = new ListDiscoveredServicesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDiscoveredServices($discoveredServices); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDiscoveredServicesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDiscoveredServices($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDiscoveredServices()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/ListDiscoveredServices', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveredServicesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDiscoveredServicesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDiscoveredServices($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveredWorkloadsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $discoveredWorkloadsElement = new DiscoveredWorkload(); - $discoveredWorkloads = [ - $discoveredWorkloadsElement, - ]; - $expectedResponse = new ListDiscoveredWorkloadsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDiscoveredWorkloads($discoveredWorkloads); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDiscoveredWorkloadsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDiscoveredWorkloads($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDiscoveredWorkloads()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/ListDiscoveredWorkloads', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveredWorkloadsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDiscoveredWorkloadsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDiscoveredWorkloads($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServiceProjectAttachmentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $serviceProjectAttachmentsElement = new ServiceProjectAttachment(); - $serviceProjectAttachments = [ - $serviceProjectAttachmentsElement, - ]; - $expectedResponse = new ListServiceProjectAttachmentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setServiceProjectAttachments($serviceProjectAttachments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServiceProjectAttachmentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listServiceProjectAttachments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getServiceProjectAttachments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/ListServiceProjectAttachments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServiceProjectAttachmentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServiceProjectAttachmentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listServiceProjectAttachments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $servicesElement = new Service(); - $services = [ - $servicesElement, - ]; - $expectedResponse = new ListServicesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setServices($services); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listServices($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getServices()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/ListServices', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listServices($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workloadsElement = new Workload(); - $workloads = [ - $workloadsElement, - ]; - $expectedResponse = new ListWorkloadsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkloads($workloads); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkloads($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkloads()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/ListWorkloads', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->applicationName('[PROJECT]', '[LOCATION]', '[APPLICATION]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkloads($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupDiscoveredServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LookupDiscoveredServiceResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $uri = 'uri116076'; - $request = (new LookupDiscoveredServiceRequest()) - ->setParent($formattedParent) - ->setUri($uri); - $response = $gapicClient->lookupDiscoveredService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/LookupDiscoveredService', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUri(); - $this->assertProtobufEquals($uri, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupDiscoveredServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $uri = 'uri116076'; - $request = (new LookupDiscoveredServiceRequest()) - ->setParent($formattedParent) - ->setUri($uri); - try { - $gapicClient->lookupDiscoveredService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupDiscoveredWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LookupDiscoveredWorkloadResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $uri = 'uri116076'; - $request = (new LookupDiscoveredWorkloadRequest()) - ->setParent($formattedParent) - ->setUri($uri); - $response = $gapicClient->lookupDiscoveredWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/LookupDiscoveredWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUri(); - $this->assertProtobufEquals($uri, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupDiscoveredWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $uri = 'uri116076'; - $request = (new LookupDiscoveredWorkloadRequest()) - ->setParent($formattedParent) - ->setUri($uri); - try { - $gapicClient->lookupDiscoveredWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupServiceProjectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LookupServiceProjectAttachmentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new LookupServiceProjectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->lookupServiceProjectAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/LookupServiceProjectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupServiceProjectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new LookupServiceProjectAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->lookupServiceProjectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateApplicationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $uid = 'uid115792'; - $expectedResponse = new Application(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $application = new Application(); - $applicationScope = new Scope(); - $scopeType = Type::TYPE_UNSPECIFIED; - $applicationScope->setType($scopeType); - $application->setScope($applicationScope); - $request = (new UpdateApplicationRequest()) - ->setUpdateMask($updateMask) - ->setApplication($application); - $response = $gapicClient->updateApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/UpdateApplication', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getApplication(); - $this->assertProtobufEquals($application, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateApplicationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $application = new Application(); - $applicationScope = new Scope(); - $scopeType = Type::TYPE_UNSPECIFIED; - $applicationScope->setType($scopeType); - $application->setScope($applicationScope); - $request = (new UpdateApplicationRequest()) - ->setUpdateMask($updateMask) - ->setApplication($application); - $response = $gapicClient->updateApplication($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateApplicationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $discoveredService = 'discoveredService2014237630'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDiscoveredService($discoveredService); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $serviceDiscoveredService = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $service->setDiscoveredService($serviceDiscoveredService); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/UpdateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $serviceDiscoveredService = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $service->setDiscoveredService($serviceDiscoveredService); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateWorkloadTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $discoveredWorkload = 'discoveredWorkload968175502'; - $uid = 'uid115792'; - $expectedResponse = new Workload(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setDiscoveredWorkload($discoveredWorkload); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateWorkloadTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $workload = new Workload(); - $workloadDiscoveredWorkload = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $workload->setDiscoveredWorkload($workloadDiscoveredWorkload); - $request = (new UpdateWorkloadRequest()) - ->setUpdateMask($updateMask) - ->setWorkload($workload); - $response = $gapicClient->updateWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/UpdateWorkload', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getWorkload(); - $this->assertProtobufEquals($workload, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateWorkloadTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateWorkloadExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $workload = new Workload(); - $workloadDiscoveredWorkload = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $workload->setDiscoveredWorkload($workloadDiscoveredWorkload); - $request = (new UpdateWorkloadRequest()) - ->setUpdateMask($updateMask) - ->setWorkload($workload); - $response = $gapicClient->updateWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateWorkloadTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createApplicationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createApplicationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $uid = 'uid115792'; - $expectedResponse = new Application(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createApplicationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $applicationId = 'applicationId-1287148950'; - $application = new Application(); - $applicationScope = new Scope(); - $scopeType = Type::TYPE_UNSPECIFIED; - $applicationScope->setType($scopeType); - $application->setScope($applicationScope); - $request = (new CreateApplicationRequest()) - ->setParent($formattedParent) - ->setApplicationId($applicationId) - ->setApplication($application); - $response = $gapicClient->createApplicationAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.apphub.v1.AppHub/CreateApplication', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getApplicationId(); - $this->assertProtobufEquals($applicationId, $actualValue); - $actualValue = $actualApiRequestObject->getApplication(); - $this->assertProtobufEquals($application, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createApplicationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php deleted file mode 100644 index 2b741a7e4347..000000000000 Binary files a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/GPBMetadata/Google/Apps/Card/V1/Card.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php deleted file mode 100644 index b580ebad2ebc..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action.php +++ /dev/null @@ -1,331 +0,0 @@ -google.apps.card.v1.Action - */ -class Action extends \Google\Protobuf\Internal\Message -{ - /** - * A custom function to invoke when the containing element is - * clicked or othrwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string function = 1; - */ - protected $function = ''; - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; - */ - private $parameters; - /** - * Specifies the loading indicator that the action displays while - * making the call to the action. - * - * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; - */ - protected $load_indicator = 0; - /** - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * - * Generated from protobuf field bool persist_values = 4; - */ - protected $persist_values = false; - /** - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; - */ - protected $interaction = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $function - * A custom function to invoke when the containing element is - * clicked or othrwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type array<\Google\Apps\Card\V1\Action\ActionParameter>|\Google\Protobuf\Internal\RepeatedField $parameters - * List of action parameters. - * @type int $load_indicator - * Specifies the loading indicator that the action displays while - * making the call to the action. - * @type bool $persist_values - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * @type int $interaction - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A custom function to invoke when the containing element is - * clicked or othrwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string function = 1; - * @return string - */ - public function getFunction() - { - return $this->function; - } - - /** - * A custom function to invoke when the containing element is - * clicked or othrwise activated. - * For example usage, see [Read form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string function = 1; - * @param string $var - * @return $this - */ - public function setFunction($var) - { - GPBUtil::checkString($var, True); - $this->function = $var; - - return $this; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.apps.card.v1.Action.ActionParameter parameters = 2; - * @param array<\Google\Apps\Card\V1\Action\ActionParameter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Action\ActionParameter::class); - $this->parameters = $arr; - - return $this; - } - - /** - * Specifies the loading indicator that the action displays while - * making the call to the action. - * - * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; - * @return int - */ - public function getLoadIndicator() - { - return $this->load_indicator; - } - - /** - * Specifies the loading indicator that the action displays while - * making the call to the action. - * - * Generated from protobuf field .google.apps.card.v1.Action.LoadIndicator load_indicator = 3; - * @param int $var - * @return $this - */ - public function setLoadIndicator($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Action\LoadIndicator::class); - $this->load_indicator = $var; - - return $this; - } - - /** - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * - * Generated from protobuf field bool persist_values = 4; - * @return bool - */ - public function getPersistValues() - { - return $this->persist_values; - } - - /** - * Indicates whether form values persist after the action. The default value - * is `false`. - * If `true`, form values remain after the action is triggered. To let the - * user make changes while the action is being processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `NONE`. For [card - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) - * in Chat apps, you must also set the action's - * [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) - * to `UPDATE_MESSAGE` and use the same - * [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) - * from the card that contained the action. - * If `false`, the form values are cleared when the action is triggered. - * To prevent the user from making changes while the action is being - * processed, set - * [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) - * to `SPINNER`. - * - * Generated from protobuf field bool persist_values = 4; - * @param bool $var - * @return $this - */ - public function setPersistValues($var) - { - GPBUtil::checkBool($var); - $this->persist_values = $var; - - return $this; - } - - /** - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; - * @return int - */ - public function getInteraction() - { - return $this->interaction; - } - - /** - * Optional. Required when opening a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * What to do in response to an interaction with a user, such as a user - * clicking a button in a card message. - * If unspecified, the app responds by executing an `action`—like opening a - * link or running a function—as normal. - * By specifying an `interaction`, the app can respond in special interactive - * ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can - * open a [dialog](https://developers.google.com/workspace/chat/dialogs). When - * specified, a loading indicator isn't shown. If specified for - * an add-on, the entire card is stripped and nothing is shown in the client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.Action.Interaction interaction = 5; - * @param int $var - * @return $this - */ - public function setInteraction($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Action\Interaction::class); - $this->interaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php deleted file mode 100644 index 97c1de9eec28..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/ActionParameter.php +++ /dev/null @@ -1,111 +0,0 @@ -google.apps.card.v1.Action.ActionParameter - */ -class ActionParameter extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The name of the parameter for the action script. - * @type string $value - * The value of the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActionParameter::class, \Google\Apps\Card\V1\Action_ActionParameter::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php deleted file mode 100644 index 8a61e46ee077..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/Interaction.php +++ /dev/null @@ -1,74 +0,0 @@ -google.apps.card.v1.Action.Interaction - */ -class Interaction -{ - /** - * Default value. The `action` executes as normal. - * - * Generated from protobuf enum INTERACTION_UNSPECIFIED = 0; - */ - const INTERACTION_UNSPECIFIED = 0; - /** - * Opens a [dialog](https://developers.google.com/workspace/chat/dialogs), a - * windowed, card-based interface that Chat apps use to interact with users. - * Only supported by Chat apps in response to button-clicks on card - * messages. If specified for - * an add-on, the entire card is stripped and nothing is shown in the - * client. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf enum OPEN_DIALOG = 1; - */ - const OPEN_DIALOG = 1; - - private static $valueToName = [ - self::INTERACTION_UNSPECIFIED => 'INTERACTION_UNSPECIFIED', - self::OPEN_DIALOG => 'OPEN_DIALOG', - ]; - - 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(Interaction::class, \Google\Apps\Card\V1\Action_Interaction::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php deleted file mode 100644 index 89fe775ce3c4..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Action/LoadIndicator.php +++ /dev/null @@ -1,60 +0,0 @@ -google.apps.card.v1.Action.LoadIndicator - */ -class LoadIndicator -{ - /** - * Displays a spinner to indicate that content is loading. - * - * Generated from protobuf enum SPINNER = 0; - */ - const SPINNER = 0; - /** - * Nothing is displayed. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - - private static $valueToName = [ - self::SPINNER => 'SPINNER', - self::NONE => 'NONE', - ]; - - 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(LoadIndicator::class, \Google\Apps\Card\V1\Action_LoadIndicator::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php deleted file mode 100644 index 4cf88c737048..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle.php +++ /dev/null @@ -1,148 +0,0 @@ -google.apps.card.v1.BorderStyle - */ -class BorderStyle extends \Google\Protobuf\Internal\Message -{ - /** - * The border type. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; - */ - protected $type = 0; - /** - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * - * Generated from protobuf field .google.type.Color stroke_color = 2; - */ - protected $stroke_color = null; - /** - * The corner radius for the border. - * - * Generated from protobuf field int32 corner_radius = 3; - */ - protected $corner_radius = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The border type. - * @type \Google\Type\Color $stroke_color - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * @type int $corner_radius - * The corner radius for the border. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The border type. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The border type. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle.BorderType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\BorderStyle\BorderType::class); - $this->type = $var; - - return $this; - } - - /** - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * - * Generated from protobuf field .google.type.Color stroke_color = 2; - * @return \Google\Type\Color|null - */ - public function getStrokeColor() - { - return $this->stroke_color; - } - - public function hasStrokeColor() - { - return isset($this->stroke_color); - } - - public function clearStrokeColor() - { - unset($this->stroke_color); - } - - /** - * The colors to use when the type is `BORDER_TYPE_STROKE`. - * - * Generated from protobuf field .google.type.Color stroke_color = 2; - * @param \Google\Type\Color $var - * @return $this - */ - public function setStrokeColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->stroke_color = $var; - - return $this; - } - - /** - * The corner radius for the border. - * - * Generated from protobuf field int32 corner_radius = 3; - * @return int - */ - public function getCornerRadius() - { - return $this->corner_radius; - } - - /** - * The corner radius for the border. - * - * Generated from protobuf field int32 corner_radius = 3; - * @param int $var - * @return $this - */ - public function setCornerRadius($var) - { - GPBUtil::checkInt32($var); - $this->corner_radius = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php deleted file mode 100644 index 4278b12efd3b..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/BorderStyle/BorderType.php +++ /dev/null @@ -1,66 +0,0 @@ -google.apps.card.v1.BorderStyle.BorderType - */ -class BorderType -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum BORDER_TYPE_UNSPECIFIED = 0; - */ - const BORDER_TYPE_UNSPECIFIED = 0; - /** - * Default value. No border. - * - * Generated from protobuf enum NO_BORDER = 1; - */ - const NO_BORDER = 1; - /** - * Outline. - * - * Generated from protobuf enum STROKE = 2; - */ - const STROKE = 2; - - private static $valueToName = [ - self::BORDER_TYPE_UNSPECIFIED => 'BORDER_TYPE_UNSPECIFIED', - self::NO_BORDER => 'NO_BORDER', - self::STROKE => 'STROKE', - ]; - - 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(BorderType::class, \Google\Apps\Card\V1\BorderStyle_BorderType::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php deleted file mode 100644 index 8e966b18cf47..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Button.php +++ /dev/null @@ -1,400 +0,0 @@ -google.apps.card.v1.Button - */ -class Button extends \Google\Protobuf\Internal\Message -{ - /** - * The text displayed inside the button. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; - */ - protected $icon = null; - /** - * If set, the button is filled with a solid background color and the font - * color changes to maintain contrast with the background color. For example, - * setting a blue background likely results in white text. - * If unset, the image background is white and the font color is blue. - * For red, green, and blue, the value of each field is a `float` number that - * you can express in either of two ways: as a number between 0 and 255 - * divided by 255 (153/255), or as a value between 0 and 1 (0.6). 0 represents - * the absence of a color and 1 or 255/255 represent the full presence of that - * color on the RGB scale. - * Optionally set `alpha`, which sets a level of transparency using this - * equation: - * ``` - * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) - * ``` - * For `alpha`, a value of `1` corresponds with a solid color, and a value of - * `0` corresponds with a completely transparent color. - * For example, the following color represents a half transparent red: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * "alpha": 0.5 - * } - * ``` - * - * Generated from protobuf field .google.type.Color color = 3; - */ - protected $color = null; - /** - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; - */ - protected $on_click = null; - /** - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * - * Generated from protobuf field bool disabled = 5; - */ - protected $disabled = false; - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 6; - */ - protected $alt_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text displayed inside the button. - * @type \Google\Apps\Card\V1\Icon $icon - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * @type \Google\Type\Color $color - * If set, the button is filled with a solid background color and the font - * color changes to maintain contrast with the background color. For example, - * setting a blue background likely results in white text. - * If unset, the image background is white and the font color is blue. - * For red, green, and blue, the value of each field is a `float` number that - * you can express in either of two ways: as a number between 0 and 255 - * divided by 255 (153/255), or as a value between 0 and 1 (0.6). 0 represents - * the absence of a color and 1 or 255/255 represent the full presence of that - * color on the RGB scale. - * Optionally set `alpha`, which sets a level of transparency using this - * equation: - * ``` - * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) - * ``` - * For `alpha`, a value of `1` corresponds with a solid color, and a value of - * `0` corresponds with a completely transparent color. - * For example, the following color represents a half transparent red: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * "alpha": 0.5 - * } - * ``` - * @type \Google\Apps\Card\V1\OnClick $on_click - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * @type bool $disabled - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * @type string $alt_text - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text displayed inside the button. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text displayed inside the button. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getIcon() - { - return $this->icon; - } - - public function hasIcon() - { - return isset($this->icon); - } - - public function clearIcon() - { - unset($this->icon); - } - - /** - * The icon image. If both `icon` and `text` are set, then the icon appears - * before the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 2; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->icon = $var; - - return $this; - } - - /** - * If set, the button is filled with a solid background color and the font - * color changes to maintain contrast with the background color. For example, - * setting a blue background likely results in white text. - * If unset, the image background is white and the font color is blue. - * For red, green, and blue, the value of each field is a `float` number that - * you can express in either of two ways: as a number between 0 and 255 - * divided by 255 (153/255), or as a value between 0 and 1 (0.6). 0 represents - * the absence of a color and 1 or 255/255 represent the full presence of that - * color on the RGB scale. - * Optionally set `alpha`, which sets a level of transparency using this - * equation: - * ``` - * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) - * ``` - * For `alpha`, a value of `1` corresponds with a solid color, and a value of - * `0` corresponds with a completely transparent color. - * For example, the following color represents a half transparent red: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * "alpha": 0.5 - * } - * ``` - * - * Generated from protobuf field .google.type.Color color = 3; - * @return \Google\Type\Color|null - */ - public function getColor() - { - return $this->color; - } - - public function hasColor() - { - return isset($this->color); - } - - public function clearColor() - { - unset($this->color); - } - - /** - * If set, the button is filled with a solid background color and the font - * color changes to maintain contrast with the background color. For example, - * setting a blue background likely results in white text. - * If unset, the image background is white and the font color is blue. - * For red, green, and blue, the value of each field is a `float` number that - * you can express in either of two ways: as a number between 0 and 255 - * divided by 255 (153/255), or as a value between 0 and 1 (0.6). 0 represents - * the absence of a color and 1 or 255/255 represent the full presence of that - * color on the RGB scale. - * Optionally set `alpha`, which sets a level of transparency using this - * equation: - * ``` - * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) - * ``` - * For `alpha`, a value of `1` corresponds with a solid color, and a value of - * `0` corresponds with a completely transparent color. - * For example, the following color represents a half transparent red: - * ``` - * "color": { - * "red": 1, - * "green": 0, - * "blue": 0, - * "alpha": 0.5 - * } - * ``` - * - * Generated from protobuf field .google.type.Color color = 3; - * @param \Google\Type\Color $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->color = $var; - - return $this; - } - - /** - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * Required. The action to perform when a user clicks the button, such as - * opening a hyperlink or running a custom function. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 4; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * - * Generated from protobuf field bool disabled = 5; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * If `true`, the button is displayed in an inactive state and doesn't respond - * to user actions. - * - * Generated from protobuf field bool disabled = 5; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 6; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * The alternative text that's used for accessibility. - * Set descriptive text that lets users know what the button does. For - * example, if a button opens a hyperlink, you might write: "Opens a new - * browser tab and navigates to the Google Chat developer documentation at - * https://developers.google.com/workspace/chat". - * - * Generated from protobuf field string alt_text = 6; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php deleted file mode 100644 index 10b74b56debe..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ButtonList.php +++ /dev/null @@ -1,72 +0,0 @@ -google.apps.card.v1.ButtonList - */ -class ButtonList extends \Google\Protobuf\Internal\Message -{ - /** - * An array of buttons. - * - * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; - */ - private $buttons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Card\V1\Button>|\Google\Protobuf\Internal\RepeatedField $buttons - * An array of buttons. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * An array of buttons. - * - * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getButtons() - { - return $this->buttons; - } - - /** - * An array of buttons. - * - * Generated from protobuf field repeated .google.apps.card.v1.Button buttons = 1; - * @param array<\Google\Apps\Card\V1\Button>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setButtons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Button::class); - $this->buttons = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php deleted file mode 100644 index 75ffe057a2b8..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card.php +++ /dev/null @@ -1,638 +0,0 @@ -Online" - * } - * }, - * { - * "decoratedText": { - * "startIcon": { - * "knownIcon": "PHONE" - * }, - * "text": "+1 (555) 555-1234" - * } - * }, - * { - * "buttonList": { - * "buttons": [ - * { - * "text": "Share", - * "onClick": { - * "openLink": { - * "url": "https://example.com/share" - * } - * } - * }, - * { - * "text": "Edit", - * "onClick": { - * "action": { - * "function": "goToView", - * "parameters": [ - * { - * "key": "viewType", - * "value": "EDIT" - * } - * ] - * } - * } - * } - * ] - * } - * } - * ] - * } - * ] - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf message google.apps.card.v1.Card - */ -class Card extends \Google\Protobuf\Internal\Message -{ - /** - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; - */ - protected $header = null; - /** - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; - */ - private $sections; - /** - * The divider style between sections. - * - * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; - */ - protected $section_divider_style = 0; - /** - * The card's actions. Actions are added to the card's toolbar menu. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * For example, the following JSON constructs a card action menu with - * `Settings` and `Send Feedback` options: - * ``` - * "card_actions": [ - * { - * "actionLabel": "Settings", - * "onClick": { - * "action": { - * "functionName": "goToView", - * "parameters": [ - * { - * "key": "viewType", - * "value": "SETTING" - * } - * ], - * "loadIndicator": "LoadIndicator.SPINNER" - * } - * } - * }, - * { - * "actionLabel": "Send Feedback", - * "onClick": { - * "openLink": { - * "url": "https://example.com/feedback" - * } - * } - * } - * ] - * ``` - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; - */ - private $card_actions; - /** - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - /** - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; - */ - protected $fixed_footer = null; - /** - * In Google Workspace Add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; - */ - protected $display_style = 0; - /** - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; - */ - protected $peek_card_header = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Card\CardHeader $header - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * @type array<\Google\Apps\Card\V1\Card\Section>|\Google\Protobuf\Internal\RepeatedField $sections - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * @type int $section_divider_style - * The divider style between sections. - * @type array<\Google\Apps\Card\V1\Card\CardAction>|\Google\Protobuf\Internal\RepeatedField $card_actions - * The card's actions. Actions are added to the card's toolbar menu. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * For example, the following JSON constructs a card action menu with - * `Settings` and `Send Feedback` options: - * ``` - * "card_actions": [ - * { - * "actionLabel": "Settings", - * "onClick": { - * "action": { - * "functionName": "goToView", - * "parameters": [ - * { - * "key": "viewType", - * "value": "SETTING" - * } - * ], - * "loadIndicator": "LoadIndicator.SPINNER" - * } - * } - * }, - * { - * "actionLabel": "Send Feedback", - * "onClick": { - * "openLink": { - * "url": "https://example.com/feedback" - * } - * } - * } - * ] - * ``` - * @type string $name - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\Card\CardFixedFooter $fixed_footer - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * @type int $display_style - * In Google Workspace Add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\Card\CardHeader $peek_card_header - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; - * @return \Google\Apps\Card\V1\Card\CardHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The header of the card. A header usually contains a leading image and a - * title. Headers always appear at the top of a card. - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader header = 1; - * @param \Google\Apps\Card\V1\Card\CardHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSections() - { - return $this->sections; - } - - /** - * Contains a collection of widgets. Each section has its own, optional - * header. Sections are visually separated by a line divider. For an example - * in Google Chat apps, see [Define a section of a - * card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.Section sections = 2; - * @param array<\Google\Apps\Card\V1\Card\Section>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\Section::class); - $this->sections = $arr; - - return $this; - } - - /** - * The divider style between sections. - * - * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; - * @return int - */ - public function getSectionDividerStyle() - { - return $this->section_divider_style; - } - - /** - * The divider style between sections. - * - * Generated from protobuf field .google.apps.card.v1.Card.DividerStyle section_divider_style = 9; - * @param int $var - * @return $this - */ - public function setSectionDividerStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Card\DividerStyle::class); - $this->section_divider_style = $var; - - return $this; - } - - /** - * The card's actions. Actions are added to the card's toolbar menu. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * For example, the following JSON constructs a card action menu with - * `Settings` and `Send Feedback` options: - * ``` - * "card_actions": [ - * { - * "actionLabel": "Settings", - * "onClick": { - * "action": { - * "functionName": "goToView", - * "parameters": [ - * { - * "key": "viewType", - * "value": "SETTING" - * } - * ], - * "loadIndicator": "LoadIndicator.SPINNER" - * } - * } - * }, - * { - * "actionLabel": "Send Feedback", - * "onClick": { - * "openLink": { - * "url": "https://example.com/feedback" - * } - * } - * } - * ] - * ``` - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCardActions() - { - return $this->card_actions; - } - - /** - * The card's actions. Actions are added to the card's toolbar menu. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * For example, the following JSON constructs a card action menu with - * `Settings` and `Send Feedback` options: - * ``` - * "card_actions": [ - * { - * "actionLabel": "Settings", - * "onClick": { - * "action": { - * "functionName": "goToView", - * "parameters": [ - * { - * "key": "viewType", - * "value": "SETTING" - * } - * ], - * "loadIndicator": "LoadIndicator.SPINNER" - * } - * } - * }, - * { - * "actionLabel": "Send Feedback", - * "onClick": { - * "openLink": { - * "url": "https://example.com/feedback" - * } - * } - * } - * ] - * ``` - * - * Generated from protobuf field repeated .google.apps.card.v1.Card.CardAction card_actions = 3; - * @param array<\Google\Apps\Card\V1\Card\CardAction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCardActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Card\CardAction::class); - $this->card_actions = $arr; - - return $this; - } - - /** - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the card. Used as a card identifier in card navigation. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; - * @return \Google\Apps\Card\V1\Card\CardFixedFooter|null - */ - public function getFixedFooter() - { - return $this->fixed_footer; - } - - public function hasFixedFooter() - { - return isset($this->fixed_footer); - } - - public function clearFixedFooter() - { - unset($this->fixed_footer); - } - - /** - * The fixed footer shown at the bottom of this card. - * Setting `fixedFooter` without specifying a `primaryButton` or a - * `secondaryButton` causes an error. For Chat apps, you can use fixed footers - * in - * [dialogs](https://developers.google.com/workspace/chat/dialogs), but not - * [card - * messages](https://developers.google.com/workspace/chat/create-messages#create). - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardFixedFooter fixed_footer = 5; - * @param \Google\Apps\Card\V1\Card\CardFixedFooter $var - * @return $this - */ - public function setFixedFooter($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardFixedFooter::class); - $this->fixed_footer = $var; - - return $this; - } - - /** - * In Google Workspace Add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; - * @return int - */ - public function getDisplayStyle() - { - return $this->display_style; - } - - /** - * In Google Workspace Add-ons, sets the display properties of the - * `peekCardHeader`. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.DisplayStyle display_style = 6; - * @param int $var - * @return $this - */ - public function setDisplayStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Card\DisplayStyle::class); - $this->display_style = $var; - - return $this; - } - - /** - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; - * @return \Google\Apps\Card\V1\Card\CardHeader|null - */ - public function getPeekCardHeader() - { - return $this->peek_card_header; - } - - public function hasPeekCardHeader() - { - return isset($this->peek_card_header); - } - - public function clearPeekCardHeader() - { - unset($this->peek_card_header); - } - - /** - * When displaying contextual content, the peek card header acts as a - * placeholder so that the user can navigate forward between the homepage - * cards and the contextual cards. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card.CardHeader peek_card_header = 7; - * @param \Google\Apps\Card\V1\Card\CardHeader $var - * @return $this - */ - public function setPeekCardHeader($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card\CardHeader::class); - $this->peek_card_header = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php deleted file mode 100644 index f5aa428beae4..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardAction.php +++ /dev/null @@ -1,118 +0,0 @@ -google.apps.card.v1.Card.CardAction - */ -class CardAction extends \Google\Protobuf\Internal\Message -{ - /** - * The label that displays as the action menu item. - * - * Generated from protobuf field string action_label = 1; - */ - protected $action_label = ''; - /** - * The `onClick` action for this action item. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $action_label - * The label that displays as the action menu item. - * @type \Google\Apps\Card\V1\OnClick $on_click - * The `onClick` action for this action item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The label that displays as the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @return string - */ - public function getActionLabel() - { - return $this->action_label; - } - - /** - * The label that displays as the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @param string $var - * @return $this - */ - public function setActionLabel($var) - { - GPBUtil::checkString($var, True); - $this->action_label = $var; - - return $this; - } - - /** - * The `onClick` action for this action item. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onClick` action for this action item. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CardAction::class, \Google\Apps\Card\V1\Card_CardAction::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php deleted file mode 100644 index 533e532eec85..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardFixedFooter.php +++ /dev/null @@ -1,146 +0,0 @@ -google.apps.card.v1.Card.CardFixedFooter - */ -class CardFixedFooter extends \Google\Protobuf\Internal\Message -{ - /** - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * - * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; - */ - protected $primary_button = null; - /** - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * - * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; - */ - protected $secondary_button = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Button $primary_button - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * @type \Google\Apps\Card\V1\Button $secondary_button - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * - * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getPrimaryButton() - { - return $this->primary_button; - } - - public function hasPrimaryButton() - { - return isset($this->primary_button); - } - - public function clearPrimaryButton() - { - unset($this->primary_button); - } - - /** - * The primary button of the fixed footer. The button must be a text button - * with text and color set. - * - * Generated from protobuf field .google.apps.card.v1.Button primary_button = 1; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setPrimaryButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->primary_button = $var; - - return $this; - } - - /** - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * - * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getSecondaryButton() - { - return $this->secondary_button; - } - - public function hasSecondaryButton() - { - return isset($this->secondary_button); - } - - public function clearSecondaryButton() - { - unset($this->secondary_button); - } - - /** - * The secondary button of the fixed footer. The button must be a text - * button with text and color set. - * If `secondaryButton` is set, you must also set `primaryButton`. - * - * Generated from protobuf field .google.apps.card.v1.Button secondary_button = 2; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setSecondaryButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->secondary_button = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CardFixedFooter::class, \Google\Apps\Card\V1\Card_CardFixedFooter::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php deleted file mode 100644 index 9ebae5225130..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/CardHeader.php +++ /dev/null @@ -1,233 +0,0 @@ -google.apps.card.v1.Card.CardHeader - */ -class CardHeader extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * - * Generated from protobuf field string subtitle = 2; - */ - protected $subtitle = ''; - /** - * The shape used to crop the image. - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; - */ - protected $image_type = 0; - /** - * The HTTPS URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - */ - protected $image_url = ''; - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string image_alt_text = 5; - */ - protected $image_alt_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * @type string $subtitle - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * @type int $image_type - * The shape used to crop the image. - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * @type string $image_url - * The HTTPS URL of the image in the card header. - * @type string $image_alt_text - * The alternative text of this image that's used for accessibility. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Required. The title of the card header. - * The header has a fixed height: if both a - * title and subtitle are specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * - * Generated from protobuf field string subtitle = 2; - * @return string - */ - public function getSubtitle() - { - return $this->subtitle; - } - - /** - * The subtitle of the card header. If specified, appears on its own line - * below the `title`. - * - * Generated from protobuf field string subtitle = 2; - * @param string $var - * @return $this - */ - public function setSubtitle($var) - { - GPBUtil::checkString($var, True); - $this->subtitle = $var; - - return $this; - } - - /** - * The shape used to crop the image. - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; - * @return int - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The shape used to crop the image. - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 3; - * @param int $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\ImageType::class); - $this->image_type = $var; - - return $this; - } - - /** - * The HTTPS URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The HTTPS URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string image_alt_text = 5; - * @return string - */ - public function getImageAltText() - { - return $this->image_alt_text; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string image_alt_text = 5; - * @param string $var - * @return $this - */ - public function setImageAltText($var) - { - GPBUtil::checkString($var, True); - $this->image_alt_text = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CardHeader::class, \Google\Apps\Card\V1\Card_CardHeader::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php deleted file mode 100644 index 6b00f8d7bf7f..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DisplayStyle.php +++ /dev/null @@ -1,71 +0,0 @@ -google.apps.card.v1.Card.DisplayStyle - */ -class DisplayStyle -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum DISPLAY_STYLE_UNSPECIFIED = 0; - */ - const DISPLAY_STYLE_UNSPECIFIED = 0; - /** - * The header of the card appears at the bottom of the - * sidebar, partially covering the current top card of the stack. Clicking - * the header pops the card into the card stack. If the card has no header, - * a generated header is used instead. - * - * Generated from protobuf enum PEEK = 1; - */ - const PEEK = 1; - /** - * Default value. The card is shown by replacing the view of the top card in - * the card stack. - * - * Generated from protobuf enum REPLACE = 2; - */ - const REPLACE = 2; - - private static $valueToName = [ - self::DISPLAY_STYLE_UNSPECIFIED => 'DISPLAY_STYLE_UNSPECIFIED', - self::PEEK => 'PEEK', - self::REPLACE => 'REPLACE', - ]; - - 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(DisplayStyle::class, \Google\Apps\Card\V1\Card_DisplayStyle::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php deleted file mode 100644 index b2ff24d3caf4..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/DividerStyle.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.card.v1.Card.DividerStyle - */ -class DividerStyle -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum DIVIDER_STYLE_UNSPECIFIED = 0; - */ - const DIVIDER_STYLE_UNSPECIFIED = 0; - /** - * Default option. Render a solid divider between sections. - * - * Generated from protobuf enum SOLID_DIVIDER = 1; - */ - const SOLID_DIVIDER = 1; - /** - * If set, no divider is rendered between sections. - * - * Generated from protobuf enum NO_DIVIDER = 2; - */ - const NO_DIVIDER = 2; - - private static $valueToName = [ - self::DIVIDER_STYLE_UNSPECIFIED => 'DIVIDER_STYLE_UNSPECIFIED', - self::SOLID_DIVIDER => 'SOLID_DIVIDER', - self::NO_DIVIDER => 'NO_DIVIDER', - ]; - - 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(DividerStyle::class, \Google\Apps\Card\V1\Card_DividerStyle::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php deleted file mode 100644 index 4a737f780527..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Card/Section.php +++ /dev/null @@ -1,255 +0,0 @@ -google.apps.card.v1.Card.Section - */ -class Section extends \Google\Protobuf\Internal\Message -{ - /** - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - */ - protected $header = ''; - /** - * All the widgets in the section. - * Must contain at least one widget. - * - * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; - */ - private $widgets; - /** - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * - * Generated from protobuf field bool collapsible = 5; - */ - protected $collapsible = false; - /** - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * - * Generated from protobuf field int32 uncollapsible_widgets_count = 6; - */ - protected $uncollapsible_widgets_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $header - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type array<\Google\Apps\Card\V1\Widget>|\Google\Protobuf\Internal\RepeatedField $widgets - * All the widgets in the section. - * Must contain at least one widget. - * @type bool $collapsible - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * @type int $uncollapsible_widgets_count - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @return string - */ - public function getHeader() - { - return $this->header; - } - - /** - * Text that appears at the top of a section. - * Supports simple HTML formatted text. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @param string $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkString($var, True); - $this->header = $var; - - return $this; - } - - /** - * All the widgets in the section. - * Must contain at least one widget. - * - * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWidgets() - { - return $this->widgets; - } - - /** - * All the widgets in the section. - * Must contain at least one widget. - * - * Generated from protobuf field repeated .google.apps.card.v1.Widget widgets = 2; - * @param array<\Google\Apps\Card\V1\Widget>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Widget::class); - $this->widgets = $arr; - - return $this; - } - - /** - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * - * Generated from protobuf field bool collapsible = 5; - * @return bool - */ - public function getCollapsible() - { - return $this->collapsible; - } - - /** - * Indicates whether this section is collapsible. - * Collapsible sections hide some or all widgets, but users can expand the - * section to reveal the hidden widgets by clicking **Show more**. Users - * can hide the widgets again by clicking **Show less**. - * To determine which widgets are hidden, specify - * `uncollapsibleWidgetsCount`. - * - * Generated from protobuf field bool collapsible = 5; - * @param bool $var - * @return $this - */ - public function setCollapsible($var) - { - GPBUtil::checkBool($var); - $this->collapsible = $var; - - return $this; - } - - /** - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * - * Generated from protobuf field int32 uncollapsible_widgets_count = 6; - * @return int - */ - public function getUncollapsibleWidgetsCount() - { - return $this->uncollapsible_widgets_count; - } - - /** - * The number of uncollapsible widgets which remain visible even when a - * section is collapsed. - * For example, when a section - * contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, - * the first two widgets are always shown and the last three are collapsed - * by default. The `uncollapsibleWidgetsCount` is taken into account only - * when `collapsible` is `true`. - * - * Generated from protobuf field int32 uncollapsible_widgets_count = 6; - * @param int $var - * @return $this - */ - public function setUncollapsibleWidgetsCount($var) - { - GPBUtil::checkInt32($var); - $this->uncollapsible_widgets_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Section::class, \Google\Apps\Card\V1\Card_Section::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php deleted file mode 100644 index f2e8cff1b175..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns.php +++ /dev/null @@ -1,91 +0,0 @@ -google.apps.card.v1.Columns - */ -class Columns extends \Google\Protobuf\Internal\Message -{ - /** - * An array of columns. You can include up to 2 columns in a card or dialog. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; - */ - private $column_items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Card\V1\Columns\Column>|\Google\Protobuf\Internal\RepeatedField $column_items - * An array of columns. You can include up to 2 columns in a card or dialog. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * An array of columns. You can include up to 2 columns in a card or dialog. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getColumnItems() - { - return $this->column_items; - } - - /** - * An array of columns. You can include up to 2 columns in a card or dialog. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column column_items = 2; - * @param array<\Google\Apps\Card\V1\Columns\Column>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setColumnItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Columns\Column::class); - $this->column_items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php deleted file mode 100644 index 3b58fdef7751..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column.php +++ /dev/null @@ -1,188 +0,0 @@ -google.apps.card.v1.Columns.Column - */ -class Column extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies how a column fills the width of the card. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; - */ - protected $horizontal_size_style = 0; - /** - * Specifies whether widgets align to the left, right, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; - */ - protected $horizontal_alignment = 0; - /** - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; - */ - protected $vertical_alignment = 0; - /** - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; - */ - private $widgets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $horizontal_size_style - * Specifies how a column fills the width of the card. - * @type int $horizontal_alignment - * Specifies whether widgets align to the left, right, or center of a - * column. - * @type int $vertical_alignment - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * @type array<\Google\Apps\Card\V1\Columns\Column\Widgets>|\Google\Protobuf\Internal\RepeatedField $widgets - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Specifies how a column fills the width of the card. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; - * @return int - */ - public function getHorizontalSizeStyle() - { - return $this->horizontal_size_style; - } - - /** - * Specifies how a column fills the width of the card. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.HorizontalSizeStyle horizontal_size_style = 1; - * @param int $var - * @return $this - */ - public function setHorizontalSizeStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Columns\Column\HorizontalSizeStyle::class); - $this->horizontal_size_style = $var; - - return $this; - } - - /** - * Specifies whether widgets align to the left, right, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; - * @return int - */ - public function getHorizontalAlignment() - { - return $this->horizontal_alignment; - } - - /** - * Specifies whether widgets align to the left, right, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 2; - * @param int $var - * @return $this - */ - public function setHorizontalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); - $this->horizontal_alignment = $var; - - return $this; - } - - /** - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; - * @return int - */ - public function getVerticalAlignment() - { - return $this->vertical_alignment; - } - - /** - * Specifies whether widgets align to the top, bottom, or center of a - * column. - * - * Generated from protobuf field .google.apps.card.v1.Columns.Column.VerticalAlignment vertical_alignment = 3; - * @param int $var - * @return $this - */ - public function setVerticalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Columns\Column\VerticalAlignment::class); - $this->vertical_alignment = $var; - - return $this; - } - - /** - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWidgets() - { - return $this->widgets; - } - - /** - * An array of widgets included in a column. Widgets appear in the order - * that they are specified. - * - * Generated from protobuf field repeated .google.apps.card.v1.Columns.Column.Widgets widgets = 4; - * @param array<\Google\Apps\Card\V1\Columns\Column\Widgets>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Columns\Column\Widgets::class); - $this->widgets = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Column::class, \Google\Apps\Card\V1\Columns_Column::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php deleted file mode 100644 index f6e8683abc05..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/HorizontalSizeStyle.php +++ /dev/null @@ -1,73 +0,0 @@ -google.apps.card.v1.Columns.Column.HorizontalSizeStyle - */ -class HorizontalSizeStyle -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0; - */ - const HORIZONTAL_SIZE_STYLE_UNSPECIFIED = 0; - /** - * Default value. Column fills the available space, up to 70% of the - * card's width. If both columns are set to `FILL_AVAILABLE_SPACE`, each - * column fills 50% of the space. - * - * Generated from protobuf enum FILL_AVAILABLE_SPACE = 1; - */ - const FILL_AVAILABLE_SPACE = 1; - /** - * Column fills the least amount of space possible and no more than 30% of - * the card's width. - * - * Generated from protobuf enum FILL_MINIMUM_SPACE = 2; - */ - const FILL_MINIMUM_SPACE = 2; - - private static $valueToName = [ - self::HORIZONTAL_SIZE_STYLE_UNSPECIFIED => 'HORIZONTAL_SIZE_STYLE_UNSPECIFIED', - self::FILL_AVAILABLE_SPACE => 'FILL_AVAILABLE_SPACE', - self::FILL_MINIMUM_SPACE => 'FILL_MINIMUM_SPACE', - ]; - - 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(HorizontalSizeStyle::class, \Google\Apps\Card\V1\Columns_Column_HorizontalSizeStyle::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php deleted file mode 100644 index 10e16d17fb44..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/VerticalAlignment.php +++ /dev/null @@ -1,76 +0,0 @@ -google.apps.card.v1.Columns.Column.VerticalAlignment - */ -class VerticalAlignment -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum VERTICAL_ALIGNMENT_UNSPECIFIED = 0; - */ - const VERTICAL_ALIGNMENT_UNSPECIFIED = 0; - /** - * Default value. Aligns widgets to the center of a column. - * - * Generated from protobuf enum CENTER = 1; - */ - const CENTER = 1; - /** - * Aligns widgets to the top of a column. - * - * Generated from protobuf enum TOP = 2; - */ - const TOP = 2; - /** - * Aligns widgets to the bottom of a column. - * - * Generated from protobuf enum BOTTOM = 3; - */ - const BOTTOM = 3; - - private static $valueToName = [ - self::VERTICAL_ALIGNMENT_UNSPECIFIED => 'VERTICAL_ALIGNMENT_UNSPECIFIED', - self::CENTER => 'CENTER', - self::TOP => 'TOP', - self::BOTTOM => 'BOTTOM', - ]; - - 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(VerticalAlignment::class, \Google\Apps\Card\V1\Columns_Column_VerticalAlignment::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php deleted file mode 100644 index 5e2cecc1f34d..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Columns/Column/Widgets.php +++ /dev/null @@ -1,280 +0,0 @@ -google.apps.card.v1.Columns.Column.Widgets - */ -class Widgets extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph - * [TextParagraph][google.apps.card.v1.TextParagraph] widget. - * @type \Google\Apps\Card\V1\Image $image - * [Image][google.apps.card.v1.Image] widget. - * @type \Google\Apps\Card\V1\DecoratedText $decorated_text - * [DecoratedText][google.apps.card.v1.DecoratedText] widget. - * @type \Google\Apps\Card\V1\ButtonList $button_list - * [ButtonList][google.apps.card.v1.ButtonList] widget. - * @type \Google\Apps\Card\V1\TextInput $text_input - * [TextInput][google.apps.card.v1.TextInput] widget. - * @type \Google\Apps\Card\V1\SelectionInput $selection_input - * [SelectionInput][google.apps.card.v1.SelectionInput] widget. - * @type \Google\Apps\Card\V1\DateTimePicker $date_time_picker - * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * [TextParagraph][google.apps.card.v1.TextParagraph] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getTextParagraph() - { - return $this->readOneof(1); - } - - public function hasTextParagraph() - { - return $this->hasOneof(1); - } - - /** - * [TextParagraph][google.apps.card.v1.TextParagraph] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setTextParagraph($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * [Image][google.apps.card.v1.Image] widget. - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @return \Google\Apps\Card\V1\Image|null - */ - public function getImage() - { - return $this->readOneof(2); - } - - public function hasImage() - { - return $this->hasOneof(2); - } - - /** - * [Image][google.apps.card.v1.Image] widget. - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @param \Google\Apps\Card\V1\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * [DecoratedText][google.apps.card.v1.DecoratedText] widget. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @return \Google\Apps\Card\V1\DecoratedText|null - */ - public function getDecoratedText() - { - return $this->readOneof(3); - } - - public function hasDecoratedText() - { - return $this->hasOneof(3); - } - - /** - * [DecoratedText][google.apps.card.v1.DecoratedText] widget. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @param \Google\Apps\Card\V1\DecoratedText $var - * @return $this - */ - public function setDecoratedText($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * [ButtonList][google.apps.card.v1.ButtonList] widget. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @return \Google\Apps\Card\V1\ButtonList|null - */ - public function getButtonList() - { - return $this->readOneof(4); - } - - public function hasButtonList() - { - return $this->hasOneof(4); - } - - /** - * [ButtonList][google.apps.card.v1.ButtonList] widget. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @param \Google\Apps\Card\V1\ButtonList $var - * @return $this - */ - public function setButtonList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * [TextInput][google.apps.card.v1.TextInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @return \Google\Apps\Card\V1\TextInput|null - */ - public function getTextInput() - { - return $this->readOneof(5); - } - - public function hasTextInput() - { - return $this->hasOneof(5); - } - - /** - * [TextInput][google.apps.card.v1.TextInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @param \Google\Apps\Card\V1\TextInput $var - * @return $this - */ - public function setTextInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextInput::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * [SelectionInput][google.apps.card.v1.SelectionInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @return \Google\Apps\Card\V1\SelectionInput|null - */ - public function getSelectionInput() - { - return $this->readOneof(6); - } - - public function hasSelectionInput() - { - return $this->hasOneof(6); - } - - /** - * [SelectionInput][google.apps.card.v1.SelectionInput] widget. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @param \Google\Apps\Card\V1\SelectionInput $var - * @return $this - */ - public function setSelectionInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @return \Google\Apps\Card\V1\DateTimePicker|null - */ - public function getDateTimePicker() - { - return $this->readOneof(7); - } - - public function hasDateTimePicker() - { - return $this->hasOneof(7); - } - - /** - * [DateTimePicker][google.apps.card.v1.DateTimePicker] widget. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @param \Google\Apps\Card\V1\DateTimePicker $var - * @return $this - */ - public function setDateTimePicker($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DateTimePicker::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Widgets::class, \Google\Apps\Card\V1\Columns_Column_Widgets::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php deleted file mode 100644 index 324bcac7ae7c..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker.php +++ /dev/null @@ -1,314 +0,0 @@ -google.apps.card.v1.DateTimePicker - */ -class DateTimePicker extends \Google\Protobuf\Internal\Message -{ - /** - * The name by which the `DateTimePicker` is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * Whether the widget supports inputting a date, a time, or the date and time. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; - */ - protected $type = 0; - /** - * The default value displayed in the widget, in milliseconds since [Unix - * epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * - * Generated from protobuf field int64 value_ms_epoch = 4; - */ - protected $value_ms_epoch = 0; - /** - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * - * Generated from protobuf field int32 timezone_offset_date = 5; - */ - protected $timezone_offset_date = 0; - /** - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - */ - protected $on_change_action = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name by which the `DateTimePicker` is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type string $label - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * @type int $type - * Whether the widget supports inputting a date, a time, or the date and time. - * @type int|string $value_ms_epoch - * The default value displayed in the widget, in milliseconds since [Unix - * epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * @type int $timezone_offset_date - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * @type \Google\Apps\Card\V1\Action $on_change_action - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name by which the `DateTimePicker` is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name by which the `DateTimePicker` is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * 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; - } - - /** - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * The text that prompts users to input a date, a time, or a date and time. - * For example, if users are scheduling an appointment, use a label such as - * `Appointment date` or `Appointment date and time`. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Whether the widget supports inputting a date, a time, or the date and time. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Whether the widget supports inputting a date, a time, or the date and time. - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\DateTimePicker\DateTimePickerType::class); - $this->type = $var; - - return $this; - } - - /** - * The default value displayed in the widget, in milliseconds since [Unix - * epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * - * Generated from protobuf field int64 value_ms_epoch = 4; - * @return int|string - */ - public function getValueMsEpoch() - { - return $this->value_ms_epoch; - } - - /** - * The default value displayed in the widget, in milliseconds since [Unix - * epoch time](https://en.wikipedia.org/wiki/Unix_time). - * Specify the value based on the type of picker (`DateTimePickerType`): - * * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to - * represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. - * * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent - * January 1, 2023, use `1672531200000`. - * * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use - * `43200000` (or `12 * 60 * 60 * 1000`). - * - * Generated from protobuf field int64 value_ms_epoch = 4; - * @param int|string $var - * @return $this - */ - public function setValueMsEpoch($var) - { - GPBUtil::checkInt64($var); - $this->value_ms_epoch = $var; - - return $this; - } - - /** - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * - * Generated from protobuf field int32 timezone_offset_date = 5; - * @return int - */ - public function getTimezoneOffsetDate() - { - return $this->timezone_offset_date; - } - - /** - * The number representing the time zone offset from UTC, in minutes. - * If set, the `value_ms_epoch` is displayed in the specified time zone. - * If unset, the value defaults to the user's time zone setting. - * - * Generated from protobuf field int32 timezone_offset_date = 5; - * @param int $var - * @return $this - */ - public function setTimezoneOffsetDate($var) - { - GPBUtil::checkInt32($var); - $this->timezone_offset_date = $var; - - return $this; - } - - /** - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * Triggered when the user clicks **Save** or **Clear** from the - * `DateTimePicker` interface. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php deleted file mode 100644 index e4866cc072b0..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DateTimePicker/DateTimePickerType.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.card.v1.DateTimePicker.DateTimePickerType - */ -class DateTimePickerType -{ - /** - * Users input a date and time. - * - * Generated from protobuf enum DATE_AND_TIME = 0; - */ - const DATE_AND_TIME = 0; - /** - * Users input a date. - * - * Generated from protobuf enum DATE_ONLY = 1; - */ - const DATE_ONLY = 1; - /** - * Users input a time. - * - * Generated from protobuf enum TIME_ONLY = 2; - */ - const TIME_ONLY = 2; - - private static $valueToName = [ - self::DATE_AND_TIME => 'DATE_AND_TIME', - self::DATE_ONLY => 'DATE_ONLY', - self::TIME_ONLY => 'TIME_ONLY', - ]; - - 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(DateTimePickerType::class, \Google\Apps\Card\V1\DateTimePicker_DateTimePickerType::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php deleted file mode 100644 index b8526ef893b8..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText.php +++ /dev/null @@ -1,480 +0,0 @@ -google.apps.card.v1.DecoratedText - */ -class DecoratedText extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated in favor of `startIcon`. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; - * @deprecated - */ - protected $icon = null; - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; - */ - protected $start_icon = null; - /** - * The text that appears above `text`. Always truncates. - * - * Generated from protobuf field string top_label = 3; - */ - protected $top_label = ''; - /** - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string text = 4; - */ - protected $text = ''; - /** - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * - * Generated from protobuf field bool wrap_text = 5; - */ - protected $wrap_text = false; - /** - * The text that appears below `text`. Always wraps. - * - * Generated from protobuf field string bottom_label = 6; - */ - protected $bottom_label = ''; - /** - * This action is triggered when users click `topLabel` or `bottomLabel`. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; - */ - protected $on_click = null; - protected $control; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Icon $icon - * Deprecated in favor of `startIcon`. - * @type \Google\Apps\Card\V1\Icon $start_icon - * The icon displayed in front of the text. - * @type string $top_label - * The text that appears above `text`. Always truncates. - * @type string $text - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type bool $wrap_text - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * @type string $bottom_label - * The text that appears below `text`. Always wraps. - * @type \Google\Apps\Card\V1\OnClick $on_click - * This action is triggered when users click `topLabel` or `bottomLabel`. - * @type \Google\Apps\Card\V1\Button $button - * A button that a user can click to trigger an action. - * @type \Google\Apps\Card\V1\DecoratedText\SwitchControl $switch_control - * A switch widget that a user can click to change its state and trigger an - * action. - * @type \Google\Apps\Card\V1\Icon $end_icon - * An icon displayed after the text. - * Supports - * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) - * and - * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) - * icons. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated in favor of `startIcon`. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; - * @return \Google\Apps\Card\V1\Icon|null - * @deprecated - */ - public function getIcon() - { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - return $this->icon; - } - - public function hasIcon() - { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - return isset($this->icon); - } - - public function clearIcon() - { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - unset($this->icon); - } - - /** - * Deprecated in favor of `startIcon`. - * - * Generated from protobuf field .google.apps.card.v1.Icon icon = 1 [deprecated = true]; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - * @deprecated - */ - public function setIcon($var) - { - @trigger_error('icon is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->icon = $var; - - return $this; - } - - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getStartIcon() - { - return $this->start_icon; - } - - public function hasStartIcon() - { - return isset($this->start_icon); - } - - public function clearStartIcon() - { - unset($this->start_icon); - } - - /** - * The icon displayed in front of the text. - * - * Generated from protobuf field .google.apps.card.v1.Icon start_icon = 12; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setStartIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->start_icon = $var; - - return $this; - } - - /** - * The text that appears above `text`. Always truncates. - * - * Generated from protobuf field string top_label = 3; - * @return string - */ - public function getTopLabel() - { - return $this->top_label; - } - - /** - * The text that appears above `text`. Always truncates. - * - * Generated from protobuf field string top_label = 3; - * @param string $var - * @return $this - */ - public function setTopLabel($var) - { - GPBUtil::checkString($var, True); - $this->top_label = $var; - - return $this; - } - - /** - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string text = 4; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Required. The primary text. - * Supports simple formatting. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string text = 4; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * - * Generated from protobuf field bool wrap_text = 5; - * @return bool - */ - public function getWrapText() - { - return $this->wrap_text; - } - - /** - * The wrap text setting. If `true`, the text wraps and displays on - * multiple lines. Otherwise, the text is truncated. - * Only applies to `text`, not `topLabel` and `bottomLabel`. - * - * Generated from protobuf field bool wrap_text = 5; - * @param bool $var - * @return $this - */ - public function setWrapText($var) - { - GPBUtil::checkBool($var); - $this->wrap_text = $var; - - return $this; - } - - /** - * The text that appears below `text`. Always wraps. - * - * Generated from protobuf field string bottom_label = 6; - * @return string - */ - public function getBottomLabel() - { - return $this->bottom_label; - } - - /** - * The text that appears below `text`. Always wraps. - * - * Generated from protobuf field string bottom_label = 6; - * @param string $var - * @return $this - */ - public function setBottomLabel($var) - { - GPBUtil::checkString($var, True); - $this->bottom_label = $var; - - return $this; - } - - /** - * This action is triggered when users click `topLabel` or `bottomLabel`. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * This action is triggered when users click `topLabel` or `bottomLabel`. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 7; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * A button that a user can click to trigger an action. - * - * Generated from protobuf field .google.apps.card.v1.Button button = 8; - * @return \Google\Apps\Card\V1\Button|null - */ - public function getButton() - { - return $this->readOneof(8); - } - - public function hasButton() - { - return $this->hasOneof(8); - } - - /** - * A button that a user can click to trigger an action. - * - * Generated from protobuf field .google.apps.card.v1.Button button = 8; - * @param \Google\Apps\Card\V1\Button $var - * @return $this - */ - public function setButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Button::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * A switch widget that a user can click to change its state and trigger an - * action. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; - * @return \Google\Apps\Card\V1\DecoratedText\SwitchControl|null - */ - public function getSwitchControl() - { - return $this->readOneof(9); - } - - public function hasSwitchControl() - { - return $this->hasOneof(9); - } - - /** - * A switch widget that a user can click to change its state and trigger an - * action. - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9; - * @param \Google\Apps\Card\V1\DecoratedText\SwitchControl $var - * @return $this - */ - public function setSwitchControl($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText\SwitchControl::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * An icon displayed after the text. - * Supports - * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) - * and - * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) - * icons. - * - * Generated from protobuf field .google.apps.card.v1.Icon end_icon = 11; - * @return \Google\Apps\Card\V1\Icon|null - */ - public function getEndIcon() - { - return $this->readOneof(11); - } - - public function hasEndIcon() - { - return $this->hasOneof(11); - } - - /** - * An icon displayed after the text. - * Supports - * [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) - * and - * [custom](https://developers.google.com/workspace/chat/format-messages#customicons) - * icons. - * - * Generated from protobuf field .google.apps.card.v1.Icon end_icon = 11; - * @param \Google\Apps\Card\V1\Icon $var - * @return $this - */ - public function setEndIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Icon::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * @return string - */ - public function getControl() - { - return $this->whichOneof("control"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php deleted file mode 100644 index 9949152ee710..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl.php +++ /dev/null @@ -1,247 +0,0 @@ -google.apps.card.v1.DecoratedText.SwitchControl - */ -class SwitchControl extends \Google\Protobuf\Internal\Message -{ - /** - * The name by which the switch widget is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * When `true`, the switch is selected. - * - * Generated from protobuf field bool selected = 3; - */ - protected $selected = false; - /** - * The action to perform when the switch state is changed, such as what - * function to run. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; - */ - protected $on_change_action = null; - /** - * How the switch appears in the user interface. - * [Google Workspace Add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; - */ - protected $control_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name by which the switch widget is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type string $value - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type bool $selected - * When `true`, the switch is selected. - * @type \Google\Apps\Card\V1\Action $on_change_action - * The action to perform when the switch state is changed, such as what - * function to run. - * @type int $control_type - * How the switch appears in the user interface. - * [Google Workspace Add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name by which the switch widget is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name by which the switch widget is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * 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; - } - - /** - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * When `true`, the switch is selected. - * - * Generated from protobuf field bool selected = 3; - * @return bool - */ - public function getSelected() - { - return $this->selected; - } - - /** - * When `true`, the switch is selected. - * - * Generated from protobuf field bool selected = 3; - * @param bool $var - * @return $this - */ - public function setSelected($var) - { - GPBUtil::checkBool($var); - $this->selected = $var; - - return $this; - } - - /** - * The action to perform when the switch state is changed, such as what - * function to run. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * The action to perform when the switch state is changed, such as what - * function to run. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 4; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - - /** - * How the switch appears in the user interface. - * [Google Workspace Add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; - * @return int - */ - public function getControlType() - { - return $this->control_type; - } - - /** - * How the switch appears in the user interface. - * [Google Workspace Add-ons - * and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText.SwitchControl.ControlType control_type = 5; - * @param int $var - * @return $this - */ - public function setControlType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\DecoratedText\SwitchControl\ControlType::class); - $this->control_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SwitchControl::class, \Google\Apps\Card\V1\DecoratedText_SwitchControl::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php deleted file mode 100644 index 1dee8d9b7f50..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/DecoratedText/SwitchControl/ControlType.php +++ /dev/null @@ -1,70 +0,0 @@ -google.apps.card.v1.DecoratedText.SwitchControl.ControlType - */ -class ControlType -{ - /** - * A toggle-style switch. - * - * Generated from protobuf enum SWITCH = 0; - */ - const PBSWITCH = 0; - /** - * Deprecated in favor of `CHECK_BOX`. - * - * Generated from protobuf enum CHECKBOX = 1; - */ - const CHECKBOX = 1; - /** - * A checkbox. - * - * Generated from protobuf enum CHECK_BOX = 2; - */ - const CHECK_BOX = 2; - - private static $valueToName = [ - self::PBSWITCH => 'SWITCH', - self::CHECKBOX => 'CHECKBOX', - self::CHECK_BOX => 'CHECK_BOX', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ControlType::class, \Google\Apps\Card\V1\DecoratedText_SwitchControl_ControlType::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php deleted file mode 100644 index 302c3a2b4e4f..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Divider.php +++ /dev/null @@ -1,42 +0,0 @@ -google.apps.card.v1.Divider - */ -class Divider extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php deleted file mode 100644 index daf8a87f9278..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid.php +++ /dev/null @@ -1,281 +0,0 @@ -google.apps.card.v1.Grid - */ -class Grid extends \Google\Protobuf\Internal\Message -{ - /** - * The text that displays in the grid header. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * The items to display in the grid. - * - * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; - */ - private $items; - /** - * The border style to apply to each grid item. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; - */ - protected $border_style = null; - /** - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * - * Generated from protobuf field int32 column_count = 4; - */ - protected $column_count = 0; - /** - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * The text that displays in the grid header. - * @type array<\Google\Apps\Card\V1\Grid\GridItem>|\Google\Protobuf\Internal\RepeatedField $items - * The items to display in the grid. - * @type \Google\Apps\Card\V1\BorderStyle $border_style - * The border style to apply to each grid item. - * @type int $column_count - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * @type \Google\Apps\Card\V1\OnClick $on_click - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text that displays in the grid header. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The text that displays in the grid header. - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The items to display in the grid. - * - * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * The items to display in the grid. - * - * Generated from protobuf field repeated .google.apps.card.v1.Grid.GridItem items = 2; - * @param array<\Google\Apps\Card\V1\Grid\GridItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Grid\GridItem::class); - $this->items = $arr; - - return $this; - } - - /** - * The border style to apply to each grid item. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; - * @return \Google\Apps\Card\V1\BorderStyle|null - */ - public function getBorderStyle() - { - return $this->border_style; - } - - public function hasBorderStyle() - { - return isset($this->border_style); - } - - public function clearBorderStyle() - { - unset($this->border_style); - } - - /** - * The border style to apply to each grid item. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 3; - * @param \Google\Apps\Card\V1\BorderStyle $var - * @return $this - */ - public function setBorderStyle($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\BorderStyle::class); - $this->border_style = $var; - - return $this; - } - - /** - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * - * Generated from protobuf field int32 column_count = 4; - * @return int - */ - public function getColumnCount() - { - return $this->column_count; - } - - /** - * The number of columns to display in the grid. A default value - * is used if this field isn't specified, and that default value is - * different depending on where the grid is shown (dialog versus companion). - * - * Generated from protobuf field int32 column_count = 4; - * @param int $var - * @return $this - */ - public function setColumnCount($var) - { - GPBUtil::checkInt32($var); - $this->column_count = $var; - - return $this; - } - - /** - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * This callback is reused by each individual grid item, but with the - * item's identifier and index in the items list added to the callback's - * parameters. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 5; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php deleted file mode 100644 index d795142ccd5d..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem.php +++ /dev/null @@ -1,223 +0,0 @@ -google.apps.card.v1.Grid.GridItem - */ -class GridItem extends \Google\Protobuf\Internal\Message -{ - /** - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The image that displays in the grid item. - * - * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; - */ - protected $image = null; - /** - * The grid item's title. - * - * Generated from protobuf field string title = 3; - */ - protected $title = ''; - /** - * The grid item's subtitle. - * - * Generated from protobuf field string subtitle = 4; - */ - protected $subtitle = ''; - /** - * The layout to use for the grid item. - * - * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; - */ - protected $layout = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * @type \Google\Apps\Card\V1\ImageComponent $image - * The image that displays in the grid item. - * @type string $title - * The grid item's title. - * @type string $subtitle - * The grid item's subtitle. - * @type int $layout - * The layout to use for the grid item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * A user-specified identifier for this grid item. This identifier is - * returned in the parent grid's `onClick` callback parameters. - * - * 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; - } - - /** - * The image that displays in the grid item. - * - * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; - * @return \Google\Apps\Card\V1\ImageComponent|null - */ - public function getImage() - { - return $this->image; - } - - public function hasImage() - { - return isset($this->image); - } - - public function clearImage() - { - unset($this->image); - } - - /** - * The image that displays in the grid item. - * - * Generated from protobuf field .google.apps.card.v1.ImageComponent image = 2; - * @param \Google\Apps\Card\V1\ImageComponent $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ImageComponent::class); - $this->image = $var; - - return $this; - } - - /** - * The grid item's title. - * - * Generated from protobuf field string title = 3; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The grid item's title. - * - * Generated from protobuf field string title = 3; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The grid item's subtitle. - * - * Generated from protobuf field string subtitle = 4; - * @return string - */ - public function getSubtitle() - { - return $this->subtitle; - } - - /** - * The grid item's subtitle. - * - * Generated from protobuf field string subtitle = 4; - * @param string $var - * @return $this - */ - public function setSubtitle($var) - { - GPBUtil::checkString($var, True); - $this->subtitle = $var; - - return $this; - } - - /** - * The layout to use for the grid item. - * - * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; - * @return int - */ - public function getLayout() - { - return $this->layout; - } - - /** - * The layout to use for the grid item. - * - * Generated from protobuf field .google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9; - * @param int $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Grid\GridItem\GridItemLayout::class); - $this->layout = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GridItem::class, \Google\Apps\Card\V1\Grid_GridItem::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php deleted file mode 100644 index 1606b65a4919..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Grid/GridItem/GridItemLayout.php +++ /dev/null @@ -1,66 +0,0 @@ -google.apps.card.v1.Grid.GridItem.GridItemLayout - */ -class GridItemLayout -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum GRID_ITEM_LAYOUT_UNSPECIFIED = 0; - */ - const GRID_ITEM_LAYOUT_UNSPECIFIED = 0; - /** - * The title and subtitle are shown below the grid item's image. - * - * Generated from protobuf enum TEXT_BELOW = 1; - */ - const TEXT_BELOW = 1; - /** - * The title and subtitle are shown above the grid item's image. - * - * Generated from protobuf enum TEXT_ABOVE = 2; - */ - const TEXT_ABOVE = 2; - - private static $valueToName = [ - self::GRID_ITEM_LAYOUT_UNSPECIFIED => 'GRID_ITEM_LAYOUT_UNSPECIFIED', - self::TEXT_BELOW => 'TEXT_BELOW', - self::TEXT_ABOVE => 'TEXT_ABOVE', - ]; - - 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(GridItemLayout::class, \Google\Apps\Card\V1\Grid_GridItem_GridItemLayout::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php deleted file mode 100644 index e3ef2178b1cb..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Icon.php +++ /dev/null @@ -1,318 +0,0 @@ -google.apps.card.v1.Icon - */ -class Icon extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * - * Generated from protobuf field string alt_text = 3; - */ - protected $alt_text = ''; - /** - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; - */ - protected $image_type = 0; - protected $icons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $known_icon - * Display one of the built-in icons provided by Google Workspace. - * For example, to display an airplane icon, specify `AIRPLANE`. - * For a bus, specify `BUS`. - * For a full list of supported icons, see [built-in - * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). - * @type string $icon_url - * Display a custom icon hosted at an HTTPS URL. - * For example: - * ``` - * "iconUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" - * ``` - * Supported file types include `.png` and `.jpg`. - * @type \Google\Apps\Card\V1\MaterialIcon $material_icon - * Display one of the [Google Material - * Icons](https://fonts.google.com/icons). - * For example, to display a [checkbox - * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), - * use - * ``` - * "material_icon": { - * "name": "check_box" - * } - * ``` - * [Google Chat apps](https://developers.google.com/workspace/chat): - * @type string $alt_text - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * @type int $image_type - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Display one of the built-in icons provided by Google Workspace. - * For example, to display an airplane icon, specify `AIRPLANE`. - * For a bus, specify `BUS`. - * For a full list of supported icons, see [built-in - * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). - * - * Generated from protobuf field string known_icon = 1; - * @return string - */ - public function getKnownIcon() - { - return $this->readOneof(1); - } - - public function hasKnownIcon() - { - return $this->hasOneof(1); - } - - /** - * Display one of the built-in icons provided by Google Workspace. - * For example, to display an airplane icon, specify `AIRPLANE`. - * For a bus, specify `BUS`. - * For a full list of supported icons, see [built-in - * icons](https://developers.google.com/workspace/chat/format-messages#builtinicons). - * - * Generated from protobuf field string known_icon = 1; - * @param string $var - * @return $this - */ - public function setKnownIcon($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Display a custom icon hosted at an HTTPS URL. - * For example: - * ``` - * "iconUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" - * ``` - * Supported file types include `.png` and `.jpg`. - * - * Generated from protobuf field string icon_url = 2; - * @return string - */ - public function getIconUrl() - { - return $this->readOneof(2); - } - - public function hasIconUrl() - { - return $this->hasOneof(2); - } - - /** - * Display a custom icon hosted at an HTTPS URL. - * For example: - * ``` - * "iconUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png" - * ``` - * Supported file types include `.png` and `.jpg`. - * - * Generated from protobuf field string icon_url = 2; - * @param string $var - * @return $this - */ - public function setIconUrl($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Display one of the [Google Material - * Icons](https://fonts.google.com/icons). - * For example, to display a [checkbox - * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), - * use - * ``` - * "material_icon": { - * "name": "check_box" - * } - * ``` - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.MaterialIcon material_icon = 5; - * @return \Google\Apps\Card\V1\MaterialIcon|null - */ - public function getMaterialIcon() - { - return $this->readOneof(5); - } - - public function hasMaterialIcon() - { - return $this->hasOneof(5); - } - - /** - * Display one of the [Google Material - * Icons](https://fonts.google.com/icons). - * For example, to display a [checkbox - * icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), - * use - * ``` - * "material_icon": { - * "name": "check_box" - * } - * ``` - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field .google.apps.card.v1.MaterialIcon material_icon = 5; - * @param \Google\Apps\Card\V1\MaterialIcon $var - * @return $this - */ - public function setMaterialIcon($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\MaterialIcon::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * - * Generated from protobuf field string alt_text = 3; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * Optional. A description of the icon used for accessibility. - * If unspecified, the default value `Button` is provided. As a best practice, - * you should set a helpful description for what the icon displays, and if - * applicable, what it does. For example, `A user's account portrait`, or - * `Opens a new browser tab and navigates to the Google Chat developer - * documentation at https://developers.google.com/workspace/chat`. - * If the icon is set in a [`Button`][google.apps.card.v1.Button], the - * `altText` appears as helper text when the user hovers over the button. - * However, if the button also sets `text`, the icon's `altText` is ignored. - * - * Generated from protobuf field string alt_text = 3; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - - /** - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; - * @return int - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The crop style applied to the image. In some cases, applying a - * `CIRCLE` crop causes the image to be drawn larger than a built-in - * icon. - * - * Generated from protobuf field .google.apps.card.v1.Widget.ImageType image_type = 4; - * @param int $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\ImageType::class); - $this->image_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getIcons() - { - return $this->whichOneof("icons"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php deleted file mode 100644 index 9cd6c58f1608..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Image.php +++ /dev/null @@ -1,165 +0,0 @@ -google.apps.card.v1.Image - */ -class Image extends \Google\Protobuf\Internal\Message -{ - /** - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * - * Generated from protobuf field string image_url = 1; - */ - protected $image_url = ''; - /** - * When a user clicks the image, the click triggers this action. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - */ - protected $on_click = null; - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string alt_text = 3; - */ - protected $alt_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_url - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * @type \Google\Apps\Card\V1\OnClick $on_click - * When a user clicks the image, the click triggers this action. - * @type string $alt_text - * The alternative text of this image that's used for accessibility. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * - * Generated from protobuf field string image_url = 1; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The HTTPS URL that hosts the image. - * For example: - * ``` - * https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png - * ``` - * - * Generated from protobuf field string image_url = 1; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - - /** - * When a user clicks the image, the click triggers this action. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @return \Google\Apps\Card\V1\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * When a user clicks the image, the click triggers this action. - * - * Generated from protobuf field .google.apps.card.v1.OnClick on_click = 2; - * @param \Google\Apps\Card\V1\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string alt_text = 3; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * The alternative text of this image that's used for accessibility. - * - * Generated from protobuf field string alt_text = 3; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php deleted file mode 100644 index b0b07608f838..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageComponent.php +++ /dev/null @@ -1,191 +0,0 @@ -google.apps.card.v1.ImageComponent - */ -class ImageComponent extends \Google\Protobuf\Internal\Message -{ - /** - * The image URL. - * - * Generated from protobuf field string image_uri = 1; - */ - protected $image_uri = ''; - /** - * The accessibility label for the image. - * - * Generated from protobuf field string alt_text = 2; - */ - protected $alt_text = ''; - /** - * The crop style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; - */ - protected $crop_style = null; - /** - * The border style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; - */ - protected $border_style = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_uri - * The image URL. - * @type string $alt_text - * The accessibility label for the image. - * @type \Google\Apps\Card\V1\ImageCropStyle $crop_style - * The crop style to apply to the image. - * @type \Google\Apps\Card\V1\BorderStyle $border_style - * The border style to apply to the image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The image URL. - * - * Generated from protobuf field string image_uri = 1; - * @return string - */ - public function getImageUri() - { - return $this->image_uri; - } - - /** - * The image URL. - * - * Generated from protobuf field string image_uri = 1; - * @param string $var - * @return $this - */ - public function setImageUri($var) - { - GPBUtil::checkString($var, True); - $this->image_uri = $var; - - return $this; - } - - /** - * The accessibility label for the image. - * - * Generated from protobuf field string alt_text = 2; - * @return string - */ - public function getAltText() - { - return $this->alt_text; - } - - /** - * The accessibility label for the image. - * - * Generated from protobuf field string alt_text = 2; - * @param string $var - * @return $this - */ - public function setAltText($var) - { - GPBUtil::checkString($var, True); - $this->alt_text = $var; - - return $this; - } - - /** - * The crop style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; - * @return \Google\Apps\Card\V1\ImageCropStyle|null - */ - public function getCropStyle() - { - return $this->crop_style; - } - - public function hasCropStyle() - { - return isset($this->crop_style); - } - - public function clearCropStyle() - { - unset($this->crop_style); - } - - /** - * The crop style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle crop_style = 3; - * @param \Google\Apps\Card\V1\ImageCropStyle $var - * @return $this - */ - public function setCropStyle($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ImageCropStyle::class); - $this->crop_style = $var; - - return $this; - } - - /** - * The border style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; - * @return \Google\Apps\Card\V1\BorderStyle|null - */ - public function getBorderStyle() - { - return $this->border_style; - } - - public function hasBorderStyle() - { - return isset($this->border_style); - } - - public function clearBorderStyle() - { - unset($this->border_style); - } - - /** - * The border style to apply to the image. - * - * Generated from protobuf field .google.apps.card.v1.BorderStyle border_style = 4; - * @param \Google\Apps\Card\V1\BorderStyle $var - * @return $this - */ - public function setBorderStyle($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\BorderStyle::class); - $this->border_style = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php deleted file mode 100644 index eb70bd52adf0..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle.php +++ /dev/null @@ -1,138 +0,0 @@ -google.apps.card.v1.ImageCropStyle - */ -class ImageCropStyle extends \Google\Protobuf\Internal\Message -{ - /** - * The crop type. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; - */ - protected $type = 0; - /** - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * - * Generated from protobuf field double aspect_ratio = 2; - */ - protected $aspect_ratio = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The crop type. - * @type float $aspect_ratio - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The crop type. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The crop type. - * - * Generated from protobuf field .google.apps.card.v1.ImageCropStyle.ImageCropType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\ImageCropStyle\ImageCropType::class); - $this->type = $var; - - return $this; - } - - /** - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * - * Generated from protobuf field double aspect_ratio = 2; - * @return float - */ - public function getAspectRatio() - { - return $this->aspect_ratio; - } - - /** - * The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`. - * For example, here's how to apply a 16:9 aspect ratio: - * ``` - * cropStyle { - * "type": "RECTANGLE_CUSTOM", - * "aspectRatio": 16/9 - * } - * ``` - * - * Generated from protobuf field double aspect_ratio = 2; - * @param float $var - * @return $this - */ - public function setAspectRatio($var) - { - GPBUtil::checkDouble($var); - $this->aspect_ratio = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php deleted file mode 100644 index 2f8d14d52fba..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/ImageCropStyle/ImageCropType.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.card.v1.ImageCropStyle.ImageCropType - */ -class ImageCropType -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum IMAGE_CROP_TYPE_UNSPECIFIED = 0; - */ - const IMAGE_CROP_TYPE_UNSPECIFIED = 0; - /** - * Default value. Applies a square crop. - * - * Generated from protobuf enum SQUARE = 1; - */ - const SQUARE = 1; - /** - * Applies a circular crop. - * - * Generated from protobuf enum CIRCLE = 2; - */ - const CIRCLE = 2; - /** - * Applies a rectangular crop with a custom aspect ratio. Set the custom - * aspect ratio with `aspectRatio`. - * - * Generated from protobuf enum RECTANGLE_CUSTOM = 3; - */ - const RECTANGLE_CUSTOM = 3; - /** - * Applies a rectangular crop with a 4:3 aspect ratio. - * - * Generated from protobuf enum RECTANGLE_4_3 = 4; - */ - const RECTANGLE_4_3 = 4; - - private static $valueToName = [ - self::IMAGE_CROP_TYPE_UNSPECIFIED => 'IMAGE_CROP_TYPE_UNSPECIFIED', - self::SQUARE => 'SQUARE', - self::CIRCLE => 'CIRCLE', - self::RECTANGLE_CUSTOM => 'RECTANGLE_CUSTOM', - self::RECTANGLE_4_3 => 'RECTANGLE_4_3', - ]; - - 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(ImageCropType::class, \Google\Apps\Card\V1\ImageCropStyle_ImageCropType::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php deleted file mode 100644 index f37b5ed6e401..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/MaterialIcon.php +++ /dev/null @@ -1,250 +0,0 @@ -google.apps.card.v1.MaterialIcon - */ -class MaterialIcon extends \Google\Protobuf\Internal\Message -{ - /** - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field bool fill = 2; - */ - protected $fill = false; - /** - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 weight = 3; - */ - protected $weight = 0; - /** - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 grade = 4; - */ - protected $grade = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * @type bool $fill - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * @type int $weight - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * @type int $grade - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The icon name defined in the [Google Material - * Icon](https://fonts.google.com/icons), for example, `check_box`. Any - * invalid names are abandoned and replaced with empty string and - * results in the icon failing to render. - * - * 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; - } - - /** - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field bool fill = 2; - * @return bool - */ - public function getFill() - { - return $this->fill; - } - - /** - * Whether the icon renders as filled. Default value is false. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field bool fill = 2; - * @param bool $var - * @return $this - */ - public function setFill($var) - { - GPBUtil::checkBool($var); - $this->fill = $var; - - return $this; - } - - /** - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 weight = 3; - * @return int - */ - public function getWeight() - { - return $this->weight; - } - - /** - * The stroke weight of the icon. Choose from {100, 200, 300, 400, - * 500, 600, 700}. If absent, default value is 400. If any other value is - * specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 weight = 3; - * @param int $var - * @return $this - */ - public function setWeight($var) - { - GPBUtil::checkInt32($var); - $this->weight = $var; - - return $this; - } - - /** - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 grade = 4; - * @return int - */ - public function getGrade() - { - return $this->grade; - } - - /** - * Weight and grade affect a symbol’s thickness. Adjustments to grade are more - * granular than adjustments to weight and have a small impact on the size of - * the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If - * any other value is specified, the default value is used. - * To preview different icon settings, go to - * [Google Font Icons](https://fonts.google.com/icons) and adjust the - * settings under **Customize**. - * - * Generated from protobuf field int32 grade = 4; - * @param int $var - * @return $this - */ - public function setGrade($var) - { - GPBUtil::checkInt32($var); - $this->grade = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php deleted file mode 100644 index 7fe0139a6eda..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OnClick.php +++ /dev/null @@ -1,198 +0,0 @@ -google.apps.card.v1.OnClick - */ -class OnClick extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Action $action - * If specified, an action is triggered by this `onClick`. - * @type \Google\Apps\Card\V1\OpenLink $open_link - * If specified, this `onClick` triggers an open link action. - * @type \Google\Apps\Card\V1\Action $open_dynamic_link_action - * An add-on triggers this action when the action needs to open a - * link. This differs from the `open_link` above in that this needs to talk - * to server to get the link. Thus some preparation work is required for - * web client to do before the open link action response comes back. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * @type \Google\Apps\Card\V1\Card $card - * A new card is pushed to the card stack after clicking if specified. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * If specified, an action is triggered by this `onClick`. - * - * Generated from protobuf field .google.apps.card.v1.Action action = 1; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getAction() - { - return $this->readOneof(1); - } - - public function hasAction() - { - return $this->hasOneof(1); - } - - /** - * If specified, an action is triggered by this `onClick`. - * - * Generated from protobuf field .google.apps.card.v1.Action action = 1; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * If specified, this `onClick` triggers an open link action. - * - * Generated from protobuf field .google.apps.card.v1.OpenLink open_link = 2; - * @return \Google\Apps\Card\V1\OpenLink|null - */ - public function getOpenLink() - { - return $this->readOneof(2); - } - - public function hasOpenLink() - { - return $this->hasOneof(2); - } - - /** - * If specified, this `onClick` triggers an open link action. - * - * Generated from protobuf field .google.apps.card.v1.OpenLink open_link = 2; - * @param \Google\Apps\Card\V1\OpenLink $var - * @return $this - */ - public function setOpenLink($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\OpenLink::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * An add-on triggers this action when the action needs to open a - * link. This differs from the `open_link` above in that this needs to talk - * to server to get the link. Thus some preparation work is required for - * web client to do before the open link action response comes back. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action open_dynamic_link_action = 3; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOpenDynamicLinkAction() - { - return $this->readOneof(3); - } - - public function hasOpenDynamicLinkAction() - { - return $this->hasOneof(3); - } - - /** - * An add-on triggers this action when the action needs to open a - * link. This differs from the `open_link` above in that this needs to talk - * to server to get the link. Thus some preparation work is required for - * web client to do before the open link action response comes back. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action open_dynamic_link_action = 3; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOpenDynamicLinkAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A new card is pushed to the card stack after clicking if specified. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card card = 4; - * @return \Google\Apps\Card\V1\Card|null - */ - public function getCard() - { - return $this->readOneof(4); - } - - public function hasCard() - { - return $this->hasOneof(4); - } - - /** - * A new card is pushed to the card stack after clicking if specified. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Card card = 4; - * @param \Google\Apps\Card\V1\Card $var - * @return $this - */ - public function setCard($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php deleted file mode 100644 index f401cd8d1c40..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink.php +++ /dev/null @@ -1,157 +0,0 @@ -google.apps.card.v1.OpenLink - */ -class OpenLink extends \Google\Protobuf\Internal\Message -{ - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * How to open a link. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; - */ - protected $open_as = 0; - /** - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; - */ - protected $on_close = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The URL to open. - * @type int $open_as - * How to open a link. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * @type int $on_close - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * How to open a link. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; - * @return int - */ - public function getOpenAs() - { - return $this->open_as; - } - - /** - * How to open a link. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OpenAs open_as = 2; - * @param int $var - * @return $this - */ - public function setOpenAs($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\OpenLink\OpenAs::class); - $this->open_as = $var; - - return $this; - } - - /** - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; - * @return int - */ - public function getOnClose() - { - return $this->on_close; - } - - /** - * Whether the client forgets about a link after opening it, or observes it - * until the window closes. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.OpenLink.OnClose on_close = 3; - * @param int $var - * @return $this - */ - public function setOnClose($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\OpenLink\OnClose::class); - $this->on_close = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php deleted file mode 100644 index 59451bd34764..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OnClose.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.card.v1.OpenLink.OnClose - */ -class OnClose -{ - /** - * Default value. The card doesn't reload; nothing happens. - * - * Generated from protobuf enum NOTHING = 0; - */ - const NOTHING = 0; - /** - * Reloads the card after the child window closes. - * If used in conjunction with - * [`OpenAs.OVERLAY`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#openas), - * the child window acts as a modal dialog and the parent card is blocked - * until the child window closes. - * - * Generated from protobuf enum RELOAD = 1; - */ - const RELOAD = 1; - - private static $valueToName = [ - self::NOTHING => 'NOTHING', - self::RELOAD => 'RELOAD', - ]; - - 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(OnClose::class, \Google\Apps\Card\V1\OpenLink_OnClose::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php deleted file mode 100644 index 766a2b61633d..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/OpenLink/OpenAs.php +++ /dev/null @@ -1,64 +0,0 @@ -google.apps.card.v1.OpenLink.OpenAs - */ -class OpenAs -{ - /** - * The link opens as a full-size window (if that's the frame used by the - * client). - * - * Generated from protobuf enum FULL_SIZE = 0; - */ - const FULL_SIZE = 0; - /** - * The link opens as an overlay, such as a pop-up. - * - * Generated from protobuf enum OVERLAY = 1; - */ - const OVERLAY = 1; - - private static $valueToName = [ - self::FULL_SIZE => 'FULL_SIZE', - self::OVERLAY => 'OVERLAY', - ]; - - 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(OpenAs::class, \Google\Apps\Card\V1\OpenLink_OpenAs::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php deleted file mode 100644 index 8ae42a18e5d9..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput.php +++ /dev/null @@ -1,439 +0,0 @@ -google.apps.card.v1.SelectionInput - */ -class SelectionInput extends \Google\Protobuf\Internal\Message -{ - /** - * The name that identifies the selection input in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The text that appears above the selection input field in the user - * interface. - * Specify text that helps the user enter the information your app needs. - * For example, if users are selecting the urgency of a work ticket from a - * drop-down menu, the label might be "Urgency" or "Select urgency". - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * The type of items that are displayed to users in a `SelectionInput` widget. - * Selection types support different types of interactions. For example, users - * can select one or more checkboxes, but they can only select one value from - * a dropdown menu. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; - */ - protected $type = 0; - /** - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; - */ - private $items; - /** - * If specified, the form is submitted when the selection changes. If not - * specified, you must specify a separate button that submits the form. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; - */ - protected $on_change_action = null; - /** - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * - * Generated from protobuf field int32 multi_select_max_selected_items = 6; - */ - protected $multi_select_max_selected_items = 0; - /** - * For multiselect menus, the number of text characters that a user inputs - * before the app queries autocomplete and displays suggested items - * in the menu. - * If unspecified, defaults to 0 characters for static data sources and 3 - * characters for external data sources. - * - * Generated from protobuf field int32 multi_select_min_query_length = 7; - */ - protected $multi_select_min_query_length = 0; - protected $multi_select_data_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name that identifies the selection input in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type string $label - * The text that appears above the selection input field in the user - * interface. - * Specify text that helps the user enter the information your app needs. - * For example, if users are selecting the urgency of a work ticket from a - * drop-down menu, the label might be "Urgency" or "Select urgency". - * @type int $type - * The type of items that are displayed to users in a `SelectionInput` widget. - * Selection types support different types of interactions. For example, users - * can select one or more checkboxes, but they can only select one value from - * a dropdown menu. - * @type array<\Google\Apps\Card\V1\SelectionInput\SelectionItem>|\Google\Protobuf\Internal\RepeatedField $items - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * @type \Google\Apps\Card\V1\Action $on_change_action - * If specified, the form is submitted when the selection changes. If not - * specified, you must specify a separate button that submits the form. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type int $multi_select_max_selected_items - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * @type int $multi_select_min_query_length - * For multiselect menus, the number of text characters that a user inputs - * before the app queries autocomplete and displays suggested items - * in the menu. - * If unspecified, defaults to 0 characters for static data sources and 3 - * characters for external data sources. - * @type \Google\Apps\Card\V1\Action $external_data_source - * An external data source, such as a relational data base. - * @type \Google\Apps\Card\V1\SelectionInput\PlatformDataSource $platform_data_source - * A data source from Google Workspace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name that identifies the selection input in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name that identifies the selection input in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * 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; - } - - /** - * The text that appears above the selection input field in the user - * interface. - * Specify text that helps the user enter the information your app needs. - * For example, if users are selecting the urgency of a work ticket from a - * drop-down menu, the label might be "Urgency" or "Select urgency". - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * The text that appears above the selection input field in the user - * interface. - * Specify text that helps the user enter the information your app needs. - * For example, if users are selecting the urgency of a work ticket from a - * drop-down menu, the label might be "Urgency" or "Select urgency". - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * The type of items that are displayed to users in a `SelectionInput` widget. - * Selection types support different types of interactions. For example, users - * can select one or more checkboxes, but they can only select one value from - * a dropdown menu. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of items that are displayed to users in a `SelectionInput` widget. - * Selection types support different types of interactions. For example, users - * can select one or more checkboxes, but they can only select one value from - * a dropdown menu. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.SelectionType type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\SelectionInput\SelectionType::class); - $this->type = $var; - - return $this; - } - - /** - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * An array of selectable items. For example, an array of radio buttons or - * checkboxes. Supports up to 100 items. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4; - * @param array<\Google\Apps\Card\V1\SelectionInput\SelectionItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\SelectionInput\SelectionItem::class); - $this->items = $arr; - - return $this; - } - - /** - * If specified, the form is submitted when the selection changes. If not - * specified, you must specify a separate button that submits the form. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * If specified, the form is submitted when the selection changes. If not - * specified, you must specify a separate button that submits the form. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 5; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - - /** - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * - * Generated from protobuf field int32 multi_select_max_selected_items = 6; - * @return int - */ - public function getMultiSelectMaxSelectedItems() - { - return $this->multi_select_max_selected_items; - } - - /** - * For multiselect menus, the maximum number of items that a user can select. - * Minimum value is 1 item. If unspecified, defaults to 3 items. - * - * Generated from protobuf field int32 multi_select_max_selected_items = 6; - * @param int $var - * @return $this - */ - public function setMultiSelectMaxSelectedItems($var) - { - GPBUtil::checkInt32($var); - $this->multi_select_max_selected_items = $var; - - return $this; - } - - /** - * For multiselect menus, the number of text characters that a user inputs - * before the app queries autocomplete and displays suggested items - * in the menu. - * If unspecified, defaults to 0 characters for static data sources and 3 - * characters for external data sources. - * - * Generated from protobuf field int32 multi_select_min_query_length = 7; - * @return int - */ - public function getMultiSelectMinQueryLength() - { - return $this->multi_select_min_query_length; - } - - /** - * For multiselect menus, the number of text characters that a user inputs - * before the app queries autocomplete and displays suggested items - * in the menu. - * If unspecified, defaults to 0 characters for static data sources and 3 - * characters for external data sources. - * - * Generated from protobuf field int32 multi_select_min_query_length = 7; - * @param int $var - * @return $this - */ - public function setMultiSelectMinQueryLength($var) - { - GPBUtil::checkInt32($var); - $this->multi_select_min_query_length = $var; - - return $this; - } - - /** - * An external data source, such as a relational data base. - * - * Generated from protobuf field .google.apps.card.v1.Action external_data_source = 8; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getExternalDataSource() - { - return $this->readOneof(8); - } - - public function hasExternalDataSource() - { - return $this->hasOneof(8); - } - - /** - * An external data source, such as a relational data base. - * - * Generated from protobuf field .google.apps.card.v1.Action external_data_source = 8; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setExternalDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * A data source from Google Workspace. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9; - * @return \Google\Apps\Card\V1\SelectionInput\PlatformDataSource|null - */ - public function getPlatformDataSource() - { - return $this->readOneof(9); - } - - public function hasPlatformDataSource() - { - return $this->hasOneof(9); - } - - /** - * A data source from Google Workspace. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9; - * @param \Google\Apps\Card\V1\SelectionInput\PlatformDataSource $var - * @return $this - */ - public function setPlatformDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput\PlatformDataSource::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getMultiSelectDataSource() - { - return $this->whichOneof("multi_select_data_source"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php deleted file mode 100644 index 024e15ecdbc6..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource.php +++ /dev/null @@ -1,85 +0,0 @@ -google.apps.card.v1.SelectionInput.PlatformDataSource - */ -class PlatformDataSource extends \Google\Protobuf\Internal\Message -{ - protected $data_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $common_data_source - * A data source shared by all Google Workspace applications, such as - * users in a Google Workspace organization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A data source shared by all Google Workspace applications, such as - * users in a Google Workspace organization. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1; - * @return int - */ - public function getCommonDataSource() - { - return $this->readOneof(1); - } - - public function hasCommonDataSource() - { - return $this->hasOneof(1); - } - - /** - * A data source shared by all Google Workspace applications, such as - * users in a Google Workspace organization. - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1; - * @param int $var - * @return $this - */ - public function setCommonDataSource($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\SelectionInput\PlatformDataSource\CommonDataSource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDataSource() - { - return $this->whichOneof("data_source"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PlatformDataSource::class, \Google\Apps\Card\V1\SelectionInput_PlatformDataSource::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php deleted file mode 100644 index 21ad04475763..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/PlatformDataSource/CommonDataSource.php +++ /dev/null @@ -1,61 +0,0 @@ -google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource - */ -class CommonDataSource -{ - /** - * Default value. Don't use. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Google Workspace users. The user can only view and select users from - * their Google Workspace organization. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - 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(CommonDataSource::class, \Google\Apps\Card\V1\SelectionInput_PlatformDataSource_CommonDataSource::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php deleted file mode 100644 index fbbde773450d..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionItem.php +++ /dev/null @@ -1,245 +0,0 @@ -google.apps.card.v1.SelectionInput.SelectionItem - */ -class SelectionItem extends \Google\Protobuf\Internal\Message -{ - /** - * The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * - * Generated from protobuf field bool selected = 3; - */ - protected $selected = false; - /** - * For multiselect menus, the URL for the icon displayed next to - * the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` - * URL. For example, - * `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`. - * - * Generated from protobuf field string start_icon_uri = 4; - */ - protected $start_icon_uri = ''; - /** - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * - * Generated from protobuf field string bottom_text = 5; - */ - protected $bottom_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text that identifies or describes the item to users. - * @type string $value - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type bool $selected - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * @type string $start_icon_uri - * For multiselect menus, the URL for the icon displayed next to - * the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` - * URL. For example, - * `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`. - * @type string $bottom_text - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text that identifies or describes the item to users. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value associated with this item. The client should use this as a form - * input value. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * - * Generated from protobuf field bool selected = 3; - * @return bool - */ - public function getSelected() - { - return $this->selected; - } - - /** - * Whether the item is selected by default. If the selection input only - * accepts one value (such as for radio buttons or a dropdown menu), only - * set this field for one item. - * - * Generated from protobuf field bool selected = 3; - * @param bool $var - * @return $this - */ - public function setSelected($var) - { - GPBUtil::checkBool($var); - $this->selected = $var; - - return $this; - } - - /** - * For multiselect menus, the URL for the icon displayed next to - * the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` - * URL. For example, - * `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`. - * - * Generated from protobuf field string start_icon_uri = 4; - * @return string - */ - public function getStartIconUri() - { - return $this->start_icon_uri; - } - - /** - * For multiselect menus, the URL for the icon displayed next to - * the item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS` - * URL. For example, - * `https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`. - * - * Generated from protobuf field string start_icon_uri = 4; - * @param string $var - * @return $this - */ - public function setStartIconUri($var) - { - GPBUtil::checkString($var, True); - $this->start_icon_uri = $var; - - return $this; - } - - /** - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * - * Generated from protobuf field string bottom_text = 5; - * @return string - */ - public function getBottomText() - { - return $this->bottom_text; - } - - /** - * For multiselect menus, a text description or label that's - * displayed below the item's `text` field. - * - * Generated from protobuf field string bottom_text = 5; - * @param string $var - * @return $this - */ - public function setBottomText($var) - { - GPBUtil::checkString($var, True); - $this->bottom_text = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SelectionItem::class, \Google\Apps\Card\V1\SelectionInput_SelectionItem::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php deleted file mode 100644 index 4bdaf77acf90..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/SelectionInput/SelectionType.php +++ /dev/null @@ -1,106 +0,0 @@ -google.apps.card.v1.SelectionInput.SelectionType - */ -class SelectionType -{ - /** - * A set of checkboxes. Users can select one or more checkboxes. - * - * Generated from protobuf enum CHECK_BOX = 0; - */ - const CHECK_BOX = 0; - /** - * A set of radio buttons. Users can select one radio button. - * - * Generated from protobuf enum RADIO_BUTTON = 1; - */ - const RADIO_BUTTON = 1; - /** - * A set of switches. Users can turn on one or more switches. - * - * Generated from protobuf enum SWITCH = 2; - */ - const PBSWITCH = 2; - /** - * A dropdown menu. Users can select one item from the menu. - * - * Generated from protobuf enum DROPDOWN = 3; - */ - const DROPDOWN = 3; - /** - * A multiselect menu for static or dynamic data. From the menu bar, - * users select one or more items. Users can also input values to populate - * dynamic data. For example, users can start typing the name of a Google - * Chat space and the widget autosuggests the space. - * To populate items for a multiselect menu, you can use one of the - * following types of data sources: - * * Static data: Items are specified as `SelectionItem` objects in the - * widget. Up to 100 items. - * * Google Workspace data: Items are populated using data from Google - * Workspace, such as Google Workspace users or Google Chat spaces. - * * External data: Items are populated from an external data - * source outside of Google Workspace. - * For examples of how to implement multiselect menus, see - * [Add a multiselect - * menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#multiselect-menu). - * [Google Workspace Add-ons and Chat - * apps](https://developers.google.com/workspace/extend): - * Multiselect for Google Workspace Add-ons are in - * Developer Preview. - * - * Generated from protobuf enum MULTI_SELECT = 4; - */ - const MULTI_SELECT = 4; - - private static $valueToName = [ - self::CHECK_BOX => 'CHECK_BOX', - self::RADIO_BUTTON => 'RADIO_BUTTON', - self::PBSWITCH => 'SWITCH', - self::DROPDOWN => 'DROPDOWN', - self::MULTI_SELECT => 'MULTI_SELECT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SelectionType::class, \Google\Apps\Card\V1\SelectionInput_SelectionType::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php deleted file mode 100644 index 7efd8f319cfc..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions.php +++ /dev/null @@ -1,84 +0,0 @@ -google.apps.card.v1.Suggestions - */ -class Suggestions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * - * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Card\V1\Suggestions\SuggestionItem>|\Google\Protobuf\Internal\RepeatedField $items - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * - * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * A list of suggestions used for autocomplete recommendations in text input - * fields. - * - * Generated from protobuf field repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1; - * @param array<\Google\Apps\Card\V1\Suggestions\SuggestionItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\Suggestions\SuggestionItem::class); - $this->items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php deleted file mode 100644 index b984a0a486ef..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Suggestions/SuggestionItem.php +++ /dev/null @@ -1,83 +0,0 @@ -google.apps.card.v1.Suggestions.SuggestionItem - */ -class SuggestionItem extends \Google\Protobuf\Internal\Message -{ - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The value of a suggested input to a text input field. This is - * equivalent to what users enter themselves. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The value of a suggested input to a text input field. This is - * equivalent to what users enter themselves. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->readOneof(1); - } - - public function hasText() - { - return $this->hasOneof(1); - } - - /** - * The value of a suggested input to a text input field. This is - * equivalent to what users enter themselves. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SuggestionItem::class, \Google\Apps\Card\V1\Suggestions_SuggestionItem::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php deleted file mode 100644 index 60c7cfbed1c4..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput.php +++ /dev/null @@ -1,532 +0,0 @@ -google.apps.card.v1.TextInput - */ -class TextInput extends \Google\Protobuf\Internal\Message -{ - /** - * The name by which the text input is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string hint_text = 3; - */ - protected $hint_text = ''; - /** - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 4; - */ - protected $value = ''; - /** - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * - * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; - */ - protected $type = 0; - /** - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - */ - protected $on_change_action = null; - /** - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * Add-ons and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; - */ - protected $initial_suggestions = null; - /** - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; - */ - protected $auto_complete_action = null; - /** - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field string placeholder_text = 12; - */ - protected $placeholder_text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name by which the text input is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type string $label - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * @type string $hint_text - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * @type string $value - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * @type int $type - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * @type \Google\Apps\Card\V1\Action $on_change_action - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * @type \Google\Apps\Card\V1\Suggestions $initial_suggestions - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * Add-ons and Chat apps](https://developers.google.com/workspace/extend): - * @type \Google\Apps\Card\V1\Action $auto_complete_action - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * @type string $placeholder_text - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The name by which the text input is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name by which the text input is identified in a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * 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; - } - - /** - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * The text that appears above the text input field in the user interface. - * Specify text that helps the user enter the information your app needs. - * For example, if you are asking someone's name, but specifically need their - * surname, write `surname` instead of `name`. - * Required if `hintText` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string hint_text = 3; - * @return string - */ - public function getHintText() - { - return $this->hint_text; - } - - /** - * Text that appears below the text input field meant to assist users by - * prompting them to enter a certain value. This text is always visible. - * Required if `label` is unspecified. Otherwise, optional. - * - * Generated from protobuf field string hint_text = 3; - * @param string $var - * @return $this - */ - public function setHintText($var) - { - GPBUtil::checkString($var, True); - $this->hint_text = $var; - - return $this; - } - - /** - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 4; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value entered by a user, returned as part of a form input event. - * For details about working with form inputs, see [Receive form - * data](https://developers.google.com/workspace/chat/read-form-data). - * - * Generated from protobuf field string value = 4; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * - * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * How a text input field appears in the user interface. - * For example, whether the field is single or multi-line. - * - * Generated from protobuf field .google.apps.card.v1.TextInput.Type type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\TextInput\Type::class); - $this->type = $var; - - return $this; - } - - /** - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getOnChangeAction() - { - return $this->on_change_action; - } - - public function hasOnChangeAction() - { - return isset($this->on_change_action); - } - - public function clearOnChangeAction() - { - unset($this->on_change_action); - } - - /** - * What to do when a change occurs in the text input field. For example, a - * user adding to the field or deleting text. - * Examples of actions to take include running a custom function or opening - * a [dialog](https://developers.google.com/workspace/chat/dialogs) - * in Google Chat. - * - * Generated from protobuf field .google.apps.card.v1.Action on_change_action = 6; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setOnChangeAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->on_change_action = $var; - - return $this; - } - - /** - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * Add-ons and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; - * @return \Google\Apps\Card\V1\Suggestions|null - */ - public function getInitialSuggestions() - { - return $this->initial_suggestions; - } - - public function hasInitialSuggestions() - { - return isset($this->initial_suggestions); - } - - public function clearInitialSuggestions() - { - unset($this->initial_suggestions); - } - - /** - * Suggested values that users can enter. These values appear when users click - * inside the text input field. As users type, the suggested values - * dynamically filter to match what the users have typed. - * For example, a text input field for programming language might suggest - * Java, JavaScript, Python, and C++. When users start typing `Jav`, the list - * of suggestions filters to show just `Java` and `JavaScript`. - * Suggested values help guide users to enter values that your app can make - * sense of. When referring to JavaScript, some users might enter `javascript` - * and others `java script`. Suggesting `JavaScript` can standardize how users - * interact with your app. - * When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set - * to `MULTIPLE_LINE`. - * [Google Workspace - * Add-ons and Chat apps](https://developers.google.com/workspace/extend): - * - * Generated from protobuf field .google.apps.card.v1.Suggestions initial_suggestions = 7; - * @param \Google\Apps\Card\V1\Suggestions $var - * @return $this - */ - public function setInitialSuggestions($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Suggestions::class); - $this->initial_suggestions = $var; - - return $this; - } - - /** - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; - * @return \Google\Apps\Card\V1\Action|null - */ - public function getAutoCompleteAction() - { - return $this->auto_complete_action; - } - - public function hasAutoCompleteAction() - { - return isset($this->auto_complete_action); - } - - public function clearAutoCompleteAction() - { - unset($this->auto_complete_action); - } - - /** - * Optional. Specify what action to take when the text input field provides - * suggestions to users who interact with it. - * If unspecified, the suggestions are set by `initialSuggestions` and - * are processed by the client. - * If specified, the app takes the action specified here, such as running - * a custom function. - * [Google Workspace - * Add-ons](https://developers.google.com/workspace/add-ons): - * - * Generated from protobuf field .google.apps.card.v1.Action auto_complete_action = 8; - * @param \Google\Apps\Card\V1\Action $var - * @return $this - */ - public function setAutoCompleteAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Action::class); - $this->auto_complete_action = $var; - - return $this; - } - - /** - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field string placeholder_text = 12; - * @return string - */ - public function getPlaceholderText() - { - return $this->placeholder_text; - } - - /** - * Text that appears in the text input field when the field is empty. - * Use this text to prompt users to enter a value. For example, `Enter a - * number from 0 to 100`. - * [Google Chat apps](https://developers.google.com/workspace/chat): - * - * Generated from protobuf field string placeholder_text = 12; - * @param string $var - * @return $this - */ - public function setPlaceholderText($var) - { - GPBUtil::checkString($var, True); - $this->placeholder_text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php deleted file mode 100644 index 0bd6f1608c34..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextInput/Type.php +++ /dev/null @@ -1,62 +0,0 @@ -google.apps.card.v1.TextInput.Type - */ -class Type -{ - /** - * The text input field has a fixed height of one line. - * - * Generated from protobuf enum SINGLE_LINE = 0; - */ - const SINGLE_LINE = 0; - /** - * The text input field has a fixed height of multiple lines. - * - * Generated from protobuf enum MULTIPLE_LINE = 1; - */ - const MULTIPLE_LINE = 1; - - private static $valueToName = [ - self::SINGLE_LINE => 'SINGLE_LINE', - self::MULTIPLE_LINE => 'MULTIPLE_LINE', - ]; - - 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(Type::class, \Google\Apps\Card\V1\TextInput_Type::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php deleted file mode 100644 index 029cb54e8a3c..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/TextParagraph.php +++ /dev/null @@ -1,79 +0,0 @@ -google.apps.card.v1.TextParagraph - */ -class TextParagraph extends \Google\Protobuf\Internal\Message -{ - /** - * The text that's shown in the widget. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text that's shown in the widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * The text that's shown in the widget. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text that's shown in the widget. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php deleted file mode 100644 index 9299d133d355..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget.php +++ /dev/null @@ -1,1062 +0,0 @@ -google.apps.card.v1.Widget - */ -class Widget extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies whether widgets align to the left, right, or center of a column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; - */ - protected $horizontal_alignment = 0; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\TextParagraph $text_paragraph - * Displays a text paragraph. Supports simple HTML formatted text. For more - * information about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * For example, the following JSON creates a bolded text: - * ``` - * "textParagraph": { - * "text": " bold text" - * } - * ``` - * @type \Google\Apps\Card\V1\Image $image - * Displays an image. - * For example, the following JSON creates an image with alternative text: - * ``` - * "image": { - * "imageUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", - * "altText": "Chat app avatar" - * } - * ``` - * @type \Google\Apps\Card\V1\DecoratedText $decorated_text - * Displays a decorated text item. - * For example, the following JSON creates a decorated text widget showing - * email address: - * ``` - * "decoratedText": { - * "icon": { - * "knownIcon": "EMAIL" - * }, - * "topLabel": "Email Address", - * "text": "sasha@example.com", - * "bottomLabel": "This is a new Email address!", - * "switchControl": { - * "name": "has_send_welcome_email_to_sasha", - * "selected": false, - * "controlType": "CHECKBOX" - * } - * } - * ``` - * @type \Google\Apps\Card\V1\ButtonList $button_list - * A list of buttons. - * For example, the following JSON creates two buttons. The first - * is a blue text button and the second is an image button that opens a - * link: - * ``` - * "buttonList": { - * "buttons": [ - * { - * "text": "Edit", - * "color": { - * "red": 0, - * "green": 0, - * "blue": 1, - * "alpha": 1 - * }, - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * @type \Google\Apps\Card\V1\TextInput $text_input - * Displays a text box that users can type into. - * For example, the following JSON creates a text input for an email - * address: - * ``` - * "textInput": { - * "name": "mailing_address", - * "label": "Mailing Address" - * } - * ``` - * As another example, the following JSON creates a text input for a - * programming language with static suggestions: - * ``` - * "textInput": { - * "name": "preferred_programing_language", - * "label": "Preferred Language", - * "initialSuggestions": { - * "items": [ - * { - * "text": "C++" - * }, - * { - * "text": "Java" - * }, - * { - * "text": "JavaScript" - * }, - * { - * "text": "Python" - * } - * ] - * } - * } - * ``` - * @type \Google\Apps\Card\V1\SelectionInput $selection_input - * Displays a selection control that lets users select items. Selection - * controls can be checkboxes, radio buttons, switches, or dropdown menus. - * For example, the following JSON creates a dropdown menu that lets users - * choose a size: - * ``` - * "selectionInput": { - * "name": "size", - * "label": "Size" - * "type": "DROPDOWN", - * "items": [ - * { - * "text": "S", - * "value": "small", - * "selected": false - * }, - * { - * "text": "M", - * "value": "medium", - * "selected": true - * }, - * { - * "text": "L", - * "value": "large", - * "selected": false - * }, - * { - * "text": "XL", - * "value": "extra_large", - * "selected": false - * } - * ] - * } - * ``` - * @type \Google\Apps\Card\V1\DateTimePicker $date_time_picker - * Displays a widget that lets users input a date, time, or date and time. - * For example, the following JSON creates a date time picker to schedule an - * appointment: - * ``` - * "dateTimePicker": { - * "name": "appointment_time", - * "label": "Book your appointment at:", - * "type": "DATE_AND_TIME", - * "valueMsEpoch": "796435200000" - * } - * ``` - * @type \Google\Apps\Card\V1\Divider $divider - * Displays a horizontal line divider between widgets. - * For example, the following JSON creates a divider: - * ``` - * "divider": { - * } - * ``` - * @type \Google\Apps\Card\V1\Grid $grid - * Displays a grid with a collection of items. - * A grid supports any number of columns and items. The number of rows is - * determined by the upper bounds of the number items divided by the number - * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 - * items and 2 columns has 6 rows. - * [Google Workspace Add-ons and - * Chat apps](https://developers.google.com/workspace/extend): - * For example, the following JSON creates a 2 column grid with a single - * item: - * ``` - * "grid": { - * "title": "A fine collection of items", - * "columnCount": 2, - * "borderStyle": { - * "type": "STROKE", - * "cornerRadius": 4 - * }, - * "items": [ - * { - * "image": { - * "imageUri": "https://www.example.com/image.png", - * "cropStyle": { - * "type": "SQUARE" - * }, - * "borderStyle": { - * "type": "STROKE" - * } - * }, - * "title": "An item", - * "textAlignment": "CENTER" - * } - * ], - * "onClick": { - * "openLink": { - * "url": "https://www.example.com" - * } - * } - * } - * ``` - * @type \Google\Apps\Card\V1\Columns $columns - * Displays up to 2 columns. - * To include more than 2 columns, or to use rows, use the `Grid` widget. - * For example, the following JSON creates 2 columns that each contain - * text paragraphs: - * ``` - * "columns": { - * "columnItems": [ - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "First column text paragraph" - * } - * } - * ] - * }, - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "Second column text paragraph" - * } - * } - * ] - * } - * ] - * } - * ``` - * @type int $horizontal_alignment - * Specifies whether widgets align to the left, right, or center of a column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Card\V1\Card::initOnce(); - parent::__construct($data); - } - - /** - * Displays a text paragraph. Supports simple HTML formatted text. For more - * information about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * For example, the following JSON creates a bolded text: - * ``` - * "textParagraph": { - * "text": " bold text" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @return \Google\Apps\Card\V1\TextParagraph|null - */ - public function getTextParagraph() - { - return $this->readOneof(1); - } - - public function hasTextParagraph() - { - return $this->hasOneof(1); - } - - /** - * Displays a text paragraph. Supports simple HTML formatted text. For more - * information about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * For example, the following JSON creates a bolded text: - * ``` - * "textParagraph": { - * "text": " bold text" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextParagraph text_paragraph = 1; - * @param \Google\Apps\Card\V1\TextParagraph $var - * @return $this - */ - public function setTextParagraph($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextParagraph::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Displays an image. - * For example, the following JSON creates an image with alternative text: - * ``` - * "image": { - * "imageUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", - * "altText": "Chat app avatar" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @return \Google\Apps\Card\V1\Image|null - */ - public function getImage() - { - return $this->readOneof(2); - } - - public function hasImage() - { - return $this->hasOneof(2); - } - - /** - * Displays an image. - * For example, the following JSON creates an image with alternative text: - * ``` - * "image": { - * "imageUrl": - * "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", - * "altText": "Chat app avatar" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Image image = 2; - * @param \Google\Apps\Card\V1\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Image::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Displays a decorated text item. - * For example, the following JSON creates a decorated text widget showing - * email address: - * ``` - * "decoratedText": { - * "icon": { - * "knownIcon": "EMAIL" - * }, - * "topLabel": "Email Address", - * "text": "sasha@example.com", - * "bottomLabel": "This is a new Email address!", - * "switchControl": { - * "name": "has_send_welcome_email_to_sasha", - * "selected": false, - * "controlType": "CHECKBOX" - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @return \Google\Apps\Card\V1\DecoratedText|null - */ - public function getDecoratedText() - { - return $this->readOneof(3); - } - - public function hasDecoratedText() - { - return $this->hasOneof(3); - } - - /** - * Displays a decorated text item. - * For example, the following JSON creates a decorated text widget showing - * email address: - * ``` - * "decoratedText": { - * "icon": { - * "knownIcon": "EMAIL" - * }, - * "topLabel": "Email Address", - * "text": "sasha@example.com", - * "bottomLabel": "This is a new Email address!", - * "switchControl": { - * "name": "has_send_welcome_email_to_sasha", - * "selected": false, - * "controlType": "CHECKBOX" - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DecoratedText decorated_text = 3; - * @param \Google\Apps\Card\V1\DecoratedText $var - * @return $this - */ - public function setDecoratedText($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DecoratedText::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A list of buttons. - * For example, the following JSON creates two buttons. The first - * is a blue text button and the second is an image button that opens a - * link: - * ``` - * "buttonList": { - * "buttons": [ - * { - * "text": "Edit", - * "color": { - * "red": 0, - * "green": 0, - * "blue": 1, - * "alpha": 1 - * }, - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @return \Google\Apps\Card\V1\ButtonList|null - */ - public function getButtonList() - { - return $this->readOneof(4); - } - - public function hasButtonList() - { - return $this->hasOneof(4); - } - - /** - * A list of buttons. - * For example, the following JSON creates two buttons. The first - * is a blue text button and the second is an image button that opens a - * link: - * ``` - * "buttonList": { - * "buttons": [ - * { - * "text": "Edit", - * "color": { - * "red": 0, - * "green": 0, - * "blue": 1, - * "alpha": 1 - * }, - * "disabled": true, - * }, - * { - * "icon": { - * "knownIcon": "INVITE", - * "altText": "check calendar" - * }, - * "onClick": { - * "openLink": { - * "url": "https://example.com/calendar" - * } - * } - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 4; - * @param \Google\Apps\Card\V1\ButtonList $var - * @return $this - */ - public function setButtonList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Displays a text box that users can type into. - * For example, the following JSON creates a text input for an email - * address: - * ``` - * "textInput": { - * "name": "mailing_address", - * "label": "Mailing Address" - * } - * ``` - * As another example, the following JSON creates a text input for a - * programming language with static suggestions: - * ``` - * "textInput": { - * "name": "preferred_programing_language", - * "label": "Preferred Language", - * "initialSuggestions": { - * "items": [ - * { - * "text": "C++" - * }, - * { - * "text": "Java" - * }, - * { - * "text": "JavaScript" - * }, - * { - * "text": "Python" - * } - * ] - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @return \Google\Apps\Card\V1\TextInput|null - */ - public function getTextInput() - { - return $this->readOneof(5); - } - - public function hasTextInput() - { - return $this->hasOneof(5); - } - - /** - * Displays a text box that users can type into. - * For example, the following JSON creates a text input for an email - * address: - * ``` - * "textInput": { - * "name": "mailing_address", - * "label": "Mailing Address" - * } - * ``` - * As another example, the following JSON creates a text input for a - * programming language with static suggestions: - * ``` - * "textInput": { - * "name": "preferred_programing_language", - * "label": "Preferred Language", - * "initialSuggestions": { - * "items": [ - * { - * "text": "C++" - * }, - * { - * "text": "Java" - * }, - * { - * "text": "JavaScript" - * }, - * { - * "text": "Python" - * } - * ] - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.TextInput text_input = 5; - * @param \Google\Apps\Card\V1\TextInput $var - * @return $this - */ - public function setTextInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\TextInput::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Displays a selection control that lets users select items. Selection - * controls can be checkboxes, radio buttons, switches, or dropdown menus. - * For example, the following JSON creates a dropdown menu that lets users - * choose a size: - * ``` - * "selectionInput": { - * "name": "size", - * "label": "Size" - * "type": "DROPDOWN", - * "items": [ - * { - * "text": "S", - * "value": "small", - * "selected": false - * }, - * { - * "text": "M", - * "value": "medium", - * "selected": true - * }, - * { - * "text": "L", - * "value": "large", - * "selected": false - * }, - * { - * "text": "XL", - * "value": "extra_large", - * "selected": false - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @return \Google\Apps\Card\V1\SelectionInput|null - */ - public function getSelectionInput() - { - return $this->readOneof(6); - } - - public function hasSelectionInput() - { - return $this->hasOneof(6); - } - - /** - * Displays a selection control that lets users select items. Selection - * controls can be checkboxes, radio buttons, switches, or dropdown menus. - * For example, the following JSON creates a dropdown menu that lets users - * choose a size: - * ``` - * "selectionInput": { - * "name": "size", - * "label": "Size" - * "type": "DROPDOWN", - * "items": [ - * { - * "text": "S", - * "value": "small", - * "selected": false - * }, - * { - * "text": "M", - * "value": "medium", - * "selected": true - * }, - * { - * "text": "L", - * "value": "large", - * "selected": false - * }, - * { - * "text": "XL", - * "value": "extra_large", - * "selected": false - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.SelectionInput selection_input = 6; - * @param \Google\Apps\Card\V1\SelectionInput $var - * @return $this - */ - public function setSelectionInput($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\SelectionInput::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Displays a widget that lets users input a date, time, or date and time. - * For example, the following JSON creates a date time picker to schedule an - * appointment: - * ``` - * "dateTimePicker": { - * "name": "appointment_time", - * "label": "Book your appointment at:", - * "type": "DATE_AND_TIME", - * "valueMsEpoch": "796435200000" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @return \Google\Apps\Card\V1\DateTimePicker|null - */ - public function getDateTimePicker() - { - return $this->readOneof(7); - } - - public function hasDateTimePicker() - { - return $this->hasOneof(7); - } - - /** - * Displays a widget that lets users input a date, time, or date and time. - * For example, the following JSON creates a date time picker to schedule an - * appointment: - * ``` - * "dateTimePicker": { - * "name": "appointment_time", - * "label": "Book your appointment at:", - * "type": "DATE_AND_TIME", - * "valueMsEpoch": "796435200000" - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.DateTimePicker date_time_picker = 7; - * @param \Google\Apps\Card\V1\DateTimePicker $var - * @return $this - */ - public function setDateTimePicker($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\DateTimePicker::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Displays a horizontal line divider between widgets. - * For example, the following JSON creates a divider: - * ``` - * "divider": { - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Divider divider = 9; - * @return \Google\Apps\Card\V1\Divider|null - */ - public function getDivider() - { - return $this->readOneof(9); - } - - public function hasDivider() - { - return $this->hasOneof(9); - } - - /** - * Displays a horizontal line divider between widgets. - * For example, the following JSON creates a divider: - * ``` - * "divider": { - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Divider divider = 9; - * @param \Google\Apps\Card\V1\Divider $var - * @return $this - */ - public function setDivider($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Divider::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Displays a grid with a collection of items. - * A grid supports any number of columns and items. The number of rows is - * determined by the upper bounds of the number items divided by the number - * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 - * items and 2 columns has 6 rows. - * [Google Workspace Add-ons and - * Chat apps](https://developers.google.com/workspace/extend): - * For example, the following JSON creates a 2 column grid with a single - * item: - * ``` - * "grid": { - * "title": "A fine collection of items", - * "columnCount": 2, - * "borderStyle": { - * "type": "STROKE", - * "cornerRadius": 4 - * }, - * "items": [ - * { - * "image": { - * "imageUri": "https://www.example.com/image.png", - * "cropStyle": { - * "type": "SQUARE" - * }, - * "borderStyle": { - * "type": "STROKE" - * } - * }, - * "title": "An item", - * "textAlignment": "CENTER" - * } - * ], - * "onClick": { - * "openLink": { - * "url": "https://www.example.com" - * } - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Grid grid = 10; - * @return \Google\Apps\Card\V1\Grid|null - */ - public function getGrid() - { - return $this->readOneof(10); - } - - public function hasGrid() - { - return $this->hasOneof(10); - } - - /** - * Displays a grid with a collection of items. - * A grid supports any number of columns and items. The number of rows is - * determined by the upper bounds of the number items divided by the number - * of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 - * items and 2 columns has 6 rows. - * [Google Workspace Add-ons and - * Chat apps](https://developers.google.com/workspace/extend): - * For example, the following JSON creates a 2 column grid with a single - * item: - * ``` - * "grid": { - * "title": "A fine collection of items", - * "columnCount": 2, - * "borderStyle": { - * "type": "STROKE", - * "cornerRadius": 4 - * }, - * "items": [ - * { - * "image": { - * "imageUri": "https://www.example.com/image.png", - * "cropStyle": { - * "type": "SQUARE" - * }, - * "borderStyle": { - * "type": "STROKE" - * } - * }, - * "title": "An item", - * "textAlignment": "CENTER" - * } - * ], - * "onClick": { - * "openLink": { - * "url": "https://www.example.com" - * } - * } - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Grid grid = 10; - * @param \Google\Apps\Card\V1\Grid $var - * @return $this - */ - public function setGrid($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Grid::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Displays up to 2 columns. - * To include more than 2 columns, or to use rows, use the `Grid` widget. - * For example, the following JSON creates 2 columns that each contain - * text paragraphs: - * ``` - * "columns": { - * "columnItems": [ - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "First column text paragraph" - * } - * } - * ] - * }, - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "Second column text paragraph" - * } - * } - * ] - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Columns columns = 11; - * @return \Google\Apps\Card\V1\Columns|null - */ - public function getColumns() - { - return $this->readOneof(11); - } - - public function hasColumns() - { - return $this->hasOneof(11); - } - - /** - * Displays up to 2 columns. - * To include more than 2 columns, or to use rows, use the `Grid` widget. - * For example, the following JSON creates 2 columns that each contain - * text paragraphs: - * ``` - * "columns": { - * "columnItems": [ - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "First column text paragraph" - * } - * } - * ] - * }, - * { - * "horizontalSizeStyle": "FILL_AVAILABLE_SPACE", - * "horizontalAlignment": "CENTER", - * "verticalAlignment": "CENTER", - * "widgets": [ - * { - * "textParagraph": { - * "text": "Second column text paragraph" - * } - * } - * ] - * } - * ] - * } - * ``` - * - * Generated from protobuf field .google.apps.card.v1.Columns columns = 11; - * @param \Google\Apps\Card\V1\Columns $var - * @return $this - */ - public function setColumns($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Columns::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Specifies whether widgets align to the left, right, or center of a column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; - * @return int - */ - public function getHorizontalAlignment() - { - return $this->horizontal_alignment; - } - - /** - * Specifies whether widgets align to the left, right, or center of a column. - * - * Generated from protobuf field .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8; - * @param int $var - * @return $this - */ - public function setHorizontalAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Card\V1\Widget\HorizontalAlignment::class); - $this->horizontal_alignment = $var; - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php deleted file mode 100644 index e7e24749522d..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/HorizontalAlignment.php +++ /dev/null @@ -1,76 +0,0 @@ -google.apps.card.v1.Widget.HorizontalAlignment - */ -class HorizontalAlignment -{ - /** - * Don't use. Unspecified. - * - * Generated from protobuf enum HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; - */ - const HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; - /** - * Default value. Aligns widgets to the start position of the column. For - * left-to-right layouts, aligns to the left. For right-to-left layouts, - * aligns to the right. - * - * Generated from protobuf enum START = 1; - */ - const START = 1; - /** - * Aligns widgets to the center of the column. - * - * Generated from protobuf enum CENTER = 2; - */ - const CENTER = 2; - /** - * Aligns widgets to the end position of the column. For left-to-right - * layouts, aligns widgets to the right. For right-to-left layouts, aligns - * widgets to the left. - * - * Generated from protobuf enum END = 3; - */ - const END = 3; - - private static $valueToName = [ - self::HORIZONTAL_ALIGNMENT_UNSPECIFIED => 'HORIZONTAL_ALIGNMENT_UNSPECIFIED', - self::START => 'START', - self::CENTER => 'CENTER', - self::END => 'END', - ]; - - 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(HorizontalAlignment::class, \Google\Apps\Card\V1\Widget_HorizontalAlignment::class); - diff --git a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php b/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php deleted file mode 100644 index f1cee4017576..000000000000 --- a/owl-bot-staging/AppsChat/card-protos/v1/proto/src/Google/Apps/Card/V1/Widget/ImageType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.apps.card.v1.Widget.ImageType - */ -class ImageType -{ - /** - * Default value. Applies a square mask to the image. For example, a 4x3 - * image becomes 3x3. - * - * Generated from protobuf enum SQUARE = 0; - */ - const SQUARE = 0; - /** - * Applies a circular mask to the image. For example, a 4x3 image becomes a - * circle with a diameter of 3. - * - * Generated from protobuf enum CIRCLE = 1; - */ - const CIRCLE = 1; - - private static $valueToName = [ - self::SQUARE => 'SQUARE', - self::CIRCLE => 'CIRCLE', - ]; - - 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(ImageType::class, \Google\Apps\Card\V1\Widget_ImageType::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php deleted file mode 100644 index 809c8f272695..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ActionStatus.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - ' - -"google/chat/v1/action_status.protogoogle.chat.v1"R - ActionStatus% - status_code (2.google.rpc.Code -user_facing_message ( B -com.google.chat.v1BActionStatusProtoPZ,cloud.google.com/go/chat/apiv1/chatpb;chatpb DYNAPIProtoGoogle.Apps.Chat.V1Google\\Apps\\Chat\\V1Google::Apps::Chat::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php deleted file mode 100644 index af1277287045..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Annotation.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php deleted file mode 100644 index 1609b6964466..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Attachment.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php deleted file mode 100644 index cedd67f16eef..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ChatService.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php deleted file mode 100644 index 9b4adf8b86ed..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ContextualAddon.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php deleted file mode 100644 index 0fe6a8e5df12..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/DeletionMetadata.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php deleted file mode 100644 index 002a8589e7f5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/EventPayload.php +++ /dev/null @@ -1,71 +0,0 @@ -internalAddGeneratedFile( - ' - -"google/chat/v1/event_payload.protogoogle.chat.v1google/chat/v1/membership.protogoogle/chat/v1/message.protogoogle/chat/v1/reaction.protogoogle/chat/v1/space.proto"L -MembershipCreatedEventData. - -membership ( 2.google.chat.v1.Membership"L -MembershipDeletedEventData. - -membership ( 2.google.chat.v1.Membership"L -MembershipUpdatedEventData. - -membership ( 2.google.chat.v1.Membership"b -MembershipBatchCreatedEventData? - memberships ( 2*.google.chat.v1.MembershipCreatedEventData"b -MembershipBatchUpdatedEventData? - memberships ( 2*.google.chat.v1.MembershipUpdatedEventData"b -MembershipBatchDeletedEventData? - memberships ( 2*.google.chat.v1.MembershipDeletedEventData"C -MessageCreatedEventData( -message ( 2.google.chat.v1.Message"C -MessageUpdatedEventData( -message ( 2.google.chat.v1.Message"C -MessageDeletedEventData( -message ( 2.google.chat.v1.Message"Y -MessageBatchCreatedEventData9 -messages ( 2\'.google.chat.v1.MessageCreatedEventData"Y -MessageBatchUpdatedEventData9 -messages ( 2\'.google.chat.v1.MessageUpdatedEventData"Y -MessageBatchDeletedEventData9 -messages ( 2\'.google.chat.v1.MessageDeletedEventData"= -SpaceUpdatedEventData$ -space ( 2.google.chat.v1.Space"S -SpaceBatchUpdatedEventData5 -spaces ( 2%.google.chat.v1.SpaceUpdatedEventData"F -ReactionCreatedEventData* -reaction ( 2.google.chat.v1.Reaction"F -ReactionDeletedEventData* -reaction ( 2.google.chat.v1.Reaction"\\ -ReactionBatchCreatedEventData; - reactions ( 2(.google.chat.v1.ReactionCreatedEventData"\\ -ReactionBatchDeletedEventData; - reactions ( 2(.google.chat.v1.ReactionDeletedEventDataB -com.google.chat.v1BEventPayloadProtoPZ,cloud.google.com/go/chat/apiv1/chatpb;chatpb DYNAPIProtoGoogle.Apps.Chat.V1Google\\Apps\\Chat\\V1Google::Apps::Chat::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php deleted file mode 100644 index 5032c0f55dde..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Group.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - ' - -google/chat/v1/group.protogoogle.chat.v1" -Group -name ( B -com.google.chat.v1B -GroupProtoPZ,cloud.google.com/go/chat/apiv1/chatpb;chatpb DYNAPIProtoGoogle.Apps.Chat.V1Google\\Apps\\Chat\\V1Google::Apps::Chat::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php deleted file mode 100644 index 7ddf20031fdd..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/HistoryState.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php deleted file mode 100644 index bcea53750339..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/MatchedUrl.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - ' - - google/chat/v1/matched_url.protogoogle.chat.v1" - -MatchedUrl -url ( BAB -com.google.chat.v1BMatchedUrlProtoPZ,cloud.google.com/go/chat/apiv1/chatpb;chatpb DYNAPIProtoGoogle.Apps.Chat.V1Google\\Apps\\Chat\\V1Google::Apps::Chat::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php deleted file mode 100644 index 1aede18ab024..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Membership.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php deleted file mode 100644 index 1182a27601d5..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Message.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php deleted file mode 100644 index 466d59d51b69..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Reaction.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php deleted file mode 100644 index 07044bd308dd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SlashCommand.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - ' - -"google/chat/v1/slash_command.protogoogle.chat.v1"" - SlashCommand - -command_id (B -com.google.chat.v1BSlashCommandProtoPZ,cloud.google.com/go/chat/apiv1/chatpb;chatpb DYNAPIProtoGoogle.Apps.Chat.V1Google\\Apps\\Chat\\V1Google::Apps::Chat::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php deleted file mode 100644 index d677ec095933..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/Space.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php deleted file mode 100644 index 28b3baeaed4a..000000000000 Binary files a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceEvent.php and /dev/null differ diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php deleted file mode 100644 index 40bb79eed855..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceReadState.php +++ /dev/null @@ -1,41 +0,0 @@ -internalAddGeneratedFile( - ' - -%google/chat/v1/space_read_state.protogoogle.chat.v1google/api/resource.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto" -SpaceReadState -name ( 7 -last_read_time ( 2.google.protobuf.TimestampBA:cA` -"chat.googleapis.com/SpaceReadState*users/{user}/spaces/{space}/spaceReadState2spaceReadState"T -GetSpaceReadStateRequest8 -name ( B*AA$ -"chat.googleapis.com/SpaceReadState" -UpdateSpaceReadStateRequest= -space_read_state ( 2.google.chat.v1.SpaceReadStateBA4 - update_mask ( 2.google.protobuf.FieldMaskBAB -com.google.chat.v1BSpaceReadStateProtoPZ,cloud.google.com/go/chat/apiv1/chatpb;chatpb DYNAPIProtoGoogle.Apps.Chat.V1Google\\Apps\\Chat\\V1Google::Apps::Chat::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php deleted file mode 100644 index ee6cbcbaa165..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/SpaceSetup.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - ' - - google/chat/v1/space_setup.protogoogle.chat.v1google/chat/v1/membership.protogoogle/chat/v1/space.proto" -SetUpSpaceRequest) -space ( 2.google.chat.v1.SpaceBA - -request_id ( BA4 - memberships ( 2.google.chat.v1.MembershipBAB -com.google.chat.v1BSpaceSetupProtoPZ,cloud.google.com/go/chat/apiv1/chatpb;chatpb DYNAPIProtoGoogle.Apps.Chat.V1Google\\Apps\\Chat\\V1Google::Apps::Chat::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php deleted file mode 100644 index d8c72b7e4905..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/GPBMetadata/Google/Chat/V1/ThreadReadState.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' - -&google/chat/v1/thread_read_state.protogoogle.chat.v1google/api/resource.protogoogle/protobuf/timestamp.proto" -ThreadReadState -name ( 2 -last_read_time ( 2.google.protobuf.Timestamp:wAt -#chat.googleapis.com/ThreadReadStategoogle.chat.v1.AccessoryWidget - */ -class AccessoryWidget extends \Google\Protobuf\Internal\Message -{ - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\ButtonList $button_list - * A list of buttons. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * A list of buttons. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 1; - * @return \Google\Apps\Card\V1\ButtonList|null - */ - public function getButtonList() - { - return $this->readOneof(1); - } - - public function hasButtonList() - { - return $this->hasOneof(1); - } - - /** - * A list of buttons. - * - * Generated from protobuf field .google.apps.card.v1.ButtonList button_list = 1; - * @param \Google\Apps\Card\V1\ButtonList $var - * @return $this - */ - public function setButtonList($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\ButtonList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php deleted file mode 100644 index ab29fb67f3d4..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse.php +++ /dev/null @@ -1,201 +0,0 @@ -google.chat.v1.ActionResponse - */ -class ActionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. The type of Chat app response. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $type = 0; - /** - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $url = ''; - /** - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * - * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $dialog_action = null; - /** - * Input only. The response of the updated widget. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $updated_widget = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Input only. The type of Chat app response. - * @type string $url - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * @type \Google\Apps\Chat\V1\DialogAction $dialog_action - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * @type \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget $updated_widget - * Input only. The response of the updated widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Input only. The type of Chat app response. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Input only. The type of Chat app response. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\ActionResponse\ResponseType::class); - $this->type = $var; - - return $this; - } - - /** - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Input only. URL for users to authenticate or configure. (Only for - * `REQUEST_CONFIG` response types.) - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * - * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\DialogAction|null - */ - public function getDialogAction() - { - return $this->dialog_action; - } - - public function hasDialogAction() - { - return isset($this->dialog_action); - } - - public function clearDialogAction() - { - unset($this->dialog_action); - } - - /** - * Input only. A response to an interaction event related to a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Must be - * accompanied by `ResponseType.Dialog`. - * - * Generated from protobuf field .google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\DialogAction $var - * @return $this - */ - public function setDialogAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DialogAction::class); - $this->dialog_action = $var; - - return $this; - } - - /** - * Input only. The response of the updated widget. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget|null - */ - public function getUpdatedWidget() - { - return $this->updated_widget; - } - - public function hasUpdatedWidget() - { - return isset($this->updated_widget); - } - - public function clearUpdatedWidget() - { - unset($this->updated_widget); - } - - /** - * Input only. The response of the updated widget. - * - * Generated from protobuf field .google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget $var - * @return $this - */ - public function setUpdatedWidget($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse\UpdatedWidget::class); - $this->updated_widget = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php deleted file mode 100644 index cc00e73c7d90..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/ResponseType.php +++ /dev/null @@ -1,96 +0,0 @@ -google.chat.v1.ActionResponse.ResponseType - */ -class ResponseType -{ - /** - * Default type that's handled as `NEW_MESSAGE`. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Post as a new message in the topic. - * - * Generated from protobuf enum NEW_MESSAGE = 1; - */ - const NEW_MESSAGE = 1; - /** - * Update the Chat app's message. This is only permitted on a `CARD_CLICKED` - * event where the message sender type is `BOT`. - * - * Generated from protobuf enum UPDATE_MESSAGE = 2; - */ - const UPDATE_MESSAGE = 2; - /** - * Update the cards on a user's message. This is only permitted as a - * response to a `MESSAGE` event with a matched url, or a `CARD_CLICKED` - * event where the message sender type is `HUMAN`. Text is ignored. - * - * Generated from protobuf enum UPDATE_USER_MESSAGE_CARDS = 6; - */ - const UPDATE_USER_MESSAGE_CARDS = 6; - /** - * Privately ask the user for additional authentication or configuration. - * - * Generated from protobuf enum REQUEST_CONFIG = 3; - */ - const REQUEST_CONFIG = 3; - /** - * Presents a - * [dialog](https://developers.google.com/workspace/chat/dialogs). - * - * Generated from protobuf enum DIALOG = 4; - */ - const DIALOG = 4; - /** - * Widget text autocomplete options query. - * - * Generated from protobuf enum UPDATE_WIDGET = 7; - */ - const UPDATE_WIDGET = 7; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::NEW_MESSAGE => 'NEW_MESSAGE', - self::UPDATE_MESSAGE => 'UPDATE_MESSAGE', - self::UPDATE_USER_MESSAGE_CARDS => 'UPDATE_USER_MESSAGE_CARDS', - self::REQUEST_CONFIG => 'REQUEST_CONFIG', - self::DIALOG => 'DIALOG', - self::UPDATE_WIDGET => 'UPDATE_WIDGET', - ]; - - 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(ResponseType::class, \Google\Apps\Chat\V1\ActionResponse_ResponseType::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php deleted file mode 100644 index b51465c4205f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/SelectionItems.php +++ /dev/null @@ -1,70 +0,0 @@ -google.chat.v1.ActionResponse.SelectionItems - */ -class SelectionItems extends \Google\Protobuf\Internal\Message -{ - /** - * An array of the SelectionItem objects. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Card\V1\SelectionInput\SelectionItem>|\Google\Protobuf\Internal\RepeatedField $items - * An array of the SelectionItem objects. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * An array of the SelectionItem objects. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * An array of the SelectionItem objects. - * - * Generated from protobuf field repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1; - * @param array<\Google\Apps\Card\V1\SelectionInput\SelectionItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Card\V1\SelectionInput\SelectionItem::class); - $this->items = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SelectionItems::class, \Google\Apps\Chat\V1\ActionResponse_SelectionItems::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php deleted file mode 100644 index f07309fbfb7e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionResponse/UpdatedWidget.php +++ /dev/null @@ -1,117 +0,0 @@ -google.chat.v1.ActionResponse.UpdatedWidget - */ -class UpdatedWidget extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * - * Generated from protobuf field string widget = 2; - */ - protected $widget = ''; - protected $updated_widget; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\ActionResponse\SelectionItems $suggestions - * List of widget autocomplete results - * @type string $widget - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * List of widget autocomplete results - * - * Generated from protobuf field .google.chat.v1.ActionResponse.SelectionItems suggestions = 1; - * @return \Google\Apps\Chat\V1\ActionResponse\SelectionItems|null - */ - public function getSuggestions() - { - return $this->readOneof(1); - } - - public function hasSuggestions() - { - return $this->hasOneof(1); - } - - /** - * List of widget autocomplete results - * - * Generated from protobuf field .google.chat.v1.ActionResponse.SelectionItems suggestions = 1; - * @param \Google\Apps\Chat\V1\ActionResponse\SelectionItems $var - * @return $this - */ - public function setSuggestions($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse\SelectionItems::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * - * Generated from protobuf field string widget = 2; - * @return string - */ - public function getWidget() - { - return $this->widget; - } - - /** - * The ID of the updated widget. The ID must match the one for the - * widget that triggered the update request. - * - * Generated from protobuf field string widget = 2; - * @param string $var - * @return $this - */ - public function setWidget($var) - { - GPBUtil::checkString($var, True); - $this->widget = $var; - - return $this; - } - - /** - * @return string - */ - public function getUpdatedWidget() - { - return $this->whichOneof("updated_widget"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpdatedWidget::class, \Google\Apps\Chat\V1\ActionResponse_UpdatedWidget::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php deleted file mode 100644 index 687ef00ac63c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ActionStatus.php +++ /dev/null @@ -1,106 +0,0 @@ -google.chat.v1.ActionStatus - */ -class ActionStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The status code. - * - * Generated from protobuf field .google.rpc.Code status_code = 1; - */ - protected $status_code = 0; - /** - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * - * Generated from protobuf field string user_facing_message = 2; - */ - protected $user_facing_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $status_code - * The status code. - * @type string $user_facing_message - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ActionStatus::initOnce(); - parent::__construct($data); - } - - /** - * The status code. - * - * Generated from protobuf field .google.rpc.Code status_code = 1; - * @return int - */ - public function getStatusCode() - { - return $this->status_code; - } - - /** - * The status code. - * - * Generated from protobuf field .google.rpc.Code status_code = 1; - * @param int $var - * @return $this - */ - public function setStatusCode($var) - { - GPBUtil::checkEnum($var, \Google\Rpc\Code::class); - $this->status_code = $var; - - return $this; - } - - /** - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * - * Generated from protobuf field string user_facing_message = 2; - * @return string - */ - public function getUserFacingMessage() - { - return $this->user_facing_message; - } - - /** - * The message to send users about the status of their request. - * If unset, a generic message based on the `status_code` is sent. - * - * Generated from protobuf field string user_facing_message = 2; - * @param string $var - * @return $this - */ - public function setUserFacingMessage($var) - { - GPBUtil::checkString($var, True); - $this->user_facing_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php deleted file mode 100644 index 7c9e10fdc422..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Annotation.php +++ /dev/null @@ -1,285 +0,0 @@ -google.chat.v1.Annotation - */ -class Annotation extends \Google\Protobuf\Internal\Message -{ - /** - * The type of this annotation. - * - * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; - */ - protected $type = 0; - /** - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * - * Generated from protobuf field optional int32 start_index = 2; - */ - protected $start_index = null; - /** - * Length of the substring in the plain-text message body this annotation - * corresponds to. - * - * Generated from protobuf field int32 length = 3; - */ - protected $length = 0; - protected $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of this annotation. - * @type int $start_index - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * @type int $length - * Length of the substring in the plain-text message body this annotation - * corresponds to. - * @type \Google\Apps\Chat\V1\UserMentionMetadata $user_mention - * The metadata of user mention. - * @type \Google\Apps\Chat\V1\SlashCommandMetadata $slash_command - * The metadata for a slash command. - * @type \Google\Apps\Chat\V1\RichLinkMetadata $rich_link_metadata - * The metadata for a rich link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The type of this annotation. - * - * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of this annotation. - * - * Generated from protobuf field .google.chat.v1.AnnotationType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\AnnotationType::class); - $this->type = $var; - - return $this; - } - - /** - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * - * Generated from protobuf field optional int32 start_index = 2; - * @return int - */ - public function getStartIndex() - { - return isset($this->start_index) ? $this->start_index : 0; - } - - public function hasStartIndex() - { - return isset($this->start_index); - } - - public function clearStartIndex() - { - unset($this->start_index); - } - - /** - * Start index (0-based, inclusive) in the plain-text message body this - * annotation corresponds to. - * - * Generated from protobuf field optional int32 start_index = 2; - * @param int $var - * @return $this - */ - public function setStartIndex($var) - { - GPBUtil::checkInt32($var); - $this->start_index = $var; - - return $this; - } - - /** - * Length of the substring in the plain-text message body this annotation - * corresponds to. - * - * Generated from protobuf field int32 length = 3; - * @return int - */ - public function getLength() - { - return $this->length; - } - - /** - * Length of the substring in the plain-text message body this annotation - * corresponds to. - * - * Generated from protobuf field int32 length = 3; - * @param int $var - * @return $this - */ - public function setLength($var) - { - GPBUtil::checkInt32($var); - $this->length = $var; - - return $this; - } - - /** - * The metadata of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata user_mention = 4; - * @return \Google\Apps\Chat\V1\UserMentionMetadata|null - */ - public function getUserMention() - { - return $this->readOneof(4); - } - - public function hasUserMention() - { - return $this->hasOneof(4); - } - - /** - * The metadata of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata user_mention = 4; - * @param \Google\Apps\Chat\V1\UserMentionMetadata $var - * @return $this - */ - public function setUserMention($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\UserMentionMetadata::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The metadata for a slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata slash_command = 5; - * @return \Google\Apps\Chat\V1\SlashCommandMetadata|null - */ - public function getSlashCommand() - { - return $this->readOneof(5); - } - - public function hasSlashCommand() - { - return $this->hasOneof(5); - } - - /** - * The metadata for a slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata slash_command = 5; - * @param \Google\Apps\Chat\V1\SlashCommandMetadata $var - * @return $this - */ - public function setSlashCommand($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SlashCommandMetadata::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The metadata for a rich link. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata rich_link_metadata = 6; - * @return \Google\Apps\Chat\V1\RichLinkMetadata|null - */ - public function getRichLinkMetadata() - { - return $this->readOneof(6); - } - - public function hasRichLinkMetadata() - { - return $this->hasOneof(6); - } - - /** - * The metadata for a rich link. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata rich_link_metadata = 6; - * @param \Google\Apps\Chat\V1\RichLinkMetadata $var - * @return $this - */ - public function setRichLinkMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\RichLinkMetadata::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getMetadata() - { - return $this->whichOneof("metadata"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php deleted file mode 100644 index c9b09b768c19..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AnnotationType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.AnnotationType - */ -class AnnotationType -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum ANNOTATION_TYPE_UNSPECIFIED = 0; - */ - const ANNOTATION_TYPE_UNSPECIFIED = 0; - /** - * A user is mentioned. - * - * Generated from protobuf enum USER_MENTION = 1; - */ - const USER_MENTION = 1; - /** - * A slash command is invoked. - * - * Generated from protobuf enum SLASH_COMMAND = 2; - */ - const SLASH_COMMAND = 2; - /** - * A rich link annotation. - * - * Generated from protobuf enum RICH_LINK = 3; - */ - const RICH_LINK = 3; - - private static $valueToName = [ - self::ANNOTATION_TYPE_UNSPECIFIED => 'ANNOTATION_TYPE_UNSPECIFIED', - self::USER_MENTION => 'USER_MENTION', - self::SLASH_COMMAND => 'SLASH_COMMAND', - self::RICH_LINK => 'RICH_LINK', - ]; - - 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php deleted file mode 100644 index 0856cd583a48..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachedGif.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.AttachedGif - */ -class AttachedGif extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The URL that hosts the GIF image. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Output only. The URL that hosts the GIF image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The URL that hosts the GIF image. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Output only. The URL that hosts the GIF image. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php deleted file mode 100644 index 585adb4fc599..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment.php +++ /dev/null @@ -1,338 +0,0 @@ -google.chat.v1.Attachment - */ -class Attachment extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The original file name for the content, not the full path. - * - * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $content_name = ''; - /** - * Output only. The content type (MIME type) of the file. - * - * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $content_type = ''; - /** - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $thumbnail_uri = ''; - /** - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $download_uri = ''; - /** - * Output only. The source of the attachment. - * - * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source = 0; - protected $data_ref; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * @type string $content_name - * Output only. The original file name for the content, not the full path. - * @type string $content_type - * Output only. The content type (MIME type) of the file. - * @type \Google\Apps\Chat\V1\AttachmentDataRef $attachment_data_ref - * A reference to the attachment data. This field is used with the media API - * to download the attachment data. - * @type \Google\Apps\Chat\V1\DriveDataRef $drive_data_ref - * Output only. A reference to the Google Drive attachment. This field is - * used with the Google Drive API. - * @type string $thumbnail_uri - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * @type string $download_uri - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * @type int $source - * Output only. The source of the attachment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * 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; - } - - /** - * Output only. The original file name for the content, not the full path. - * - * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContentName() - { - return $this->content_name; - } - - /** - * Output only. The original file name for the content, not the full path. - * - * Generated from protobuf field string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContentName($var) - { - GPBUtil::checkString($var, True); - $this->content_name = $var; - - return $this; - } - - /** - * Output only. The content type (MIME type) of the file. - * - * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * Output only. The content type (MIME type) of the file. - * - * Generated from protobuf field string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkString($var, True); - $this->content_type = $var; - - return $this; - } - - /** - * A reference to the attachment data. This field is used with the media API - * to download the attachment data. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; - * @return \Google\Apps\Chat\V1\AttachmentDataRef|null - */ - public function getAttachmentDataRef() - { - return $this->readOneof(4); - } - - public function hasAttachmentDataRef() - { - return $this->hasOneof(4); - } - - /** - * A reference to the attachment data. This field is used with the media API - * to download the attachment data. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 4; - * @param \Google\Apps\Chat\V1\AttachmentDataRef $var - * @return $this - */ - public function setAttachmentDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\AttachmentDataRef::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. A reference to the Google Drive attachment. This field is - * used with the Google Drive API. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\DriveDataRef|null - */ - public function getDriveDataRef() - { - return $this->readOneof(7); - } - - public function hasDriveDataRef() - { - return $this->hasOneof(7); - } - - /** - * Output only. A reference to the Google Drive attachment. This field is - * used with the Google Drive API. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\DriveDataRef $var - * @return $this - */ - public function setDriveDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveDataRef::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getThumbnailUri() - { - return $this->thumbnail_uri; - } - - /** - * Output only. The thumbnail URL which should be used to preview the - * attachment to a human user. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setThumbnailUri($var) - { - GPBUtil::checkString($var, True); - $this->thumbnail_uri = $var; - - return $this; - } - - /** - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDownloadUri() - { - return $this->download_uri; - } - - /** - * Output only. The download URL which should be used to allow a human user to - * download the attachment. Chat apps shouldn't use this URL to download - * attachment content. - * - * Generated from protobuf field string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDownloadUri($var) - { - GPBUtil::checkString($var, True); - $this->download_uri = $var; - - return $this; - } - - /** - * Output only. The source of the attachment. - * - * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSource() - { - return $this->source; - } - - /** - * Output only. The source of the attachment. - * - * Generated from protobuf field .google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Attachment\Source::class); - $this->source = $var; - - return $this; - } - - /** - * @return string - */ - public function getDataRef() - { - return $this->whichOneof("data_ref"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php deleted file mode 100644 index f62db353fa3a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Attachment/Source.php +++ /dev/null @@ -1,64 +0,0 @@ -google.chat.v1.Attachment.Source - */ -class Source -{ - /** - * Reserved. - * - * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; - */ - const SOURCE_UNSPECIFIED = 0; - /** - * The file is a Google Drive file. - * - * Generated from protobuf enum DRIVE_FILE = 1; - */ - const DRIVE_FILE = 1; - /** - * The file is uploaded to Chat. - * - * Generated from protobuf enum UPLOADED_CONTENT = 2; - */ - const UPLOADED_CONTENT = 2; - - private static $valueToName = [ - self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', - self::DRIVE_FILE => 'DRIVE_FILE', - self::UPLOADED_CONTENT => 'UPLOADED_CONTENT', - ]; - - 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(Source::class, \Google\Apps\Chat\V1\Attachment_Source::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php deleted file mode 100644 index 713e30068a9b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/AttachmentDataRef.php +++ /dev/null @@ -1,113 +0,0 @@ -google.chat.v1.AttachmentDataRef - */ -class AttachmentDataRef extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the attachment data. This field is used with the media - * API to download the attachment data. - * - * Generated from protobuf field string resource_name = 1; - */ - protected $resource_name = ''; - /** - * Opaque token containing a reference to an uploaded attachment. Treated by - * clients as an opaque string and used to create or update Chat messages with - * attachments. - * - * Generated from protobuf field string attachment_upload_token = 2; - */ - protected $attachment_upload_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_name - * The resource name of the attachment data. This field is used with the media - * API to download the attachment data. - * @type string $attachment_upload_token - * Opaque token containing a reference to an uploaded attachment. Treated by - * clients as an opaque string and used to create or update Chat messages with - * attachments. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the attachment data. This field is used with the media - * API to download the attachment data. - * - * Generated from protobuf field string resource_name = 1; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The resource name of the attachment data. This field is used with the media - * API to download the attachment data. - * - * Generated from protobuf field string resource_name = 1; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Opaque token containing a reference to an uploaded attachment. Treated by - * clients as an opaque string and used to create or update Chat messages with - * attachments. - * - * Generated from protobuf field string attachment_upload_token = 2; - * @return string - */ - public function getAttachmentUploadToken() - { - return $this->attachment_upload_token; - } - - /** - * Opaque token containing a reference to an uploaded attachment. Treated by - * clients as an opaque string and used to create or update Chat messages with - * attachments. - * - * Generated from protobuf field string attachment_upload_token = 2; - * @param string $var - * @return $this - */ - public function setAttachmentUploadToken($var) - { - GPBUtil::checkString($var, True); - $this->attachment_upload_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php deleted file mode 100644 index 3d2235adb173..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CardWithId.php +++ /dev/null @@ -1,121 +0,0 @@ -google.chat.v1.CardWithId - */ -class CardWithId extends \Google\Protobuf\Internal\Message -{ - /** - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * - * Generated from protobuf field string card_id = 1; - */ - protected $card_id = ''; - /** - * A card. Maximum size is 32 KB. - * - * Generated from protobuf field .google.apps.card.v1.Card card = 2; - */ - protected $card = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $card_id - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * @type \Google\Apps\Card\V1\Card $card - * A card. Maximum size is 32 KB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * - * Generated from protobuf field string card_id = 1; - * @return string - */ - public function getCardId() - { - return $this->card_id; - } - - /** - * Required if the message contains multiple cards. A unique identifier for - * a card in a message. - * - * Generated from protobuf field string card_id = 1; - * @param string $var - * @return $this - */ - public function setCardId($var) - { - GPBUtil::checkString($var, True); - $this->card_id = $var; - - return $this; - } - - /** - * A card. Maximum size is 32 KB. - * - * Generated from protobuf field .google.apps.card.v1.Card card = 2; - * @return \Google\Apps\Card\V1\Card|null - */ - public function getCard() - { - return $this->card; - } - - public function hasCard() - { - return isset($this->card); - } - - public function clearCard() - { - unset($this->card); - } - - /** - * A card. Maximum size is 32 KB. - * - * Generated from protobuf field .google.apps.card.v1.Card card = 2; - * @param \Google\Apps\Card\V1\Card $var - * @return $this - */ - public function setCard($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); - $this->card = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php deleted file mode 100644 index 8efe4c4f2610..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ChatSpaceLinkData.php +++ /dev/null @@ -1,147 +0,0 @@ -google.chat.v1.ChatSpaceLinkData - */ -class ChatSpaceLinkData extends \Google\Protobuf\Internal\Message -{ - /** - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { - */ - protected $space = ''; - /** - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { - */ - protected $thread = ''; - /** - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $space - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * @type string $thread - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * @type string $message - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getSpace() - { - return $this->space; - } - - /** - * The space of the linked Chat space resource. - * Format: `spaces/{space}` - * - * Generated from protobuf field string space = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkString($var, True); - $this->space = $var; - - return $this; - } - - /** - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getThread() - { - return $this->thread; - } - - /** - * The thread of the linked Chat space resource. - * Format: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string thread = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setThread($var) - { - GPBUtil::checkString($var, True); - $this->thread = $var; - - return $this; - } - - /** - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The message of the linked Chat space resource. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string message = 3 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php deleted file mode 100644 index f6cddab25e0d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.chat.v1.CompleteImportSpaceRequest - */ -class CompleteImportSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the import mode space. - * Format: `spaces/{space}` - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php deleted file mode 100644 index 500dcf0d0fe4..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CompleteImportSpaceResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.CompleteImportSpaceResponse - */ -class CompleteImportSpaceResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The import mode space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - */ - protected $space = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * The import mode space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * The import mode space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * The import mode space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php deleted file mode 100644 index 0eec00f28227..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup.php +++ /dev/null @@ -1,33 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup - */ -class ContextualAddOnMarkup extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php deleted file mode 100644 index 249d39abc6ce..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card.php +++ /dev/null @@ -1,183 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card - */ -class Card extends \Google\Protobuf\Internal\Message -{ - /** - * The header of the card. A header usually contains a title and an image. - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; - */ - protected $header = null; - /** - * Sections are separated by a line divider. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; - */ - private $sections; - /** - * The actions of this card. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; - */ - private $card_actions; - /** - * Name of the card. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader $header - * The header of the card. A header usually contains a title and an image. - * @type array<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section>|\Google\Protobuf\Internal\RepeatedField $sections - * Sections are separated by a line divider. - * @type array<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction>|\Google\Protobuf\Internal\RepeatedField $card_actions - * The actions of this card. - * @type string $name - * Name of the card. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The header of the card. A header usually contains a title and an image. - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; - * @return \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * The header of the card. A header usually contains a title and an image. - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader header = 1; - * @param \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader::class); - $this->header = $var; - - return $this; - } - - /** - * Sections are separated by a line divider. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSections() - { - return $this->sections; - } - - /** - * Sections are separated by a line divider. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.Section sections = 2; - * @param array<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\Section::class); - $this->sections = $arr; - - return $this; - } - - /** - * The actions of this card. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCardActions() - { - return $this->card_actions; - } - - /** - * The actions of this card. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card.CardAction card_actions = 3; - * @param array<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCardActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardAction::class); - $this->card_actions = $arr; - - return $this; - } - - /** - * Name of the card. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the card. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Card::class, \Google\Apps\Chat\V1\ContextualAddOnMarkup_Card::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php deleted file mode 100644 index a6cbe6824e74..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardAction.php +++ /dev/null @@ -1,118 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.CardAction - */ -class CardAction extends \Google\Protobuf\Internal\Message -{ - /** - * The label used to be displayed in the action menu item. - * - * Generated from protobuf field string action_label = 1; - */ - protected $action_label = ''; - /** - * The onclick action for this action item. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $action_label - * The label used to be displayed in the action menu item. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The onclick action for this action item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The label used to be displayed in the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @return string - */ - public function getActionLabel() - { - return $this->action_label; - } - - /** - * The label used to be displayed in the action menu item. - * - * Generated from protobuf field string action_label = 1; - * @param string $var - * @return $this - */ - public function setActionLabel($var) - { - GPBUtil::checkString($var, True); - $this->action_label = $var; - - return $this; - } - - /** - * The onclick action for this action item. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The onclick action for this action item. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CardAction::class, \Google\Apps\Chat\V1\ContextualAddOnMarkup_Card_CardAction::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php deleted file mode 100644 index a8ca508b489a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader.php +++ /dev/null @@ -1,178 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.CardHeader - */ -class CardHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * The subtitle of the card header. - * - * Generated from protobuf field string subtitle = 2; - */ - protected $subtitle = ''; - /** - * The image's type (for example, square border or circular border). - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; - */ - protected $image_style = 0; - /** - * The URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - */ - protected $image_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * @type string $subtitle - * The subtitle of the card header. - * @type int $image_style - * The image's type (for example, square border or circular border). - * @type string $image_url - * The URL of the image in the card header. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The title must be specified. The header has a fixed height: if both a - * title and subtitle is specified, each takes up one line. If only the - * title is specified, it takes up both lines. - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The subtitle of the card header. - * - * Generated from protobuf field string subtitle = 2; - * @return string - */ - public function getSubtitle() - { - return $this->subtitle; - } - - /** - * The subtitle of the card header. - * - * Generated from protobuf field string subtitle = 2; - * @param string $var - * @return $this - */ - public function setSubtitle($var) - { - GPBUtil::checkString($var, True); - $this->subtitle = $var; - - return $this; - } - - /** - * The image's type (for example, square border or circular border). - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; - * @return int - */ - public function getImageStyle() - { - return $this->image_style; - } - - /** - * The image's type (for example, square border or circular border). - * - * Generated from protobuf field .google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3; - * @param int $var - * @return $this - */ - public function setImageStyle($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card\CardHeader\ImageStyle::class); - $this->image_style = $var; - - return $this; - } - - /** - * The URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The URL of the image in the card header. - * - * Generated from protobuf field string image_url = 4; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CardHeader::class, \Google\Apps\Chat\V1\ContextualAddOnMarkup_Card_CardHeader::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php deleted file mode 100644 index a86eddd71cea..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/CardHeader/ImageStyle.php +++ /dev/null @@ -1,60 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle - */ -class ImageStyle -{ - /** - * Generated from protobuf enum IMAGE_STYLE_UNSPECIFIED = 0; - */ - const IMAGE_STYLE_UNSPECIFIED = 0; - /** - * Square border. - * - * Generated from protobuf enum IMAGE = 1; - */ - const IMAGE = 1; - /** - * Circular border. - * - * Generated from protobuf enum AVATAR = 2; - */ - const AVATAR = 2; - - private static $valueToName = [ - self::IMAGE_STYLE_UNSPECIFIED => 'IMAGE_STYLE_UNSPECIFIED', - self::IMAGE => 'IMAGE', - self::AVATAR => 'AVATAR', - ]; - - 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(ImageStyle::class, \Google\Apps\Chat\V1\ContextualAddOnMarkup_Card_CardHeader_ImageStyle::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php deleted file mode 100644 index 8363df325e24..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ContextualAddOnMarkup/Card/Section.php +++ /dev/null @@ -1,139 +0,0 @@ -google.chat.v1.ContextualAddOnMarkup.Card.Section - */ -class Section extends \Google\Protobuf\Internal\Message -{ - /** - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - */ - protected $header = ''; - /** - * A section must contain at least one widget. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; - */ - private $widgets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $header - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type array<\Google\Apps\Chat\V1\WidgetMarkup>|\Google\Protobuf\Internal\RepeatedField $widgets - * A section must contain at least one widget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ContextualAddon::initOnce(); - parent::__construct($data); - } - - /** - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @return string - */ - public function getHeader() - { - return $this->header; - } - - /** - * The header of the section. Formatted text is - * supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string header = 1; - * @param string $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkString($var, True); - $this->header = $var; - - return $this; - } - - /** - * A section must contain at least one widget. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWidgets() - { - return $this->widgets; - } - - /** - * A section must contain at least one widget. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup widgets = 2; - * @param array<\Google\Apps\Chat\V1\WidgetMarkup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup::class); - $this->widgets = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Section::class, \Google\Apps\Chat\V1\ContextualAddOnMarkup_Card_Section::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php deleted file mode 100644 index 8d36c8549b38..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMembershipRequest.php +++ /dev/null @@ -1,283 +0,0 @@ -google.chat.v1.CreateMembershipRequest - */ -class CreateMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space for which to create the - * membership. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set - * `user.name` with format `users/{user}`, where `{user}` can be the email - * address for the user. For users in the same Workspace organization `{user}` - * can also be the `id` of the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the user in the Directory API. For example, if - * the People API Person profile ID for `user@example.com` is `123456789`, you - * can add the user to the space by setting the `membership.member.name` to - * `users/user@example.com` or `users/123456789`. When a Chat app creates a - * membership relation for itself, it must use the `chat.memberships.app` - * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $membership = null; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * - * Generated from protobuf field bool use_admin_access = 5; - */ - protected $use_admin_access = false; - - /** - * @param string $parent Required. The resource name of the space for which to create the - * membership. - * - * Format: spaces/{space} - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * @param \Google\Apps\Chat\V1\Membership $membership Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set - * `user.name` with format `users/{user}`, where `{user}` can be the email - * address for the user. For users in the same Workspace organization `{user}` - * can also be the `id` of the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the user in the Directory API. For example, if - * the People API Person profile ID for `user@example.com` is `123456789`, you - * can add the user to the space by setting the `membership.member.name` to - * `users/user@example.com` or `users/123456789`. When a Chat app creates a - * membership relation for itself, it must use the `chat.memberships.app` - * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`. - * - * @return \Google\Apps\Chat\V1\CreateMembershipRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Apps\Chat\V1\Membership $membership): self - { - return (new self()) - ->setParent($parent) - ->setMembership($membership); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space for which to create the - * membership. - * Format: spaces/{space} - * @type \Google\Apps\Chat\V1\Membership $membership - * Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set - * `user.name` with format `users/{user}`, where `{user}` can be the email - * address for the user. For users in the same Workspace organization `{user}` - * can also be the `id` of the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the user in the Directory API. For example, if - * the People API Person profile ID for `user@example.com` is `123456789`, you - * can add the user to the space by setting the `membership.member.name` to - * `users/user@example.com` or `users/123456789`. When a Chat app creates a - * membership relation for itself, it must use the `chat.memberships.app` - * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`. - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space for which to create the - * membership. - * Format: spaces/{space} - * - * 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 space for which to create the - * membership. - * Format: spaces/{space} - * - * 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 membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set - * `user.name` with format `users/{user}`, where `{user}` can be the email - * address for the user. For users in the same Workspace organization `{user}` - * can also be the `id` of the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the user in the Directory API. For example, if - * the People API Person profile ID for `user@example.com` is `123456789`, you - * can add the user to the space by setting the `membership.member.name` to - * `users/user@example.com` or `users/123456789`. When a Chat app creates a - * membership relation for itself, it must use the `chat.memberships.app` - * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * Required. The membership relation to create. - * The `memberType` field must contain a user with the `user.name` and - * `user.type` fields populated. The server will assign a resource name - * and overwrite anything specified. - * When a Chat app creates a membership relation for a human user, it must use - * the `chat.memberships` scope, set `user.type` to `HUMAN`, and set - * `user.name` with format `users/{user}`, where `{user}` can be the email - * address for the user. For users in the same Workspace organization `{user}` - * can also be the `id` of the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the user in the Directory API. For example, if - * the People API Person profile ID for `user@example.com` is `123456789`, you - * can add the user to the space by setting the `membership.member.name` to - * `users/user@example.com` or `users/123456789`. When a Chat app creates a - * membership relation for itself, it must use the `chat.memberships.app` - * scope, set `user.type` to `BOT`, and set `user.name` to `users/app`. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * - * Generated from protobuf field bool use_admin_access = 5; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Creating app memberships or creating memberships for users outside the - * administrator's Google Workspace organization isn't supported using admin - * access. - * - * Generated from protobuf field bool use_admin_access = 5; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php deleted file mode 100644 index e90a569bc416..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest.php +++ /dev/null @@ -1,370 +0,0 @@ -google.chat.v1.CreateMessageRequest - */ -class CreateMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space in which to create a message. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Message body. - * - * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message = null; - /** - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $thread_key = ''; - /** - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * - * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * - * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message_reply_option = 0; - /** - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message_id = ''; - - /** - * @param string $parent Required. The resource name of the space in which to create a message. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * @param \Google\Apps\Chat\V1\Message $message Required. Message body. - * @param string $messageId Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * - * The value for this field must meet the following requirements: - * - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * @return \Google\Apps\Chat\V1\CreateMessageRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Apps\Chat\V1\Message $message, string $messageId): self - { - return (new self()) - ->setParent($parent) - ->setMessage($message) - ->setMessageId($messageId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space in which to create a message. - * Format: `spaces/{space}` - * @type \Google\Apps\Chat\V1\Message $message - * Required. Message body. - * @type string $thread_key - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * @type string $request_id - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * @type int $message_reply_option - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * @type string $message_id - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space in which to create a message. - * Format: `spaces/{space}` - * - * 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 space in which to create a message. - * Format: `spaces/{space}` - * - * 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. Message body. - * - * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * Required. Message body. - * - * Generated from protobuf field .google.chat.v1.Message message = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - - /** - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return string - * @deprecated - */ - public function getThreadKey() - { - @trigger_error('thread_key is deprecated.', E_USER_DEPRECATED); - return $this->thread_key; - } - - /** - * Optional. Deprecated: Use - * [thread.thread_key][google.chat.v1.Thread.thread_key] instead. ID for the - * thread. Supports up to 4000 characters. To start or add to a thread, create - * a message and specify a `threadKey` or the - * [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or - * reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field string thread_key = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - * @deprecated - */ - public function setThreadKey($var) - { - @trigger_error('thread_key is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->thread_key = $var; - - return $this; - } - - /** - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * - * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique request ID for this message. Specifying an existing - * request ID returns the message created with that ID instead of creating a - * new message. - * - * Generated from protobuf field string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * - * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMessageReplyOption() - { - return $this->message_reply_option; - } - - /** - * Optional. Specifies whether a message starts a thread or replies to one. - * Only supported in named spaces. - * - * Generated from protobuf field .google.chat.v1.CreateMessageRequest.MessageReplyOption message_reply_option = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMessageReplyOption($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\CreateMessageRequest\MessageReplyOption::class); - $this->message_reply_option = $var; - - return $this; - } - - /** - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMessageId() - { - return $this->message_id; - } - - /** - * Optional. A custom ID for a message. Lets Chat apps get, update, or delete - * a message without needing to store the system-assigned ID in the message's - * resource name (represented in the message `name` field). - * The value for this field must meet the following requirements: - * * Begins with `client-`. For example, `client-custom-name` is a valid - * custom ID, but `custom-name` is not. - * * Contains up to 63 characters and only lowercase letters, numbers, and - * hyphens. - * * Is unique within a space. A Chat app can't use the same custom ID for - * different messages. - * For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string message_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMessageId($var) - { - GPBUtil::checkString($var, True); - $this->message_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php deleted file mode 100644 index 92144a5ebd83..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateMessageRequest/MessageReplyOption.php +++ /dev/null @@ -1,74 +0,0 @@ -google.chat.v1.CreateMessageRequest.MessageReplyOption - */ -class MessageReplyOption -{ - /** - * Default. Starts a new thread. Using this option ignores any [thread - * ID][google.chat.v1.Thread.name] or - * [`thread_key`][google.chat.v1.Thread.thread_key] that's included. - * - * Generated from protobuf enum MESSAGE_REPLY_OPTION_UNSPECIFIED = 0; - */ - const MESSAGE_REPLY_OPTION_UNSPECIFIED = 0; - /** - * Creates the message as a reply to the thread specified by [thread - * ID][google.chat.v1.Thread.name] or - * [`thread_key`][google.chat.v1.Thread.thread_key]. If it fails, the - * message starts a new thread instead. - * - * Generated from protobuf enum REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD = 1; - */ - const REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD = 1; - /** - * Creates the message as a reply to the thread specified by [thread - * ID][google.chat.v1.Thread.name] or - * [`thread_key`][google.chat.v1.Thread.thread_key]. If a new `thread_key` - * is used, a new thread is created. If the message creation fails, a - * `NOT_FOUND` error is returned instead. - * - * Generated from protobuf enum REPLY_MESSAGE_OR_FAIL = 2; - */ - const REPLY_MESSAGE_OR_FAIL = 2; - - private static $valueToName = [ - self::MESSAGE_REPLY_OPTION_UNSPECIFIED => 'MESSAGE_REPLY_OPTION_UNSPECIFIED', - self::REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD => 'REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD', - self::REPLY_MESSAGE_OR_FAIL => 'REPLY_MESSAGE_OR_FAIL', - ]; - - 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(MessageReplyOption::class, \Google\Apps\Chat\V1\CreateMessageRequest_MessageReplyOption::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php deleted file mode 100644 index 97555cae7e06..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateReactionRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.chat.v1.CreateReactionRequest - */ -class CreateReactionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The reaction to create. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $reaction = null; - - /** - * @param string $parent Required. The message where the reaction is created. - * - * Format: `spaces/{space}/messages/{message}` - * Please see {@see ChatServiceClient::messageName()} for help formatting this field. - * @param \Google\Apps\Chat\V1\Reaction $reaction Required. The reaction to create. - * - * @return \Google\Apps\Chat\V1\CreateReactionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Apps\Chat\V1\Reaction $reaction): self - { - return (new self()) - ->setParent($parent) - ->setReaction($reaction); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * @type \Google\Apps\Chat\V1\Reaction $reaction - * Required. The reaction to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. The message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * - * 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 message where the reaction is created. - * Format: `spaces/{space}/messages/{message}` - * - * 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 reaction to create. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Reaction|null - */ - public function getReaction() - { - return $this->reaction; - } - - public function hasReaction() - { - return isset($this->reaction); - } - - public function clearReaction() - { - unset($this->reaction); - } - - /** - * Required. The reaction to create. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Reaction $var - * @return $this - */ - public function setReaction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); - $this->reaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php deleted file mode 100644 index 0f89cf2aafdf..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CreateSpaceRequest.php +++ /dev/null @@ -1,192 +0,0 @@ -google.chat.v1.CreateSpaceRequest - */ -class CreateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` is supported. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), - * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Apps\Chat\V1\Space $space Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` is supported. - * - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * - * If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), - * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true. - * - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * @return \Google\Apps\Chat\V1\CreateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Space $space): self - { - return (new self()) - ->setSpace($space); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` is supported. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), - * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * @type string $request_id - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` is supported. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), - * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. The `displayName` and `spaceType` fields must be populated. Only - * `SpaceType.SPACE` is supported. - * If you receive the error message `ALREADY_EXISTS`, - * try a different `displayName`. An existing space within the Google - * Workspace organization might already use this display name. - * If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), - * `SpaceType.GROUP_CHAT` can be used if `importMode` is set to true. - * The space `name` is assigned on the server so anything specified in this - * field will be ignored. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php deleted file mode 100644 index 726372738cb6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/CustomEmoji.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.CustomEmoji - */ -class CustomEmoji extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Unique key for the custom emoji resource. - * - * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uid - * Output only. Unique key for the custom emoji resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Unique key for the custom emoji resource. - * - * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique key for the custom emoji resource. - * - * Generated from protobuf field string uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php deleted file mode 100644 index cbbedad4aa34..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMembershipRequest.php +++ /dev/null @@ -1,196 +0,0 @@ -google.chat.v1.DeleteMembershipRequest - */ -class DeleteMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope and - * `spaces/{space}/members/{member}` format. You can use the email as an - * alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * - * Generated from protobuf field bool use_admin_access = 2; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * - * When deleting a human membership, requires the `chat.memberships` scope and - * `spaces/{space}/members/{member}` format. You can use the email as an - * alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. Please see - * {@see ChatServiceClient::membershipName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteMembershipRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope and - * `spaces/{space}/members/{member}` format. You can use the email as an - * alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope and - * `spaces/{space}/members/{member}` format. You can use the email as an - * alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the membership to delete. Chat apps can delete - * human users' or their own memberships. Chat apps can't delete other apps' - * memberships. - * When deleting a human membership, requires the `chat.memberships` scope and - * `spaces/{space}/members/{member}` format. You can use the email as an - * alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * When deleting an app membership, requires the `chat.memberships.app` scope - * and `spaces/{space}/members/app` format. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. - * - * 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; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * - * Generated from protobuf field bool use_admin_access = 2; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Deleting app memberships in a space isn't supported using admin access. - * - * Generated from protobuf field bool use_admin_access = 2; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php deleted file mode 100644 index 37cb2a3434f7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteMessageRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.chat.v1.DeleteMessageRequest - */ -class DeleteMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * When `true`, deleting a message also deletes its threaded replies. When - * `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field bool force = 2; - */ - protected $force = false; - - /** - * @param string $name Required. Resource name of the message. - * - * Format: `spaces/{space}/messages/{message}` - * - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). Please see - * {@see ChatServiceClient::messageName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteMessageRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * @type bool $force - * When `true`, deleting a message also deletes its threaded replies. When - * `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * 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; - } - - /** - * When `true`, deleting a message also deletes its threaded replies. When - * `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field bool force = 2; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * When `true`, deleting a message also deletes its threaded replies. When - * `false`, if a message has threaded replies, deletion fails. - * Only applies when [authenticating as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * Has no effect when [authenticating as a Chat app] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field bool force = 2; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php deleted file mode 100644 index c7557ad1c0e4..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteReactionRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.chat.v1.DeleteReactionRequest - */ -class DeleteReactionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the reaction to delete. - * - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * Please see {@see ChatServiceClient::reactionName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteReactionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * 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. Name of the reaction to delete. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php deleted file mode 100644 index 0f9bea7f4729..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeleteSpaceRequest.php +++ /dev/null @@ -1,145 +0,0 @@ -google.chat.v1.DeleteSpaceRequest - */ -class DeleteSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the space to delete. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\DeleteSpaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space to delete. - * Format: `spaces/{space}` - * - * 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; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.delete` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php deleted file mode 100644 index cd50e1dc6aa7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.DeletionMetadata - */ -class DeletionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates who deleted the message. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; - */ - protected $deletion_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $deletion_type - * Indicates who deleted the message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\DeletionMetadata::initOnce(); - parent::__construct($data); - } - - /** - * Indicates who deleted the message. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; - * @return int - */ - public function getDeletionType() - { - return $this->deletion_type; - } - - /** - * Indicates who deleted the message. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1; - * @param int $var - * @return $this - */ - public function setDeletionType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\DeletionMetadata\DeletionType::class); - $this->deletion_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php deleted file mode 100644 index c7ff2a29683c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DeletionMetadata/DeletionType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.chat.v1.DeletionMetadata.DeletionType - */ -class DeletionType -{ - /** - * This value is unused. - * - * Generated from protobuf enum DELETION_TYPE_UNSPECIFIED = 0; - */ - const DELETION_TYPE_UNSPECIFIED = 0; - /** - * User deleted their own message. - * - * Generated from protobuf enum CREATOR = 1; - */ - const CREATOR = 1; - /** - * The space owner deleted the message. - * - * Generated from protobuf enum SPACE_OWNER = 2; - */ - const SPACE_OWNER = 2; - /** - * A Google Workspace admin deleted the message. - * - * Generated from protobuf enum ADMIN = 3; - */ - const ADMIN = 3; - /** - * A Chat app deleted its own message when it expired. - * - * Generated from protobuf enum APP_MESSAGE_EXPIRY = 4; - */ - const APP_MESSAGE_EXPIRY = 4; - /** - * A Chat app deleted the message on behalf of the user. - * - * Generated from protobuf enum CREATOR_VIA_APP = 5; - */ - const CREATOR_VIA_APP = 5; - /** - * A Chat app deleted the message on behalf of the space owner. - * - * Generated from protobuf enum SPACE_OWNER_VIA_APP = 6; - */ - const SPACE_OWNER_VIA_APP = 6; - - private static $valueToName = [ - self::DELETION_TYPE_UNSPECIFIED => 'DELETION_TYPE_UNSPECIFIED', - self::CREATOR => 'CREATOR', - self::SPACE_OWNER => 'SPACE_OWNER', - self::ADMIN => 'ADMIN', - self::APP_MESSAGE_EXPIRY => 'APP_MESSAGE_EXPIRY', - self::CREATOR_VIA_APP => 'CREATOR_VIA_APP', - self::SPACE_OWNER_VIA_APP => 'SPACE_OWNER_VIA_APP', - ]; - - 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(DeletionType::class, \Google\Apps\Chat\V1\DeletionMetadata_DeletionType::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php deleted file mode 100644 index 86434601a751..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Dialog.php +++ /dev/null @@ -1,85 +0,0 @@ -google.chat.v1.Dialog - */ -class Dialog extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * - * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $body = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Card\V1\Card $body - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * - * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Card\V1\Card|null - */ - public function getBody() - { - return $this->body; - } - - public function hasBody() - { - return isset($this->body); - } - - public function clearBody() - { - unset($this->body); - } - - /** - * Input only. Body of the dialog, which is rendered in a modal. - * Google Chat apps don't support the following card entities: - * `DateTimePicker`, `OnChangeAction`. - * - * Generated from protobuf field .google.apps.card.v1.Card body = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Card\V1\Card $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Card\V1\Card::class); - $this->body = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php deleted file mode 100644 index 381110a1278f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DialogAction.php +++ /dev/null @@ -1,139 +0,0 @@ -google.chat.v1.DialogAction - */ -class DialogAction extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * - * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $action_status = null; - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Dialog $dialog - * Input only. - * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the - * request. - * @type \Google\Apps\Chat\V1\ActionStatus $action_status - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Input only. - * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the - * request. - * - * Generated from protobuf field .google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Dialog|null - */ - public function getDialog() - { - return $this->readOneof(1); - } - - public function hasDialog() - { - return $this->hasOneof(1); - } - - /** - * Input only. - * [Dialog](https://developers.google.com/workspace/chat/dialogs) for the - * request. - * - * Generated from protobuf field .google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Dialog $var - * @return $this - */ - public function setDialog($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Dialog::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * - * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\ActionStatus|null - */ - public function getActionStatus() - { - return $this->action_status; - } - - public function hasActionStatus() - { - return isset($this->action_status); - } - - public function clearActionStatus() - { - unset($this->action_status); - } - - /** - * Input only. Status for a request to either invoke or submit a - * [dialog](https://developers.google.com/workspace/chat/dialogs). Displays - * a status and message to users, if necessary. - * For example, in case of an error or success. - * - * Generated from protobuf field .google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\ActionStatus $var - * @return $this - */ - public function setActionStatus($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionStatus::class); - $this->action_status = $var; - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php deleted file mode 100644 index 9c6bf3e9e6b9..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveDataRef.php +++ /dev/null @@ -1,67 +0,0 @@ -google.chat.v1.DriveDataRef - */ -class DriveDataRef extends \Google\Protobuf\Internal\Message -{ - /** - * The ID for the drive file. Use with the Drive API. - * - * Generated from protobuf field string drive_file_id = 2; - */ - protected $drive_file_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $drive_file_id - * The ID for the drive file. Use with the Drive API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * The ID for the drive file. Use with the Drive API. - * - * Generated from protobuf field string drive_file_id = 2; - * @return string - */ - public function getDriveFileId() - { - return $this->drive_file_id; - } - - /** - * The ID for the drive file. Use with the Drive API. - * - * Generated from protobuf field string drive_file_id = 2; - * @param string $var - * @return $this - */ - public function setDriveFileId($var) - { - GPBUtil::checkString($var, True); - $this->drive_file_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php deleted file mode 100644 index f27cfb2631df..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/DriveLinkData.php +++ /dev/null @@ -1,119 +0,0 @@ -google.chat.v1.DriveLinkData - */ -class DriveLinkData extends \Google\Protobuf\Internal\Message -{ - /** - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; - */ - protected $drive_data_ref = null; - /** - * The mime type of the linked Google Drive resource. - * - * Generated from protobuf field string mime_type = 2; - */ - protected $mime_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\DriveDataRef $drive_data_ref - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * @type string $mime_type - * The mime type of the linked Google Drive resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; - * @return \Google\Apps\Chat\V1\DriveDataRef|null - */ - public function getDriveDataRef() - { - return $this->drive_data_ref; - } - - public function hasDriveDataRef() - { - return isset($this->drive_data_ref); - } - - public function clearDriveDataRef() - { - unset($this->drive_data_ref); - } - - /** - * A - * [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) - * which references a Google Drive file. - * - * Generated from protobuf field .google.chat.v1.DriveDataRef drive_data_ref = 1; - * @param \Google\Apps\Chat\V1\DriveDataRef $var - * @return $this - */ - public function setDriveDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveDataRef::class); - $this->drive_data_ref = $var; - - return $this; - } - - /** - * The mime type of the linked Google Drive resource. - * - * Generated from protobuf field string mime_type = 2; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * The mime type of the linked Google Drive resource. - * - * Generated from protobuf field string mime_type = 2; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php deleted file mode 100644 index c4efb005ee19..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Emoji.php +++ /dev/null @@ -1,108 +0,0 @@ -google.chat.v1.Emoji - */ -class Emoji extends \Google\Protobuf\Internal\Message -{ - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $unicode - * A basic emoji represented by a unicode string. - * @type \Google\Apps\Chat\V1\CustomEmoji $custom_emoji - * Output only. A custom emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * A basic emoji represented by a unicode string. - * - * Generated from protobuf field string unicode = 1; - * @return string - */ - public function getUnicode() - { - return $this->readOneof(1); - } - - public function hasUnicode() - { - return $this->hasOneof(1); - } - - /** - * A basic emoji represented by a unicode string. - * - * Generated from protobuf field string unicode = 1; - * @param string $var - * @return $this - */ - public function setUnicode($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Output only. A custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\CustomEmoji|null - */ - public function getCustomEmoji() - { - return $this->readOneof(2); - } - - public function hasCustomEmoji() - { - return $this->hasOneof(2); - } - - /** - * Output only. A custom emoji. - * - * Generated from protobuf field .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\CustomEmoji $var - * @return $this - */ - public function setCustomEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\CustomEmoji::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php deleted file mode 100644 index c607da712f81..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/EmojiReactionSummary.php +++ /dev/null @@ -1,121 +0,0 @@ -google.chat.v1.EmojiReactionSummary - */ -class EmojiReactionSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Emoji associated with the reactions. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 1; - */ - protected $emoji = null; - /** - * The total number of reactions using the associated emoji. - * - * Generated from protobuf field optional int32 reaction_count = 2; - */ - protected $reaction_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Emoji $emoji - * Emoji associated with the reactions. - * @type int $reaction_count - * The total number of reactions using the associated emoji. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Emoji associated with the reactions. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 1; - * @return \Google\Apps\Chat\V1\Emoji|null - */ - public function getEmoji() - { - return $this->emoji; - } - - public function hasEmoji() - { - return isset($this->emoji); - } - - public function clearEmoji() - { - unset($this->emoji); - } - - /** - * Emoji associated with the reactions. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 1; - * @param \Google\Apps\Chat\V1\Emoji $var - * @return $this - */ - public function setEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Emoji::class); - $this->emoji = $var; - - return $this; - } - - /** - * The total number of reactions using the associated emoji. - * - * Generated from protobuf field optional int32 reaction_count = 2; - * @return int - */ - public function getReactionCount() - { - return isset($this->reaction_count) ? $this->reaction_count : 0; - } - - public function hasReactionCount() - { - return isset($this->reaction_count); - } - - public function clearReactionCount() - { - unset($this->reaction_count); - } - - /** - * The total number of reactions using the associated emoji. - * - * Generated from protobuf field optional int32 reaction_count = 2; - * @param int $var - * @return $this - */ - public function setReactionCount($var) - { - GPBUtil::checkInt32($var); - $this->reaction_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php deleted file mode 100644 index d8347a58af0b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/FindDirectMessageRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.FindDirectMessageRequest - */ -class FindDirectMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example@gmail.com` where `example@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example@gmail.com` where `example@gmail.com` is the email of the - * Google Chat user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example@gmail.com` where `example@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the user to find direct message with. - * Format: `users/{user}`, where `{user}` is either the `id` for the - * [person](https://developers.google.com/people/api/rest/v1/people) from the - * People API, or the `id` for the - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Directory API. For example, if the People API profile ID is - * `123456789`, you can find a direct message with that person by using - * `users/123456789` as the `name`. When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the email as an alias for `{user}`. For example, - * `users/example@gmail.com` where `example@gmail.com` is the email of the - * Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php deleted file mode 100644 index 4e3a33a77b87..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetAttachmentRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.chat.v1.GetAttachmentRequest - */ -class GetAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. Please see - * {@see ChatServiceClient::attachmentName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the attachment, in the form - * `spaces/{space}/messages/{message}/attachments/{attachment}`. - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php deleted file mode 100644 index 55823f0ea600..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMembershipRequest.php +++ /dev/null @@ -1,195 +0,0 @@ -google.chat.v1.GetMembershipRequest - */ -class GetMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 3; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the membership to retrieve. - * - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. Please see - * {@see ChatServiceClient::membershipName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetMembershipRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the membership to retrieve. - * To get the app's own membership [by using user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can optionally use `spaces/{space}/members/app`. - * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app` - * When [authenticated as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * you can use the user's email as an alias for `{member}`. For example, - * `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the - * email of the Google Chat user. - * - * 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; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 3; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` - * [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Getting app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 3; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php deleted file mode 100644 index 99403d2bead6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetMessageRequest.php +++ /dev/null @@ -1,108 +0,0 @@ -google.chat.v1.GetMessageRequest - */ -class GetMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the message. - * - * Format: `spaces/{space}/messages/{message}` - * - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). Please see - * {@see ChatServiceClient::messageName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetMessageRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * If you've set a custom ID for your message, you can use the value from the - * `clientAssignedMessageId` field for `{message}`. For details, see [Name a - * message] - * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php deleted file mode 100644 index 892b3632ebb6..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceEventRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.chat.v1.GetSpaceEventRequest - */ -class GetSpaceEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the space event. - * - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * Please see {@see ChatServiceClient::spaceEventName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetSpaceEventRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * 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 space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php deleted file mode 100644 index 388b0ec0c154..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceReadStateRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.chat.v1.GetSpaceReadStateRequest - */ -class GetSpaceReadStateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the space read state to retrieve. - * - * Only supports getting read state for the calling user. - * - * To refer to the calling user, set one of the following: - * - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * - * Format: users/{user}/spaces/{space}/spaceReadState - * Please see {@see ChatServiceClient::spaceReadStateName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetSpaceReadStateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php deleted file mode 100644 index 6b3ee5dbaefd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetSpaceRequest.php +++ /dev/null @@ -1,145 +0,0 @@ -google.chat.v1.GetSpaceRequest - */ -class GetSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2; - */ - protected $use_admin_access = false; - - /** - * @param string $name Required. Resource name of the space, in the form `spaces/{space}`. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetSpaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space, in the form `spaces/{space}`. - * Format: `spaces/{space}` - * - * 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; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0 - * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 2; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php deleted file mode 100644 index 66ef60d6afb3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/GetThreadReadStateRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.chat.v1.GetThreadReadStateRequest - */ -class GetThreadReadStateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the thread read state to retrieve. - * - * Only supports getting read state for the calling user. - * - * To refer to the calling user, set one of the following: - * - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * Please see {@see ChatServiceClient::threadReadStateName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\GetThreadReadStateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ThreadReadState::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the thread read state to retrieve. - * Only supports getting read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, - * `users/me/spaces/{space}/threads/{thread}/threadReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. - * Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php deleted file mode 100644 index abd3dff79c75..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Group.php +++ /dev/null @@ -1,83 +0,0 @@ -google.chat.v1.Group - */ -class Group extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Group::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for a Google Group. - * Represents a - * [group](https://cloud.google.com/identity/docs/reference/rest/v1/groups) in - * Cloud Identity Groups API. - * Format: groups/{group} - * - * 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; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php deleted file mode 100644 index 2dadcbc53b5f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/HistoryState.php +++ /dev/null @@ -1,65 +0,0 @@ -google.chat.v1.HistoryState - */ -class HistoryState -{ - /** - * Default value. Do not use. - * - * Generated from protobuf enum HISTORY_STATE_UNSPECIFIED = 0; - */ - const HISTORY_STATE_UNSPECIFIED = 0; - /** - * History off. [Messages and threads are kept for 24 - * hours](https://support.google.com/chat/answer/7664687). - * - * Generated from protobuf enum HISTORY_OFF = 1; - */ - const HISTORY_OFF = 1; - /** - * History on. The organization's [Vault retention - * rules](https://support.google.com/vault/answer/7657597) specify for - * how long messages and threads are kept. - * - * Generated from protobuf enum HISTORY_ON = 2; - */ - const HISTORY_ON = 2; - - private static $valueToName = [ - self::HISTORY_STATE_UNSPECIFIED => 'HISTORY_STATE_UNSPECIFIED', - self::HISTORY_OFF => 'HISTORY_OFF', - self::HISTORY_ON => 'HISTORY_ON', - ]; - - 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php deleted file mode 100644 index 6cdec7cabeab..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsRequest.php +++ /dev/null @@ -1,512 +0,0 @@ -google.chat.v1.ListMembershipsRequest - */ -class ListMembershipsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space for which to fetch a membership - * list. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * - * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_groups = false; - /** - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $show_invited = false; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 8; - */ - protected $use_admin_access = false; - - /** - * @param string $parent Required. The resource name of the space for which to fetch a membership - * list. - * - * Format: spaces/{space} - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListMembershipsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space for which to fetch a membership - * list. - * Format: spaces/{space} - * @type int $page_size - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * @type bool $show_groups - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * @type bool $show_invited - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space for which to fetch a membership - * list. - * Format: spaces/{space} - * - * 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 space for which to fetch a membership - * list. - * Format: spaces/{space} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of memberships to return. The service might - * return fewer than this value. - * If unspecified, at most 100 memberships are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous call to list memberships. - * Provide this parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * You can filter memberships by a member's role - * ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) - * and type - * ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)). - * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`. - * To filter by type, set `member.type` to `HUMAN` or `BOT`. You can also - * filter for `member.type` using the `!=` operator. - * To filter by both role and type, use the `AND` operator. To filter by - * either role or type, use the `OR` operator. - * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required - * when `use_admin_access` is set to true. Other member type filters will be - * rejected. - * For example, the following queries are valid: - * ``` - * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER" - * member.type = "HUMAN" AND role = "ROLE_MANAGER" - * member.type != "BOT" - * ``` - * The following queries are invalid: - * ``` - * member.type = "HUMAN" AND member.type = "BOT" - * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * - * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowGroups() - { - return $this->show_groups; - } - - /** - * Optional. When `true`, also returns memberships associated with a - * [Google Group][google.chat.v1.Membership.group_member], in - * addition to other types of memberships. If a - * [filter][google.chat.v1.ListMembershipsRequest.filter] is set, - * [Google Group][google.chat.v1.Membership.group_member] - * memberships that don't match the filter criteria aren't returned. - * - * Generated from protobuf field bool show_groups = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowGroups($var) - { - GPBUtil::checkBool($var); - $this->show_groups = $var; - - return $this; - } - - /** - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getShowInvited() - { - return $this->show_invited; - } - - /** - * Optional. When `true`, also returns memberships associated with - * [invited][google.chat.v1.Membership.MembershipState.INVITED] members, in - * addition to other types of memberships. If a - * filter is set, - * [invited][google.chat.v1.Membership.MembershipState.INVITED] memberships - * that don't match the filter criteria aren't returned. - * Currently requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Generated from protobuf field bool show_invited = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setShowInvited($var) - { - GPBUtil::checkBool($var); - $this->show_invited = $var; - - return $this; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 8; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.memberships.readonly` or - * `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Listing app memberships in a space isn't supported when using admin access. - * - * Generated from protobuf field bool use_admin_access = 8; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php deleted file mode 100644 index 683786ade983..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMembershipsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListMembershipsResponse - */ -class ListMembershipsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Unordered list. List of memberships in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $memberships; - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $memberships - * Unordered list. List of memberships in the requested (or first) page. - * @type string $next_page_token - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Unordered list. List of memberships in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * Unordered list. List of memberships in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array<\Google\Apps\Chat\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Membership::class); - $this->memberships = $arr; - - return $this; - } - - /** - * A token that you can send as `pageToken` to retrieve the next page of - * results. If empty, 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 that you can send as `pageToken` to retrieve the next page of - * results. If empty, 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php deleted file mode 100644 index ab83af2f4080..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesRequest.php +++ /dev/null @@ -1,421 +0,0 @@ -google.chat.v1.ListMessagesRequest - */ -class ListMessagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the space to list messages from. - * Format: `spaces/{space}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of messages returned. The service might return fewer - * messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Optional, if resuming from a previous query. - * A page token received from a previous list messages call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Optional, if resuming from a previous query. - * How the list of messages is ordered. Specify a value to order by an - * ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - /** - * Whether to include deleted messages. Deleted messages include deleted time - * and metadata about their deletion, but message content is unavailable. - * - * Generated from protobuf field bool show_deleted = 6; - */ - protected $show_deleted = false; - - /** - * @param string $parent Required. The resource name of the space to list messages from. - * - * Format: `spaces/{space}` - * Please see {@see ChatServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListMessagesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the space to list messages from. - * Format: `spaces/{space}` - * @type int $page_size - * The maximum number of messages returned. The service might return fewer - * messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional, if resuming from a previous query. - * A page token received from a previous list messages call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * @type string $filter - * A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * @type string $order_by - * Optional, if resuming from a previous query. - * How the list of messages is ordered. Specify a value to order by an - * ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * @type bool $show_deleted - * Whether to include deleted messages. Deleted messages include deleted time - * and metadata about their deletion, but message content is unavailable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the space to list messages from. - * Format: `spaces/{space}` - * - * 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 space to list messages from. - * Format: `spaces/{space}` - * - * 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 messages returned. The service might return fewer - * messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of messages returned. The service might return fewer - * messages than this value. - * If unspecified, at most 25 are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * 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; - } - - /** - * Optional, if resuming from a previous query. - * A page token received from a previous list messages call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional, if resuming from a previous query. - * A page token received from a previous list messages call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * 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; - } - - /** - * A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A query filter. - * You can filter messages by date (`create_time`) and thread (`thread.name`). - * To filter messages by the date they were created, specify the `create_time` - * with a timestamp in [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) - * format and double quotation marks. For example, - * `"2023-04-21T11:30:00-04:00"`. You can use the greater than operator `>` to - * list messages that were created after a timestamp, or the less than - * operator `<` to list messages that were created before a timestamp. To - * filter messages within a time interval, use the `AND` operator between two - * timestamps. - * To filter by thread, specify the `thread.name`, formatted as - * `spaces/{space}/threads/{thread}`. You can only specify one - * `thread.name` per query. - * To filter by both thread and date, use the `AND` operator in your query. - * For example, the following queries are valid: - * ``` - * create_time > "2012-04-21T11:30:00-04:00" - * create_time > "2012-04-21T11:30:00-04:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * create_time > "2012-04-21T11:30:00+00:00" AND - * create_time < "2013-01-01T00:00:00+00:00" AND - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * thread.name = spaces/AAAAAAAAAAA/threads/123 - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional, if resuming from a previous query. - * How the list of messages is ordered. Specify a value to order by an - * ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional, if resuming from a previous query. - * How the list of messages is ordered. Specify a value to order by an - * ordering operation. Valid ordering operation values are as follows: - * - `ASC` for ascending. - * - `DESC` for descending. - * The default ordering is `create_time ASC`. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Whether to include deleted messages. Deleted messages include deleted time - * and metadata about their deletion, but message content is unavailable. - * - * Generated from protobuf field bool show_deleted = 6; - * @return bool - */ - public function getShowDeleted() - { - return $this->show_deleted; - } - - /** - * Whether to include deleted messages. Deleted messages include deleted time - * and metadata about their deletion, but message content is unavailable. - * - * Generated from protobuf field bool show_deleted = 6; - * @param bool $var - * @return $this - */ - public function setShowDeleted($var) - { - GPBUtil::checkBool($var); - $this->show_deleted = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php deleted file mode 100644 index 2b34fab21efd..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListMessagesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListMessagesResponse - */ -class ListMessagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of messages. - * - * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; - */ - private $messages; - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\Message>|\Google\Protobuf\Internal\RepeatedField $messages - * List of messages. - * @type string $next_page_token - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * List of messages. - * - * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMessages() - { - return $this->messages; - } - - /** - * List of messages. - * - * Generated from protobuf field repeated .google.chat.v1.Message messages = 1; - * @param array<\Google\Apps\Chat\V1\Message>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Message::class); - $this->messages = $arr; - - return $this; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php deleted file mode 100644 index 57ee4da7a254..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsRequest.php +++ /dev/null @@ -1,349 +0,0 @@ -google.chat.v1.ListReactionsRequest - */ -class ListReactionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The message users reacted to. - * - * Format: `spaces/{space}/messages/{message}` - * Please see {@see ChatServiceClient::messageName()} for help formatting this field. - * - * @return \Google\Apps\Chat\V1\ListReactionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * @type int $page_size - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * @type string $page_token - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * Required. The message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * - * 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 message users reacted to. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of reactions returned. The service can return - * fewer reactions than this value. If unspecified, the default value is 25. - * The maximum value is 200; values above 200 are changed to 200. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. (If resuming from a previous query.) - * A page token received from a previous list reactions call. Provide this - * to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * You can filter reactions by - * [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) - * (either `emoji.unicode` or `emoji.custom_emoji.uid`) and - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * (`user.name`). - * To filter reactions for multiple emojis or users, join similar fields - * with the `OR` operator, such as `emoji.unicode = "🙂" OR emoji.unicode = - * "👍"` and `user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"`. - * To filter reactions by emoji and user, use the `AND` operator, such as - * `emoji.unicode = "🙂" AND user.name = "users/AAAAAA"`. - * If your query uses both `AND` and `OR`, group them with parentheses. - * For example, the following queries are valid: - * ``` - * user.name = "users/{user}" - * emoji.unicode = "🙂" - * emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR emoji.unicode = "👍" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" AND user.name = "users/{user}" - * (emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}") - * AND user.name = "users/{user}" - * ``` - * The following queries are invalid: - * ``` - * emoji.unicode = "🙂" AND emoji.unicode = "👍" - * emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}" - * emoji.unicode = "🙂" OR user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR - * user.name = "users/{user}" - * emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" - * AND user.name = "users/{user}" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php deleted file mode 100644 index 429f5e5b5565..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListReactionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.ListReactionsResponse - */ -class ListReactionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of reactions in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; - */ - private $reactions; - /** - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\Reaction>|\Google\Protobuf\Internal\RepeatedField $reactions - * List of reactions in the requested (or first) page. - * @type string $next_page_token - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * List of reactions in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReactions() - { - return $this->reactions; - } - - /** - * List of reactions in the requested (or first) page. - * - * Generated from protobuf field repeated .google.chat.v1.Reaction reactions = 1; - * @param array<\Google\Apps\Chat\V1\Reaction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Reaction::class); - $this->reactions = $arr; - - return $this; - } - - /** - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Continuation token to retrieve the next page of results. It's empty - * for the last page of results. - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php deleted file mode 100644 index d4cf55391b8b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsRequest.php +++ /dev/null @@ -1,444 +0,0 @@ -google.chat.v1.ListSpaceEventsRequest - */ -class ListSpaceEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 5; - */ - protected $page_size = 0; - /** - * A page token, received from a previous list space events call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * - * Generated from protobuf field string page_token = 6; - */ - protected $page_token = ''; - /** - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * - * Format: `spaces/{space}`. Please see - * {@see ChatServiceClient::spaceName()} for help formatting this field. - * @param string $filter Required. A query filter. - * - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * - * For example, the following queries are valid: - * - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * - * The following queries are invalid: - * - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * @return \Google\Apps\Chat\V1\ListSpaceEventsRequest - * - * @experimental - */ - public static function build(string $parent, string $filter): self - { - return (new self()) - ->setParent($parent) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * @type int $page_size - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * A page token, received from a previous list space events call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * @type string $filter - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the [Google Chat - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * where the events occurred. - * Format: `spaces/{space}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 5; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of space events returned. The service might - * return fewer than this value. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 5; - * @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 list space events call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * - * Generated from protobuf field string page_token = 6; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous list space events call. Provide this - * to retrieve the subsequent page. - * When paginating, all other parameters provided to list space events must - * match the call that provided the page token. Passing different values to - * the other parameters might lead to unexpected results. - * - * Generated from protobuf field string page_token = 6; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. A query filter. - * You must specify at least one event type (`event_type`) - * using the has `:` operator. To filter by multiple event types, use the `OR` - * operator. Omit batch event types in your filter. The request automatically - * returns any related batch events. For example, if you filter by new - * reactions - * (`google.workspace.chat.reaction.v1.created`), the server also returns - * batch new reactions events - * (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported - * event types, see the [`SpaceEvents` reference - * documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type). - * Optionally, you can also filter by start time (`start_time`) and - * end time (`end_time`): - * * `start_time`: Exclusive timestamp from which to start listing space - * events. - * You can list events that occurred up to 28 days ago. If unspecified, lists - * space events from the past 28 days. - * * `end_time`: Inclusive timestamp until which space events are listed. - * If unspecified, lists events up to the time of the request. - * To specify a start or end time, use the equals `=` operator and format in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both - * `start_time` and `end_time`, use the `AND` operator. - * For example, the following queries are valid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * start_time="2023-08-23T19:20:33+00:00" AND - * (event_types:"google.workspace.chat.space.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created") - * ``` - * The following queries are invalid: - * ``` - * start_time="2023-08-23T19:20:33+00:00" OR - * end_time="2023-08-23T19:21:54+00:00" - * ``` - * ``` - * event_types:"google.workspace.chat.space.v1.updated" AND - * event_types:"google.workspace.chat.message.v1.created" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php deleted file mode 100644 index 9ed151c8bdda..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpaceEventsResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.chat.v1.ListSpaceEventsResponse - */ -class ListSpaceEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; - */ - private $space_events; - /** - * Continuation token used to fetch more events. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\SpaceEvent>|\Google\Protobuf\Internal\RepeatedField $space_events - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * @type string $next_page_token - * Continuation token used to fetch more events. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpaceEvents() - { - return $this->space_events; - } - - /** - * Results are returned in chronological order (oldest event first). - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceEvent space_events = 1; - * @param array<\Google\Apps\Chat\V1\SpaceEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpaceEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SpaceEvent::class); - $this->space_events = $arr; - - return $this; - } - - /** - * Continuation token used to fetch more events. - * 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; - } - - /** - * Continuation token used to fetch more events. - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php deleted file mode 100644 index b1764b3e4d93..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.chat.v1.ListSpacesRequest - */ -class ListSpacesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * @type string $page_token - * Optional. A page token, received from a previous list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * @type string $filter - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of spaces to return. The service might return - * fewer than this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * Negative values return an `INVALID_ARGUMENT` error. - * - * Generated from protobuf field int32 page_size = 1 [(.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 list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous list spaces call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value may lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A query filter. - * You can filter spaces by the space type - * ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). - * To filter by space type, you must specify valid enum value, such as - * `SPACE` or `GROUP_CHAT` (the `space_type` can't be - * `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` - * operator. - * For example, the following queries are valid: - * ``` - * space_type = "SPACE" - * spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE" - * ``` - * Invalid queries are rejected by the server with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php deleted file mode 100644 index 866249c6ff30..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ListSpacesResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.chat.v1.ListSpacesResponse - */ -class ListSpacesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - */ - private $spaces; - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\Space>|\Google\Protobuf\Internal\RepeatedField $spaces - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * @type string $next_page_token - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpaces() - { - return $this->spaces; - } - - /** - * List of spaces in the requested (or first) page. - * Note: The `permissionSettings` field is not returned in the Space - * object for list requests. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @param array<\Google\Apps\Chat\V1\Space>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); - $this->spaces = $arr; - - return $this; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * You can send a token as `pageToken` to retrieve the next page of - * results. If empty, 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php deleted file mode 100644 index 2500f22c05fc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MatchedUrl.php +++ /dev/null @@ -1,69 +0,0 @@ -google.chat.v1.MatchedUrl - */ -class MatchedUrl extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The URL that was matched. - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Output only. The URL that was matched. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\MatchedUrl::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The URL that was matched. - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Output only. The URL that was matched. - * - * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php deleted file mode 100644 index f62c182830dc..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership.php +++ /dev/null @@ -1,342 +0,0 @@ -google.chat.v1.Membership - */ -class Membership extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. State of the membership. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $role = 0; - /** - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $delete_time = null; - protected $memberType; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * @type int $state - * Output only. State of the membership. - * @type int $role - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * @type \Google\Apps\Chat\V1\User $member - * The Google Chat user or app the membership corresponds to. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * @type \Google\Apps\Chat\V1\Group $group_member - * The Google Group the membership corresponds to. - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * @type \Google\Protobuf\Timestamp $delete_time - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the membership, assigned by the server. - * Format: `spaces/{space}/members/{member}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. State of the membership. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the membership. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Membership\MembershipState::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRole() - { - return $this->role; - } - - /** - * Optional. User's role within a Chat space, which determines their permitted - * actions in the space. - * This field can only be used as input in `UpdateMembership`. - * - * Generated from protobuf field .google.chat.v1.Membership.MembershipRole role = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Membership\MembershipRole::class); - $this->role = $var; - - return $this; - } - - /** - * The Google Chat user or app the membership corresponds to. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User member = 3; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getMember() - { - return $this->readOneof(3); - } - - public function hasMember() - { - return $this->hasOneof(3); - } - - /** - * The Google Chat user or app the membership corresponds to. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User member = 3; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setMember($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The Google Group the membership corresponds to. - * - * Generated from protobuf field .google.chat.v1.Group group_member = 5; - * @return \Google\Apps\Chat\V1\Group|null - */ - public function getGroupMember() - { - return $this->readOneof(5); - } - - public function hasGroupMember() - { - return $this->hasOneof(5); - } - - /** - * The Google Group the membership corresponds to. - * - * Generated from protobuf field .google.chat.v1.Group group_member = 5; - * @param \Google\Apps\Chat\V1\Group $var - * @return $this - */ - public function setGroupMember($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Group::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Immutable. The creation time of the membership, such as when a - * member joined or was invited to join a space. This field is output only, - * except when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Immutable. The deletion time of the membership, such as when a - * member left or was removed from a space. This field is output only, except - * when used to import historical memberships in import mode spaces. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getMemberType() - { - return $this->whichOneof("memberType"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php deleted file mode 100644 index ca249bb5f6a2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipRole.php +++ /dev/null @@ -1,73 +0,0 @@ -google.chat.v1.Membership.MembershipRole - */ -class MembershipRole -{ - /** - * Default value. For [users][google.chat.v1.Membership.member]: they - * aren't a member of the space, but can be invited. For - * [Google Groups][google.chat.v1.Membership.group_member]: they're always - * assigned this role (other enum values might be used in the future). - * - * Generated from protobuf enum MEMBERSHIP_ROLE_UNSPECIFIED = 0; - */ - const MEMBERSHIP_ROLE_UNSPECIFIED = 0; - /** - * A member of the space. The user has basic permissions, like sending - * messages to the space. In 1:1 and unnamed group conversations, everyone - * has this role. - * - * Generated from protobuf enum ROLE_MEMBER = 1; - */ - const ROLE_MEMBER = 1; - /** - * A space manager. The user has all basic permissions plus administrative - * permissions that let them manage the space, like adding or removing - * members. Only supported in - * [SpaceType.SPACE][google.chat.v1.Space.SpaceType]. - * - * Generated from protobuf enum ROLE_MANAGER = 2; - */ - const ROLE_MANAGER = 2; - - private static $valueToName = [ - self::MEMBERSHIP_ROLE_UNSPECIFIED => 'MEMBERSHIP_ROLE_UNSPECIFIED', - self::ROLE_MEMBER => 'ROLE_MEMBER', - self::ROLE_MANAGER => 'ROLE_MANAGER', - ]; - - 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(MembershipRole::class, \Google\Apps\Chat\V1\Membership_MembershipRole::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php deleted file mode 100644 index bf40d277a30c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Membership/MembershipState.php +++ /dev/null @@ -1,73 +0,0 @@ -google.chat.v1.Membership.MembershipState - */ -class MembershipState -{ - /** - * Default value. Don't use. - * - * Generated from protobuf enum MEMBERSHIP_STATE_UNSPECIFIED = 0; - */ - const MEMBERSHIP_STATE_UNSPECIFIED = 0; - /** - * The user is added to the space, and can participate in the space. - * - * Generated from protobuf enum JOINED = 1; - */ - const JOINED = 1; - /** - * The user is invited to join the space, but hasn't joined it. - * - * Generated from protobuf enum INVITED = 2; - */ - const INVITED = 2; - /** - * The user doesn't belong to the space and doesn't have a pending - * invitation to join the space. - * - * Generated from protobuf enum NOT_A_MEMBER = 3; - */ - const NOT_A_MEMBER = 3; - - private static $valueToName = [ - self::MEMBERSHIP_STATE_UNSPECIFIED => 'MEMBERSHIP_STATE_UNSPECIFIED', - self::JOINED => 'JOINED', - self::INVITED => 'INVITED', - self::NOT_A_MEMBER => 'NOT_A_MEMBER', - ]; - - 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(MembershipState::class, \Google\Apps\Chat\V1\Membership_MembershipState::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php deleted file mode 100644 index 699e47e35da3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchCreatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MembershipBatchCreatedEventData - */ -class MembershipBatchCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of new memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\MembershipCreatedEventData>|\Google\Protobuf\Internal\RepeatedField $memberships - * A list of new memberships. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of new memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * A list of new memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipCreatedEventData memberships = 1; - * @param array<\Google\Apps\Chat\V1\MembershipCreatedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipCreatedEventData::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php deleted file mode 100644 index 55b38cfbba73..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchDeletedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MembershipBatchDeletedEventData - */ -class MembershipBatchDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of deleted memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\MembershipDeletedEventData>|\Google\Protobuf\Internal\RepeatedField $memberships - * A list of deleted memberships. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of deleted memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * A list of deleted memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipDeletedEventData memberships = 1; - * @param array<\Google\Apps\Chat\V1\MembershipDeletedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipDeletedEventData::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php deleted file mode 100644 index a69226399552..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipBatchUpdatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MembershipBatchUpdatedEventData - */ -class MembershipBatchUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of updated memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\MembershipUpdatedEventData>|\Google\Protobuf\Internal\RepeatedField $memberships - * A list of updated memberships. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of updated memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * A list of updated memberships. - * - * Generated from protobuf field repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1; - * @param array<\Google\Apps\Chat\V1\MembershipUpdatedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MembershipUpdatedEventData::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php deleted file mode 100644 index f7eda903edad..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipCreatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MembershipCreatedEventData - */ -class MembershipCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The new membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - */ - protected $membership = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * The new membership. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The new membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * The new membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php deleted file mode 100644 index ec28249ca189..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipDeletedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MembershipDeletedEventData - */ -class MembershipDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The deleted membership. Only the `name` and `state` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - */ - protected $membership = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * The deleted membership. Only the `name` and `state` fields are populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The deleted membership. Only the `name` and `state` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * The deleted membership. Only the `name` and `state` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php deleted file mode 100644 index df395bd6d237..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MembershipUpdatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MembershipUpdatedEventData - */ -class MembershipUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The updated membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - */ - protected $membership = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * The updated membership. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The updated membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * The updated membership. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php deleted file mode 100644 index 4a893b5e16de..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Message.php +++ /dev/null @@ -1,1426 +0,0 @@ -google.chat.v1.Message - */ -class Message extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $sender = null; - /** - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Output only. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - /** - * Output only. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delete_time = null; - /** - * Plain-text body of the message. The first link to an image, video, or web - * page generates a - * [preview chip](https://developers.google.com/workspace/chat/preview-links). - * You can also [@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * Generated from protobuf field string text = 4; - */ - protected $text = ''; - /** - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * - * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $formatted_text = ''; - /** - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; - * @deprecated - */ - private $cards; - /** - * An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * - * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22; - */ - private $cards_v2; - /** - * Output only. Annotations associated with the `text` in this message. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $annotations; - /** - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field .google.chat.v1.Thread thread = 11; - */ - protected $thread = null; - /** - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * - * Generated from protobuf field .google.chat.v1.Space space = 12; - */ - protected $space = null; - /** - * A plain-text description of the message's cards, used when the actual cards - * can't be displayed—for example, mobile notifications. - * - * Generated from protobuf field string fallback_text = 13; - */ - protected $fallback_text = ''; - /** - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * - * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $action_response = null; - /** - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * - * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $argument_text = ''; - /** - * Output only. Slash command information, if applicable. - * - * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $slash_command = null; - /** - * User-uploaded attachment. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18; - */ - private $attachment; - /** - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * - * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $matched_url = null; - /** - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * - * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $thread_reply = false; - /** - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string client_assigned_message_id = 32; - */ - protected $client_assigned_message_id = ''; - /** - * Output only. The list of emoji reaction summaries on the message. - * - * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $emoji_reaction_summaries; - /** - * Immutable. Input for creating a message, otherwise output only. The user - * that can view the message. When set, the message is private and only - * visible to the specified user and the Chat app. To include this field in - * your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * * [Accessory - * widgets](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * - * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $private_message_viewer = null; - /** - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletion_metadata = null; - /** - * Output only. Information about a message that's quoted by a Google Chat - * user in a space. Google Chat users can quote a message to reply to it. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $quoted_message_metadata = null; - /** - * Output only. GIF images that are attached to the message. - * - * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $attached_gifs; - /** - * One or more interactive widgets that appear at the bottom of a message. - * You can add accessory widgets to messages that contain text, cards, or both - * text and cards. Not supported for messages that contain dialogs. For - * details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; - */ - private $accessory_widgets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * @type \Google\Apps\Chat\V1\User $sender - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * @type string $text - * Plain-text body of the message. The first link to an image, video, or web - * page generates a - * [preview chip](https://developers.google.com/workspace/chat/preview-links). - * You can also [@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * @type string $formatted_text - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * @type array<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card>|\Google\Protobuf\Internal\RepeatedField $cards - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * @type array<\Google\Apps\Chat\V1\CardWithId>|\Google\Protobuf\Internal\RepeatedField $cards_v2 - * An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * @type array<\Google\Apps\Chat\V1\Annotation>|\Google\Protobuf\Internal\RepeatedField $annotations - * Output only. Annotations associated with the `text` in this message. - * @type \Google\Apps\Chat\V1\Thread $thread - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * @type \Google\Apps\Chat\V1\Space $space - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * @type string $fallback_text - * A plain-text description of the message's cards, used when the actual cards - * can't be displayed—for example, mobile notifications. - * @type \Google\Apps\Chat\V1\ActionResponse $action_response - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * @type string $argument_text - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * @type \Google\Apps\Chat\V1\SlashCommand $slash_command - * Output only. Slash command information, if applicable. - * @type array<\Google\Apps\Chat\V1\Attachment>|\Google\Protobuf\Internal\RepeatedField $attachment - * User-uploaded attachment. - * @type \Google\Apps\Chat\V1\MatchedUrl $matched_url - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * @type bool $thread_reply - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * @type string $client_assigned_message_id - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * @type array<\Google\Apps\Chat\V1\EmojiReactionSummary>|\Google\Protobuf\Internal\RepeatedField $emoji_reaction_summaries - * Output only. The list of emoji reaction summaries on the message. - * @type \Google\Apps\Chat\V1\User $private_message_viewer - * Immutable. Input for creating a message, otherwise output only. The user - * that can view the message. When set, the message is private and only - * visible to the specified user and the Chat app. To include this field in - * your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * * [Accessory - * widgets](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * @type \Google\Apps\Chat\V1\DeletionMetadata $deletion_metadata - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * @type \Google\Apps\Chat\V1\QuotedMessageMetadata $quoted_message_metadata - * Output only. Information about a message that's quoted by a Google Chat - * user in a space. Google Chat users can quote a message to reply to it. - * @type array<\Google\Apps\Chat\V1\AttachedGif>|\Google\Protobuf\Internal\RepeatedField $attached_gifs - * Output only. GIF images that are attached to the message. - * @type array<\Google\Apps\Chat\V1\AccessoryWidget>|\Google\Protobuf\Internal\RepeatedField $accessory_widgets - * One or more interactive widgets that appear at the bottom of a message. - * You can add accessory widgets to messages that contain text, cards, or both - * text and cards. Not supported for messages that contain dialogs. For - * details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the message. - * Format: `spaces/{space}/messages/{message}` - * Where `{space}` is the ID of the space where the message is posted and - * `{message}` is a system-assigned ID for the message. For example, - * `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. - * If you set a custom ID when you create a message, you can use this ID to - * specify the message in a request by replacing `{message}` with the value - * from the `clientAssignedMessageId` field. For example, - * `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name - * a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * 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; - } - - /** - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getSender() - { - return $this->sender; - } - - public function hasSender() - { - return isset($this->sender); - } - - public function clearSender() - { - unset($this->sender); - } - - /** - * Output only. The user who created the message. - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) - * `name` and `type`. - * - * Generated from protobuf field .google.chat.v1.User sender = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setSender($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->sender = $var; - - return $this; - } - - /** - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Immutable. For spaces created in Chat, the time at which the - * message was created. This field is output only, except when used in import - * mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the message was created in the source in order to preserve the original - * creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @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. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. The time at which the message was last edited by a user. If - * the message has never been edited, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - - /** - * Output only. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.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. The time at which the message was deleted in - * Google Chat. If the message is never deleted, this field is empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 26 [(.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; - } - - /** - * Plain-text body of the message. The first link to an image, video, or web - * page generates a - * [preview chip](https://developers.google.com/workspace/chat/preview-links). - * You can also [@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * Generated from protobuf field string text = 4; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Plain-text body of the message. The first link to an image, video, or web - * page generates a - * [preview chip](https://developers.google.com/workspace/chat/preview-links). - * You can also [@mention a Google Chat - * user](https://developers.google.com/workspace/chat/format-messages#messages-@mention), - * or everyone in the space. - * To learn about creating text messages, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * Generated from protobuf field string text = 4; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * - * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFormattedText() - { - return $this->formatted_text; - } - - /** - * Output only. Contains the message `text` with markups added to communicate - * formatting. This field might not capture all formatting visible in the UI, - * but includes the following: - * * [Markup - * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. - * * [User - * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) - * using the format ``. - * * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the - * first string is the URL and the second is the rendered text—for example, - * ``. - * * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. - * This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning - * face emoji. - * For more information, see [View text formatting sent in a - * message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message) - * - * Generated from protobuf field string formatted_text = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFormattedText($var) - { - GPBUtil::checkString($var, True); - $this->formatted_text = $var; - - return $this; - } - - /** - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getCards() - { - @trigger_error('cards is deprecated.', E_USER_DEPRECATED); - return $this->cards; - } - - /** - * Deprecated: Use `cards_v2` instead. - * Rich, formatted, and interactive cards that you can use to display UI - * elements such as: formatted texts, buttons, and clickable images. Cards are - * normally displayed below the plain-text body of the message. `cards` and - * `cards_v2` can have a maximum size of 32 KB. - * - * Generated from protobuf field repeated .google.chat.v1.ContextualAddOnMarkup.Card cards = 5 [deprecated = true]; - * @param array<\Google\Apps\Chat\V1\ContextualAddOnMarkup\Card>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setCards($var) - { - @trigger_error('cards is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ContextualAddOnMarkup\Card::class); - $this->cards = $arr; - - return $this; - } - - /** - * An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * - * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCardsV2() - { - return $this->cards_v2; - } - - /** - * An array of - * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). - * Only Chat apps can create cards. If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. - * To learn how to create a message that contains cards, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * [Card builder](https://addons.gsuite.google.com/uikit/builder) - * - * Generated from protobuf field repeated .google.chat.v1.CardWithId cards_v2 = 22; - * @param array<\Google\Apps\Chat\V1\CardWithId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCardsV2($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\CardWithId::class); - $this->cards_v2 = $arr; - - return $this; - } - - /** - * Output only. Annotations associated with the `text` in this message. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Output only. Annotations associated with the `text` in this message. - * - * Generated from protobuf field repeated .google.chat.v1.Annotation annotations = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Apps\Chat\V1\Annotation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Annotation::class); - $this->annotations = $arr; - - return $this; - } - - /** - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field .google.chat.v1.Thread thread = 11; - * @return \Google\Apps\Chat\V1\Thread|null - */ - public function getThread() - { - return $this->thread; - } - - public function hasThread() - { - return isset($this->thread); - } - - public function clearThread() - { - unset($this->thread); - } - - /** - * The thread the message belongs to. For example usage, see - * [Start or reply to a message - * thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). - * - * Generated from protobuf field .google.chat.v1.Thread thread = 11; - * @param \Google\Apps\Chat\V1\Thread $var - * @return $this - */ - public function setThread($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Thread::class); - $this->thread = $var; - - return $this; - } - - /** - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * - * Generated from protobuf field .google.chat.v1.Space space = 12; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * If your Chat app [authenticates as a - * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the output populates the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) - * `name`. - * - * Generated from protobuf field .google.chat.v1.Space space = 12; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * A plain-text description of the message's cards, used when the actual cards - * can't be displayed—for example, mobile notifications. - * - * Generated from protobuf field string fallback_text = 13; - * @return string - */ - public function getFallbackText() - { - return $this->fallback_text; - } - - /** - * A plain-text description of the message's cards, used when the actual cards - * can't be displayed—for example, mobile notifications. - * - * Generated from protobuf field string fallback_text = 13; - * @param string $var - * @return $this - */ - public function setFallbackText($var) - { - GPBUtil::checkString($var, True); - $this->fallback_text = $var; - - return $this; - } - - /** - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * - * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Apps\Chat\V1\ActionResponse|null - */ - public function getActionResponse() - { - return $this->action_response; - } - - public function hasActionResponse() - { - return isset($this->action_response); - } - - public function clearActionResponse() - { - unset($this->action_response); - } - - /** - * Input only. Parameters that a Chat app can use to configure how its - * response is posted. - * - * Generated from protobuf field .google.chat.v1.ActionResponse action_response = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Apps\Chat\V1\ActionResponse $var - * @return $this - */ - public function setActionResponse($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ActionResponse::class); - $this->action_response = $var; - - return $this; - } - - /** - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * - * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArgumentText() - { - return $this->argument_text; - } - - /** - * Output only. Plain-text body of the message with all Chat app mentions - * stripped out. - * - * Generated from protobuf field string argument_text = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArgumentText($var) - { - GPBUtil::checkString($var, True); - $this->argument_text = $var; - - return $this; - } - - /** - * Output only. Slash command information, if applicable. - * - * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\SlashCommand|null - */ - public function getSlashCommand() - { - return $this->slash_command; - } - - public function hasSlashCommand() - { - return isset($this->slash_command); - } - - public function clearSlashCommand() - { - unset($this->slash_command); - } - - /** - * Output only. Slash command information, if applicable. - * - * Generated from protobuf field .google.chat.v1.SlashCommand slash_command = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\SlashCommand $var - * @return $this - */ - public function setSlashCommand($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SlashCommand::class); - $this->slash_command = $var; - - return $this; - } - - /** - * User-uploaded attachment. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttachment() - { - return $this->attachment; - } - - /** - * User-uploaded attachment. - * - * Generated from protobuf field repeated .google.chat.v1.Attachment attachment = 18; - * @param array<\Google\Apps\Chat\V1\Attachment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttachment($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Attachment::class); - $this->attachment = $arr; - - return $this; - } - - /** - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * - * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\MatchedUrl|null - */ - public function getMatchedUrl() - { - return $this->matched_url; - } - - public function hasMatchedUrl() - { - return isset($this->matched_url); - } - - public function clearMatchedUrl() - { - unset($this->matched_url); - } - - /** - * Output only. A URL in `spaces.messages.text` that matches a link preview - * pattern. For more information, see [Preview - * links](https://developers.google.com/workspace/chat/preview-links). - * - * Generated from protobuf field .google.chat.v1.MatchedUrl matched_url = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\MatchedUrl $var - * @return $this - */ - public function setMatchedUrl($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MatchedUrl::class); - $this->matched_url = $var; - - return $this; - } - - /** - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * - * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getThreadReply() - { - return $this->thread_reply; - } - - /** - * Output only. When `true`, the message is a response in a reply thread. When - * `false`, the message is visible in the space's top-level conversation as - * either the first message of a thread or a message with no threaded replies. - * If the space doesn't support reply in threads, this field is always - * `false`. - * - * Generated from protobuf field bool thread_reply = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setThreadReply($var) - { - GPBUtil::checkBool($var); - $this->thread_reply = $var; - - return $this; - } - - /** - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string client_assigned_message_id = 32; - * @return string - */ - public function getClientAssignedMessageId() - { - return $this->client_assigned_message_id; - } - - /** - * Optional. A custom ID for the message. You can use field to identify a - * message, or to get, delete, or update a message. To set a custom ID, - * specify the - * [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) - * field when you create the message. For details, see [Name a - * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). - * - * Generated from protobuf field string client_assigned_message_id = 32; - * @param string $var - * @return $this - */ - public function setClientAssignedMessageId($var) - { - GPBUtil::checkString($var, True); - $this->client_assigned_message_id = $var; - - return $this; - } - - /** - * Output only. The list of emoji reaction summaries on the message. - * - * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEmojiReactionSummaries() - { - return $this->emoji_reaction_summaries; - } - - /** - * Output only. The list of emoji reaction summaries on the message. - * - * Generated from protobuf field repeated .google.chat.v1.EmojiReactionSummary emoji_reaction_summaries = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Apps\Chat\V1\EmojiReactionSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEmojiReactionSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\EmojiReactionSummary::class); - $this->emoji_reaction_summaries = $arr; - - return $this; - } - - /** - * Immutable. Input for creating a message, otherwise output only. The user - * that can view the message. When set, the message is private and only - * visible to the specified user and the Chat app. To include this field in - * your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * * [Accessory - * widgets](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * - * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getPrivateMessageViewer() - { - return $this->private_message_viewer; - } - - public function hasPrivateMessageViewer() - { - return isset($this->private_message_viewer); - } - - public function clearPrivateMessageViewer() - { - unset($this->private_message_viewer); - } - - /** - * Immutable. Input for creating a message, otherwise output only. The user - * that can view the message. When set, the message is private and only - * visible to the specified user and the Chat app. To include this field in - * your request, you must call the Chat API using [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and omit the following: - * * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) - * * [Accessory - * widgets](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) - * For details, see [Send a message - * privately](https://developers.google.com/workspace/chat/create-messages#private). - * - * Generated from protobuf field .google.chat.v1.User private_message_viewer = 36 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setPrivateMessageViewer($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->private_message_viewer = $var; - - return $this; - } - - /** - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\DeletionMetadata|null - */ - public function getDeletionMetadata() - { - return $this->deletion_metadata; - } - - public function hasDeletionMetadata() - { - return isset($this->deletion_metadata); - } - - public function clearDeletionMetadata() - { - unset($this->deletion_metadata); - } - - /** - * Output only. Information about a deleted message. A message is deleted when - * `delete_time` is set. - * - * Generated from protobuf field .google.chat.v1.DeletionMetadata deletion_metadata = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\DeletionMetadata $var - * @return $this - */ - public function setDeletionMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DeletionMetadata::class); - $this->deletion_metadata = $var; - - return $this; - } - - /** - * Output only. Information about a message that's quoted by a Google Chat - * user in a space. Google Chat users can quote a message to reply to it. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\QuotedMessageMetadata|null - */ - public function getQuotedMessageMetadata() - { - return $this->quoted_message_metadata; - } - - public function hasQuotedMessageMetadata() - { - return isset($this->quoted_message_metadata); - } - - public function clearQuotedMessageMetadata() - { - unset($this->quoted_message_metadata); - } - - /** - * Output only. Information about a message that's quoted by a Google Chat - * user in a space. Google Chat users can quote a message to reply to it. - * - * Generated from protobuf field .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\QuotedMessageMetadata $var - * @return $this - */ - public function setQuotedMessageMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\QuotedMessageMetadata::class); - $this->quoted_message_metadata = $var; - - return $this; - } - - /** - * Output only. GIF images that are attached to the message. - * - * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttachedGifs() - { - return $this->attached_gifs; - } - - /** - * Output only. GIF images that are attached to the message. - * - * Generated from protobuf field repeated .google.chat.v1.AttachedGif attached_gifs = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Apps\Chat\V1\AttachedGif>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttachedGifs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\AttachedGif::class); - $this->attached_gifs = $arr; - - return $this; - } - - /** - * One or more interactive widgets that appear at the bottom of a message. - * You can add accessory widgets to messages that contain text, cards, or both - * text and cards. Not supported for messages that contain dialogs. For - * details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessoryWidgets() - { - return $this->accessory_widgets; - } - - /** - * One or more interactive widgets that appear at the bottom of a message. - * You can add accessory widgets to messages that contain text, cards, or both - * text and cards. Not supported for messages that contain dialogs. For - * details, see [Add interactive widgets at the bottom of a - * message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). - * Creating a message with accessory widgets requires [app - * authentication] - * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field repeated .google.chat.v1.AccessoryWidget accessory_widgets = 44; - * @param array<\Google\Apps\Chat\V1\AccessoryWidget>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessoryWidgets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\AccessoryWidget::class); - $this->accessory_widgets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php deleted file mode 100644 index df1973205c35..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchCreatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MessageBatchCreatedEventData - */ -class MessageBatchCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of new messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; - */ - private $messages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\MessageCreatedEventData>|\Google\Protobuf\Internal\RepeatedField $messages - * A list of new messages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of new messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMessages() - { - return $this->messages; - } - - /** - * A list of new messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageCreatedEventData messages = 1; - * @param array<\Google\Apps\Chat\V1\MessageCreatedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageCreatedEventData::class); - $this->messages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php deleted file mode 100644 index 0264ff4cfea5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchDeletedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MessageBatchDeletedEventData - */ -class MessageBatchDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of deleted messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; - */ - private $messages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\MessageDeletedEventData>|\Google\Protobuf\Internal\RepeatedField $messages - * A list of deleted messages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of deleted messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMessages() - { - return $this->messages; - } - - /** - * A list of deleted messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageDeletedEventData messages = 1; - * @param array<\Google\Apps\Chat\V1\MessageDeletedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageDeletedEventData::class); - $this->messages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php deleted file mode 100644 index 2085b91f0887..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageBatchUpdatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.MessageBatchUpdatedEventData - */ -class MessageBatchUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of updated messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; - */ - private $messages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\MessageUpdatedEventData>|\Google\Protobuf\Internal\RepeatedField $messages - * A list of updated messages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of updated messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMessages() - { - return $this->messages; - } - - /** - * A list of updated messages. - * - * Generated from protobuf field repeated .google.chat.v1.MessageUpdatedEventData messages = 1; - * @param array<\Google\Apps\Chat\V1\MessageUpdatedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\MessageUpdatedEventData::class); - $this->messages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php deleted file mode 100644 index 9fd83ebb9454..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageCreatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MessageCreatedEventData - */ -class MessageCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The new message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * The new message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The new message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The new message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php deleted file mode 100644 index 979e52ff7474..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageDeletedEventData.php +++ /dev/null @@ -1,82 +0,0 @@ -google.chat.v1.MessageDeletedEventData - */ -class MessageDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The deleted message. Only the `name`, `createTime`, `deleteTime`, and - * `deletionMetadata` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * The deleted message. Only the `name`, `createTime`, `deleteTime`, and - * `deletionMetadata` fields are populated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The deleted message. Only the `name`, `createTime`, `deleteTime`, and - * `deletionMetadata` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The deleted message. Only the `name`, `createTime`, `deleteTime`, and - * `deletionMetadata` fields are populated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php deleted file mode 100644 index 515273c038c8..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/MessageUpdatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.MessageUpdatedEventData - */ -class MessageUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The updated message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - */ - protected $message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * The updated message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The updated message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * The updated message. - * - * Generated from protobuf field .google.chat.v1.Message message = 1; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php deleted file mode 100644 index 776a4ab987d7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/QuotedMessageMetadata.php +++ /dev/null @@ -1,119 +0,0 @@ -google.chat.v1.QuotedMessageMetadata - */ -class QuotedMessageMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the quoted message. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the quoted message. - * Format: `spaces/{space}/messages/{message}` - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the quoted message. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the quoted message. - * Format: `spaces/{space}/messages/{message}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. The timestamp when the quoted message was created or when the - * quoted message was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php deleted file mode 100644 index 373aec899eaf..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Reaction.php +++ /dev/null @@ -1,159 +0,0 @@ -google.chat.v1.Reaction - */ -class Reaction extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The user who created the reaction. - * - * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user = null; - /** - * The emoji used in the reaction. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 3; - */ - protected $emoji = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * @type \Google\Apps\Chat\V1\User $user - * Output only. The user who created the reaction. - * @type \Google\Apps\Chat\V1\Emoji $emoji - * The emoji used in the reaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Reaction::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the reaction. - * Format: `spaces/{space}/messages/{message}/reactions/{reaction}` - * - * 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; - } - - /** - * Output only. The user who created the reaction. - * - * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * Output only. The user who created the reaction. - * - * Generated from protobuf field .google.chat.v1.User user = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->user = $var; - - return $this; - } - - /** - * The emoji used in the reaction. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 3; - * @return \Google\Apps\Chat\V1\Emoji|null - */ - public function getEmoji() - { - return $this->emoji; - } - - public function hasEmoji() - { - return isset($this->emoji); - } - - public function clearEmoji() - { - unset($this->emoji); - } - - /** - * The emoji used in the reaction. - * - * Generated from protobuf field .google.chat.v1.Emoji emoji = 3; - * @param \Google\Apps\Chat\V1\Emoji $var - * @return $this - */ - public function setEmoji($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Emoji::class); - $this->emoji = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php deleted file mode 100644 index 35bcef50d126..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchCreatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.ReactionBatchCreatedEventData - */ -class ReactionBatchCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of new reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; - */ - private $reactions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\ReactionCreatedEventData>|\Google\Protobuf\Internal\RepeatedField $reactions - * A list of new reactions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of new reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReactions() - { - return $this->reactions; - } - - /** - * A list of new reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionCreatedEventData reactions = 1; - * @param array<\Google\Apps\Chat\V1\ReactionCreatedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ReactionCreatedEventData::class); - $this->reactions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php deleted file mode 100644 index cfa937973a8b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionBatchDeletedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.ReactionBatchDeletedEventData - */ -class ReactionBatchDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of deleted reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; - */ - private $reactions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\ReactionDeletedEventData>|\Google\Protobuf\Internal\RepeatedField $reactions - * A list of deleted reactions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of deleted reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReactions() - { - return $this->reactions; - } - - /** - * A list of deleted reactions. - * - * Generated from protobuf field repeated .google.chat.v1.ReactionDeletedEventData reactions = 1; - * @param array<\Google\Apps\Chat\V1\ReactionDeletedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\ReactionDeletedEventData::class); - $this->reactions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php deleted file mode 100644 index 12a3ca4640f4..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionCreatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.ReactionCreatedEventData - */ -class ReactionCreatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The new reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - */ - protected $reaction = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Reaction $reaction - * The new reaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The new reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @return \Google\Apps\Chat\V1\Reaction|null - */ - public function getReaction() - { - return $this->reaction; - } - - public function hasReaction() - { - return isset($this->reaction); - } - - public function clearReaction() - { - unset($this->reaction); - } - - /** - * The new reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @param \Google\Apps\Chat\V1\Reaction $var - * @return $this - */ - public function setReaction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); - $this->reaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php deleted file mode 100644 index e6d5a9e766d1..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ReactionDeletedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.ReactionDeletedEventData - */ -class ReactionDeletedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The deleted reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - */ - protected $reaction = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Reaction $reaction - * The deleted reaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The deleted reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @return \Google\Apps\Chat\V1\Reaction|null - */ - public function getReaction() - { - return $this->reaction; - } - - public function hasReaction() - { - return isset($this->reaction); - } - - public function clearReaction() - { - unset($this->reaction); - } - - /** - * The deleted reaction. - * - * Generated from protobuf field .google.chat.v1.Reaction reaction = 1; - * @param \Google\Apps\Chat\V1\Reaction $var - * @return $this - */ - public function setReaction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Reaction::class); - $this->reaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php deleted file mode 100644 index 8b4b40d772e9..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata.php +++ /dev/null @@ -1,176 +0,0 @@ -google.chat.v1.RichLinkMetadata - */ -class RichLinkMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The URI of this link. - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * The rich link type. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; - */ - protected $rich_link_type = 0; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * The URI of this link. - * @type int $rich_link_type - * The rich link type. - * @type \Google\Apps\Chat\V1\DriveLinkData $drive_link_data - * Data for a drive link. - * @type \Google\Apps\Chat\V1\ChatSpaceLinkData $chat_space_link_data - * Data for a chat space link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The URI of this link. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * The URI of this link. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * The rich link type. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; - * @return int - */ - public function getRichLinkType() - { - return $this->rich_link_type; - } - - /** - * The rich link type. - * - * Generated from protobuf field .google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2; - * @param int $var - * @return $this - */ - public function setRichLinkType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\RichLinkMetadata\RichLinkType::class); - $this->rich_link_type = $var; - - return $this; - } - - /** - * Data for a drive link. - * - * Generated from protobuf field .google.chat.v1.DriveLinkData drive_link_data = 3; - * @return \Google\Apps\Chat\V1\DriveLinkData|null - */ - public function getDriveLinkData() - { - return $this->readOneof(3); - } - - public function hasDriveLinkData() - { - return $this->hasOneof(3); - } - - /** - * Data for a drive link. - * - * Generated from protobuf field .google.chat.v1.DriveLinkData drive_link_data = 3; - * @param \Google\Apps\Chat\V1\DriveLinkData $var - * @return $this - */ - public function setDriveLinkData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\DriveLinkData::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Data for a chat space link. - * - * Generated from protobuf field .google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4; - * @return \Google\Apps\Chat\V1\ChatSpaceLinkData|null - */ - public function getChatSpaceLinkData() - { - return $this->readOneof(4); - } - - public function hasChatSpaceLinkData() - { - return $this->hasOneof(4); - } - - /** - * Data for a chat space link. - * - * Generated from protobuf field .google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4; - * @param \Google\Apps\Chat\V1\ChatSpaceLinkData $var - * @return $this - */ - public function setChatSpaceLinkData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ChatSpaceLinkData::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php deleted file mode 100644 index 9aa8967a83ff..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/RichLinkMetadata/RichLinkType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.chat.v1.RichLinkMetadata.RichLinkType - */ -class RichLinkType -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum RICH_LINK_TYPE_UNSPECIFIED = 0; - */ - const RICH_LINK_TYPE_UNSPECIFIED = 0; - /** - * A Google Drive rich link type. - * - * Generated from protobuf enum DRIVE_FILE = 1; - */ - const DRIVE_FILE = 1; - /** - * A Chat space rich link type. For example, a space smart chip. - * - * Generated from protobuf enum CHAT_SPACE = 2; - */ - const CHAT_SPACE = 2; - - private static $valueToName = [ - self::RICH_LINK_TYPE_UNSPECIFIED => 'RICH_LINK_TYPE_UNSPECIFIED', - self::DRIVE_FILE => 'DRIVE_FILE', - self::CHAT_SPACE => 'CHAT_SPACE', - ]; - - 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(RichLinkType::class, \Google\Apps\Chat\V1\RichLinkMetadata_RichLinkType::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php deleted file mode 100644 index 4be411a8272e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesRequest.php +++ /dev/null @@ -1,539 +0,0 @@ -google.chat.v1.SearchSpacesRequest - */ -class SearchSpacesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * - * Generated from protobuf field bool use_admin_access = 1; - */ - protected $use_admin_access = false; - /** - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * - * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * @type int $page_size - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * @type string $page_token - * A token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * @type string $query - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * @type string $order_by - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * - * Generated from protobuf field bool use_admin_access = 1; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces` - * [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * This method currently only supports admin access, thus only `true` is - * accepted for this field. - * - * Generated from protobuf field bool use_admin_access = 1; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - - /** - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of spaces to return. The service may return fewer than - * this value. - * If unspecified, at most 100 spaces are returned. - * The maximum value is 1000. If you use a value more than 1000, it's - * automatically changed to 1000. - * - * 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 token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token, received from the previous search spaces call. Provide this - * parameter to retrieve the subsequent page. - * When paginating, all other parameters provided should match the call that - * provided the page token. Passing different values to the other parameters - * might lead to unexpected results. - * - * 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; - } - - /** - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * - * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. A search query. - * You can search by using the following parameters: - * - `create_time` - * - `customer` - * - `display_name` - * - `external_user_allowed` - * - `last_active_time` - * - `space_history_state` - * - `space_type` - * `create_time` and `last_active_time` accept a timestamp in - * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported - * comparison operators are: `=`, `<`, `>`, `<=`, `>=`. - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * `external_user_allowed` accepts either `true` or `false`. - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * `space_type` is required and the only valid value is `SPACE`. - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * The following example queries are valid: - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - * - * Generated from protobuf field string query = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. How the list of spaces is ordered. - * Supported attributes to order by are: - * - `membership_count.joined_direct_human_user_count` — Denotes the count of - * human users that have directly joined a space. - * - `last_active_time` — Denotes the time when last eligible item is added to - * any topic of this space. - * - `create_time` — Denotes the time of the space creation. - * Valid ordering operation values are: - * - `ASC` for ascending. Default value. - * - `DESC` for descending. - * The supported syntax are: - * - `membership_count.joined_direct_human_user_count DESC` - * - `membership_count.joined_direct_human_user_count ASC` - * - `last_active_time DESC` - * - `last_active_time ASC` - * - `create_time DESC` - * - `create_time ASC` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php deleted file mode 100644 index abebcdd76299..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SearchSpacesResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.chat.v1.SearchSpacesResponse - */ -class SearchSpacesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A page of the requested spaces. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - */ - private $spaces; - /** - * A token that can be used to retrieve the next page. If this field is empty, - * there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\Space>|\Google\Protobuf\Internal\RepeatedField $spaces - * A page of the requested spaces. - * @type string $next_page_token - * A token that can be used to retrieve the next page. If this field is empty, - * there are no subsequent pages. - * @type int $total_size - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * A page of the requested spaces. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpaces() - { - return $this->spaces; - } - - /** - * A page of the requested spaces. - * - * Generated from protobuf field repeated .google.chat.v1.Space spaces = 1; - * @param array<\Google\Apps\Chat\V1\Space>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Space::class); - $this->spaces = $arr; - - return $this; - } - - /** - * A token that can be used to retrieve the next page. If this field is empty, - * 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 that can be used to retrieve the next page. If this field is empty, - * 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; - } - - /** - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * The total number of spaces that match the query, across all pages. If the - * result is over 10,000 spaces, this value is an estimate. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php deleted file mode 100644 index 7f7313f13d2c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SetUpSpaceRequest.php +++ /dev/null @@ -1,317 +0,0 @@ -google.chat.v1.SetUpSpaceRequest - */ -class SetUpSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 20 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $memberships; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * @type string $request_id - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * @type array<\Google\Apps\Chat\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $memberships - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 20 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceSetup::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. The `Space.spaceType` field is required. - * To create a space, set `Space.spaceType` to `SPACE` and set - * `Space.displayName`. If you receive the error message `ALREADY_EXISTS` when - * setting up a space, try a different `displayName`. An existing space - * within the Google Workspace organization might already use this display - * name. - * To create a group chat, set `Space.spaceType` to - * `GROUP_CHAT`. Don't set `Space.displayName`. - * To create a 1:1 conversation between humans, - * set `Space.spaceType` to `DIRECT_MESSAGE` and set - * `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * To create an 1:1 conversation between a human and the calling Chat app, set - * `Space.spaceType` to `DIRECT_MESSAGE` and - * `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or - * `Space.spaceDetails`. - * If a `DIRECT_MESSAGE` space already exists, that space is returned instead - * of creating a new space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A unique identifier for this request. - * A random UUID is recommended. - * Specifying an existing request ID returns the space created with that ID - * instead of creating a new space. - * Specifying an existing request ID from the same Chat app with a different - * authenticated user returns an error. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 20 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMemberships() - { - return $this->memberships; - } - - /** - * Optional. The Google Chat users or groups to invite to join the space. Omit - * the calling user, as they are added automatically. - * The set currently allows up to 20 memberships (in addition to the caller). - * For human membership, the `Membership.member` field must contain a `user` - * with `name` populated (format: `users/{user}`) and `type` set to - * `User.Type.HUMAN`. You can only add human users when setting up a space - * (adding Chat apps is only supported for direct message setup with the - * calling app). You can also add members using the user's email as an alias - * for {user}. For example, the `user.name` can be `users/example@gmail.com`. - * To invite Gmail users or users from external Google Workspace domains, - * user's email must be used for `{user}`. - * For Google group membership, the `Membership.group_member` field must - * contain a `group` with `name` populated (format `groups/{group}`). You - * can only add Google groups when setting `Space.spaceType` to `SPACE`. - * Optional when setting `Space.spaceType` to `SPACE`. - * Required when setting `Space.spaceType` to `GROUP_CHAT`, along with at - * least two memberships. - * Required when setting `Space.spaceType` to `DIRECT_MESSAGE` with a human - * user, along with exactly one membership. - * Must be empty when creating a 1:1 conversation between a human and the - * calling Chat app (when setting `Space.spaceType` to - * `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`). - * - * Generated from protobuf field repeated .google.chat.v1.Membership memberships = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Apps\Chat\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMemberships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\Membership::class); - $this->memberships = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php deleted file mode 100644 index 07f44423d3b2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommand.php +++ /dev/null @@ -1,69 +0,0 @@ -google.chat.v1.SlashCommand - */ -class SlashCommand extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the slash command invoked. - * - * Generated from protobuf field int64 command_id = 1; - */ - protected $command_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $command_id - * The ID of the slash command invoked. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SlashCommand::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the slash command invoked. - * - * Generated from protobuf field int64 command_id = 1; - * @return int|string - */ - public function getCommandId() - { - return $this->command_id; - } - - /** - * The ID of the slash command invoked. - * - * Generated from protobuf field int64 command_id = 1; - * @param int|string $var - * @return $this - */ - public function setCommandId($var) - { - GPBUtil::checkInt64($var); - $this->command_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php deleted file mode 100644 index 316532e5b3ee..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata.php +++ /dev/null @@ -1,213 +0,0 @@ -google.chat.v1.SlashCommandMetadata - */ -class SlashCommandMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The Chat app whose command was invoked. - * - * Generated from protobuf field .google.chat.v1.User bot = 1; - */ - protected $bot = null; - /** - * The type of slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; - */ - protected $type = 0; - /** - * The name of the invoked slash command. - * - * Generated from protobuf field string command_name = 3; - */ - protected $command_name = ''; - /** - * The command ID of the invoked slash command. - * - * Generated from protobuf field int64 command_id = 4; - */ - protected $command_id = 0; - /** - * Indicates whether the slash command is for a dialog. - * - * Generated from protobuf field bool triggers_dialog = 5; - */ - protected $triggers_dialog = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\User $bot - * The Chat app whose command was invoked. - * @type int $type - * The type of slash command. - * @type string $command_name - * The name of the invoked slash command. - * @type int|string $command_id - * The command ID of the invoked slash command. - * @type bool $triggers_dialog - * Indicates whether the slash command is for a dialog. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The Chat app whose command was invoked. - * - * Generated from protobuf field .google.chat.v1.User bot = 1; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getBot() - { - return $this->bot; - } - - public function hasBot() - { - return isset($this->bot); - } - - public function clearBot() - { - unset($this->bot); - } - - /** - * The Chat app whose command was invoked. - * - * Generated from protobuf field .google.chat.v1.User bot = 1; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setBot($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->bot = $var; - - return $this; - } - - /** - * The type of slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of slash command. - * - * Generated from protobuf field .google.chat.v1.SlashCommandMetadata.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\SlashCommandMetadata\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The name of the invoked slash command. - * - * Generated from protobuf field string command_name = 3; - * @return string - */ - public function getCommandName() - { - return $this->command_name; - } - - /** - * The name of the invoked slash command. - * - * Generated from protobuf field string command_name = 3; - * @param string $var - * @return $this - */ - public function setCommandName($var) - { - GPBUtil::checkString($var, True); - $this->command_name = $var; - - return $this; - } - - /** - * The command ID of the invoked slash command. - * - * Generated from protobuf field int64 command_id = 4; - * @return int|string - */ - public function getCommandId() - { - return $this->command_id; - } - - /** - * The command ID of the invoked slash command. - * - * Generated from protobuf field int64 command_id = 4; - * @param int|string $var - * @return $this - */ - public function setCommandId($var) - { - GPBUtil::checkInt64($var); - $this->command_id = $var; - - return $this; - } - - /** - * Indicates whether the slash command is for a dialog. - * - * Generated from protobuf field bool triggers_dialog = 5; - * @return bool - */ - public function getTriggersDialog() - { - return $this->triggers_dialog; - } - - /** - * Indicates whether the slash command is for a dialog. - * - * Generated from protobuf field bool triggers_dialog = 5; - * @param bool $var - * @return $this - */ - public function setTriggersDialog($var) - { - GPBUtil::checkBool($var); - $this->triggers_dialog = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php deleted file mode 100644 index a85da5995578..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SlashCommandMetadata/Type.php +++ /dev/null @@ -1,62 +0,0 @@ -google.chat.v1.SlashCommandMetadata.Type - */ -class Type -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Add Chat app to space. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Invoke slash command in space. - * - * Generated from protobuf enum INVOKE = 2; - */ - const INVOKE = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ADD => 'ADD', - self::INVOKE => 'INVOKE', - ]; - - 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(Type::class, \Google\Apps\Chat\V1\SlashCommandMetadata_Type::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php deleted file mode 100644 index 5ec5b13d3147..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space.php +++ /dev/null @@ -1,918 +0,0 @@ -google.chat.v1.Space - */ -class Space extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * - * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $type = 0; - /** - * The type of space. Required when creating a space or updating the space - * type of a space. Output only for other usage. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10; - */ - protected $space_type = 0; - /** - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * - * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $single_user_bot_dm = false; - /** - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * - * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $threaded = false; - /** - * The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Immutable. Whether this space permits any Google Chat user as a member. - * Input when creating a space in a Google Workspace organization. Omit this - * field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * - * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $external_user_allowed = false; - /** - * Output only. The threading state in the Chat space. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $space_threading_state = 0; - /** - * Details about the space including description and rules. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11; - */ - protected $space_details = null; - /** - * The message history state for messages and threads in this space. - * - * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13; - */ - protected $space_history_state = 0; - /** - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * - * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $import_mode = false; - /** - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Output only. Timestamp of the last message in the space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_active_time = null; - /** - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * - * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $admin_installed = false; - /** - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * - * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $membership_count = null; - /** - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $access_settings = null; - /** - * Output only. The URI for a user to access the space. - * - * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $space_uri = ''; - protected $space_permission_settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * @type int $type - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * @type int $space_type - * The type of space. Required when creating a space or updating the space - * type of a space. Output only for other usage. - * @type bool $single_user_bot_dm - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * @type bool $threaded - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * @type string $display_name - * The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * @type bool $external_user_allowed - * Immutable. Whether this space permits any Google Chat user as a member. - * Input when creating a space in a Google Workspace organization. Omit this - * field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * @type int $space_threading_state - * Output only. The threading state in the Chat space. - * @type \Google\Apps\Chat\V1\Space\SpaceDetails $space_details - * Details about the space including description and rules. - * @type int $space_history_state - * The message history state for messages and threads in this space. - * @type bool $import_mode - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * @type \Google\Protobuf\Timestamp $last_active_time - * Output only. Timestamp of the last message in the space. - * @type bool $admin_installed - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * @type \Google\Apps\Chat\V1\Space\MembershipCount $membership_count - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * @type \Google\Apps\Chat\V1\Space\AccessSettings $access_settings - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * @type string $space_uri - * Output only. The URI for a user to access the space. - * @type int $predefined_permission_settings - * Optional. Input only. Predefined space permission settings, input only - * when creating a space. If the field is not set, a collaboration space is - * created. After you create the space, settings are populated in the - * `PermissionSettings` field. - * @type \Google\Apps\Chat\V1\Space\PermissionSettings $permission_settings - * Optional. Space permission settings for existing spaces. Input for - * updating exact space permission settings, where existing permission - * settings are replaced. Output lists current permission settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the space. - * Format: `spaces/{space}` - * Where `{space}` represents the system-assigned ID for the space. You can - * obtain the space ID by calling the - * [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) - * method or from the space URL. For example, if the space URL - * is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID - * is `AAAAAAAAA`. - * - * 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; - } - - /** - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * - * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - * @deprecated - */ - public function getType() - { - @trigger_error('type is deprecated.', E_USER_DEPRECATED); - return $this->type; - } - - /** - * Output only. Deprecated: Use `space_type` instead. - * The type of a space. - * - * Generated from protobuf field .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - * @deprecated - */ - public function setType($var) - { - @trigger_error('type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The type of space. Required when creating a space or updating the space - * type of a space. Output only for other usage. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10; - * @return int - */ - public function getSpaceType() - { - return $this->space_type; - } - - /** - * The type of space. Required when creating a space or updating the space - * type of a space. Output only for other usage. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceType space_type = 10; - * @param int $var - * @return $this - */ - public function setSpaceType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\SpaceType::class); - $this->space_type = $var; - - return $this; - } - - /** - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * - * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getSingleUserBotDm() - { - return $this->single_user_bot_dm; - } - - /** - * Optional. Whether the space is a DM between a Chat app and a single - * human. - * - * Generated from protobuf field bool single_user_bot_dm = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setSingleUserBotDm($var) - { - GPBUtil::checkBool($var); - $this->single_user_bot_dm = $var; - - return $this; - } - - /** - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * - * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - * @deprecated - */ - public function getThreaded() - { - @trigger_error('threaded is deprecated.', E_USER_DEPRECATED); - return $this->threaded; - } - - /** - * Output only. Deprecated: Use `spaceThreadingState` instead. - * Whether messages are threaded in this space. - * - * Generated from protobuf field bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setThreaded($var) - { - @trigger_error('threaded is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->threaded = $var; - - return $this; - } - - /** - * The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The space's display name. Required when [creating a - * space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create) - * with a `spaceType` of `SPACE`. If you receive the error message - * `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a - * different `displayName`. An existing space within the Google Workspace - * organization might already use this display name. - * For direct messages, this field might be empty. - * Supports up to 128 characters. - * - * 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; - } - - /** - * Immutable. Whether this space permits any Google Chat user as a member. - * Input when creating a space in a Google Workspace organization. Omit this - * field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * - * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return bool - */ - public function getExternalUserAllowed() - { - return $this->external_user_allowed; - } - - /** - * Immutable. Whether this space permits any Google Chat user as a member. - * Input when creating a space in a Google Workspace organization. Omit this - * field when creating spaces in the following conditions: - * * The authenticated user uses a consumer account (unmanaged user - * account). By default, a space created by a consumer account permits any - * Google Chat user. - * For existing spaces, this field is output only. - * - * Generated from protobuf field bool external_user_allowed = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @param bool $var - * @return $this - */ - public function setExternalUserAllowed($var) - { - GPBUtil::checkBool($var); - $this->external_user_allowed = $var; - - return $this; - } - - /** - * Output only. The threading state in the Chat space. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSpaceThreadingState() - { - return $this->space_threading_state; - } - - /** - * Output only. The threading state in the Chat space. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceThreadingState space_threading_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSpaceThreadingState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\SpaceThreadingState::class); - $this->space_threading_state = $var; - - return $this; - } - - /** - * Details about the space including description and rules. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11; - * @return \Google\Apps\Chat\V1\Space\SpaceDetails|null - */ - public function getSpaceDetails() - { - return $this->space_details; - } - - public function hasSpaceDetails() - { - return isset($this->space_details); - } - - public function clearSpaceDetails() - { - unset($this->space_details); - } - - /** - * Details about the space including description and rules. - * - * Generated from protobuf field .google.chat.v1.Space.SpaceDetails space_details = 11; - * @param \Google\Apps\Chat\V1\Space\SpaceDetails $var - * @return $this - */ - public function setSpaceDetails($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\SpaceDetails::class); - $this->space_details = $var; - - return $this; - } - - /** - * The message history state for messages and threads in this space. - * - * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13; - * @return int - */ - public function getSpaceHistoryState() - { - return $this->space_history_state; - } - - /** - * The message history state for messages and threads in this space. - * - * Generated from protobuf field .google.chat.v1.HistoryState space_history_state = 13; - * @param int $var - * @return $this - */ - public function setSpaceHistoryState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\HistoryState::class); - $this->space_history_state = $var; - - return $this; - } - - /** - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * - * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getImportMode() - { - return $this->import_mode; - } - - /** - * Optional. Whether this space is created in `Import Mode` as part of a data - * migration into Google Workspace. While spaces are being imported, they - * aren't visible to users until the import is complete. - * - * Generated from protobuf field bool import_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setImportMode($var) - { - GPBUtil::checkBool($var); - $this->import_mode = $var; - - return $this; - } - - /** - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Immutable. For spaces created in Chat, the time the space was - * created. This field is output only, except when used in import mode spaces. - * For import mode spaces, set this field to the historical timestamp at which - * the space was created in the source in order to preserve the original - * creation time. - * Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @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. Timestamp of the last message in the space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastActiveTime() - { - return $this->last_active_time; - } - - public function hasLastActiveTime() - { - return isset($this->last_active_time); - } - - public function clearLastActiveTime() - { - unset($this->last_active_time); - } - - /** - * Output only. Timestamp of the last message in the space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_active_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastActiveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_active_time = $var; - - return $this; - } - - /** - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * - * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAdminInstalled() - { - return $this->admin_installed; - } - - /** - * Output only. For direct message (DM) spaces with a Chat app, whether the - * space was created by a Google Workspace administrator. Administrators can - * install and set up a direct message with a Chat app on behalf of users in - * their organization. - * To support admin install, your Chat app must feature direct messaging. - * - * Generated from protobuf field bool admin_installed = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAdminInstalled($var) - { - GPBUtil::checkBool($var); - $this->admin_installed = $var; - - return $this; - } - - /** - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * - * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Space\MembershipCount|null - */ - public function getMembershipCount() - { - return $this->membership_count; - } - - public function hasMembershipCount() - { - return isset($this->membership_count); - } - - public function clearMembershipCount() - { - unset($this->membership_count); - } - - /** - * Output only. The count of joined memberships grouped by member type. - * Populated when the `space_type` is `SPACE`, `DIRECT_MESSAGE` or - * `GROUP_CHAT`. - * - * Generated from protobuf field .google.chat.v1.Space.MembershipCount membership_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Space\MembershipCount $var - * @return $this - */ - public function setMembershipCount($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\MembershipCount::class); - $this->membership_count = $var; - - return $this; - } - - /** - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\AccessSettings|null - */ - public function getAccessSettings() - { - return $this->access_settings; - } - - public function hasAccessSettings() - { - return isset($this->access_settings); - } - - public function clearAccessSettings() - { - unset($this->access_settings); - } - - /** - * Optional. Specifies the [access - * setting](https://support.google.com/chat/answer/11971020) of the space. - * Only populated when the `space_type` is `SPACE`. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings access_settings = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\AccessSettings $var - * @return $this - */ - public function setAccessSettings($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\AccessSettings::class); - $this->access_settings = $var; - - return $this; - } - - /** - * Output only. The URI for a user to access the space. - * - * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSpaceUri() - { - return $this->space_uri; - } - - /** - * Output only. The URI for a user to access the space. - * - * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSpaceUri($var) - { - GPBUtil::checkString($var, True); - $this->space_uri = $var; - - return $this; - } - - /** - * Optional. Input only. Predefined space permission settings, input only - * when creating a space. If the field is not set, a collaboration space is - * created. After you create the space, settings are populated in the - * `PermissionSettings` field. - * - * Generated from protobuf field .google.chat.v1.Space.PredefinedPermissionSettings predefined_permission_settings = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPredefinedPermissionSettings() - { - return $this->readOneof(26); - } - - public function hasPredefinedPermissionSettings() - { - return $this->hasOneof(26); - } - - /** - * Optional. Input only. Predefined space permission settings, input only - * when creating a space. If the field is not set, a collaboration space is - * created. After you create the space, settings are populated in the - * `PermissionSettings` field. - * - * Generated from protobuf field .google.chat.v1.Space.PredefinedPermissionSettings predefined_permission_settings = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPredefinedPermissionSettings($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\PredefinedPermissionSettings::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * Optional. Space permission settings for existing spaces. Input for - * updating exact space permission settings, where existing permission - * settings are replaced. Output lists current permission settings. - * - * Generated from protobuf field .google.chat.v1.Space.PermissionSettings permission_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Chat\V1\Space\PermissionSettings|null - */ - public function getPermissionSettings() - { - return $this->readOneof(27); - } - - public function hasPermissionSettings() - { - return $this->hasOneof(27); - } - - /** - * Optional. Space permission settings for existing spaces. Input for - * updating exact space permission settings, where existing permission - * settings are replaced. Output lists current permission settings. - * - * Generated from protobuf field .google.chat.v1.Space.PermissionSettings permission_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Chat\V1\Space\PermissionSettings $var - * @return $this - */ - public function setPermissionSettings($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSettings::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * @return string - */ - public function getSpacePermissionSettings() - { - return $this->whichOneof("space_permission_settings"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php deleted file mode 100644 index db62121be0a9..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings.php +++ /dev/null @@ -1,149 +0,0 @@ -google.chat.v1.Space.AccessSettings - */ -class AccessSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Indicates the access state of the space. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access_state = 0; - /** - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $audience = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $access_state - * Output only. Indicates the access state of the space. - * @type string $audience - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Indicates the access state of the space. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAccessState() - { - return $this->access_state; - } - - /** - * Output only. Indicates the access state of the space. - * - * Generated from protobuf field .google.chat.v1.Space.AccessSettings.AccessState access_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAccessState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\Space\AccessSettings\AccessState::class); - $this->access_state = $var; - - return $this; - } - - /** - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAudience() - { - return $this->audience; - } - - /** - * Optional. The resource name of the [target - * audience](https://support.google.com/a/answer/9934697) who can discover - * the space, join the space, and preview the messages in the space. If - * unset, only users or Google Groups who have been individually invited or - * added to the space can access it. For details, see [Make a space - * discoverable to a target - * audience](https://developers.google.com/workspace/chat/space-target-audience). - * Format: `audiences/{audience}` - * To use the default target audience for the Google Workspace organization, - * set to `audiences/default`. - * This field is not populated when using the `chat.bot` scope with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * Generated from protobuf field string audience = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkString($var, True); - $this->audience = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AccessSettings::class, \Google\Apps\Chat\V1\Space_AccessSettings::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php deleted file mode 100644 index 1bd127c0e95a..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/AccessSettings/AccessState.php +++ /dev/null @@ -1,74 +0,0 @@ -google.chat.v1.Space.AccessSettings.AccessState - */ -class AccessState -{ - /** - * Access state is unknown or not supported in this API. - * - * Generated from protobuf enum ACCESS_STATE_UNSPECIFIED = 0; - */ - const ACCESS_STATE_UNSPECIFIED = 0; - /** - * Only users or Google Groups that have been individually added or - * invited by other users or Google Workspace administrators can discover - * and access the space. - * - * Generated from protobuf enum PRIVATE = 1; - */ - const PBPRIVATE = 1; - /** - * A space manager has granted a target audience access to - * the space. Users or Google Groups that have been individually added or - * invited to the space can also discover and access the space. To learn - * more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * - * Generated from protobuf enum DISCOVERABLE = 2; - */ - const DISCOVERABLE = 2; - - private static $valueToName = [ - self::ACCESS_STATE_UNSPECIFIED => 'ACCESS_STATE_UNSPECIFIED', - self::PBPRIVATE => 'PRIVATE', - self::DISCOVERABLE => 'DISCOVERABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AccessState::class, \Google\Apps\Chat\V1\Space_AccessSettings_AccessState::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php deleted file mode 100644 index 44bc280089f5..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/MembershipCount.php +++ /dev/null @@ -1,108 +0,0 @@ -google.chat.v1.Space.MembershipCount - */ -class MembershipCount extends \Google\Protobuf\Internal\Message -{ - /** - * Count of human users that have directly joined the space, not counting - * users joined by having membership in a joined group. - * - * Generated from protobuf field int32 joined_direct_human_user_count = 4; - */ - protected $joined_direct_human_user_count = 0; - /** - * Count of all groups that have directly joined the space. - * - * Generated from protobuf field int32 joined_group_count = 5; - */ - protected $joined_group_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $joined_direct_human_user_count - * Count of human users that have directly joined the space, not counting - * users joined by having membership in a joined group. - * @type int $joined_group_count - * Count of all groups that have directly joined the space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Count of human users that have directly joined the space, not counting - * users joined by having membership in a joined group. - * - * Generated from protobuf field int32 joined_direct_human_user_count = 4; - * @return int - */ - public function getJoinedDirectHumanUserCount() - { - return $this->joined_direct_human_user_count; - } - - /** - * Count of human users that have directly joined the space, not counting - * users joined by having membership in a joined group. - * - * Generated from protobuf field int32 joined_direct_human_user_count = 4; - * @param int $var - * @return $this - */ - public function setJoinedDirectHumanUserCount($var) - { - GPBUtil::checkInt32($var); - $this->joined_direct_human_user_count = $var; - - return $this; - } - - /** - * Count of all groups that have directly joined the space. - * - * Generated from protobuf field int32 joined_group_count = 5; - * @return int - */ - public function getJoinedGroupCount() - { - return $this->joined_group_count; - } - - /** - * Count of all groups that have directly joined the space. - * - * Generated from protobuf field int32 joined_group_count = 5; - * @param int $var - * @return $this - */ - public function setJoinedGroupCount($var) - { - GPBUtil::checkInt32($var); - $this->joined_group_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MembershipCount::class, \Google\Apps\Chat\V1\Space_MembershipCount::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php deleted file mode 100644 index 7d301395f998..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSetting.php +++ /dev/null @@ -1,104 +0,0 @@ -google.chat.v1.Space.PermissionSetting - */ -class PermissionSetting extends \Google\Protobuf\Internal\Message -{ - /** - * Whether spaces managers have this permission. - * - * Generated from protobuf field bool managers_allowed = 1; - */ - protected $managers_allowed = false; - /** - * Whether non-manager members have this permission. - * - * Generated from protobuf field bool members_allowed = 2; - */ - protected $members_allowed = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $managers_allowed - * Whether spaces managers have this permission. - * @type bool $members_allowed - * Whether non-manager members have this permission. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Whether spaces managers have this permission. - * - * Generated from protobuf field bool managers_allowed = 1; - * @return bool - */ - public function getManagersAllowed() - { - return $this->managers_allowed; - } - - /** - * Whether spaces managers have this permission. - * - * Generated from protobuf field bool managers_allowed = 1; - * @param bool $var - * @return $this - */ - public function setManagersAllowed($var) - { - GPBUtil::checkBool($var); - $this->managers_allowed = $var; - - return $this; - } - - /** - * Whether non-manager members have this permission. - * - * Generated from protobuf field bool members_allowed = 2; - * @return bool - */ - public function getMembersAllowed() - { - return $this->members_allowed; - } - - /** - * Whether non-manager members have this permission. - * - * Generated from protobuf field bool members_allowed = 2; - * @param bool $var - * @return $this - */ - public function setMembersAllowed($var) - { - GPBUtil::checkBool($var); - $this->members_allowed = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PermissionSetting::class, \Google\Apps\Chat\V1\Space_PermissionSetting::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php deleted file mode 100644 index 3b1999b8dec0..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PermissionSettings.php +++ /dev/null @@ -1,391 +0,0 @@ -google.chat.v1.Space.PermissionSettings - */ -class PermissionSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Setting for managing members and groups in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; - */ - protected $manage_members_and_groups = null; - /** - * Setting for updating space name, avatar, description and guidelines. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; - */ - protected $modify_space_details = null; - /** - * Setting for toggling space history on and off. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; - */ - protected $toggle_history = null; - /** - * Setting for using @all in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; - */ - protected $use_at_mention_all = null; - /** - * Setting for managing apps in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; - */ - protected $manage_apps = null; - /** - * Setting for managing webhooks in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; - */ - protected $manage_webhooks = null; - /** - * Output only. Setting for posting messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $post_messages = null; - /** - * Setting for replying to messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; - */ - protected $reply_messages = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_members_and_groups - * Setting for managing members and groups in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $modify_space_details - * Setting for updating space name, avatar, description and guidelines. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $toggle_history - * Setting for toggling space history on and off. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $use_at_mention_all - * Setting for using @all in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_apps - * Setting for managing apps in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $manage_webhooks - * Setting for managing webhooks in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $post_messages - * Output only. Setting for posting messages in a space. - * @type \Google\Apps\Chat\V1\Space\PermissionSetting $reply_messages - * Setting for replying to messages in a space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Setting for managing members and groups in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getManageMembersAndGroups() - { - return $this->manage_members_and_groups; - } - - public function hasManageMembersAndGroups() - { - return isset($this->manage_members_and_groups); - } - - public function clearManageMembersAndGroups() - { - unset($this->manage_members_and_groups); - } - - /** - * Setting for managing members and groups in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_members_and_groups = 1; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setManageMembersAndGroups($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->manage_members_and_groups = $var; - - return $this; - } - - /** - * Setting for updating space name, avatar, description and guidelines. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getModifySpaceDetails() - { - return $this->modify_space_details; - } - - public function hasModifySpaceDetails() - { - return isset($this->modify_space_details); - } - - public function clearModifySpaceDetails() - { - unset($this->modify_space_details); - } - - /** - * Setting for updating space name, avatar, description and guidelines. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting modify_space_details = 2; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setModifySpaceDetails($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->modify_space_details = $var; - - return $this; - } - - /** - * Setting for toggling space history on and off. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getToggleHistory() - { - return $this->toggle_history; - } - - public function hasToggleHistory() - { - return isset($this->toggle_history); - } - - public function clearToggleHistory() - { - unset($this->toggle_history); - } - - /** - * Setting for toggling space history on and off. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting toggle_history = 3; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setToggleHistory($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->toggle_history = $var; - - return $this; - } - - /** - * Setting for using @all in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getUseAtMentionAll() - { - return $this->use_at_mention_all; - } - - public function hasUseAtMentionAll() - { - return isset($this->use_at_mention_all); - } - - public function clearUseAtMentionAll() - { - unset($this->use_at_mention_all); - } - - /** - * Setting for using @all in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting use_at_mention_all = 4; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setUseAtMentionAll($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->use_at_mention_all = $var; - - return $this; - } - - /** - * Setting for managing apps in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getManageApps() - { - return $this->manage_apps; - } - - public function hasManageApps() - { - return isset($this->manage_apps); - } - - public function clearManageApps() - { - unset($this->manage_apps); - } - - /** - * Setting for managing apps in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_apps = 5; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setManageApps($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->manage_apps = $var; - - return $this; - } - - /** - * Setting for managing webhooks in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getManageWebhooks() - { - return $this->manage_webhooks; - } - - public function hasManageWebhooks() - { - return isset($this->manage_webhooks); - } - - public function clearManageWebhooks() - { - unset($this->manage_webhooks); - } - - /** - * Setting for managing webhooks in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting manage_webhooks = 6; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setManageWebhooks($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->manage_webhooks = $var; - - return $this; - } - - /** - * Output only. Setting for posting messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getPostMessages() - { - return $this->post_messages; - } - - public function hasPostMessages() - { - return isset($this->post_messages); - } - - public function clearPostMessages() - { - unset($this->post_messages); - } - - /** - * Output only. Setting for posting messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting post_messages = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setPostMessages($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->post_messages = $var; - - return $this; - } - - /** - * Setting for replying to messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; - * @return \Google\Apps\Chat\V1\Space\PermissionSetting|null - */ - public function getReplyMessages() - { - return $this->reply_messages; - } - - public function hasReplyMessages() - { - return isset($this->reply_messages); - } - - public function clearReplyMessages() - { - unset($this->reply_messages); - } - - /** - * Setting for replying to messages in a space. - * - * Generated from protobuf field optional .google.chat.v1.Space.PermissionSetting reply_messages = 8; - * @param \Google\Apps\Chat\V1\Space\PermissionSetting $var - * @return $this - */ - public function setReplyMessages($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space\PermissionSetting::class); - $this->reply_messages = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PermissionSettings::class, \Google\Apps\Chat\V1\Space_PermissionSettings::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php deleted file mode 100644 index c867f67c55a4..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/PredefinedPermissionSettings.php +++ /dev/null @@ -1,69 +0,0 @@ -google.chat.v1.Space.PredefinedPermissionSettings - */ -class PredefinedPermissionSettings -{ - /** - * Unspecified. Don't use. - * - * Generated from protobuf enum PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0; - */ - const PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0; - /** - * Setting to make the space a collaboration space where all members can - * post messages. - * - * Generated from protobuf enum COLLABORATION_SPACE = 1; - */ - const COLLABORATION_SPACE = 1; - /** - * Setting to make the space an announcement space where only space managers - * can post messages. - * - * Generated from protobuf enum ANNOUNCEMENT_SPACE = 2; - */ - const ANNOUNCEMENT_SPACE = 2; - - private static $valueToName = [ - self::PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED => 'PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED', - self::COLLABORATION_SPACE => 'COLLABORATION_SPACE', - self::ANNOUNCEMENT_SPACE => 'ANNOUNCEMENT_SPACE', - ]; - - 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(PredefinedPermissionSettings::class, \Google\Apps\Chat\V1\Space_PredefinedPermissionSettings::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php deleted file mode 100644 index 56d0208306ee..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceDetails.php +++ /dev/null @@ -1,116 +0,0 @@ -google.chat.v1.Space.SpaceDetails - */ -class SpaceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * - * Generated from protobuf field string guidelines = 2; - */ - protected $guidelines = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * @type string $guidelines - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the space. For example, describe the space's - * discussion topic, functional purpose, or participants. - * Supports up to 150 characters. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * - * Generated from protobuf field string guidelines = 2; - * @return string - */ - public function getGuidelines() - { - return $this->guidelines; - } - - /** - * Optional. The space's rules, expectations, and etiquette. - * Supports up to 5,000 characters. - * - * Generated from protobuf field string guidelines = 2; - * @param string $var - * @return $this - */ - public function setGuidelines($var) - { - GPBUtil::checkString($var, True); - $this->guidelines = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SpaceDetails::class, \Google\Apps\Chat\V1\Space_SpaceDetails::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php deleted file mode 100644 index 09b873e2694b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceThreadingState.php +++ /dev/null @@ -1,75 +0,0 @@ -google.chat.v1.Space.SpaceThreadingState - */ -class SpaceThreadingState -{ - /** - * Reserved. - * - * Generated from protobuf enum SPACE_THREADING_STATE_UNSPECIFIED = 0; - */ - const SPACE_THREADING_STATE_UNSPECIFIED = 0; - /** - * Named spaces that support message threads. When users respond to a - * message, they can reply in-thread, which keeps their response in the - * context of the original message. - * - * Generated from protobuf enum THREADED_MESSAGES = 2; - */ - const THREADED_MESSAGES = 2; - /** - * Named spaces where the conversation is organized by topic. Topics and - * their replies are grouped together. - * - * Generated from protobuf enum GROUPED_MESSAGES = 3; - */ - const GROUPED_MESSAGES = 3; - /** - * Direct messages (DMs) between two people and group conversations between - * 3 or more people. - * - * Generated from protobuf enum UNTHREADED_MESSAGES = 4; - */ - const UNTHREADED_MESSAGES = 4; - - private static $valueToName = [ - self::SPACE_THREADING_STATE_UNSPECIFIED => 'SPACE_THREADING_STATE_UNSPECIFIED', - self::THREADED_MESSAGES => 'THREADED_MESSAGES', - self::GROUPED_MESSAGES => 'GROUPED_MESSAGES', - self::UNTHREADED_MESSAGES => 'UNTHREADED_MESSAGES', - ]; - - 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(SpaceThreadingState::class, \Google\Apps\Chat\V1\Space_SpaceThreadingState::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php deleted file mode 100644 index d1dd15987481..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/SpaceType.php +++ /dev/null @@ -1,74 +0,0 @@ -google.chat.v1.Space.SpaceType - */ -class SpaceType -{ - /** - * Reserved. - * - * Generated from protobuf enum SPACE_TYPE_UNSPECIFIED = 0; - */ - const SPACE_TYPE_UNSPECIFIED = 0; - /** - * A place where people send messages, share files, and collaborate. - * A `SPACE` can include Chat apps. - * - * Generated from protobuf enum SPACE = 1; - */ - const SPACE = 1; - /** - * Group conversations between 3 or more people. - * A `GROUP_CHAT` can include Chat apps. - * - * Generated from protobuf enum GROUP_CHAT = 2; - */ - const GROUP_CHAT = 2; - /** - * 1:1 messages between two humans or a human and a Chat app. - * - * Generated from protobuf enum DIRECT_MESSAGE = 3; - */ - const DIRECT_MESSAGE = 3; - - private static $valueToName = [ - self::SPACE_TYPE_UNSPECIFIED => 'SPACE_TYPE_UNSPECIFIED', - self::SPACE => 'SPACE', - self::GROUP_CHAT => 'GROUP_CHAT', - self::DIRECT_MESSAGE => 'DIRECT_MESSAGE', - ]; - - 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(SpaceType::class, \Google\Apps\Chat\V1\Space_SpaceType::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php deleted file mode 100644 index 06a6d6b75e69..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Space/Type.php +++ /dev/null @@ -1,65 +0,0 @@ -google.chat.v1.Space.Type - */ -class Type -{ - /** - * Reserved. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Conversations between two or more humans. - * - * Generated from protobuf enum ROOM = 1; - */ - const ROOM = 1; - /** - * 1:1 Direct Message between a human and a Chat app, where all messages are - * flat. Note that this doesn't include direct messages between two humans. - * - * Generated from protobuf enum DM = 2; - */ - const DM = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ROOM => 'ROOM', - self::DM => 'DM', - ]; - - 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(Type::class, \Google\Apps\Chat\V1\Space_Type::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php deleted file mode 100644 index 766dca2695aa..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceBatchUpdatedEventData.php +++ /dev/null @@ -1,68 +0,0 @@ -google.chat.v1.SpaceBatchUpdatedEventData - */ -class SpaceBatchUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * A list of updated spaces. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; - */ - private $spaces; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Chat\V1\SpaceUpdatedEventData>|\Google\Protobuf\Internal\RepeatedField $spaces - * A list of updated spaces. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * A list of updated spaces. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpaces() - { - return $this->spaces; - } - - /** - * A list of updated spaces. - * - * Generated from protobuf field repeated .google.chat.v1.SpaceUpdatedEventData spaces = 1; - * @param array<\Google\Apps\Chat\V1\SpaceUpdatedEventData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\SpaceUpdatedEventData::class); - $this->spaces = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php deleted file mode 100644 index edd947280f93..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceEvent.php +++ /dev/null @@ -1,956 +0,0 @@ -google.chat.v1.SpaceEvent - */ -class SpaceEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Time when the event occurred. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - */ - protected $event_time = null; - /** - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field string event_type = 6; - */ - protected $event_type = ''; - protected $payload; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * @type \Google\Protobuf\Timestamp $event_time - * Time when the event occurred. - * @type string $event_type - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MessageCreatedEventData $message_created_event_data - * Event payload for a new message. - * Event type: `google.workspace.chat.message.v1.created` - * @type \Google\Apps\Chat\V1\MessageUpdatedEventData $message_updated_event_data - * Event payload for an updated message. - * Event type: `google.workspace.chat.message.v1.updated` - * @type \Google\Apps\Chat\V1\MessageDeletedEventData $message_deleted_event_data - * Event payload for a deleted message. - * Event type: `google.workspace.chat.message.v1.deleted` - * @type \Google\Apps\Chat\V1\MessageBatchCreatedEventData $message_batch_created_event_data - * Event payload for multiple new messages. - * Event type: `google.workspace.chat.message.v1.batchCreated` - * @type \Google\Apps\Chat\V1\MessageBatchUpdatedEventData $message_batch_updated_event_data - * Event payload for multiple updated messages. - * Event type: `google.workspace.chat.message.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MessageBatchDeletedEventData $message_batch_deleted_event_data - * Event payload for multiple deleted messages. - * Event type: `google.workspace.chat.message.v1.batchDeleted` - * @type \Google\Apps\Chat\V1\SpaceUpdatedEventData $space_updated_event_data - * Event payload for a space update. - * Event type: `google.workspace.chat.space.v1.updated` - * @type \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData $space_batch_updated_event_data - * Event payload for multiple updates to a space. - * Event type: `google.workspace.chat.space.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MembershipCreatedEventData $membership_created_event_data - * Event payload for a new membership. - * Event type: `google.workspace.chat.membership.v1.created` - * @type \Google\Apps\Chat\V1\MembershipUpdatedEventData $membership_updated_event_data - * Event payload for an updated membership. - * Event type: `google.workspace.chat.membership.v1.updated` - * @type \Google\Apps\Chat\V1\MembershipDeletedEventData $membership_deleted_event_data - * Event payload for a deleted membership. - * Event type: `google.workspace.chat.membership.v1.deleted` - * @type \Google\Apps\Chat\V1\MembershipBatchCreatedEventData $membership_batch_created_event_data - * Event payload for multiple new memberships. - * Event type: `google.workspace.chat.membership.v1.batchCreated` - * @type \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData $membership_batch_updated_event_data - * Event payload for multiple updated memberships. - * Event type: `google.workspace.chat.membership.v1.batchUpdated` - * @type \Google\Apps\Chat\V1\MembershipBatchDeletedEventData $membership_batch_deleted_event_data - * Event payload for multiple deleted memberships. - * Event type: `google.workspace.chat.membership.v1.batchDeleted` - * @type \Google\Apps\Chat\V1\ReactionCreatedEventData $reaction_created_event_data - * Event payload for a new reaction. - * Event type: `google.workspace.chat.reaction.v1.created` - * @type \Google\Apps\Chat\V1\ReactionDeletedEventData $reaction_deleted_event_data - * Event payload for a deleted reaction. - * Event type: `google.workspace.chat.reaction.v1.deleted` - * @type \Google\Apps\Chat\V1\ReactionBatchCreatedEventData $reaction_batch_created_event_data - * Event payload for multiple new reactions. - * Event type: `google.workspace.chat.reaction.v1.batchCreated` - * @type \Google\Apps\Chat\V1\ReactionBatchDeletedEventData $reaction_batch_deleted_event_data - * Event payload for multiple deleted reactions. - * Event type: `google.workspace.chat.reaction.v1.batchDeleted` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceEvent::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the space event. - * Format: `spaces/{space}/spaceEvents/{spaceEvent}` - * - * 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; - } - - /** - * Time when the event occurred. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEventTime() - { - return $this->event_time; - } - - public function hasEventTime() - { - return isset($this->event_time); - } - - public function clearEventTime() - { - unset($this->event_time); - } - - /** - * Time when the event occurred. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEventTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->event_time = $var; - - return $this; - } - - /** - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field string event_type = 6; - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Type of space event. Each event type has a batch version, which - * represents multiple instances of the event type that occur in a short - * period of time. For `spaceEvents.list()` requests, omit batch event types - * in your query filter. By default, the server returns both event type and - * its batch version. - * Supported event types for - * [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): - * * New message: `google.workspace.chat.message.v1.created` - * * Updated message: `google.workspace.chat.message.v1.updated` - * * Deleted message: `google.workspace.chat.message.v1.deleted` - * * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` - * * Multiple updated messages: - * `google.workspace.chat.message.v1.batchUpdated` - * * Multiple deleted messages: - * `google.workspace.chat.message.v1.batchDeleted` - * Supported event types for - * [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): - * * New membership: `google.workspace.chat.membership.v1.created` - * * Updated membership: `google.workspace.chat.membership.v1.updated` - * * Deleted membership: `google.workspace.chat.membership.v1.deleted` - * * Multiple new memberships: - * `google.workspace.chat.membership.v1.batchCreated` - * * Multiple updated memberships: - * `google.workspace.chat.membership.v1.batchUpdated` - * * Multiple deleted memberships: - * `google.workspace.chat.membership.v1.batchDeleted` - * Supported event types for - * [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): - * * New reaction: `google.workspace.chat.reaction.v1.created` - * * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` - * * Multiple new reactions: - * `google.workspace.chat.reaction.v1.batchCreated` - * * Multiple deleted reactions: - * `google.workspace.chat.reaction.v1.batchDeleted` - * Supported event types about the - * [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): - * * Updated space: `google.workspace.chat.space.v1.updated` - * * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field string event_type = 6; - * @param string $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkString($var, True); - $this->event_type = $var; - - return $this; - } - - /** - * Event payload for a new message. - * Event type: `google.workspace.chat.message.v1.created` - * - * Generated from protobuf field .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; - * @return \Google\Apps\Chat\V1\MessageCreatedEventData|null - */ - public function getMessageCreatedEventData() - { - return $this->readOneof(12); - } - - public function hasMessageCreatedEventData() - { - return $this->hasOneof(12); - } - - /** - * Event payload for a new message. - * Event type: `google.workspace.chat.message.v1.created` - * - * Generated from protobuf field .google.chat.v1.MessageCreatedEventData message_created_event_data = 12; - * @param \Google\Apps\Chat\V1\MessageCreatedEventData $var - * @return $this - */ - public function setMessageCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageCreatedEventData::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Event payload for an updated message. - * Event type: `google.workspace.chat.message.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; - * @return \Google\Apps\Chat\V1\MessageUpdatedEventData|null - */ - public function getMessageUpdatedEventData() - { - return $this->readOneof(13); - } - - public function hasMessageUpdatedEventData() - { - return $this->hasOneof(13); - } - - /** - * Event payload for an updated message. - * Event type: `google.workspace.chat.message.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MessageUpdatedEventData message_updated_event_data = 13; - * @param \Google\Apps\Chat\V1\MessageUpdatedEventData $var - * @return $this - */ - public function setMessageUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageUpdatedEventData::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Event payload for a deleted message. - * Event type: `google.workspace.chat.message.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; - * @return \Google\Apps\Chat\V1\MessageDeletedEventData|null - */ - public function getMessageDeletedEventData() - { - return $this->readOneof(14); - } - - public function hasMessageDeletedEventData() - { - return $this->hasOneof(14); - } - - /** - * Event payload for a deleted message. - * Event type: `google.workspace.chat.message.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MessageDeletedEventData message_deleted_event_data = 14; - * @param \Google\Apps\Chat\V1\MessageDeletedEventData $var - * @return $this - */ - public function setMessageDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageDeletedEventData::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Event payload for multiple new messages. - * Event type: `google.workspace.chat.message.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; - * @return \Google\Apps\Chat\V1\MessageBatchCreatedEventData|null - */ - public function getMessageBatchCreatedEventData() - { - return $this->readOneof(26); - } - - public function hasMessageBatchCreatedEventData() - { - return $this->hasOneof(26); - } - - /** - * Event payload for multiple new messages. - * Event type: `google.workspace.chat.message.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchCreatedEventData message_batch_created_event_data = 26; - * @param \Google\Apps\Chat\V1\MessageBatchCreatedEventData $var - * @return $this - */ - public function setMessageBatchCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchCreatedEventData::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * Event payload for multiple updated messages. - * Event type: `google.workspace.chat.message.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; - * @return \Google\Apps\Chat\V1\MessageBatchUpdatedEventData|null - */ - public function getMessageBatchUpdatedEventData() - { - return $this->readOneof(27); - } - - public function hasMessageBatchUpdatedEventData() - { - return $this->hasOneof(27); - } - - /** - * Event payload for multiple updated messages. - * Event type: `google.workspace.chat.message.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MessageBatchUpdatedEventData message_batch_updated_event_data = 27; - * @param \Google\Apps\Chat\V1\MessageBatchUpdatedEventData $var - * @return $this - */ - public function setMessageBatchUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchUpdatedEventData::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * Event payload for multiple deleted messages. - * Event type: `google.workspace.chat.message.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; - * @return \Google\Apps\Chat\V1\MessageBatchDeletedEventData|null - */ - public function getMessageBatchDeletedEventData() - { - return $this->readOneof(28); - } - - public function hasMessageBatchDeletedEventData() - { - return $this->hasOneof(28); - } - - /** - * Event payload for multiple deleted messages. - * Event type: `google.workspace.chat.message.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MessageBatchDeletedEventData message_batch_deleted_event_data = 28; - * @param \Google\Apps\Chat\V1\MessageBatchDeletedEventData $var - * @return $this - */ - public function setMessageBatchDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MessageBatchDeletedEventData::class); - $this->writeOneof(28, $var); - - return $this; - } - - /** - * Event payload for a space update. - * Event type: `google.workspace.chat.space.v1.updated` - * - * Generated from protobuf field .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; - * @return \Google\Apps\Chat\V1\SpaceUpdatedEventData|null - */ - public function getSpaceUpdatedEventData() - { - return $this->readOneof(15); - } - - public function hasSpaceUpdatedEventData() - { - return $this->hasOneof(15); - } - - /** - * Event payload for a space update. - * Event type: `google.workspace.chat.space.v1.updated` - * - * Generated from protobuf field .google.chat.v1.SpaceUpdatedEventData space_updated_event_data = 15; - * @param \Google\Apps\Chat\V1\SpaceUpdatedEventData $var - * @return $this - */ - public function setSpaceUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceUpdatedEventData::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Event payload for multiple updates to a space. - * Event type: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; - * @return \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData|null - */ - public function getSpaceBatchUpdatedEventData() - { - return $this->readOneof(29); - } - - public function hasSpaceBatchUpdatedEventData() - { - return $this->hasOneof(29); - } - - /** - * Event payload for multiple updates to a space. - * Event type: `google.workspace.chat.space.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.SpaceBatchUpdatedEventData space_batch_updated_event_data = 29; - * @param \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData $var - * @return $this - */ - public function setSpaceBatchUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceBatchUpdatedEventData::class); - $this->writeOneof(29, $var); - - return $this; - } - - /** - * Event payload for a new membership. - * Event type: `google.workspace.chat.membership.v1.created` - * - * Generated from protobuf field .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; - * @return \Google\Apps\Chat\V1\MembershipCreatedEventData|null - */ - public function getMembershipCreatedEventData() - { - return $this->readOneof(17); - } - - public function hasMembershipCreatedEventData() - { - return $this->hasOneof(17); - } - - /** - * Event payload for a new membership. - * Event type: `google.workspace.chat.membership.v1.created` - * - * Generated from protobuf field .google.chat.v1.MembershipCreatedEventData membership_created_event_data = 17; - * @param \Google\Apps\Chat\V1\MembershipCreatedEventData $var - * @return $this - */ - public function setMembershipCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipCreatedEventData::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Event payload for an updated membership. - * Event type: `google.workspace.chat.membership.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; - * @return \Google\Apps\Chat\V1\MembershipUpdatedEventData|null - */ - public function getMembershipUpdatedEventData() - { - return $this->readOneof(18); - } - - public function hasMembershipUpdatedEventData() - { - return $this->hasOneof(18); - } - - /** - * Event payload for an updated membership. - * Event type: `google.workspace.chat.membership.v1.updated` - * - * Generated from protobuf field .google.chat.v1.MembershipUpdatedEventData membership_updated_event_data = 18; - * @param \Google\Apps\Chat\V1\MembershipUpdatedEventData $var - * @return $this - */ - public function setMembershipUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipUpdatedEventData::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * Event payload for a deleted membership. - * Event type: `google.workspace.chat.membership.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; - * @return \Google\Apps\Chat\V1\MembershipDeletedEventData|null - */ - public function getMembershipDeletedEventData() - { - return $this->readOneof(219); - } - - public function hasMembershipDeletedEventData() - { - return $this->hasOneof(219); - } - - /** - * Event payload for a deleted membership. - * Event type: `google.workspace.chat.membership.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.MembershipDeletedEventData membership_deleted_event_data = 219; - * @param \Google\Apps\Chat\V1\MembershipDeletedEventData $var - * @return $this - */ - public function setMembershipDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipDeletedEventData::class); - $this->writeOneof(219, $var); - - return $this; - } - - /** - * Event payload for multiple new memberships. - * Event type: `google.workspace.chat.membership.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; - * @return \Google\Apps\Chat\V1\MembershipBatchCreatedEventData|null - */ - public function getMembershipBatchCreatedEventData() - { - return $this->readOneof(31); - } - - public function hasMembershipBatchCreatedEventData() - { - return $this->hasOneof(31); - } - - /** - * Event payload for multiple new memberships. - * Event type: `google.workspace.chat.membership.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchCreatedEventData membership_batch_created_event_data = 31; - * @param \Google\Apps\Chat\V1\MembershipBatchCreatedEventData $var - * @return $this - */ - public function setMembershipBatchCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchCreatedEventData::class); - $this->writeOneof(31, $var); - - return $this; - } - - /** - * Event payload for multiple updated memberships. - * Event type: `google.workspace.chat.membership.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; - * @return \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData|null - */ - public function getMembershipBatchUpdatedEventData() - { - return $this->readOneof(32); - } - - public function hasMembershipBatchUpdatedEventData() - { - return $this->hasOneof(32); - } - - /** - * Event payload for multiple updated memberships. - * Event type: `google.workspace.chat.membership.v1.batchUpdated` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchUpdatedEventData membership_batch_updated_event_data = 32; - * @param \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData $var - * @return $this - */ - public function setMembershipBatchUpdatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchUpdatedEventData::class); - $this->writeOneof(32, $var); - - return $this; - } - - /** - * Event payload for multiple deleted memberships. - * Event type: `google.workspace.chat.membership.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; - * @return \Google\Apps\Chat\V1\MembershipBatchDeletedEventData|null - */ - public function getMembershipBatchDeletedEventData() - { - return $this->readOneof(33); - } - - public function hasMembershipBatchDeletedEventData() - { - return $this->hasOneof(33); - } - - /** - * Event payload for multiple deleted memberships. - * Event type: `google.workspace.chat.membership.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.MembershipBatchDeletedEventData membership_batch_deleted_event_data = 33; - * @param \Google\Apps\Chat\V1\MembershipBatchDeletedEventData $var - * @return $this - */ - public function setMembershipBatchDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\MembershipBatchDeletedEventData::class); - $this->writeOneof(33, $var); - - return $this; - } - - /** - * Event payload for a new reaction. - * Event type: `google.workspace.chat.reaction.v1.created` - * - * Generated from protobuf field .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; - * @return \Google\Apps\Chat\V1\ReactionCreatedEventData|null - */ - public function getReactionCreatedEventData() - { - return $this->readOneof(21); - } - - public function hasReactionCreatedEventData() - { - return $this->hasOneof(21); - } - - /** - * Event payload for a new reaction. - * Event type: `google.workspace.chat.reaction.v1.created` - * - * Generated from protobuf field .google.chat.v1.ReactionCreatedEventData reaction_created_event_data = 21; - * @param \Google\Apps\Chat\V1\ReactionCreatedEventData $var - * @return $this - */ - public function setReactionCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionCreatedEventData::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Event payload for a deleted reaction. - * Event type: `google.workspace.chat.reaction.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; - * @return \Google\Apps\Chat\V1\ReactionDeletedEventData|null - */ - public function getReactionDeletedEventData() - { - return $this->readOneof(22); - } - - public function hasReactionDeletedEventData() - { - return $this->hasOneof(22); - } - - /** - * Event payload for a deleted reaction. - * Event type: `google.workspace.chat.reaction.v1.deleted` - * - * Generated from protobuf field .google.chat.v1.ReactionDeletedEventData reaction_deleted_event_data = 22; - * @param \Google\Apps\Chat\V1\ReactionDeletedEventData $var - * @return $this - */ - public function setReactionDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionDeletedEventData::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * Event payload for multiple new reactions. - * Event type: `google.workspace.chat.reaction.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; - * @return \Google\Apps\Chat\V1\ReactionBatchCreatedEventData|null - */ - public function getReactionBatchCreatedEventData() - { - return $this->readOneof(34); - } - - public function hasReactionBatchCreatedEventData() - { - return $this->hasOneof(34); - } - - /** - * Event payload for multiple new reactions. - * Event type: `google.workspace.chat.reaction.v1.batchCreated` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchCreatedEventData reaction_batch_created_event_data = 34; - * @param \Google\Apps\Chat\V1\ReactionBatchCreatedEventData $var - * @return $this - */ - public function setReactionBatchCreatedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionBatchCreatedEventData::class); - $this->writeOneof(34, $var); - - return $this; - } - - /** - * Event payload for multiple deleted reactions. - * Event type: `google.workspace.chat.reaction.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; - * @return \Google\Apps\Chat\V1\ReactionBatchDeletedEventData|null - */ - public function getReactionBatchDeletedEventData() - { - return $this->readOneof(35); - } - - public function hasReactionBatchDeletedEventData() - { - return $this->hasOneof(35); - } - - /** - * Event payload for multiple deleted reactions. - * Event type: `google.workspace.chat.reaction.v1.batchDeleted` - * - * Generated from protobuf field .google.chat.v1.ReactionBatchDeletedEventData reaction_batch_deleted_event_data = 35; - * @param \Google\Apps\Chat\V1\ReactionBatchDeletedEventData $var - * @return $this - */ - public function setReactionBatchDeletedEventData($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\ReactionBatchDeletedEventData::class); - $this->writeOneof(35, $var); - - return $this; - } - - /** - * @return string - */ - public function getPayload() - { - return $this->whichOneof("payload"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php deleted file mode 100644 index c50b92718f4c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceReadState.php +++ /dev/null @@ -1,124 +0,0 @@ -google.chat.v1.SpaceReadState - */ -class SpaceReadState extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $last_read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * @type \Google\Protobuf\Timestamp $last_read_time - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the space read state. - * Format: `users/{user}/spaces/{space}/spaceReadState` - * - * 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; - } - - /** - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastReadTime() - { - return $this->last_read_time; - } - - public function hasLastReadTime() - { - return isset($this->last_read_time); - } - - public function clearLastReadTime() - { - unset($this->last_read_time); - } - - /** - * Optional. The time when the user's space read state was updated. Usually - * this corresponds with either the timestamp of the last read message, or a - * timestamp specified by the user to mark the last read position in a space. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_read_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php deleted file mode 100644 index 00eb47764a7e..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/SpaceUpdatedEventData.php +++ /dev/null @@ -1,78 +0,0 @@ -google.chat.v1.SpaceUpdatedEventData - */ -class SpaceUpdatedEventData extends \Google\Protobuf\Internal\Message -{ - /** - * The updated space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - */ - protected $space = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * The updated space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\EventPayload::initOnce(); - parent::__construct($data); - } - - /** - * The updated space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * The updated space. - * - * Generated from protobuf field .google.chat.v1.Space space = 1; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php deleted file mode 100644 index cef404ea9070..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/Thread.php +++ /dev/null @@ -1,134 +0,0 @@ -google.chat.v1.Thread - */ -class Thread extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * - * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $thread_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * @type string $thread_key - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the thread. - * Example: `spaces/{space}/threads/{thread}` - * - * 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; - } - - /** - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * - * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getThreadKey() - { - return $this->thread_key; - } - - /** - * Optional. Input for creating or updating a thread. Otherwise, output only. - * ID for the thread. Supports up to 4000 characters. - * This ID is unique to the Chat app that sets it. For example, if - * multiple Chat apps create a message using the same thread key, - * the messages are posted in different threads. To reply in a - * thread created by a person or another Chat app, specify the thread `name` - * field instead. - * - * Generated from protobuf field string thread_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setThreadKey($var) - { - GPBUtil::checkString($var, True); - $this->thread_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php deleted file mode 100644 index 5605873dfdea..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/ThreadReadState.php +++ /dev/null @@ -1,120 +0,0 @@ -google.chat.v1.ThreadReadState - */ -class ThreadReadState extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; - */ - protected $last_read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * @type \Google\Protobuf\Timestamp $last_read_time - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\ThreadReadState::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the thread read state. - * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` - * - * 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; - } - - /** - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastReadTime() - { - return $this->last_read_time; - } - - public function hasLastReadTime() - { - return isset($this->last_read_time); - } - - public function clearLastReadTime() - { - unset($this->last_read_time); - } - - /** - * The time when the user's thread read state was updated. Usually this - * corresponds with the timestamp of the last read message in a thread. - * - * Generated from protobuf field .google.protobuf.Timestamp last_read_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_read_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php deleted file mode 100644 index cf3107d0a5e3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMembershipRequest.php +++ /dev/null @@ -1,216 +0,0 @@ -google.chat.v1.UpdateMembershipRequest - */ -class UpdateMembershipRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $membership = null; - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 3; - */ - protected $use_admin_access = false; - - /** - * @param \Google\Apps\Chat\V1\Membership $membership Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * - * Currently supported field paths: - * - * - `role` - * - * @return \Google\Apps\Chat\V1\UpdateMembershipRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Membership $membership, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMembership($membership) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Membership $membership - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Membership::initOnce(); - parent::__construct($data); - } - - /** - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Membership|null - */ - public function getMembership() - { - return $this->membership; - } - - public function hasMembership() - { - return isset($this->membership); - } - - public function clearMembership() - { - unset($this->membership); - } - - /** - * Required. The membership to update. Only fields specified by `update_mask` - * are updated. - * - * Generated from protobuf field .google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Membership $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Membership::class); - $this->membership = $var; - - return $this; - } - - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * - * 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 field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `role` - * - * 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; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 3; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.memberships` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * - * Generated from protobuf field bool use_admin_access = 3; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php deleted file mode 100644 index 338ec6bf863c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateMessageRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.chat.v1.UpdateMessageRequest - */ -class UpdateMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Message with fields updated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message = null; - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param \Google\Apps\Chat\V1\Message $message Required. Message with fields updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * - * Currently supported field paths: - * - * - `text` - * - * - `attachment` - * - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * @return \Google\Apps\Chat\V1\UpdateMessageRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Message $message, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMessage($message) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Message $message - * Required. Message with fields updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * @type bool $allow_missing - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Message::initOnce(); - parent::__construct($data); - } - - /** - * Required. Message with fields updated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Message|null - */ - public function getMessage() - { - return $this->message; - } - - public function hasMessage() - { - return isset($this->message); - } - - public function clearMessage() - { - unset($this->message); - } - - /** - * Required. Message with fields updated. - * - * Generated from protobuf field .google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Message $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Message::class); - $this->message = $var; - - return $this; - } - - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * 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); - } - - /** - * Required. The field paths to update. Separate multiple values with commas - * or use `*` to update all field paths. - * Currently supported field paths: - * - `text` - * - `attachment` - * - `cards` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `cards_v2` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - `accessory_widgets` (Requires [app - * authentication](/chat/api/guides/auth/service-accounts).) - * - * 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; - } - - /** - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If `true` and the message isn't found, a new message is created - * and `updateMask` is ignored. The specified message ID must be - * [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message) - * or the request fails. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php deleted file mode 100644 index ca8c1da1bda2..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceReadStateRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.chat.v1.UpdateSpaceReadStateRequest - */ -class UpdateSpaceReadStateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space_read_state = null; - /** - * Required. The field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Apps\Chat\V1\SpaceReadState $spaceReadState Required. The space read state and fields to update. - * - * Only supports updating read state for the calling user. - * - * To refer to the calling user, set one of the following: - * - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * - * Format: users/{user}/spaces/{space}/spaceReadState - * @param \Google\Protobuf\FieldMask $updateMask Required. The field paths to update. Currently supported field paths: - * - * - `last_read_time` - * - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * @return \Google\Apps\Chat\V1\UpdateSpaceReadStateRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\SpaceReadState $spaceReadState, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\SpaceReadState $space_read_state - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\SpaceReadState::initOnce(); - parent::__construct($data); - } - - /** - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\SpaceReadState|null - */ - public function getSpaceReadState() - { - return $this->space_read_state; - } - - public function hasSpaceReadState() - { - return isset($this->space_read_state); - } - - public function clearSpaceReadState() - { - unset($this->space_read_state); - } - - /** - * Required. The space read state and fields to update. - * Only supports updating read state for the calling user. - * To refer to the calling user, set one of the following: - * - The `me` alias. For example, `users/me/spaces/{space}/spaceReadState`. - * - Their Workspace email address. For example, - * `users/user@example.com/spaces/{space}/spaceReadState`. - * - Their user id. For example, - * `users/123456789/spaces/{space}/spaceReadState`. - * Format: users/{user}/spaces/{space}/spaceReadState - * - * Generated from protobuf field .google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\SpaceReadState $var - * @return $this - */ - public function setSpaceReadState($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\SpaceReadState::class); - $this->space_read_state = $var; - - return $this; - } - - /** - * Required. The field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * 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 field paths to update. Currently supported field paths: - * - `last_read_time` - * When the `last_read_time` is before the latest message create time, the - * space appears as unread in the UI. - * To mark the space as read, set `last_read_time` to any value later (larger) - * than the latest message create time. The `last_read_time` is coerced to - * match the latest message create time. Note that the space read state only - * affects the read state of messages that are visible in the space's - * top-level conversation. Replies in threads are unaffected by this - * timestamp, and instead rely on the thread read state. - * - * 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/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php deleted file mode 100644 index ef832bfb3be3..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UpdateSpaceRequest.php +++ /dev/null @@ -1,480 +0,0 @@ -google.chat.v1.UpdateSpaceRequest - */ -class UpdateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description. Supports up to 150 - * characters. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. `permissionSettings` is not supported with - * `useAdminAccess`. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * - * Generated from protobuf field bool use_admin_access = 3; - */ - protected $use_admin_access = false; - - /** - * @param \Google\Apps\Chat\V1\Space $space Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. The updated field paths, comma separated if there are - * multiple. - * - * You can update the following fields for a space: - * - * `space_details`: Updates the space's description. Supports up to 150 - * characters. - * - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. `permissionSettings` is not supported with - * `useAdminAccess`. - * The supported field masks include: - * - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * @return \Google\Apps\Chat\V1\UpdateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Chat\V1\Space $space, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpace($space) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\Space $space - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description. Supports up to 150 - * characters. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. `permissionSettings` is not supported with - * `useAdminAccess`. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * @type bool $use_admin_access - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Space::initOnce(); - parent::__construct($data); - } - - /** - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Chat\V1\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. Space with fields to be updated. `Space.name` must be - * populated in the form of `spaces/{space}`. Only fields - * specified by `update_mask` are updated. - * - * Generated from protobuf field .google.chat.v1.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Chat\V1\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description. Supports up to 150 - * characters. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. `permissionSettings` is not supported with - * `useAdminAccess`. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * 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); - } - - /** - * Required. The updated field paths, comma separated if there are - * multiple. - * You can update the following fields for a space: - * `space_details`: Updates the space's description. Supports up to 150 - * characters. - * `display_name`: Only supports updating the display name for spaces where - * `spaceType` field is `SPACE`. - * If you receive the error message `ALREADY_EXISTS`, try a different - * value. An existing space within the - * Google Workspace organization might already use this display name. - * `space_type`: Only supports changing a `GROUP_CHAT` space type to - * `SPACE`. Include `display_name` together - * with `space_type` in the update mask and ensure that the specified space - * has a non-empty display name and the `SPACE` space type. Including the - * `space_type` mask and the `SPACE` type in the specified space when updating - * the display name is optional if the existing space already has the `SPACE` - * type. Trying to update the space type in other ways results in an invalid - * argument error. - * `space_type` is not supported with `useAdminAccess`. - * `space_history_state`: Updates [space history - * settings](https://support.google.com/chat/answer/7664687) by turning - * history on or off for the space. Only supported if history settings are - * enabled for the Google Workspace organization. To update the - * space history state, you must omit all other field masks in your request. - * `space_history_state` is not supported with `useAdminAccess`. - * `access_settings.audience`: Updates the [access - * setting](https://support.google.com/chat/answer/11971020) of who can - * discover the space, join the space, and preview the messages in named space - * where `spaceType` field is `SPACE`. If the existing space has a - * target audience, you can remove the audience and restrict space access by - * omitting a value for this field mask. To update access settings for a - * space, the authenticating user must be a space manager and omit all other - * field masks in your request. You can't update this field if the space is in - * [import - * mode](https://developers.google.com/workspace/chat/import-data-overview). - * To learn more, see [Make a space discoverable to specific - * users](https://developers.google.com/workspace/chat/space-target-audience). - * `access_settings.audience` is not supported with `useAdminAccess`. - * `permission_settings`: Supports changing the - * [permission settings](https://support.google.com/chat/answer/13340792) - * of a space. - * When updating permission settings, you can only specify - * `permissionSettings` field masks; you cannot update other field masks - * at the same time. `permissionSettings` is not supported with - * `useAdminAccess`. - * The supported field masks include: - * - `permission_settings.manageMembersAndGroups` - * - `permission_settings.modifySpaceDetails` - * - `permission_settings.toggleHistory` - * - `permission_settings.useAtMentionAll` - * - `permission_settings.manageApps` - * - `permission_settings.manageWebhooks` - * - `permission_settings.replyMessages` - * - * 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; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * - * Generated from protobuf field bool use_admin_access = 3; - * @return bool - */ - public function getUseAdminAccess() - { - return $this->use_admin_access; - } - - /** - * When `true`, the method runs using the user's Google Workspace - * administrator privileges. - * The calling user must be a Google Workspace administrator with the - * [manage chat and spaces conversations - * privilege](https://support.google.com/a/answer/13369245). - * Requires the `chat.admin.spaces` [OAuth 2.0 - * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). - * Some `FieldMask` values are not supported using admin access. For details, - * see the description of `update_mask`. - * - * Generated from protobuf field bool use_admin_access = 3; - * @param bool $var - * @return $this - */ - public function setUseAdminAccess($var) - { - GPBUtil::checkBool($var); - $this->use_admin_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php deleted file mode 100644 index 2afa91efd97d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.chat.v1.UploadAttachmentRequest - */ -class UploadAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The filename of the attachment, including the file extension. - * - * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filename = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * @type string $filename - * Required. The filename of the attachment, including the file extension. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the Chat space in which the attachment is - * uploaded. Format "spaces/{space}". - * - * 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 filename of the attachment, including the file extension. - * - * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilename() - { - return $this->filename; - } - - /** - * Required. The filename of the attachment, including the file extension. - * - * Generated from protobuf field string filename = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilename($var) - { - GPBUtil::checkString($var, True); - $this->filename = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php deleted file mode 100644 index 942c71f0fe3b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UploadAttachmentResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.chat.v1.UploadAttachmentResponse - */ -class UploadAttachmentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Reference to the uploaded attachment. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; - */ - protected $attachment_data_ref = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\AttachmentDataRef $attachment_data_ref - * Reference to the uploaded attachment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Reference to the uploaded attachment. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; - * @return \Google\Apps\Chat\V1\AttachmentDataRef|null - */ - public function getAttachmentDataRef() - { - return $this->attachment_data_ref; - } - - public function hasAttachmentDataRef() - { - return isset($this->attachment_data_ref); - } - - public function clearAttachmentDataRef() - { - unset($this->attachment_data_ref); - } - - /** - * Reference to the uploaded attachment. - * - * Generated from protobuf field .google.chat.v1.AttachmentDataRef attachment_data_ref = 1; - * @param \Google\Apps\Chat\V1\AttachmentDataRef $var - * @return $this - */ - public function setAttachmentDataRef($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\AttachmentDataRef::class); - $this->attachment_data_ref = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php deleted file mode 100644 index 87cb7134117f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User.php +++ /dev/null @@ -1,275 +0,0 @@ -google.chat.v1.User - */ -class User extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user@example.com` is `123456789`, you can use `users/user@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The user's display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Unique identifier of the user's Google Workspace domain. - * - * Generated from protobuf field string domain_id = 6; - */ - protected $domain_id = ''; - /** - * User type. - * - * Generated from protobuf field .google.chat.v1.User.Type type = 5; - */ - protected $type = 0; - /** - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * - * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $is_anonymous = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user@example.com` is `123456789`, you can use `users/user@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * @type string $display_name - * Output only. The user's display name. - * @type string $domain_id - * Unique identifier of the user's Google Workspace domain. - * @type int $type - * User type. - * @type bool $is_anonymous - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\User::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user@example.com` is `123456789`, you can use `users/user@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for a Google Chat [user][google.chat.v1.User]. - * Format: `users/{user}`. `users/app` can be used as an alias for the calling - * app [bot][google.chat.v1.User.Type.BOT] user. - * For [human users][google.chat.v1.User.Type.HUMAN], `{user}` is the same - * user identifier as: - * - the `id` for the - * [Person](https://developers.google.com/people/api/rest/v1/people) in the - * People API. For example, `users/123456789` in Chat API represents the same - * person as the `123456789` Person profile ID in People API. - * - the `id` for a - * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) - * in the Admin SDK Directory API. - * - the user's email address can be used as an alias for `{user}` in API - * requests. For example, if the People API Person profile ID for - * `user@example.com` is `123456789`, you can use `users/user@example.com` as - * an alias to reference `users/123456789`. Only the canonical resource name - * (for example `users/123456789`) will be returned from the API. - * - * 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; - } - - /** - * Output only. The user's display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The user's display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Unique identifier of the user's Google Workspace domain. - * - * Generated from protobuf field string domain_id = 6; - * @return string - */ - public function getDomainId() - { - return $this->domain_id; - } - - /** - * Unique identifier of the user's Google Workspace domain. - * - * Generated from protobuf field string domain_id = 6; - * @param string $var - * @return $this - */ - public function setDomainId($var) - { - GPBUtil::checkString($var, True); - $this->domain_id = $var; - - return $this; - } - - /** - * User type. - * - * Generated from protobuf field .google.chat.v1.User.Type type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * User type. - * - * Generated from protobuf field .google.chat.v1.User.Type type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\User\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * - * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getIsAnonymous() - { - return $this->is_anonymous; - } - - /** - * Output only. When `true`, the user is deleted or their profile is not - * visible. - * - * Generated from protobuf field bool is_anonymous = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setIsAnonymous($var) - { - GPBUtil::checkBool($var); - $this->is_anonymous = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php deleted file mode 100644 index c937b1cf005c..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/User/Type.php +++ /dev/null @@ -1,62 +0,0 @@ -google.chat.v1.User.Type - */ -class Type -{ - /** - * Default value for the enum. DO NOT USE. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Human user. - * - * Generated from protobuf enum HUMAN = 1; - */ - const HUMAN = 1; - /** - * Chat app user. - * - * Generated from protobuf enum BOT = 2; - */ - const BOT = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::HUMAN => 'HUMAN', - self::BOT => 'BOT', - ]; - - 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(Type::class, \Google\Apps\Chat\V1\User_Type::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php deleted file mode 100644 index 2ac7ee99c979..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.UserMentionMetadata - */ -class UserMentionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The user mentioned. - * - * Generated from protobuf field .google.chat.v1.User user = 1; - */ - protected $user = null; - /** - * The type of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\User $user - * The user mentioned. - * @type int $type - * The type of user mention. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Annotation::initOnce(); - parent::__construct($data); - } - - /** - * The user mentioned. - * - * Generated from protobuf field .google.chat.v1.User user = 1; - * @return \Google\Apps\Chat\V1\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * The user mentioned. - * - * Generated from protobuf field .google.chat.v1.User user = 1; - * @param \Google\Apps\Chat\V1\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\User::class); - $this->user = $var; - - return $this; - } - - /** - * The type of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of user mention. - * - * Generated from protobuf field .google.chat.v1.UserMentionMetadata.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\UserMentionMetadata\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php deleted file mode 100644 index 6ea2e9d41087..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/UserMentionMetadata/Type.php +++ /dev/null @@ -1,62 +0,0 @@ -google.chat.v1.UserMentionMetadata.Type - */ -class Type -{ - /** - * Default value for the enum. Don't use. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Add user to space. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Mention user in space. - * - * Generated from protobuf enum MENTION = 2; - */ - const MENTION = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ADD => 'ADD', - self::MENTION => 'MENTION', - ]; - - 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(Type::class, \Google\Apps\Chat\V1\UserMentionMetadata_Type::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php deleted file mode 100644 index e247cc73adae..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup.php +++ /dev/null @@ -1,179 +0,0 @@ -google.chat.v1.WidgetMarkup - */ -class WidgetMarkup extends \Google\Protobuf\Internal\Message -{ - /** - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; - */ - private $buttons; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph $text_paragraph - * Display a text paragraph in this widget. - * @type \Google\Apps\Chat\V1\WidgetMarkup\Image $image - * Display an image in this widget. - * @type \Google\Apps\Chat\V1\WidgetMarkup\KeyValue $key_value - * Display a key value item in this widget. - * @type array<\Google\Apps\Chat\V1\WidgetMarkup\Button>|\Google\Protobuf\Internal\RepeatedField $buttons - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * Display a text paragraph in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1; - * @return \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph|null - */ - public function getTextParagraph() - { - return $this->readOneof(1); - } - - public function hasTextParagraph() - { - return $this->hasOneof(1); - } - - /** - * Display a text paragraph in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextParagraph text_paragraph = 1; - * @param \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph $var - * @return $this - */ - public function setTextParagraph($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\TextParagraph::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Display an image in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Image image = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\Image|null - */ - public function getImage() - { - return $this->readOneof(2); - } - - public function hasImage() - { - return $this->hasOneof(2); - } - - /** - * Display an image in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Image image = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\Image::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Display a key value item in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.KeyValue key_value = 3; - * @return \Google\Apps\Chat\V1\WidgetMarkup\KeyValue|null - */ - public function getKeyValue() - { - return $this->readOneof(3); - } - - public function hasKeyValue() - { - return $this->hasOneof(3); - } - - /** - * Display a key value item in this widget. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.KeyValue key_value = 3; - * @param \Google\Apps\Chat\V1\WidgetMarkup\KeyValue $var - * @return $this - */ - public function setKeyValue($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\KeyValue::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getButtons() - { - return $this->buttons; - } - - /** - * A list of buttons. Buttons is also `oneof data` and only one of these - * fields should be set. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.Button buttons = 6; - * @param array<\Google\Apps\Chat\V1\WidgetMarkup\Button>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setButtons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup\Button::class); - $this->buttons = $arr; - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php deleted file mode 100644 index 4cf6fddbefc8..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Button.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.WidgetMarkup.Button - */ -class Button extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\WidgetMarkup\TextButton $text_button - * A button with text and `onclick` action. - * @type \Google\Apps\Chat\V1\WidgetMarkup\ImageButton $image_button - * A button with image and `onclick` action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * A button with text and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextButton text_button = 1; - * @return \Google\Apps\Chat\V1\WidgetMarkup\TextButton|null - */ - public function getTextButton() - { - return $this->readOneof(1); - } - - public function hasTextButton() - { - return $this->hasOneof(1); - } - - /** - * A button with text and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.TextButton text_button = 1; - * @param \Google\Apps\Chat\V1\WidgetMarkup\TextButton $var - * @return $this - */ - public function setTextButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\TextButton::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A button with image and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.ImageButton image_button = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\ImageButton|null - */ - public function getImageButton() - { - return $this->readOneof(2); - } - - public function hasImageButton() - { - return $this->hasOneof(2); - } - - /** - * A button with image and `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.ImageButton image_button = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\ImageButton $var - * @return $this - */ - public function setImageButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\ImageButton::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Button::class, \Google\Apps\Chat\V1\WidgetMarkup_Button::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php deleted file mode 100644 index 2fdac4140fbf..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction.php +++ /dev/null @@ -1,117 +0,0 @@ -google.chat.v1.WidgetMarkup.FormAction - */ -class FormAction extends \Google\Protobuf\Internal\Message -{ - /** - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * - * Generated from protobuf field string action_method_name = 1; - */ - protected $action_method_name = ''; - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $action_method_name - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * @type array<\Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter>|\Google\Protobuf\Internal\RepeatedField $parameters - * List of action parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * - * Generated from protobuf field string action_method_name = 1; - * @return string - */ - public function getActionMethodName() - { - return $this->action_method_name; - } - - /** - * The method name is used to identify which part of the form triggered the - * form submission. This information is echoed back to the Chat app as part - * of the card click event. You can use the same method name for several - * elements that trigger a common behavior. - * - * Generated from protobuf field string action_method_name = 1; - * @param string $var - * @return $this - */ - public function setActionMethodName($var) - { - GPBUtil::checkString($var, True); - $this->action_method_name = $var; - - return $this; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * List of action parameters. - * - * Generated from protobuf field repeated .google.chat.v1.WidgetMarkup.FormAction.ActionParameter parameters = 2; - * @param array<\Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Chat\V1\WidgetMarkup\FormAction\ActionParameter::class); - $this->parameters = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FormAction::class, \Google\Apps\Chat\V1\WidgetMarkup_FormAction::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php deleted file mode 100644 index 4cdc947613a1..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/FormAction/ActionParameter.php +++ /dev/null @@ -1,107 +0,0 @@ -google.chat.v1.WidgetMarkup.FormAction.ActionParameter - */ -class ActionParameter extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The name of the parameter for the action script. - * @type string $value - * The value of the parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The name of the parameter for the action script. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value of the parameter. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActionParameter::class, \Google\Apps\Chat\V1\WidgetMarkup_FormAction_ActionParameter::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php deleted file mode 100644 index a94f6e4fad34..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Icon.php +++ /dev/null @@ -1,198 +0,0 @@ -google.chat.v1.WidgetMarkup.Icon - */ -class Icon -{ - /** - * Generated from protobuf enum ICON_UNSPECIFIED = 0; - */ - const ICON_UNSPECIFIED = 0; - /** - * Generated from protobuf enum AIRPLANE = 1; - */ - const AIRPLANE = 1; - /** - * Generated from protobuf enum BOOKMARK = 26; - */ - const BOOKMARK = 26; - /** - * Generated from protobuf enum BUS = 25; - */ - const BUS = 25; - /** - * Generated from protobuf enum CAR = 9; - */ - const CAR = 9; - /** - * Generated from protobuf enum CLOCK = 2; - */ - const CLOCK = 2; - /** - * Generated from protobuf enum CONFIRMATION_NUMBER_ICON = 12; - */ - const CONFIRMATION_NUMBER_ICON = 12; - /** - * Generated from protobuf enum DOLLAR = 14; - */ - const DOLLAR = 14; - /** - * Generated from protobuf enum DESCRIPTION = 27; - */ - const DESCRIPTION = 27; - /** - * Generated from protobuf enum EMAIL = 10; - */ - const EMAIL = 10; - /** - * Generated from protobuf enum EVENT_PERFORMER = 20; - */ - const EVENT_PERFORMER = 20; - /** - * Generated from protobuf enum EVENT_SEAT = 21; - */ - const EVENT_SEAT = 21; - /** - * Generated from protobuf enum FLIGHT_ARRIVAL = 16; - */ - const FLIGHT_ARRIVAL = 16; - /** - * Generated from protobuf enum FLIGHT_DEPARTURE = 15; - */ - const FLIGHT_DEPARTURE = 15; - /** - * Generated from protobuf enum HOTEL = 6; - */ - const HOTEL = 6; - /** - * Generated from protobuf enum HOTEL_ROOM_TYPE = 17; - */ - const HOTEL_ROOM_TYPE = 17; - /** - * Generated from protobuf enum INVITE = 19; - */ - const INVITE = 19; - /** - * Generated from protobuf enum MAP_PIN = 3; - */ - const MAP_PIN = 3; - /** - * Generated from protobuf enum MEMBERSHIP = 24; - */ - const MEMBERSHIP = 24; - /** - * Generated from protobuf enum MULTIPLE_PEOPLE = 18; - */ - const MULTIPLE_PEOPLE = 18; - /** - * Generated from protobuf enum OFFER = 30; - */ - const OFFER = 30; - /** - * Generated from protobuf enum PERSON = 11; - */ - const PERSON = 11; - /** - * Generated from protobuf enum PHONE = 13; - */ - const PHONE = 13; - /** - * Generated from protobuf enum RESTAURANT_ICON = 7; - */ - const RESTAURANT_ICON = 7; - /** - * Generated from protobuf enum SHOPPING_CART = 8; - */ - const SHOPPING_CART = 8; - /** - * Generated from protobuf enum STAR = 5; - */ - const STAR = 5; - /** - * Generated from protobuf enum STORE = 22; - */ - const STORE = 22; - /** - * Generated from protobuf enum TICKET = 4; - */ - const TICKET = 4; - /** - * Generated from protobuf enum TRAIN = 23; - */ - const TRAIN = 23; - /** - * Generated from protobuf enum VIDEO_CAMERA = 28; - */ - const VIDEO_CAMERA = 28; - /** - * Generated from protobuf enum VIDEO_PLAY = 29; - */ - const VIDEO_PLAY = 29; - - private static $valueToName = [ - self::ICON_UNSPECIFIED => 'ICON_UNSPECIFIED', - self::AIRPLANE => 'AIRPLANE', - self::BOOKMARK => 'BOOKMARK', - self::BUS => 'BUS', - self::CAR => 'CAR', - self::CLOCK => 'CLOCK', - self::CONFIRMATION_NUMBER_ICON => 'CONFIRMATION_NUMBER_ICON', - self::DOLLAR => 'DOLLAR', - self::DESCRIPTION => 'DESCRIPTION', - self::EMAIL => 'EMAIL', - self::EVENT_PERFORMER => 'EVENT_PERFORMER', - self::EVENT_SEAT => 'EVENT_SEAT', - self::FLIGHT_ARRIVAL => 'FLIGHT_ARRIVAL', - self::FLIGHT_DEPARTURE => 'FLIGHT_DEPARTURE', - self::HOTEL => 'HOTEL', - self::HOTEL_ROOM_TYPE => 'HOTEL_ROOM_TYPE', - self::INVITE => 'INVITE', - self::MAP_PIN => 'MAP_PIN', - self::MEMBERSHIP => 'MEMBERSHIP', - self::MULTIPLE_PEOPLE => 'MULTIPLE_PEOPLE', - self::OFFER => 'OFFER', - self::PERSON => 'PERSON', - self::PHONE => 'PHONE', - self::RESTAURANT_ICON => 'RESTAURANT_ICON', - self::SHOPPING_CART => 'SHOPPING_CART', - self::STAR => 'STAR', - self::STORE => 'STORE', - self::TICKET => 'TICKET', - self::TRAIN => 'TRAIN', - self::VIDEO_CAMERA => 'VIDEO_CAMERA', - self::VIDEO_PLAY => 'VIDEO_PLAY', - ]; - - 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(Icon::class, \Google\Apps\Chat\V1\WidgetMarkup_Icon::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php deleted file mode 100644 index 3b95b7a6536b..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/Image.php +++ /dev/null @@ -1,160 +0,0 @@ -google.chat.v1.WidgetMarkup.Image - */ -class Image extends \Google\Protobuf\Internal\Message -{ - /** - * The URL of the image. - * - * Generated from protobuf field string image_url = 1; - */ - protected $image_url = ''; - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - /** - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * - * Generated from protobuf field double aspect_ratio = 3; - */ - protected $aspect_ratio = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_url - * The URL of the image. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action. - * @type float $aspect_ratio - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The URL of the image. - * - * Generated from protobuf field string image_url = 1; - * @return string - */ - public function getImageUrl() - { - return $this->image_url; - } - - /** - * The URL of the image. - * - * Generated from protobuf field string image_url = 1; - * @param string $var - * @return $this - */ - public function setImageUrl($var) - { - GPBUtil::checkString($var, True); - $this->image_url = $var; - - return $this; - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * - * Generated from protobuf field double aspect_ratio = 3; - * @return float - */ - public function getAspectRatio() - { - return $this->aspect_ratio; - } - - /** - * The aspect ratio of this image (width and height). This field lets you - * reserve the right height for the image while waiting for it to load. - * It's not meant to override the built-in aspect ratio of the image. - * If unset, the server fills it by prefetching the image. - * - * Generated from protobuf field double aspect_ratio = 3; - * @param float $var - * @return $this - */ - public function setAspectRatio($var) - { - GPBUtil::checkDouble($var); - $this->aspect_ratio = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Image::class, \Google\Apps\Chat\V1\WidgetMarkup_Image::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php deleted file mode 100644 index e226db38d7ac..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/ImageButton.php +++ /dev/null @@ -1,196 +0,0 @@ -google.chat.v1.WidgetMarkup.ImageButton - */ -class ImageButton extends \Google\Protobuf\Internal\Message -{ - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - /** - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - protected $icons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $icon - * The icon specified by an `enum` that indices to an icon provided by - * Chat API. - * @type string $icon_url - * The icon specified by a URL. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action. - * @type string $name - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The icon specified by an `enum` that indices to an icon provided by - * Chat API. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @return int - */ - public function getIcon() - { - return $this->readOneof(1); - } - - public function hasIcon() - { - return $this->hasOneof(1); - } - - /** - * The icon specified by an `enum` that indices to an icon provided by - * Chat API. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @param int $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\WidgetMarkup\Icon::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 3; - * @return string - */ - public function getIconUrl() - { - return $this->readOneof(3); - } - - public function hasIconUrl() - { - return $this->hasOneof(3); - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 3; - * @param string $var - * @return $this - */ - public function setIconUrl($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this `image_button` that's used for accessibility. - * Default value is provided if this name isn't specified. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * @return string - */ - public function getIcons() - { - return $this->whichOneof("icons"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ImageButton::class, \Google\Apps\Chat\V1\WidgetMarkup_ImageButton::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php deleted file mode 100644 index a4a0a65819b7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/KeyValue.php +++ /dev/null @@ -1,425 +0,0 @@ -google.chat.v1.WidgetMarkup.KeyValue - */ -class KeyValue extends \Google\Protobuf\Internal\Message -{ - /** - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string top_label = 3; - */ - protected $top_label = ''; - /** - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string content = 4; - */ - protected $content = ''; - /** - * If the content should be multiline. - * - * Generated from protobuf field bool content_multiline = 9; - */ - protected $content_multiline = false; - /** - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string bottom_label = 5; - */ - protected $bottom_label = ''; - /** - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; - */ - protected $on_click = null; - protected $icons; - protected $control; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $icon - * An enum value that's replaced by the Chat API with the - * corresponding icon image. - * @type string $icon_url - * The icon specified by a URL. - * @type string $top_label - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type string $content - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type bool $content_multiline - * If the content should be multiline. - * @type string $bottom_label - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * @type \Google\Apps\Chat\V1\WidgetMarkup\Button $button - * A button that can be clicked to trigger an action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * An enum value that's replaced by the Chat API with the - * corresponding icon image. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @return int - */ - public function getIcon() - { - return $this->readOneof(1); - } - - public function hasIcon() - { - return $this->hasOneof(1); - } - - /** - * An enum value that's replaced by the Chat API with the - * corresponding icon image. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Icon icon = 1; - * @param int $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Chat\V1\WidgetMarkup\Icon::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 2; - * @return string - */ - public function getIconUrl() - { - return $this->readOneof(2); - } - - public function hasIconUrl() - { - return $this->hasOneof(2); - } - - /** - * The icon specified by a URL. - * - * Generated from protobuf field string icon_url = 2; - * @param string $var - * @return $this - */ - public function setIconUrl($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string top_label = 3; - * @return string - */ - public function getTopLabel() - { - return $this->top_label; - } - - /** - * The text of the top label. Formatted text supported. For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string top_label = 3; - * @param string $var - * @return $this - */ - public function setTopLabel($var) - { - GPBUtil::checkString($var, True); - $this->top_label = $var; - - return $this; - } - - /** - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string content = 4; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * The text of the content. Formatted text supported and always required. - * For more information - * about formatting text, see - * [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string content = 4; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * If the content should be multiline. - * - * Generated from protobuf field bool content_multiline = 9; - * @return bool - */ - public function getContentMultiline() - { - return $this->content_multiline; - } - - /** - * If the content should be multiline. - * - * Generated from protobuf field bool content_multiline = 9; - * @param bool $var - * @return $this - */ - public function setContentMultiline($var) - { - GPBUtil::checkBool($var); - $this->content_multiline = $var; - - return $this; - } - - /** - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string bottom_label = 5; - * @return string - */ - public function getBottomLabel() - { - return $this->bottom_label; - } - - /** - * The text of the bottom label. Formatted text supported. For more - * information about formatting text, see [Formatting text in Google Chat - * apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) - * and - * [Formatting - * text in Google Workspace - * Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). - * - * Generated from protobuf field string bottom_label = 5; - * @param string $var - * @return $this - */ - public function setBottomLabel($var) - { - GPBUtil::checkString($var, True); - $this->bottom_label = $var; - - return $this; - } - - /** - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action. Only the top label, bottom label, and content - * region are clickable. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 6; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - - /** - * A button that can be clicked to trigger an action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Button button = 7; - * @return \Google\Apps\Chat\V1\WidgetMarkup\Button|null - */ - public function getButton() - { - return $this->readOneof(7); - } - - public function hasButton() - { - return $this->hasOneof(7); - } - - /** - * A button that can be clicked to trigger an action. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.Button button = 7; - * @param \Google\Apps\Chat\V1\WidgetMarkup\Button $var - * @return $this - */ - public function setButton($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\Button::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getIcons() - { - return $this->whichOneof("icons"); - } - - /** - * @return string - */ - public function getControl() - { - return $this->whichOneof("control"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KeyValue::class, \Google\Apps\Chat\V1\WidgetMarkup_KeyValue::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php deleted file mode 100644 index ec79f009d308..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OnClick.php +++ /dev/null @@ -1,111 +0,0 @@ -google.chat.v1.WidgetMarkup.OnClick - */ -class OnClick extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Chat\V1\WidgetMarkup\FormAction $action - * A form action is triggered by this `onclick` action if specified. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OpenLink $open_link - * This `onclick` action triggers an open link action if specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * A form action is triggered by this `onclick` action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.FormAction action = 1; - * @return \Google\Apps\Chat\V1\WidgetMarkup\FormAction|null - */ - public function getAction() - { - return $this->readOneof(1); - } - - public function hasAction() - { - return $this->hasOneof(1); - } - - /** - * A form action is triggered by this `onclick` action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.FormAction action = 1; - * @param \Google\Apps\Chat\V1\WidgetMarkup\FormAction $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\FormAction::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * This `onclick` action triggers an open link action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OpenLink open_link = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OpenLink|null - */ - public function getOpenLink() - { - return $this->readOneof(2); - } - - public function hasOpenLink() - { - return $this->hasOneof(2); - } - - /** - * This `onclick` action triggers an open link action if specified. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OpenLink open_link = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OpenLink $var - * @return $this - */ - public function setOpenLink($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OpenLink::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OnClick::class, \Google\Apps\Chat\V1\WidgetMarkup_OnClick::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php deleted file mode 100644 index a182dc013a6f..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/OpenLink.php +++ /dev/null @@ -1,70 +0,0 @@ -google.chat.v1.WidgetMarkup.OpenLink - */ -class OpenLink extends \Google\Protobuf\Internal\Message -{ - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The URL to open. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The URL to open. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OpenLink::class, \Google\Apps\Chat\V1\WidgetMarkup_OpenLink::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php deleted file mode 100644 index 91a4806ad5f7..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextButton.php +++ /dev/null @@ -1,114 +0,0 @@ -google.chat.v1.WidgetMarkup.TextButton - */ -class TextButton extends \Google\Protobuf\Internal\Message -{ - /** - * The text of the button. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The `onclick` action of the button. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - */ - protected $on_click = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * The text of the button. - * @type \Google\Apps\Chat\V1\WidgetMarkup\OnClick $on_click - * The `onclick` action of the button. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * The text of the button. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * The text of the button. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The `onclick` action of the button. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @return \Google\Apps\Chat\V1\WidgetMarkup\OnClick|null - */ - public function getOnClick() - { - return $this->on_click; - } - - public function hasOnClick() - { - return isset($this->on_click); - } - - public function clearOnClick() - { - unset($this->on_click); - } - - /** - * The `onclick` action of the button. - * - * Generated from protobuf field .google.chat.v1.WidgetMarkup.OnClick on_click = 2; - * @param \Google\Apps\Chat\V1\WidgetMarkup\OnClick $var - * @return $this - */ - public function setOnClick($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\WidgetMarkup\OnClick::class); - $this->on_click = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TextButton::class, \Google\Apps\Chat\V1\WidgetMarkup_TextButton::class); - diff --git a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php b/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php deleted file mode 100644 index 624c786b7b9d..000000000000 --- a/owl-bot-staging/AppsChat/v1/proto/src/Google/Apps/Chat/V1/WidgetMarkup/TextParagraph.php +++ /dev/null @@ -1,70 +0,0 @@ -google.chat.v1.WidgetMarkup.TextParagraph - */ -class TextParagraph extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Chat\V1\Widgets::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TextParagraph::class, \Google\Apps\Chat\V1\WidgetMarkup_TextParagraph::class); - diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php deleted file mode 100644 index 3a70907c0c48..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/complete_import_space.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CompleteImportSpaceResponse $response */ - $response = $chatServiceClient->completeImportSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceName('[SPACE]'); - - complete_import_space_sample($formattedName); -} -// [END chat_v1_generated_ChatService_CompleteImportSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php deleted file mode 100644 index 00c98fef72c7..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_membership.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent) - ->setMembership($membership); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->createMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - create_membership_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_CreateMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php deleted file mode 100644 index d25de7b6334b..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_message.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($formattedParent) - ->setMessage($message); - - // Call the API and handle any network failures. - try { - /** @var Message $response */ - $response = $chatServiceClient->createMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - create_message_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_CreateMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php deleted file mode 100644 index 708a409cecff..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_reaction.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent) - ->setReaction($reaction); - - // Call the API and handle any network failures. - try { - /** @var Reaction $response */ - $response = $chatServiceClient->createReaction($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - create_reaction_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_CreateReaction_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php deleted file mode 100644 index c331bbca54b9..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/create_space.php +++ /dev/null @@ -1,73 +0,0 @@ -setSpace($space); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->createSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_CreateSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php deleted file mode 100644 index cb6d26d75502..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_membership.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->deleteMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::membershipName('[SPACE]', '[MEMBER]'); - - delete_membership_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php deleted file mode 100644 index 4cba6f6cda36..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_message.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteMessage($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - delete_message_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php deleted file mode 100644 index ff8e837d34a5..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_reaction.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteReaction($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); - - delete_reaction_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteReaction_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php deleted file mode 100644 index d5cb8b8e282c..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/delete_space.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $chatServiceClient->deleteSpace($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceName('[SPACE]'); - - delete_space_sample($formattedName); -} -// [END chat_v1_generated_ChatService_DeleteSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php deleted file mode 100644 index db4dd111f3d3..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/find_direct_message.php +++ /dev/null @@ -1,100 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->findDirectMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - find_direct_message_sample($name); -} -// [END chat_v1_generated_ChatService_FindDirectMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php deleted file mode 100644 index 737520a133b9..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_attachment.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Attachment $response */ - $response = $chatServiceClient->getAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); - - get_attachment_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetAttachment_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php deleted file mode 100644 index 2264921471c0..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_membership.php +++ /dev/null @@ -1,93 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->getMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::membershipName('[SPACE]', '[MEMBER]'); - - get_membership_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php deleted file mode 100644 index b37e14eb6ae3..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_message.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Message $response */ - $response = $chatServiceClient->getMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - get_message_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php deleted file mode 100644 index 58a222f3b3c2..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->getSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceName('[SPACE]'); - - get_space_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php deleted file mode 100644 index 562dacb82ecc..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_event.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SpaceEvent $response */ - $response = $chatServiceClient->getSpaceEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceEventName('[SPACE]', '[SPACE_EVENT]'); - - get_space_event_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetSpaceEvent_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php deleted file mode 100644 index cde139fdc673..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_space_read_state.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SpaceReadState $response */ - $response = $chatServiceClient->getSpaceReadState($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::spaceReadStateName('[USER]', '[SPACE]'); - - get_space_read_state_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetSpaceReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php deleted file mode 100644 index c568ce84afa8..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/get_thread_read_state.php +++ /dev/null @@ -1,92 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ThreadReadState $response */ - $response = $chatServiceClient->getThreadReadState($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ChatServiceClient::threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); - - get_thread_read_state_sample($formattedName); -} -// [END chat_v1_generated_ChatService_GetThreadReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php deleted file mode 100644 index 2b1320f8efb4..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_memberships.php +++ /dev/null @@ -1,97 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listMemberships($request); - - /** @var Membership $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - list_memberships_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListMemberships_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php deleted file mode 100644 index 5755838d98d7..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_messages.php +++ /dev/null @@ -1,86 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listMessages($request); - - /** @var Message $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - - list_messages_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListMessages_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php deleted file mode 100644 index 316b53751c4d..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_reactions.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listReactions($request); - - /** @var Reaction $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::messageName('[SPACE]', '[MESSAGE]'); - - list_reactions_sample($formattedParent); -} -// [END chat_v1_generated_ChatService_ListReactions_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php deleted file mode 100644 index 6998213ce1c4..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_space_events.php +++ /dev/null @@ -1,147 +0,0 @@ -setParent($formattedParent) - ->setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->listSpaceEvents($request); - - /** @var SpaceEvent $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - $filter = '[FILTER]'; - - list_space_events_sample($formattedParent, $filter); -} -// [END chat_v1_generated_ChatService_ListSpaceEvents_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php deleted file mode 100644 index b4ccd291b017..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/list_spaces.php +++ /dev/null @@ -1,80 +0,0 @@ -listSpaces($request); - - /** @var Space $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_ListSpaces_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php deleted file mode 100644 index fd7b8279f999..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/search_spaces.php +++ /dev/null @@ -1,146 +0,0 @@ -`, `<=`, `>=`. - * - * `customer` is required and is used to indicate which customer - * to fetch spaces from. `customers/my_customer` is the only supported value. - * - * `display_name` only accepts the `HAS` (`:`) operator. The text to - * match is first tokenized into tokens and each token is prefix-matched - * case-insensitively and independently as a substring anywhere in the space's - * `display_name`. For example, `Fun Eve` matches `Fun event` or `The - * evening was fun`, but not `notFun event` or `even`. - * - * `external_user_allowed` accepts either `true` or `false`. - * - * `space_history_state` only accepts values from the [`historyState`] - * (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.HistoryState) - * field of a `space` resource. - * - * `space_type` is required and the only valid value is `SPACE`. - * - * Across different fields, only `AND` operators are supported. A valid - * example is `space_type = "SPACE" AND display_name:"Hello"` and an invalid - * example is `space_type = "SPACE" OR display_name:"Hello"`. - * - * Among the same field, - * `space_type` doesn't support `AND` or `OR` operators. - * `display_name`, 'space_history_state', and 'external_user_allowed' only - * support `OR` operators. - * `last_active_time` and `create_time` support both `AND` and `OR` operators. - * `AND` can only be used to represent an interval, such as `last_active_time - * < "2022-01-01T00:00:00+00:00" AND last_active_time > - * "2023-01-01T00:00:00+00:00"`. - * - * The following example queries are valid: - * - * ``` - * customer = "customers/my_customer" AND space_type = "SPACE" - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * display_name:"Hello World" - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time > - * "2022-01-01T00:00:00+00:00") - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (display_name:"Hello World" OR display_name:"Fun event") AND - * (last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time < - * "2022-01-01T00:00:00+00:00") - * - * customer = "customers/my_customer" AND space_type = "SPACE" AND - * (create_time > "2019-01-01T00:00:00+00:00" AND create_time < - * "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND - * (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF") - * ``` - */ -function search_spaces_sample(string $query): void -{ - // Create a client. - $chatServiceClient = new ChatServiceClient(); - - // Prepare the request message. - $request = (new SearchSpacesRequest()) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $chatServiceClient->searchSpaces($request); - - /** @var Space $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $query = '[QUERY]'; - - search_spaces_sample($query); -} -// [END chat_v1_generated_ChatService_SearchSpaces_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php deleted file mode 100644 index 8aa0bb6cec83..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/set_up_space.php +++ /dev/null @@ -1,110 +0,0 @@ -setSpace($space); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->setUpSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_SetUpSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php deleted file mode 100644 index 387555dc4ec3..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_membership.php +++ /dev/null @@ -1,66 +0,0 @@ -setMembership($membership) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Membership $response */ - $response = $chatServiceClient->updateMembership($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateMembership_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php deleted file mode 100644 index 1f748c1d8a50..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_message.php +++ /dev/null @@ -1,74 +0,0 @@ -setMessage($message); - - // Call the API and handle any network failures. - try { - /** @var Message $response */ - $response = $chatServiceClient->updateMessage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateMessage_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php deleted file mode 100644 index a50b3fcfbeff..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space.php +++ /dev/null @@ -1,68 +0,0 @@ -setSpace($space); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $chatServiceClient->updateSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateSpace_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php deleted file mode 100644 index 3ce3bf8f55dd..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/update_space_read_state.php +++ /dev/null @@ -1,67 +0,0 @@ -setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var SpaceReadState $response */ - $response = $chatServiceClient->updateSpaceReadState($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END chat_v1_generated_ChatService_UpdateSpaceReadState_sync] diff --git a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php b/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php deleted file mode 100644 index 5312833b0722..000000000000 --- a/owl-bot-staging/AppsChat/v1/samples/V1/ChatServiceClient/upload_attachment.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent) - ->setFilename($filename); - - // Call the API and handle any network failures. - try { - /** @var UploadAttachmentResponse $response */ - $response = $chatServiceClient->uploadAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ChatServiceClient::spaceName('[SPACE]'); - $filename = '[FILENAME]'; - - upload_attachment_sample($formattedParent, $filename); -} -// [END chat_v1_generated_ChatService_UploadAttachment_sync] diff --git a/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php b/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php deleted file mode 100644 index 2e3ca506bcbc..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/Client/ChatServiceClient.php +++ /dev/null @@ -1,1551 +0,0 @@ - completeImportSpaceAsync(CompleteImportSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMessageAsync(CreateMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReactionAsync(CreateReactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMembershipAsync(DeleteMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMessageAsync(DeleteMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteReactionAsync(DeleteReactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSpaceAsync(DeleteSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface findDirectMessageAsync(FindDirectMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMembershipAsync(GetMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMessageAsync(GetMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceEventAsync(GetSpaceEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceReadStateAsync(GetSpaceReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getThreadReadStateAsync(GetThreadReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMembershipsAsync(ListMembershipsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessagesAsync(ListMessagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReactionsAsync(ListReactionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpaceEventsAsync(ListSpaceEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSpacesAsync(ListSpacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchSpacesAsync(SearchSpacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface setUpSpaceAsync(SetUpSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMembershipAsync(UpdateMembershipRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMessageAsync(UpdateMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceReadStateAsync(UpdateSpaceReadStateRequest $request, array $optionalArgs = []) - * @method PromiseInterface uploadAttachmentAsync(UploadAttachmentRequest $request, array $optionalArgs = []) - */ -final class ChatServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.chat.v1.ChatService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'chat.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'chat.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chat.admin.delete', - 'https://www.googleapis.com/auth/chat.admin.memberships', - 'https://www.googleapis.com/auth/chat.admin.memberships.readonly', - 'https://www.googleapis.com/auth/chat.admin.spaces', - 'https://www.googleapis.com/auth/chat.admin.spaces.readonly', - 'https://www.googleapis.com/auth/chat.bot', - 'https://www.googleapis.com/auth/chat.delete', - 'https://www.googleapis.com/auth/chat.import', - 'https://www.googleapis.com/auth/chat.memberships', - 'https://www.googleapis.com/auth/chat.memberships.app', - 'https://www.googleapis.com/auth/chat.memberships.readonly', - 'https://www.googleapis.com/auth/chat.messages', - 'https://www.googleapis.com/auth/chat.messages.create', - 'https://www.googleapis.com/auth/chat.messages.reactions', - 'https://www.googleapis.com/auth/chat.messages.reactions.create', - 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', - 'https://www.googleapis.com/auth/chat.messages.readonly', - 'https://www.googleapis.com/auth/chat.spaces', - 'https://www.googleapis.com/auth/chat.spaces.create', - 'https://www.googleapis.com/auth/chat.spaces.readonly', - 'https://www.googleapis.com/auth/chat.users.readstate', - 'https://www.googleapis.com/auth/chat.users.readstate.readonly', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/chat_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/chat_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/chat_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/chat_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a attachment - * resource. - * - * @param string $space - * @param string $message - * @param string $attachment - * - * @return string The formatted attachment resource. - */ - public static function attachmentName(string $space, string $message, string $attachment): string - { - return self::getPathTemplate('attachment')->render([ - 'space' => $space, - 'message' => $message, - 'attachment' => $attachment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a membership - * resource. - * - * @param string $space - * @param string $member - * - * @return string The formatted membership resource. - */ - public static function membershipName(string $space, string $member): string - { - return self::getPathTemplate('membership')->render([ - 'space' => $space, - 'member' => $member, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a message - * resource. - * - * @param string $space - * @param string $message - * - * @return string The formatted message resource. - */ - public static function messageName(string $space, string $message): string - { - return self::getPathTemplate('message')->render([ - 'space' => $space, - 'message' => $message, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * quoted_message_metadata resource. - * - * @param string $space - * @param string $message - * @param string $quotedMessageMetadata - * - * @return string The formatted quoted_message_metadata resource. - */ - public static function quotedMessageMetadataName(string $space, string $message, string $quotedMessageMetadata): string - { - return self::getPathTemplate('quotedMessageMetadata')->render([ - 'space' => $space, - 'message' => $message, - 'quoted_message_metadata' => $quotedMessageMetadata, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a reaction - * resource. - * - * @param string $space - * @param string $message - * @param string $reaction - * - * @return string The formatted reaction resource. - */ - public static function reactionName(string $space, string $message, string $reaction): string - { - return self::getPathTemplate('reaction')->render([ - 'space' => $space, - 'message' => $message, - 'reaction' => $reaction, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a space - * resource. - * - * @param string $space - * - * @return string The formatted space resource. - */ - public static function spaceName(string $space): string - { - return self::getPathTemplate('space')->render([ - 'space' => $space, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a space_event - * resource. - * - * @param string $space - * @param string $spaceEvent - * - * @return string The formatted space_event resource. - */ - public static function spaceEventName(string $space, string $spaceEvent): string - { - return self::getPathTemplate('spaceEvent')->render([ - 'space' => $space, - 'space_event' => $spaceEvent, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * space_read_state resource. - * - * @param string $user - * @param string $space - * - * @return string The formatted space_read_state resource. - */ - public static function spaceReadStateName(string $user, string $space): string - { - return self::getPathTemplate('spaceReadState')->render([ - 'user' => $user, - 'space' => $space, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a thread - * resource. - * - * @param string $space - * @param string $thread - * - * @return string The formatted thread resource. - */ - public static function threadName(string $space, string $thread): string - { - return self::getPathTemplate('thread')->render([ - 'space' => $space, - 'thread' => $thread, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * thread_read_state resource. - * - * @param string $user - * @param string $space - * @param string $thread - * - * @return string The formatted thread_read_state resource. - */ - public static function threadReadStateName(string $user, string $space, string $thread): string - { - return self::getPathTemplate('threadReadState')->render([ - 'user' => $user, - 'space' => $space, - 'thread' => $thread, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - attachment: spaces/{space}/messages/{message}/attachments/{attachment} - * - membership: spaces/{space}/members/{member} - * - message: spaces/{space}/messages/{message} - * - quotedMessageMetadata: spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata} - * - reaction: spaces/{space}/messages/{message}/reactions/{reaction} - * - space: spaces/{space} - * - spaceEvent: spaces/{space}/spaceEvents/{space_event} - * - spaceReadState: users/{user}/spaces/{space}/spaceReadState - * - thread: spaces/{space}/threads/{thread} - * - threadReadState: users/{user}/spaces/{space}/threads/{thread}/threadReadState - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'chat.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Completes the - * [import process](https://developers.google.com/workspace/chat/import-data) - * for the specified space and makes it visible to users. - * Requires app authentication and domain-wide delegation. For more - * information, see [Authorize Google Chat apps to import - * data](https://developers.google.com/workspace/chat/authorize-import). - * - * The async variant is {@see ChatServiceClient::completeImportSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/complete_import_space.php - * - * @param CompleteImportSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CompleteImportSpaceResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function completeImportSpace(CompleteImportSpaceRequest $request, array $callOptions = []): CompleteImportSpaceResponse - { - return $this->startApiCall('CompleteImportSpace', $request, $callOptions)->wait(); - } - - /** - * Creates a membership for the calling Chat app, a user, or a Google Group. - * Creating memberships for other Chat apps isn't supported. - * When creating a membership, if the specified member has their auto-accept - * policy turned off, then they're invited, and must accept the space - * invitation before joining. Otherwise, creating a membership adds the member - * directly to the specified space. - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * For example usage, see: - * - * - [Invite or add a user to a - * space](https://developers.google.com/workspace/chat/create-members#create-user-membership). - * - * - [Invite or add a Google Group to a - * space](https://developers.google.com/workspace/chat/create-members#create-group-membership). - * - * - [Add the Chat app to a - * space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api). - * - * The async variant is {@see ChatServiceClient::createMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/create_membership.php - * - * @param CreateMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function createMembership(CreateMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('CreateMembership', $request, $callOptions)->wait(); - } - - /** - * Creates a message in a Google Chat space. For an example, see [Send a - * message](https://developers.google.com/workspace/chat/create-messages). - * - * The `create()` method requires either user or app authentication. Chat - * attributes the message sender differently depending on the type of - * authentication that you use in your request. - * - * The following image shows how Chat attributes a message when you use app - * authentication. Chat displays the Chat app as the message - * sender. The content of the message can contain text (`text`), cards - * (`cardsV2`), and accessory widgets (`accessoryWidgets`). - * - * ![Message sent with app - * authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) - * - * The following image shows how Chat attributes a message when you use user - * authentication. Chat displays the user as the message sender and attributes - * the Chat app to the message by displaying its name. The content of message - * can only contain text (`text`). - * - * ![Message sent with user - * authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) - * - * The maximum message size, including the message contents, is 32,000 bytes. - * - * The async variant is {@see ChatServiceClient::createMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/create_message.php - * - * @param CreateMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Message - * - * @throws ApiException Thrown if the API call fails. - */ - public function createMessage(CreateMessageRequest $request, array $callOptions = []): Message - { - return $this->startApiCall('CreateMessage', $request, $callOptions)->wait(); - } - - /** - * Creates a reaction and adds it to a message. Only unicode emojis are - * supported. For an example, see - * [Add a reaction to a - * message](https://developers.google.com/workspace/chat/create-reactions). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::createReactionAsync()} . - * - * @example samples/V1/ChatServiceClient/create_reaction.php - * - * @param CreateReactionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Reaction - * - * @throws ApiException Thrown if the API call fails. - */ - public function createReaction(CreateReactionRequest $request, array $callOptions = []): Reaction - { - return $this->startApiCall('CreateReaction', $request, $callOptions)->wait(); - } - - /** - * Creates a space with no members. Can be used to create a named space. - * Spaces grouped by topics aren't supported. For an example, see - * [Create a - * space](https://developers.google.com/workspace/chat/create-spaces). - * - * If you receive the error message `ALREADY_EXISTS` when creating - * a space, try a different `displayName`. An existing space within - * the Google Workspace organization might already use this display name. - * - * If you're a member of the [Developer Preview - * program](https://developers.google.com/workspace/preview), you can create a - * group chat in import mode using `spaceType.GROUP_CHAT`. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::createSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/create_space.php - * - * @param CreateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSpace(CreateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('CreateSpace', $request, $callOptions)->wait(); - } - - /** - * Deletes a membership. For an example, see - * [Remove a user or a Google Chat app from a - * space](https://developers.google.com/workspace/chat/delete-members). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::deleteMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_membership.php - * - * @param DeleteMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteMembership(DeleteMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('DeleteMembership', $request, $callOptions)->wait(); - } - - /** - * Deletes a message. - * For an example, see [Delete a - * message](https://developers.google.com/workspace/chat/delete-messages). - * - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only delete messages - * created by the calling Chat app. - * - * The async variant is {@see ChatServiceClient::deleteMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_message.php - * - * @param DeleteMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteMessage(DeleteMessageRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMessage', $request, $callOptions)->wait(); - } - - /** - * Deletes a reaction to a message. Only unicode emojis are supported. - * For an example, see - * [Delete a - * reaction](https://developers.google.com/workspace/chat/delete-reactions). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::deleteReactionAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_reaction.php - * - * @param DeleteReactionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteReaction(DeleteReactionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteReaction', $request, $callOptions)->wait(); - } - - /** - * Deletes a named space. Always performs a cascading delete, which means - * that the space's child resources—like messages posted in the space and - * memberships in the space—are also deleted. For an example, see - * [Delete a - * space](https://developers.google.com/workspace/chat/delete-spaces). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * from a user who has permission to delete the space. - * - * The async variant is {@see ChatServiceClient::deleteSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/delete_space.php - * - * @param DeleteSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSpace(DeleteSpaceRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSpace', $request, $callOptions)->wait(); - } - - /** - * Returns the existing direct message with the specified user. If no direct - * message space is found, returns a `404 NOT_FOUND` error. For an example, - * see - * [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). - * - * With [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * returns the direct message space between the specified user and the - * authenticated user. - * - * With [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), - * returns the direct message space between the specified user and the calling - * Chat app. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * or [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * The async variant is {@see ChatServiceClient::findDirectMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/find_direct_message.php - * - * @param FindDirectMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function findDirectMessage(FindDirectMessageRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('FindDirectMessage', $request, $callOptions)->wait(); - } - - /** - * Gets the metadata of a message attachment. The attachment data is fetched - * using the [media - * API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). - * For an example, see - * [Get metadata about a message - * attachment](https://developers.google.com/workspace/chat/get-media-attachments). - * Requires [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). - * - * The async variant is {@see ChatServiceClient::getAttachmentAsync()} . - * - * @example samples/V1/ChatServiceClient/get_attachment.php - * - * @param GetAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Attachment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAttachment(GetAttachmentRequest $request, array $callOptions = []): Attachment - { - return $this->startApiCall('GetAttachment', $request, $callOptions)->wait(); - } - - /** - * Returns details about a membership. For an example, see - * [Get details about a user's or Google Chat app's - * membership](https://developers.google.com/workspace/chat/get-members). - * - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::getMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/get_membership.php - * - * @param GetMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMembership(GetMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('GetMembership', $request, $callOptions)->wait(); - } - - /** - * Returns details about a message. - * For an example, see [Get details about a - * message](https://developers.google.com/workspace/chat/get-messages). - * - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Note: Might return a message from a blocked member or space. - * - * The async variant is {@see ChatServiceClient::getMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/get_message.php - * - * @param GetMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Message - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMessage(GetMessageRequest $request, array $callOptions = []): Message - { - return $this->startApiCall('GetMessage', $request, $callOptions)->wait(); - } - - /** - * Returns details about a space. For an example, see - * [Get details about a - * space](https://developers.google.com/workspace/chat/get-spaces). - * - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::getSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/get_space.php - * - * @param GetSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpace(GetSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('GetSpace', $request, $callOptions)->wait(); - } - - /** - * Returns an event from a Google Chat space. The [event - * payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) - * contains the most recent version of the resource that changed. For example, - * if you request an event about a new message but the message was later - * updated, the server returns the updated `Message` resource in the event - * payload. - * - * Note: The `permissionSettings` field is not returned in the Space - * object of the Space event data for this request. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * To get an event, the authenticated user must be a member of the space. - * - * For an example, see [Get details about an - * event from a Google Chat - * space](https://developers.google.com/workspace/chat/get-space-event). - * - * The async variant is {@see ChatServiceClient::getSpaceEventAsync()} . - * - * @example samples/V1/ChatServiceClient/get_space_event.php - * - * @param GetSpaceEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceEvent - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpaceEvent(GetSpaceEventRequest $request, array $callOptions = []): SpaceEvent - { - return $this->startApiCall('GetSpaceEvent', $request, $callOptions)->wait(); - } - - /** - * Returns details about a user's read state within a space, used to identify - * read and unread messages. For an example, see [Get details about a user's - * space read - * state](https://developers.google.com/workspace/chat/get-space-read-state). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::getSpaceReadStateAsync()} . - * - * @example samples/V1/ChatServiceClient/get_space_read_state.php - * - * @param GetSpaceReadStateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceReadState - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpaceReadState(GetSpaceReadStateRequest $request, array $callOptions = []): SpaceReadState - { - return $this->startApiCall('GetSpaceReadState', $request, $callOptions)->wait(); - } - - /** - * Returns details about a user's read state within a thread, used to identify - * read and unread messages. For an example, see [Get details about a user's - * thread read - * state](https://developers.google.com/workspace/chat/get-thread-read-state). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::getThreadReadStateAsync()} . - * - * @example samples/V1/ChatServiceClient/get_thread_read_state.php - * - * @param GetThreadReadStateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ThreadReadState - * - * @throws ApiException Thrown if the API call fails. - */ - public function getThreadReadState(GetThreadReadStateRequest $request, array $callOptions = []): ThreadReadState - { - return $this->startApiCall('GetThreadReadState', $request, $callOptions)->wait(); - } - - /** - * Lists memberships in a space. For an example, see [List users and Google - * Chat apps in a - * space](https://developers.google.com/workspace/chat/list-members). Listing - * memberships with [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * lists memberships in spaces that the Chat app has - * access to, but excludes Chat app memberships, - * including its own. Listing memberships with - * [User - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - * lists memberships in spaces that the authenticated user has access to. - * - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::listMembershipsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_memberships.php - * - * @param ListMembershipsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMemberships(ListMembershipsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMemberships', $request, $callOptions); - } - - /** - * Lists messages in a space that the caller is a member of, including - * messages from blocked members and spaces. If you list messages from a - * space with no messages, the response is an empty object. When using a - * REST/HTTP interface, the response contains an empty JSON object, `{}`. - * For an example, see - * [List - * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::listMessagesAsync()} . - * - * @example samples/V1/ChatServiceClient/list_messages.php - * - * @param ListMessagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMessages(ListMessagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMessages', $request, $callOptions); - } - - /** - * Lists reactions to a message. For an example, see - * [List reactions for a - * message](https://developers.google.com/workspace/chat/list-reactions). - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::listReactionsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_reactions.php - * - * @param ListReactionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReactions(ListReactionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReactions', $request, $callOptions); - } - - /** - * Lists events from a Google Chat space. For each event, the - * [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) - * contains the most recent version of the Chat resource. For example, if you - * list events about new space members, the server returns `Membership` - * resources that contain the latest membership details. If new members were - * removed during the requested period, the event payload contains an empty - * `Membership` resource. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * To list events, the authenticated user must be a member of the space. - * - * For an example, see [List events from a Google Chat - * space](https://developers.google.com/workspace/chat/list-space-events). - * - * The async variant is {@see ChatServiceClient::listSpaceEventsAsync()} . - * - * @example samples/V1/ChatServiceClient/list_space_events.php - * - * @param ListSpaceEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSpaceEvents(ListSpaceEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSpaceEvents', $request, $callOptions); - } - - /** - * Lists spaces the caller is a member of. Group chats and DMs aren't listed - * until the first message is sent. For an example, see - * [List - * spaces](https://developers.google.com/workspace/chat/list-spaces). - * - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * Lists spaces visible to the caller or authenticated user. Group chats - * and DMs aren't listed until the first message is sent. - * - * To list all named spaces by Google Workspace organization, use the - * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) - * method using Workspace administrator privileges instead. - * - * The async variant is {@see ChatServiceClient::listSpacesAsync()} . - * - * @example samples/V1/ChatServiceClient/list_spaces.php - * - * @param ListSpacesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSpaces(ListSpacesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSpaces', $request, $callOptions); - } - - /** - * Returns a list of spaces in a Google Workspace organization based on an - * administrator's search. Requires [user - * authentication with administrator - * privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges). - * In the request, set `use_admin_access` to `true`. - * - * The async variant is {@see ChatServiceClient::searchSpacesAsync()} . - * - * @example samples/V1/ChatServiceClient/search_spaces.php - * - * @param SearchSpacesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchSpaces(SearchSpacesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchSpaces', $request, $callOptions); - } - - /** - * Creates a space and adds specified users to it. The calling user is - * automatically added to the space, and shouldn't be specified as a - * membership in the request. For an example, see - * [Set up a space with initial - * members](https://developers.google.com/workspace/chat/set-up-spaces). - * - * To specify the human members to add, add memberships with the appropriate - * `membership.member.name`. To add a human user, use `users/{user}`, where - * `{user}` can be the email address for the user. For users in the same - * Workspace organization `{user}` can also be the `id` for the person from - * the People API, or the `id` for the user in the Directory API. For example, - * if the People API Person profile ID for `user@example.com` is `123456789`, - * you can add the user to the space by setting the `membership.member.name` - * to `users/user@example.com` or `users/123456789`. - * - * To specify the Google groups to add, add memberships with the - * appropriate `membership.group_member.name`. To add or invite a Google - * group, use `groups/{group}`, where `{group}` is the `id` for the group from - * the Cloud Identity Groups API. For example, you can use [Cloud Identity - * Groups lookup - * API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup) - * to retrieve the ID `123456789` for group email `group@example.com`, then - * you can add the group to the space by setting the - * `membership.group_member.name` to `groups/123456789`. Group email is not - * supported, and Google groups can only be added as members in named spaces. - * - * For a named space or group chat, if the caller blocks, or is blocked - * by some members, or doesn't have permission to add some members, then - * those members aren't added to the created space. - * - * To create a direct message (DM) between the calling user and another human - * user, specify exactly one membership to represent the human user. If - * one user blocks the other, the request fails and the DM isn't created. - * - * To create a DM between the calling user and the calling app, set - * `Space.singleUserBotDm` to `true` and don't specify any memberships. You - * can only use this method to set up a DM with the calling app. To add the - * calling app as a member of a space or an existing DM between two human - * users, see - * [Invite or add a user or app to a - * space](https://developers.google.com/workspace/chat/create-members). - * - * If a DM already exists between two users, even when one user blocks the - * other at the time a request is made, then the existing DM is returned. - * - * Spaces with threaded replies aren't supported. If you receive the error - * message `ALREADY_EXISTS` when setting up a space, try a different - * `displayName`. An existing space within the Google Workspace organization - * might already use this display name. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::setUpSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/set_up_space.php - * - * @param SetUpSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function setUpSpace(SetUpSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('SetUpSpace', $request, $callOptions)->wait(); - } - - /** - * Updates a membership. For an example, see [Update a user's membership in - * a space](https://developers.google.com/workspace/chat/update-members). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::updateMembershipAsync()} . - * - * @example samples/V1/ChatServiceClient/update_membership.php - * - * @param UpdateMembershipRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Membership - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMembership(UpdateMembershipRequest $request, array $callOptions = []): Membership - { - return $this->startApiCall('UpdateMembership', $request, $callOptions)->wait(); - } - - /** - * Updates a message. There's a difference between the `patch` and `update` - * methods. The `patch` - * method uses a `patch` request while the `update` method uses a `put` - * request. We recommend using the `patch` method. For an example, see - * [Update a - * message](https://developers.google.com/workspace/chat/update-messages). - * - * Requires - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). - * Supports - * [app - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) - * and [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * When using app authentication, requests can only update messages - * created by the calling Chat app. - * - * The async variant is {@see ChatServiceClient::updateMessageAsync()} . - * - * @example samples/V1/ChatServiceClient/update_message.php - * - * @param UpdateMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Message - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMessage(UpdateMessageRequest $request, array $callOptions = []): Message - { - return $this->startApiCall('UpdateMessage', $request, $callOptions)->wait(); - } - - /** - * Updates a space. For an example, see - * [Update a - * space](https://developers.google.com/workspace/chat/update-spaces). - * - * If you're updating the `displayName` field and receive the error message - * `ALREADY_EXISTS`, try a different display name.. An existing space within - * the Google Workspace organization might already use this display name. - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::updateSpaceAsync()} . - * - * @example samples/V1/ChatServiceClient/update_space.php - * - * @param UpdateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSpace(UpdateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('UpdateSpace', $request, $callOptions)->wait(); - } - - /** - * Updates a user's read state within a space, used to identify read and - * unread messages. For an example, see [Update a user's space read - * state](https://developers.google.com/workspace/chat/update-space-read-state). - * - * Requires [user - * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * The async variant is {@see ChatServiceClient::updateSpaceReadStateAsync()} . - * - * @example samples/V1/ChatServiceClient/update_space_read_state.php - * - * @param UpdateSpaceReadStateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SpaceReadState - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSpaceReadState(UpdateSpaceReadStateRequest $request, array $callOptions = []): SpaceReadState - { - return $this->startApiCall('UpdateSpaceReadState', $request, $callOptions)->wait(); - } - - /** - * Uploads an attachment. For an example, see - * [Upload media as a file - * attachment](https://developers.google.com/workspace/chat/upload-media-attachments). - * Requires user - * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). - * - * You can upload attachments up to 200 MB. Certain file types aren't - * supported. For details, see [File types blocked by Google - * Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat). - * - * The async variant is {@see ChatServiceClient::uploadAttachmentAsync()} . - * - * @example samples/V1/ChatServiceClient/upload_attachment.php - * - * @param UploadAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return UploadAttachmentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function uploadAttachment(UploadAttachmentRequest $request, array $callOptions = []): UploadAttachmentResponse - { - return $this->startApiCall('UploadAttachment', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 7cb823611f39..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.chat.v1", - "libraryPackage": "Google\\Apps\\Chat\\V1", - "services": { - "ChatService": { - "clients": { - "grpc": { - "libraryClient": "ChatServiceGapicClient", - "rpcs": { - "CompleteImportSpace": { - "methods": [ - "completeImportSpace" - ] - }, - "CreateMembership": { - "methods": [ - "createMembership" - ] - }, - "CreateMessage": { - "methods": [ - "createMessage" - ] - }, - "CreateReaction": { - "methods": [ - "createReaction" - ] - }, - "CreateSpace": { - "methods": [ - "createSpace" - ] - }, - "DeleteMembership": { - "methods": [ - "deleteMembership" - ] - }, - "DeleteMessage": { - "methods": [ - "deleteMessage" - ] - }, - "DeleteReaction": { - "methods": [ - "deleteReaction" - ] - }, - "DeleteSpace": { - "methods": [ - "deleteSpace" - ] - }, - "FindDirectMessage": { - "methods": [ - "findDirectMessage" - ] - }, - "GetAttachment": { - "methods": [ - "getAttachment" - ] - }, - "GetMembership": { - "methods": [ - "getMembership" - ] - }, - "GetMessage": { - "methods": [ - "getMessage" - ] - }, - "GetSpace": { - "methods": [ - "getSpace" - ] - }, - "GetSpaceEvent": { - "methods": [ - "getSpaceEvent" - ] - }, - "GetSpaceReadState": { - "methods": [ - "getSpaceReadState" - ] - }, - "GetThreadReadState": { - "methods": [ - "getThreadReadState" - ] - }, - "ListMemberships": { - "methods": [ - "listMemberships" - ] - }, - "ListMessages": { - "methods": [ - "listMessages" - ] - }, - "ListReactions": { - "methods": [ - "listReactions" - ] - }, - "ListSpaceEvents": { - "methods": [ - "listSpaceEvents" - ] - }, - "ListSpaces": { - "methods": [ - "listSpaces" - ] - }, - "SearchSpaces": { - "methods": [ - "searchSpaces" - ] - }, - "SetUpSpace": { - "methods": [ - "setUpSpace" - ] - }, - "UpdateMembership": { - "methods": [ - "updateMembership" - ] - }, - "UpdateMessage": { - "methods": [ - "updateMessage" - ] - }, - "UpdateSpace": { - "methods": [ - "updateSpace" - ] - }, - "UpdateSpaceReadState": { - "methods": [ - "updateSpaceReadState" - ] - }, - "UploadAttachment": { - "methods": [ - "uploadAttachment" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json deleted file mode 100644 index 0d68bca79608..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_client_config.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "interfaces": { - "google.chat.v1.ChatService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "CompleteImportSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateReaction": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteReaction": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FindDirectMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAttachment": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpaceEvent": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSpaceReadState": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetThreadReadState": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMemberships": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMessages": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListReactions": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSpaceEvents": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSpaces": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchSpaces": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetUpSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMembership": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateMessage": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSpace": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSpaceReadState": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UploadAttachment": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php deleted file mode 100644 index 2b4955688054..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_descriptor_config.php +++ /dev/null @@ -1,400 +0,0 @@ - [ - 'google.chat.v1.ChatService' => [ - 'CompleteImportSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\CompleteImportSpaceResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Message', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReaction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Reaction', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - ], - 'DeleteMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReaction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FindDirectMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - ], - 'GetAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Attachment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Message', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceEvent', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceReadState' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceReadState', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetThreadReadState' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ThreadReadState', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListMemberships' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMemberships', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListMembershipsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMessages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListMessagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListReactions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReactions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListReactionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpaceEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpaceEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListSpaceEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpaces' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpaces', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\ListSpacesResponse', - ], - 'SearchSpaces' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSpaces', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SearchSpacesResponse', - ], - 'SetUpSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - ], - 'UpdateMembership' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Membership', - 'headerParams' => [ - [ - 'keyName' => 'membership.name', - 'fieldAccessors' => [ - 'getMembership', - 'getName', - ], - ], - ], - ], - 'UpdateMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Message', - 'headerParams' => [ - [ - 'keyName' => 'message.name', - 'fieldAccessors' => [ - 'getMessage', - 'getName', - ], - ], - ], - ], - 'UpdateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\Space', - 'headerParams' => [ - [ - 'keyName' => 'space.name', - 'fieldAccessors' => [ - 'getSpace', - 'getName', - ], - ], - ], - ], - 'UpdateSpaceReadState' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\SpaceReadState', - 'headerParams' => [ - [ - 'keyName' => 'space_read_state.name', - 'fieldAccessors' => [ - 'getSpaceReadState', - 'getName', - ], - ], - ], - ], - 'UploadAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Chat\V1\UploadAttachmentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'attachment' => 'spaces/{space}/messages/{message}/attachments/{attachment}', - 'membership' => 'spaces/{space}/members/{member}', - 'message' => 'spaces/{space}/messages/{message}', - 'quotedMessageMetadata' => 'spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}', - 'reaction' => 'spaces/{space}/messages/{message}/reactions/{reaction}', - 'space' => 'spaces/{space}', - 'spaceEvent' => 'spaces/{space}/spaceEvents/{space_event}', - 'spaceReadState' => 'users/{user}/spaces/{space}/spaceReadState', - 'thread' => 'spaces/{space}/threads/{thread}', - 'threadReadState' => 'users/{user}/spaces/{space}/threads/{thread}/threadReadState', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php b/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php deleted file mode 100644 index 70a4a1080af3..000000000000 --- a/owl-bot-staging/AppsChat/v1/src/V1/resources/chat_service_rest_client_config.php +++ /dev/null @@ -1,344 +0,0 @@ - [ - 'google.chat.v1.ChatService' => [ - 'CompleteImportSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=spaces/*}:completeImport', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateMembership' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*}/members', - 'body' => 'membership', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMessage' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*}/messages', - 'body' => 'message', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReaction' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*/messages/*}/reactions', - 'body' => 'reaction', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/spaces', - 'body' => 'space', - ], - 'DeleteMembership' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*/members/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMessage' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReaction' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*/reactions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSpace' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=spaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FindDirectMessage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/spaces:findDirectMessage', - ], - 'GetAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*/attachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMembership' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/members/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMessage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/messages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=spaces/*/spaceEvents/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpaceReadState' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=users/*/spaces/*/spaceReadState}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetThreadReadState' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=users/*/spaces/*/threads/*/threadReadState}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListMemberships' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*}/members', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*}/messages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListReactions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*/messages/*}/reactions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSpaceEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=spaces/*}/spaceEvents', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'filter', - ], - ], - 'ListSpaces' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/spaces', - ], - 'SearchSpaces' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/spaces:search', - ], - 'SetUpSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/spaces:setup', - 'body' => '*', - ], - 'UpdateMembership' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{membership.name=spaces/*/members/*}', - 'body' => 'membership', - 'placeholders' => [ - 'membership.name' => [ - 'getters' => [ - 'getMembership', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMessage' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{message.name=spaces/*/messages/*}', - 'body' => 'message', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{message.name=spaces/*/messages/*}', - 'body' => 'message', - ], - ], - 'placeholders' => [ - 'message.name' => [ - 'getters' => [ - 'getMessage', - 'getName', - ], - ], - ], - ], - 'UpdateSpace' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{space.name=spaces/*}', - 'body' => 'space', - 'placeholders' => [ - 'space.name' => [ - 'getters' => [ - 'getSpace', - 'getName', - ], - ], - ], - ], - 'UpdateSpaceReadState' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}', - 'body' => 'space_read_state', - 'placeholders' => [ - 'space_read_state.name' => [ - 'getters' => [ - 'getSpaceReadState', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UploadAttachment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=spaces/*}/attachments:upload', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php b/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php deleted file mode 100644 index 8895c578d1dd..000000000000 --- a/owl-bot-staging/AppsChat/v1/tests/Unit/V1/Client/ChatServiceClientTest.php +++ /dev/null @@ -1,2177 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ChatServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ChatServiceClient($options); - } - - /** @test */ - public function completeImportSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CompleteImportSpaceResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new CompleteImportSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->completeImportSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CompleteImportSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeImportSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new CompleteImportSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->completeImportSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $membership = new Membership(); - $request = (new CreateMembershipRequest()) - ->setParent($formattedParent) - ->setMembership($membership); - $response = $gapicClient->createMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMembership(); - $this->assertProtobufEquals($membership, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $membership = new Membership(); - $request = (new CreateMembershipRequest()) - ->setParent($formattedParent) - ->setMembership($membership); - try { - $gapicClient->createMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $text = 'text3556653'; - $formattedText = 'formattedText-1686936880'; - $fallbackText = 'fallbackText563106922'; - $argumentText = 'argumentText-39826065'; - $threadReply = false; - $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; - $expectedResponse = new Message(); - $expectedResponse->setName($name); - $expectedResponse->setText($text); - $expectedResponse->setFormattedText($formattedText); - $expectedResponse->setFallbackText($fallbackText); - $expectedResponse->setArgumentText($argumentText); - $expectedResponse->setThreadReply($threadReply); - $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $message = new Message(); - $request = (new CreateMessageRequest()) - ->setParent($formattedParent) - ->setMessage($message); - $response = $gapicClient->createMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMessage(); - $this->assertProtobufEquals($message, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $message = new Message(); - $request = (new CreateMessageRequest()) - ->setParent($formattedParent) - ->setMessage($message); - try { - $gapicClient->createMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReactionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Reaction(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $reaction = new Reaction(); - $request = (new CreateReactionRequest()) - ->setParent($formattedParent) - ->setReaction($reaction); - $response = $gapicClient->createReaction($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateReaction', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReaction(); - $this->assertProtobufEquals($reaction, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReactionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $reaction = new Reaction(); - $request = (new CreateReactionRequest()) - ->setParent($formattedParent) - ->setReaction($reaction); - try { - $gapicClient->createReaction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $request = (new CreateSpaceRequest()) - ->setSpace($space); - $response = $gapicClient->createSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CreateSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $request = (new CreateSpaceRequest()) - ->setSpace($space); - try { - $gapicClient->createSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new DeleteMembershipRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new DeleteMembershipRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new DeleteMessageRequest()) - ->setName($formattedName); - $gapicClient->deleteMessage($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new DeleteMessageRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteReactionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); - $request = (new DeleteReactionRequest()) - ->setName($formattedName); - $gapicClient->deleteReaction($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteReaction', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteReactionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->reactionName('[SPACE]', '[MESSAGE]', '[REACTION]'); - $request = (new DeleteReactionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteReaction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new DeleteSpaceRequest()) - ->setName($formattedName); - $gapicClient->deleteSpace($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/DeleteSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new DeleteSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function findDirectMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name2); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new FindDirectMessageRequest()) - ->setName($name); - $response = $gapicClient->findDirectMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/FindDirectMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function findDirectMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new FindDirectMessageRequest()) - ->setName($name); - try { - $gapicClient->findDirectMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $contentName = 'contentName831644305'; - $contentType = 'contentType831846208'; - $thumbnailUri = 'thumbnailUri1825632153'; - $downloadUri = 'downloadUri1109408053'; - $expectedResponse = new Attachment(); - $expectedResponse->setName($name2); - $expectedResponse->setContentName($contentName); - $expectedResponse->setContentType($contentType); - $expectedResponse->setThumbnailUri($thumbnailUri); - $expectedResponse->setDownloadUri($downloadUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); - $request = (new GetAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->getAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attachmentName('[SPACE]', '[MESSAGE]', '[ATTACHMENT]'); - $request = (new GetAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->getAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new GetMembershipRequest()) - ->setName($formattedName); - $response = $gapicClient->getMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->membershipName('[SPACE]', '[MEMBER]'); - $request = (new GetMembershipRequest()) - ->setName($formattedName); - try { - $gapicClient->getMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $text = 'text3556653'; - $formattedText = 'formattedText-1686936880'; - $fallbackText = 'fallbackText563106922'; - $argumentText = 'argumentText-39826065'; - $threadReply = false; - $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; - $expectedResponse = new Message(); - $expectedResponse->setName($name2); - $expectedResponse->setText($text); - $expectedResponse->setFormattedText($formattedText); - $expectedResponse->setFallbackText($fallbackText); - $expectedResponse->setArgumentText($argumentText); - $expectedResponse->setThreadReply($threadReply); - $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new GetMessageRequest()) - ->setName($formattedName); - $response = $gapicClient->getMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new GetMessageRequest()) - ->setName($formattedName); - try { - $gapicClient->getMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name2); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $eventType = 'eventType984376767'; - $expectedResponse = new SpaceEvent(); - $expectedResponse->setName($name2); - $expectedResponse->setEventType($eventType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceEventName('[SPACE]', '[SPACE_EVENT]'); - $request = (new GetSpaceEventRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpaceEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetSpaceEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceEventName('[SPACE]', '[SPACE_EVENT]'); - $request = (new GetSpaceEventRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpaceEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceReadStateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new SpaceReadState(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceReadStateName('[USER]', '[SPACE]'); - $request = (new GetSpaceReadStateRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpaceReadState($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetSpaceReadState', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceReadStateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceReadStateName('[USER]', '[SPACE]'); - $request = (new GetSpaceReadStateRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpaceReadState($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getThreadReadStateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new ThreadReadState(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); - $request = (new GetThreadReadStateRequest()) - ->setName($formattedName); - $response = $gapicClient->getThreadReadState($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/GetThreadReadState', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getThreadReadStateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->threadReadStateName('[USER]', '[SPACE]', '[THREAD]'); - $request = (new GetThreadReadStateRequest()) - ->setName($formattedName); - try { - $gapicClient->getThreadReadState($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMembershipsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $membershipsElement = new Membership(); - $memberships = [ - $membershipsElement, - ]; - $expectedResponse = new ListMembershipsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMemberships($memberships); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMembershipsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMemberships($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMemberships()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListMemberships', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMembershipsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMembershipsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMemberships($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $messagesElement = new Message(); - $messages = [ - $messagesElement, - ]; - $expectedResponse = new ListMessagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMessages($messages); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMessages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMessages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListMessages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $request = (new ListMessagesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMessages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReactionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $reactionsElement = new Reaction(); - $reactions = [ - $reactionsElement, - ]; - $expectedResponse = new ListReactionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReactions($reactions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new ListReactionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReactions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReactions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListReactions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReactionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->messageName('[SPACE]', '[MESSAGE]'); - $request = (new ListReactionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReactions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpaceEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $spaceEventsElement = new SpaceEvent(); - $spaceEvents = [ - $spaceEventsElement, - ]; - $expectedResponse = new ListSpaceEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSpaceEvents($spaceEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filter = 'filter-1274492040'; - $request = (new ListSpaceEventsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - $response = $gapicClient->listSpaceEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpaceEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListSpaceEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpaceEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filter = 'filter-1274492040'; - $request = (new ListSpaceEventsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - try { - $gapicClient->listSpaceEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpacesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $spacesElement = new Space(); - $spaces = [ - $spacesElement, - ]; - $expectedResponse = new ListSpacesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSpaces($spaces); - $transport->addResponse($expectedResponse); - $request = new ListSpacesRequest(); - $response = $gapicClient->listSpaces($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/ListSpaces', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSpacesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListSpacesRequest(); - try { - $gapicClient->listSpaces($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchSpacesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $spacesElement = new Space(); - $spaces = [ - $spacesElement, - ]; - $expectedResponse = new SearchSpacesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setSpaces($spaces); - $transport->addResponse($expectedResponse); - // Mock request - $query = 'query107944136'; - $request = (new SearchSpacesRequest()) - ->setQuery($query); - $response = $gapicClient->searchSpaces($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSpaces()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/SearchSpaces', $actualFuncCall); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchSpacesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $query = 'query107944136'; - $request = (new SearchSpacesRequest()) - ->setQuery($query); - try { - $gapicClient->searchSpaces($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setUpSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $request = (new SetUpSpaceRequest()) - ->setSpace($space); - $response = $gapicClient->setUpSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/SetUpSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setUpSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $request = (new SetUpSpaceRequest()) - ->setSpace($space); - try { - $gapicClient->setUpSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMembershipTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Membership(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $membership = new Membership(); - $updateMask = new FieldMask(); - $request = (new UpdateMembershipRequest()) - ->setMembership($membership) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateMembership($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateMembership', $actualFuncCall); - $actualValue = $actualRequestObject->getMembership(); - $this->assertProtobufEquals($membership, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMembershipExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $membership = new Membership(); - $updateMask = new FieldMask(); - $request = (new UpdateMembershipRequest()) - ->setMembership($membership) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateMembership($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $text = 'text3556653'; - $formattedText = 'formattedText-1686936880'; - $fallbackText = 'fallbackText563106922'; - $argumentText = 'argumentText-39826065'; - $threadReply = false; - $clientAssignedMessageId = 'clientAssignedMessageId-1116632848'; - $expectedResponse = new Message(); - $expectedResponse->setName($name); - $expectedResponse->setText($text); - $expectedResponse->setFormattedText($formattedText); - $expectedResponse->setFallbackText($fallbackText); - $expectedResponse->setArgumentText($argumentText); - $expectedResponse->setThreadReply($threadReply); - $expectedResponse->setClientAssignedMessageId($clientAssignedMessageId); - $transport->addResponse($expectedResponse); - // Mock request - $message = new Message(); - $request = (new UpdateMessageRequest()) - ->setMessage($message); - $response = $gapicClient->updateMessage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getMessage(); - $this->assertProtobufEquals($message, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $message = new Message(); - $request = (new UpdateMessageRequest()) - ->setMessage($message); - try { - $gapicClient->updateMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $singleUserBotDm = true; - $threaded = false; - $displayName = 'displayName1615086568'; - $externalUserAllowed = true; - $importMode = false; - $adminInstalled = true; - $spaceUri = 'spaceUri-953552205'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setSingleUserBotDm($singleUserBotDm); - $expectedResponse->setThreaded($threaded); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExternalUserAllowed($externalUserAllowed); - $expectedResponse->setImportMode($importMode); - $expectedResponse->setAdminInstalled($adminInstalled); - $expectedResponse->setSpaceUri($spaceUri); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space); - $response = $gapicClient->updateSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space); - try { - $gapicClient->updateSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceReadStateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new SpaceReadState(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $spaceReadState = new SpaceReadState(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceReadStateRequest()) - ->setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSpaceReadState($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UpdateSpaceReadState', $actualFuncCall); - $actualValue = $actualRequestObject->getSpaceReadState(); - $this->assertProtobufEquals($spaceReadState, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceReadStateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $spaceReadState = new SpaceReadState(); - $updateMask = new FieldMask(); - $request = (new UpdateSpaceReadStateRequest()) - ->setSpaceReadState($spaceReadState) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSpaceReadState($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function uploadAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new UploadAttachmentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filename = 'filename-734768633'; - $request = (new UploadAttachmentRequest()) - ->setParent($formattedParent) - ->setFilename($filename); - $response = $gapicClient->uploadAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/UploadAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFilename(); - $this->assertProtobufEquals($filename, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function uploadAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->spaceName('[SPACE]'); - $filename = 'filename-734768633'; - $request = (new UploadAttachmentRequest()) - ->setParent($formattedParent) - ->setFilename($filename); - try { - $gapicClient->uploadAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeImportSpaceAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CompleteImportSpaceResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new CompleteImportSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->completeImportSpaceAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.chat.v1.ChatService/CompleteImportSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/GPBMetadata/Google/Apps/Events/Subscriptions/V1/SubscriptionResource.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/GPBMetadata/Google/Apps/Events/Subscriptions/V1/SubscriptionResource.php deleted file mode 100644 index c33126ca5455..000000000000 Binary files a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/GPBMetadata/Google/Apps/Events/Subscriptions/V1/SubscriptionResource.php and /dev/null differ diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/GPBMetadata/Google/Apps/Events/Subscriptions/V1/SubscriptionsService.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/GPBMetadata/Google/Apps/Events/Subscriptions/V1/SubscriptionsService.php deleted file mode 100644 index 0c62e7126f27..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/GPBMetadata/Google/Apps/Events/Subscriptions/V1/SubscriptionsService.php +++ /dev/null @@ -1,77 +0,0 @@ -internalAddGeneratedFile( - ' - -?google/apps/events/subscriptions/v1/subscriptions_service.proto#google.apps.events.subscriptions.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto?google/apps/events/subscriptions/v1/subscription_resource.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto" -CreateSubscriptionRequestL - subscription ( 21.google.apps.events.subscriptions.v1.SubscriptionBA - validate_only (BA" -DeleteSubscriptionRequestA -name ( B3AA- -+workspaceevents.googleapis.com/Subscription - validate_only (BA - allow_missing (BA -etag ( BA"[ -GetSubscriptionRequestA -name ( B3AA- -+workspaceevents.googleapis.com/Subscription" -UpdateSubscriptionRequestL - subscription ( 21.google.apps.events.subscriptions.v1.SubscriptionBA4 - update_mask ( 2.google.protobuf.FieldMaskBA - validate_only (BA"b -ReactivateSubscriptionRequestA -name ( B3AA- -+workspaceevents.googleapis.com/Subscription"` -ListSubscriptionsRequest - page_size (BA - -page_token ( BA -filter ( BA"~ -ListSubscriptionsResponseH - subscriptions ( 21.google.apps.events.subscriptions.v1.Subscription -next_page_token ( " -UpdateSubscriptionMetadata" -CreateSubscriptionMetadata" -DeleteSubscriptionMetadata" -ReactivateSubscriptionMetadata2 -SubscriptionsService -CreateSubscription>.google.apps.events.subscriptions.v1.CreateSubscriptionRequest.google.longrunning.Operation"cA* - SubscriptionCreateSubscriptionMetadataA subscription!"/v1/subscriptions: subscription -DeleteSubscription>.google.apps.events.subscriptions.v1.DeleteSubscriptionRequest.google.longrunning.Operation"_A3 -google.protobuf.EmptyDeleteSubscriptionMetadataAname*/v1/{name=subscriptions/*} -GetSubscription;.google.apps.events.subscriptions.v1.GetSubscriptionRequest1.google.apps.events.subscriptions.v1.Subscription")Aname/v1/{name=subscriptions/*} -ListSubscriptions=.google.apps.events.subscriptions.v1.ListSubscriptionsRequest>.google.apps.events.subscriptions.v1.ListSubscriptionsResponse""Afilter/v1/subscriptions -UpdateSubscription>.google.apps.events.subscriptions.v1.UpdateSubscriptionRequest.google.longrunning.Operation"A* - SubscriptionUpdateSubscriptionMetadataAsubscription,update_mask72\'/v1/{subscription.name=subscriptions/*}: subscription -ReactivateSubscriptionB.google.apps.events.subscriptions.v1.ReactivateSubscriptionRequest.google.longrunning.Operation"hA. - SubscriptionReactivateSubscriptionMetadataAname*"%/v1/{name=subscriptions/*}:reactivate:*Aworkspaceevents.googleapis.comAhttps://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/meetings.space.created,https://www.googleapis.com/auth/meetings.space.readonlyB -\'com.google.apps.events.subscriptions.v1BSubscriptionsServiceProtoPZScloud.google.com/go/apps/events/subscriptions/apiv1/subscriptionspb;subscriptionspb#Google.Apps.Events.Subscriptions.V1#Google\\Apps\\Events\\Subscriptions\\V1\'Google::Apps::Events::Subscriptions::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/CreateSubscriptionMetadata.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/CreateSubscriptionMetadata.php deleted file mode 100644 index 960d4cba6fad..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/CreateSubscriptionMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.apps.events.subscriptions.v1.CreateSubscriptionMetadata - */ -class CreateSubscriptionMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/CreateSubscriptionRequest.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/CreateSubscriptionRequest.php deleted file mode 100644 index 80878ed4a32e..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/CreateSubscriptionRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.apps.events.subscriptions.v1.CreateSubscriptionRequest - */ -class CreateSubscriptionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The subscription resource to create. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subscription = null; - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * create the subscription. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Apps\Events\Subscriptions\V1\Subscription $subscription Required. The subscription resource to create. - * - * @return \Google\Apps\Events\Subscriptions\V1\CreateSubscriptionRequest - * - * @experimental - */ - public static function build(\Google\Apps\Events\Subscriptions\V1\Subscription $subscription): self - { - return (new self()) - ->setSubscription($subscription); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Events\Subscriptions\V1\Subscription $subscription - * Required. The subscription resource to create. - * @type bool $validate_only - * Optional. If set to `true`, validates and previews the request, but doesn't - * create the subscription. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The subscription resource to create. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Events\Subscriptions\V1\Subscription|null - */ - public function getSubscription() - { - return $this->subscription; - } - - public function hasSubscription() - { - return isset($this->subscription); - } - - public function clearSubscription() - { - unset($this->subscription); - } - - /** - * Required. The subscription resource to create. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Events\Subscriptions\V1\Subscription $var - * @return $this - */ - public function setSubscription($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Events\Subscriptions\V1\Subscription::class); - $this->subscription = $var; - - return $this; - } - - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * create the subscription. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * create the subscription. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/DeleteSubscriptionMetadata.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/DeleteSubscriptionMetadata.php deleted file mode 100644 index b27ec001d521..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/DeleteSubscriptionMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.apps.events.subscriptions.v1.DeleteSubscriptionMetadata - */ -class DeleteSubscriptionMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/DeleteSubscriptionRequest.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/DeleteSubscriptionRequest.php deleted file mode 100644 index c8b623b86491..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/DeleteSubscriptionRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.apps.events.subscriptions.v1.DeleteSubscriptionRequest - */ -class DeleteSubscriptionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the subscription to delete. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * delete the subscription. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. If set to `true` and the subscription isn't found, the request - * succeeds but doesn't delete the subscription. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. Etag of the subscription. - * If present, it must match with the server's etag. Otherwise, request - * fails with the status `ABORTED`. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. Resource name of the subscription to delete. - * - * Format: `subscriptions/{subscription}` - * Please see {@see SubscriptionsServiceClient::subscriptionName()} for help formatting this field. - * - * @return \Google\Apps\Events\Subscriptions\V1\DeleteSubscriptionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the subscription to delete. - * Format: `subscriptions/{subscription}` - * @type bool $validate_only - * Optional. If set to `true`, validates and previews the request, but doesn't - * delete the subscription. - * @type bool $allow_missing - * Optional. If set to `true` and the subscription isn't found, the request - * succeeds but doesn't delete the subscription. - * @type string $etag - * Optional. Etag of the subscription. - * If present, it must match with the server's etag. Otherwise, request - * fails with the status `ABORTED`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the subscription to delete. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the subscription to delete. - * Format: `subscriptions/{subscription}` - * - * 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; - } - - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * delete the subscription. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * delete the subscription. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. If set to `true` and the subscription isn't found, the request - * succeeds but doesn't delete the subscription. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to `true` and the subscription isn't found, the request - * succeeds but doesn't delete the subscription. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. Etag of the subscription. - * If present, it must match with the server's etag. Otherwise, request - * fails with the status `ABORTED`. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. Etag of the subscription. - * If present, it must match with the server's etag. Otherwise, request - * fails with the status `ABORTED`. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/GetSubscriptionRequest.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/GetSubscriptionRequest.php deleted file mode 100644 index d83540dbf787..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/GetSubscriptionRequest.php +++ /dev/null @@ -1,88 +0,0 @@ -google.apps.events.subscriptions.v1.GetSubscriptionRequest - */ -class GetSubscriptionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the subscription. - * - * Format: `subscriptions/{subscription}` - * Please see {@see SubscriptionsServiceClient::subscriptionName()} for help formatting this field. - * - * @return \Google\Apps\Events\Subscriptions\V1\GetSubscriptionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * 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/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ListSubscriptionsRequest.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ListSubscriptionsRequest.php deleted file mode 100644 index f7fd25838a0d..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ListSubscriptionsRequest.php +++ /dev/null @@ -1,280 +0,0 @@ -google.apps.events.subscriptions.v1.ListSubscriptionsRequest - */ -class ListSubscriptionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The maximum number of subscriptions to return. The service might - * return fewer than this value. - * If unspecified or set to `0`, up to 50 subscriptions are returned. - * The maximum value is 100. If you specify a value more than 100, the system - * only returns 100 subscriptions. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous list subscriptions call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Required. A query filter. - * You can filter subscriptions by event type (`event_types`) - * and target resource (`target_resource`). - * You must specify at least one event type in your query. To filter for - * multiple event types, use the `OR` operator. - * To filter by both event type and target resource, use the `AND` operator - * and specify the full resource name, such as - * `//chat.googleapis.com/spaces/{space}`. - * For example, the following queries are valid: - * ``` - * event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" - * event_types:"google.workspace.chat.message.v1.created" AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ( event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" ) AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ``` - * The server rejects invalid queries with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - - /** - * @param string $filter Required. A query filter. - * - * You can filter subscriptions by event type (`event_types`) - * and target resource (`target_resource`). - * - * You must specify at least one event type in your query. To filter for - * multiple event types, use the `OR` operator. - * - * To filter by both event type and target resource, use the `AND` operator - * and specify the full resource name, such as - * `//chat.googleapis.com/spaces/{space}`. - * - * For example, the following queries are valid: - * - * ``` - * event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" - * - * event_types:"google.workspace.chat.message.v1.created" AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * - * ( event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" ) AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ``` - * - * The server rejects invalid queries with an `INVALID_ARGUMENT` - * error. - * - * @return \Google\Apps\Events\Subscriptions\V1\ListSubscriptionsRequest - * - * @experimental - */ - public static function build(string $filter): self - { - return (new self()) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * Optional. The maximum number of subscriptions to return. The service might - * return fewer than this value. - * If unspecified or set to `0`, up to 50 subscriptions are returned. - * The maximum value is 100. If you specify a value more than 100, the system - * only returns 100 subscriptions. - * @type string $page_token - * Optional. A page token, received from a previous list subscriptions call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * @type string $filter - * Required. A query filter. - * You can filter subscriptions by event type (`event_types`) - * and target resource (`target_resource`). - * You must specify at least one event type in your query. To filter for - * multiple event types, use the `OR` operator. - * To filter by both event type and target resource, use the `AND` operator - * and specify the full resource name, such as - * `//chat.googleapis.com/spaces/{space}`. - * For example, the following queries are valid: - * ``` - * event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" - * event_types:"google.workspace.chat.message.v1.created" AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ( event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" ) AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ``` - * The server rejects invalid queries with an `INVALID_ARGUMENT` - * error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The maximum number of subscriptions to return. The service might - * return fewer than this value. - * If unspecified or set to `0`, up to 50 subscriptions are returned. - * The maximum value is 100. If you specify a value more than 100, the system - * only returns 100 subscriptions. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of subscriptions to return. The service might - * return fewer than this value. - * If unspecified or set to `0`, up to 50 subscriptions are returned. - * The maximum value is 100. If you specify a value more than 100, the system - * only returns 100 subscriptions. - * - * Generated from protobuf field int32 page_size = 1 [(.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 list subscriptions call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous list subscriptions call. - * Provide this parameter to retrieve the subsequent page. - * When paginating, the filter value should match the call that provided the - * page token. Passing a different value might lead to unexpected results. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Required. A query filter. - * You can filter subscriptions by event type (`event_types`) - * and target resource (`target_resource`). - * You must specify at least one event type in your query. To filter for - * multiple event types, use the `OR` operator. - * To filter by both event type and target resource, use the `AND` operator - * and specify the full resource name, such as - * `//chat.googleapis.com/spaces/{space}`. - * For example, the following queries are valid: - * ``` - * event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" - * event_types:"google.workspace.chat.message.v1.created" AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ( event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" ) AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ``` - * The server rejects invalid queries with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. A query filter. - * You can filter subscriptions by event type (`event_types`) - * and target resource (`target_resource`). - * You must specify at least one event type in your query. To filter for - * multiple event types, use the `OR` operator. - * To filter by both event type and target resource, use the `AND` operator - * and specify the full resource name, such as - * `//chat.googleapis.com/spaces/{space}`. - * For example, the following queries are valid: - * ``` - * event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" - * event_types:"google.workspace.chat.message.v1.created" AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ( event_types:"google.workspace.chat.membership.v1.updated" OR - * event_types:"google.workspace.chat.message.v1.created" ) AND - * target_resource="//chat.googleapis.com/spaces/{space}" - * ``` - * The server rejects invalid queries with an `INVALID_ARGUMENT` - * error. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ListSubscriptionsResponse.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ListSubscriptionsResponse.php deleted file mode 100644 index c90da100d04e..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ListSubscriptionsResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.apps.events.subscriptions.v1.ListSubscriptionsResponse - */ -class ListSubscriptionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of subscriptions. - * - * Generated from protobuf field repeated .google.apps.events.subscriptions.v1.Subscription subscriptions = 1; - */ - private $subscriptions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Events\Subscriptions\V1\Subscription>|\Google\Protobuf\Internal\RepeatedField $subscriptions - * List of subscriptions. - * @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\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - - /** - * List of subscriptions. - * - * Generated from protobuf field repeated .google.apps.events.subscriptions.v1.Subscription subscriptions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubscriptions() - { - return $this->subscriptions; - } - - /** - * List of subscriptions. - * - * Generated from protobuf field repeated .google.apps.events.subscriptions.v1.Subscription subscriptions = 1; - * @param array<\Google\Apps\Events\Subscriptions\V1\Subscription>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubscriptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Events\Subscriptions\V1\Subscription::class); - $this->subscriptions = $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/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/NotificationEndpoint.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/NotificationEndpoint.php deleted file mode 100644 index 933d59ee089b..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/NotificationEndpoint.php +++ /dev/null @@ -1,96 +0,0 @@ -google.apps.events.subscriptions.v1.NotificationEndpoint - */ -class NotificationEndpoint extends \Google\Protobuf\Internal\Message -{ - protected $endpoint; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $pubsub_topic - * Immutable. The Cloud Pub/Sub topic that receives events for the - * subscription. - * Format: `projects/{project}/topics/{topic}` - * You must create the topic in the same Google Cloud project where - * you create this subscription. - * When the topic receives events, the events are encoded as Cloud Pub/Sub - * messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for - * CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionResource::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The Cloud Pub/Sub topic that receives events for the - * subscription. - * Format: `projects/{project}/topics/{topic}` - * You must create the topic in the same Google Cloud project where - * you create this subscription. - * When the topic receives events, the events are encoded as Cloud Pub/Sub - * messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for - * CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md). - * - * Generated from protobuf field string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getPubsubTopic() - { - return $this->readOneof(1); - } - - public function hasPubsubTopic() - { - return $this->hasOneof(1); - } - - /** - * Immutable. The Cloud Pub/Sub topic that receives events for the - * subscription. - * Format: `projects/{project}/topics/{topic}` - * You must create the topic in the same Google Cloud project where - * you create this subscription. - * When the topic receives events, the events are encoded as Cloud Pub/Sub - * messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for - * CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md). - * - * Generated from protobuf field string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setPubsubTopic($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getEndpoint() - { - return $this->whichOneof("endpoint"); - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/PayloadOptions.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/PayloadOptions.php deleted file mode 100644 index 081972c4159c..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/PayloadOptions.php +++ /dev/null @@ -1,156 +0,0 @@ -google.apps.events.subscriptions.v1.PayloadOptions - */ -class PayloadOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether the event payload includes data about the resource that - * changed. For example, for an event where a Google Chat message was created, - * whether the payload contains data about the - * [`Message`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages) - * resource. If false, the event payload only includes the name of the changed - * resource. - * - * Generated from protobuf field bool include_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $include_resource = false; - /** - * Optional. If `include_resource` is set to `true`, the list of fields to - * include in the event payload. Separate fields with a comma. For example, to - * include a Google Chat message's sender and create time, enter - * `message.sender,message.createTime`. If omitted, the payload includes all - * fields for the resource. - * If you specify a field that doesn't exist for the resource, the system - * ignores the field. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $field_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $include_resource - * Optional. Whether the event payload includes data about the resource that - * changed. For example, for an event where a Google Chat message was created, - * whether the payload contains data about the - * [`Message`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages) - * resource. If false, the event payload only includes the name of the changed - * resource. - * @type \Google\Protobuf\FieldMask $field_mask - * Optional. If `include_resource` is set to `true`, the list of fields to - * include in the event payload. Separate fields with a comma. For example, to - * include a Google Chat message's sender and create time, enter - * `message.sender,message.createTime`. If omitted, the payload includes all - * fields for the resource. - * If you specify a field that doesn't exist for the resource, the system - * ignores the field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionResource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether the event payload includes data about the resource that - * changed. For example, for an event where a Google Chat message was created, - * whether the payload contains data about the - * [`Message`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages) - * resource. If false, the event payload only includes the name of the changed - * resource. - * - * Generated from protobuf field bool include_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIncludeResource() - { - return $this->include_resource; - } - - /** - * Optional. Whether the event payload includes data about the resource that - * changed. For example, for an event where a Google Chat message was created, - * whether the payload contains data about the - * [`Message`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages) - * resource. If false, the event payload only includes the name of the changed - * resource. - * - * Generated from protobuf field bool include_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIncludeResource($var) - { - GPBUtil::checkBool($var); - $this->include_resource = $var; - - return $this; - } - - /** - * Optional. If `include_resource` is set to `true`, the list of fields to - * include in the event payload. Separate fields with a comma. For example, to - * include a Google Chat message's sender and create time, enter - * `message.sender,message.createTime`. If omitted, the payload includes all - * fields for the resource. - * If you specify a field that doesn't exist for the resource, the system - * ignores the field. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getFieldMask() - { - return $this->field_mask; - } - - public function hasFieldMask() - { - return isset($this->field_mask); - } - - public function clearFieldMask() - { - unset($this->field_mask); - } - - /** - * Optional. If `include_resource` is set to `true`, the list of fields to - * include in the event payload. Separate fields with a comma. For example, to - * include a Google Chat message's sender and create time, enter - * `message.sender,message.createTime`. If omitted, the payload includes all - * fields for the resource. - * If you specify a field that doesn't exist for the resource, the system - * ignores the field. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setFieldMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->field_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ReactivateSubscriptionMetadata.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ReactivateSubscriptionMetadata.php deleted file mode 100644 index 7e42c89b7475..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ReactivateSubscriptionMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.apps.events.subscriptions.v1.ReactivateSubscriptionMetadata - */ -class ReactivateSubscriptionMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ReactivateSubscriptionRequest.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ReactivateSubscriptionRequest.php deleted file mode 100644 index b4cd32be6af2..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/ReactivateSubscriptionRequest.php +++ /dev/null @@ -1,88 +0,0 @@ -google.apps.events.subscriptions.v1.ReactivateSubscriptionRequest - */ -class ReactivateSubscriptionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the subscription. - * - * Format: `subscriptions/{subscription}` - * Please see {@see SubscriptionsServiceClient::subscriptionName()} for help formatting this field. - * - * @return \Google\Apps\Events\Subscriptions\V1\ReactivateSubscriptionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * 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/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription.php deleted file mode 100644 index 348f5b03ccb7..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription.php +++ /dev/null @@ -1,734 +0,0 @@ -google.apps.events.subscriptions.v1.Subscription - */ -class Subscription extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Immutable. Identifier. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Output only. System-assigned unique identifier for the subscription. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Required. Immutable. The Google Workspace resource that's monitored for - * events, formatted as the [full resource - * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources and the events that they support, see [Supported Google - * Workspace - * events](https://developers.google.com/workspace/events#supported-events). - * A user can only authorize your app to create one subscription for a given - * target resource. If your app tries to create another subscription with the - * same user credentials, the request returns an `ALREADY_EXISTS` error. - * - * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $target_resource = ''; - /** - * Required. Immutable. Unordered list. Input for creating a subscription. - * Otherwise, output only. One or more types of events to receive about the - * target resource. Formatted according to the CloudEvents specification. - * The supported event types depend on the target resource of your - * subscription. For details, see [Supported Google Workspace - * events](https://developers.google.com/workspace/events/guides#supported-events). - * By default, you also receive events about the [lifecycle of your - * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). - * You don't need to specify lifecycle events for this field. - * If you specify an event type that doesn't exist for the target resource, - * the request returns an HTTP `400 Bad Request` status code. - * - * Generated from protobuf field repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE]; - */ - private $event_types; - /** - * Optional. Options about what data to include in the event payload. Only - * supported for Google Chat events. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $payload_options = null; - /** - * Required. Immutable. The endpoint where the subscription delivers events, - * such as a Pub/Sub topic. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $notification_endpoint = null; - /** - * Output only. The state of the subscription. Determines whether the - * subscription can receive events and deliver them to the notification - * endpoint. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The error that suspended the subscription. - * To reactivate the subscription, resolve the error and call the - * [`ReactivateSubscription`][google.apps.events.subscriptions.v1.SubscriptionsService.ReactivateSubscription] - * method. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $suspension_reason = 0; - /** - * Output only. The user who authorized the creation of the - * subscription. - * Format: `users/{user}` - * For Google Workspace users, the `{user}` value is the - * [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids) - * field from the Directory API. - * - * Generated from protobuf field string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $authority = ''; - /** - * Output only. The time when the subscription is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last time that the subscription is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. If `true`, the subscription is in the process of being - * updated. - * - * Generated from protobuf field bool reconciling = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and might be sent on update requests to ensure the client has - * an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - protected $expiration; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $expire_time - * Non-empty default. The timestamp in UTC when the subscription expires. - * Always displayed on output, regardless of what was used on input. - * @type \Google\Protobuf\Duration $ttl - * Input only. The time-to-live (TTL) or duration for the subscription. If - * unspecified or set to `0`, uses the maximum possible duration. - * @type string $name - * Optional. Immutable. Identifier. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * @type string $uid - * Output only. System-assigned unique identifier for the subscription. - * @type string $target_resource - * Required. Immutable. The Google Workspace resource that's monitored for - * events, formatted as the [full resource - * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources and the events that they support, see [Supported Google - * Workspace - * events](https://developers.google.com/workspace/events#supported-events). - * A user can only authorize your app to create one subscription for a given - * target resource. If your app tries to create another subscription with the - * same user credentials, the request returns an `ALREADY_EXISTS` error. - * @type array|\Google\Protobuf\Internal\RepeatedField $event_types - * Required. Immutable. Unordered list. Input for creating a subscription. - * Otherwise, output only. One or more types of events to receive about the - * target resource. Formatted according to the CloudEvents specification. - * The supported event types depend on the target resource of your - * subscription. For details, see [Supported Google Workspace - * events](https://developers.google.com/workspace/events/guides#supported-events). - * By default, you also receive events about the [lifecycle of your - * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). - * You don't need to specify lifecycle events for this field. - * If you specify an event type that doesn't exist for the target resource, - * the request returns an HTTP `400 Bad Request` status code. - * @type \Google\Apps\Events\Subscriptions\V1\PayloadOptions $payload_options - * Optional. Options about what data to include in the event payload. Only - * supported for Google Chat events. - * @type \Google\Apps\Events\Subscriptions\V1\NotificationEndpoint $notification_endpoint - * Required. Immutable. The endpoint where the subscription delivers events, - * such as a Pub/Sub topic. - * @type int $state - * Output only. The state of the subscription. Determines whether the - * subscription can receive events and deliver them to the notification - * endpoint. - * @type int $suspension_reason - * Output only. The error that suspended the subscription. - * To reactivate the subscription, resolve the error and call the - * [`ReactivateSubscription`][google.apps.events.subscriptions.v1.SubscriptionsService.ReactivateSubscription] - * method. - * @type string $authority - * Output only. The user who authorized the creation of the - * subscription. - * Format: `users/{user}` - * For Google Workspace users, the `{user}` value is the - * [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids) - * field from the Directory API. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the subscription is created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last time that the subscription is updated. - * @type bool $reconciling - * Output only. If `true`, the subscription is in the process of being - * updated. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and might be sent on update requests to ensure the client has - * an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionResource::initOnce(); - parent::__construct($data); - } - - /** - * Non-empty default. The timestamp in UTC when the subscription expires. - * Always displayed on output, regardless of what was used on input. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->readOneof(13); - } - - public function hasExpireTime() - { - return $this->hasOneof(13); - } - - /** - * Non-empty default. The timestamp in UTC when the subscription expires. - * Always displayed on output, regardless of what was used on input. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Input only. The time-to-live (TTL) or duration for the subscription. If - * unspecified or set to `0`, uses the maximum possible duration. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Duration|null - */ - public function getTtl() - { - return $this->readOneof(14); - } - - public function hasTtl() - { - return $this->hasOneof(14); - } - - /** - * Input only. The time-to-live (TTL) or duration for the subscription. If - * unspecified or set to `0`, uses the maximum possible duration. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtl($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Optional. Immutable. Identifier. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Immutable. Identifier. Resource name of the subscription. - * Format: `subscriptions/{subscription}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System-assigned unique identifier for the subscription. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System-assigned unique identifier for the subscription. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Required. Immutable. The Google Workspace resource that's monitored for - * events, formatted as the [full resource - * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources and the events that they support, see [Supported Google - * Workspace - * events](https://developers.google.com/workspace/events#supported-events). - * A user can only authorize your app to create one subscription for a given - * target resource. If your app tries to create another subscription with the - * same user credentials, the request returns an `ALREADY_EXISTS` error. - * - * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getTargetResource() - { - return $this->target_resource; - } - - /** - * Required. Immutable. The Google Workspace resource that's monitored for - * events, formatted as the [full resource - * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources and the events that they support, see [Supported Google - * Workspace - * events](https://developers.google.com/workspace/events#supported-events). - * A user can only authorize your app to create one subscription for a given - * target resource. If your app tries to create another subscription with the - * same user credentials, the request returns an `ALREADY_EXISTS` error. - * - * Generated from protobuf field string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->target_resource = $var; - - return $this; - } - - /** - * Required. Immutable. Unordered list. Input for creating a subscription. - * Otherwise, output only. One or more types of events to receive about the - * target resource. Formatted according to the CloudEvents specification. - * The supported event types depend on the target resource of your - * subscription. For details, see [Supported Google Workspace - * events](https://developers.google.com/workspace/events/guides#supported-events). - * By default, you also receive events about the [lifecycle of your - * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). - * You don't need to specify lifecycle events for this field. - * If you specify an event type that doesn't exist for the target resource, - * the request returns an HTTP `400 Bad Request` status code. - * - * Generated from protobuf field repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventTypes() - { - return $this->event_types; - } - - /** - * Required. Immutable. Unordered list. Input for creating a subscription. - * Otherwise, output only. One or more types of events to receive about the - * target resource. Formatted according to the CloudEvents specification. - * The supported event types depend on the target resource of your - * subscription. For details, see [Supported Google Workspace - * events](https://developers.google.com/workspace/events/guides#supported-events). - * By default, you also receive events about the [lifecycle of your - * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). - * You don't need to specify lifecycle events for this field. - * If you specify an event type that doesn't exist for the target resource, - * the request returns an HTTP `400 Bad Request` status code. - * - * Generated from protobuf field repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = IMMUTABLE]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->event_types = $arr; - - return $this; - } - - /** - * Optional. Options about what data to include in the event payload. Only - * supported for Google Chat events. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Apps\Events\Subscriptions\V1\PayloadOptions|null - */ - public function getPayloadOptions() - { - return $this->payload_options; - } - - public function hasPayloadOptions() - { - return isset($this->payload_options); - } - - public function clearPayloadOptions() - { - unset($this->payload_options); - } - - /** - * Optional. Options about what data to include in the event payload. Only - * supported for Google Chat events. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Apps\Events\Subscriptions\V1\PayloadOptions $var - * @return $this - */ - public function setPayloadOptions($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Events\Subscriptions\V1\PayloadOptions::class); - $this->payload_options = $var; - - return $this; - } - - /** - * Required. Immutable. The endpoint where the subscription delivers events, - * such as a Pub/Sub topic. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Apps\Events\Subscriptions\V1\NotificationEndpoint|null - */ - public function getNotificationEndpoint() - { - return $this->notification_endpoint; - } - - public function hasNotificationEndpoint() - { - return isset($this->notification_endpoint); - } - - public function clearNotificationEndpoint() - { - unset($this->notification_endpoint); - } - - /** - * Required. Immutable. The endpoint where the subscription delivers events, - * such as a Pub/Sub topic. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Apps\Events\Subscriptions\V1\NotificationEndpoint $var - * @return $this - */ - public function setNotificationEndpoint($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Events\Subscriptions\V1\NotificationEndpoint::class); - $this->notification_endpoint = $var; - - return $this; - } - - /** - * Output only. The state of the subscription. Determines whether the - * subscription can receive events and deliver them to the notification - * endpoint. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of the subscription. Determines whether the - * subscription can receive events and deliver them to the notification - * endpoint. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Events\Subscriptions\V1\Subscription\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The error that suspended the subscription. - * To reactivate the subscription, resolve the error and call the - * [`ReactivateSubscription`][google.apps.events.subscriptions.v1.SubscriptionsService.ReactivateSubscription] - * method. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSuspensionReason() - { - return $this->suspension_reason; - } - - /** - * Output only. The error that suspended the subscription. - * To reactivate the subscription, resolve the error and call the - * [`ReactivateSubscription`][google.apps.events.subscriptions.v1.SubscriptionsService.ReactivateSubscription] - * method. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSuspensionReason($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Events\Subscriptions\V1\Subscription\ErrorType::class); - $this->suspension_reason = $var; - - return $this; - } - - /** - * Output only. The user who authorized the creation of the - * subscription. - * Format: `users/{user}` - * For Google Workspace users, the `{user}` value is the - * [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids) - * field from the Directory API. - * - * Generated from protobuf field string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthority() - { - return $this->authority; - } - - /** - * Output only. The user who authorized the creation of the - * subscription. - * Format: `users/{user}` - * For Google Workspace users, the `{user}` value is the - * [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids) - * field from the Directory API. - * - * Generated from protobuf field string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthority($var) - { - GPBUtil::checkString($var, True); - $this->authority = $var; - - return $this; - } - - /** - * Output only. The time when the subscription is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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. The time when the subscription is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.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. The last time that the subscription is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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. The last time that the subscription is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.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. If `true`, the subscription is in the process of being - * updated. - * - * Generated from protobuf field bool reconciling = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. If `true`, the subscription is in the process of being - * updated. - * - * Generated from protobuf field bool reconciling = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and might be sent on update requests to ensure the client has - * an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and might be sent on update requests to ensure the client has - * an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * @return string - */ - public function getExpiration() - { - return $this->whichOneof("expiration"); - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription/ErrorType.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription/ErrorType.php deleted file mode 100644 index 4c23548e2039..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription/ErrorType.php +++ /dev/null @@ -1,107 +0,0 @@ -google.apps.events.subscriptions.v1.Subscription.ErrorType - */ -class ErrorType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ERROR_TYPE_UNSPECIFIED = 0; - */ - const ERROR_TYPE_UNSPECIFIED = 0; - /** - * The authorizing user has revoked the grant of one or more OAuth scopes. - * To learn more about authorization for Google Workspace, see [Configure - * the OAuth consent - * screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes). - * - * Generated from protobuf enum USER_SCOPE_REVOKED = 1; - */ - const USER_SCOPE_REVOKED = 1; - /** - * The target resource for the subscription no longer exists. - * - * Generated from protobuf enum RESOURCE_DELETED = 2; - */ - const RESOURCE_DELETED = 2; - /** - * The user that authorized the creation of the subscription no longer has - * access to the subscription's target resource. - * - * Generated from protobuf enum USER_AUTHORIZATION_FAILURE = 3; - */ - const USER_AUTHORIZATION_FAILURE = 3; - /** - * The Google Workspace application doesn't have access to deliver - * events to your subscription's notification endpoint. - * - * Generated from protobuf enum ENDPOINT_PERMISSION_DENIED = 4; - */ - const ENDPOINT_PERMISSION_DENIED = 4; - /** - * The subscription's notification endpoint doesn't exist, or the endpoint - * can't be found in the Google Cloud project where you created the - * subscription. - * - * Generated from protobuf enum ENDPOINT_NOT_FOUND = 6; - */ - const ENDPOINT_NOT_FOUND = 6; - /** - * The subscription's notification endpoint failed to receive events due to - * insufficient quota or reaching rate limiting. - * - * Generated from protobuf enum ENDPOINT_RESOURCE_EXHAUSTED = 7; - */ - const ENDPOINT_RESOURCE_EXHAUSTED = 7; - /** - * An unidentified error has occurred. - * - * Generated from protobuf enum OTHER = 5; - */ - const OTHER = 5; - - private static $valueToName = [ - self::ERROR_TYPE_UNSPECIFIED => 'ERROR_TYPE_UNSPECIFIED', - self::USER_SCOPE_REVOKED => 'USER_SCOPE_REVOKED', - self::RESOURCE_DELETED => 'RESOURCE_DELETED', - self::USER_AUTHORIZATION_FAILURE => 'USER_AUTHORIZATION_FAILURE', - self::ENDPOINT_PERMISSION_DENIED => 'ENDPOINT_PERMISSION_DENIED', - self::ENDPOINT_NOT_FOUND => 'ENDPOINT_NOT_FOUND', - self::ENDPOINT_RESOURCE_EXHAUSTED => 'ENDPOINT_RESOURCE_EXHAUSTED', - self::OTHER => 'OTHER', - ]; - - 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(ErrorType::class, \Google\Apps\Events\Subscriptions\V1\Subscription_ErrorType::class); - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription/State.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription/State.php deleted file mode 100644 index 29cc87d082e0..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/Subscription/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.apps.events.subscriptions.v1.Subscription.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The subscription is active and can receive and deliver events to its - * notification endpoint. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The subscription is unable to receive events due to an error. - * To identify the error, see the - * [`suspension_reason`][google.apps.events.subscriptions.v1.Subscription.suspension_reason] - * field. - * - * Generated from protobuf enum SUSPENDED = 2; - */ - const SUSPENDED = 2; - /** - * The subscription is deleted. - * - * Generated from protobuf enum DELETED = 3; - */ - const DELETED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::SUSPENDED => 'SUSPENDED', - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Apps\Events\Subscriptions\V1\Subscription_State::class); - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/UpdateSubscriptionMetadata.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/UpdateSubscriptionMetadata.php deleted file mode 100644 index dbe1d0d94f1d..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/UpdateSubscriptionMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.apps.events.subscriptions.v1.UpdateSubscriptionMetadata - */ -class UpdateSubscriptionMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/UpdateSubscriptionRequest.php b/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/UpdateSubscriptionRequest.php deleted file mode 100644 index 890c2651a159..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/proto/src/Google/Apps/Events/Subscriptions/V1/UpdateSubscriptionRequest.php +++ /dev/null @@ -1,218 +0,0 @@ -google.apps.events.subscriptions.v1.UpdateSubscriptionRequest - */ -class UpdateSubscriptionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The subscription to update. - * The subscription's `name` field is used to identify the subscription to - * update. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subscription = null; - /** - * Optional. Required. The field to update. - * You can update one of the following fields in a subscription: - * * [`expire_time`][google.apps.events.subscriptions.v1.Subscription.expire_time]: The timestamp when the - * subscription expires. - * * [`ttl`][google.apps.events.subscriptions.v1.Subscription.ttl]: The - * time-to-live (TTL) or duration of the - * subscription. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * update the subscription. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Apps\Events\Subscriptions\V1\Subscription $subscription Required. The subscription to update. - * - * The subscription's `name` field is used to identify the subscription to - * update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Required. The field to update. - * - * You can update one of the following fields in a subscription: - * - * * [`expire_time`][google.apps.events.subscriptions.v1.Subscription.expire_time]: The timestamp when the - * subscription expires. - * * [`ttl`][google.apps.events.subscriptions.v1.Subscription.ttl]: The - * time-to-live (TTL) or duration of the - * subscription. - * - * @return \Google\Apps\Events\Subscriptions\V1\UpdateSubscriptionRequest - * - * @experimental - */ - public static function build(\Google\Apps\Events\Subscriptions\V1\Subscription $subscription, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSubscription($subscription) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Events\Subscriptions\V1\Subscription $subscription - * Required. The subscription to update. - * The subscription's `name` field is used to identify the subscription to - * update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Required. The field to update. - * You can update one of the following fields in a subscription: - * * [`expire_time`][google.apps.events.subscriptions.v1.Subscription.expire_time]: The timestamp when the - * subscription expires. - * * [`ttl`][google.apps.events.subscriptions.v1.Subscription.ttl]: The - * time-to-live (TTL) or duration of the - * subscription. - * @type bool $validate_only - * Optional. If set to `true`, validates and previews the request, but doesn't - * update the subscription. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Events\Subscriptions\V1\SubscriptionsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The subscription to update. - * The subscription's `name` field is used to identify the subscription to - * update. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Events\Subscriptions\V1\Subscription|null - */ - public function getSubscription() - { - return $this->subscription; - } - - public function hasSubscription() - { - return isset($this->subscription); - } - - public function clearSubscription() - { - unset($this->subscription); - } - - /** - * Required. The subscription to update. - * The subscription's `name` field is used to identify the subscription to - * update. - * - * Generated from protobuf field .google.apps.events.subscriptions.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Events\Subscriptions\V1\Subscription $var - * @return $this - */ - public function setSubscription($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Events\Subscriptions\V1\Subscription::class); - $this->subscription = $var; - - return $this; - } - - /** - * Optional. Required. The field to update. - * You can update one of the following fields in a subscription: - * * [`expire_time`][google.apps.events.subscriptions.v1.Subscription.expire_time]: The timestamp when the - * subscription expires. - * * [`ttl`][google.apps.events.subscriptions.v1.Subscription.ttl]: The - * time-to-live (TTL) or duration of the - * subscription. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Required. The field to update. - * You can update one of the following fields in a subscription: - * * [`expire_time`][google.apps.events.subscriptions.v1.Subscription.expire_time]: The timestamp when the - * subscription expires. - * * [`ttl`][google.apps.events.subscriptions.v1.Subscription.ttl]: The - * time-to-live (TTL) or duration of the - * subscription. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * update the subscription. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to `true`, validates and previews the request, but doesn't - * update the subscription. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/create_subscription.php b/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/create_subscription.php deleted file mode 100644 index 13cb6fe2ff51..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/create_subscription.php +++ /dev/null @@ -1,117 +0,0 @@ -setTargetResource($subscriptionTargetResource) - ->setEventTypes($subscriptionEventTypes) - ->setNotificationEndpoint($subscriptionNotificationEndpoint); - $request = (new CreateSubscriptionRequest()) - ->setSubscription($subscription); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $subscriptionsServiceClient->createSubscription($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Subscription $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $subscriptionTargetResource = '[TARGET_RESOURCE]'; - $subscriptionEventTypesElement = '[EVENT_TYPES]'; - - create_subscription_sample($subscriptionTargetResource, $subscriptionEventTypesElement); -} -// [END workspaceevents_v1_generated_SubscriptionsService_CreateSubscription_sync] diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/delete_subscription.php b/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/delete_subscription.php deleted file mode 100644 index b7350021e958..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/delete_subscription.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $subscriptionsServiceClient->deleteSubscription($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SubscriptionsServiceClient::subscriptionName('[SUBSCRIPTION]'); - - delete_subscription_sample($formattedName); -} -// [END workspaceevents_v1_generated_SubscriptionsService_DeleteSubscription_sync] diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/get_subscription.php b/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/get_subscription.php deleted file mode 100644 index 9d9c407a9b00..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/get_subscription.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Subscription $response */ - $response = $subscriptionsServiceClient->getSubscription($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SubscriptionsServiceClient::subscriptionName('[SUBSCRIPTION]'); - - get_subscription_sample($formattedName); -} -// [END workspaceevents_v1_generated_SubscriptionsService_GetSubscription_sync] diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/list_subscriptions.php b/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/list_subscriptions.php deleted file mode 100644 index 287427485254..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/list_subscriptions.php +++ /dev/null @@ -1,104 +0,0 @@ -setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $subscriptionsServiceClient->listSubscriptions($request); - - /** @var Subscription $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $filter = '[FILTER]'; - - list_subscriptions_sample($filter); -} -// [END workspaceevents_v1_generated_SubscriptionsService_ListSubscriptions_sync] diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/reactivate_subscription.php b/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/reactivate_subscription.php deleted file mode 100644 index 37048b6e861f..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/reactivate_subscription.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $subscriptionsServiceClient->reactivateSubscription($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Subscription $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SubscriptionsServiceClient::subscriptionName('[SUBSCRIPTION]'); - - reactivate_subscription_sample($formattedName); -} -// [END workspaceevents_v1_generated_SubscriptionsService_ReactivateSubscription_sync] diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/update_subscription.php b/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/update_subscription.php deleted file mode 100644 index c47384b4d4e1..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/samples/V1/SubscriptionsServiceClient/update_subscription.php +++ /dev/null @@ -1,117 +0,0 @@ -setTargetResource($subscriptionTargetResource) - ->setEventTypes($subscriptionEventTypes) - ->setNotificationEndpoint($subscriptionNotificationEndpoint); - $request = (new UpdateSubscriptionRequest()) - ->setSubscription($subscription); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $subscriptionsServiceClient->updateSubscription($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Subscription $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $subscriptionTargetResource = '[TARGET_RESOURCE]'; - $subscriptionEventTypesElement = '[EVENT_TYPES]'; - - update_subscription_sample($subscriptionTargetResource, $subscriptionEventTypesElement); -} -// [END workspaceevents_v1_generated_SubscriptionsService_UpdateSubscription_sync] diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/Client/SubscriptionsServiceClient.php b/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/Client/SubscriptionsServiceClient.php deleted file mode 100644 index 48ca66bcbc18..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/Client/SubscriptionsServiceClient.php +++ /dev/null @@ -1,495 +0,0 @@ - createSubscriptionAsync(CreateSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSubscriptionAsync(DeleteSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSubscriptionAsync(GetSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSubscriptionsAsync(ListSubscriptionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface reactivateSubscriptionAsync(ReactivateSubscriptionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSubscriptionAsync(UpdateSubscriptionRequest $request, array $optionalArgs = []) - */ -final class SubscriptionsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.apps.events.subscriptions.v1.SubscriptionsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'workspaceevents.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'workspaceevents.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/chat.bot', - 'https://www.googleapis.com/auth/chat.memberships', - 'https://www.googleapis.com/auth/chat.memberships.readonly', - 'https://www.googleapis.com/auth/chat.messages', - 'https://www.googleapis.com/auth/chat.messages.reactions', - 'https://www.googleapis.com/auth/chat.messages.reactions.readonly', - 'https://www.googleapis.com/auth/chat.messages.readonly', - 'https://www.googleapis.com/auth/chat.spaces', - 'https://www.googleapis.com/auth/chat.spaces.readonly', - 'https://www.googleapis.com/auth/meetings.space.created', - 'https://www.googleapis.com/auth/meetings.space.readonly', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/subscriptions_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/subscriptions_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/subscriptions_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/subscriptions_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a subscription - * resource. - * - * @param string $subscription - * - * @return string The formatted subscription resource. - */ - public static function subscriptionName(string $subscription): string - { - return self::getPathTemplate('subscription')->render([ - 'subscription' => $subscription, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a topic - * resource. - * - * @param string $project - * @param string $topic - * - * @return string The formatted topic resource. - */ - public static function topicName(string $project, string $topic): string - { - return self::getPathTemplate('topic')->render([ - 'project' => $project, - 'topic' => $topic, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a user - * resource. - * - * @param string $user - * - * @return string The formatted user resource. - */ - public static function userName(string $user): string - { - return self::getPathTemplate('user')->render([ - 'user' => $user, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - subscription: subscriptions/{subscription} - * - topic: projects/{project}/topics/{topic} - * - user: users/{user} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'workspaceevents.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a Google Workspace subscription. To learn how to use this - * method, see [Create a Google Workspace - * subscription](https://developers.google.com/workspace/events/guides/create-subscription). - * - * The async variant is - * {@see SubscriptionsServiceClient::createSubscriptionAsync()} . - * - * @example samples/V1/SubscriptionsServiceClient/create_subscription.php - * - * @param CreateSubscriptionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSubscription(CreateSubscriptionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateSubscription', $request, $callOptions)->wait(); - } - - /** - * Deletes a Google Workspace subscription. - * To learn how to use this method, see [Delete a Google Workspace - * subscription](https://developers.google.com/workspace/events/guides/delete-subscription). - * - * The async variant is - * {@see SubscriptionsServiceClient::deleteSubscriptionAsync()} . - * - * @example samples/V1/SubscriptionsServiceClient/delete_subscription.php - * - * @param DeleteSubscriptionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSubscription(DeleteSubscriptionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteSubscription', $request, $callOptions)->wait(); - } - - /** - * Gets details about a Google Workspace subscription. To learn how to use - * this method, see [Get details about a Google Workspace - * subscription](https://developers.google.com/workspace/events/guides/get-subscription). - * - * The async variant is {@see SubscriptionsServiceClient::getSubscriptionAsync()} . - * - * @example samples/V1/SubscriptionsServiceClient/get_subscription.php - * - * @param GetSubscriptionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Subscription - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSubscription(GetSubscriptionRequest $request, array $callOptions = []): Subscription - { - return $this->startApiCall('GetSubscription', $request, $callOptions)->wait(); - } - - /** - * Lists Google Workspace subscriptions. To learn how to use this method, see - * [List Google Workspace - * subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions). - * - * The async variant is {@see SubscriptionsServiceClient::listSubscriptionsAsync()} - * . - * - * @example samples/V1/SubscriptionsServiceClient/list_subscriptions.php - * - * @param ListSubscriptionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSubscriptions(ListSubscriptionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSubscriptions', $request, $callOptions); - } - - /** - * Reactivates a suspended Google Workspace subscription. - * - * This method resets your subscription's `State` field to `ACTIVE`. Before - * you use this method, you must fix the error that suspended the - * subscription. To learn how to use this method, see [Reactivate a Google - * Workspace - * subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription). - * - * The async variant is - * {@see SubscriptionsServiceClient::reactivateSubscriptionAsync()} . - * - * @example samples/V1/SubscriptionsServiceClient/reactivate_subscription.php - * - * @param ReactivateSubscriptionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function reactivateSubscription(ReactivateSubscriptionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ReactivateSubscription', $request, $callOptions)->wait(); - } - - /** - * Updates or renews a Google Workspace subscription. To learn how to use this - * method, see [Update or renew a Google Workspace - * subscription](https://developers.google.com/workspace/events/guides/update-subscription). - * - * The async variant is - * {@see SubscriptionsServiceClient::updateSubscriptionAsync()} . - * - * @example samples/V1/SubscriptionsServiceClient/update_subscription.php - * - * @param UpdateSubscriptionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSubscription(UpdateSubscriptionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateSubscription', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 701d13468747..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.apps.events.subscriptions.v1", - "libraryPackage": "Google\\Apps\\Events\\Subscriptions\\V1", - "services": { - "SubscriptionsService": { - "clients": { - "grpc": { - "libraryClient": "SubscriptionsServiceGapicClient", - "rpcs": { - "CreateSubscription": { - "methods": [ - "createSubscription" - ] - }, - "DeleteSubscription": { - "methods": [ - "deleteSubscription" - ] - }, - "GetSubscription": { - "methods": [ - "getSubscription" - ] - }, - "ListSubscriptions": { - "methods": [ - "listSubscriptions" - ] - }, - "ReactivateSubscription": { - "methods": [ - "reactivateSubscription" - ] - }, - "UpdateSubscription": { - "methods": [ - "updateSubscription" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_client_config.json b/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_client_config.json deleted file mode 100644 index 15ea2f8e0538..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_client_config.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "interfaces": { - "google.apps.events.subscriptions.v1.SubscriptionsService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateSubscription": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteSubscription": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetSubscription": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSubscriptions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReactivateSubscription": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateSubscription": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_descriptor_config.php b/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_descriptor_config.php deleted file mode 100644 index fac23b06d796..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_descriptor_config.php +++ /dev/null @@ -1,126 +0,0 @@ - [ - 'google.apps.events.subscriptions.v1.SubscriptionsService' => [ - 'CreateSubscription' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Apps\Events\Subscriptions\V1\Subscription', - 'metadataReturnType' => '\Google\Apps\Events\Subscriptions\V1\CreateSubscriptionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - ], - 'DeleteSubscription' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Apps\Events\Subscriptions\V1\DeleteSubscriptionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ReactivateSubscription' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Apps\Events\Subscriptions\V1\Subscription', - 'metadataReturnType' => '\Google\Apps\Events\Subscriptions\V1\ReactivateSubscriptionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateSubscription' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Apps\Events\Subscriptions\V1\Subscription', - 'metadataReturnType' => '\Google\Apps\Events\Subscriptions\V1\UpdateSubscriptionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'subscription.name', - 'fieldAccessors' => [ - 'getSubscription', - 'getName', - ], - ], - ], - ], - 'GetSubscription' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Events\Subscriptions\V1\Subscription', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListSubscriptions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSubscriptions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Events\Subscriptions\V1\ListSubscriptionsResponse', - ], - 'templateMap' => [ - 'subscription' => 'subscriptions/{subscription}', - 'topic' => 'projects/{project}/topics/{topic}', - 'user' => 'users/{user}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_rest_client_config.php b/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_rest_client_config.php deleted file mode 100644 index 427302f6dff1..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/src/V1/resources/subscriptions_service_rest_client_config.php +++ /dev/null @@ -1,101 +0,0 @@ - [ - 'google.apps.events.subscriptions.v1.SubscriptionsService' => [ - 'CreateSubscription' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/subscriptions', - 'body' => 'subscription', - ], - 'DeleteSubscription' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=subscriptions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSubscription' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=subscriptions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListSubscriptions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/subscriptions', - 'queryParams' => [ - 'filter', - ], - ], - 'ReactivateSubscription' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=subscriptions/*}:reactivate', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateSubscription' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{subscription.name=subscriptions/*}', - 'body' => 'subscription', - 'placeholders' => [ - 'subscription.name' => [ - 'getters' => [ - 'getSubscription', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=operations/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppsEventsSubscriptions/v1/tests/Unit/V1/Client/SubscriptionsServiceClientTest.php b/owl-bot-staging/AppsEventsSubscriptions/v1/tests/Unit/V1/Client/SubscriptionsServiceClientTest.php deleted file mode 100644 index f18bc8032d33..000000000000 --- a/owl-bot-staging/AppsEventsSubscriptions/v1/tests/Unit/V1/Client/SubscriptionsServiceClientTest.php +++ /dev/null @@ -1,846 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SubscriptionsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SubscriptionsServiceClient($options); - } - - /** @test */ - public function createSubscriptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $targetResource = 'targetResource-69552388'; - $authority = 'authority1475610435'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new Subscription(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setTargetResource($targetResource); - $expectedResponse->setAuthority($authority); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSubscriptionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $subscription = new Subscription(); - $subscriptionTargetResource = 'subscriptionTargetResource-1934694596'; - $subscription->setTargetResource($subscriptionTargetResource); - $subscriptionEventTypes = []; - $subscription->setEventTypes($subscriptionEventTypes); - $subscriptionNotificationEndpoint = new NotificationEndpoint(); - $subscription->setNotificationEndpoint($subscriptionNotificationEndpoint); - $request = (new CreateSubscriptionRequest()) - ->setSubscription($subscription); - $response = $gapicClient->createSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.events.subscriptions.v1.SubscriptionsService/CreateSubscription', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSubscription(); - $this->assertProtobufEquals($subscription, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSubscriptionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSubscriptionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $subscription = new Subscription(); - $subscriptionTargetResource = 'subscriptionTargetResource-1934694596'; - $subscription->setTargetResource($subscriptionTargetResource); - $subscriptionEventTypes = []; - $subscription->setEventTypes($subscriptionEventTypes); - $subscriptionNotificationEndpoint = new NotificationEndpoint(); - $subscription->setNotificationEndpoint($subscriptionNotificationEndpoint); - $request = (new CreateSubscriptionRequest()) - ->setSubscription($subscription); - $response = $gapicClient->createSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSubscriptionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteSubscriptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteSubscriptionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->subscriptionName('[SUBSCRIPTION]'); - $request = (new DeleteSubscriptionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.events.subscriptions.v1.SubscriptionsService/DeleteSubscription', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteSubscriptionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteSubscriptionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subscriptionName('[SUBSCRIPTION]'); - $request = (new DeleteSubscriptionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteSubscriptionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getSubscriptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $targetResource = 'targetResource-69552388'; - $authority = 'authority1475610435'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new Subscription(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setTargetResource($targetResource); - $expectedResponse->setAuthority($authority); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->subscriptionName('[SUBSCRIPTION]'); - $request = (new GetSubscriptionRequest()) - ->setName($formattedName); - $response = $gapicClient->getSubscription($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.events.subscriptions.v1.SubscriptionsService/GetSubscription', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSubscriptionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subscriptionName('[SUBSCRIPTION]'); - $request = (new GetSubscriptionRequest()) - ->setName($formattedName); - try { - $gapicClient->getSubscription($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubscriptionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subscriptionsElement = new Subscription(); - $subscriptions = [ - $subscriptionsElement, - ]; - $expectedResponse = new ListSubscriptionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubscriptions($subscriptions); - $transport->addResponse($expectedResponse); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListSubscriptionsRequest()) - ->setFilter($filter); - $response = $gapicClient->listSubscriptions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubscriptions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.events.subscriptions.v1.SubscriptionsService/ListSubscriptions', $actualFuncCall); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubscriptionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $filter = 'filter-1274492040'; - $request = (new ListSubscriptionsRequest()) - ->setFilter($filter); - try { - $gapicClient->listSubscriptions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reactivateSubscriptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/reactivateSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $targetResource = 'targetResource-69552388'; - $authority = 'authority1475610435'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new Subscription(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setTargetResource($targetResource); - $expectedResponse->setAuthority($authority); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/reactivateSubscriptionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->subscriptionName('[SUBSCRIPTION]'); - $request = (new ReactivateSubscriptionRequest()) - ->setName($formattedName); - $response = $gapicClient->reactivateSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.events.subscriptions.v1.SubscriptionsService/ReactivateSubscription', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/reactivateSubscriptionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function reactivateSubscriptionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/reactivateSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subscriptionName('[SUBSCRIPTION]'); - $request = (new ReactivateSubscriptionRequest()) - ->setName($formattedName); - $response = $gapicClient->reactivateSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/reactivateSubscriptionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateSubscriptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $targetResource = 'targetResource-69552388'; - $authority = 'authority1475610435'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new Subscription(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setTargetResource($targetResource); - $expectedResponse->setAuthority($authority); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateSubscriptionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $subscription = new Subscription(); - $subscriptionTargetResource = 'subscriptionTargetResource-1934694596'; - $subscription->setTargetResource($subscriptionTargetResource); - $subscriptionEventTypes = []; - $subscription->setEventTypes($subscriptionEventTypes); - $subscriptionNotificationEndpoint = new NotificationEndpoint(); - $subscription->setNotificationEndpoint($subscriptionNotificationEndpoint); - $request = (new UpdateSubscriptionRequest()) - ->setSubscription($subscription); - $response = $gapicClient->updateSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.events.subscriptions.v1.SubscriptionsService/UpdateSubscription', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSubscription(); - $this->assertProtobufEquals($subscription, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSubscriptionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateSubscriptionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $subscription = new Subscription(); - $subscriptionTargetResource = 'subscriptionTargetResource-1934694596'; - $subscription->setTargetResource($subscriptionTargetResource); - $subscriptionEventTypes = []; - $subscription->setEventTypes($subscriptionEventTypes); - $subscriptionNotificationEndpoint = new NotificationEndpoint(); - $subscription->setNotificationEndpoint($subscriptionNotificationEndpoint); - $request = (new UpdateSubscriptionRequest()) - ->setSubscription($subscription); - $response = $gapicClient->updateSubscription($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSubscriptionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSubscriptionAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSubscriptionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $targetResource = 'targetResource-69552388'; - $authority = 'authority1475610435'; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new Subscription(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setTargetResource($targetResource); - $expectedResponse->setAuthority($authority); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSubscriptionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $subscription = new Subscription(); - $subscriptionTargetResource = 'subscriptionTargetResource-1934694596'; - $subscription->setTargetResource($subscriptionTargetResource); - $subscriptionEventTypes = []; - $subscription->setEventTypes($subscriptionEventTypes); - $subscriptionNotificationEndpoint = new NotificationEndpoint(); - $subscription->setNotificationEndpoint($subscriptionNotificationEndpoint); - $request = (new CreateSubscriptionRequest()) - ->setSubscription($subscription); - $response = $gapicClient->createSubscriptionAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.events.subscriptions.v1.SubscriptionsService/CreateSubscription', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSubscription(); - $this->assertProtobufEquals($subscription, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSubscriptionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/GPBMetadata/Google/Apps/Meet/V2/Resource.php b/owl-bot-staging/AppsMeet/v2/proto/src/GPBMetadata/Google/Apps/Meet/V2/Resource.php deleted file mode 100644 index 7dd64e4c8eae..000000000000 Binary files a/owl-bot-staging/AppsMeet/v2/proto/src/GPBMetadata/Google/Apps/Meet/V2/Resource.php and /dev/null differ diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/GPBMetadata/Google/Apps/Meet/V2/Service.php b/owl-bot-staging/AppsMeet/v2/proto/src/GPBMetadata/Google/Apps/Meet/V2/Service.php deleted file mode 100644 index 51b98cc90a2d..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/GPBMetadata/Google/Apps/Meet/V2/Service.php +++ /dev/null @@ -1,135 +0,0 @@ -internalAddGeneratedFile( - ' -, -!google/apps/meet/v2/service.protogoogle.apps.meet.v2google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"google/apps/meet/v2/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"? -CreateSpaceRequest) -space ( 2.google.apps.meet.v2.Space"B -GetSpaceRequest/ -name ( B!AA -meet.googleapis.com/Space"z -UpdateSpaceRequest. -space ( 2.google.apps.meet.v2.SpaceBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"M -EndActiveConferenceRequest/ -name ( B!AA -meet.googleapis.com/Space"X -GetConferenceRecordRequest: -name ( B,AA& -$meet.googleapis.com/ConferenceRecord"d -ListConferenceRecordsRequest - page_size (BA - -page_token ( BA -filter ( BA"{ -ListConferenceRecordsResponseA -conference_records ( 2%.google.apps.meet.v2.ConferenceRecord -next_page_token ( "N -GetParticipantRequest5 -name ( B\'AA! -meet.googleapis.com/Participant" -ListParticipantsRequest7 -parent ( B\'AA!meet.googleapis.com/Participant - page_size ( - -page_token (  -filter ( BA" -ListParticipantsResponse6 - participants ( 2 .google.apps.meet.v2.Participant -next_page_token (  - -total_size ("\\ -GetParticipantSessionRequest< -name ( B.AA( -&meet.googleapis.com/ParticipantSession" -ListParticipantSessionsRequest> -parent ( B.AA(&meet.googleapis.com/ParticipantSession - page_size (BA - -page_token ( BA -filter ( BA" -ListParticipantSessionsResponseE -participant_sessions ( 2\'.google.apps.meet.v2.ParticipantSession -next_page_token ( "J -GetRecordingRequest3 -name ( B%AA -meet.googleapis.com/Recording"u -ListRecordingsRequest5 -parent ( B%AAmeet.googleapis.com/Recording - page_size ( - -page_token ( "e -ListRecordingsResponse2 - -recordings ( 2.google.apps.meet.v2.Recording -next_page_token ( "L -GetTranscriptRequest4 -name ( B&AA -meet.googleapis.com/Transcript"w -ListTranscriptsRequest6 -parent ( B&AA meet.googleapis.com/Transcript - page_size ( - -page_token ( "h -ListTranscriptsResponse4 - transcripts ( 2.google.apps.meet.v2.Transcript -next_page_token ( "V -GetTranscriptEntryRequest9 -name ( B+AA% -#meet.googleapis.com/TranscriptEntry" -ListTranscriptEntriesRequest; -parent ( B+AA%#meet.googleapis.com/TranscriptEntry - page_size ( - -page_token ( "z -ListTranscriptEntriesResponse@ -transcript_entries ( 2$.google.apps.meet.v2.TranscriptEntry -next_page_token ( 2 - SpacesServiceu - CreateSpace\'.google.apps.meet.v2.CreateSpaceRequest.google.apps.meet.v2.Space"!Aspace" -/v2/spaces:spacep -GetSpace$.google.apps.meet.v2.GetSpaceRequest.google.apps.meet.v2.Space""Aname/v2/{name=spaces/*} - UpdateSpace\'.google.apps.meet.v2.UpdateSpaceRequest.google.apps.meet.v2.Space"Aparent/-/v2/{parent=conferenceRecords/*}/participants -GetParticipantSession1.google.apps.meet.v2.GetParticipantSessionRequest\'.google.apps.meet.v2.ParticipantSession"RAnameEC/v2/{name=conferenceRecords/*/participants/*/participantSessions/*} -ListParticipantSessions3.google.apps.meet.v2.ListParticipantSessionsRequest4.google.apps.meet.v2.ListParticipantSessionsResponse"TAparentEC/v2/{parent=conferenceRecords/*/participants/*}/participantSessions - GetRecording(.google.apps.meet.v2.GetRecordingRequest.google.apps.meet.v2.Recording":Aname-+/v2/{name=conferenceRecords/*/recordings/*} -ListRecordings*.google.apps.meet.v2.ListRecordingsRequest+.google.apps.meet.v2.ListRecordingsResponse"google.apps.meet.v2.ActiveConference - */ -class ActiveConference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * - * Generated from protobuf field string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $conference_record = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $conference_record - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * - * Generated from protobuf field string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getConferenceRecord() - { - return $this->conference_record; - } - - /** - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * - * Generated from protobuf field string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setConferenceRecord($var) - { - GPBUtil::checkString($var, True); - $this->conference_record = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/AnonymousUser.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/AnonymousUser.php deleted file mode 100644 index d5fac10bcb7b..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/AnonymousUser.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.meet.v2.AnonymousUser - */ -class AnonymousUser extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. User provided name when they join a conference anonymously. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Output only. User provided name when they join a conference anonymously. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. User provided name when they join a conference anonymously. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. User provided name when they join a conference anonymously. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ConferenceRecord.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ConferenceRecord.php deleted file mode 100644 index e70dcffd2d49..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ConferenceRecord.php +++ /dev/null @@ -1,253 +0,0 @@ -google.apps.meet.v2.ConferenceRecord - */ -class ConferenceRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Timestamp when the conference started. Always set. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server enforced expiration time for when this conference - * record resource is deleted. The resource is deleted 30 days after the - * conference ends. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Output only. The space where the conference was held. - * - * Generated from protobuf field string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $space = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the conference started. Always set. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. Server enforced expiration time for when this conference - * record resource is deleted. The resource is deleted 30 days after the - * conference ends. - * @type string $space - * Output only. The space where the conference was held. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique ID for each instance of a call within a space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Timestamp when the conference started. Always set. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the conference started. Always set. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server enforced expiration time for when this conference - * record resource is deleted. The resource is deleted 30 days after the - * conference ends. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.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. Server enforced expiration time for when this conference - * record resource is deleted. The resource is deleted 30 days after the - * conference ends. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.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; - } - - /** - * Output only. The space where the conference was held. - * - * Generated from protobuf field string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getSpace() - { - return $this->space; - } - - /** - * Output only. The space where the conference was held. - * - * Generated from protobuf field string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkString($var, True); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/CreateSpaceRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/CreateSpaceRequest.php deleted file mode 100644 index 94613d4c31fd..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/CreateSpaceRequest.php +++ /dev/null @@ -1,95 +0,0 @@ -google.apps.meet.v2.CreateSpaceRequest - */ -class CreateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * Generated from protobuf field .google.apps.meet.v2.Space space = 1; - */ - protected $space = null; - - /** - * @param \Google\Apps\Meet\V2\Space $space Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * @return \Google\Apps\Meet\V2\CreateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Meet\V2\Space $space): self - { - return (new self()) - ->setSpace($space); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2\Space $space - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * Generated from protobuf field .google.apps.meet.v2.Space space = 1; - * @return \Google\Apps\Meet\V2\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * Generated from protobuf field .google.apps.meet.v2.Space space = 1; - * @param \Google\Apps\Meet\V2\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\Space::class); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/DocsDestination.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/DocsDestination.php deleted file mode 100644 index 83f19cc2d084..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/DocsDestination.php +++ /dev/null @@ -1,125 +0,0 @@ -google.apps.meet.v2.DocsDestination - */ -class DocsDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * - * Generated from protobuf field string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $document = ''; - /** - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $export_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $document - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * @type string $export_uri - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * - * Generated from protobuf field string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * - * Generated from protobuf field string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getExportUri() - { - return $this->export_uri; - } - - /** - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setExportUri($var) - { - GPBUtil::checkString($var, True); - $this->export_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/DriveDestination.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/DriveDestination.php deleted file mode 100644 index 18ce48ff4fac..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/DriveDestination.php +++ /dev/null @@ -1,121 +0,0 @@ -google.apps.meet.v2.DriveDestination - */ -class DriveDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * - * Generated from protobuf field string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $file = ''; - /** - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $export_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * @type string $export_uri - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * - * Generated from protobuf field string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFile() - { - return $this->file; - } - - /** - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * - * Generated from protobuf field string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFile($var) - { - GPBUtil::checkString($var, True); - $this->file = $var; - - return $this; - } - - /** - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getExportUri() - { - return $this->export_uri; - } - - /** - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setExportUri($var) - { - GPBUtil::checkString($var, True); - $this->export_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/EndActiveConferenceRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/EndActiveConferenceRequest.php deleted file mode 100644 index b9513f4d1a98..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/EndActiveConferenceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.EndActiveConferenceRequest - */ -class EndActiveConferenceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the space. Please see - * {@see SpacesServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\EndActiveConferenceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetConferenceRecordRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetConferenceRecordRequest.php deleted file mode 100644 index ead117879574..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetConferenceRecordRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.GetConferenceRecordRequest - */ -class GetConferenceRecordRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the conference. Please see - * {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\GetConferenceRecordRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the conference. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the conference. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetParticipantRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetParticipantRequest.php deleted file mode 100644 index 6035875677c2..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetParticipantRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.GetParticipantRequest - */ -class GetParticipantRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the participant. Please see - * {@see ConferenceRecordsServiceClient::participantName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\GetParticipantRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the participant. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the participant. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetParticipantSessionRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetParticipantSessionRequest.php deleted file mode 100644 index c228651edb31..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetParticipantSessionRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.GetParticipantSessionRequest - */ -class GetParticipantSessionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the participant. Please see - * {@see ConferenceRecordsServiceClient::participantSessionName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\GetParticipantSessionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the participant. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the participant. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetRecordingRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetRecordingRequest.php deleted file mode 100644 index cb69bbe52bb4..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetRecordingRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.GetRecordingRequest - */ -class GetRecordingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the recording. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the recording. Please see - * {@see ConferenceRecordsServiceClient::recordingName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\GetRecordingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the recording. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the recording. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the recording. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetSpaceRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetSpaceRequest.php deleted file mode 100644 index c0828dbbbbcd..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetSpaceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.GetSpaceRequest - */ -class GetSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the space. Please see - * {@see SpacesServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\GetSpaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetTranscriptEntryRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetTranscriptEntryRequest.php deleted file mode 100644 index 975d7f0938dd..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetTranscriptEntryRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.GetTranscriptEntryRequest - */ -class GetTranscriptEntryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the `TranscriptEntry`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the `TranscriptEntry`. Please see - * {@see ConferenceRecordsServiceClient::transcriptEntryName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\GetTranscriptEntryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the `TranscriptEntry`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the `TranscriptEntry`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the `TranscriptEntry`. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetTranscriptRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetTranscriptRequest.php deleted file mode 100644 index ca7aec59a1ca..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/GetTranscriptRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2.GetTranscriptRequest - */ -class GetTranscriptRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the transcript. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the transcript. Please see - * {@see ConferenceRecordsServiceClient::transcriptName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\GetTranscriptRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the transcript. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the transcript. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the transcript. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListConferenceRecordsRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListConferenceRecordsRequest.php deleted file mode 100644 index b0eb79c85b79..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListConferenceRecordsRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.apps.meet.v2.ListConferenceRecordsRequest - */ -class ListConferenceRecordsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * @type string $page_token - * Optional. Page token returned from previous List Call. - * @type string $filter - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListConferenceRecordsResponse.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListConferenceRecordsResponse.php deleted file mode 100644 index b3dd9857225d..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListConferenceRecordsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2.ListConferenceRecordsResponse - */ -class ListConferenceRecordsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of conferences in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; - */ - private $conference_records; - /** - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2\ConferenceRecord>|\Google\Protobuf\Internal\RepeatedField $conference_records - * List of conferences in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of conferences in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConferenceRecords() - { - return $this->conference_records; - } - - /** - * List of conferences in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.ConferenceRecord conference_records = 1; - * @param array<\Google\Apps\Meet\V2\ConferenceRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConferenceRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2\ConferenceRecord::class); - $this->conference_records = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantSessionsRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantSessionsRequest.php deleted file mode 100644 index 5e3275b5aba6..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantSessionsRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.apps.meet.v2.ListParticipantSessionsRequest - */ -class ListParticipantSessionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * Please see {@see ConferenceRecordsServiceClient::participantName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\ListParticipantSessionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * @type int $page_size - * Optional. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * @type string $page_token - * Optional. Page token returned from previous List Call. - * @type string $filter - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * - * 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: - * `conferenceRecords/{conference_record}/participants/{participant}` - * - * 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. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantSessionsResponse.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantSessionsResponse.php deleted file mode 100644 index c73741b620e4..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantSessionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2.ListParticipantSessionsResponse - */ -class ListParticipantSessionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; - */ - private $participant_sessions; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2\ParticipantSession>|\Google\Protobuf\Internal\RepeatedField $participant_sessions - * List of participants in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParticipantSessions() - { - return $this->participant_sessions; - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.ParticipantSession participant_sessions = 1; - * @param array<\Google\Apps\Meet\V2\ParticipantSession>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParticipantSessions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2\ParticipantSession::class); - $this->participant_sessions = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantsRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantsRequest.php deleted file mode 100644 index 72499bab0666..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantsRequest.php +++ /dev/null @@ -1,223 +0,0 @@ -google.apps.meet.v2.ListParticipantsRequest - */ -class ListParticipantsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Format: `conferenceRecords/{conference_record}` - * Please see {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\ListParticipantsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: `conferenceRecords/{conference_record}` - * @type int $page_size - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * @type string $filter - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * 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: `conferenceRecords/{conference_record}` - * - * 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; - } - - /** - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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; - } - - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. User specified filtering condition in [EBNF - * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). - * The following are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantsResponse.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantsResponse.php deleted file mode 100644 index 76bebd0be596..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListParticipantsResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -google.apps.meet.v2.ListParticipantsResponse - */ -class ListParticipantsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Participant participants = 1; - */ - private $participants; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2\Participant>|\Google\Protobuf\Internal\RepeatedField $participants - * List of participants in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * @type int $total_size - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Participant participants = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParticipants() - { - return $this->participants; - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Participant participants = 1; - * @param array<\Google\Apps\Meet\V2\Participant>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParticipants($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2\Participant::class); - $this->participants = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * 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; - } - - /** - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListRecordingsRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListRecordingsRequest.php deleted file mode 100644 index 7d8d76f265e5..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListRecordingsRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.apps.meet.v2.ListRecordingsRequest - */ -class ListRecordingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: `conferenceRecords/{conference_record}` - * Please see {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\ListRecordingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: `conferenceRecords/{conference_record}` - * @type int $page_size - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * 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: `conferenceRecords/{conference_record}` - * - * 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; - } - - /** - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListRecordingsResponse.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListRecordingsResponse.php deleted file mode 100644 index 3e25a5d5ecfa..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListRecordingsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2.ListRecordingsResponse - */ -class ListRecordingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of recordings in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Recording recordings = 1; - */ - private $recordings; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2\Recording>|\Google\Protobuf\Internal\RepeatedField $recordings - * List of recordings in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of recordings in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Recording recordings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRecordings() - { - return $this->recordings; - } - - /** - * List of recordings in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Recording recordings = 1; - * @param array<\Google\Apps\Meet\V2\Recording>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRecordings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2\Recording::class); - $this->recordings = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptEntriesRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptEntriesRequest.php deleted file mode 100644 index c7cc6f561a8a..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptEntriesRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.apps.meet.v2.ListTranscriptEntriesRequest - */ -class ListTranscriptEntriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * Please see {@see ConferenceRecordsServiceClient::transcriptName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\ListTranscriptEntriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * @type int $page_size - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * - * 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: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * - * 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; - } - - /** - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptEntriesResponse.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptEntriesResponse.php deleted file mode 100644 index fc6ac0bb2e79..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptEntriesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2.ListTranscriptEntriesResponse - */ -class ListTranscriptEntriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of TranscriptEntries in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; - */ - private $transcript_entries; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2\TranscriptEntry>|\Google\Protobuf\Internal\RepeatedField $transcript_entries - * List of TranscriptEntries in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of TranscriptEntries in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTranscriptEntries() - { - return $this->transcript_entries; - } - - /** - * List of TranscriptEntries in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.TranscriptEntry transcript_entries = 1; - * @param array<\Google\Apps\Meet\V2\TranscriptEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTranscriptEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2\TranscriptEntry::class); - $this->transcript_entries = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptsRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptsRequest.php deleted file mode 100644 index 82aef9bf81a6..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptsRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.apps.meet.v2.ListTranscriptsRequest - */ -class ListTranscriptsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: `conferenceRecords/{conference_record}` - * Please see {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2\ListTranscriptsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: `conferenceRecords/{conference_record}` - * @type int $page_size - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * 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: `conferenceRecords/{conference_record}` - * - * 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; - } - - /** - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptsResponse.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptsResponse.php deleted file mode 100644 index e51f64f1c23d..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ListTranscriptsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2.ListTranscriptsResponse - */ -class ListTranscriptsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of transcripts in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Transcript transcripts = 1; - */ - private $transcripts; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2\Transcript>|\Google\Protobuf\Internal\RepeatedField $transcripts - * List of transcripts in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of transcripts in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Transcript transcripts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTranscripts() - { - return $this->transcripts; - } - - /** - * List of transcripts in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2.Transcript transcripts = 1; - * @param array<\Google\Apps\Meet\V2\Transcript>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTranscripts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2\Transcript::class); - $this->transcripts = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * - * 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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Participant.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Participant.php deleted file mode 100644 index 8188fd3f85f5..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Participant.php +++ /dev/null @@ -1,271 +0,0 @@ -google.apps.meet.v2.Participant - */ -class Participant extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Time when the participant first joined the meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $earliest_start_time = null; - /** - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it's an active meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $latest_end_time = null; - protected $user; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2\SignedinUser $signedin_user - * Signed-in user. - * @type \Google\Apps\Meet\V2\AnonymousUser $anonymous_user - * Anonymous user. - * @type \Google\Apps\Meet\V2\PhoneUser $phone_user - * User calling from their phone. - * @type string $name - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * @type \Google\Protobuf\Timestamp $earliest_start_time - * Output only. Time when the participant first joined the meeting. - * @type \Google\Protobuf\Timestamp $latest_end_time - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it's an active meeting. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Signed-in user. - * - * Generated from protobuf field .google.apps.meet.v2.SignedinUser signedin_user = 4; - * @return \Google\Apps\Meet\V2\SignedinUser|null - */ - public function getSignedinUser() - { - return $this->readOneof(4); - } - - public function hasSignedinUser() - { - return $this->hasOneof(4); - } - - /** - * Signed-in user. - * - * Generated from protobuf field .google.apps.meet.v2.SignedinUser signedin_user = 4; - * @param \Google\Apps\Meet\V2\SignedinUser $var - * @return $this - */ - public function setSignedinUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\SignedinUser::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Anonymous user. - * - * Generated from protobuf field .google.apps.meet.v2.AnonymousUser anonymous_user = 5; - * @return \Google\Apps\Meet\V2\AnonymousUser|null - */ - public function getAnonymousUser() - { - return $this->readOneof(5); - } - - public function hasAnonymousUser() - { - return $this->hasOneof(5); - } - - /** - * Anonymous user. - * - * Generated from protobuf field .google.apps.meet.v2.AnonymousUser anonymous_user = 5; - * @param \Google\Apps\Meet\V2\AnonymousUser $var - * @return $this - */ - public function setAnonymousUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\AnonymousUser::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * User calling from their phone. - * - * Generated from protobuf field .google.apps.meet.v2.PhoneUser phone_user = 6; - * @return \Google\Apps\Meet\V2\PhoneUser|null - */ - public function getPhoneUser() - { - return $this->readOneof(6); - } - - public function hasPhoneUser() - { - return $this->hasOneof(6); - } - - /** - * User calling from their phone. - * - * Generated from protobuf field .google.apps.meet.v2.PhoneUser phone_user = 6; - * @param \Google\Apps\Meet\V2\PhoneUser $var - * @return $this - */ - public function setPhoneUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\PhoneUser::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * - * 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 participant first joined the meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEarliestStartTime() - { - return $this->earliest_start_time; - } - - public function hasEarliestStartTime() - { - return isset($this->earliest_start_time); - } - - public function clearEarliestStartTime() - { - unset($this->earliest_start_time); - } - - /** - * Output only. Time when the participant first joined the meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEarliestStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->earliest_start_time = $var; - - return $this; - } - - /** - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it's an active meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestEndTime() - { - return $this->latest_end_time; - } - - public function hasLatestEndTime() - { - return isset($this->latest_end_time); - } - - public function clearLatestEndTime() - { - unset($this->latest_end_time); - } - - /** - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it's an active meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_end_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getUser() - { - return $this->whichOneof("user"); - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ParticipantSession.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ParticipantSession.php deleted file mode 100644 index e859cdcadc24..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/ParticipantSession.php +++ /dev/null @@ -1,163 +0,0 @@ -google.apps.meet.v2.ParticipantSession - */ -class ParticipantSession extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Session id. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Timestamp when the user session starts. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the user session ends. Unset if the user - * session hasn’t ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Session id. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the user session starts. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the user session ends. Unset if the user - * session hasn’t ended. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Session id. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Session id. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Timestamp when the user session starts. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the user session starts. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the user session ends. Unset if the user - * session hasn’t ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the user session ends. Unset if the user - * session hasn’t ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/PhoneUser.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/PhoneUser.php deleted file mode 100644 index 9789c4084b04..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/PhoneUser.php +++ /dev/null @@ -1,68 +0,0 @@ -google.apps.meet.v2.PhoneUser - */ -class PhoneUser extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Partially redacted user's phone number when calling. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Output only. Partially redacted user's phone number when calling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Partially redacted user's phone number when calling. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Partially redacted user's phone number when calling. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Recording.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Recording.php deleted file mode 100644 index 85a9ecc404a9..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Recording.php +++ /dev/null @@ -1,249 +0,0 @@ -google.apps.meet.v2.Recording - */ -class Recording extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Timestamp when the recording started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the recording ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2\DriveDestination $drive_destination - * Output only. Recording is saved to Google Drive as an MP4 file. The - * `drive_destination` includes the Drive `fileId` that can be used to - * download the file using the `files.get` method of the Drive API. - * @type string $name - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * @type int $state - * Output only. Current state. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the recording started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the recording ended. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Recording is saved to Google Drive as an MP4 file. The - * `drive_destination` includes the Drive `fileId` that can be used to - * download the file using the `files.get` method of the Drive API. - * - * Generated from protobuf field .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Meet\V2\DriveDestination|null - */ - public function getDriveDestination() - { - return $this->readOneof(6); - } - - public function hasDriveDestination() - { - return $this->hasOneof(6); - } - - /** - * Output only. Recording is saved to Google Drive as an MP4 file. The - * `drive_destination` includes the Drive `fileId` that can be used to - * download the file using the `files.get` method of the Drive API. - * - * Generated from protobuf field .google.apps.meet.v2.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Meet\V2\DriveDestination $var - * @return $this - */ - public function setDriveDestination($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\DriveDestination::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * - * 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. Current state. - * - * Generated from protobuf field .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2\Recording\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Timestamp when the recording started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the recording started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the recording ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the recording ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Recording/State.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Recording/State.php deleted file mode 100644 index 644b894e726f..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Recording/State.php +++ /dev/null @@ -1,72 +0,0 @@ -google.apps.meet.v2.Recording.State - */ -class State -{ - /** - * Default, never used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * An active recording session has started. - * - * Generated from protobuf enum STARTED = 1; - */ - const STARTED = 1; - /** - * This recording session has ended, but the recording file hasn't been - * generated yet. - * - * Generated from protobuf enum ENDED = 2; - */ - const ENDED = 2; - /** - * Recording file is generated and ready to download. - * - * Generated from protobuf enum FILE_GENERATED = 3; - */ - const FILE_GENERATED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::STARTED => 'STARTED', - self::ENDED => 'ENDED', - self::FILE_GENERATED => 'FILE_GENERATED', - ]; - - 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(State::class, \Google\Apps\Meet\V2\Recording_State::class); - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SignedinUser.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SignedinUser.php deleted file mode 100644 index 5b042d0097c9..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SignedinUser.php +++ /dev/null @@ -1,116 +0,0 @@ -google.apps.meet.v2.SignedinUser - */ -class SignedinUser extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * - * Generated from protobuf field string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user = ''; - /** - * Output only. For a personal device, it's the user's first name and last - * name. For a robot account, it's the administrator-specified device name. - * For example, "Altostrat Room". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * @type string $display_name - * Output only. For a personal device, it's the user's first name and last - * name. For a robot account, it's the administrator-specified device name. - * For example, "Altostrat Room". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * - * Generated from protobuf field string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUser() - { - return $this->user; - } - - /** - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * - * Generated from protobuf field string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->user = $var; - - return $this; - } - - /** - * Output only. For a personal device, it's the user's first name and last - * name. For a robot account, it's the administrator-specified device name. - * For example, "Altostrat Room". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. For a personal device, it's the user's first name and last - * name. For a robot account, it's the administrator-specified device name. - * For example, "Altostrat Room". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Space.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Space.php deleted file mode 100644 index 2ff86cf88efe..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Space.php +++ /dev/null @@ -1,240 +0,0 @@ -google.apps.meet.v2.Space - */ -class Space extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. URI used to join meetings, such as - * `https://meet.google.com/abc-mnop-xyz`. - * - * Generated from protobuf field string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $meeting_uri = ''; - /** - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can only be used as an alias of the space ID to get the space. - * - * Generated from protobuf field string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $meeting_code = ''; - /** - * Configuration pertaining to the meeting space. - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig config = 5; - */ - protected $config = null; - /** - * Active conference, if it exists. - * - * Generated from protobuf field .google.apps.meet.v2.ActiveConference active_conference = 6; - */ - protected $active_conference = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * @type string $meeting_uri - * Output only. URI used to join meetings, such as - * `https://meet.google.com/abc-mnop-xyz`. - * @type string $meeting_code - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can only be used as an alias of the space ID to get the space. - * @type \Google\Apps\Meet\V2\SpaceConfig $config - * Configuration pertaining to the meeting space. - * @type \Google\Apps\Meet\V2\ActiveConference $active_conference - * Active conference, if it exists. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. URI used to join meetings, such as - * `https://meet.google.com/abc-mnop-xyz`. - * - * Generated from protobuf field string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeetingUri() - { - return $this->meeting_uri; - } - - /** - * Output only. URI used to join meetings, such as - * `https://meet.google.com/abc-mnop-xyz`. - * - * Generated from protobuf field string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeetingUri($var) - { - GPBUtil::checkString($var, True); - $this->meeting_uri = $var; - - return $this; - } - - /** - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can only be used as an alias of the space ID to get the space. - * - * Generated from protobuf field string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeetingCode() - { - return $this->meeting_code; - } - - /** - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can only be used as an alias of the space ID to get the space. - * - * Generated from protobuf field string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeetingCode($var) - { - GPBUtil::checkString($var, True); - $this->meeting_code = $var; - - return $this; - } - - /** - * Configuration pertaining to the meeting space. - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig config = 5; - * @return \Google\Apps\Meet\V2\SpaceConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Configuration pertaining to the meeting space. - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig config = 5; - * @param \Google\Apps\Meet\V2\SpaceConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\SpaceConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Active conference, if it exists. - * - * Generated from protobuf field .google.apps.meet.v2.ActiveConference active_conference = 6; - * @return \Google\Apps\Meet\V2\ActiveConference|null - */ - public function getActiveConference() - { - return $this->active_conference; - } - - public function hasActiveConference() - { - return isset($this->active_conference); - } - - public function clearActiveConference() - { - unset($this->active_conference); - } - - /** - * Active conference, if it exists. - * - * Generated from protobuf field .google.apps.meet.v2.ActiveConference active_conference = 6; - * @param \Google\Apps\Meet\V2\ActiveConference $var - * @return $this - */ - public function setActiveConference($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\ActiveConference::class); - $this->active_conference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig.php deleted file mode 100644 index 4230bc46ef0d..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig.php +++ /dev/null @@ -1,117 +0,0 @@ -google.apps.meet.v2.SpaceConfig - */ -class SpaceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; - */ - protected $access_type = 0; - /** - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; - */ - protected $entry_point_access = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $access_type - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * @type int $entry_point_access - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; - * @return int - */ - public function getAccessType() - { - return $this->access_type; - } - - /** - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig.AccessType access_type = 1; - * @param int $var - * @return $this - */ - public function setAccessType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2\SpaceConfig\AccessType::class); - $this->access_type = $var; - - return $this; - } - - /** - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; - * @return int - */ - public function getEntryPointAccess() - { - return $this->entry_point_access; - } - - /** - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * - * Generated from protobuf field .google.apps.meet.v2.SpaceConfig.EntryPointAccess entry_point_access = 2; - * @param int $var - * @return $this - */ - public function setEntryPointAccess($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2\SpaceConfig\EntryPointAccess::class); - $this->entry_point_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig/AccessType.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig/AccessType.php deleted file mode 100644 index 84f533aa0954..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig/AccessType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.apps.meet.v2.SpaceConfig.AccessType - */ -class AccessType -{ - /** - * Default value specified by the user's organization. - * Note: This is never returned, as the configured access type is - * returned instead. - * - * Generated from protobuf enum ACCESS_TYPE_UNSPECIFIED = 0; - */ - const ACCESS_TYPE_UNSPECIFIED = 0; - /** - * Anyone with the join information (for example, the URL or phone access - * information) can join without knocking. - * - * Generated from protobuf enum OPEN = 1; - */ - const OPEN = 1; - /** - * Members of the host's organization, invited external users, and dial-in - * users can join without knocking. Everyone else must knock. - * - * Generated from protobuf enum TRUSTED = 2; - */ - const TRUSTED = 2; - /** - * Only invitees can join without knocking. Everyone else must knock. - * - * Generated from protobuf enum RESTRICTED = 3; - */ - const RESTRICTED = 3; - - private static $valueToName = [ - self::ACCESS_TYPE_UNSPECIFIED => 'ACCESS_TYPE_UNSPECIFIED', - self::OPEN => 'OPEN', - self::TRUSTED => 'TRUSTED', - self::RESTRICTED => 'RESTRICTED', - ]; - - 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(AccessType::class, \Google\Apps\Meet\V2\SpaceConfig_AccessType::class); - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig/EntryPointAccess.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig/EntryPointAccess.php deleted file mode 100644 index b49c2d5af8f5..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/SpaceConfig/EntryPointAccess.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.meet.v2.SpaceConfig.EntryPointAccess - */ -class EntryPointAccess -{ - /** - * Unused. - * - * Generated from protobuf enum ENTRY_POINT_ACCESS_UNSPECIFIED = 0; - */ - const ENTRY_POINT_ACCESS_UNSPECIFIED = 0; - /** - * All entry points are allowed. - * - * Generated from protobuf enum ALL = 1; - */ - const ALL = 1; - /** - * Only entry points owned by the Google Cloud project that created the - * space can be used to join meetings in this space. Apps can use the Meet - * Embed SDK Web or mobile Meet SDKs to create owned entry points. - * - * Generated from protobuf enum CREATOR_APP_ONLY = 2; - */ - const CREATOR_APP_ONLY = 2; - - private static $valueToName = [ - self::ENTRY_POINT_ACCESS_UNSPECIFIED => 'ENTRY_POINT_ACCESS_UNSPECIFIED', - self::ALL => 'ALL', - self::CREATOR_APP_ONLY => 'CREATOR_APP_ONLY', - ]; - - 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(EntryPointAccess::class, \Google\Apps\Meet\V2\SpaceConfig_EntryPointAccess::class); - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Transcript.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Transcript.php deleted file mode 100644 index 780c1ac0fad8..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Transcript.php +++ /dev/null @@ -1,244 +0,0 @@ -google.apps.meet.v2.Transcript - */ -class Transcript extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Timestamp when the transcript started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the transcript stopped. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2\DocsDestination $docs_destination - * Output only. Where the Google Docs transcript is saved. - * @type string $name - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * @type int $state - * Output only. Current state. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the transcript started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the transcript stopped. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Where the Google Docs transcript is saved. - * - * Generated from protobuf field .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Meet\V2\DocsDestination|null - */ - public function getDocsDestination() - { - return $this->readOneof(6); - } - - public function hasDocsDestination() - { - return $this->hasOneof(6); - } - - /** - * Output only. Where the Google Docs transcript is saved. - * - * Generated from protobuf field .google.apps.meet.v2.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Meet\V2\DocsDestination $var - * @return $this - */ - public function setDocsDestination($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\DocsDestination::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * - * 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. Current state. - * - * Generated from protobuf field .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2\Transcript\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the transcript started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript stopped. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the transcript stopped. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Transcript/State.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Transcript/State.php deleted file mode 100644 index 54a38016f553..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/Transcript/State.php +++ /dev/null @@ -1,72 +0,0 @@ -google.apps.meet.v2.Transcript.State - */ -class State -{ - /** - * Default, never used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * An active transcript session has started. - * - * Generated from protobuf enum STARTED = 1; - */ - const STARTED = 1; - /** - * This transcript session has ended, but the transcript file hasn't been - * generated yet. - * - * Generated from protobuf enum ENDED = 2; - */ - const ENDED = 2; - /** - * Transcript file is generated and ready to download. - * - * Generated from protobuf enum FILE_GENERATED = 3; - */ - const FILE_GENERATED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::STARTED => 'STARTED', - self::ENDED => 'ENDED', - self::FILE_GENERATED => 'FILE_GENERATED', - ]; - - 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(State::class, \Google\Apps\Meet\V2\Transcript_State::class); - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/TranscriptEntry.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/TranscriptEntry.php deleted file mode 100644 index 657c390882ac..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/TranscriptEntry.php +++ /dev/null @@ -1,269 +0,0 @@ -google.apps.meet.v2.TranscriptEntry - */ -class TranscriptEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Refers to the participant who speaks. - * - * Generated from protobuf field string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $participant = ''; - /** - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * - * Generated from protobuf field string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $text = ''; - /** - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * - * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $language_code = ''; - /** - * Output only. Timestamp when the transcript entry started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the transcript entry ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * @type string $participant - * Output only. Refers to the participant who speaks. - * @type string $text - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * @type string $language_code - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the transcript entry started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the transcript entry ended. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * - * 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. Refers to the participant who speaks. - * - * Generated from protobuf field string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getParticipant() - { - return $this->participant; - } - - /** - * Output only. Refers to the participant who speaks. - * - * Generated from protobuf field string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParticipant($var) - { - GPBUtil::checkString($var, True); - $this->participant = $var; - - return $this; - } - - /** - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * - * Generated from protobuf field string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * - * Generated from protobuf field string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * - * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * - * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript entry started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the transcript entry started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript entry ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the transcript entry ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/UpdateSpaceRequest.php b/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/UpdateSpaceRequest.php deleted file mode 100644 index 2bdfc1671c1e..000000000000 --- a/owl-bot-staging/AppsMeet/v2/proto/src/Google/Apps/Meet/V2/UpdateSpaceRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.apps.meet.v2.UpdateSpaceRequest - */ -class UpdateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Space to be updated. - * - * Generated from protobuf field .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Apps\Meet\V2\Space $space Required. Space to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * @return \Google\Apps\Meet\V2\UpdateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Meet\V2\Space $space, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpace($space) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2\Space $space - * Required. Space to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Space to be updated. - * - * Generated from protobuf field .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Meet\V2\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. Space to be updated. - * - * Generated from protobuf field .google.apps.meet.v2.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Meet\V2\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_conference_record.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_conference_record.php deleted file mode 100644 index 61180acbcdf0..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_conference_record.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ConferenceRecord $response */ - $response = $conferenceRecordsServiceClient->getConferenceRecord($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - get_conference_record_sample($formattedName); -} -// [END meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_participant.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_participant.php deleted file mode 100644 index ad2ec6931e4c..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_participant.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Participant $response */ - $response = $conferenceRecordsServiceClient->getParticipant($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::participantName( - '[CONFERENCE_RECORD]', - '[PARTICIPANT]' - ); - - get_participant_sample($formattedName); -} -// [END meet_v2_generated_ConferenceRecordsService_GetParticipant_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_participant_session.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_participant_session.php deleted file mode 100644 index acf23cf864bc..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_participant_session.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ParticipantSession $response */ - $response = $conferenceRecordsServiceClient->getParticipantSession($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::participantSessionName( - '[CONFERENCE_RECORD]', - '[PARTICIPANT]', - '[PARTICIPANT_SESSION]' - ); - - get_participant_session_sample($formattedName); -} -// [END meet_v2_generated_ConferenceRecordsService_GetParticipantSession_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_recording.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_recording.php deleted file mode 100644 index ec784301f85f..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_recording.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Recording $response */ - $response = $conferenceRecordsServiceClient->getRecording($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::recordingName( - '[CONFERENCE_RECORD]', - '[RECORDING]' - ); - - get_recording_sample($formattedName); -} -// [END meet_v2_generated_ConferenceRecordsService_GetRecording_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_transcript.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_transcript.php deleted file mode 100644 index 50a416dc9d6f..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_transcript.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Transcript $response */ - $response = $conferenceRecordsServiceClient->getTranscript($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::transcriptName( - '[CONFERENCE_RECORD]', - '[TRANSCRIPT]' - ); - - get_transcript_sample($formattedName); -} -// [END meet_v2_generated_ConferenceRecordsService_GetTranscript_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_transcript_entry.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_transcript_entry.php deleted file mode 100644 index 4616553ce469..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/get_transcript_entry.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TranscriptEntry $response */ - $response = $conferenceRecordsServiceClient->getTranscriptEntry($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::transcriptEntryName( - '[CONFERENCE_RECORD]', - '[TRANSCRIPT]', - '[ENTRY]' - ); - - get_transcript_entry_sample($formattedName); -} -// [END meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_conference_records.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_conference_records.php deleted file mode 100644 index 249e794704c2..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_conference_records.php +++ /dev/null @@ -1,63 +0,0 @@ -listConferenceRecords($request); - - /** @var ConferenceRecord $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_participant_sessions.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_participant_sessions.php deleted file mode 100644 index b1ae44b02ecc..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_participant_sessions.php +++ /dev/null @@ -1,84 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listParticipantSessions($request); - - /** @var ParticipantSession $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::participantName( - '[CONFERENCE_RECORD]', - '[PARTICIPANT]' - ); - - list_participant_sessions_sample($formattedParent); -} -// [END meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_participants.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_participants.php deleted file mode 100644 index 344c2ec09698..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_participants.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listParticipants($request); - - /** @var Participant $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - list_participants_sample($formattedParent); -} -// [END meet_v2_generated_ConferenceRecordsService_ListParticipants_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_recordings.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_recordings.php deleted file mode 100644 index cc8a6dba923c..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_recordings.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listRecordings($request); - - /** @var Recording $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - list_recordings_sample($formattedParent); -} -// [END meet_v2_generated_ConferenceRecordsService_ListRecordings_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_transcript_entries.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_transcript_entries.php deleted file mode 100644 index b555b0695f18..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_transcript_entries.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listTranscriptEntries($request); - - /** @var TranscriptEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::transcriptName( - '[CONFERENCE_RECORD]', - '[TRANSCRIPT]' - ); - - list_transcript_entries_sample($formattedParent); -} -// [END meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_transcripts.php b/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_transcripts.php deleted file mode 100644 index faf747071f1c..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/ConferenceRecordsServiceClient/list_transcripts.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listTranscripts($request); - - /** @var Transcript $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - list_transcripts_sample($formattedParent); -} -// [END meet_v2_generated_ConferenceRecordsService_ListTranscripts_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/create_space.php b/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/create_space.php deleted file mode 100644 index 6bf1efd6f128..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/create_space.php +++ /dev/null @@ -1,57 +0,0 @@ -createSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END meet_v2_generated_SpacesService_CreateSpace_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/end_active_conference.php b/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/end_active_conference.php deleted file mode 100644 index 5c19f9d55e79..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/end_active_conference.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $spacesServiceClient->endActiveConference($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SpacesServiceClient::spaceName('[SPACE]'); - - end_active_conference_sample($formattedName); -} -// [END meet_v2_generated_SpacesService_EndActiveConference_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/get_space.php b/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/get_space.php deleted file mode 100644 index daf88d156dfb..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/get_space.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $spacesServiceClient->getSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SpacesServiceClient::spaceName('[SPACE]'); - - get_space_sample($formattedName); -} -// [END meet_v2_generated_SpacesService_GetSpace_sync] diff --git a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/update_space.php b/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/update_space.php deleted file mode 100644 index a9552a740d85..000000000000 --- a/owl-bot-staging/AppsMeet/v2/samples/V2/SpacesServiceClient/update_space.php +++ /dev/null @@ -1,59 +0,0 @@ -setSpace($space); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $spacesServiceClient->updateSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END meet_v2_generated_SpacesService_UpdateSpace_sync] diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/Client/ConferenceRecordsServiceClient.php b/owl-bot-staging/AppsMeet/v2/src/V2/Client/ConferenceRecordsServiceClient.php deleted file mode 100644 index 5bd67cb62c99..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/Client/ConferenceRecordsServiceClient.php +++ /dev/null @@ -1,676 +0,0 @@ - getConferenceRecordAsync(GetConferenceRecordRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantAsync(GetParticipantRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantSessionAsync(GetParticipantSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRecordingAsync(GetRecordingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptAsync(GetTranscriptRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptEntryAsync(GetTranscriptEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConferenceRecordsAsync(ListConferenceRecordsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantSessionsAsync(ListParticipantSessionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantsAsync(ListParticipantsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRecordingsAsync(ListRecordingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptEntriesAsync(ListTranscriptEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptsAsync(ListTranscriptsRequest $request, array $optionalArgs = []) - */ -final class ConferenceRecordsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.apps.meet.v2.ConferenceRecordsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'meet.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'meet.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/meetings.space.created', - 'https://www.googleapis.com/auth/meetings.space.readonly', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/conference_records_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/conference_records_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/conference_records_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/conference_records_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conference_record resource. - * - * @param string $conferenceRecord - * - * @return string The formatted conference_record resource. - */ - public static function conferenceRecordName(string $conferenceRecord): string - { - return self::getPathTemplate('conferenceRecord')->render([ - 'conference_record' => $conferenceRecord, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a participant - * resource. - * - * @param string $conferenceRecord - * @param string $participant - * - * @return string The formatted participant resource. - */ - public static function participantName(string $conferenceRecord, string $participant): string - { - return self::getPathTemplate('participant')->render([ - 'conference_record' => $conferenceRecord, - 'participant' => $participant, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * participant_session resource. - * - * @param string $conferenceRecord - * @param string $participant - * @param string $participantSession - * - * @return string The formatted participant_session resource. - */ - public static function participantSessionName(string $conferenceRecord, string $participant, string $participantSession): string - { - return self::getPathTemplate('participantSession')->render([ - 'conference_record' => $conferenceRecord, - 'participant' => $participant, - 'participant_session' => $participantSession, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a recording - * resource. - * - * @param string $conferenceRecord - * @param string $recording - * - * @return string The formatted recording resource. - */ - public static function recordingName(string $conferenceRecord, string $recording): string - { - return self::getPathTemplate('recording')->render([ - 'conference_record' => $conferenceRecord, - 'recording' => $recording, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a transcript - * resource. - * - * @param string $conferenceRecord - * @param string $transcript - * - * @return string The formatted transcript resource. - */ - public static function transcriptName(string $conferenceRecord, string $transcript): string - { - return self::getPathTemplate('transcript')->render([ - 'conference_record' => $conferenceRecord, - 'transcript' => $transcript, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * transcript_entry resource. - * - * @param string $conferenceRecord - * @param string $transcript - * @param string $entry - * - * @return string The formatted transcript_entry resource. - */ - public static function transcriptEntryName(string $conferenceRecord, string $transcript, string $entry): string - { - return self::getPathTemplate('transcriptEntry')->render([ - 'conference_record' => $conferenceRecord, - 'transcript' => $transcript, - 'entry' => $entry, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - conferenceRecord: conferenceRecords/{conference_record} - * - participant: conferenceRecords/{conference_record}/participants/{participant} - * - participantSession: conferenceRecords/{conference_record}/participants/{participant}/participantSessions/{participant_session} - * - recording: conferenceRecords/{conference_record}/recordings/{recording} - * - transcript: conferenceRecords/{conference_record}/transcripts/{transcript} - * - transcriptEntry: conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'meet.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Gets a conference record by conference ID. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getConferenceRecordAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/get_conference_record.php - * - * @param GetConferenceRecordRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConferenceRecord - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConferenceRecord(GetConferenceRecordRequest $request, array $callOptions = []): ConferenceRecord - { - return $this->startApiCall('GetConferenceRecord', $request, $callOptions)->wait(); - } - - /** - * Gets a participant by participant ID. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getParticipantAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/get_participant.php - * - * @param GetParticipantRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Participant - * - * @throws ApiException Thrown if the API call fails. - */ - public function getParticipant(GetParticipantRequest $request, array $callOptions = []): Participant - { - return $this->startApiCall('GetParticipant', $request, $callOptions)->wait(); - } - - /** - * Gets a participant session by participant session ID. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getParticipantSessionAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/get_participant_session.php - * - * @param GetParticipantSessionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ParticipantSession - * - * @throws ApiException Thrown if the API call fails. - */ - public function getParticipantSession(GetParticipantSessionRequest $request, array $callOptions = []): ParticipantSession - { - return $this->startApiCall('GetParticipantSession', $request, $callOptions)->wait(); - } - - /** - * Gets a recording by recording ID. - * - * The async variant is {@see ConferenceRecordsServiceClient::getRecordingAsync()} - * . - * - * @example samples/V2/ConferenceRecordsServiceClient/get_recording.php - * - * @param GetRecordingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Recording - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRecording(GetRecordingRequest $request, array $callOptions = []): Recording - { - return $this->startApiCall('GetRecording', $request, $callOptions)->wait(); - } - - /** - * Gets a transcript by transcript ID. - * - * The async variant is {@see ConferenceRecordsServiceClient::getTranscriptAsync()} - * . - * - * @example samples/V2/ConferenceRecordsServiceClient/get_transcript.php - * - * @param GetTranscriptRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Transcript - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTranscript(GetTranscriptRequest $request, array $callOptions = []): Transcript - { - return $this->startApiCall('GetTranscript', $request, $callOptions)->wait(); - } - - /** - * Gets a `TranscriptEntry` resource by entry ID. - * - * Note: The transcript entries returned by the Google Meet API might not - * match the transcription found in the Google Docs transcript file. This can - * occur when the Google Docs transcript file is modified after generation. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getTranscriptEntryAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/get_transcript_entry.php - * - * @param GetTranscriptEntryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TranscriptEntry - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTranscriptEntry(GetTranscriptEntryRequest $request, array $callOptions = []): TranscriptEntry - { - return $this->startApiCall('GetTranscriptEntry', $request, $callOptions)->wait(); - } - - /** - * Lists the conference records. By default, ordered by start time and in - * descending order. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listConferenceRecordsAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/list_conference_records.php - * - * @param ListConferenceRecordsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listConferenceRecords(ListConferenceRecordsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConferenceRecords', $request, $callOptions); - } - - /** - * Lists the participant sessions of a participant in a conference record. By - * default, ordered by join time and in descending order. This API supports - * `fields` as standard parameters like every other API. However, when the - * `fields` request parameter is omitted this API defaults to - * `'participantsessions/*, next_page_token'`. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listParticipantSessionsAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/list_participant_sessions.php - * - * @param ListParticipantSessionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listParticipantSessions(ListParticipantSessionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListParticipantSessions', $request, $callOptions); - } - - /** - * Lists the participants in a conference record. By default, ordered by join - * time and in descending order. This API supports `fields` as standard - * parameters like every other API. However, when the `fields` request - * parameter is omitted, this API defaults to `'participants/*, - * next_page_token'`. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listParticipantsAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/list_participants.php - * - * @param ListParticipantsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listParticipants(ListParticipantsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListParticipants', $request, $callOptions); - } - - /** - * Lists the recording resources from the conference record. By default, - * ordered by start time and in ascending order. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listRecordingsAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/list_recordings.php - * - * @param ListRecordingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRecordings(ListRecordingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRecordings', $request, $callOptions); - } - - /** - * Lists the structured transcript entries per transcript. By default, ordered - * by start time and in ascending order. - * - * Note: The transcript entries returned by the Google Meet API might not - * match the transcription found in the Google Docs transcript file. This can - * occur when the Google Docs transcript file is modified after generation. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listTranscriptEntriesAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/list_transcript_entries.php - * - * @param ListTranscriptEntriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listTranscriptEntries(ListTranscriptEntriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTranscriptEntries', $request, $callOptions); - } - - /** - * Lists the set of transcripts from the conference record. By default, - * ordered by start time and in ascending order. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listTranscriptsAsync()} . - * - * @example samples/V2/ConferenceRecordsServiceClient/list_transcripts.php - * - * @param ListTranscriptsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listTranscripts(ListTranscriptsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTranscripts', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/Client/SpacesServiceClient.php b/owl-bot-staging/AppsMeet/v2/src/V2/Client/SpacesServiceClient.php deleted file mode 100644 index cd80b2f3ea4b..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/Client/SpacesServiceClient.php +++ /dev/null @@ -1,334 +0,0 @@ - createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface endActiveConferenceAsync(EndActiveConferenceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) - */ -final class SpacesServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.apps.meet.v2.SpacesService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'meet.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'meet.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/meetings.space.created', - 'https://www.googleapis.com/auth/meetings.space.readonly', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/spaces_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/spaces_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/spaces_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/spaces_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conference_record resource. - * - * @param string $conferenceRecord - * - * @return string The formatted conference_record resource. - */ - public static function conferenceRecordName(string $conferenceRecord): string - { - return self::getPathTemplate('conferenceRecord')->render([ - 'conference_record' => $conferenceRecord, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a space - * resource. - * - * @param string $space - * - * @return string The formatted space resource. - */ - public static function spaceName(string $space): string - { - return self::getPathTemplate('space')->render([ - 'space' => $space, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - conferenceRecord: conferenceRecords/{conference_record} - * - space: spaces/{space} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'meet.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a space. - * - * The async variant is {@see SpacesServiceClient::createSpaceAsync()} . - * - * @example samples/V2/SpacesServiceClient/create_space.php - * - * @param CreateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSpace(CreateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('CreateSpace', $request, $callOptions)->wait(); - } - - /** - * Ends an active conference (if there's one). - * - * The async variant is {@see SpacesServiceClient::endActiveConferenceAsync()} . - * - * @example samples/V2/SpacesServiceClient/end_active_conference.php - * - * @param EndActiveConferenceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function endActiveConference(EndActiveConferenceRequest $request, array $callOptions = []): void - { - $this->startApiCall('EndActiveConference', $request, $callOptions)->wait(); - } - - /** - * Gets a space by `space_id` or `meeting_code`. - * - * The async variant is {@see SpacesServiceClient::getSpaceAsync()} . - * - * @example samples/V2/SpacesServiceClient/get_space.php - * - * @param GetSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSpace(GetSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('GetSpace', $request, $callOptions)->wait(); - } - - /** - * Updates a space. - * - * The async variant is {@see SpacesServiceClient::updateSpaceAsync()} . - * - * @example samples/V2/SpacesServiceClient/update_space.php - * - * @param UpdateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSpace(UpdateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('UpdateSpace', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/gapic_metadata.json b/owl-bot-staging/AppsMeet/v2/src/V2/gapic_metadata.json deleted file mode 100644 index 47e570b1f975..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.apps.meet.v2", - "libraryPackage": "Google\\Apps\\Meet\\V2", - "services": { - "SpacesService": { - "clients": { - "grpc": { - "libraryClient": "SpacesServiceGapicClient", - "rpcs": { - "CreateSpace": { - "methods": [ - "createSpace" - ] - }, - "EndActiveConference": { - "methods": [ - "endActiveConference" - ] - }, - "GetSpace": { - "methods": [ - "getSpace" - ] - }, - "UpdateSpace": { - "methods": [ - "updateSpace" - ] - } - } - } - } - }, - "ConferenceRecordsService": { - "clients": { - "grpc": { - "libraryClient": "ConferenceRecordsServiceGapicClient", - "rpcs": { - "GetConferenceRecord": { - "methods": [ - "getConferenceRecord" - ] - }, - "GetParticipant": { - "methods": [ - "getParticipant" - ] - }, - "GetParticipantSession": { - "methods": [ - "getParticipantSession" - ] - }, - "GetRecording": { - "methods": [ - "getRecording" - ] - }, - "GetTranscript": { - "methods": [ - "getTranscript" - ] - }, - "GetTranscriptEntry": { - "methods": [ - "getTranscriptEntry" - ] - }, - "ListConferenceRecords": { - "methods": [ - "listConferenceRecords" - ] - }, - "ListParticipantSessions": { - "methods": [ - "listParticipantSessions" - ] - }, - "ListParticipants": { - "methods": [ - "listParticipants" - ] - }, - "ListRecordings": { - "methods": [ - "listRecordings" - ] - }, - "ListTranscriptEntries": { - "methods": [ - "listTranscriptEntries" - ] - }, - "ListTranscripts": { - "methods": [ - "listTranscripts" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_client_config.json b/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_client_config.json deleted file mode 100644 index 9e98eff43d7f..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_client_config.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "interfaces": { - "google.apps.meet.v2.ConferenceRecordsService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetConferenceRecord": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetParticipant": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetParticipantSession": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRecording": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTranscript": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTranscriptEntry": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConferenceRecords": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListParticipantSessions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListParticipants": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRecordings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTranscriptEntries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTranscripts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_descriptor_config.php b/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_descriptor_config.php deleted file mode 100644 index 3efbcfb4523a..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_descriptor_config.php +++ /dev/null @@ -1,220 +0,0 @@ - [ - 'google.apps.meet.v2.ConferenceRecordsService' => [ - 'GetConferenceRecord' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ConferenceRecord', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipant' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\Participant', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipantSession' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ParticipantSession', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRecording' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\Recording', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscript' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\Transcript', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscriptEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\TranscriptEntry', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListConferenceRecords' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConferenceRecords', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ListConferenceRecordsResponse', - ], - 'ListParticipantSessions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getParticipantSessions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ListParticipantSessionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListParticipants' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getParticipants', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ListParticipantsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRecordings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRecordings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ListRecordingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscriptEntries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTranscriptEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ListTranscriptEntriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscripts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTranscripts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2\ListTranscriptsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'conferenceRecord' => 'conferenceRecords/{conference_record}', - 'participant' => 'conferenceRecords/{conference_record}/participants/{participant}', - 'participantSession' => 'conferenceRecords/{conference_record}/participants/{participant}/participantSessions/{participant_session}', - 'recording' => 'conferenceRecords/{conference_record}/recordings/{recording}', - 'transcript' => 'conferenceRecords/{conference_record}/transcripts/{transcript}', - 'transcriptEntry' => 'conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_rest_client_config.php b/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_rest_client_config.php deleted file mode 100644 index 585fcfc631cd..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/resources/conference_records_service_rest_client_config.php +++ /dev/null @@ -1,154 +0,0 @@ - [ - 'google.apps.meet.v2.ConferenceRecordsService' => [ - 'GetConferenceRecord' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=conferenceRecords/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipant' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=conferenceRecords/*/participants/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipantSession' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=conferenceRecords/*/participants/*/participantSessions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRecording' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=conferenceRecords/*/recordings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscript' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=conferenceRecords/*/transcripts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscriptEntry' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=conferenceRecords/*/transcripts/*/entries/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListConferenceRecords' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/conferenceRecords', - ], - 'ListParticipantSessions' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=conferenceRecords/*/participants/*}/participantSessions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListParticipants' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=conferenceRecords/*}/participants', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRecordings' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=conferenceRecords/*}/recordings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscriptEntries' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=conferenceRecords/*/transcripts/*}/entries', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscripts' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=conferenceRecords/*}/transcripts', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_client_config.json b/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_client_config.json deleted file mode 100644 index 0afaf95a93f7..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_client_config.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "interfaces": { - "google.apps.meet.v2.SpacesService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateSpace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "EndActiveConference": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetSpace": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSpace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_descriptor_config.php b/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_descriptor_config.php deleted file mode 100644 index 145927fac3a8..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_descriptor_config.php +++ /dev/null @@ -1,73 +0,0 @@ - [ - 'google.apps.meet.v2.SpacesService' => [ - 'CreateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\Space', - ], - 'EndActiveConference' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\Space', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2\Space', - 'headerParams' => [ - [ - 'keyName' => 'space.name', - 'fieldAccessors' => [ - 'getSpace', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'conferenceRecord' => 'conferenceRecords/{conference_record}', - 'space' => 'spaces/{space}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_rest_client_config.php b/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_rest_client_config.php deleted file mode 100644 index e60c71a3cba7..000000000000 --- a/owl-bot-staging/AppsMeet/v2/src/V2/resources/spaces_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.apps.meet.v2.SpacesService' => [ - 'CreateSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/spaces', - 'body' => 'space', - ], - 'EndActiveConference' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=spaces/*}:endActiveConference', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=spaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateSpace' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{space.name=spaces/*}', - 'body' => 'space', - 'placeholders' => [ - 'space.name' => [ - 'getters' => [ - 'getSpace', - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppsMeet/v2/tests/Unit/V2/Client/ConferenceRecordsServiceClientTest.php b/owl-bot-staging/AppsMeet/v2/tests/Unit/V2/Client/ConferenceRecordsServiceClientTest.php deleted file mode 100644 index 04ea0f1eeafc..000000000000 --- a/owl-bot-staging/AppsMeet/v2/tests/Unit/V2/Client/ConferenceRecordsServiceClientTest.php +++ /dev/null @@ -1,933 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ConferenceRecordsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ConferenceRecordsServiceClient($options); - } - - /** @test */ - public function getConferenceRecordTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $space = 'space109637894'; - $expectedResponse = new ConferenceRecord(); - $expectedResponse->setName($name2); - $expectedResponse->setSpace($space); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new GetConferenceRecordRequest()) - ->setName($formattedName); - $response = $gapicClient->getConferenceRecord($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/GetConferenceRecord', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConferenceRecordExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new GetConferenceRecordRequest()) - ->setName($formattedName); - try { - $gapicClient->getConferenceRecord($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Participant(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new GetParticipantRequest()) - ->setName($formattedName); - $response = $gapicClient->getParticipant($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/GetParticipant', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new GetParticipantRequest()) - ->setName($formattedName); - try { - $gapicClient->getParticipant($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantSessionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new ParticipantSession(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->participantSessionName('[CONFERENCE_RECORD]', '[PARTICIPANT]', '[PARTICIPANT_SESSION]'); - $request = (new GetParticipantSessionRequest()) - ->setName($formattedName); - $response = $gapicClient->getParticipantSession($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/GetParticipantSession', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantSessionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->participantSessionName('[CONFERENCE_RECORD]', '[PARTICIPANT]', '[PARTICIPANT_SESSION]'); - $request = (new GetParticipantSessionRequest()) - ->setName($formattedName); - try { - $gapicClient->getParticipantSession($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecordingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Recording(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->recordingName('[CONFERENCE_RECORD]', '[RECORDING]'); - $request = (new GetRecordingRequest()) - ->setName($formattedName); - $response = $gapicClient->getRecording($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/GetRecording', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecordingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->recordingName('[CONFERENCE_RECORD]', '[RECORDING]'); - $request = (new GetRecordingRequest()) - ->setName($formattedName); - try { - $gapicClient->getRecording($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Transcript(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new GetTranscriptRequest()) - ->setName($formattedName); - $response = $gapicClient->getTranscript($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/GetTranscript', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new GetTranscriptRequest()) - ->setName($formattedName); - try { - $gapicClient->getTranscript($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $participant = 'participant767422259'; - $text = 'text3556653'; - $languageCode = 'languageCode-412800396'; - $expectedResponse = new TranscriptEntry(); - $expectedResponse->setName($name2); - $expectedResponse->setParticipant($participant); - $expectedResponse->setText($text); - $expectedResponse->setLanguageCode($languageCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->transcriptEntryName('[CONFERENCE_RECORD]', '[TRANSCRIPT]', '[ENTRY]'); - $request = (new GetTranscriptEntryRequest()) - ->setName($formattedName); - $response = $gapicClient->getTranscriptEntry($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/GetTranscriptEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptEntryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->transcriptEntryName('[CONFERENCE_RECORD]', '[TRANSCRIPT]', '[ENTRY]'); - $request = (new GetTranscriptEntryRequest()) - ->setName($formattedName); - try { - $gapicClient->getTranscriptEntry($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConferenceRecordsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conferenceRecordsElement = new ConferenceRecord(); - $conferenceRecords = [ - $conferenceRecordsElement, - ]; - $expectedResponse = new ListConferenceRecordsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConferenceRecords($conferenceRecords); - $transport->addResponse($expectedResponse); - $request = new ListConferenceRecordsRequest(); - $response = $gapicClient->listConferenceRecords($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConferenceRecords()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/ListConferenceRecords', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConferenceRecordsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListConferenceRecordsRequest(); - try { - $gapicClient->listConferenceRecords($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantSessionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $participantSessionsElement = new ParticipantSession(); - $participantSessions = [ - $participantSessionsElement, - ]; - $expectedResponse = new ListParticipantSessionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setParticipantSessions($participantSessions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new ListParticipantSessionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listParticipantSessions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getParticipantSessions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/ListParticipantSessions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantSessionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new ListParticipantSessionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listParticipantSessions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $participantsElement = new Participant(); - $participants = [ - $participantsElement, - ]; - $expectedResponse = new ListParticipantsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setParticipants($participants); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListParticipantsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listParticipants($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getParticipants()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/ListParticipants', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListParticipantsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listParticipants($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecordingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $recordingsElement = new Recording(); - $recordings = [ - $recordingsElement, - ]; - $expectedResponse = new ListRecordingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRecordings($recordings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListRecordingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRecordings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRecordings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/ListRecordings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecordingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListRecordingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRecordings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptEntriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $transcriptEntriesElement = new TranscriptEntry(); - $transcriptEntries = [ - $transcriptEntriesElement, - ]; - $expectedResponse = new ListTranscriptEntriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTranscriptEntries($transcriptEntries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new ListTranscriptEntriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTranscriptEntries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTranscriptEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/ListTranscriptEntries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptEntriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new ListTranscriptEntriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTranscriptEntries($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $transcriptsElement = new Transcript(); - $transcripts = [ - $transcriptsElement, - ]; - $expectedResponse = new ListTranscriptsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTranscripts($transcripts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListTranscriptsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTranscripts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTranscripts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/ListTranscripts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListTranscriptsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTranscripts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConferenceRecordAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $space = 'space109637894'; - $expectedResponse = new ConferenceRecord(); - $expectedResponse->setName($name2); - $expectedResponse->setSpace($space); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new GetConferenceRecordRequest()) - ->setName($formattedName); - $response = $gapicClient->getConferenceRecordAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.ConferenceRecordsService/GetConferenceRecord', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppsMeet/v2/tests/Unit/V2/Client/SpacesServiceClientTest.php b/owl-bot-staging/AppsMeet/v2/tests/Unit/V2/Client/SpacesServiceClientTest.php deleted file mode 100644 index 44622d714f43..000000000000 --- a/owl-bot-staging/AppsMeet/v2/tests/Unit/V2/Client/SpacesServiceClientTest.php +++ /dev/null @@ -1,351 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SpacesServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SpacesServiceClient($options); - } - - /** @test */ - public function createSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - $request = new CreateSpaceRequest(); - $response = $gapicClient->createSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.SpacesService/CreateSpace', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CreateSpaceRequest(); - try { - $gapicClient->createSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function endActiveConferenceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new EndActiveConferenceRequest()) - ->setName($formattedName); - $gapicClient->endActiveConference($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.SpacesService/EndActiveConference', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function endActiveConferenceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new EndActiveConferenceRequest()) - ->setName($formattedName); - try { - $gapicClient->endActiveConference($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name2); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.SpacesService/GetSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space); - $response = $gapicClient->updateSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.SpacesService/UpdateSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space); - try { - $gapicClient->updateSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - $request = new CreateSpaceRequest(); - $response = $gapicClient->createSpaceAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2.SpacesService/CreateSpace', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/GPBMetadata/Google/Apps/Meet/V2Beta/Resource.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/GPBMetadata/Google/Apps/Meet/V2Beta/Resource.php deleted file mode 100644 index ba7692b2461d..000000000000 Binary files a/owl-bot-staging/AppsMeet/v2beta/proto/src/GPBMetadata/Google/Apps/Meet/V2Beta/Resource.php and /dev/null differ diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/GPBMetadata/Google/Apps/Meet/V2Beta/Service.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/GPBMetadata/Google/Apps/Meet/V2Beta/Service.php deleted file mode 100644 index 4f567b1bd4d9..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/GPBMetadata/Google/Apps/Meet/V2Beta/Service.php +++ /dev/null @@ -1,134 +0,0 @@ -internalAddGeneratedFile( - ' -, -%google/apps/meet/v2beta/service.protogoogle.apps.meet.v2betagoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto&google/apps/meet/v2beta/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"C -CreateSpaceRequest- -space ( 2.google.apps.meet.v2beta.Space"B -GetSpaceRequest/ -name ( B!AA -meet.googleapis.com/Space"~ -UpdateSpaceRequest2 -space ( 2.google.apps.meet.v2beta.SpaceBA4 - update_mask ( 2.google.protobuf.FieldMaskBA"M -EndActiveConferenceRequest/ -name ( B!AA -meet.googleapis.com/Space"X -GetConferenceRecordRequest: -name ( B,AA& -$meet.googleapis.com/ConferenceRecord"d -ListConferenceRecordsRequest - page_size (BA - -page_token ( BA -filter ( BA" -ListConferenceRecordsResponseE -conference_records ( 2).google.apps.meet.v2beta.ConferenceRecord -next_page_token ( "N -GetParticipantRequest5 -name ( B\'AA! -meet.googleapis.com/Participant" -ListParticipantsRequest7 -parent ( B\'AA!meet.googleapis.com/Participant - page_size ( - -page_token (  -filter ( BA" -ListParticipantsResponse: - participants ( 2$.google.apps.meet.v2beta.Participant -next_page_token (  - -total_size ("\\ -GetParticipantSessionRequest< -name ( B.AA( -&meet.googleapis.com/ParticipantSession" -ListParticipantSessionsRequest> -parent ( B.AA(&meet.googleapis.com/ParticipantSession - page_size (BA - -page_token ( BA -filter ( BA" -ListParticipantSessionsResponseI -participant_sessions ( 2+.google.apps.meet.v2beta.ParticipantSession -next_page_token ( "J -GetRecordingRequest3 -name ( B%AA -meet.googleapis.com/Recording"u -ListRecordingsRequest5 -parent ( B%AAmeet.googleapis.com/Recording - page_size ( - -page_token ( "i -ListRecordingsResponse6 - -recordings ( 2".google.apps.meet.v2beta.Recording -next_page_token ( "L -GetTranscriptRequest4 -name ( B&AA -meet.googleapis.com/Transcript"w -ListTranscriptsRequest6 -parent ( B&AA meet.googleapis.com/Transcript - page_size ( - -page_token ( "l -ListTranscriptsResponse8 - transcripts ( 2#.google.apps.meet.v2beta.Transcript -next_page_token ( "V -GetTranscriptEntryRequest9 -name ( B+AA% -#meet.googleapis.com/TranscriptEntry" -ListTranscriptEntriesRequest; -parent ( B+AA%#meet.googleapis.com/TranscriptEntry - page_size ( - -page_token ( "~ -ListTranscriptEntriesResponseD -transcript_entries ( 2(.google.apps.meet.v2beta.TranscriptEntry -next_page_token ( 2 - SpacesService - CreateSpace+.google.apps.meet.v2beta.CreateSpaceRequest.google.apps.meet.v2beta.Space"%Aspace"/v2beta/spaces:space| -GetSpace(.google.apps.meet.v2beta.GetSpaceRequest.google.apps.meet.v2beta.Space"&Aname/v2beta/{name=spaces/*} - UpdateSpace+.google.apps.meet.v2beta.UpdateSpaceRequest.google.apps.meet.v2beta.Space"@Aspace,update_mask&2/v2beta/{space.name=spaces/*}:space -EndActiveConference3.google.apps.meet.v2beta.EndActiveConferenceRequest.google.protobuf.Empty"=Aname0"+/v2beta/{name=spaces/*}:endActiveConference:*Ameet.googleapis.com2 -ConferenceRecordsService -GetConferenceRecord3.google.apps.meet.v2beta.GetConferenceRecordRequest).google.apps.meet.v2beta.ConferenceRecord"1Aname$"/v2beta/{name=conferenceRecords/*} -ListConferenceRecords5.google.apps.meet.v2beta.ListConferenceRecordsRequest6.google.apps.meet.v2beta.ListConferenceRecordsResponse"!/v2beta/conferenceRecords -GetParticipant..google.apps.meet.v2beta.GetParticipantRequest$.google.apps.meet.v2beta.Participant"@Aname31/v2beta/{name=conferenceRecords/*/participants/*} -ListParticipants0.google.apps.meet.v2beta.ListParticipantsRequest1.google.apps.meet.v2beta.ListParticipantsResponse"BAparent31/v2beta/{parent=conferenceRecords/*}/participants -GetParticipantSession5.google.apps.meet.v2beta.GetParticipantSessionRequest+.google.apps.meet.v2beta.ParticipantSession"VAnameIG/v2beta/{name=conferenceRecords/*/participants/*/participantSessions/*} -ListParticipantSessions7.google.apps.meet.v2beta.ListParticipantSessionsRequest8.google.apps.meet.v2beta.ListParticipantSessionsResponse"XAparentIG/v2beta/{parent=conferenceRecords/*/participants/*}/participantSessions - GetRecording,.google.apps.meet.v2beta.GetRecordingRequest".google.apps.meet.v2beta.Recording">Aname1//v2beta/{name=conferenceRecords/*/recordings/*} -ListRecordings..google.apps.meet.v2beta.ListRecordingsRequest/.google.apps.meet.v2beta.ListRecordingsResponse"@Aparent1//v2beta/{parent=conferenceRecords/*}/recordings - GetTranscript-.google.apps.meet.v2beta.GetTranscriptRequest#.google.apps.meet.v2beta.Transcript"?Aname20/v2beta/{name=conferenceRecords/*/transcripts/*} -ListTranscripts/.google.apps.meet.v2beta.ListTranscriptsRequest0.google.apps.meet.v2beta.ListTranscriptsResponse"AAparent20/v2beta/{parent=conferenceRecords/*}/transcripts -GetTranscriptEntry2.google.apps.meet.v2beta.GetTranscriptEntryRequest(.google.apps.meet.v2beta.TranscriptEntry"IAname<:/v2beta/{name=conferenceRecords/*/transcripts/*/entries/*} -ListTranscriptEntries5.google.apps.meet.v2beta.ListTranscriptEntriesRequest6.google.apps.meet.v2beta.ListTranscriptEntriesResponse"KAparent<:/v2beta/{parent=conferenceRecords/*/transcripts/*}/entriesAmeet.googleapis.comB -com.google.apps.meet.v2betaB ServiceProtoPZ5cloud.google.com/go/apps/meet/apiv2beta/meetpb;meetpbGoogle.Apps.Meet.V2BetaGoogle\\Apps\\Meet\\V2betaGoogle::Apps::Meet::V2betabproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ActiveConference.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ActiveConference.php deleted file mode 100644 index fed80f8c29e4..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ActiveConference.php +++ /dev/null @@ -1,75 +0,0 @@ -google.apps.meet.v2beta.ActiveConference - */ -class ActiveConference extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * - * Generated from protobuf field string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $conference_record = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $conference_record - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * - * Generated from protobuf field string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getConferenceRecord() - { - return $this->conference_record; - } - - /** - * Output only. Reference to 'ConferenceRecord' resource. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * - * Generated from protobuf field string conference_record = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setConferenceRecord($var) - { - GPBUtil::checkString($var, True); - $this->conference_record = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/AnonymousUser.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/AnonymousUser.php deleted file mode 100644 index dd7d65405b24..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/AnonymousUser.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.meet.v2beta.AnonymousUser - */ -class AnonymousUser extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. User provided name when they join a conference anonymously. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Output only. User provided name when they join a conference anonymously. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. User provided name when they join a conference anonymously. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. User provided name when they join a conference anonymously. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ConferenceRecord.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ConferenceRecord.php deleted file mode 100644 index 95c6047f6a20..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ConferenceRecord.php +++ /dev/null @@ -1,254 +0,0 @@ -google.apps.meet.v2beta.ConferenceRecord - */ -class ConferenceRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Timestamp when the conference started, always set. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server enforced expire time for when this conference record - * resource is deleted. The resource is deleted 30 days after the conference - * ends. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Output only. The space where the conference was held. - * - * Generated from protobuf field string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $space = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the conference started, always set. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. Server enforced expire time for when this conference record - * resource is deleted. The resource is deleted 30 days after the conference - * ends. - * @type string $space - * Output only. The space where the conference was held. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the conference record. - * Format: `conferenceRecords/{conference_record}` where `{conference_record}` - * is a unique id for each instance of a call within a space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Timestamp when the conference started, always set. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the conference started, always set. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the conference ended. - * Set for past conferences. Unset if the conference is ongoing. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server enforced expire time for when this conference record - * resource is deleted. The resource is deleted 30 days after the conference - * ends. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.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. Server enforced expire time for when this conference record - * resource is deleted. The resource is deleted 30 days after the conference - * ends. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.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; - } - - /** - * Output only. The space where the conference was held. - * - * Generated from protobuf field string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getSpace() - { - return $this->space; - } - - /** - * Output only. The space where the conference was held. - * - * Generated from protobuf field string space = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkString($var, True); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/CreateSpaceRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/CreateSpaceRequest.php deleted file mode 100644 index b534aee3cd47..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/CreateSpaceRequest.php +++ /dev/null @@ -1,95 +0,0 @@ -google.apps.meet.v2beta.CreateSpaceRequest - */ -class CreateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * Generated from protobuf field .google.apps.meet.v2beta.Space space = 1; - */ - protected $space = null; - - /** - * @param \Google\Apps\Meet\V2beta\Space $space Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * @return \Google\Apps\Meet\V2beta\CreateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Meet\V2beta\Space $space): self - { - return (new self()) - ->setSpace($space); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2beta\Space $space - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * Generated from protobuf field .google.apps.meet.v2beta.Space space = 1; - * @return \Google\Apps\Meet\V2beta\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Space to be created. As of May 2023, the input space can be empty. Later on - * the input space can be non-empty when space configuration is introduced. - * - * Generated from protobuf field .google.apps.meet.v2beta.Space space = 1; - * @param \Google\Apps\Meet\V2beta\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\Space::class); - $this->space = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/DocsDestination.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/DocsDestination.php deleted file mode 100644 index 5a82669b8a07..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/DocsDestination.php +++ /dev/null @@ -1,125 +0,0 @@ -google.apps.meet.v2beta.DocsDestination - */ -class DocsDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * - * Generated from protobuf field string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $document = ''; - /** - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $export_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $document - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * @type string $export_uri - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * - * Generated from protobuf field string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Output only. The document ID for the underlying Google Docs transcript - * file. For example, "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use the - * `documents.get` method of the Google Docs API - * (https://developers.google.com/docs/api/reference/rest/v1/documents/get) to - * fetch the content. - * - * Generated from protobuf field string document = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getExportUri() - { - return $this->export_uri; - } - - /** - * Output only. URI for the Google Docs transcript file. Use - * `https://docs.google.com/document/d/{$DocumentId}/view` to browse the - * transcript in the browser. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setExportUri($var) - { - GPBUtil::checkString($var, True); - $this->export_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/DriveDestination.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/DriveDestination.php deleted file mode 100644 index 48721ac2c81d..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/DriveDestination.php +++ /dev/null @@ -1,121 +0,0 @@ -google.apps.meet.v2beta.DriveDestination - */ -class DriveDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * - * Generated from protobuf field string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $file = ''; - /** - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $export_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * @type string $export_uri - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * - * Generated from protobuf field string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFile() - { - return $this->file; - } - - /** - * Output only. The `fileId` for the underlying MP4 file. For example, - * "1kuceFZohVoCh6FulBHxwy6I15Ogpc4hP". Use `$ GET - * https://www.googleapis.com/drive/v3/files/{$fileId}?alt=media` to download - * the blob. For more information, see - * https://developers.google.com/drive/api/v3/reference/files/get. - * - * Generated from protobuf field string file = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFile($var) - { - GPBUtil::checkString($var, True); - $this->file = $var; - - return $this; - } - - /** - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getExportUri() - { - return $this->export_uri; - } - - /** - * Output only. Link used to play back the recording file in the browser. For - * example, `https://drive.google.com/file/d/{$fileId}/view`. - * - * Generated from protobuf field string export_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setExportUri($var) - { - GPBUtil::checkString($var, True); - $this->export_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/EndActiveConferenceRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/EndActiveConferenceRequest.php deleted file mode 100644 index 3732194b7cac..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/EndActiveConferenceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.EndActiveConferenceRequest - */ -class EndActiveConferenceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the space. Please see - * {@see SpacesServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\EndActiveConferenceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetConferenceRecordRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetConferenceRecordRequest.php deleted file mode 100644 index 0a9c0d2b2d4e..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetConferenceRecordRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.GetConferenceRecordRequest - */ -class GetConferenceRecordRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the conference. Please see - * {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\GetConferenceRecordRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the conference. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the conference. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetParticipantRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetParticipantRequest.php deleted file mode 100644 index 2ba9e1655e7e..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetParticipantRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.GetParticipantRequest - */ -class GetParticipantRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the participant. Please see - * {@see ConferenceRecordsServiceClient::participantName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\GetParticipantRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the participant. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the participant. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetParticipantSessionRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetParticipantSessionRequest.php deleted file mode 100644 index 4f232e98dda3..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetParticipantSessionRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.GetParticipantSessionRequest - */ -class GetParticipantSessionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the participant. Please see - * {@see ConferenceRecordsServiceClient::participantSessionName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\GetParticipantSessionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the participant. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the participant. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the participant. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetRecordingRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetRecordingRequest.php deleted file mode 100644 index 2b0ad3f7bd6e..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetRecordingRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.GetRecordingRequest - */ -class GetRecordingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the recording. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the recording. Please see - * {@see ConferenceRecordsServiceClient::recordingName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\GetRecordingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the recording. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the recording. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the recording. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetSpaceRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetSpaceRequest.php deleted file mode 100644 index 67cd082076bb..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetSpaceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.GetSpaceRequest - */ -class GetSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the space. Please see - * {@see SpacesServiceClient::spaceName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\GetSpaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the space. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the space. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the space. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetTranscriptEntryRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetTranscriptEntryRequest.php deleted file mode 100644 index d70dd0b5c6e1..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetTranscriptEntryRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.GetTranscriptEntryRequest - */ -class GetTranscriptEntryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the `TranscriptEntry`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the `TranscriptEntry`. Please see - * {@see ConferenceRecordsServiceClient::transcriptEntryName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\GetTranscriptEntryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the `TranscriptEntry`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the `TranscriptEntry`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the `TranscriptEntry`. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetTranscriptRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetTranscriptRequest.php deleted file mode 100644 index a0c0dc1e189f..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/GetTranscriptRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.apps.meet.v2beta.GetTranscriptRequest - */ -class GetTranscriptRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the transcript. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the transcript. Please see - * {@see ConferenceRecordsServiceClient::transcriptName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\GetTranscriptRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the transcript. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the transcript. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the transcript. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListConferenceRecordsRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListConferenceRecordsRequest.php deleted file mode 100644 index 6c4975f5705a..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListConferenceRecordsRequest.php +++ /dev/null @@ -1,171 +0,0 @@ -google.apps.meet.v2beta.ListConferenceRecordsRequest - */ -class ListConferenceRecordsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_size - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * @type string $page_token - * Optional. Page token returned from previous List Call. - * @type string $filter - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of conference records to return. The service might - * return fewer than this value. If unspecified, at most 25 conference records - * are returned. The maximum value is 100; values above 100 are coerced to - * 100. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `space.meeting_code` - * * `space.name` - * * `start_time` - * * `end_time` - * For example, `space.meeting_code = "abc-mnop-xyz"`. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListConferenceRecordsResponse.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListConferenceRecordsResponse.php deleted file mode 100644 index 0b41e7ee29d6..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListConferenceRecordsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2beta.ListConferenceRecordsResponse - */ -class ListConferenceRecordsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of conferences in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.ConferenceRecord conference_records = 1; - */ - private $conference_records; - /** - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2beta\ConferenceRecord>|\Google\Protobuf\Internal\RepeatedField $conference_records - * List of conferences in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of conferences in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.ConferenceRecord conference_records = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConferenceRecords() - { - return $this->conference_records; - } - - /** - * List of conferences in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.ConferenceRecord conference_records = 1; - * @param array<\Google\Apps\Meet\V2beta\ConferenceRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConferenceRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2beta\ConferenceRecord::class); - $this->conference_records = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List does NOT - * include all the Conferences. Unset if all conferences have been returned. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantSessionsRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantSessionsRequest.php deleted file mode 100644 index 2bb9c239e363..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantSessionsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.apps.meet.v2beta.ListParticipantSessionsRequest - */ -class ListParticipantSessionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * Please see {@see ConferenceRecordsServiceClient::participantName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\ListParticipantSessionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * @type int $page_size - * Optional. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * @type string $page_token - * Optional. Page token returned from previous List Call. - * @type string $filter - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `conferenceRecords/{conference_record}/participants/{participant}` - * - * 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: - * `conferenceRecords/{conference_record}/participants/{participant}` - * - * 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. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of participant sessions to return. The service - * might return fewer than this value. If unspecified, at most 100 - * participants are returned. The maximum value is 250; values above 250 are - * coerced to 250. Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `start_time` - * * `end_time` - * For example, `end_time IS NULL` returns active participant sessions in - * the conference record. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantSessionsResponse.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantSessionsResponse.php deleted file mode 100644 index 4561df2354c2..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantSessionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2beta.ListParticipantSessionsResponse - */ -class ListParticipantSessionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.ParticipantSession participant_sessions = 1; - */ - private $participant_sessions; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2beta\ParticipantSession>|\Google\Protobuf\Internal\RepeatedField $participant_sessions - * List of participants in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.ParticipantSession participant_sessions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParticipantSessions() - { - return $this->participant_sessions; - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.ParticipantSession participant_sessions = 1; - * @param array<\Google\Apps\Meet\V2beta\ParticipantSession>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParticipantSessions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2beta\ParticipantSession::class); - $this->participant_sessions = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantsRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantsRequest.php deleted file mode 100644 index 61eebc810885..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantsRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.apps.meet.v2beta.ListParticipantsRequest - */ -class ListParticipantsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Format: `conferenceRecords/{conference_record}` - * Please see {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\ListParticipantsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: `conferenceRecords/{conference_record}` - * @type int $page_size - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * @type string $filter - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * 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: `conferenceRecords/{conference_record}` - * - * 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; - } - - /** - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of participants to return. The service might return fewer - * than this value. - * If unspecified, at most 100 participants are returned. - * The maximum value is 250; values above 250 are coerced to 250. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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; - } - - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. User specified filtering condition in EBNF format. The following - * are the filterable fields: - * * `earliest_start_time` - * * `latest_end_time` - * For example, `latest_end_time IS NULL` returns active participants in - * the conference. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantsResponse.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantsResponse.php deleted file mode 100644 index cfab92f942b2..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListParticipantsResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -google.apps.meet.v2beta.ListParticipantsResponse - */ -class ListParticipantsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Participant participants = 1; - */ - private $participants; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2beta\Participant>|\Google\Protobuf\Internal\RepeatedField $participants - * List of participants in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * @type int $total_size - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Participant participants = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParticipants() - { - return $this->participants; - } - - /** - * List of participants in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Participant participants = 1; - * @param array<\Google\Apps\Meet\V2beta\Participant>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParticipants($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2beta\Participant::class); - $this->participants = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the participants. Unset if all participants are returned. - * - * 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; - } - - /** - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * Total, exact number of `participants`. By default, this field isn't - * included in the response. Set the field mask in - * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters) - * to receive this field in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListRecordingsRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListRecordingsRequest.php deleted file mode 100644 index a25d3eed20bf..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListRecordingsRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.apps.meet.v2beta.ListRecordingsRequest - */ -class ListRecordingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: `conferenceRecords/{conference_record}` - * Please see {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\ListRecordingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: `conferenceRecords/{conference_record}` - * @type int $page_size - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * 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: `conferenceRecords/{conference_record}` - * - * 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; - } - - /** - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of recordings to return. The service might return fewer - * than this value. - * If unspecified, at most 10 recordings are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListRecordingsResponse.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListRecordingsResponse.php deleted file mode 100644 index 689d9b8ed60e..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListRecordingsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2beta.ListRecordingsResponse - */ -class ListRecordingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of recordings in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Recording recordings = 1; - */ - private $recordings; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2beta\Recording>|\Google\Protobuf\Internal\RepeatedField $recordings - * List of recordings in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of recordings in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Recording recordings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRecordings() - { - return $this->recordings; - } - - /** - * List of recordings in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Recording recordings = 1; - * @param array<\Google\Apps\Meet\V2beta\Recording>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRecordings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2beta\Recording::class); - $this->recordings = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the recordings. Unset if all recordings are returned. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptEntriesRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptEntriesRequest.php deleted file mode 100644 index 57f75c51e097..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptEntriesRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.apps.meet.v2beta.ListTranscriptEntriesRequest - */ -class ListTranscriptEntriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * Please see {@see ConferenceRecordsServiceClient::transcriptName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\ListTranscriptEntriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * @type int $page_size - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * - * 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: - * `conferenceRecords/{conference_record}/transcripts/{transcript}` - * - * 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; - } - - /** - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of entries to return. The service might return fewer than - * this value. - * If unspecified, at most 10 entries are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptEntriesResponse.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptEntriesResponse.php deleted file mode 100644 index 531c014e9cbb..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptEntriesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2beta.ListTranscriptEntriesResponse - */ -class ListTranscriptEntriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of TranscriptEntries in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.TranscriptEntry transcript_entries = 1; - */ - private $transcript_entries; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2beta\TranscriptEntry>|\Google\Protobuf\Internal\RepeatedField $transcript_entries - * List of TranscriptEntries in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of TranscriptEntries in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.TranscriptEntry transcript_entries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTranscriptEntries() - { - return $this->transcript_entries; - } - - /** - * List of TranscriptEntries in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.TranscriptEntry transcript_entries = 1; - * @param array<\Google\Apps\Meet\V2beta\TranscriptEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTranscriptEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2beta\TranscriptEntry::class); - $this->transcript_entries = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcript entries. Unset if all entries are returned. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptsRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptsRequest.php deleted file mode 100644 index a327506e4e2d..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptsRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.apps.meet.v2beta.ListTranscriptsRequest - */ -class ListTranscriptsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Format: `conferenceRecords/{conference_record}` - * Please see {@see ConferenceRecordsServiceClient::conferenceRecordName()} for help formatting this field. - * - * @return \Google\Apps\Meet\V2beta\ListTranscriptsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Format: `conferenceRecords/{conference_record}` - * @type int $page_size - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * @type string $page_token - * Page token returned from previous List Call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Format: `conferenceRecords/{conference_record}` - * - * 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: `conferenceRecords/{conference_record}` - * - * 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; - } - - /** - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of transcripts to return. The service might return fewer - * than this value. - * If unspecified, at most 10 transcripts are returned. - * The maximum value is 100; values above 100 are coerced to 100. - * Maximum might change in the future. - * - * 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; - } - - /** - * Page token returned from previous List Call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous List Call. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptsResponse.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptsResponse.php deleted file mode 100644 index 11207b008ab7..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ListTranscriptsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.apps.meet.v2beta.ListTranscriptsResponse - */ -class ListTranscriptsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of transcripts in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Transcript transcripts = 1; - */ - private $transcripts; - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Apps\Meet\V2beta\Transcript>|\Google\Protobuf\Internal\RepeatedField $transcripts - * List of transcripts in one page. - * @type string $next_page_token - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of transcripts in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Transcript transcripts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTranscripts() - { - return $this->transcripts; - } - - /** - * List of transcripts in one page. - * - * Generated from protobuf field repeated .google.apps.meet.v2beta.Transcript transcripts = 1; - * @param array<\Google\Apps\Meet\V2beta\Transcript>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTranscripts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Apps\Meet\V2beta\Transcript::class); - $this->transcripts = $arr; - - return $this; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to be circulated back for further List call if current List doesn't - * include all the transcripts. Unset if all transcripts are returned. - * - * 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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Participant.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Participant.php deleted file mode 100644 index 589a275ab2d8..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Participant.php +++ /dev/null @@ -1,276 +0,0 @@ -google.apps.meet.v2beta.Participant - */ -class Participant extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Time when the participant joined the meeting for the first - * time. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $earliest_start_time = null; - /** - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it is an active meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $latest_end_time = null; - protected $user; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2beta\SignedinUser $signedin_user - * Signed-in user. - * @type \Google\Apps\Meet\V2beta\AnonymousUser $anonymous_user - * Anonymous user. - * @type \Google\Apps\Meet\V2beta\PhoneUser $phone_user - * User who calls in from their phone. - * @type string $name - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * @type \Google\Protobuf\Timestamp $earliest_start_time - * Output only. Time when the participant joined the meeting for the first - * time. - * @type \Google\Protobuf\Timestamp $latest_end_time - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it is an active meeting. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Signed-in user. - * - * Generated from protobuf field .google.apps.meet.v2beta.SignedinUser signedin_user = 4; - * @return \Google\Apps\Meet\V2beta\SignedinUser|null - */ - public function getSignedinUser() - { - return $this->readOneof(4); - } - - public function hasSignedinUser() - { - return $this->hasOneof(4); - } - - /** - * Signed-in user. - * - * Generated from protobuf field .google.apps.meet.v2beta.SignedinUser signedin_user = 4; - * @param \Google\Apps\Meet\V2beta\SignedinUser $var - * @return $this - */ - public function setSignedinUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\SignedinUser::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Anonymous user. - * - * Generated from protobuf field .google.apps.meet.v2beta.AnonymousUser anonymous_user = 5; - * @return \Google\Apps\Meet\V2beta\AnonymousUser|null - */ - public function getAnonymousUser() - { - return $this->readOneof(5); - } - - public function hasAnonymousUser() - { - return $this->hasOneof(5); - } - - /** - * Anonymous user. - * - * Generated from protobuf field .google.apps.meet.v2beta.AnonymousUser anonymous_user = 5; - * @param \Google\Apps\Meet\V2beta\AnonymousUser $var - * @return $this - */ - public function setAnonymousUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\AnonymousUser::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * User who calls in from their phone. - * - * Generated from protobuf field .google.apps.meet.v2beta.PhoneUser phone_user = 6; - * @return \Google\Apps\Meet\V2beta\PhoneUser|null - */ - public function getPhoneUser() - { - return $this->readOneof(6); - } - - public function hasPhoneUser() - { - return $this->hasOneof(6); - } - - /** - * User who calls in from their phone. - * - * Generated from protobuf field .google.apps.meet.v2beta.PhoneUser phone_user = 6; - * @param \Google\Apps\Meet\V2beta\PhoneUser $var - * @return $this - */ - public function setPhoneUser($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\PhoneUser::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the participant. - * Format: `conferenceRecords/{conference_record}/participants/{participant}` - * - * 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 participant joined the meeting for the first - * time. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEarliestStartTime() - { - return $this->earliest_start_time; - } - - public function hasEarliestStartTime() - { - return isset($this->earliest_start_time); - } - - public function clearEarliestStartTime() - { - unset($this->earliest_start_time); - } - - /** - * Output only. Time when the participant joined the meeting for the first - * time. - * - * Generated from protobuf field .google.protobuf.Timestamp earliest_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEarliestStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->earliest_start_time = $var; - - return $this; - } - - /** - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it is an active meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestEndTime() - { - return $this->latest_end_time; - } - - public function hasLatestEndTime() - { - return isset($this->latest_end_time); - } - - public function clearLatestEndTime() - { - unset($this->latest_end_time); - } - - /** - * Output only. Time when the participant left the meeting for the last time. - * This can be null if it is an active meeting. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_end_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getUser() - { - return $this->whichOneof("user"); - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ParticipantSession.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ParticipantSession.php deleted file mode 100644 index 9ae94bc46d97..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/ParticipantSession.php +++ /dev/null @@ -1,164 +0,0 @@ -google.apps.meet.v2beta.ParticipantSession - */ -class ParticipantSession extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Session id. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Timestamp when the user session started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the user session ended. Unset if the user - * session hasn’t ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Session id. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the user session started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the user session ended. Unset if the user - * session hasn’t ended. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Session id. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Session id. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Timestamp when the user session started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the user session started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the user session ended. Unset if the user - * session hasn’t ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the user session ended. Unset if the user - * session hasn’t ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/PhoneUser.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/PhoneUser.php deleted file mode 100644 index 554406b285f5..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/PhoneUser.php +++ /dev/null @@ -1,68 +0,0 @@ -google.apps.meet.v2beta.PhoneUser - */ -class PhoneUser extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Partially redacted user's phone number when they call in. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Output only. Partially redacted user's phone number when they call in. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Partially redacted user's phone number when they call in. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Partially redacted user's phone number when they call in. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Recording.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Recording.php deleted file mode 100644 index d9d32f300c8b..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Recording.php +++ /dev/null @@ -1,250 +0,0 @@ -google.apps.meet.v2beta.Recording - */ -class Recording extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2beta.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Timestamp when the recording started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the recording ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2beta\DriveDestination $drive_destination - * Output only. Recording is saved to Google Drive as an mp4 file. The - * `drive_destination` includes the Drive `fileId` that can be used to - * download the file using the `files.get` method of the Drive API. - * @type string $name - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * @type int $state - * Output only. Current state. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the recording started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the recording ended. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Recording is saved to Google Drive as an mp4 file. The - * `drive_destination` includes the Drive `fileId` that can be used to - * download the file using the `files.get` method of the Drive API. - * - * Generated from protobuf field .google.apps.meet.v2beta.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Meet\V2beta\DriveDestination|null - */ - public function getDriveDestination() - { - return $this->readOneof(6); - } - - public function hasDriveDestination() - { - return $this->hasOneof(6); - } - - /** - * Output only. Recording is saved to Google Drive as an mp4 file. The - * `drive_destination` includes the Drive `fileId` that can be used to - * download the file using the `files.get` method of the Drive API. - * - * Generated from protobuf field .google.apps.meet.v2beta.DriveDestination drive_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Meet\V2beta\DriveDestination $var - * @return $this - */ - public function setDriveDestination($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\DriveDestination::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the recording. - * Format: `conferenceRecords/{conference_record}/recordings/{recording}` - * where `{recording}` is a 1:1 mapping to each unique recording session - * during the conference. - * - * 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. Current state. - * - * Generated from protobuf field .google.apps.meet.v2beta.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2beta.Recording.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2beta\Recording\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Timestamp when the recording started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the recording started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the recording ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the recording ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Recording/State.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Recording/State.php deleted file mode 100644 index 106aceb8dcf2..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Recording/State.php +++ /dev/null @@ -1,72 +0,0 @@ -google.apps.meet.v2beta.Recording.State - */ -class State -{ - /** - * Default, never used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * An active recording session has started. - * - * Generated from protobuf enum STARTED = 1; - */ - const STARTED = 1; - /** - * This recording session has ended, but the recording file hasn't been - * generated yet. - * - * Generated from protobuf enum ENDED = 2; - */ - const ENDED = 2; - /** - * Recording file is generated and ready to download. - * - * Generated from protobuf enum FILE_GENERATED = 3; - */ - const FILE_GENERATED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::STARTED => 'STARTED', - self::ENDED => 'ENDED', - self::FILE_GENERATED => 'FILE_GENERATED', - ]; - - 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(State::class, \Google\Apps\Meet\V2beta\Recording_State::class); - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SignedinUser.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SignedinUser.php deleted file mode 100644 index ab1ecb01bcd8..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SignedinUser.php +++ /dev/null @@ -1,116 +0,0 @@ -google.apps.meet.v2beta.SignedinUser - */ -class SignedinUser extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * - * Generated from protobuf field string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user = ''; - /** - * Output only. For a personal device, it's the user's first and last name. - * For a robot account, it's the admin specified device name. For example, - * "Altostrat Room". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * @type string $display_name - * Output only. For a personal device, it's the user's first and last name. - * For a robot account, it's the admin specified device name. For example, - * "Altostrat Room". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * - * Generated from protobuf field string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUser() - { - return $this->user; - } - - /** - * Output only. Unique ID for the user. Interoperable with Admin SDK API and - * People API. Format: `users/{user}` - * - * Generated from protobuf field string user = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->user = $var; - - return $this; - } - - /** - * Output only. For a personal device, it's the user's first and last name. - * For a robot account, it's the admin specified device name. For example, - * "Altostrat Room". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. For a personal device, it's the user's first and last name. - * For a robot account, it's the admin specified device name. For example, - * "Altostrat Room". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Space.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Space.php deleted file mode 100644 index f5a2f58100ad..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Space.php +++ /dev/null @@ -1,241 +0,0 @@ -google.apps.meet.v2beta.Space - */ -class Space extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. URI used to join meeting, such as - * `https://meet.google.com/abc-mnop-xyz`. - * - * Generated from protobuf field string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $meeting_uri = ''; - /** - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can ONLY be used as alias of the space ID to get the space. - * - * Generated from protobuf field string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $meeting_code = ''; - /** - * Configuration pertaining to the meeting space. - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig config = 5; - */ - protected $config = null; - /** - * Active conference if it exists. - * - * Generated from protobuf field .google.apps.meet.v2beta.ActiveConference active_conference = 6; - */ - protected $active_conference = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * @type string $meeting_uri - * Output only. URI used to join meeting, such as - * `https://meet.google.com/abc-mnop-xyz`. - * @type string $meeting_code - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can ONLY be used as alias of the space ID to get the space. - * @type \Google\Apps\Meet\V2beta\SpaceConfig $config - * Configuration pertaining to the meeting space. - * @type \Google\Apps\Meet\V2beta\ActiveConference $active_conference - * Active conference if it exists. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Resource name of the space. - * Format: `spaces/{space}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. URI used to join meeting, such as - * `https://meet.google.com/abc-mnop-xyz`. - * - * Generated from protobuf field string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeetingUri() - { - return $this->meeting_uri; - } - - /** - * Output only. URI used to join meeting, such as - * `https://meet.google.com/abc-mnop-xyz`. - * - * Generated from protobuf field string meeting_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeetingUri($var) - { - GPBUtil::checkString($var, True); - $this->meeting_uri = $var; - - return $this; - } - - /** - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can ONLY be used as alias of the space ID to get the space. - * - * Generated from protobuf field string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMeetingCode() - { - return $this->meeting_code; - } - - /** - * Output only. Type friendly code to join the meeting. Format: - * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - * characters. Can ONLY be used as alias of the space ID to get the space. - * - * Generated from protobuf field string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMeetingCode($var) - { - GPBUtil::checkString($var, True); - $this->meeting_code = $var; - - return $this; - } - - /** - * Configuration pertaining to the meeting space. - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig config = 5; - * @return \Google\Apps\Meet\V2beta\SpaceConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Configuration pertaining to the meeting space. - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig config = 5; - * @param \Google\Apps\Meet\V2beta\SpaceConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\SpaceConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Active conference if it exists. - * - * Generated from protobuf field .google.apps.meet.v2beta.ActiveConference active_conference = 6; - * @return \Google\Apps\Meet\V2beta\ActiveConference|null - */ - public function getActiveConference() - { - return $this->active_conference; - } - - public function hasActiveConference() - { - return isset($this->active_conference); - } - - public function clearActiveConference() - { - unset($this->active_conference); - } - - /** - * Active conference if it exists. - * - * Generated from protobuf field .google.apps.meet.v2beta.ActiveConference active_conference = 6; - * @param \Google\Apps\Meet\V2beta\ActiveConference $var - * @return $this - */ - public function setActiveConference($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\ActiveConference::class); - $this->active_conference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig.php deleted file mode 100644 index df3802d536c7..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig.php +++ /dev/null @@ -1,117 +0,0 @@ -google.apps.meet.v2beta.SpaceConfig - */ -class SpaceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; - */ - protected $access_type = 0; - /** - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; - */ - protected $entry_point_access = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $access_type - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * @type int $entry_point_access - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; - * @return int - */ - public function getAccessType() - { - return $this->access_type; - } - - /** - * Access type of the meeting space that determines who can join without - * knocking. Default: The user's default access settings. Controlled by the - * user's admin for enterprise users or RESTRICTED. - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; - * @param int $var - * @return $this - */ - public function setAccessType($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2beta\SpaceConfig\AccessType::class); - $this->access_type = $var; - - return $this; - } - - /** - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; - * @return int - */ - public function getEntryPointAccess() - { - return $this->entry_point_access; - } - - /** - * Defines the entry points that can be used to join meetings hosted in this - * meeting space. - * Default: EntryPointAccess.ALL - * - * Generated from protobuf field .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; - * @param int $var - * @return $this - */ - public function setEntryPointAccess($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2beta\SpaceConfig\EntryPointAccess::class); - $this->entry_point_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig/AccessType.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig/AccessType.php deleted file mode 100644 index 1f26819186f2..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig/AccessType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.apps.meet.v2beta.SpaceConfig.AccessType - */ -class AccessType -{ - /** - * Default value specified by the user's organization. - * Note: This is never returned, as the configured access type is - * returned instead. - * - * Generated from protobuf enum ACCESS_TYPE_UNSPECIFIED = 0; - */ - const ACCESS_TYPE_UNSPECIFIED = 0; - /** - * Anyone with the join information (for example, the URL or phone access - * information) can join without knocking. - * - * Generated from protobuf enum OPEN = 1; - */ - const OPEN = 1; - /** - * Members of the host's organization, invited external users, and dial-in - * users can join without knocking. Everyone else must knock. - * - * Generated from protobuf enum TRUSTED = 2; - */ - const TRUSTED = 2; - /** - * Only invitees can join without knocking. Everyone else must knock. - * - * Generated from protobuf enum RESTRICTED = 3; - */ - const RESTRICTED = 3; - - private static $valueToName = [ - self::ACCESS_TYPE_UNSPECIFIED => 'ACCESS_TYPE_UNSPECIFIED', - self::OPEN => 'OPEN', - self::TRUSTED => 'TRUSTED', - self::RESTRICTED => 'RESTRICTED', - ]; - - 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(AccessType::class, \Google\Apps\Meet\V2beta\SpaceConfig_AccessType::class); - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig/EntryPointAccess.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig/EntryPointAccess.php deleted file mode 100644 index 946c5021b960..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/SpaceConfig/EntryPointAccess.php +++ /dev/null @@ -1,67 +0,0 @@ -google.apps.meet.v2beta.SpaceConfig.EntryPointAccess - */ -class EntryPointAccess -{ - /** - * Unused. - * - * Generated from protobuf enum ENTRY_POINT_ACCESS_UNSPECIFIED = 0; - */ - const ENTRY_POINT_ACCESS_UNSPECIFIED = 0; - /** - * All entry points are allowed. - * - * Generated from protobuf enum ALL = 1; - */ - const ALL = 1; - /** - * Only entry points owned by the Google Cloud project that created the - * space can be used to join meetings in this space. Apps can use the Embed - * SDK Web or mobile Meet SDKs to create owned entry points. - * - * Generated from protobuf enum CREATOR_APP_ONLY = 2; - */ - const CREATOR_APP_ONLY = 2; - - private static $valueToName = [ - self::ENTRY_POINT_ACCESS_UNSPECIFIED => 'ENTRY_POINT_ACCESS_UNSPECIFIED', - self::ALL => 'ALL', - self::CREATOR_APP_ONLY => 'CREATOR_APP_ONLY', - ]; - - 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(EntryPointAccess::class, \Google\Apps\Meet\V2beta\SpaceConfig_EntryPointAccess::class); - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Transcript.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Transcript.php deleted file mode 100644 index 341decf21fc5..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Transcript.php +++ /dev/null @@ -1,245 +0,0 @@ -google.apps.meet.v2beta.Transcript - */ -class Transcript extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2beta.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Timestamp when the transcript started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the transcript stopped. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2beta\DocsDestination $docs_destination - * Output only. Where the Google Docs transcript is saved. - * @type string $name - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * @type int $state - * Output only. Current state. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the transcript started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the transcript stopped. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Where the Google Docs transcript is saved. - * - * Generated from protobuf field .google.apps.meet.v2beta.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Apps\Meet\V2beta\DocsDestination|null - */ - public function getDocsDestination() - { - return $this->readOneof(6); - } - - public function hasDocsDestination() - { - return $this->hasOneof(6); - } - - /** - * Output only. Where the Google Docs transcript is saved. - * - * Generated from protobuf field .google.apps.meet.v2beta.DocsDestination docs_destination = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Apps\Meet\V2beta\DocsDestination $var - * @return $this - */ - public function setDocsDestination($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\DocsDestination::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the transcript. - * Format: `conferenceRecords/{conference_record}/transcripts/{transcript}`, - * where `{transcript}` is a 1:1 mapping to each unique transcription session - * of the conference. - * - * 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. Current state. - * - * Generated from protobuf field .google.apps.meet.v2beta.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state. - * - * Generated from protobuf field .google.apps.meet.v2beta.Transcript.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Apps\Meet\V2beta\Transcript\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the transcript started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript stopped. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the transcript stopped. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Transcript/State.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Transcript/State.php deleted file mode 100644 index 0eed6ee0a304..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/Transcript/State.php +++ /dev/null @@ -1,72 +0,0 @@ -google.apps.meet.v2beta.Transcript.State - */ -class State -{ - /** - * Default, never used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * An active transcript session has started. - * - * Generated from protobuf enum STARTED = 1; - */ - const STARTED = 1; - /** - * This transcript session has ended, but the transcript file hasn't been - * generated yet. - * - * Generated from protobuf enum ENDED = 2; - */ - const ENDED = 2; - /** - * Transcript file is generated and ready to download. - * - * Generated from protobuf enum FILE_GENERATED = 3; - */ - const FILE_GENERATED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::STARTED => 'STARTED', - self::ENDED => 'ENDED', - self::FILE_GENERATED => 'FILE_GENERATED', - ]; - - 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(State::class, \Google\Apps\Meet\V2beta\Transcript_State::class); - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/TranscriptEntry.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/TranscriptEntry.php deleted file mode 100644 index 9e12ec9d348b..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/TranscriptEntry.php +++ /dev/null @@ -1,270 +0,0 @@ -google.apps.meet.v2beta.TranscriptEntry - */ -class TranscriptEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Refer to the participant who speaks. - * - * Generated from protobuf field string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $participant = ''; - /** - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * - * Generated from protobuf field string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $text = ''; - /** - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * - * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $language_code = ''; - /** - * Output only. Timestamp when the transcript entry started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Timestamp when the transcript entry ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * @type string $participant - * Output only. Refer to the participant who speaks. - * @type string $text - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * @type string $language_code - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Timestamp when the transcript entry started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Timestamp when the transcript entry ended. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Resource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the entry. Format: - * "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" - * - * 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. Refer to the participant who speaks. - * - * Generated from protobuf field string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getParticipant() - { - return $this->participant; - } - - /** - * Output only. Refer to the participant who speaks. - * - * Generated from protobuf field string participant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParticipant($var) - { - GPBUtil::checkString($var, True); - $this->participant = $var; - - return $this; - } - - /** - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * - * Generated from protobuf field string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Output only. The transcribed text of the participant's voice, at maximum - * 10K words. Note that the limit is subject to change. - * - * Generated from protobuf field string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * - * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Output only. Language of spoken text, such as "en-US". - * IETF BCP 47 syntax (https://tools.ietf.org/html/bcp47) - * - * Generated from protobuf field string language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript entry started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Timestamp when the transcript entry started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Timestamp when the transcript entry ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Timestamp when the transcript entry ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/UpdateSpaceRequest.php b/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/UpdateSpaceRequest.php deleted file mode 100644 index c476b7de71a0..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/proto/src/Google/Apps/Meet/V2beta/UpdateSpaceRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.apps.meet.v2beta.UpdateSpaceRequest - */ -class UpdateSpaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Space to be updated. - * - * Generated from protobuf field .google.apps.meet.v2beta.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $space = null; - /** - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Apps\Meet\V2beta\Space $space Required. Space to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * @return \Google\Apps\Meet\V2beta\UpdateSpaceRequest - * - * @experimental - */ - public static function build(\Google\Apps\Meet\V2beta\Space $space, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSpace($space) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Apps\Meet\V2beta\Space $space - * Required. Space to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Apps\Meet\V2Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Space to be updated. - * - * Generated from protobuf field .google.apps.meet.v2beta.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Apps\Meet\V2beta\Space|null - */ - public function getSpace() - { - return $this->space; - } - - public function hasSpace() - { - return isset($this->space); - } - - public function clearSpace() - { - unset($this->space); - } - - /** - * Required. Space to be updated. - * - * Generated from protobuf field .google.apps.meet.v2beta.Space space = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Apps\Meet\V2beta\Space $var - * @return $this - */ - public function setSpace($var) - { - GPBUtil::checkMessage($var, \Google\Apps\Meet\V2beta\Space::class); - $this->space = $var; - - return $this; - } - - /** - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all - * fields provided in the request, including deleting fields not set in the - * request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_conference_record.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_conference_record.php deleted file mode 100644 index 32f1856fb9db..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_conference_record.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ConferenceRecord $response */ - $response = $conferenceRecordsServiceClient->getConferenceRecord($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - get_conference_record_sample($formattedName); -} -// [END meet_v2beta_generated_ConferenceRecordsService_GetConferenceRecord_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_participant.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_participant.php deleted file mode 100644 index be346620087c..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_participant.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Participant $response */ - $response = $conferenceRecordsServiceClient->getParticipant($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::participantName( - '[CONFERENCE_RECORD]', - '[PARTICIPANT]' - ); - - get_participant_sample($formattedName); -} -// [END meet_v2beta_generated_ConferenceRecordsService_GetParticipant_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_participant_session.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_participant_session.php deleted file mode 100644 index fca2173dee4a..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_participant_session.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ParticipantSession $response */ - $response = $conferenceRecordsServiceClient->getParticipantSession($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::participantSessionName( - '[CONFERENCE_RECORD]', - '[PARTICIPANT]', - '[PARTICIPANT_SESSION]' - ); - - get_participant_session_sample($formattedName); -} -// [END meet_v2beta_generated_ConferenceRecordsService_GetParticipantSession_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_recording.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_recording.php deleted file mode 100644 index 9be110a0b0d4..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_recording.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Recording $response */ - $response = $conferenceRecordsServiceClient->getRecording($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::recordingName( - '[CONFERENCE_RECORD]', - '[RECORDING]' - ); - - get_recording_sample($formattedName); -} -// [END meet_v2beta_generated_ConferenceRecordsService_GetRecording_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_transcript.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_transcript.php deleted file mode 100644 index 4a9ffe4753da..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_transcript.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Transcript $response */ - $response = $conferenceRecordsServiceClient->getTranscript($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::transcriptName( - '[CONFERENCE_RECORD]', - '[TRANSCRIPT]' - ); - - get_transcript_sample($formattedName); -} -// [END meet_v2beta_generated_ConferenceRecordsService_GetTranscript_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_transcript_entry.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_transcript_entry.php deleted file mode 100644 index 84b62cc96ee7..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/get_transcript_entry.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TranscriptEntry $response */ - $response = $conferenceRecordsServiceClient->getTranscriptEntry($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConferenceRecordsServiceClient::transcriptEntryName( - '[CONFERENCE_RECORD]', - '[TRANSCRIPT]', - '[ENTRY]' - ); - - get_transcript_entry_sample($formattedName); -} -// [END meet_v2beta_generated_ConferenceRecordsService_GetTranscriptEntry_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_conference_records.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_conference_records.php deleted file mode 100644 index 01817d244772..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_conference_records.php +++ /dev/null @@ -1,63 +0,0 @@ -listConferenceRecords($request); - - /** @var ConferenceRecord $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END meet_v2beta_generated_ConferenceRecordsService_ListConferenceRecords_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_participant_sessions.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_participant_sessions.php deleted file mode 100644 index fbe5ee8b7edf..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_participant_sessions.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listParticipantSessions($request); - - /** @var ParticipantSession $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::participantName( - '[CONFERENCE_RECORD]', - '[PARTICIPANT]' - ); - - list_participant_sessions_sample($formattedParent); -} -// [END meet_v2beta_generated_ConferenceRecordsService_ListParticipantSessions_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_participants.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_participants.php deleted file mode 100644 index cc4103aefd56..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_participants.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listParticipants($request); - - /** @var Participant $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - list_participants_sample($formattedParent); -} -// [END meet_v2beta_generated_ConferenceRecordsService_ListParticipants_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_recordings.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_recordings.php deleted file mode 100644 index ad721706ac49..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_recordings.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listRecordings($request); - - /** @var Recording $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - list_recordings_sample($formattedParent); -} -// [END meet_v2beta_generated_ConferenceRecordsService_ListRecordings_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_transcript_entries.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_transcript_entries.php deleted file mode 100644 index 21b2075d1bcd..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_transcript_entries.php +++ /dev/null @@ -1,86 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listTranscriptEntries($request); - - /** @var TranscriptEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::transcriptName( - '[CONFERENCE_RECORD]', - '[TRANSCRIPT]' - ); - - list_transcript_entries_sample($formattedParent); -} -// [END meet_v2beta_generated_ConferenceRecordsService_ListTranscriptEntries_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_transcripts.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_transcripts.php deleted file mode 100644 index 61273522156f..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/ConferenceRecordsServiceClient/list_transcripts.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conferenceRecordsServiceClient->listTranscripts($request); - - /** @var Transcript $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConferenceRecordsServiceClient::conferenceRecordName('[CONFERENCE_RECORD]'); - - list_transcripts_sample($formattedParent); -} -// [END meet_v2beta_generated_ConferenceRecordsService_ListTranscripts_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/create_space.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/create_space.php deleted file mode 100644 index b7c091932de9..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/create_space.php +++ /dev/null @@ -1,58 +0,0 @@ -createSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END meet_v2beta_generated_SpacesService_CreateSpace_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/end_active_conference.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/end_active_conference.php deleted file mode 100644 index 890435a0ff92..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/end_active_conference.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $spacesServiceClient->endActiveConference($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SpacesServiceClient::spaceName('[SPACE]'); - - end_active_conference_sample($formattedName); -} -// [END meet_v2beta_generated_SpacesService_EndActiveConference_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/get_space.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/get_space.php deleted file mode 100644 index e3032fd5ca27..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/get_space.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $spacesServiceClient->getSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SpacesServiceClient::spaceName('[SPACE]'); - - get_space_sample($formattedName); -} -// [END meet_v2beta_generated_SpacesService_GetSpace_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/update_space.php b/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/update_space.php deleted file mode 100644 index 9bb2a631e211..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/samples/V2beta/SpacesServiceClient/update_space.php +++ /dev/null @@ -1,60 +0,0 @@ -setSpace($space); - - // Call the API and handle any network failures. - try { - /** @var Space $response */ - $response = $spacesServiceClient->updateSpace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END meet_v2beta_generated_SpacesService_UpdateSpace_sync] diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/Client/ConferenceRecordsServiceClient.php b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/Client/ConferenceRecordsServiceClient.php deleted file mode 100644 index 6e9a0f20a4cb..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/Client/ConferenceRecordsServiceClient.php +++ /dev/null @@ -1,726 +0,0 @@ - getConferenceRecordAsync(GetConferenceRecordRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantAsync(GetParticipantRequest $request, array $optionalArgs = []) - * @method PromiseInterface getParticipantSessionAsync(GetParticipantSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRecordingAsync(GetRecordingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptAsync(GetTranscriptRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTranscriptEntryAsync(GetTranscriptEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConferenceRecordsAsync(ListConferenceRecordsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantSessionsAsync(ListParticipantSessionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listParticipantsAsync(ListParticipantsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRecordingsAsync(ListRecordingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptEntriesAsync(ListTranscriptEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTranscriptsAsync(ListTranscriptsRequest $request, array $optionalArgs = []) - */ -final class ConferenceRecordsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.apps.meet.v2beta.ConferenceRecordsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'meet.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'meet.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/conference_records_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/conference_records_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/conference_records_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/conference_records_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conference_record resource. - * - * @param string $conferenceRecord - * - * @return string The formatted conference_record resource. - * - * @experimental - */ - public static function conferenceRecordName(string $conferenceRecord): string - { - return self::getPathTemplate('conferenceRecord')->render([ - 'conference_record' => $conferenceRecord, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a participant - * resource. - * - * @param string $conferenceRecord - * @param string $participant - * - * @return string The formatted participant resource. - * - * @experimental - */ - public static function participantName(string $conferenceRecord, string $participant): string - { - return self::getPathTemplate('participant')->render([ - 'conference_record' => $conferenceRecord, - 'participant' => $participant, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * participant_session resource. - * - * @param string $conferenceRecord - * @param string $participant - * @param string $participantSession - * - * @return string The formatted participant_session resource. - * - * @experimental - */ - public static function participantSessionName(string $conferenceRecord, string $participant, string $participantSession): string - { - return self::getPathTemplate('participantSession')->render([ - 'conference_record' => $conferenceRecord, - 'participant' => $participant, - 'participant_session' => $participantSession, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a recording - * resource. - * - * @param string $conferenceRecord - * @param string $recording - * - * @return string The formatted recording resource. - * - * @experimental - */ - public static function recordingName(string $conferenceRecord, string $recording): string - { - return self::getPathTemplate('recording')->render([ - 'conference_record' => $conferenceRecord, - 'recording' => $recording, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a transcript - * resource. - * - * @param string $conferenceRecord - * @param string $transcript - * - * @return string The formatted transcript resource. - * - * @experimental - */ - public static function transcriptName(string $conferenceRecord, string $transcript): string - { - return self::getPathTemplate('transcript')->render([ - 'conference_record' => $conferenceRecord, - 'transcript' => $transcript, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * transcript_entry resource. - * - * @param string $conferenceRecord - * @param string $transcript - * @param string $entry - * - * @return string The formatted transcript_entry resource. - * - * @experimental - */ - public static function transcriptEntryName(string $conferenceRecord, string $transcript, string $entry): string - { - return self::getPathTemplate('transcriptEntry')->render([ - 'conference_record' => $conferenceRecord, - 'transcript' => $transcript, - 'entry' => $entry, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - conferenceRecord: conferenceRecords/{conference_record} - * - participant: conferenceRecords/{conference_record}/participants/{participant} - * - participantSession: conferenceRecords/{conference_record}/participants/{participant}/participantSessions/{participant_session} - * - recording: conferenceRecords/{conference_record}/recordings/{recording} - * - transcript: conferenceRecords/{conference_record}/transcripts/{transcript} - * - transcriptEntry: conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'meet.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Gets a conference record by conference ID. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getConferenceRecordAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/get_conference_record.php - * - * @param GetConferenceRecordRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConferenceRecord - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getConferenceRecord(GetConferenceRecordRequest $request, array $callOptions = []): ConferenceRecord - { - return $this->startApiCall('GetConferenceRecord', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Gets a participant by participant ID. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getParticipantAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/get_participant.php - * - * @param GetParticipantRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Participant - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getParticipant(GetParticipantRequest $request, array $callOptions = []): Participant - { - return $this->startApiCall('GetParticipant', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Gets a participant session by participant session ID. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getParticipantSessionAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/get_participant_session.php - * - * @param GetParticipantSessionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ParticipantSession - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getParticipantSession(GetParticipantSessionRequest $request, array $callOptions = []): ParticipantSession - { - return $this->startApiCall('GetParticipantSession', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Gets a recording by recording ID. - * - * The async variant is {@see ConferenceRecordsServiceClient::getRecordingAsync()} - * . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/get_recording.php - * - * @param GetRecordingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Recording - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getRecording(GetRecordingRequest $request, array $callOptions = []): Recording - { - return $this->startApiCall('GetRecording', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Gets a transcript by transcript ID. - * - * The async variant is {@see ConferenceRecordsServiceClient::getTranscriptAsync()} - * . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/get_transcript.php - * - * @param GetTranscriptRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Transcript - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getTranscript(GetTranscriptRequest $request, array $callOptions = []): Transcript - { - return $this->startApiCall('GetTranscript', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Gets a `TranscriptEntry` resource by entry ID. - * - * Note: The transcript entries returned by the Google Meet API might not - * match the transcription found in the Google Docs transcript file. This can - * occur when the Google Docs transcript file is modified after generation. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::getTranscriptEntryAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/get_transcript_entry.php - * - * @param GetTranscriptEntryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TranscriptEntry - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getTranscriptEntry(GetTranscriptEntryRequest $request, array $callOptions = []): TranscriptEntry - { - return $this->startApiCall('GetTranscriptEntry', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Lists the conference records by start time and in descending order. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listConferenceRecordsAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/list_conference_records.php - * - * @param ListConferenceRecordsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listConferenceRecords(ListConferenceRecordsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConferenceRecords', $request, $callOptions); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Lists the participant sessions of a participant in a conference record, by - * default ordered by join time and in descending order. This API supports - * `fields` as standard parameters like every other API. However, when the - * `fields` request parameter is omitted this API defaults to - * `'participantsessions/*, next_page_token'`. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listParticipantSessionsAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/list_participant_sessions.php - * - * @param ListParticipantSessionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listParticipantSessions(ListParticipantSessionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListParticipantSessions', $request, $callOptions); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Lists the participants in a conference record, by default ordered by join - * time and in descending order. This API supports `fields` as standard - * parameters like every other API. However, when the `fields` request - * parameter is omitted, this API defaults to `'participants/*, - * next_page_token'`. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listParticipantsAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/list_participants.php - * - * @param ListParticipantsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listParticipants(ListParticipantsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListParticipants', $request, $callOptions); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Lists the recording resources from the conference record. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listRecordingsAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/list_recordings.php - * - * @param ListRecordingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listRecordings(ListRecordingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRecordings', $request, $callOptions); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Lists the structured transcript entries per transcript. By default, ordered - * by start time and in ascending order. - * - * Note: The transcript entries returned by the Google Meet API might not - * match the transcription found in the Google Docs transcript file. This can - * occur when the Google Docs transcript file is modified after generation. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listTranscriptEntriesAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/list_transcript_entries.php - * - * @param ListTranscriptEntriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listTranscriptEntries(ListTranscriptEntriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTranscriptEntries', $request, $callOptions); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Lists the set of transcripts from the conference record. - * - * The async variant is - * {@see ConferenceRecordsServiceClient::listTranscriptsAsync()} . - * - * @example samples/V2beta/ConferenceRecordsServiceClient/list_transcripts.php - * - * @param ListTranscriptsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listTranscripts(ListTranscriptsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTranscripts', $request, $callOptions); - } -} diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/Client/SpacesServiceClient.php b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/Client/SpacesServiceClient.php deleted file mode 100644 index 8012f9c699bb..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/Client/SpacesServiceClient.php +++ /dev/null @@ -1,355 +0,0 @@ - createSpaceAsync(CreateSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface endActiveConferenceAsync(EndActiveConferenceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSpaceAsync(GetSpaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSpaceAsync(UpdateSpaceRequest $request, array $optionalArgs = []) - */ -final class SpacesServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.apps.meet.v2beta.SpacesService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'meet.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'meet.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/spaces_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/spaces_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/spaces_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/spaces_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * conference_record resource. - * - * @param string $conferenceRecord - * - * @return string The formatted conference_record resource. - * - * @experimental - */ - public static function conferenceRecordName(string $conferenceRecord): string - { - return self::getPathTemplate('conferenceRecord')->render([ - 'conference_record' => $conferenceRecord, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a space - * resource. - * - * @param string $space - * - * @return string The formatted space resource. - * - * @experimental - */ - public static function spaceName(string $space): string - { - return self::getPathTemplate('space')->render([ - 'space' => $space, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - conferenceRecord: conferenceRecords/{conference_record} - * - space: spaces/{space} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'meet.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Creates a space. - * - * The async variant is {@see SpacesServiceClient::createSpaceAsync()} . - * - * @example samples/V2beta/SpacesServiceClient/create_space.php - * - * @param CreateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createSpace(CreateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('CreateSpace', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Ends an active conference (if there is one). - * - * The async variant is {@see SpacesServiceClient::endActiveConferenceAsync()} . - * - * @example samples/V2beta/SpacesServiceClient/end_active_conference.php - * - * @param EndActiveConferenceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function endActiveConference(EndActiveConferenceRequest $request, array $callOptions = []): void - { - $this->startApiCall('EndActiveConference', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Gets a space by `space_id` or `meeting_code`. - * - * The async variant is {@see SpacesServiceClient::getSpaceAsync()} . - * - * @example samples/V2beta/SpacesServiceClient/get_space.php - * - * @param GetSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getSpace(GetSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('GetSpace', $request, $callOptions)->wait(); - } - - /** - * [Developer Preview](https://developers.google.com/workspace/preview). - * Updates a space. - * - * The async variant is {@see SpacesServiceClient::updateSpaceAsync()} . - * - * @example samples/V2beta/SpacesServiceClient/update_space.php - * - * @param UpdateSpaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Space - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateSpace(UpdateSpaceRequest $request, array $callOptions = []): Space - { - return $this->startApiCall('UpdateSpace', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/gapic_metadata.json b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/gapic_metadata.json deleted file mode 100644 index 1639811d817f..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/gapic_metadata.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.apps.meet.v2beta", - "libraryPackage": "Google\\Apps\\Meet\\V2beta", - "services": { - "SpacesService": { - "clients": { - "grpc": { - "libraryClient": "SpacesServiceGapicClient", - "rpcs": { - "CreateSpace": { - "methods": [ - "createSpace" - ] - }, - "EndActiveConference": { - "methods": [ - "endActiveConference" - ] - }, - "GetSpace": { - "methods": [ - "getSpace" - ] - }, - "UpdateSpace": { - "methods": [ - "updateSpace" - ] - } - } - } - } - }, - "ConferenceRecordsService": { - "clients": { - "grpc": { - "libraryClient": "ConferenceRecordsServiceGapicClient", - "rpcs": { - "GetConferenceRecord": { - "methods": [ - "getConferenceRecord" - ] - }, - "GetParticipant": { - "methods": [ - "getParticipant" - ] - }, - "GetParticipantSession": { - "methods": [ - "getParticipantSession" - ] - }, - "GetRecording": { - "methods": [ - "getRecording" - ] - }, - "GetTranscript": { - "methods": [ - "getTranscript" - ] - }, - "GetTranscriptEntry": { - "methods": [ - "getTranscriptEntry" - ] - }, - "ListConferenceRecords": { - "methods": [ - "listConferenceRecords" - ] - }, - "ListParticipantSessions": { - "methods": [ - "listParticipantSessions" - ] - }, - "ListParticipants": { - "methods": [ - "listParticipants" - ] - }, - "ListRecordings": { - "methods": [ - "listRecordings" - ] - }, - "ListTranscriptEntries": { - "methods": [ - "listTranscriptEntries" - ] - }, - "ListTranscripts": { - "methods": [ - "listTranscripts" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_client_config.json b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_client_config.json deleted file mode 100644 index 110fa3f68293..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_client_config.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "interfaces": { - "google.apps.meet.v2beta.ConferenceRecordsService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "GetConferenceRecord": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetParticipant": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetParticipantSession": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRecording": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTranscript": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTranscriptEntry": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConferenceRecords": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListParticipantSessions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListParticipants": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRecordings": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTranscriptEntries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTranscripts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_descriptor_config.php b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_descriptor_config.php deleted file mode 100644 index a1e72585d3fa..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_descriptor_config.php +++ /dev/null @@ -1,220 +0,0 @@ - [ - 'google.apps.meet.v2beta.ConferenceRecordsService' => [ - 'GetConferenceRecord' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ConferenceRecord', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipant' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\Participant', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipantSession' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ParticipantSession', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRecording' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\Recording', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscript' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\Transcript', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscriptEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\TranscriptEntry', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListConferenceRecords' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConferenceRecords', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ListConferenceRecordsResponse', - ], - 'ListParticipantSessions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getParticipantSessions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ListParticipantSessionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListParticipants' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getParticipants', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ListParticipantsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRecordings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRecordings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ListRecordingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscriptEntries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTranscriptEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ListTranscriptEntriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscripts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTranscripts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\ListTranscriptsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'conferenceRecord' => 'conferenceRecords/{conference_record}', - 'participant' => 'conferenceRecords/{conference_record}/participants/{participant}', - 'participantSession' => 'conferenceRecords/{conference_record}/participants/{participant}/participantSessions/{participant_session}', - 'recording' => 'conferenceRecords/{conference_record}/recordings/{recording}', - 'transcript' => 'conferenceRecords/{conference_record}/transcripts/{transcript}', - 'transcriptEntry' => 'conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_rest_client_config.php b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_rest_client_config.php deleted file mode 100644 index 7420251c88a8..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/conference_records_service_rest_client_config.php +++ /dev/null @@ -1,154 +0,0 @@ - [ - 'google.apps.meet.v2beta.ConferenceRecordsService' => [ - 'GetConferenceRecord' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{name=conferenceRecords/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipant' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{name=conferenceRecords/*/participants/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetParticipantSession' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{name=conferenceRecords/*/participants/*/participantSessions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRecording' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{name=conferenceRecords/*/recordings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscript' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{name=conferenceRecords/*/transcripts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTranscriptEntry' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{name=conferenceRecords/*/transcripts/*/entries/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListConferenceRecords' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/conferenceRecords', - ], - 'ListParticipantSessions' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{parent=conferenceRecords/*/participants/*}/participantSessions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListParticipants' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{parent=conferenceRecords/*}/participants', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRecordings' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{parent=conferenceRecords/*}/recordings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscriptEntries' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{parent=conferenceRecords/*/transcripts/*}/entries', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTranscripts' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{parent=conferenceRecords/*}/transcripts', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_client_config.json b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_client_config.json deleted file mode 100644 index ef584711f228..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_client_config.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "interfaces": { - "google.apps.meet.v2beta.SpacesService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateSpace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "EndActiveConference": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetSpace": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateSpace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_descriptor_config.php b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_descriptor_config.php deleted file mode 100644 index 69cf8a993e6d..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_descriptor_config.php +++ /dev/null @@ -1,73 +0,0 @@ - [ - 'google.apps.meet.v2beta.SpacesService' => [ - 'CreateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\Space', - ], - 'EndActiveConference' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\Space', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateSpace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Apps\Meet\V2beta\Space', - 'headerParams' => [ - [ - 'keyName' => 'space.name', - 'fieldAccessors' => [ - 'getSpace', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'conferenceRecord' => 'conferenceRecords/{conference_record}', - 'space' => 'spaces/{space}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_rest_client_config.php b/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_rest_client_config.php deleted file mode 100644 index 698dc3ace024..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/src/V2beta/resources/spaces_service_rest_client_config.php +++ /dev/null @@ -1,70 +0,0 @@ - [ - 'google.apps.meet.v2beta.SpacesService' => [ - 'CreateSpace' => [ - 'method' => 'post', - 'uriTemplate' => '/v2beta/spaces', - 'body' => 'space', - ], - 'EndActiveConference' => [ - 'method' => 'post', - 'uriTemplate' => '/v2beta/{name=spaces/*}:endActiveConference', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSpace' => [ - 'method' => 'get', - 'uriTemplate' => '/v2beta/{name=spaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateSpace' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2beta/{space.name=spaces/*}', - 'body' => 'space', - 'placeholders' => [ - 'space.name' => [ - 'getters' => [ - 'getSpace', - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AppsMeet/v2beta/tests/Unit/V2beta/Client/ConferenceRecordsServiceClientTest.php b/owl-bot-staging/AppsMeet/v2beta/tests/Unit/V2beta/Client/ConferenceRecordsServiceClientTest.php deleted file mode 100644 index def4fa0b8756..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/tests/Unit/V2beta/Client/ConferenceRecordsServiceClientTest.php +++ /dev/null @@ -1,933 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ConferenceRecordsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ConferenceRecordsServiceClient($options); - } - - /** @test */ - public function getConferenceRecordTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $space = 'space109637894'; - $expectedResponse = new ConferenceRecord(); - $expectedResponse->setName($name2); - $expectedResponse->setSpace($space); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new GetConferenceRecordRequest()) - ->setName($formattedName); - $response = $gapicClient->getConferenceRecord($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/GetConferenceRecord', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConferenceRecordExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new GetConferenceRecordRequest()) - ->setName($formattedName); - try { - $gapicClient->getConferenceRecord($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Participant(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new GetParticipantRequest()) - ->setName($formattedName); - $response = $gapicClient->getParticipant($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/GetParticipant', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new GetParticipantRequest()) - ->setName($formattedName); - try { - $gapicClient->getParticipant($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantSessionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new ParticipantSession(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->participantSessionName('[CONFERENCE_RECORD]', '[PARTICIPANT]', '[PARTICIPANT_SESSION]'); - $request = (new GetParticipantSessionRequest()) - ->setName($formattedName); - $response = $gapicClient->getParticipantSession($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/GetParticipantSession', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getParticipantSessionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->participantSessionName('[CONFERENCE_RECORD]', '[PARTICIPANT]', '[PARTICIPANT_SESSION]'); - $request = (new GetParticipantSessionRequest()) - ->setName($formattedName); - try { - $gapicClient->getParticipantSession($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecordingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Recording(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->recordingName('[CONFERENCE_RECORD]', '[RECORDING]'); - $request = (new GetRecordingRequest()) - ->setName($formattedName); - $response = $gapicClient->getRecording($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/GetRecording', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRecordingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->recordingName('[CONFERENCE_RECORD]', '[RECORDING]'); - $request = (new GetRecordingRequest()) - ->setName($formattedName); - try { - $gapicClient->getRecording($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Transcript(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new GetTranscriptRequest()) - ->setName($formattedName); - $response = $gapicClient->getTranscript($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/GetTranscript', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new GetTranscriptRequest()) - ->setName($formattedName); - try { - $gapicClient->getTranscript($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $participant = 'participant767422259'; - $text = 'text3556653'; - $languageCode = 'languageCode-412800396'; - $expectedResponse = new TranscriptEntry(); - $expectedResponse->setName($name2); - $expectedResponse->setParticipant($participant); - $expectedResponse->setText($text); - $expectedResponse->setLanguageCode($languageCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->transcriptEntryName('[CONFERENCE_RECORD]', '[TRANSCRIPT]', '[ENTRY]'); - $request = (new GetTranscriptEntryRequest()) - ->setName($formattedName); - $response = $gapicClient->getTranscriptEntry($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/GetTranscriptEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTranscriptEntryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->transcriptEntryName('[CONFERENCE_RECORD]', '[TRANSCRIPT]', '[ENTRY]'); - $request = (new GetTranscriptEntryRequest()) - ->setName($formattedName); - try { - $gapicClient->getTranscriptEntry($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConferenceRecordsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $conferenceRecordsElement = new ConferenceRecord(); - $conferenceRecords = [ - $conferenceRecordsElement, - ]; - $expectedResponse = new ListConferenceRecordsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConferenceRecords($conferenceRecords); - $transport->addResponse($expectedResponse); - $request = new ListConferenceRecordsRequest(); - $response = $gapicClient->listConferenceRecords($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConferenceRecords()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/ListConferenceRecords', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConferenceRecordsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListConferenceRecordsRequest(); - try { - $gapicClient->listConferenceRecords($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantSessionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $participantSessionsElement = new ParticipantSession(); - $participantSessions = [ - $participantSessionsElement, - ]; - $expectedResponse = new ListParticipantSessionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setParticipantSessions($participantSessions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new ListParticipantSessionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listParticipantSessions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getParticipantSessions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/ListParticipantSessions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantSessionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->participantName('[CONFERENCE_RECORD]', '[PARTICIPANT]'); - $request = (new ListParticipantSessionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listParticipantSessions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $participantsElement = new Participant(); - $participants = [ - $participantsElement, - ]; - $expectedResponse = new ListParticipantsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setParticipants($participants); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListParticipantsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listParticipants($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getParticipants()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/ListParticipants', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listParticipantsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListParticipantsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listParticipants($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecordingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $recordingsElement = new Recording(); - $recordings = [ - $recordingsElement, - ]; - $expectedResponse = new ListRecordingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRecordings($recordings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListRecordingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRecordings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRecordings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/ListRecordings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRecordingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListRecordingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRecordings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptEntriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $transcriptEntriesElement = new TranscriptEntry(); - $transcriptEntries = [ - $transcriptEntriesElement, - ]; - $expectedResponse = new ListTranscriptEntriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTranscriptEntries($transcriptEntries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new ListTranscriptEntriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTranscriptEntries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTranscriptEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/ListTranscriptEntries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptEntriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->transcriptName('[CONFERENCE_RECORD]', '[TRANSCRIPT]'); - $request = (new ListTranscriptEntriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTranscriptEntries($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $transcriptsElement = new Transcript(); - $transcripts = [ - $transcriptsElement, - ]; - $expectedResponse = new ListTranscriptsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTranscripts($transcripts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListTranscriptsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTranscripts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTranscripts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/ListTranscripts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTranscriptsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new ListTranscriptsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTranscripts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConferenceRecordAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $space = 'space109637894'; - $expectedResponse = new ConferenceRecord(); - $expectedResponse->setName($name2); - $expectedResponse->setSpace($space); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conferenceRecordName('[CONFERENCE_RECORD]'); - $request = (new GetConferenceRecordRequest()) - ->setName($formattedName); - $response = $gapicClient->getConferenceRecordAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.ConferenceRecordsService/GetConferenceRecord', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AppsMeet/v2beta/tests/Unit/V2beta/Client/SpacesServiceClientTest.php b/owl-bot-staging/AppsMeet/v2beta/tests/Unit/V2beta/Client/SpacesServiceClientTest.php deleted file mode 100644 index 2fde9ad205ad..000000000000 --- a/owl-bot-staging/AppsMeet/v2beta/tests/Unit/V2beta/Client/SpacesServiceClientTest.php +++ /dev/null @@ -1,351 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SpacesServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SpacesServiceClient($options); - } - - /** @test */ - public function createSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - $request = new CreateSpaceRequest(); - $response = $gapicClient->createSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.SpacesService/CreateSpace', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CreateSpaceRequest(); - try { - $gapicClient->createSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function endActiveConferenceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new EndActiveConferenceRequest()) - ->setName($formattedName); - $gapicClient->endActiveConference($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.SpacesService/EndActiveConference', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function endActiveConferenceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new EndActiveConferenceRequest()) - ->setName($formattedName); - try { - $gapicClient->endActiveConference($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name2); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - $response = $gapicClient->getSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.SpacesService/GetSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->spaceName('[SPACE]'); - $request = (new GetSpaceRequest()) - ->setName($formattedName); - try { - $gapicClient->getSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - // Mock request - $space = new Space(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space); - $response = $gapicClient->updateSpace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.SpacesService/UpdateSpace', $actualFuncCall); - $actualValue = $actualRequestObject->getSpace(); - $this->assertProtobufEquals($space, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSpaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $space = new Space(); - $request = (new UpdateSpaceRequest()) - ->setSpace($space); - try { - $gapicClient->updateSpace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSpaceAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $meetingUri = 'meetingUri-883054232'; - $meetingCode = 'meetingCode-1605416591'; - $expectedResponse = new Space(); - $expectedResponse->setName($name); - $expectedResponse->setMeetingUri($meetingUri); - $expectedResponse->setMeetingCode($meetingCode); - $transport->addResponse($expectedResponse); - $request = new CreateSpaceRequest(); - $response = $gapicClient->createSpaceAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.apps.meet.v2beta.SpacesService/CreateSpace', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Asset/v1/proto/src/GPBMetadata/Google/Cloud/Asset/V1/AssetService.php b/owl-bot-staging/Asset/v1/proto/src/GPBMetadata/Google/Cloud/Asset/V1/AssetService.php deleted file mode 100644 index bd88fdc28086..000000000000 Binary files a/owl-bot-staging/Asset/v1/proto/src/GPBMetadata/Google/Cloud/Asset/V1/AssetService.php and /dev/null differ diff --git a/owl-bot-staging/Asset/v1/proto/src/GPBMetadata/Google/Cloud/Asset/V1/Assets.php b/owl-bot-staging/Asset/v1/proto/src/GPBMetadata/Google/Cloud/Asset/V1/Assets.php deleted file mode 100644 index 37483f121749..000000000000 Binary files a/owl-bot-staging/Asset/v1/proto/src/GPBMetadata/Google/Cloud/Asset/V1/Assets.php and /dev/null differ diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningMetadata.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningMetadata.php deleted file mode 100644 index 7e2b1c3d693d..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningMetadata.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata - */ -class AnalyzeIamPolicyLongrunningMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningRequest.php deleted file mode 100644 index df8dc40e3a58..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningRequest.php +++ /dev/null @@ -1,208 +0,0 @@ -google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest - */ -class AnalyzeIamPolicyLongrunningRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The request query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $analysis_query = null; - /** - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * doc. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * - * Generated from protobuf field string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $saved_analysis_query = ''; - /** - * Required. Output configuration indicating where the results will be output - * to. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $analysis_query - * Required. The request query. - * @type string $saved_analysis_query - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * doc. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig $output_config - * Required. Output configuration indicating where the results will be output - * to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The request query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery|null - */ - public function getAnalysisQuery() - { - return $this->analysis_query; - } - - public function hasAnalysisQuery() - { - return isset($this->analysis_query); - } - - public function clearAnalysisQuery() - { - unset($this->analysis_query); - } - - /** - * Required. The request query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $var - * @return $this - */ - public function setAnalysisQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery::class); - $this->analysis_query = $var; - - return $this; - } - - /** - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * doc. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * - * Generated from protobuf field string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSavedAnalysisQuery() - { - return $this->saved_analysis_query; - } - - /** - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * doc. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * - * Generated from protobuf field string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSavedAnalysisQuery($var) - { - GPBUtil::checkString($var, True); - $this->saved_analysis_query = $var; - - return $this; - } - - /** - * Required. Output configuration indicating where the results will be output - * to. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Required. Output configuration indicating where the results will be output - * to. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig::class); - $this->output_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningResponse.php deleted file mode 100644 index 332d687c4cf8..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyLongrunningResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse - */ -class AnalyzeIamPolicyLongrunningResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyRequest.php deleted file mode 100644 index 1bf78c22c826..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyRequest.php +++ /dev/null @@ -1,236 +0,0 @@ -google.cloud.asset.v1.AnalyzeIamPolicyRequest - */ -class AnalyzeIamPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The request query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $analysis_query = null; - /** - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * page. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * - * Generated from protobuf field string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $saved_analysis_query = ''; - /** - * Optional. Amount of time executable has to complete. See JSON - * representation of - * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). - * If this field is set with a value less than the RPC deadline, and the - * execution of your query hasn't finished in the specified - * execution timeout, you will get a response with partial result. - * Otherwise, your query's execution will continue until the RPC deadline. - * If it's not finished until then, you will get a DEADLINE_EXCEEDED error. - * Default is empty. - * - * Generated from protobuf field .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $execution_timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $analysis_query - * Required. The request query. - * @type string $saved_analysis_query - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * page. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * @type \Google\Protobuf\Duration $execution_timeout - * Optional. Amount of time executable has to complete. See JSON - * representation of - * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). - * If this field is set with a value less than the RPC deadline, and the - * execution of your query hasn't finished in the specified - * execution timeout, you will get a response with partial result. - * Otherwise, your query's execution will continue until the RPC deadline. - * If it's not finished until then, you will get a DEADLINE_EXCEEDED error. - * Default is empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The request query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery|null - */ - public function getAnalysisQuery() - { - return $this->analysis_query; - } - - public function hasAnalysisQuery() - { - return isset($this->analysis_query); - } - - public function clearAnalysisQuery() - { - unset($this->analysis_query); - } - - /** - * Required. The request query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $var - * @return $this - */ - public function setAnalysisQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery::class); - $this->analysis_query = $var; - - return $this; - } - - /** - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * page. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * - * Generated from protobuf field string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSavedAnalysisQuery() - { - return $this->saved_analysis_query; - } - - /** - * Optional. The name of a saved query, which must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * If both `analysis_query` and `saved_analysis_query` are provided, they - * will be merged together with the `saved_analysis_query` as base and - * the `analysis_query` as overrides. For more details of the merge behavior, - * refer to the - * [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details) - * page. - * Note that you cannot override primitive fields with default value, such as - * 0 or empty string, etc., because we use proto3, which doesn't support field - * presence yet. - * - * Generated from protobuf field string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSavedAnalysisQuery($var) - { - GPBUtil::checkString($var, True); - $this->saved_analysis_query = $var; - - return $this; - } - - /** - * Optional. Amount of time executable has to complete. See JSON - * representation of - * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). - * If this field is set with a value less than the RPC deadline, and the - * execution of your query hasn't finished in the specified - * execution timeout, you will get a response with partial result. - * Otherwise, your query's execution will continue until the RPC deadline. - * If it's not finished until then, you will get a DEADLINE_EXCEEDED error. - * Default is empty. - * - * Generated from protobuf field .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getExecutionTimeout() - { - return $this->execution_timeout; - } - - public function hasExecutionTimeout() - { - return isset($this->execution_timeout); - } - - public function clearExecutionTimeout() - { - unset($this->execution_timeout); - } - - /** - * Optional. Amount of time executable has to complete. See JSON - * representation of - * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). - * If this field is set with a value less than the RPC deadline, and the - * execution of your query hasn't finished in the specified - * execution timeout, you will get a response with partial result. - * Otherwise, your query's execution will continue until the RPC deadline. - * If it's not finished until then, you will get a DEADLINE_EXCEEDED error. - * Default is empty. - * - * Generated from protobuf field .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setExecutionTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->execution_timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyResponse.php deleted file mode 100644 index af85a4885579..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyResponse.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.asset.v1.AnalyzeIamPolicyResponse - */ -class AnalyzeIamPolicyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The main analysis that matches the original request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - */ - protected $main_analysis = null; - /** - * The service account impersonation analysis if - * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is - * enabled. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - */ - private $service_account_impersonation_analysis; - /** - * Represents whether all entries in the - * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] - * and - * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] - * have been fully explored to answer the query in the request. - * - * Generated from protobuf field bool fully_explored = 3; - */ - protected $fully_explored = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis $main_analysis - * The main analysis that matches the original request. - * @type array<\Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis>|\Google\Protobuf\Internal\RepeatedField $service_account_impersonation_analysis - * The service account impersonation analysis if - * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is - * enabled. - * @type bool $fully_explored - * Represents whether all entries in the - * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] - * and - * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] - * have been fully explored to answer the query in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The main analysis that matches the original request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * @return \Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis|null - */ - public function getMainAnalysis() - { - return $this->main_analysis; - } - - public function hasMainAnalysis() - { - return isset($this->main_analysis); - } - - public function clearMainAnalysis() - { - unset($this->main_analysis); - } - - /** - * The main analysis that matches the original request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * @param \Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis $var - * @return $this - */ - public function setMainAnalysis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis::class); - $this->main_analysis = $var; - - return $this; - } - - /** - * The service account impersonation analysis if - * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is - * enabled. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAccountImpersonationAnalysis() - { - return $this->service_account_impersonation_analysis; - } - - /** - * The service account impersonation analysis if - * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is - * enabled. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * @param array<\Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAccountImpersonationAnalysis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse\IamPolicyAnalysis::class); - $this->service_account_impersonation_analysis = $arr; - - return $this; - } - - /** - * Represents whether all entries in the - * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] - * and - * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] - * have been fully explored to answer the query in the request. - * - * Generated from protobuf field bool fully_explored = 3; - * @return bool - */ - public function getFullyExplored() - { - return $this->fully_explored; - } - - /** - * Represents whether all entries in the - * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] - * and - * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] - * have been fully explored to answer the query in the request. - * - * Generated from protobuf field bool fully_explored = 3; - * @param bool $var - * @return $this - */ - public function setFullyExplored($var) - { - GPBUtil::checkBool($var); - $this->fully_explored = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyResponse/IamPolicyAnalysis.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyResponse/IamPolicyAnalysis.php deleted file mode 100644 index 843316999d92..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeIamPolicyResponse/IamPolicyAnalysis.php +++ /dev/null @@ -1,198 +0,0 @@ -google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - */ -class IamPolicyAnalysis extends \Google\Protobuf\Internal\Message -{ - /** - * The analysis query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - */ - protected $analysis_query = null; - /** - * A list of - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] - * that matches the analysis query, or empty if no result is found. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; - */ - private $analysis_results; - /** - * Represents whether all entries in the - * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] - * have been fully explored to answer the query. - * - * Generated from protobuf field bool fully_explored = 3; - */ - protected $fully_explored = false; - /** - * A list of non-critical errors happened during the query handling. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - */ - private $non_critical_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $analysis_query - * The analysis query. - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult>|\Google\Protobuf\Internal\RepeatedField $analysis_results - * A list of - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] - * that matches the analysis query, or empty if no result is found. - * @type bool $fully_explored - * Represents whether all entries in the - * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] - * have been fully explored to answer the query. - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisState>|\Google\Protobuf\Internal\RepeatedField $non_critical_errors - * A list of non-critical errors happened during the query handling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The analysis query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery|null - */ - public function getAnalysisQuery() - { - return $this->analysis_query; - } - - public function hasAnalysisQuery() - { - return isset($this->analysis_query); - } - - public function clearAnalysisQuery() - { - unset($this->analysis_query); - } - - /** - * The analysis query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $var - * @return $this - */ - public function setAnalysisQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery::class); - $this->analysis_query = $var; - - return $this; - } - - /** - * A list of - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] - * that matches the analysis query, or empty if no result is found. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnalysisResults() - { - return $this->analysis_results; - } - - /** - * A list of - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] - * that matches the analysis query, or empty if no result is found. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnalysisResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult::class); - $this->analysis_results = $arr; - - return $this; - } - - /** - * Represents whether all entries in the - * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] - * have been fully explored to answer the query. - * - * Generated from protobuf field bool fully_explored = 3; - * @return bool - */ - public function getFullyExplored() - { - return $this->fully_explored; - } - - /** - * Represents whether all entries in the - * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] - * have been fully explored to answer the query. - * - * Generated from protobuf field bool fully_explored = 3; - * @param bool $var - * @return $this - */ - public function setFullyExplored($var) - { - GPBUtil::checkBool($var); - $this->fully_explored = $var; - - return $this; - } - - /** - * A list of non-critical errors happened during the query handling. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNonCriticalErrors() - { - return $this->non_critical_errors; - } - - /** - * A list of non-critical errors happened during the query handling. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisState>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNonCriticalErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisState::class); - $this->non_critical_errors = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IamPolicyAnalysis::class, \Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse_IamPolicyAnalysis::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php deleted file mode 100644 index f96f7886a4a7..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.asset.v1.AnalyzeMoveRequest - */ -class AnalyzeMoveRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource to perform the analysis against. - * Only Google Cloud projects are supported as of today. Hence, this can only - * be a project ID (such as "projects/my-project-id") or a project number - * (such as "projects/12345"). - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * Required. Name of the Google Cloud folder or organization to reparent the - * target resource. The analysis will be performed against hypothetically - * moving the resource to this specified desitination parent. This can only be - * a folder number (such as "folders/123") or an organization number (such as - * "organizations/123"). - * - * Generated from protobuf field string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $destination_parent = ''; - /** - * Analysis view indicating what information should be included in the - * analysis response. If unspecified, the default view is FULL. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - */ - protected $view = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Required. Name of the resource to perform the analysis against. - * Only Google Cloud projects are supported as of today. Hence, this can only - * be a project ID (such as "projects/my-project-id") or a project number - * (such as "projects/12345"). - * @type string $destination_parent - * Required. Name of the Google Cloud folder or organization to reparent the - * target resource. The analysis will be performed against hypothetically - * moving the resource to this specified desitination parent. This can only be - * a folder number (such as "folders/123") or an organization number (such as - * "organizations/123"). - * @type int $view - * Analysis view indicating what information should be included in the - * analysis response. If unspecified, the default view is FULL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource to perform the analysis against. - * Only Google Cloud projects are supported as of today. Hence, this can only - * be a project ID (such as "projects/my-project-id") or a project number - * (such as "projects/12345"). - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Required. Name of the resource to perform the analysis against. - * Only Google Cloud projects are supported as of today. Hence, this can only - * be a project ID (such as "projects/my-project-id") or a project number - * (such as "projects/12345"). - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Required. Name of the Google Cloud folder or organization to reparent the - * target resource. The analysis will be performed against hypothetically - * moving the resource to this specified desitination parent. This can only be - * a folder number (such as "folders/123") or an organization number (such as - * "organizations/123"). - * - * Generated from protobuf field string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDestinationParent() - { - return $this->destination_parent; - } - - /** - * Required. Name of the Google Cloud folder or organization to reparent the - * target resource. The analysis will be performed against hypothetically - * moving the resource to this specified desitination parent. This can only be - * a folder number (such as "folders/123") or an organization number (such as - * "organizations/123"). - * - * Generated from protobuf field string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDestinationParent($var) - { - GPBUtil::checkString($var, True); - $this->destination_parent = $var; - - return $this; - } - - /** - * Analysis view indicating what information should be included in the - * analysis response. If unspecified, the default view is FULL. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Analysis view indicating what information should be included in the - * analysis response. If unspecified, the default view is FULL. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\AnalyzeMoveRequest\AnalysisView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest/AnalysisView.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest/AnalysisView.php deleted file mode 100644 index 312e0a876f42..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveRequest/AnalysisView.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView - */ -class AnalysisView -{ - /** - * The default/unset value. - * The API will default to the FULL view. - * - * Generated from protobuf enum ANALYSIS_VIEW_UNSPECIFIED = 0; - */ - const ANALYSIS_VIEW_UNSPECIFIED = 0; - /** - * Full analysis including all level of impacts of the specified resource - * move. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - /** - * Basic analysis only including blockers which will prevent the specified - * resource move at runtime. - * - * Generated from protobuf enum BASIC = 2; - */ - const BASIC = 2; - - private static $valueToName = [ - self::ANALYSIS_VIEW_UNSPECIFIED => 'ANALYSIS_VIEW_UNSPECIFIED', - self::FULL => 'FULL', - self::BASIC => 'BASIC', - ]; - - 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(AnalysisView::class, \Google\Cloud\Asset\V1\AnalyzeMoveRequest_AnalysisView::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveResponse.php deleted file mode 100644 index 3ca62f6f7935..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeMoveResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.asset.v1.AnalyzeMoveResponse - */ -class AnalyzeMoveResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of analyses returned from performing the intended resource move - * analysis. The analysis is grouped by different Google Cloud services. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; - */ - private $move_analysis; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\MoveAnalysis>|\Google\Protobuf\Internal\RepeatedField $move_analysis - * The list of analyses returned from performing the intended resource move - * analysis. The analysis is grouped by different Google Cloud services. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The list of analyses returned from performing the intended resource move - * analysis. The analysis is grouped by different Google Cloud services. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMoveAnalysis() - { - return $this->move_analysis; - } - - /** - * The list of analyses returned from performing the intended resource move - * analysis. The analysis is grouped by different Google Cloud services. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; - * @param array<\Google\Cloud\Asset\V1\MoveAnalysis>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMoveAnalysis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\MoveAnalysis::class); - $this->move_analysis = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesRequest.php deleted file mode 100644 index c32dc2c817c1..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPoliciesRequest - */ -class AnalyzeOrgPoliciesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = ''; - /** - * Required. The name of the constraint to analyze organization policies for. - * The response only contains analyzed organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $constraint = ''; - /** - * The expression to filter - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * Filtering is currently available for bare literal values and the following - * fields: - * * consolidated_policy.attached_resource - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the Organization Policy results attached to "folders/001". - * - * Generated from protobuf field string filter = 3; - */ - protected $filter = ''; - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results] - * will contain 20 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - */ - protected $page_size = null; - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * @param string $scope Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. - * - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @param string $constraint Required. The name of the constraint to analyze organization policies for. - * The response only contains analyzed organization policies for the provided - * constraint. - * @param string $filter The expression to filter - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * Filtering is currently available for bare literal values and the following - * fields: - * * consolidated_policy.attached_resource - * * consolidated_policy.rules.enforce - * - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the Organization Policy results attached to "folders/001". - * - * @return \Google\Cloud\Asset\V1\AnalyzeOrgPoliciesRequest - * - * @experimental - */ - public static function build(string $scope, string $constraint, string $filter): self - { - return (new self()) - ->setScope($scope) - ->setConstraint($constraint) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $constraint - * Required. The name of the constraint to analyze organization policies for. - * The response only contains analyzed organization policies for the provided - * constraint. - * @type string $filter - * The expression to filter - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * Filtering is currently available for bare literal values and the following - * fields: - * * consolidated_policy.attached_resource - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the Organization Policy results attached to "folders/001". - * @type int $page_size - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results] - * will contain 20 items with a maximum of 200. - * @type string $page_token - * The pagination token to retrieve the next page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Required. The name of the constraint to analyze organization policies for. - * The response only contains analyzed organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getConstraint() - { - return $this->constraint; - } - - /** - * Required. The name of the constraint to analyze organization policies for. - * The response only contains analyzed organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setConstraint($var) - { - GPBUtil::checkString($var, True); - $this->constraint = $var; - - return $this; - } - - /** - * The expression to filter - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * Filtering is currently available for bare literal values and the following - * fields: - * * consolidated_policy.attached_resource - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the Organization Policy results attached to "folders/001". - * - * Generated from protobuf field string filter = 3; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The expression to filter - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * Filtering is currently available for bare literal values and the following - * fields: - * * consolidated_policy.attached_resource - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the Organization Policy results attached to "folders/001". - * - * Generated from protobuf field string filter = 3; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results] - * will contain 20 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return isset($this->page_size) ? $this->page_size : 0; - } - - public function hasPageSize() - { - return isset($this->page_size); - } - - public function clearPageSize() - { - unset($this->page_size); - } - - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results] - * will contain 20 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - * @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/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesResponse.php deleted file mode 100644 index f04dfde17d23..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesResponse.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPoliciesResponse - */ -class AnalyzeOrgPoliciesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The organization policies under the - * [AnalyzeOrgPoliciesRequest.scope][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.scope] - * with the - * [AnalyzeOrgPoliciesRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.constraint]. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1; - */ - private $org_policy_results; - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - */ - protected $constraint = null; - /** - * The page token to fetch the next page for - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\AnalyzeOrgPoliciesResponse\OrgPolicyResult>|\Google\Protobuf\Internal\RepeatedField $org_policy_results - * The organization policies under the - * [AnalyzeOrgPoliciesRequest.scope][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.scope] - * with the - * [AnalyzeOrgPoliciesRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.constraint]. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint $constraint - * The definition of the constraint in the request. - * @type string $next_page_token - * The page token to fetch the next page for - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The organization policies under the - * [AnalyzeOrgPoliciesRequest.scope][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.scope] - * with the - * [AnalyzeOrgPoliciesRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.constraint]. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrgPolicyResults() - { - return $this->org_policy_results; - } - - /** - * The organization policies under the - * [AnalyzeOrgPoliciesRequest.scope][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.scope] - * with the - * [AnalyzeOrgPoliciesRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.constraint]. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1; - * @param array<\Google\Cloud\Asset\V1\AnalyzeOrgPoliciesResponse\OrgPolicyResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrgPolicyResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzeOrgPoliciesResponse\OrgPolicyResult::class); - $this->org_policy_results = $arr; - - return $this; - } - - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint|null - */ - public function getConstraint() - { - return $this->constraint; - } - - public function hasConstraint() - { - return isset($this->constraint); - } - - public function clearConstraint() - { - unset($this->constraint); - } - - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint $var - * @return $this - */ - public function setConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint::class); - $this->constraint = $var; - - return $this; - } - - /** - * The page token to fetch the next page for - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The page token to fetch the next page for - * [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]. - * - * Generated from protobuf field string next_page_token = 3; - * @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/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesResponse/OrgPolicyResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesResponse/OrgPolicyResult.php deleted file mode 100644 index 68b3e783edcd..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPoliciesResponse/OrgPolicyResult.php +++ /dev/null @@ -1,272 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult - */ -class OrgPolicyResult extends \Google\Protobuf\Internal\Message -{ - /** - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPoliciesResponse.policy_bundle][]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1; - */ - protected $consolidated_policy = null; - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; - */ - private $policy_bundle; - /** - * The project that this consolidated policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the consolidated - * policy belongs to a project. - * - * Generated from protobuf field string project = 3; - */ - protected $project = ''; - /** - * The folder(s) that this consolidated policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the consolidated - * policy belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 4; - */ - private $folders; - /** - * The organization that this consolidated policy belongs to, in the format - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * consolidated policy belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 5; - */ - protected $organization = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicy $consolidated_policy - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPoliciesResponse.policy_bundle][]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * @type array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy>|\Google\Protobuf\Internal\RepeatedField $policy_bundle - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * @type string $project - * The project that this consolidated policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the consolidated - * policy belongs to a project. - * @type array|\Google\Protobuf\Internal\RepeatedField $folders - * The folder(s) that this consolidated policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the consolidated - * policy belongs (directly or cascadingly) to one or more folders. - * @type string $organization - * The organization that this consolidated policy belongs to, in the format - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * consolidated policy belongs (directly or cascadingly) to an organization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPoliciesResponse.policy_bundle][]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicy|null - */ - public function getConsolidatedPolicy() - { - return $this->consolidated_policy; - } - - public function hasConsolidatedPolicy() - { - return isset($this->consolidated_policy); - } - - public function clearConsolidatedPolicy() - { - unset($this->consolidated_policy); - } - - /** - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPoliciesResponse.policy_bundle][]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicy $var - * @return $this - */ - public function setConsolidatedPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy::class); - $this->consolidated_policy = $var; - - return $this; - } - - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPolicyBundle() - { - return $this->policy_bundle; - } - - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; - * @param array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPolicyBundle($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy::class); - $this->policy_bundle = $arr; - - return $this; - } - - /** - * The project that this consolidated policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the consolidated - * policy belongs to a project. - * - * Generated from protobuf field string project = 3; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The project that this consolidated policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the consolidated - * policy belongs to a project. - * - * Generated from protobuf field string project = 3; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * The folder(s) that this consolidated policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the consolidated - * policy belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFolders() - { - return $this->folders; - } - - /** - * The folder(s) that this consolidated policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the consolidated - * policy belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->folders = $arr; - - return $this; - } - - /** - * The organization that this consolidated policy belongs to, in the format - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * consolidated policy belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 5; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * The organization that this consolidated policy belongs to, in the format - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * consolidated policy belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 5; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrgPolicyResult::class, \Google\Cloud\Asset\V1\AnalyzeOrgPoliciesResponse_OrgPolicyResult::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsRequest.php deleted file mode 100644 index ed466722b73c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsRequest.php +++ /dev/null @@ -1,392 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest - */ -class AnalyzeOrgPolicyGovernedAssetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output assets will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = ''; - /** - * Required. The name of the constraint to analyze governed assets for. The - * analysis only contains analyzed organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $constraint = ''; - /** - * The expression to filter - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * For governed resources, filtering is currently available for bare literal - * values and the following fields: - * * governed_resource.project - * * governed_resource.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_resource.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_resource.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_resource.project="projects/12345678"` - * will return all the governed resources under "projects/12345678", - * including the project itself if applicable. - * For governed IAM policies, filtering is currently available for bare - * literal values and the following fields: - * * governed_iam_policy.project - * * governed_iam_policy.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_iam_policy.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_iam_policy.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_iam_policy.folders:"folders/12345678"` - * will return all the governed IAM policies under "folders/001". - * - * Generated from protobuf field string filter = 3; - */ - protected $filter = ''; - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets] - * will contain 100 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - */ - protected $page_size = null; - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * @param string $scope Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output assets will - * also be limited to the ones governed by those in-scope organization - * policies. - * - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @param string $constraint Required. The name of the constraint to analyze governed assets for. The - * analysis only contains analyzed organization policies for the provided - * constraint. - * @param string $filter The expression to filter - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * - * For governed resources, filtering is currently available for bare literal - * values and the following fields: - * * governed_resource.project - * * governed_resource.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_resource.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_resource.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_resource.project="projects/12345678"` - * will return all the governed resources under "projects/12345678", - * including the project itself if applicable. - * - * For governed IAM policies, filtering is currently available for bare - * literal values and the following fields: - * * governed_iam_policy.project - * * governed_iam_policy.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_iam_policy.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_iam_policy.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_iam_policy.folders:"folders/12345678"` - * will return all the governed IAM policies under "folders/001". - * - * @return \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsRequest - * - * @experimental - */ - public static function build(string $scope, string $constraint, string $filter): self - { - return (new self()) - ->setScope($scope) - ->setConstraint($constraint) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output assets will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $constraint - * Required. The name of the constraint to analyze governed assets for. The - * analysis only contains analyzed organization policies for the provided - * constraint. - * @type string $filter - * The expression to filter - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * For governed resources, filtering is currently available for bare literal - * values and the following fields: - * * governed_resource.project - * * governed_resource.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_resource.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_resource.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_resource.project="projects/12345678"` - * will return all the governed resources under "projects/12345678", - * including the project itself if applicable. - * For governed IAM policies, filtering is currently available for bare - * literal values and the following fields: - * * governed_iam_policy.project - * * governed_iam_policy.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_iam_policy.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_iam_policy.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_iam_policy.folders:"folders/12345678"` - * will return all the governed IAM policies under "folders/001". - * @type int $page_size - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets] - * will contain 100 items with a maximum of 200. - * @type string $page_token - * The pagination token to retrieve the next page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output assets will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output assets will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Required. The name of the constraint to analyze governed assets for. The - * analysis only contains analyzed organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getConstraint() - { - return $this->constraint; - } - - /** - * Required. The name of the constraint to analyze governed assets for. The - * analysis only contains analyzed organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setConstraint($var) - { - GPBUtil::checkString($var, True); - $this->constraint = $var; - - return $this; - } - - /** - * The expression to filter - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * For governed resources, filtering is currently available for bare literal - * values and the following fields: - * * governed_resource.project - * * governed_resource.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_resource.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_resource.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_resource.project="projects/12345678"` - * will return all the governed resources under "projects/12345678", - * including the project itself if applicable. - * For governed IAM policies, filtering is currently available for bare - * literal values and the following fields: - * * governed_iam_policy.project - * * governed_iam_policy.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_iam_policy.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_iam_policy.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_iam_policy.folders:"folders/12345678"` - * will return all the governed IAM policies under "folders/001". - * - * Generated from protobuf field string filter = 3; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The expression to filter - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * For governed resources, filtering is currently available for bare literal - * values and the following fields: - * * governed_resource.project - * * governed_resource.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_resource.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_resource.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_resource.project="projects/12345678"` - * will return all the governed resources under "projects/12345678", - * including the project itself if applicable. - * For governed IAM policies, filtering is currently available for bare - * literal values and the following fields: - * * governed_iam_policy.project - * * governed_iam_policy.folders - * * consolidated_policy.rules.enforce - * When filtering by `governed_iam_policy.project` or - * `consolidated_policy.rules.enforce`, the only supported operator is `=`. - * When filtering by `governed_iam_policy.folders`, the supported operators - * are `=` and `:`. - * For example, filtering by `governed_iam_policy.folders:"folders/12345678"` - * will return all the governed IAM policies under "folders/001". - * - * Generated from protobuf field string filter = 3; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets] - * will contain 100 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return isset($this->page_size) ? $this->page_size : 0; - } - - public function hasPageSize() - { - return isset($this->page_size); - } - - public function clearPageSize() - { - unset($this->page_size); - } - - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets] - * will contain 100 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - * @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/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse.php deleted file mode 100644 index afe94d18cbcf..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse - */ -class AnalyzeOrgPolicyGovernedAssetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of the analyzed governed assets. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1; - */ - private $governed_assets; - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - */ - protected $constraint = null; - /** - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedAsset>|\Google\Protobuf\Internal\RepeatedField $governed_assets - * The list of the analyzed governed assets. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint $constraint - * The definition of the constraint in the request. - * @type string $next_page_token - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The list of the analyzed governed assets. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGovernedAssets() - { - return $this->governed_assets; - } - - /** - * The list of the analyzed governed assets. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1; - * @param array<\Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedAsset>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGovernedAssets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedAsset::class); - $this->governed_assets = $arr; - - return $this; - } - - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint|null - */ - public function getConstraint() - { - return $this->constraint; - } - - public function hasConstraint() - { - return isset($this->constraint); - } - - public function clearConstraint() - { - unset($this->constraint); - } - - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint $var - * @return $this - */ - public function setConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint::class); - $this->constraint = $var; - - return $this; - } - - /** - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]. - * - * Generated from protobuf field string next_page_token = 3; - * @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/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedAsset.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedAsset.php deleted file mode 100644 index 495a1be1b76a..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedAsset.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset - */ -class GovernedAsset extends \Google\Protobuf\Internal\Message -{ - /** - * The consolidated policy for the analyzed asset. The consolidated - * policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; - */ - protected $consolidated_policy = null; - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - */ - private $policy_bundle; - protected $governed_asset; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedResource $governed_resource - * A Google Cloud resource governed by the organization - * policies of the - * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint]. - * @type \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedIamPolicy $governed_iam_policy - * An IAM policy governed by the organization - * policies of the - * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint]. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicy $consolidated_policy - * The consolidated policy for the analyzed asset. The consolidated - * policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * @type array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy>|\Google\Protobuf\Internal\RepeatedField $policy_bundle - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * A Google Cloud resource governed by the organization - * policies of the - * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint]. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1; - * @return \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedResource|null - */ - public function getGovernedResource() - { - return $this->readOneof(1); - } - - public function hasGovernedResource() - { - return $this->hasOneof(1); - } - - /** - * A Google Cloud resource governed by the organization - * policies of the - * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint]. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1; - * @param \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedResource $var - * @return $this - */ - public function setGovernedResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedResource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * An IAM policy governed by the organization - * policies of the - * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint]. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2; - * @return \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedIamPolicy|null - */ - public function getGovernedIamPolicy() - { - return $this->readOneof(2); - } - - public function hasGovernedIamPolicy() - { - return $this->hasOneof(2); - } - - /** - * An IAM policy governed by the organization - * policies of the - * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint]. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2; - * @param \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedIamPolicy $var - * @return $this - */ - public function setGovernedIamPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse\GovernedIamPolicy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The consolidated policy for the analyzed asset. The consolidated - * policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicy|null - */ - public function getConsolidatedPolicy() - { - return $this->consolidated_policy; - } - - public function hasConsolidatedPolicy() - { - return isset($this->consolidated_policy); - } - - public function clearConsolidatedPolicy() - { - unset($this->consolidated_policy); - } - - /** - * The consolidated policy for the analyzed asset. The consolidated - * policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicy $var - * @return $this - */ - public function setConsolidatedPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy::class); - $this->consolidated_policy = $var; - - return $this; - } - - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPolicyBundle() - { - return $this->policy_bundle; - } - - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][] - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - * @param array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPolicyBundle($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy::class); - $this->policy_bundle = $arr; - - return $this; - } - - /** - * @return string - */ - public function getGovernedAsset() - { - return $this->whichOneof("governed_asset"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GovernedAsset::class, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedIamPolicy.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedIamPolicy.php deleted file mode 100644 index 32ee6c4a50a6..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedIamPolicy.php +++ /dev/null @@ -1,319 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy - */ -class GovernedIamPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The full resource name of the resource on which this IAM policy is set. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * - * Generated from protobuf field string attached_resource = 1; - */ - protected $attached_resource = ''; - /** - * The IAM policy directly set on the given resource. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2; - */ - protected $policy = null; - /** - * The project that this IAM policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the IAM policy - * belongs to a project. - * - * Generated from protobuf field string project = 5; - */ - protected $project = ''; - /** - * The folder(s) that this IAM policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - */ - private $folders; - /** - * The organization that this IAM policy belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - */ - protected $organization = ''; - /** - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource]. - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * - * Generated from protobuf field string asset_type = 8; - */ - protected $asset_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attached_resource - * The full resource name of the resource on which this IAM policy is set. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * @type \Google\Cloud\Iam\V1\Policy $policy - * The IAM policy directly set on the given resource. - * @type string $project - * The project that this IAM policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the IAM policy - * belongs to a project. - * @type array|\Google\Protobuf\Internal\RepeatedField $folders - * The folder(s) that this IAM policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs (directly or cascadingly) to one or more folders. - * @type string $organization - * The organization that this IAM policy belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs (directly or cascadingly) to an organization. - * @type string $asset_type - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource]. - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The full resource name of the resource on which this IAM policy is set. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * - * Generated from protobuf field string attached_resource = 1; - * @return string - */ - public function getAttachedResource() - { - return $this->attached_resource; - } - - /** - * The full resource name of the resource on which this IAM policy is set. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * - * Generated from protobuf field string attached_resource = 1; - * @param string $var - * @return $this - */ - public function setAttachedResource($var) - { - GPBUtil::checkString($var, True); - $this->attached_resource = $var; - - return $this; - } - - /** - * The IAM policy directly set on the given resource. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2; - * @return \Google\Cloud\Iam\V1\Policy|null - */ - public function getPolicy() - { - return $this->policy; - } - - public function hasPolicy() - { - return isset($this->policy); - } - - public function clearPolicy() - { - unset($this->policy); - } - - /** - * The IAM policy directly set on the given resource. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2; - * @param \Google\Cloud\Iam\V1\Policy $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); - $this->policy = $var; - - return $this; - } - - /** - * The project that this IAM policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the IAM policy - * belongs to a project. - * - * Generated from protobuf field string project = 5; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The project that this IAM policy belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the IAM policy - * belongs to a project. - * - * Generated from protobuf field string project = 5; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * The folder(s) that this IAM policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFolders() - { - return $this->folders; - } - - /** - * The folder(s) that this IAM policy belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->folders = $arr; - - return $this; - } - - /** - * The organization that this IAM policy belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * The organization that this IAM policy belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - - /** - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource]. - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * - * Generated from protobuf field string asset_type = 8; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource]. - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * - * Generated from protobuf field string asset_type = 8; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GovernedIamPolicy::class, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedResource.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedResource.php deleted file mode 100644 index 2b9b9a6bad21..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedAssetsResponse/GovernedResource.php +++ /dev/null @@ -1,343 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource - */ -class GovernedResource extends \Google\Protobuf\Internal\Message -{ - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the Google Cloud resource. - * - * Generated from protobuf field string full_resource_name = 1; - */ - protected $full_resource_name = ''; - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]. - * - * Generated from protobuf field string parent = 2; - */ - protected $parent = ''; - /** - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * - * Generated from protobuf field string project = 5; - */ - protected $project = ''; - /** - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - */ - private $folders; - /** - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - */ - protected $organization = ''; - /** - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name] - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * - * Generated from protobuf field string asset_type = 8; - */ - protected $asset_type = ''; - /** - * The effective tags on this resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; - */ - private $effective_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource_name - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the Google Cloud resource. - * @type string $parent - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]. - * @type string $project - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * @type array|\Google\Protobuf\Internal\RepeatedField $folders - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * @type string $organization - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * @type string $asset_type - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name] - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * @type array<\Google\Cloud\Asset\V1\EffectiveTagDetails>|\Google\Protobuf\Internal\RepeatedField $effective_tags - * The effective tags on this resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the Google Cloud resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the Google Cloud resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]. - * - * Generated from protobuf field string parent = 2; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]. - * - * Generated from protobuf field string parent = 2; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * - * Generated from protobuf field string project = 5; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * - * Generated from protobuf field string project = 5; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFolders() - { - return $this->folders; - } - - /** - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->folders = $arr; - - return $this; - } - - /** - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - - /** - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name] - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * - * Generated from protobuf field string asset_type = 8; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The asset type of the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name] - * Example: - * `cloudresourcemanager.googleapis.com/Project` - * See [Cloud Asset Inventory Supported Asset - * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for all supported asset types. - * - * Generated from protobuf field string asset_type = 8; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - - /** - * The effective tags on this resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveTags() - { - return $this->effective_tags; - } - - /** - * The effective tags on this resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; - * @param array<\Google\Cloud\Asset\V1\EffectiveTagDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\EffectiveTagDetails::class); - $this->effective_tags = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GovernedResource::class, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersRequest.php deleted file mode 100644 index 41e61f85b196..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersRequest.php +++ /dev/null @@ -1,316 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest - */ -class AnalyzeOrgPolicyGovernedContainersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output containers will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = ''; - /** - * Required. The name of the constraint to analyze governed containers for. - * The analysis only contains organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $constraint = ''; - /** - * The expression to filter - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * Filtering is currently available for bare literal values and the following - * fields: - * * parent - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * parent="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the containers under "folders/001". - * - * Generated from protobuf field string filter = 3; - */ - protected $filter = ''; - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers] - * will contain 100 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - */ - protected $page_size = null; - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * @param string $scope Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output containers will - * also be limited to the ones governed by those in-scope organization - * policies. - * - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @param string $constraint Required. The name of the constraint to analyze governed containers for. - * The analysis only contains organization policies for the provided - * constraint. - * @param string $filter The expression to filter - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * Filtering is currently available for bare literal values and the following - * fields: - * * parent - * * consolidated_policy.rules.enforce - * - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * parent="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the containers under "folders/001". - * - * @return \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedContainersRequest - * - * @experimental - */ - public static function build(string $scope, string $constraint, string $filter): self - { - return (new self()) - ->setScope($scope) - ->setConstraint($constraint) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output containers will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $constraint - * Required. The name of the constraint to analyze governed containers for. - * The analysis only contains organization policies for the provided - * constraint. - * @type string $filter - * The expression to filter - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * Filtering is currently available for bare literal values and the following - * fields: - * * parent - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * parent="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the containers under "folders/001". - * @type int $page_size - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers] - * will contain 100 items with a maximum of 200. - * @type string $page_token - * The pagination token to retrieve the next page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output containers will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. The organization to scope the request. Only organization - * policies within the scope will be analyzed. The output containers will - * also be limited to the ones governed by those in-scope organization - * policies. - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Required. The name of the constraint to analyze governed containers for. - * The analysis only contains organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getConstraint() - { - return $this->constraint; - } - - /** - * Required. The name of the constraint to analyze governed containers for. - * The analysis only contains organization policies for the provided - * constraint. - * - * Generated from protobuf field string constraint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setConstraint($var) - { - GPBUtil::checkString($var, True); - $this->constraint = $var; - - return $this; - } - - /** - * The expression to filter - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * Filtering is currently available for bare literal values and the following - * fields: - * * parent - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * parent="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the containers under "folders/001". - * - * Generated from protobuf field string filter = 3; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The expression to filter - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * Filtering is currently available for bare literal values and the following - * fields: - * * parent - * * consolidated_policy.rules.enforce - * When filtering by a specific field, the only supported operator is `=`. - * For example, filtering by - * parent="//cloudresourcemanager.googleapis.com/folders/001" - * will return all the containers under "folders/001". - * - * Generated from protobuf field string filter = 3; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers] - * will contain 100 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return isset($this->page_size) ? $this->page_size : 0; - } - - public function hasPageSize() - { - return isset($this->page_size); - } - - public function clearPageSize() - { - unset($this->page_size); - } - - /** - * The maximum number of items to return per page. If unspecified, - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers] - * will contain 100 items with a maximum of 200. - * - * Generated from protobuf field optional int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The pagination token to retrieve the next page. - * - * Generated from protobuf field string page_token = 5; - * @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/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersResponse.php deleted file mode 100644 index 795d1e14a8aa..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersResponse.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse - */ -class AnalyzeOrgPolicyGovernedContainersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of the analyzed governed containers. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer governed_containers = 1; - */ - private $governed_containers; - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - */ - protected $constraint = null; - /** - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedContainersResponse\GovernedContainer>|\Google\Protobuf\Internal\RepeatedField $governed_containers - * The list of the analyzed governed containers. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint $constraint - * The definition of the constraint in the request. - * @type string $next_page_token - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The list of the analyzed governed containers. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer governed_containers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGovernedContainers() - { - return $this->governed_containers; - } - - /** - * The list of the analyzed governed containers. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer governed_containers = 1; - * @param array<\Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedContainersResponse\GovernedContainer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGovernedContainers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedContainersResponse\GovernedContainer::class); - $this->governed_containers = $arr; - - return $this; - } - - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint|null - */ - public function getConstraint() - { - return $this->constraint; - } - - public function hasConstraint() - { - return isset($this->constraint); - } - - public function clearConstraint() - { - unset($this->constraint); - } - - /** - * The definition of the constraint in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint $var - * @return $this - */ - public function setConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint::class); - $this->constraint = $var; - - return $this; - } - - /** - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The page token to fetch the next page for - * [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]. - * - * Generated from protobuf field string next_page_token = 3; - * @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/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersResponse/GovernedContainer.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersResponse/GovernedContainer.php deleted file mode 100644 index 117e289991fa..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzeOrgPolicyGovernedContainersResponse/GovernedContainer.php +++ /dev/null @@ -1,396 +0,0 @@ -google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer - */ -class GovernedContainer extends \Google\Protobuf\Internal\Message -{ - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource. - * - * Generated from protobuf field string full_resource_name = 1; - */ - protected $full_resource_name = ''; - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name]. - * - * Generated from protobuf field string parent = 2; - */ - protected $parent = ''; - /** - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; - */ - protected $consolidated_policy = null; - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - */ - private $policy_bundle; - /** - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * - * Generated from protobuf field string project = 5; - */ - protected $project = ''; - /** - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - */ - private $folders; - /** - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - */ - protected $organization = ''; - /** - * The effective tags on this resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; - */ - private $effective_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource_name - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource. - * @type string $parent - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name]. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicy $consolidated_policy - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * @type array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy>|\Google\Protobuf\Internal\RepeatedField $policy_bundle - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * @type string $project - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * @type array|\Google\Protobuf\Internal\RepeatedField $folders - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * @type string $organization - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * @type array<\Google\Cloud\Asset\V1\EffectiveTagDetails>|\Google\Protobuf\Internal\RepeatedField $effective_tags - * The effective tags on this resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name]. - * - * Generated from protobuf field string parent = 2; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * the parent of - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name]. - * - * Generated from protobuf field string parent = 2; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicy|null - */ - public function getConsolidatedPolicy() - { - return $this->consolidated_policy; - } - - public function hasConsolidatedPolicy() - { - return isset($this->consolidated_policy); - } - - public function clearConsolidatedPolicy() - { - unset($this->consolidated_policy); - } - - /** - * The consolidated organization policy for the analyzed resource. The - * consolidated organization policy is computed by merging and evaluating - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle]. - * The evaluation will respect the organization policy [hierarchy - * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicy $var - * @return $this - */ - public function setConsolidatedPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy::class); - $this->consolidated_policy = $var; - - return $this; - } - - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPolicyBundle() - { - return $this->policy_bundle; - } - - /** - * The ordered list of all organization policies from the - * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. - * to the scope specified in the request. - * If the constraint is defined with default policy, it will also appear in - * the list. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - * @param array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPolicyBundle($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy::class); - $this->policy_bundle = $arr; - - return $this; - } - - /** - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * - * Generated from protobuf field string project = 5; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The project that this resource belongs to, in the format of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * - * Generated from protobuf field string project = 5; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFolders() - { - return $this->folders; - } - - /** - * The folder(s) that this resource belongs to, in the format of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs (directly or cascadingly) to one or more folders. - * - * Generated from protobuf field repeated string folders = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->folders = $arr; - - return $this; - } - - /** - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * The organization that this resource belongs to, in the format of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs (directly or cascadingly) to an organization. - * - * Generated from protobuf field string organization = 7; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - - /** - * The effective tags on this resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveTags() - { - return $this->effective_tags; - } - - /** - * The effective tags on this resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; - * @param array<\Google\Cloud\Asset\V1\EffectiveTagDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\EffectiveTagDetails::class); - $this->effective_tags = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GovernedContainer::class, \Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy.php deleted file mode 100644 index 228e2f55bc0a..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicy - */ -class AnalyzerOrgPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy is - * set. - * Notice that some type of constraints are defined with default policy. This - * field will be empty for them. - * - * Generated from protobuf field string attached_resource = 1; - */ - protected $attached_resource = ''; - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy - * applies to. - * For any user defined org policies, this field has the same value as - * the [attached_resource] field. Only for default policy, this field has - * the different value. - * - * Generated from protobuf field string applied_resource = 5; - */ - protected $applied_resource = ''; - /** - * List of rules for this organization policy. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule rules = 2; - */ - private $rules; - /** - * If `inherit_from_parent` is true, Rules set higher up in the - * hierarchy (up to the closest root) are inherited and present in the - * effective policy. If it is false, then no rules are inherited, and this - * policy becomes the effective root for evaluation. - * - * Generated from protobuf field bool inherit_from_parent = 3; - */ - protected $inherit_from_parent = false; - /** - * Ignores policies set above this resource and restores the default behavior - * of the constraint at this resource. - * This field can be set in policies for either list or boolean - * constraints. If set, `rules` must be empty and `inherit_from_parent` - * must be set to false. - * - * Generated from protobuf field bool reset = 4; - */ - protected $reset = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attached_resource - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy is - * set. - * Notice that some type of constraints are defined with default policy. This - * field will be empty for them. - * @type string $applied_resource - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy - * applies to. - * For any user defined org policies, this field has the same value as - * the [attached_resource] field. Only for default policy, this field has - * the different value. - * @type array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule>|\Google\Protobuf\Internal\RepeatedField $rules - * List of rules for this organization policy. - * @type bool $inherit_from_parent - * If `inherit_from_parent` is true, Rules set higher up in the - * hierarchy (up to the closest root) are inherited and present in the - * effective policy. If it is false, then no rules are inherited, and this - * policy becomes the effective root for evaluation. - * @type bool $reset - * Ignores policies set above this resource and restores the default behavior - * of the constraint at this resource. - * This field can be set in policies for either list or boolean - * constraints. If set, `rules` must be empty and `inherit_from_parent` - * must be set to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy is - * set. - * Notice that some type of constraints are defined with default policy. This - * field will be empty for them. - * - * Generated from protobuf field string attached_resource = 1; - * @return string - */ - public function getAttachedResource() - { - return $this->attached_resource; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy is - * set. - * Notice that some type of constraints are defined with default policy. This - * field will be empty for them. - * - * Generated from protobuf field string attached_resource = 1; - * @param string $var - * @return $this - */ - public function setAttachedResource($var) - { - GPBUtil::checkString($var, True); - $this->attached_resource = $var; - - return $this; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy - * applies to. - * For any user defined org policies, this field has the same value as - * the [attached_resource] field. Only for default policy, this field has - * the different value. - * - * Generated from protobuf field string applied_resource = 5; - * @return string - */ - public function getAppliedResource() - { - return $this->applied_resource; - } - - /** - * The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of - * an organization/folder/project resource where this organization policy - * applies to. - * For any user defined org policies, this field has the same value as - * the [attached_resource] field. Only for default policy, this field has - * the different value. - * - * Generated from protobuf field string applied_resource = 5; - * @param string $var - * @return $this - */ - public function setAppliedResource($var) - { - GPBUtil::checkString($var, True); - $this->applied_resource = $var; - - return $this; - } - - /** - * List of rules for this organization policy. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule rules = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * List of rules for this organization policy. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule rules = 2; - * @param array<\Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * If `inherit_from_parent` is true, Rules set higher up in the - * hierarchy (up to the closest root) are inherited and present in the - * effective policy. If it is false, then no rules are inherited, and this - * policy becomes the effective root for evaluation. - * - * Generated from protobuf field bool inherit_from_parent = 3; - * @return bool - */ - public function getInheritFromParent() - { - return $this->inherit_from_parent; - } - - /** - * If `inherit_from_parent` is true, Rules set higher up in the - * hierarchy (up to the closest root) are inherited and present in the - * effective policy. If it is false, then no rules are inherited, and this - * policy becomes the effective root for evaluation. - * - * Generated from protobuf field bool inherit_from_parent = 3; - * @param bool $var - * @return $this - */ - public function setInheritFromParent($var) - { - GPBUtil::checkBool($var); - $this->inherit_from_parent = $var; - - return $this; - } - - /** - * Ignores policies set above this resource and restores the default behavior - * of the constraint at this resource. - * This field can be set in policies for either list or boolean - * constraints. If set, `rules` must be empty and `inherit_from_parent` - * must be set to false. - * - * Generated from protobuf field bool reset = 4; - * @return bool - */ - public function getReset() - { - return $this->reset; - } - - /** - * Ignores policies set above this resource and restores the default behavior - * of the constraint at this resource. - * This field can be set in policies for either list or boolean - * constraints. If set, `rules` must be empty and `inherit_from_parent` - * must be set to false. - * - * Generated from protobuf field bool reset = 4; - * @param bool $var - * @return $this - */ - public function setReset($var) - { - GPBUtil::checkBool($var); - $this->reset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy/Rule.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy/Rule.php deleted file mode 100644 index c1b20c1dffd3..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy/Rule.php +++ /dev/null @@ -1,331 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicy.Rule - */ -class Rule extends \Google\Protobuf\Internal\Message -{ - /** - * The evaluating condition for this rule. - * - * Generated from protobuf field .google.type.Expr condition = 7; - */ - protected $condition = null; - /** - * The condition evaluation result for this rule. - * Only populated if it meets all the following criteria: - * * There is a - * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] - * defined for this rule. - * * This rule is within - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy], - * or - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy] - * when the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset] - * has - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource]. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; - */ - protected $condition_evaluation = null; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule\StringValues $values - * List of values to be used for this policy rule. This field can be set - * only in policies for list constraints. - * @type bool $allow_all - * Setting this to true means that all values are allowed. This field can - * be set only in Policies for list constraints. - * @type bool $deny_all - * Setting this to true means that all values are denied. This field can - * be set only in Policies for list constraints. - * @type bool $enforce - * If `true`, then the `Policy` is enforced. If `false`, then any - * configuration is acceptable. - * This field can be set only in Policies for boolean constraints. - * @type \Google\Type\Expr $condition - * The evaluating condition for this rule. - * @type \Google\Cloud\Asset\V1\ConditionEvaluation $condition_evaluation - * The condition evaluation result for this rule. - * Only populated if it meets all the following criteria: - * * There is a - * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] - * defined for this rule. - * * This rule is within - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy], - * or - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy] - * when the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset] - * has - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * List of values to be used for this policy rule. This field can be set - * only in policies for list constraints. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule\StringValues|null - */ - public function getValues() - { - return $this->readOneof(3); - } - - public function hasValues() - { - return $this->hasOneof(3); - } - - /** - * List of values to be used for this policy rule. This field can be set - * only in policies for list constraints. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule\StringValues $var - * @return $this - */ - public function setValues($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy\Rule\StringValues::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Setting this to true means that all values are allowed. This field can - * be set only in Policies for list constraints. - * - * Generated from protobuf field bool allow_all = 4; - * @return bool - */ - public function getAllowAll() - { - return $this->readOneof(4); - } - - public function hasAllowAll() - { - return $this->hasOneof(4); - } - - /** - * Setting this to true means that all values are allowed. This field can - * be set only in Policies for list constraints. - * - * Generated from protobuf field bool allow_all = 4; - * @param bool $var - * @return $this - */ - public function setAllowAll($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Setting this to true means that all values are denied. This field can - * be set only in Policies for list constraints. - * - * Generated from protobuf field bool deny_all = 5; - * @return bool - */ - public function getDenyAll() - { - return $this->readOneof(5); - } - - public function hasDenyAll() - { - return $this->hasOneof(5); - } - - /** - * Setting this to true means that all values are denied. This field can - * be set only in Policies for list constraints. - * - * Generated from protobuf field bool deny_all = 5; - * @param bool $var - * @return $this - */ - public function setDenyAll($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * If `true`, then the `Policy` is enforced. If `false`, then any - * configuration is acceptable. - * This field can be set only in Policies for boolean constraints. - * - * Generated from protobuf field bool enforce = 6; - * @return bool - */ - public function getEnforce() - { - return $this->readOneof(6); - } - - public function hasEnforce() - { - return $this->hasOneof(6); - } - - /** - * If `true`, then the `Policy` is enforced. If `false`, then any - * configuration is acceptable. - * This field can be set only in Policies for boolean constraints. - * - * Generated from protobuf field bool enforce = 6; - * @param bool $var - * @return $this - */ - public function setEnforce($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The evaluating condition for this rule. - * - * Generated from protobuf field .google.type.Expr condition = 7; - * @return \Google\Type\Expr|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * The evaluating condition for this rule. - * - * Generated from protobuf field .google.type.Expr condition = 7; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->condition = $var; - - return $this; - } - - /** - * The condition evaluation result for this rule. - * Only populated if it meets all the following criteria: - * * There is a - * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] - * defined for this rule. - * * This rule is within - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy], - * or - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy] - * when the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset] - * has - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource]. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; - * @return \Google\Cloud\Asset\V1\ConditionEvaluation|null - */ - public function getConditionEvaluation() - { - return $this->condition_evaluation; - } - - public function hasConditionEvaluation() - { - return isset($this->condition_evaluation); - } - - public function clearConditionEvaluation() - { - unset($this->condition_evaluation); - } - - /** - * The condition evaluation result for this rule. - * Only populated if it meets all the following criteria: - * * There is a - * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] - * defined for this rule. - * * This rule is within - * [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy], - * or - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy] - * when the - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset] - * has - * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource]. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; - * @param \Google\Cloud\Asset\V1\ConditionEvaluation $var - * @return $this - */ - public function setConditionEvaluation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\ConditionEvaluation::class); - $this->condition_evaluation = $var; - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Rule::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy_Rule::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy/Rule/StringValues.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy/Rule/StringValues.php deleted file mode 100644 index fd511b380d55..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicy/Rule/StringValues.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues - */ -class StringValues extends \Google\Protobuf\Internal\Message -{ - /** - * List of values allowed at this resource. - * - * Generated from protobuf field repeated string allowed_values = 1; - */ - private $allowed_values; - /** - * List of values denied at this resource. - * - * Generated from protobuf field repeated string denied_values = 2; - */ - private $denied_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_values - * List of values allowed at this resource. - * @type array|\Google\Protobuf\Internal\RepeatedField $denied_values - * List of values denied at this resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * List of values allowed at this resource. - * - * Generated from protobuf field repeated string allowed_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedValues() - { - return $this->allowed_values; - } - - /** - * List of values allowed at this resource. - * - * Generated from protobuf field repeated string allowed_values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_values = $arr; - - return $this; - } - - /** - * List of values denied at this resource. - * - * Generated from protobuf field repeated string denied_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeniedValues() - { - return $this->denied_values; - } - - /** - * List of values denied at this resource. - * - * Generated from protobuf field repeated string denied_values = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeniedValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->denied_values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringValues::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicy_Rule_StringValues::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint.php deleted file mode 100644 index 74e4349d4a41..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint - */ -class AnalyzerOrgPolicyConstraint extends \Google\Protobuf\Internal\Message -{ - protected $constraint_definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint $google_defined_constraint - * The definition of the canned constraint defined by Google. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint $custom_constraint - * The definition of the custom constraint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The definition of the canned constraint defined by Google. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint|null - */ - public function getGoogleDefinedConstraint() - { - return $this->readOneof(1); - } - - public function hasGoogleDefinedConstraint() - { - return $this->hasOneof(1); - } - - /** - * The definition of the canned constraint defined by Google. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint $var - * @return $this - */ - public function setGoogleDefinedConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The definition of the custom constraint. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint|null - */ - public function getCustomConstraint() - { - return $this->readOneof(2); - } - - public function hasCustomConstraint() - { - return $this->hasOneof(2); - } - - /** - * The definition of the custom constraint. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint $var - * @return $this - */ - public function setCustomConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getConstraintDefinition() - { - return $this->whichOneof("constraint_definition"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint.php deleted file mode 100644 index a10cef66d192..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint.php +++ /dev/null @@ -1,259 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint - */ -class Constraint extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the constraint. Format of the name should be - * * `constraints/{constraint_name}` - * For example, `constraints/compute.disableSerialPortAccess`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The human readable name of the constraint. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Detailed description of what this `Constraint` controls as well as how - * and where it is enforced. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * The evaluation behavior of this constraint in the absence of 'Policy'. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4; - */ - protected $constraint_default = 0; - protected $constraint_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name of the constraint. Format of the name should be - * * `constraints/{constraint_name}` - * For example, `constraints/compute.disableSerialPortAccess`. - * @type string $display_name - * The human readable name of the constraint. - * @type string $description - * Detailed description of what this `Constraint` controls as well as how - * and where it is enforced. - * @type int $constraint_default - * The evaluation behavior of this constraint in the absence of 'Policy'. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\ListConstraint $list_constraint - * Defines this constraint as being a ListConstraint. - * @type \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\BooleanConstraint $boolean_constraint - * Defines this constraint as being a BooleanConstraint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the constraint. Format of the name should be - * * `constraints/{constraint_name}` - * For example, `constraints/compute.disableSerialPortAccess`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the constraint. Format of the name should be - * * `constraints/{constraint_name}` - * For example, `constraints/compute.disableSerialPortAccess`. - * - * 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; - } - - /** - * The human readable name of the constraint. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The human readable name of the constraint. - * - * 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; - } - - /** - * Detailed description of what this `Constraint` controls as well as how - * and where it is enforced. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Detailed description of what this `Constraint` controls as well as how - * and where it is enforced. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The evaluation behavior of this constraint in the absence of 'Policy'. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4; - * @return int - */ - public function getConstraintDefault() - { - return $this->constraint_default; - } - - /** - * The evaluation behavior of this constraint in the absence of 'Policy'. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4; - * @param int $var - * @return $this - */ - public function setConstraintDefault($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\ConstraintDefault::class); - $this->constraint_default = $var; - - return $this; - } - - /** - * Defines this constraint as being a ListConstraint. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\ListConstraint|null - */ - public function getListConstraint() - { - return $this->readOneof(5); - } - - public function hasListConstraint() - { - return $this->hasOneof(5); - } - - /** - * Defines this constraint as being a ListConstraint. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\ListConstraint $var - * @return $this - */ - public function setListConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\ListConstraint::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Defines this constraint as being a BooleanConstraint. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; - * @return \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\BooleanConstraint|null - */ - public function getBooleanConstraint() - { - return $this->readOneof(6); - } - - public function hasBooleanConstraint() - { - return $this->hasOneof(6); - } - - /** - * Defines this constraint as being a BooleanConstraint. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; - * @param \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\BooleanConstraint $var - * @return $this - */ - public function setBooleanConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint\BooleanConstraint::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getConstraintType() - { - return $this->whichOneof("constraint_type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Constraint::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint_Constraint::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/BooleanConstraint.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/BooleanConstraint.php deleted file mode 100644 index 71cc4c750987..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/BooleanConstraint.php +++ /dev/null @@ -1,39 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint - */ -class BooleanConstraint extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BooleanConstraint::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/ConstraintDefault.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/ConstraintDefault.php deleted file mode 100644 index d3b8fae6657d..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/ConstraintDefault.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault - */ -class ConstraintDefault -{ - /** - * This is only used for distinguishing unset values and should never be - * used. - * - * Generated from protobuf enum CONSTRAINT_DEFAULT_UNSPECIFIED = 0; - */ - const CONSTRAINT_DEFAULT_UNSPECIFIED = 0; - /** - * Indicate that all values are allowed for list constraints. - * Indicate that enforcement is off for boolean constraints. - * - * Generated from protobuf enum ALLOW = 1; - */ - const ALLOW = 1; - /** - * Indicate that all values are denied for list constraints. - * Indicate that enforcement is on for boolean constraints. - * - * Generated from protobuf enum DENY = 2; - */ - const DENY = 2; - - private static $valueToName = [ - self::CONSTRAINT_DEFAULT_UNSPECIFIED => 'CONSTRAINT_DEFAULT_UNSPECIFIED', - self::ALLOW => 'ALLOW', - self::DENY => 'DENY', - ]; - - 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(ConstraintDefault::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/ListConstraint.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/ListConstraint.php deleted file mode 100644 index b738aa77ede8..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/Constraint/ListConstraint.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint - */ -class ListConstraint extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates whether values grouped into categories can be used in - * `Policy.allowed_values` and `Policy.denied_values`. For example, - * `"in:Python"` would match any value in the 'Python' group. - * - * Generated from protobuf field bool supports_in = 1; - */ - protected $supports_in = false; - /** - * Indicates whether subtrees of Cloud Resource Manager resource hierarchy - * can be used in `Policy.allowed_values` and `Policy.denied_values`. For - * example, `"under:folders/123"` would match any resource under the - * 'folders/123' folder. - * - * Generated from protobuf field bool supports_under = 2; - */ - protected $supports_under = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $supports_in - * Indicates whether values grouped into categories can be used in - * `Policy.allowed_values` and `Policy.denied_values`. For example, - * `"in:Python"` would match any value in the 'Python' group. - * @type bool $supports_under - * Indicates whether subtrees of Cloud Resource Manager resource hierarchy - * can be used in `Policy.allowed_values` and `Policy.denied_values`. For - * example, `"under:folders/123"` would match any resource under the - * 'folders/123' folder. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Indicates whether values grouped into categories can be used in - * `Policy.allowed_values` and `Policy.denied_values`. For example, - * `"in:Python"` would match any value in the 'Python' group. - * - * Generated from protobuf field bool supports_in = 1; - * @return bool - */ - public function getSupportsIn() - { - return $this->supports_in; - } - - /** - * Indicates whether values grouped into categories can be used in - * `Policy.allowed_values` and `Policy.denied_values`. For example, - * `"in:Python"` would match any value in the 'Python' group. - * - * Generated from protobuf field bool supports_in = 1; - * @param bool $var - * @return $this - */ - public function setSupportsIn($var) - { - GPBUtil::checkBool($var); - $this->supports_in = $var; - - return $this; - } - - /** - * Indicates whether subtrees of Cloud Resource Manager resource hierarchy - * can be used in `Policy.allowed_values` and `Policy.denied_values`. For - * example, `"under:folders/123"` would match any resource under the - * 'folders/123' folder. - * - * Generated from protobuf field bool supports_under = 2; - * @return bool - */ - public function getSupportsUnder() - { - return $this->supports_under; - } - - /** - * Indicates whether subtrees of Cloud Resource Manager resource hierarchy - * can be used in `Policy.allowed_values` and `Policy.denied_values`. For - * example, `"under:folders/123"` would match any resource under the - * 'folders/123' folder. - * - * Generated from protobuf field bool supports_under = 2; - * @param bool $var - * @return $this - */ - public function setSupportsUnder($var) - { - GPBUtil::checkBool($var); - $this->supports_under = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ListConstraint::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint_Constraint_ListConstraint::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint.php deleted file mode 100644 index 555a6cfeca8b..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint - */ -class CustomConstraint extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the constraint. This is unique within the organization. Format of - * the name should be - * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` - * Example : - * "organizations/123/customConstraints/custom.createOnlyE2TypeVms" - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The Resource Instance type on which this policy applies to. Format will - * be of the form : "/" Example: - * * `compute.googleapis.com/Instance`. - * - * Generated from protobuf field repeated string resource_types = 2; - */ - private $resource_types; - /** - * All the operations being applied for this constraint. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3; - */ - private $method_types; - /** - * Organization Policy condition/expression. For example: - * `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, - * `resource.management.auto_upgrade == true` - * - * Generated from protobuf field string condition = 4; - */ - protected $condition = ''; - /** - * Allow or deny type. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5; - */ - protected $action_type = 0; - /** - * One line display name for the UI. - * - * Generated from protobuf field string display_name = 6; - */ - protected $display_name = ''; - /** - * Detailed information about this custom policy constraint. - * - * Generated from protobuf field string description = 7; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the constraint. This is unique within the organization. Format of - * the name should be - * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` - * Example : - * "organizations/123/customConstraints/custom.createOnlyE2TypeVms" - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_types - * The Resource Instance type on which this policy applies to. Format will - * be of the form : "/" Example: - * * `compute.googleapis.com/Instance`. - * @type array|\Google\Protobuf\Internal\RepeatedField $method_types - * All the operations being applied for this constraint. - * @type string $condition - * Organization Policy condition/expression. For example: - * `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, - * `resource.management.auto_upgrade == true` - * @type int $action_type - * Allow or deny type. - * @type string $display_name - * One line display name for the UI. - * @type string $description - * Detailed information about this custom policy constraint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Name of the constraint. This is unique within the organization. Format of - * the name should be - * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` - * Example : - * "organizations/123/customConstraints/custom.createOnlyE2TypeVms" - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the constraint. This is unique within the organization. Format of - * the name should be - * * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` - * Example : - * "organizations/123/customConstraints/custom.createOnlyE2TypeVms" - * - * 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; - } - - /** - * The Resource Instance type on which this policy applies to. Format will - * be of the form : "/" Example: - * * `compute.googleapis.com/Instance`. - * - * Generated from protobuf field repeated string resource_types = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceTypes() - { - return $this->resource_types; - } - - /** - * The Resource Instance type on which this policy applies to. Format will - * be of the form : "/" Example: - * * `compute.googleapis.com/Instance`. - * - * Generated from protobuf field repeated string resource_types = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_types = $arr; - - return $this; - } - - /** - * All the operations being applied for this constraint. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMethodTypes() - { - return $this->method_types; - } - - /** - * All the operations being applied for this constraint. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMethodTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint\MethodType::class); - $this->method_types = $arr; - - return $this; - } - - /** - * Organization Policy condition/expression. For example: - * `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, - * `resource.management.auto_upgrade == true` - * - * Generated from protobuf field string condition = 4; - * @return string - */ - public function getCondition() - { - return $this->condition; - } - - /** - * Organization Policy condition/expression. For example: - * `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or, - * `resource.management.auto_upgrade == true` - * - * Generated from protobuf field string condition = 4; - * @param string $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkString($var, True); - $this->condition = $var; - - return $this; - } - - /** - * Allow or deny type. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5; - * @return int - */ - public function getActionType() - { - return $this->action_type; - } - - /** - * Allow or deny type. - * - * Generated from protobuf field .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5; - * @param int $var - * @return $this - */ - public function setActionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint\ActionType::class); - $this->action_type = $var; - - return $this; - } - - /** - * One line display name for the UI. - * - * Generated from protobuf field string display_name = 6; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * One line display name for the UI. - * - * 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; - } - - /** - * Detailed information about this custom policy constraint. - * - * Generated from protobuf field string description = 7; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Detailed information about this custom policy constraint. - * - * Generated from protobuf field string description = 7; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomConstraint::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint_CustomConstraint::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint/ActionType.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint/ActionType.php deleted file mode 100644 index 6a5930c8ddab..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint/ActionType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType - */ -class ActionType -{ - /** - * Unspecified. Will results in user error. - * - * Generated from protobuf enum ACTION_TYPE_UNSPECIFIED = 0; - */ - const ACTION_TYPE_UNSPECIFIED = 0; - /** - * Allowed action type. - * - * Generated from protobuf enum ALLOW = 1; - */ - const ALLOW = 1; - /** - * Deny action type. - * - * Generated from protobuf enum DENY = 2; - */ - const DENY = 2; - - private static $valueToName = [ - self::ACTION_TYPE_UNSPECIFIED => 'ACTION_TYPE_UNSPECIFIED', - self::ALLOW => 'ALLOW', - self::DENY => 'DENY', - ]; - - 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(ActionType::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint/MethodType.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint/MethodType.php deleted file mode 100644 index 05e17c3bd686..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AnalyzerOrgPolicyConstraint/CustomConstraint/MethodType.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType - */ -class MethodType -{ - /** - * Unspecified. Will results in user error. - * - * Generated from protobuf enum METHOD_TYPE_UNSPECIFIED = 0; - */ - const METHOD_TYPE_UNSPECIFIED = 0; - /** - * Constraint applied when creating the resource. - * - * Generated from protobuf enum CREATE = 1; - */ - const CREATE = 1; - /** - * Constraint applied when updating the resource. - * - * Generated from protobuf enum UPDATE = 2; - */ - const UPDATE = 2; - /** - * Constraint applied when deleting the resource. - * - * Generated from protobuf enum DELETE = 3; - */ - const DELETE = 3; - - private static $valueToName = [ - self::METHOD_TYPE_UNSPECIFIED => 'METHOD_TYPE_UNSPECIFIED', - self::CREATE => 'CREATE', - self::UPDATE => 'UPDATE', - self::DELETE => 'DELETE', - ]; - - 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(MethodType::class, \Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Asset.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Asset.php deleted file mode 100644 index 63d2c319d3d3..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Asset.php +++ /dev/null @@ -1,689 +0,0 @@ -google.cloud.asset.v1.Asset - */ -class Asset extends \Google\Protobuf\Internal\Message -{ - /** - * The last update timestamp of an asset. update_time is updated when - * create/update/delete operation is performed. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - */ - protected $update_time = null; - /** - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * - * Generated from protobuf field string asset_type = 2; - */ - protected $asset_type = ''; - /** - * A representation of the resource. - * - * Generated from protobuf field .google.cloud.asset.v1.Resource resource = 3; - */ - protected $resource = null; - /** - * A representation of the IAM policy set on a Google Cloud resource. - * There can be a maximum of one IAM policy set on any given resource. - * In addition, IAM policies inherit their granted access scope from any - * policies set on parent resources in the resource hierarchy. Therefore, the - * effectively policy is the union of both the policy set on this resource - * and each policy set on all of the resource's ancestry resource levels in - * the hierarchy. See - * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) - * for more information. - * - * Generated from protobuf field .google.iam.v1.Policy iam_policy = 4; - */ - protected $iam_policy = null; - /** - * A representation of an [organization - * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). - * There can be more than one organization policy with different constraints - * set on a given resource. - * - * Generated from protobuf field repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; - */ - private $org_policy; - /** - * A representation of runtime OS Inventory information. See [this - * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) - * for more information. - * - * Generated from protobuf field .google.cloud.osconfig.v1.Inventory os_inventory = 12; - */ - protected $os_inventory = null; - /** - * DEPRECATED. This field only presents for the purpose of - * backward-compatibility. The server will never generate responses with this - * field. - * The related assets of the asset of one relationship type. One asset - * only represents one type of relationship. - * - * Generated from protobuf field .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @deprecated - */ - protected $related_assets = null; - /** - * One related asset of the current asset. - * - * Generated from protobuf field .google.cloud.asset.v1.RelatedAsset related_asset = 15; - */ - protected $related_asset = null; - /** - * The ancestry path of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. If the asset - * is a project, folder, or organization, the ancestry path starts from the - * asset itself. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * - * Generated from protobuf field repeated string ancestors = 10; - */ - private $ancestors; - protected $access_context_policy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $update_time - * The last update timestamp of an asset. update_time is updated when - * create/update/delete operation is performed. - * @type string $name - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * @type string $asset_type - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * @type \Google\Cloud\Asset\V1\Resource $resource - * A representation of the resource. - * @type \Google\Cloud\Iam\V1\Policy $iam_policy - * A representation of the IAM policy set on a Google Cloud resource. - * There can be a maximum of one IAM policy set on any given resource. - * In addition, IAM policies inherit their granted access scope from any - * policies set on parent resources in the resource hierarchy. Therefore, the - * effectively policy is the union of both the policy set on this resource - * and each policy set on all of the resource's ancestry resource levels in - * the hierarchy. See - * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) - * for more information. - * @type array<\Google\Cloud\OrgPolicy\V1\Policy>|\Google\Protobuf\Internal\RepeatedField $org_policy - * A representation of an [organization - * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). - * There can be more than one organization policy with different constraints - * set on a given resource. - * @type \Google\Identity\AccessContextManager\V1\AccessPolicy $access_policy - * Also refer to the [access policy user - * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies). - * @type \Google\Identity\AccessContextManager\V1\AccessLevel $access_level - * Also refer to the [access level user - * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels). - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeter $service_perimeter - * Also refer to the [service perimeter user - * guide](https://cloud.google.com/vpc-service-controls/docs/overview). - * @type \Google\Cloud\OsConfig\V1\Inventory $os_inventory - * A representation of runtime OS Inventory information. See [this - * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) - * for more information. - * @type \Google\Cloud\Asset\V1\RelatedAssets $related_assets - * DEPRECATED. This field only presents for the purpose of - * backward-compatibility. The server will never generate responses with this - * field. - * The related assets of the asset of one relationship type. One asset - * only represents one type of relationship. - * @type \Google\Cloud\Asset\V1\RelatedAsset $related_asset - * One related asset of the current asset. - * @type array|\Google\Protobuf\Internal\RepeatedField $ancestors - * The ancestry path of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. If the asset - * is a project, folder, or organization, the ancestry path starts from the - * asset itself. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The last update timestamp of an asset. update_time is updated when - * create/update/delete operation is performed. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @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); - } - - /** - * The last update timestamp of an asset. update_time is updated when - * create/update/delete operation is performed. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * - * 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; - } - - /** - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * - * Generated from protobuf field string asset_type = 2; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * - * Generated from protobuf field string asset_type = 2; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - - /** - * A representation of the resource. - * - * Generated from protobuf field .google.cloud.asset.v1.Resource resource = 3; - * @return \Google\Cloud\Asset\V1\Resource|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * A representation of the resource. - * - * Generated from protobuf field .google.cloud.asset.v1.Resource resource = 3; - * @param \Google\Cloud\Asset\V1\Resource $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\Resource::class); - $this->resource = $var; - - return $this; - } - - /** - * A representation of the IAM policy set on a Google Cloud resource. - * There can be a maximum of one IAM policy set on any given resource. - * In addition, IAM policies inherit their granted access scope from any - * policies set on parent resources in the resource hierarchy. Therefore, the - * effectively policy is the union of both the policy set on this resource - * and each policy set on all of the resource's ancestry resource levels in - * the hierarchy. See - * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) - * for more information. - * - * Generated from protobuf field .google.iam.v1.Policy iam_policy = 4; - * @return \Google\Cloud\Iam\V1\Policy|null - */ - public function getIamPolicy() - { - return $this->iam_policy; - } - - public function hasIamPolicy() - { - return isset($this->iam_policy); - } - - public function clearIamPolicy() - { - unset($this->iam_policy); - } - - /** - * A representation of the IAM policy set on a Google Cloud resource. - * There can be a maximum of one IAM policy set on any given resource. - * In addition, IAM policies inherit their granted access scope from any - * policies set on parent resources in the resource hierarchy. Therefore, the - * effectively policy is the union of both the policy set on this resource - * and each policy set on all of the resource's ancestry resource levels in - * the hierarchy. See - * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) - * for more information. - * - * Generated from protobuf field .google.iam.v1.Policy iam_policy = 4; - * @param \Google\Cloud\Iam\V1\Policy $var - * @return $this - */ - public function setIamPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); - $this->iam_policy = $var; - - return $this; - } - - /** - * A representation of an [organization - * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). - * There can be more than one organization policy with different constraints - * set on a given resource. - * - * Generated from protobuf field repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrgPolicy() - { - return $this->org_policy; - } - - /** - * A representation of an [organization - * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). - * There can be more than one organization policy with different constraints - * set on a given resource. - * - * Generated from protobuf field repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; - * @param array<\Google\Cloud\OrgPolicy\V1\Policy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrgPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OrgPolicy\V1\Policy::class); - $this->org_policy = $arr; - - return $this; - } - - /** - * Also refer to the [access policy user - * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies). - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * @return \Google\Identity\AccessContextManager\V1\AccessPolicy|null - */ - public function getAccessPolicy() - { - return $this->readOneof(7); - } - - public function hasAccessPolicy() - { - return $this->hasOneof(7); - } - - /** - * Also refer to the [access policy user - * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies). - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * @param \Google\Identity\AccessContextManager\V1\AccessPolicy $var - * @return $this - */ - public function setAccessPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\AccessPolicy::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Also refer to the [access level user - * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels). - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * @return \Google\Identity\AccessContextManager\V1\AccessLevel|null - */ - public function getAccessLevel() - { - return $this->readOneof(8); - } - - public function hasAccessLevel() - { - return $this->hasOneof(8); - } - - /** - * Also refer to the [access level user - * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels). - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * @param \Google\Identity\AccessContextManager\V1\AccessLevel $var - * @return $this - */ - public function setAccessLevel($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\AccessLevel::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Also refer to the [service perimeter user - * guide](https://cloud.google.com/vpc-service-controls/docs/overview). - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeter|null - */ - public function getServicePerimeter() - { - return $this->readOneof(9); - } - - public function hasServicePerimeter() - { - return $this->hasOneof(9); - } - - /** - * Also refer to the [service perimeter user - * guide](https://cloud.google.com/vpc-service-controls/docs/overview). - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeter $var - * @return $this - */ - public function setServicePerimeter($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeter::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * A representation of runtime OS Inventory information. See [this - * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) - * for more information. - * - * Generated from protobuf field .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * @return \Google\Cloud\OsConfig\V1\Inventory|null - */ - public function getOsInventory() - { - return $this->os_inventory; - } - - public function hasOsInventory() - { - return isset($this->os_inventory); - } - - public function clearOsInventory() - { - unset($this->os_inventory); - } - - /** - * A representation of runtime OS Inventory information. See [this - * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) - * for more information. - * - * Generated from protobuf field .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * @param \Google\Cloud\OsConfig\V1\Inventory $var - * @return $this - */ - public function setOsInventory($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\OsConfig\V1\Inventory::class); - $this->os_inventory = $var; - - return $this; - } - - /** - * DEPRECATED. This field only presents for the purpose of - * backward-compatibility. The server will never generate responses with this - * field. - * The related assets of the asset of one relationship type. One asset - * only represents one type of relationship. - * - * Generated from protobuf field .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @return \Google\Cloud\Asset\V1\RelatedAssets|null - * @deprecated - */ - public function getRelatedAssets() - { - @trigger_error('related_assets is deprecated.', E_USER_DEPRECATED); - return $this->related_assets; - } - - public function hasRelatedAssets() - { - @trigger_error('related_assets is deprecated.', E_USER_DEPRECATED); - return isset($this->related_assets); - } - - public function clearRelatedAssets() - { - @trigger_error('related_assets is deprecated.', E_USER_DEPRECATED); - unset($this->related_assets); - } - - /** - * DEPRECATED. This field only presents for the purpose of - * backward-compatibility. The server will never generate responses with this - * field. - * The related assets of the asset of one relationship type. One asset - * only represents one type of relationship. - * - * Generated from protobuf field .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @param \Google\Cloud\Asset\V1\RelatedAssets $var - * @return $this - * @deprecated - */ - public function setRelatedAssets($var) - { - @trigger_error('related_assets is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\RelatedAssets::class); - $this->related_assets = $var; - - return $this; - } - - /** - * One related asset of the current asset. - * - * Generated from protobuf field .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * @return \Google\Cloud\Asset\V1\RelatedAsset|null - */ - public function getRelatedAsset() - { - return $this->related_asset; - } - - public function hasRelatedAsset() - { - return isset($this->related_asset); - } - - public function clearRelatedAsset() - { - unset($this->related_asset); - } - - /** - * One related asset of the current asset. - * - * Generated from protobuf field .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * @param \Google\Cloud\Asset\V1\RelatedAsset $var - * @return $this - */ - public function setRelatedAsset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\RelatedAsset::class); - $this->related_asset = $var; - - return $this; - } - - /** - * The ancestry path of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. If the asset - * is a project, folder, or organization, the ancestry path starts from the - * asset itself. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * - * Generated from protobuf field repeated string ancestors = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAncestors() - { - return $this->ancestors; - } - - /** - * The ancestry path of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. If the asset - * is a project, folder, or organization, the ancestry path starts from the - * asset itself. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * - * Generated from protobuf field repeated string ancestors = 10; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAncestors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ancestors = $arr; - - return $this; - } - - /** - * @return string - */ - public function getAccessContextPolicy() - { - return $this->whichOneof("access_context_policy"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AttachedResource.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AttachedResource.php deleted file mode 100644 index a32874a4c5a9..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/AttachedResource.php +++ /dev/null @@ -1,126 +0,0 @@ -google.cloud.asset.v1.AttachedResource - */ -class AttachedResource extends \Google\Protobuf\Internal\Message -{ - /** - * The type of this attached resource. - * Example: `osconfig.googleapis.com/Inventory` - * You can find the supported attached asset types of each resource in this - * table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * - * Generated from protobuf field string asset_type = 1; - */ - protected $asset_type = ''; - /** - * Versioned resource representations of this attached resource. This is - * repeated because there could be multiple versions of the attached resource - * representations during version migration. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; - */ - private $versioned_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_type - * The type of this attached resource. - * Example: `osconfig.googleapis.com/Inventory` - * You can find the supported attached asset types of each resource in this - * table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * @type array<\Google\Cloud\Asset\V1\VersionedResource>|\Google\Protobuf\Internal\RepeatedField $versioned_resources - * Versioned resource representations of this attached resource. This is - * repeated because there could be multiple versions of the attached resource - * representations during version migration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The type of this attached resource. - * Example: `osconfig.googleapis.com/Inventory` - * You can find the supported attached asset types of each resource in this - * table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * - * Generated from protobuf field string asset_type = 1; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The type of this attached resource. - * Example: `osconfig.googleapis.com/Inventory` - * You can find the supported attached asset types of each resource in this - * table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * - * Generated from protobuf field string asset_type = 1; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - - /** - * Versioned resource representations of this attached resource. This is - * repeated because there could be multiple versions of the attached resource - * representations during version migration. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersionedResources() - { - return $this->versioned_resources; - } - - /** - * Versioned resource representations of this attached resource. This is - * repeated because there could be multiple versions of the attached resource - * representations during version migration. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; - * @param array<\Google\Cloud\Asset\V1\VersionedResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersionedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\VersionedResource::class); - $this->versioned_resources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetAssetsHistoryRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetAssetsHistoryRequest.php deleted file mode 100644 index 1ef54c7719ae..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetAssetsHistoryRequest.php +++ /dev/null @@ -1,321 +0,0 @@ -google.cloud.asset.v1.BatchGetAssetsHistoryRequest - */ -class BatchGetAssetsHistoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative name of the root asset. It can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id")", or a project number (such as "projects/12345"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * A list of the full names of the assets. - * See: https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * The request becomes a no-op if the asset name list is empty, and the max - * size of the asset name list is 100 in one request. - * - * Generated from protobuf field repeated string asset_names = 2; - */ - private $asset_names; - /** - * Optional. The content type. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $content_type = 0; - /** - * Optional. The time window for the asset history. Both start_time and - * end_time are optional and if set, it must be after the current time minus - * 35 days. If end_time is not set, it is default to current timestamp. - * If start_time is not set, the snapshot of the assets at end_time will be - * returned. The returned results contain all temporal assets whose time - * window overlap with read_time_window. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $read_time_window = null; - /** - * Optional. A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationships' history on the [asset_names]. It - * returns an error if any of the [relationship_types] doesn't belong to the - * supported relationship types of the [asset_names] or if any of the - * [asset_names]'s types doesn't belong to the source types of the - * [relationship_types]. - * * Otherwise: - * it outputs the supported relationships' history on the [asset_names] or - * returns an error if any of the [asset_names]'s types has no relationship - * support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $relationship_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative name of the root asset. It can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id")", or a project number (such as "projects/12345"). - * @type array|\Google\Protobuf\Internal\RepeatedField $asset_names - * A list of the full names of the assets. - * See: https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * The request becomes a no-op if the asset name list is empty, and the max - * size of the asset name list is 100 in one request. - * @type int $content_type - * Optional. The content type. - * @type \Google\Cloud\Asset\V1\TimeWindow $read_time_window - * Optional. The time window for the asset history. Both start_time and - * end_time are optional and if set, it must be after the current time minus - * 35 days. If end_time is not set, it is default to current timestamp. - * If start_time is not set, the snapshot of the assets at end_time will be - * returned. The returned results contain all temporal assets whose time - * window overlap with read_time_window. - * @type array|\Google\Protobuf\Internal\RepeatedField $relationship_types - * Optional. A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationships' history on the [asset_names]. It - * returns an error if any of the [relationship_types] doesn't belong to the - * supported relationship types of the [asset_names] or if any of the - * [asset_names]'s types doesn't belong to the source types of the - * [relationship_types]. - * * Otherwise: - * it outputs the supported relationships' history on the [asset_names] or - * returns an error if any of the [asset_names]'s types has no relationship - * support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative name of the root asset. It can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id")", or a project number (such as "projects/12345"). - * - * 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 relative name of the root asset. It can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id")", or a project number (such as "projects/12345"). - * - * 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; - } - - /** - * A list of the full names of the assets. - * See: https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * The request becomes a no-op if the asset name list is empty, and the max - * size of the asset name list is 100 in one request. - * - * Generated from protobuf field repeated string asset_names = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssetNames() - { - return $this->asset_names; - } - - /** - * A list of the full names of the assets. - * See: https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * The request becomes a no-op if the asset name list is empty, and the max - * size of the asset name list is 100 in one request. - * - * Generated from protobuf field repeated string asset_names = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssetNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asset_names = $arr; - - return $this; - } - - /** - * Optional. The content type. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * Optional. The content type. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\ContentType::class); - $this->content_type = $var; - - return $this; - } - - /** - * Optional. The time window for the asset history. Both start_time and - * end_time are optional and if set, it must be after the current time minus - * 35 days. If end_time is not set, it is default to current timestamp. - * If start_time is not set, the snapshot of the assets at end_time will be - * returned. The returned results contain all temporal assets whose time - * window overlap with read_time_window. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\TimeWindow|null - */ - public function getReadTimeWindow() - { - return $this->read_time_window; - } - - public function hasReadTimeWindow() - { - return isset($this->read_time_window); - } - - public function clearReadTimeWindow() - { - unset($this->read_time_window); - } - - /** - * Optional. The time window for the asset history. Both start_time and - * end_time are optional and if set, it must be after the current time minus - * 35 days. If end_time is not set, it is default to current timestamp. - * If start_time is not set, the snapshot of the assets at end_time will be - * returned. The returned results contain all temporal assets whose time - * window overlap with read_time_window. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\TimeWindow $var - * @return $this - */ - public function setReadTimeWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\TimeWindow::class); - $this->read_time_window = $var; - - return $this; - } - - /** - * Optional. A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationships' history on the [asset_names]. It - * returns an error if any of the [relationship_types] doesn't belong to the - * supported relationship types of the [asset_names] or if any of the - * [asset_names]'s types doesn't belong to the source types of the - * [relationship_types]. - * * Otherwise: - * it outputs the supported relationships' history on the [asset_names] or - * returns an error if any of the [asset_names]'s types has no relationship - * support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelationshipTypes() - { - return $this->relationship_types; - } - - /** - * Optional. A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationships' history on the [asset_names]. It - * returns an error if any of the [relationship_types] doesn't belong to the - * supported relationship types of the [asset_names] or if any of the - * [asset_names]'s types doesn't belong to the source types of the - * [relationship_types]. - * * Otherwise: - * it outputs the supported relationships' history on the [asset_names] or - * returns an error if any of the [asset_names]'s types has no relationship - * support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelationshipTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->relationship_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetAssetsHistoryResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetAssetsHistoryResponse.php deleted file mode 100644 index e45a02dac321..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetAssetsHistoryResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.asset.v1.BatchGetAssetsHistoryResponse - */ -class BatchGetAssetsHistoryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of assets with valid time windows. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TemporalAsset assets = 1; - */ - private $assets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\TemporalAsset>|\Google\Protobuf\Internal\RepeatedField $assets - * A list of assets with valid time windows. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * A list of assets with valid time windows. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TemporalAsset assets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssets() - { - return $this->assets; - } - - /** - * A list of assets with valid time windows. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TemporalAsset assets = 1; - * @param array<\Google\Cloud\Asset\V1\TemporalAsset>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\TemporalAsset::class); - $this->assets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesRequest.php deleted file mode 100644 index 94c69e1ffe68..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest - */ -class BatchGetEffectiveIamPoliciesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Only IAM policies on or below the scope will be returned. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $scope = ''; - /** - * Required. The names refer to the [full_resource_names] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * A maximum of 20 resources' effective policies can be retrieved in a batch. - * - * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. Only IAM policies on or below the scope will be returned. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * @type array|\Google\Protobuf\Internal\RepeatedField $names - * Required. The names refer to the [full_resource_names] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * A maximum of 20 resources' effective policies can be retrieved in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Only IAM policies on or below the scope will be returned. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. Only IAM policies on or below the scope will be returned. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Required. The names refer to the [full_resource_names] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * A maximum of 20 resources' effective policies can be retrieved in a batch. - * - * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNames() - { - return $this->names; - } - - /** - * Required. The names refer to the [full_resource_names] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * A maximum of 20 resources' effective policies can be retrieved in a batch. - * - * Generated from protobuf field repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse.php deleted file mode 100644 index 2a4037ca402a..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - */ -class BatchGetEffectiveIamPoliciesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The effective policies for a batch of resources. Note that the results - * order is the same as the order of - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. - * When a resource does not have any effective IAM policies, its corresponding - * policy_result will contain empty - * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - */ - private $policy_results; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy>|\Google\Protobuf\Internal\RepeatedField $policy_results - * The effective policies for a batch of resources. Note that the results - * order is the same as the order of - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. - * When a resource does not have any effective IAM policies, its corresponding - * policy_result will contain empty - * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The effective policies for a batch of resources. Note that the results - * order is the same as the order of - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. - * When a resource does not have any effective IAM policies, its corresponding - * policy_result will contain empty - * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPolicyResults() - { - return $this->policy_results; - } - - /** - * The effective policies for a batch of resources. Note that the results - * order is the same as the order of - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. - * When a resource does not have any effective IAM policies, its corresponding - * policy_result will contain empty - * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * @param array<\Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPolicyResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy::class); - $this->policy_results = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse/EffectiveIamPolicy.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse/EffectiveIamPolicy.php deleted file mode 100644 index 770fb8c4db09..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse/EffectiveIamPolicy.php +++ /dev/null @@ -1,196 +0,0 @@ -google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - */ -class EffectiveIamPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The [full_resource_name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for which the - * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] - * are computed. This is one of the - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] - * the caller provides in the request. - * - * Generated from protobuf field string full_resource_name = 1; - */ - protected $full_resource_name = ''; - /** - * The effective policies for the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies include the policy set on the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * and those set on its parents and ancestors up to the - * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. - * Note that these policies are not filtered according to the resource type - * of the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies are hierarchically ordered by - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * starting from - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * itself to its parents and ancestors, such that policies[i]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * is the child of policies[i+1]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], - * if policies[i+1] exists. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - */ - private $policies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource_name - * The [full_resource_name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for which the - * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] - * are computed. This is one of the - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] - * the caller provides in the request. - * @type array<\Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy\PolicyInfo>|\Google\Protobuf\Internal\RepeatedField $policies - * The effective policies for the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies include the policy set on the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * and those set on its parents and ancestors up to the - * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. - * Note that these policies are not filtered according to the resource type - * of the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies are hierarchically ordered by - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * starting from - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * itself to its parents and ancestors, such that policies[i]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * is the child of policies[i+1]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], - * if policies[i+1] exists. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The [full_resource_name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for which the - * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] - * are computed. This is one of the - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] - * the caller provides in the request. - * - * Generated from protobuf field string full_resource_name = 1; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The [full_resource_name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for which the - * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] - * are computed. This is one of the - * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] - * the caller provides in the request. - * - * Generated from protobuf field string full_resource_name = 1; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * The effective policies for the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies include the policy set on the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * and those set on its parents and ancestors up to the - * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. - * Note that these policies are not filtered according to the resource type - * of the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies are hierarchically ordered by - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * starting from - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * itself to its parents and ancestors, such that policies[i]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * is the child of policies[i+1]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], - * if policies[i+1] exists. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPolicies() - { - return $this->policies; - } - - /** - * The effective policies for the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies include the policy set on the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * and those set on its parents and ancestors up to the - * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. - * Note that these policies are not filtered according to the resource type - * of the - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. - * These policies are hierarchically ordered by - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * starting from - * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] - * itself to its parents and ancestors, such that policies[i]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] - * is the child of policies[i+1]'s - * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], - * if policies[i+1] exists. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * @param array<\Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy\PolicyInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy\PolicyInfo::class); - $this->policies = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EffectiveIamPolicy::class, \Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse/EffectiveIamPolicy/PolicyInfo.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse/EffectiveIamPolicy/PolicyInfo.php deleted file mode 100644 index 90f2ab49efed..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BatchGetEffectiveIamPoliciesResponse/EffectiveIamPolicy/PolicyInfo.php +++ /dev/null @@ -1,126 +0,0 @@ -google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo - */ -class PolicyInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The full resource name the - * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] - * is directly attached to. - * - * Generated from protobuf field string attached_resource = 1; - */ - protected $attached_resource = ''; - /** - * The IAM policy that's directly attached to the - * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2; - */ - protected $policy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attached_resource - * The full resource name the - * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] - * is directly attached to. - * @type \Google\Cloud\Iam\V1\Policy $policy - * The IAM policy that's directly attached to the - * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The full resource name the - * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] - * is directly attached to. - * - * Generated from protobuf field string attached_resource = 1; - * @return string - */ - public function getAttachedResource() - { - return $this->attached_resource; - } - - /** - * The full resource name the - * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] - * is directly attached to. - * - * Generated from protobuf field string attached_resource = 1; - * @param string $var - * @return $this - */ - public function setAttachedResource($var) - { - GPBUtil::checkString($var, True); - $this->attached_resource = $var; - - return $this; - } - - /** - * The IAM policy that's directly attached to the - * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2; - * @return \Google\Cloud\Iam\V1\Policy|null - */ - public function getPolicy() - { - return $this->policy; - } - - public function hasPolicy() - { - return isset($this->policy); - } - - public function clearPolicy() - { - unset($this->policy); - } - - /** - * The IAM policy that's directly attached to the - * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2; - * @param \Google\Cloud\Iam\V1\Policy $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); - $this->policy = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PolicyInfo::class, \Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BigQueryDestination.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BigQueryDestination.php deleted file mode 100644 index b8c9f6d1a76c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/BigQueryDestination.php +++ /dev/null @@ -1,409 +0,0 @@ -google.cloud.asset.v1.BigQueryDestination - */ -class BigQueryDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the snapshot result - * should be exported. If this dataset does not exist, the export call returns - * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets` - * determines the - * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema) - * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also - * influences the schema. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset = ''; - /** - * Required. The BigQuery table to which the snapshot result should be - * written. If this table does not exist, a new table with the given name - * will be created. - * - * Generated from protobuf field string table = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = ''; - /** - * If the destination table already exists and this flag is `TRUE`, the - * table will be overwritten by the contents of assets snapshot. If the flag - * is `FALSE` or unset and the destination table already exists, the export - * call returns an INVALID_ARGUMEMT error. - * - * Generated from protobuf field bool force = 3; - */ - protected $force = false; - /** - * [partition_spec] determines whether to export to partitioned table(s) and - * how to partition the data. - * If [partition_spec] is unset or [partition_spec.partition_key] is unset or - * `PARTITION_KEY_UNSPECIFIED`, the snapshot results will be exported to - * non-partitioned table(s). [force] will decide whether to overwrite existing - * table(s). - * If [partition_spec] is specified. First, the snapshot results will be - * written to partitioned table(s) with two additional timestamp columns, - * readTime and requestTime, one of which will be the partition key. Secondly, - * in the case when any destination table already exists, it will first try to - * update existing table's schema as necessary by appending additional - * columns. Then, if [force] is `TRUE`, the corresponding partition will be - * overwritten by the snapshot results (data in different partitions will - * remain intact); if [force] is unset or `FALSE`, it will append the data. An - * error will be returned if the schema update or data appension fails. - * - * Generated from protobuf field .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - */ - protected $partition_spec = null; - /** - * If this flag is `TRUE`, the snapshot results will be written to one or - * multiple tables, each of which contains results of one asset type. The - * [force] and [partition_spec] fields will apply to each of them. - * Field [table] will be concatenated with "_" and the asset type names (see - * https://cloud.google.com/asset-inventory/docs/supported-asset-types for - * supported asset types) to construct per-asset-type table names, in which - * all non-alphanumeric characters like "." and "/" will be substituted by - * "_". Example: if field [table] is "mytable" and snapshot results - * contain "storage.googleapis.com/Bucket" assets, the corresponding table - * name will be "mytable_storage_googleapis_com_Bucket". If any of these - * tables does not exist, a new table with the concatenated name will be - * created. - * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of - * each table will include RECORD-type columns mapped to the nested fields in - * the Asset.resource.data field of that asset type (up to the 15 nested level - * BigQuery supports - * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The - * fields in >15 nested levels will be stored in JSON format string as a child - * column of its parent RECORD column. - * If error occurs when exporting to any table, the whole export call will - * return an error but the export results that already succeed will persist. - * Example: if exporting to table_type_A succeeds when exporting to - * table_type_B fails during one export call, the results in table_type_A will - * persist and there will not be partial results persisting in a table. - * - * Generated from protobuf field bool separate_tables_per_asset_type = 5; - */ - protected $separate_tables_per_asset_type = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the snapshot result - * should be exported. If this dataset does not exist, the export call returns - * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets` - * determines the - * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema) - * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also - * influences the schema. - * @type string $table - * Required. The BigQuery table to which the snapshot result should be - * written. If this table does not exist, a new table with the given name - * will be created. - * @type bool $force - * If the destination table already exists and this flag is `TRUE`, the - * table will be overwritten by the contents of assets snapshot. If the flag - * is `FALSE` or unset and the destination table already exists, the export - * call returns an INVALID_ARGUMEMT error. - * @type \Google\Cloud\Asset\V1\PartitionSpec $partition_spec - * [partition_spec] determines whether to export to partitioned table(s) and - * how to partition the data. - * If [partition_spec] is unset or [partition_spec.partition_key] is unset or - * `PARTITION_KEY_UNSPECIFIED`, the snapshot results will be exported to - * non-partitioned table(s). [force] will decide whether to overwrite existing - * table(s). - * If [partition_spec] is specified. First, the snapshot results will be - * written to partitioned table(s) with two additional timestamp columns, - * readTime and requestTime, one of which will be the partition key. Secondly, - * in the case when any destination table already exists, it will first try to - * update existing table's schema as necessary by appending additional - * columns. Then, if [force] is `TRUE`, the corresponding partition will be - * overwritten by the snapshot results (data in different partitions will - * remain intact); if [force] is unset or `FALSE`, it will append the data. An - * error will be returned if the schema update or data appension fails. - * @type bool $separate_tables_per_asset_type - * If this flag is `TRUE`, the snapshot results will be written to one or - * multiple tables, each of which contains results of one asset type. The - * [force] and [partition_spec] fields will apply to each of them. - * Field [table] will be concatenated with "_" and the asset type names (see - * https://cloud.google.com/asset-inventory/docs/supported-asset-types for - * supported asset types) to construct per-asset-type table names, in which - * all non-alphanumeric characters like "." and "/" will be substituted by - * "_". Example: if field [table] is "mytable" and snapshot results - * contain "storage.googleapis.com/Bucket" assets, the corresponding table - * name will be "mytable_storage_googleapis_com_Bucket". If any of these - * tables does not exist, a new table with the concatenated name will be - * created. - * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of - * each table will include RECORD-type columns mapped to the nested fields in - * the Asset.resource.data field of that asset type (up to the 15 nested level - * BigQuery supports - * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The - * fields in >15 nested levels will be stored in JSON format string as a child - * column of its parent RECORD column. - * If error occurs when exporting to any table, the whole export call will - * return an error but the export results that already succeed will persist. - * Example: if exporting to table_type_A succeeds when exporting to - * table_type_B fails during one export call, the results in table_type_A will - * persist and there will not be partial results persisting in a table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the snapshot result - * should be exported. If this dataset does not exist, the export call returns - * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets` - * determines the - * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema) - * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also - * influences the schema. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataset() - { - return $this->dataset; - } - - /** - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the snapshot result - * should be exported. If this dataset does not exist, the export call returns - * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets` - * determines the - * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema) - * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also - * influences the schema. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkString($var, True); - $this->dataset = $var; - - return $this; - } - - /** - * Required. The BigQuery table to which the snapshot result should be - * written. If this table does not exist, a new table with the given name - * will be created. - * - * Generated from protobuf field string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTable() - { - return $this->table; - } - - /** - * Required. The BigQuery table to which the snapshot result should be - * written. If this table does not exist, a new table with the given name - * will be created. - * - * Generated from protobuf field string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkString($var, True); - $this->table = $var; - - return $this; - } - - /** - * If the destination table already exists and this flag is `TRUE`, the - * table will be overwritten by the contents of assets snapshot. If the flag - * is `FALSE` or unset and the destination table already exists, the export - * call returns an INVALID_ARGUMEMT error. - * - * Generated from protobuf field bool force = 3; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * If the destination table already exists and this flag is `TRUE`, the - * table will be overwritten by the contents of assets snapshot. If the flag - * is `FALSE` or unset and the destination table already exists, the export - * call returns an INVALID_ARGUMEMT error. - * - * Generated from protobuf field bool force = 3; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - - /** - * [partition_spec] determines whether to export to partitioned table(s) and - * how to partition the data. - * If [partition_spec] is unset or [partition_spec.partition_key] is unset or - * `PARTITION_KEY_UNSPECIFIED`, the snapshot results will be exported to - * non-partitioned table(s). [force] will decide whether to overwrite existing - * table(s). - * If [partition_spec] is specified. First, the snapshot results will be - * written to partitioned table(s) with two additional timestamp columns, - * readTime and requestTime, one of which will be the partition key. Secondly, - * in the case when any destination table already exists, it will first try to - * update existing table's schema as necessary by appending additional - * columns. Then, if [force] is `TRUE`, the corresponding partition will be - * overwritten by the snapshot results (data in different partitions will - * remain intact); if [force] is unset or `FALSE`, it will append the data. An - * error will be returned if the schema update or data appension fails. - * - * Generated from protobuf field .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * @return \Google\Cloud\Asset\V1\PartitionSpec|null - */ - public function getPartitionSpec() - { - return $this->partition_spec; - } - - public function hasPartitionSpec() - { - return isset($this->partition_spec); - } - - public function clearPartitionSpec() - { - unset($this->partition_spec); - } - - /** - * [partition_spec] determines whether to export to partitioned table(s) and - * how to partition the data. - * If [partition_spec] is unset or [partition_spec.partition_key] is unset or - * `PARTITION_KEY_UNSPECIFIED`, the snapshot results will be exported to - * non-partitioned table(s). [force] will decide whether to overwrite existing - * table(s). - * If [partition_spec] is specified. First, the snapshot results will be - * written to partitioned table(s) with two additional timestamp columns, - * readTime and requestTime, one of which will be the partition key. Secondly, - * in the case when any destination table already exists, it will first try to - * update existing table's schema as necessary by appending additional - * columns. Then, if [force] is `TRUE`, the corresponding partition will be - * overwritten by the snapshot results (data in different partitions will - * remain intact); if [force] is unset or `FALSE`, it will append the data. An - * error will be returned if the schema update or data appension fails. - * - * Generated from protobuf field .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * @param \Google\Cloud\Asset\V1\PartitionSpec $var - * @return $this - */ - public function setPartitionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\PartitionSpec::class); - $this->partition_spec = $var; - - return $this; - } - - /** - * If this flag is `TRUE`, the snapshot results will be written to one or - * multiple tables, each of which contains results of one asset type. The - * [force] and [partition_spec] fields will apply to each of them. - * Field [table] will be concatenated with "_" and the asset type names (see - * https://cloud.google.com/asset-inventory/docs/supported-asset-types for - * supported asset types) to construct per-asset-type table names, in which - * all non-alphanumeric characters like "." and "/" will be substituted by - * "_". Example: if field [table] is "mytable" and snapshot results - * contain "storage.googleapis.com/Bucket" assets, the corresponding table - * name will be "mytable_storage_googleapis_com_Bucket". If any of these - * tables does not exist, a new table with the concatenated name will be - * created. - * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of - * each table will include RECORD-type columns mapped to the nested fields in - * the Asset.resource.data field of that asset type (up to the 15 nested level - * BigQuery supports - * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The - * fields in >15 nested levels will be stored in JSON format string as a child - * column of its parent RECORD column. - * If error occurs when exporting to any table, the whole export call will - * return an error but the export results that already succeed will persist. - * Example: if exporting to table_type_A succeeds when exporting to - * table_type_B fails during one export call, the results in table_type_A will - * persist and there will not be partial results persisting in a table. - * - * Generated from protobuf field bool separate_tables_per_asset_type = 5; - * @return bool - */ - public function getSeparateTablesPerAssetType() - { - return $this->separate_tables_per_asset_type; - } - - /** - * If this flag is `TRUE`, the snapshot results will be written to one or - * multiple tables, each of which contains results of one asset type. The - * [force] and [partition_spec] fields will apply to each of them. - * Field [table] will be concatenated with "_" and the asset type names (see - * https://cloud.google.com/asset-inventory/docs/supported-asset-types for - * supported asset types) to construct per-asset-type table names, in which - * all non-alphanumeric characters like "." and "/" will be substituted by - * "_". Example: if field [table] is "mytable" and snapshot results - * contain "storage.googleapis.com/Bucket" assets, the corresponding table - * name will be "mytable_storage_googleapis_com_Bucket". If any of these - * tables does not exist, a new table with the concatenated name will be - * created. - * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of - * each table will include RECORD-type columns mapped to the nested fields in - * the Asset.resource.data field of that asset type (up to the 15 nested level - * BigQuery supports - * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The - * fields in >15 nested levels will be stored in JSON format string as a child - * column of its parent RECORD column. - * If error occurs when exporting to any table, the whole export call will - * return an error but the export results that already succeed will persist. - * Example: if exporting to table_type_A succeeds when exporting to - * table_type_B fails during one export call, the results in table_type_A will - * persist and there will not be partial results persisting in a table. - * - * Generated from protobuf field bool separate_tables_per_asset_type = 5; - * @param bool $var - * @return $this - */ - public function setSeparateTablesPerAssetType($var) - { - GPBUtil::checkBool($var); - $this->separate_tables_per_asset_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ConditionEvaluation.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ConditionEvaluation.php deleted file mode 100644 index 9aad71afb156..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ConditionEvaluation.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.asset.v1.ConditionEvaluation - */ -class ConditionEvaluation extends \Google\Protobuf\Internal\Message -{ - /** - * The evaluation result. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - */ - protected $evaluation_value = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $evaluation_value - * The evaluation result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The evaluation result. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * @return int - */ - public function getEvaluationValue() - { - return $this->evaluation_value; - } - - /** - * The evaluation result. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * @param int $var - * @return $this - */ - public function setEvaluationValue($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\ConditionEvaluation\EvaluationValue::class); - $this->evaluation_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ConditionEvaluation/EvaluationValue.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ConditionEvaluation/EvaluationValue.php deleted file mode 100644 index 87c7b1254131..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ConditionEvaluation/EvaluationValue.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.asset.v1.ConditionEvaluation.EvaluationValue - */ -class EvaluationValue -{ - /** - * Reserved for future use. - * - * Generated from protobuf enum EVALUATION_VALUE_UNSPECIFIED = 0; - */ - const EVALUATION_VALUE_UNSPECIFIED = 0; - /** - * The evaluation result is `true`. - * - * Generated from protobuf enum TRUE = 1; - */ - const TRUE = 1; - /** - * The evaluation result is `false`. - * - * Generated from protobuf enum FALSE = 2; - */ - const FALSE = 2; - /** - * The evaluation result is `conditional` when the condition expression - * contains variables that are either missing input values or have not been - * supported by Policy Analyzer yet. - * - * Generated from protobuf enum CONDITIONAL = 3; - */ - const CONDITIONAL = 3; - - private static $valueToName = [ - self::EVALUATION_VALUE_UNSPECIFIED => 'EVALUATION_VALUE_UNSPECIFIED', - self::TRUE => 'TRUE', - self::FALSE => 'FALSE', - self::CONDITIONAL => 'CONDITIONAL', - ]; - - 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(EvaluationValue::class, \Google\Cloud\Asset\V1\ConditionEvaluation_EvaluationValue::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ContentType.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ContentType.php deleted file mode 100644 index 256ad4bd28e7..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ContentType.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.asset.v1.ContentType - */ -class ContentType -{ - /** - * Unspecified content type. - * - * Generated from protobuf enum CONTENT_TYPE_UNSPECIFIED = 0; - */ - const CONTENT_TYPE_UNSPECIFIED = 0; - /** - * Resource metadata. - * - * Generated from protobuf enum RESOURCE = 1; - */ - const RESOURCE = 1; - /** - * The actual IAM policy set on a resource. - * - * Generated from protobuf enum IAM_POLICY = 2; - */ - const IAM_POLICY = 2; - /** - * The organization policy set on an asset. - * - * Generated from protobuf enum ORG_POLICY = 4; - */ - const ORG_POLICY = 4; - /** - * The Access Context Manager policy set on an asset. - * - * Generated from protobuf enum ACCESS_POLICY = 5; - */ - const ACCESS_POLICY = 5; - /** - * The runtime OS Inventory information. - * - * Generated from protobuf enum OS_INVENTORY = 6; - */ - const OS_INVENTORY = 6; - /** - * The related resources. - * - * Generated from protobuf enum RELATIONSHIP = 7; - */ - const RELATIONSHIP = 7; - - private static $valueToName = [ - self::CONTENT_TYPE_UNSPECIFIED => 'CONTENT_TYPE_UNSPECIFIED', - self::RESOURCE => 'RESOURCE', - self::IAM_POLICY => 'IAM_POLICY', - self::ORG_POLICY => 'ORG_POLICY', - self::ACCESS_POLICY => 'ACCESS_POLICY', - self::OS_INVENTORY => 'OS_INVENTORY', - self::RELATIONSHIP => 'RELATIONSHIP', - ]; - - 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/CreateFeedRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/CreateFeedRequest.php deleted file mode 100644 index b5c6bb66cc52..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/CreateFeedRequest.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.asset.v1.CreateFeedRequest - */ -class CreateFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the project/folder/organization where this feed - * should be created in. It can only be an organization number (such as - * "organizations/123"), a folder number (such as "folders/123"), a project ID - * (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. This is the client-assigned asset feed identifier and it needs to - * be unique under a specific parent project/folder/organization. - * - * Generated from protobuf field string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $feed_id = ''; - /** - * Required. The feed details. The field `name` must be empty and it will be - * generated in the format of: projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * Generated from protobuf field .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $feed = null; - - /** - * @param string $parent Required. The name of the project/folder/organization where this feed - * should be created in. It can only be an organization number (such as - * "organizations/123"), a folder number (such as "folders/123"), a project ID - * (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * - * @return \Google\Cloud\Asset\V1\CreateFeedRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the project/folder/organization where this feed - * should be created in. It can only be an organization number (such as - * "organizations/123"), a folder number (such as "folders/123"), a project ID - * (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * @type string $feed_id - * Required. This is the client-assigned asset feed identifier and it needs to - * be unique under a specific parent project/folder/organization. - * @type \Google\Cloud\Asset\V1\Feed $feed - * Required. The feed details. The field `name` must be empty and it will be - * generated in the format of: projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the project/folder/organization where this feed - * should be created in. It can only be an organization number (such as - * "organizations/123"), a folder number (such as "folders/123"), a project ID - * (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the project/folder/organization where this feed - * should be created in. It can only be an organization number (such as - * "organizations/123"), a folder number (such as "folders/123"), a project ID - * (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. This is the client-assigned asset feed identifier and it needs to - * be unique under a specific parent project/folder/organization. - * - * Generated from protobuf field string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFeedId() - { - return $this->feed_id; - } - - /** - * Required. This is the client-assigned asset feed identifier and it needs to - * be unique under a specific parent project/folder/organization. - * - * Generated from protobuf field string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFeedId($var) - { - GPBUtil::checkString($var, True); - $this->feed_id = $var; - - return $this; - } - - /** - * Required. The feed details. The field `name` must be empty and it will be - * generated in the format of: projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * Generated from protobuf field .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\Feed|null - */ - public function getFeed() - { - return $this->feed; - } - - public function hasFeed() - { - return isset($this->feed); - } - - public function clearFeed() - { - unset($this->feed); - } - - /** - * Required. The feed details. The field `name` must be empty and it will be - * generated in the format of: projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * Generated from protobuf field .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\Feed $var - * @return $this - */ - public function setFeed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\Feed::class); - $this->feed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/CreateSavedQueryRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/CreateSavedQueryRequest.php deleted file mode 100644 index 147d9204985c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/CreateSavedQueryRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.asset.v1.CreateSavedQueryRequest - */ -class CreateSavedQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the project/folder/organization where this - * saved_query should be created in. It can only be an organization number - * (such as "organizations/123"), a folder number (such as "folders/123"), a - * project ID (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The saved_query details. The `name` field must be empty as it - * will be generated based on the parent and saved_query_id. - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $saved_query = null; - /** - * Required. The ID to use for the saved query, which must be unique in the - * specified parent. It will become the final component of the saved query's - * resource name. - * This value should be 4-63 characters, and valid characters - * are `[a-z][0-9]-`. - * Notice that this field is required in the saved query creation, and the - * `name` field of the `saved_query` will be ignored. - * - * Generated from protobuf field string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $saved_query_id = ''; - - /** - * @param string $parent Required. The name of the project/folder/organization where this - * saved_query should be created in. It can only be an organization number - * (such as "organizations/123"), a folder number (such as "folders/123"), a - * project ID (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). Please see - * {@see AssetServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\Asset\V1\SavedQuery $savedQuery Required. The saved_query details. The `name` field must be empty as it - * will be generated based on the parent and saved_query_id. - * @param string $savedQueryId Required. The ID to use for the saved query, which must be unique in the - * specified parent. It will become the final component of the saved query's - * resource name. - * - * This value should be 4-63 characters, and valid characters - * are `[a-z][0-9]-`. - * - * Notice that this field is required in the saved query creation, and the - * `name` field of the `saved_query` will be ignored. - * - * @return \Google\Cloud\Asset\V1\CreateSavedQueryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Asset\V1\SavedQuery $savedQuery, string $savedQueryId): self - { - return (new self()) - ->setParent($parent) - ->setSavedQuery($savedQuery) - ->setSavedQueryId($savedQueryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the project/folder/organization where this - * saved_query should be created in. It can only be an organization number - * (such as "organizations/123"), a folder number (such as "folders/123"), a - * project ID (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * @type \Google\Cloud\Asset\V1\SavedQuery $saved_query - * Required. The saved_query details. The `name` field must be empty as it - * will be generated based on the parent and saved_query_id. - * @type string $saved_query_id - * Required. The ID to use for the saved query, which must be unique in the - * specified parent. It will become the final component of the saved query's - * resource name. - * This value should be 4-63 characters, and valid characters - * are `[a-z][0-9]-`. - * Notice that this field is required in the saved query creation, and the - * `name` field of the `saved_query` will be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the project/folder/organization where this - * saved_query should be created in. It can only be an organization number - * (such as "organizations/123"), a folder number (such as "folders/123"), a - * project ID (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * - * 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 project/folder/organization where this - * saved_query should be created in. It can only be an organization number - * (such as "organizations/123"), a folder number (such as "folders/123"), a - * project ID (such as "projects/my-project-id"), or a project number (such as - * "projects/12345"). - * - * 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 saved_query details. The `name` field must be empty as it - * will be generated based on the parent and saved_query_id. - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\SavedQuery|null - */ - public function getSavedQuery() - { - return $this->saved_query; - } - - public function hasSavedQuery() - { - return isset($this->saved_query); - } - - public function clearSavedQuery() - { - unset($this->saved_query); - } - - /** - * Required. The saved_query details. The `name` field must be empty as it - * will be generated based on the parent and saved_query_id. - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\SavedQuery $var - * @return $this - */ - public function setSavedQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\SavedQuery::class); - $this->saved_query = $var; - - return $this; - } - - /** - * Required. The ID to use for the saved query, which must be unique in the - * specified parent. It will become the final component of the saved query's - * resource name. - * This value should be 4-63 characters, and valid characters - * are `[a-z][0-9]-`. - * Notice that this field is required in the saved query creation, and the - * `name` field of the `saved_query` will be ignored. - * - * Generated from protobuf field string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSavedQueryId() - { - return $this->saved_query_id; - } - - /** - * Required. The ID to use for the saved query, which must be unique in the - * specified parent. It will become the final component of the saved query's - * resource name. - * This value should be 4-63 characters, and valid characters - * are `[a-z][0-9]-`. - * Notice that this field is required in the saved query creation, and the - * `name` field of the `saved_query` will be ignored. - * - * Generated from protobuf field string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSavedQueryId($var) - { - GPBUtil::checkString($var, True); - $this->saved_query_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/DeleteFeedRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/DeleteFeedRequest.php deleted file mode 100644 index b7fef8218e4e..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/DeleteFeedRequest.php +++ /dev/null @@ -1,94 +0,0 @@ -google.cloud.asset.v1.DeleteFeedRequest - */ -class DeleteFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * Please see {@see AssetServiceClient::feedName()} for help formatting this field. - * - * @return \Google\Cloud\Asset\V1\DeleteFeedRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * 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 feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/DeleteSavedQueryRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/DeleteSavedQueryRequest.php deleted file mode 100644 index 1ed46db0d2ff..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/DeleteSavedQueryRequest.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.asset.v1.DeleteSavedQueryRequest - */ -class DeleteSavedQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the saved query to delete. It must be in the format - * of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the saved query to delete. It must be in the format - * of: - * - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * Please see {@see AssetServiceClient::savedQueryName()} for help formatting this field. - * - * @return \Google\Cloud\Asset\V1\DeleteSavedQueryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the saved query to delete. It must be in the format - * of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the saved query to delete. It must be in the format - * of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * 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 saved query to delete. It must be in the format - * of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/EffectiveTagDetails.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/EffectiveTagDetails.php deleted file mode 100644 index bff5d0b20285..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/EffectiveTagDetails.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.asset.v1.EffectiveTagDetails - */ -class EffectiveTagDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the ancestor from which an [effective_tag][] is inherited, according to - * [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * - * Generated from protobuf field optional string attached_resource = 1; - */ - protected $attached_resource = null; - /** - * The effective tags inherited from the - * [attached_resource][google.cloud.asset.v1.EffectiveTagDetails.attached_resource]. - * Note that tags with the same key but different values may attach to - * resources at a different hierarchy levels. The lower hierarchy tag value - * will overwrite the higher hierarchy tag value of the same tag key. In this - * case, the tag value at the higher hierarchy level will be removed. For more - * information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Tag effective_tags = 2; - */ - private $effective_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attached_resource - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the ancestor from which an [effective_tag][] is inherited, according to - * [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * @type array<\Google\Cloud\Asset\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $effective_tags - * The effective tags inherited from the - * [attached_resource][google.cloud.asset.v1.EffectiveTagDetails.attached_resource]. - * Note that tags with the same key but different values may attach to - * resources at a different hierarchy levels. The lower hierarchy tag value - * will overwrite the higher hierarchy tag value of the same tag key. In this - * case, the tag value at the higher hierarchy level will be removed. For more - * information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the ancestor from which an [effective_tag][] is inherited, according to - * [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * - * Generated from protobuf field optional string attached_resource = 1; - * @return string - */ - public function getAttachedResource() - { - return isset($this->attached_resource) ? $this->attached_resource : ''; - } - - public function hasAttachedResource() - { - return isset($this->attached_resource); - } - - public function clearAttachedResource() - { - unset($this->attached_resource); - } - - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the ancestor from which an [effective_tag][] is inherited, according to - * [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * - * Generated from protobuf field optional string attached_resource = 1; - * @param string $var - * @return $this - */ - public function setAttachedResource($var) - { - GPBUtil::checkString($var, True); - $this->attached_resource = $var; - - return $this; - } - - /** - * The effective tags inherited from the - * [attached_resource][google.cloud.asset.v1.EffectiveTagDetails.attached_resource]. - * Note that tags with the same key but different values may attach to - * resources at a different hierarchy levels. The lower hierarchy tag value - * will overwrite the higher hierarchy tag value of the same tag key. In this - * case, the tag value at the higher hierarchy level will be removed. For more - * information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Tag effective_tags = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveTags() - { - return $this->effective_tags; - } - - /** - * The effective tags inherited from the - * [attached_resource][google.cloud.asset.v1.EffectiveTagDetails.attached_resource]. - * Note that tags with the same key but different values may attach to - * resources at a different hierarchy levels. The lower hierarchy tag value - * will overwrite the higher hierarchy tag value of the same tag key. In this - * case, the tag value at the higher hierarchy level will be removed. For more - * information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Tag effective_tags = 2; - * @param array<\Google\Cloud\Asset\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\Tag::class); - $this->effective_tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ExportAssetsRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ExportAssetsRequest.php deleted file mode 100644 index 1e1e8ffe1043..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ExportAssetsRequest.php +++ /dev/null @@ -1,401 +0,0 @@ -google.cloud.asset.v1.ExportAssetsRequest - */ -class ExportAssetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/123"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 2; - */ - protected $read_time = null; - /** - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * - * Generated from protobuf field repeated string asset_types = 3; - */ - private $asset_types; - /** - * Asset content type. If not specified, no content but the asset name will be - * returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - */ - protected $content_type = 0; - /** - * Required. Output configuration indicating where the results will be output - * to. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_config = null; - /** - * A list of relationship types to export, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 6; - */ - private $relationship_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/123"). - * @type \Google\Protobuf\Timestamp $read_time - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * @type array|\Google\Protobuf\Internal\RepeatedField $asset_types - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * @type int $content_type - * Asset content type. If not specified, no content but the asset name will be - * returned. - * @type \Google\Cloud\Asset\V1\OutputConfig $output_config - * Required. Output configuration indicating where the results will be output - * to. - * @type array|\Google\Protobuf\Internal\RepeatedField $relationship_types - * A list of relationship types to export, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/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 relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/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; - } - - /** - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - - /** - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * - * Generated from protobuf field repeated string asset_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssetTypes() - { - return $this->asset_types; - } - - /** - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * - * Generated from protobuf field repeated string asset_types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asset_types = $arr; - - return $this; - } - - /** - * Asset content type. If not specified, no content but the asset name will be - * returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - * @return int - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * Asset content type. If not specified, no content but the asset name will be - * returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - * @param int $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\ContentType::class); - $this->content_type = $var; - - return $this; - } - - /** - * Required. Output configuration indicating where the results will be output - * to. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\OutputConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Required. Output configuration indicating where the results will be output - * to. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\OutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\OutputConfig::class); - $this->output_config = $var; - - return $this; - } - - /** - * A list of relationship types to export, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelationshipTypes() - { - return $this->relationship_types; - } - - /** - * A list of relationship types to export, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all - * supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelationshipTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->relationship_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ExportAssetsResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ExportAssetsResponse.php deleted file mode 100644 index f331763f8a90..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ExportAssetsResponse.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.asset.v1.ExportAssetsResponse - */ -class ExportAssetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Time the snapshot was taken. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - */ - protected $read_time = null; - /** - * Output configuration indicating where the results were output to. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputConfig output_config = 2; - */ - protected $output_config = null; - /** - * Output result indicating where the assets were exported to. For example, a - * set of actual Cloud Storage object URIs where the assets are exported to. - * The URIs can be different from what [output_config] has specified, as the - * service will split the output object into multiple ones once it exceeds a - * single Cloud Storage object limit. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputResult output_result = 3; - */ - protected $output_result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $read_time - * Time the snapshot was taken. - * @type \Google\Cloud\Asset\V1\OutputConfig $output_config - * Output configuration indicating where the results were output to. - * @type \Google\Cloud\Asset\V1\OutputResult $output_result - * Output result indicating where the assets were exported to. For example, a - * set of actual Cloud Storage object URIs where the assets are exported to. - * The URIs can be different from what [output_config] has specified, as the - * service will split the output object into multiple ones once it exceeds a - * single Cloud Storage object limit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Time the snapshot was taken. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * Time the snapshot was taken. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - - /** - * Output configuration indicating where the results were output to. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputConfig output_config = 2; - * @return \Google\Cloud\Asset\V1\OutputConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Output configuration indicating where the results were output to. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputConfig output_config = 2; - * @param \Google\Cloud\Asset\V1\OutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\OutputConfig::class); - $this->output_config = $var; - - return $this; - } - - /** - * Output result indicating where the assets were exported to. For example, a - * set of actual Cloud Storage object URIs where the assets are exported to. - * The URIs can be different from what [output_config] has specified, as the - * service will split the output object into multiple ones once it exceeds a - * single Cloud Storage object limit. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputResult output_result = 3; - * @return \Google\Cloud\Asset\V1\OutputResult|null - */ - public function getOutputResult() - { - return $this->output_result; - } - - public function hasOutputResult() - { - return isset($this->output_result); - } - - public function clearOutputResult() - { - unset($this->output_result); - } - - /** - * Output result indicating where the assets were exported to. For example, a - * set of actual Cloud Storage object URIs where the assets are exported to. - * The URIs can be different from what [output_config] has specified, as the - * service will split the output object into multiple ones once it exceeds a - * single Cloud Storage object limit. - * - * Generated from protobuf field .google.cloud.asset.v1.OutputResult output_result = 3; - * @param \Google\Cloud\Asset\V1\OutputResult $var - * @return $this - */ - public function setOutputResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\OutputResult::class); - $this->output_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Feed.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Feed.php deleted file mode 100644 index f99fc94745df..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Feed.php +++ /dev/null @@ -1,467 +0,0 @@ -google.cloud.asset.v1.Feed - */ -class Feed extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The format will be - * projects/{project_number}/feeds/{client-assigned_feed_identifier} or - * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or - * organizations/{organization_number}/feeds/{client-assigned_feed_identifier} - * The client-assigned feed identifier must be unique within the parent - * project/folder/organization. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * A list of the full names of the assets to receive updates. You must specify - * either or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * For a list of the full names for supported asset types, see [Resource - * name format](/asset-inventory/docs/resource-name-format). - * - * Generated from protobuf field repeated string asset_names = 2; - */ - private $asset_names; - /** - * A list of types of the assets to receive updates. You must specify either - * or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: `"compute.googleapis.com/Disk"` - * For a list of all supported asset types, see - * [Supported asset types](/asset-inventory/docs/supported-asset-types). - * - * Generated from protobuf field repeated string asset_types = 3; - */ - private $asset_types; - /** - * Asset content type. If not specified, no content but the asset name and - * type will be returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - */ - protected $content_type = 0; - /** - * Required. Feed output configuration defining where the asset updates are - * published to. - * - * Generated from protobuf field .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $feed_output_config = null; - /** - * A condition which determines whether an asset update should be published. - * If specified, an asset will be returned only when the expression evaluates - * to true. - * When set, `expression` field in the `Expr` must be a valid [CEL expression] - * (https://github.com/google/cel-spec) on a TemporalAsset with name - * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields of `Expr` are - * optional. - * See our [user - * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) - * for detailed instructions. - * - * Generated from protobuf field .google.type.Expr condition = 6; - */ - protected $condition = null; - /** - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationship updates on the [asset_names] or the - * [asset_types]. It returns an error if any of the [relationship_types] - * doesn't belong to the supported relationship types of the [asset_names] or - * [asset_types], or any of the [asset_names] or the [asset_types] doesn't - * belong to the source types of the [relationship_types]. - * * Otherwise: - * it outputs the supported relationships of the types of [asset_names] and - * [asset_types] or returns an error if any of the [asset_names] or the - * [asset_types] has no replationship support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 7; - */ - private $relationship_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The format will be - * projects/{project_number}/feeds/{client-assigned_feed_identifier} or - * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or - * organizations/{organization_number}/feeds/{client-assigned_feed_identifier} - * The client-assigned feed identifier must be unique within the parent - * project/folder/organization. - * @type array|\Google\Protobuf\Internal\RepeatedField $asset_names - * A list of the full names of the assets to receive updates. You must specify - * either or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * For a list of the full names for supported asset types, see [Resource - * name format](/asset-inventory/docs/resource-name-format). - * @type array|\Google\Protobuf\Internal\RepeatedField $asset_types - * A list of types of the assets to receive updates. You must specify either - * or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: `"compute.googleapis.com/Disk"` - * For a list of all supported asset types, see - * [Supported asset types](/asset-inventory/docs/supported-asset-types). - * @type int $content_type - * Asset content type. If not specified, no content but the asset name and - * type will be returned. - * @type \Google\Cloud\Asset\V1\FeedOutputConfig $feed_output_config - * Required. Feed output configuration defining where the asset updates are - * published to. - * @type \Google\Type\Expr $condition - * A condition which determines whether an asset update should be published. - * If specified, an asset will be returned only when the expression evaluates - * to true. - * When set, `expression` field in the `Expr` must be a valid [CEL expression] - * (https://github.com/google/cel-spec) on a TemporalAsset with name - * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields of `Expr` are - * optional. - * See our [user - * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) - * for detailed instructions. - * @type array|\Google\Protobuf\Internal\RepeatedField $relationship_types - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationship updates on the [asset_names] or the - * [asset_types]. It returns an error if any of the [relationship_types] - * doesn't belong to the supported relationship types of the [asset_names] or - * [asset_types], or any of the [asset_names] or the [asset_types] doesn't - * belong to the source types of the [relationship_types]. - * * Otherwise: - * it outputs the supported relationships of the types of [asset_names] and - * [asset_types] or returns an error if any of the [asset_names] or the - * [asset_types] has no replationship support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The format will be - * projects/{project_number}/feeds/{client-assigned_feed_identifier} or - * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or - * organizations/{organization_number}/feeds/{client-assigned_feed_identifier} - * The client-assigned feed identifier must be unique within the parent - * project/folder/organization. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The format will be - * projects/{project_number}/feeds/{client-assigned_feed_identifier} or - * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or - * organizations/{organization_number}/feeds/{client-assigned_feed_identifier} - * The client-assigned feed identifier must be unique within the parent - * project/folder/organization. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A list of the full names of the assets to receive updates. You must specify - * either or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * For a list of the full names for supported asset types, see [Resource - * name format](/asset-inventory/docs/resource-name-format). - * - * Generated from protobuf field repeated string asset_names = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssetNames() - { - return $this->asset_names; - } - - /** - * A list of the full names of the assets to receive updates. You must specify - * either or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * For a list of the full names for supported asset types, see [Resource - * name format](/asset-inventory/docs/resource-name-format). - * - * Generated from protobuf field repeated string asset_names = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssetNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asset_names = $arr; - - return $this; - } - - /** - * A list of types of the assets to receive updates. You must specify either - * or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: `"compute.googleapis.com/Disk"` - * For a list of all supported asset types, see - * [Supported asset types](/asset-inventory/docs/supported-asset-types). - * - * Generated from protobuf field repeated string asset_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssetTypes() - { - return $this->asset_types; - } - - /** - * A list of types of the assets to receive updates. You must specify either - * or both of asset_names and asset_types. Only asset updates matching - * specified asset_names or asset_types are exported to the feed. - * Example: `"compute.googleapis.com/Disk"` - * For a list of all supported asset types, see - * [Supported asset types](/asset-inventory/docs/supported-asset-types). - * - * Generated from protobuf field repeated string asset_types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asset_types = $arr; - - return $this; - } - - /** - * Asset content type. If not specified, no content but the asset name and - * type will be returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - * @return int - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * Asset content type. If not specified, no content but the asset name and - * type will be returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - * @param int $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\ContentType::class); - $this->content_type = $var; - - return $this; - } - - /** - * Required. Feed output configuration defining where the asset updates are - * published to. - * - * Generated from protobuf field .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\FeedOutputConfig|null - */ - public function getFeedOutputConfig() - { - return $this->feed_output_config; - } - - public function hasFeedOutputConfig() - { - return isset($this->feed_output_config); - } - - public function clearFeedOutputConfig() - { - unset($this->feed_output_config); - } - - /** - * Required. Feed output configuration defining where the asset updates are - * published to. - * - * Generated from protobuf field .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\FeedOutputConfig $var - * @return $this - */ - public function setFeedOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\FeedOutputConfig::class); - $this->feed_output_config = $var; - - return $this; - } - - /** - * A condition which determines whether an asset update should be published. - * If specified, an asset will be returned only when the expression evaluates - * to true. - * When set, `expression` field in the `Expr` must be a valid [CEL expression] - * (https://github.com/google/cel-spec) on a TemporalAsset with name - * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields of `Expr` are - * optional. - * See our [user - * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) - * for detailed instructions. - * - * Generated from protobuf field .google.type.Expr condition = 6; - * @return \Google\Type\Expr|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * A condition which determines whether an asset update should be published. - * If specified, an asset will be returned only when the expression evaluates - * to true. - * When set, `expression` field in the `Expr` must be a valid [CEL expression] - * (https://github.com/google/cel-spec) on a TemporalAsset with name - * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted - * == true") will only publish Asset deletions. Other fields of `Expr` are - * optional. - * See our [user - * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) - * for detailed instructions. - * - * Generated from protobuf field .google.type.Expr condition = 6; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->condition = $var; - - return $this; - } - - /** - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationship updates on the [asset_names] or the - * [asset_types]. It returns an error if any of the [relationship_types] - * doesn't belong to the supported relationship types of the [asset_names] or - * [asset_types], or any of the [asset_names] or the [asset_types] doesn't - * belong to the source types of the [relationship_types]. - * * Otherwise: - * it outputs the supported relationships of the types of [asset_names] and - * [asset_types] or returns an error if any of the [asset_names] or the - * [asset_types] has no replationship support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelationshipTypes() - { - return $this->relationship_types; - } - - /** - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it outputs specified relationship updates on the [asset_names] or the - * [asset_types]. It returns an error if any of the [relationship_types] - * doesn't belong to the supported relationship types of the [asset_names] or - * [asset_types], or any of the [asset_names] or the [asset_types] doesn't - * belong to the source types of the [relationship_types]. - * * Otherwise: - * it outputs the supported relationships of the types of [asset_names] and - * [asset_types] or returns an error if any of the [asset_names] or the - * [asset_types] has no replationship support. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelationshipTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->relationship_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/FeedOutputConfig.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/FeedOutputConfig.php deleted file mode 100644 index 429c1b3c1749..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/FeedOutputConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.asset.v1.FeedOutputConfig - */ -class FeedOutputConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\PubsubDestination $pubsub_destination - * Destination on Pub/Sub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Destination on Pub/Sub. - * - * Generated from protobuf field .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * @return \Google\Cloud\Asset\V1\PubsubDestination|null - */ - public function getPubsubDestination() - { - return $this->readOneof(1); - } - - public function hasPubsubDestination() - { - return $this->hasOneof(1); - } - - /** - * Destination on Pub/Sub. - * - * Generated from protobuf field .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * @param \Google\Cloud\Asset\V1\PubsubDestination $var - * @return $this - */ - public function setPubsubDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\PubsubDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GcsDestination.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GcsDestination.php deleted file mode 100644 index 918f57ddbeb9..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GcsDestination.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.asset.v1.GcsDestination - */ -class GcsDestination extends \Google\Protobuf\Internal\Message -{ - protected $object_uri; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * The URI of the Cloud Storage object. It's the same URI that is used by - * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and - * Editing Object - * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) - * for more information. - * If the specified Cloud Storage object already exists and there is no - * [hold](https://cloud.google.com/storage/docs/object-holds), it will be - * overwritten with the exported result. - * @type string $uri_prefix - * The URI prefix of all generated Cloud Storage objects. Example: - * "gs://bucket_name/object_name_prefix". Each object URI is in format: - * "gs://bucket_name/object_name_prefix// and only - * contains assets for that type. starts from 0. Example: - * "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is - * the first shard of output objects containing all - * compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be - * returned if file with the same name "gs://bucket_name/object_name_prefix" - * already exists. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The URI of the Cloud Storage object. It's the same URI that is used by - * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and - * Editing Object - * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) - * for more information. - * If the specified Cloud Storage object already exists and there is no - * [hold](https://cloud.google.com/storage/docs/object-holds), it will be - * overwritten with the exported result. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->readOneof(1); - } - - public function hasUri() - { - return $this->hasOneof(1); - } - - /** - * The URI of the Cloud Storage object. It's the same URI that is used by - * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and - * Editing Object - * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) - * for more information. - * If the specified Cloud Storage object already exists and there is no - * [hold](https://cloud.google.com/storage/docs/object-holds), it will be - * overwritten with the exported result. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The URI prefix of all generated Cloud Storage objects. Example: - * "gs://bucket_name/object_name_prefix". Each object URI is in format: - * "gs://bucket_name/object_name_prefix// and only - * contains assets for that type. starts from 0. Example: - * "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is - * the first shard of output objects containing all - * compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be - * returned if file with the same name "gs://bucket_name/object_name_prefix" - * already exists. - * - * Generated from protobuf field string uri_prefix = 2; - * @return string - */ - public function getUriPrefix() - { - return $this->readOneof(2); - } - - public function hasUriPrefix() - { - return $this->hasOneof(2); - } - - /** - * The URI prefix of all generated Cloud Storage objects. Example: - * "gs://bucket_name/object_name_prefix". Each object URI is in format: - * "gs://bucket_name/object_name_prefix// and only - * contains assets for that type. starts from 0. Example: - * "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is - * the first shard of output objects containing all - * compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be - * returned if file with the same name "gs://bucket_name/object_name_prefix" - * already exists. - * - * Generated from protobuf field string uri_prefix = 2; - * @param string $var - * @return $this - */ - public function setUriPrefix($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getObjectUri() - { - return $this->whichOneof("object_uri"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GcsOutputResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GcsOutputResult.php deleted file mode 100644 index 0c04c6442dfb..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GcsOutputResult.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.asset.v1.GcsOutputResult - */ -class GcsOutputResult extends \Google\Protobuf\Internal\Message -{ - /** - * List of URIs of the Cloud Storage objects. Example: - * "gs://bucket_name/object_name". - * - * Generated from protobuf field repeated string uris = 1; - */ - private $uris; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $uris - * List of URIs of the Cloud Storage objects. Example: - * "gs://bucket_name/object_name". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * List of URIs of the Cloud Storage objects. Example: - * "gs://bucket_name/object_name". - * - * Generated from protobuf field repeated string uris = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUris() - { - return $this->uris; - } - - /** - * List of URIs of the Cloud Storage objects. Example: - * "gs://bucket_name/object_name". - * - * Generated from protobuf field repeated string uris = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->uris = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GetFeedRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GetFeedRequest.php deleted file mode 100644 index 75212d92676b..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GetFeedRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.asset.v1.GetFeedRequest - */ -class GetFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * Please see {@see AssetServiceClient::feedName()} for help formatting this field. - * - * @return \Google\Cloud\Asset\V1\GetFeedRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * 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 Feed and it must be in the format of: - * projects/project_number/feeds/feed_id - * folders/folder_number/feeds/feed_id - * organizations/organization_number/feeds/feed_id - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/GetSavedQueryRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GetSavedQueryRequest.php deleted file mode 100644 index 11f6e5810471..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/GetSavedQueryRequest.php +++ /dev/null @@ -1,97 +0,0 @@ -google.cloud.asset.v1.GetSavedQueryRequest - */ -class GetSavedQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the saved query and it must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the saved query and it must be in the format of: - * - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * Please see {@see AssetServiceClient::savedQueryName()} for help formatting this field. - * - * @return \Google\Cloud\Asset\V1\GetSavedQueryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the saved query and it must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the saved query and it must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * 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 saved query and it must be in the format of: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig.php deleted file mode 100644 index c5920d7aafd3..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisOutputConfig - */ -class IamPolicyAnalysisOutputConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\GcsDestination $gcs_destination - * Destination on Cloud Storage. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\BigQueryDestination $bigquery_destination - * Destination on BigQuery. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Destination on Cloud Storage. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\GcsDestination|null - */ - public function getGcsDestination() - { - return $this->readOneof(1); - } - - public function hasGcsDestination() - { - return $this->hasOneof(1); - } - - /** - * Destination on Cloud Storage. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\GcsDestination $var - * @return $this - */ - public function setGcsDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\GcsDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Destination on BigQuery. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\BigQueryDestination|null - */ - public function getBigqueryDestination() - { - return $this->readOneof(2); - } - - public function hasBigqueryDestination() - { - return $this->hasOneof(2); - } - - /** - * Destination on BigQuery. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\BigQueryDestination $var - * @return $this - */ - public function setBigqueryDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\BigQueryDestination::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination.php deleted file mode 100644 index b3af2480f5cd..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination.php +++ /dev/null @@ -1,252 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - */ -class BigQueryDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the analysis results - * should be exported. If this dataset does not exist, the export call will - * return an INVALID_ARGUMENT error. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset = ''; - /** - * Required. The prefix of the BigQuery tables to which the analysis results - * will be written. Tables will be created based on this table_prefix if not - * exist: - * * _analysis table will contain export operation's metadata. - * * _analysis_result will contain all the - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]. - * When [partition_key] is specified, both tables will be partitioned based - * on the [partition_key]. - * - * Generated from protobuf field string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_prefix = ''; - /** - * The partition key for BigQuery partitioned table. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - */ - protected $partition_key = 0; - /** - * Optional. Specifies the action that occurs if the destination table or - * partition already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. - * The default value is WRITE_APPEND. Each action is atomic and only occurs - * if BigQuery is able to complete the job successfully. Details are at - * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file. - * - * Generated from protobuf field string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $write_disposition = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the analysis results - * should be exported. If this dataset does not exist, the export call will - * return an INVALID_ARGUMENT error. - * @type string $table_prefix - * Required. The prefix of the BigQuery tables to which the analysis results - * will be written. Tables will be created based on this table_prefix if not - * exist: - * * _analysis table will contain export operation's metadata. - * * _analysis_result will contain all the - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]. - * When [partition_key] is specified, both tables will be partitioned based - * on the [partition_key]. - * @type int $partition_key - * The partition key for BigQuery partitioned table. - * @type string $write_disposition - * Optional. Specifies the action that occurs if the destination table or - * partition already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. - * The default value is WRITE_APPEND. Each action is atomic and only occurs - * if BigQuery is able to complete the job successfully. Details are at - * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the analysis results - * should be exported. If this dataset does not exist, the export call will - * return an INVALID_ARGUMENT error. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataset() - { - return $this->dataset; - } - - /** - * Required. The BigQuery dataset in format - * "projects/projectId/datasets/datasetId", to which the analysis results - * should be exported. If this dataset does not exist, the export call will - * return an INVALID_ARGUMENT error. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkString($var, True); - $this->dataset = $var; - - return $this; - } - - /** - * Required. The prefix of the BigQuery tables to which the analysis results - * will be written. Tables will be created based on this table_prefix if not - * exist: - * * _analysis table will contain export operation's metadata. - * * _analysis_result will contain all the - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]. - * When [partition_key] is specified, both tables will be partitioned based - * on the [partition_key]. - * - * Generated from protobuf field string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTablePrefix() - { - return $this->table_prefix; - } - - /** - * Required. The prefix of the BigQuery tables to which the analysis results - * will be written. Tables will be created based on this table_prefix if not - * exist: - * * _analysis table will contain export operation's metadata. - * * _analysis_result will contain all the - * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]. - * When [partition_key] is specified, both tables will be partitioned based - * on the [partition_key]. - * - * Generated from protobuf field string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTablePrefix($var) - { - GPBUtil::checkString($var, True); - $this->table_prefix = $var; - - return $this; - } - - /** - * The partition key for BigQuery partitioned table. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * @return int - */ - public function getPartitionKey() - { - return $this->partition_key; - } - - /** - * The partition key for BigQuery partitioned table. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * @param int $var - * @return $this - */ - public function setPartitionKey($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig\BigQueryDestination\PartitionKey::class); - $this->partition_key = $var; - - return $this; - } - - /** - * Optional. Specifies the action that occurs if the destination table or - * partition already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. - * The default value is WRITE_APPEND. Each action is atomic and only occurs - * if BigQuery is able to complete the job successfully. Details are at - * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file. - * - * Generated from protobuf field string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getWriteDisposition() - { - return $this->write_disposition; - } - - /** - * Optional. Specifies the action that occurs if the destination table or - * partition already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, an error is - * returned. - * The default value is WRITE_APPEND. Each action is atomic and only occurs - * if BigQuery is able to complete the job successfully. Details are at - * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file. - * - * Generated from protobuf field string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setWriteDisposition($var) - { - GPBUtil::checkString($var, True); - $this->write_disposition = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BigQueryDestination::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig_BigQueryDestination::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php deleted file mode 100644 index 6902ee9a90e7..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/BigQueryDestination/PartitionKey.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey - */ -class PartitionKey -{ - /** - * Unspecified partition key. Tables won't be partitioned using this - * option. - * - * Generated from protobuf enum PARTITION_KEY_UNSPECIFIED = 0; - */ - const PARTITION_KEY_UNSPECIFIED = 0; - /** - * The time when the request is received. If specified as partition key, - * the result table(s) is partitoned by the RequestTime column, an - * additional timestamp column representing when the request was received. - * - * Generated from protobuf enum REQUEST_TIME = 1; - */ - const REQUEST_TIME = 1; - - private static $valueToName = [ - self::PARTITION_KEY_UNSPECIFIED => 'PARTITION_KEY_UNSPECIFIED', - self::REQUEST_TIME => 'REQUEST_TIME', - ]; - - 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(PartitionKey::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/GcsDestination.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/GcsDestination.php deleted file mode 100644 index a255efdb2975..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisOutputConfig/GcsDestination.php +++ /dev/null @@ -1,98 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - */ -class GcsDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URI of the Cloud Storage object. It's the same URI that is - * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and - * Editing Object - * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) - * for more information. - * If the specified Cloud Storage object already exists and there is no - * [hold](https://cloud.google.com/storage/docs/object-holds), it will be - * overwritten with the analysis result. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Required. The URI of the Cloud Storage object. It's the same URI that is - * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and - * Editing Object - * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) - * for more information. - * If the specified Cloud Storage object already exists and there is no - * [hold](https://cloud.google.com/storage/docs/object-holds), it will be - * overwritten with the analysis result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URI of the Cloud Storage object. It's the same URI that is - * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and - * Editing Object - * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) - * for more information. - * If the specified Cloud Storage object already exists and there is no - * [hold](https://cloud.google.com/storage/docs/object-holds), it will be - * overwritten with the analysis result. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. The URI of the Cloud Storage object. It's the same URI that is - * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and - * Editing Object - * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) - * for more information. - * If the specified Cloud Storage object already exists and there is no - * [hold](https://cloud.google.com/storage/docs/object-holds), it will be - * overwritten with the analysis result. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GcsDestination::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisOutputConfig_GcsDestination::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery.php deleted file mode 100644 index bf8de70d77ad..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery.php +++ /dev/null @@ -1,319 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisQuery - */ -class IamPolicyAnalysisQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative name of the root asset. Only resources and IAM - * policies within the scope will be analyzed. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = ''; - /** - * Optional. Specifies a resource for analysis. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_selector = null; - /** - * Optional. Specifies an identity for analysis. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $identity_selector = null; - /** - * Optional. Specifies roles or permissions for analysis. This is optional. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $access_selector = null; - /** - * Optional. The query options. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $options = null; - /** - * Optional. The hypothetical context for IAM conditions evaluation. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $condition_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. The relative name of the root asset. Only resources and IAM - * policies within the scope will be analyzed. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ResourceSelector $resource_selector - * Optional. Specifies a resource for analysis. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\IdentitySelector $identity_selector - * Optional. Specifies an identity for analysis. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\AccessSelector $access_selector - * Optional. Specifies roles or permissions for analysis. This is optional. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\Options $options - * Optional. The query options. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ConditionContext $condition_context - * Optional. The hypothetical context for IAM conditions evaluation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative name of the root asset. Only resources and IAM - * policies within the scope will be analyzed. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. The relative name of the root asset. Only resources and IAM - * policies within the scope will be analyzed. - * This can only be an organization number (such as "organizations/123"), a - * folder number (such as "folders/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"). - * To know how to get organization ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). - * To know how to get folder or project ID, visit [here - * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects). - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Specifies a resource for analysis. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ResourceSelector|null - */ - public function getResourceSelector() - { - return $this->resource_selector; - } - - public function hasResourceSelector() - { - return isset($this->resource_selector); - } - - public function clearResourceSelector() - { - unset($this->resource_selector); - } - - /** - * Optional. Specifies a resource for analysis. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ResourceSelector $var - * @return $this - */ - public function setResourceSelector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ResourceSelector::class); - $this->resource_selector = $var; - - return $this; - } - - /** - * Optional. Specifies an identity for analysis. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\IdentitySelector|null - */ - public function getIdentitySelector() - { - return $this->identity_selector; - } - - public function hasIdentitySelector() - { - return isset($this->identity_selector); - } - - public function clearIdentitySelector() - { - unset($this->identity_selector); - } - - /** - * Optional. Specifies an identity for analysis. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\IdentitySelector $var - * @return $this - */ - public function setIdentitySelector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\IdentitySelector::class); - $this->identity_selector = $var; - - return $this; - } - - /** - * Optional. Specifies roles or permissions for analysis. This is optional. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\AccessSelector|null - */ - public function getAccessSelector() - { - return $this->access_selector; - } - - public function hasAccessSelector() - { - return isset($this->access_selector); - } - - public function clearAccessSelector() - { - unset($this->access_selector); - } - - /** - * Optional. Specifies roles or permissions for analysis. This is optional. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\AccessSelector $var - * @return $this - */ - public function setAccessSelector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\AccessSelector::class); - $this->access_selector = $var; - - return $this; - } - - /** - * Optional. The query options. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\Options|null - */ - public function getOptions() - { - return $this->options; - } - - public function hasOptions() - { - return isset($this->options); - } - - public function clearOptions() - { - unset($this->options); - } - - /** - * Optional. The query options. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\Options $var - * @return $this - */ - public function setOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\Options::class); - $this->options = $var; - - return $this; - } - - /** - * Optional. The hypothetical context for IAM conditions evaluation. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ConditionContext|null - */ - public function getConditionContext() - { - return $this->condition_context; - } - - public function hasConditionContext() - { - return isset($this->condition_context); - } - - public function clearConditionContext() - { - unset($this->condition_context); - } - - /** - * Optional. The hypothetical context for IAM conditions evaluation. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ConditionContext $var - * @return $this - */ - public function setConditionContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery\ConditionContext::class); - $this->condition_context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/AccessSelector.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/AccessSelector.php deleted file mode 100644 index 4300fff07a37..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/AccessSelector.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector - */ -class AccessSelector extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The roles to appear in result. - * - * Generated from protobuf field repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $roles; - /** - * Optional. The permissions to appear in result. - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $roles - * Optional. The roles to appear in result. - * @type array|\Google\Protobuf\Internal\RepeatedField $permissions - * Optional. The permissions to appear in result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The roles to appear in result. - * - * Generated from protobuf field repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRoles() - { - return $this->roles; - } - - /** - * Optional. The roles to appear in result. - * - * Generated from protobuf field repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->roles = $arr; - - return $this; - } - - /** - * Optional. The permissions to appear in result. - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPermissions() - { - return $this->permissions; - } - - /** - * Optional. The permissions to appear in result. - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPermissions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->permissions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AccessSelector::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery_AccessSelector::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/ConditionContext.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/ConditionContext.php deleted file mode 100644 index a8175ae7fc7e..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/ConditionContext.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext - */ -class ConditionContext extends \Google\Protobuf\Internal\Message -{ - protected $TimeContext; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $access_time - * The hypothetical access timestamp to evaluate IAM conditions. Note that - * this value must not be earlier than the current time; otherwise, an - * INVALID_ARGUMENT error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The hypothetical access timestamp to evaluate IAM conditions. Note that - * this value must not be earlier than the current time; otherwise, an - * INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field .google.protobuf.Timestamp access_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getAccessTime() - { - return $this->readOneof(1); - } - - public function hasAccessTime() - { - return $this->hasOneof(1); - } - - /** - * The hypothetical access timestamp to evaluate IAM conditions. Note that - * this value must not be earlier than the current time; otherwise, an - * INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field .google.protobuf.Timestamp access_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setAccessTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getTimeContext() - { - return $this->whichOneof("TimeContext"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConditionContext::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery_ConditionContext::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/IdentitySelector.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/IdentitySelector.php deleted file mode 100644 index 2bca0554f02f..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/IdentitySelector.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector - */ -class IdentitySelector extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The identity appear in the form of principals in - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). - * The examples of supported forms are: - * "user:mike@example.com", - * "group:admins@example.com", - * "domain:google.com", - * "serviceAccount:my-project-id@appspot.gserviceaccount.com". - * Notice that wildcard characters (such as * and ?) are not supported. - * You must give a specific identity. - * - * Generated from protobuf field string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $identity = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $identity - * Required. The identity appear in the form of principals in - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). - * The examples of supported forms are: - * "user:mike@example.com", - * "group:admins@example.com", - * "domain:google.com", - * "serviceAccount:my-project-id@appspot.gserviceaccount.com". - * Notice that wildcard characters (such as * and ?) are not supported. - * You must give a specific identity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The identity appear in the form of principals in - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). - * The examples of supported forms are: - * "user:mike@example.com", - * "group:admins@example.com", - * "domain:google.com", - * "serviceAccount:my-project-id@appspot.gserviceaccount.com". - * Notice that wildcard characters (such as * and ?) are not supported. - * You must give a specific identity. - * - * Generated from protobuf field string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getIdentity() - { - return $this->identity; - } - - /** - * Required. The identity appear in the form of principals in - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). - * The examples of supported forms are: - * "user:mike@example.com", - * "group:admins@example.com", - * "domain:google.com", - * "serviceAccount:my-project-id@appspot.gserviceaccount.com". - * Notice that wildcard characters (such as * and ?) are not supported. - * You must give a specific identity. - * - * Generated from protobuf field string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setIdentity($var) - { - GPBUtil::checkString($var, True); - $this->identity = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IdentitySelector::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery_IdentitySelector::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/Options.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/Options.php deleted file mode 100644 index aa83e164d5ba..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/Options.php +++ /dev/null @@ -1,508 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisQuery.Options - */ -class Options extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. If true, the identities section of the result will expand any - * Google groups appearing in an IAM policy binding. - * If - * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] - * is specified, the identity in the result will be determined by the - * selector, and this flag is not allowed to set. - * If true, the default max expansion per group is 1000 for - * AssetService.AnalyzeIamPolicy][]. - * Default is false. - * - * Generated from protobuf field bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expand_groups = false; - /** - * Optional. If true, the access section of result will expand any roles - * appearing in IAM policy bindings to include their permissions. - * If - * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] - * is specified, the access section of the result will be determined by the - * selector, and this flag is not allowed to set. - * Default is false. - * - * Generated from protobuf field bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expand_roles = false; - /** - * Optional. If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is not specified, the resource section of the result will expand any - * resource attached to an IAM policy to include resources lower in the - * resource hierarchy. - * For example, if the request analyzes for which resources user A has - * permission P, and the results include an IAM policy with P on a Google - * Cloud folder, the results will also include resources in that folder with - * permission P. - * If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is specified, the resource section of the result will expand the - * specified resource to include resources lower in the resource hierarchy. - * Only project or lower resources are supported. Folder and organization - * resources cannot be used together with this option. - * For example, if the request analyzes for which users have permission P on - * a Google Cloud project with this option enabled, the results will include - * all users who have permission P on that project or any lower resource. - * If true, the default max expansion per resource is 1000 for - * AssetService.AnalyzeIamPolicy][] and 100000 for - * AssetService.AnalyzeIamPolicyLongrunning][]. - * Default is false. - * - * Generated from protobuf field bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expand_resources = false; - /** - * Optional. If true, the result will output the relevant parent/child - * relationships between resources. Default is false. - * - * Generated from protobuf field bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $output_resource_edges = false; - /** - * Optional. If true, the result will output the relevant membership - * relationships between groups and other groups, and between groups and - * principals. Default is false. - * - * Generated from protobuf field bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $output_group_edges = false; - /** - * Optional. If true, the response will include access analysis from - * identities to resources via service account impersonation. This is a very - * expensive operation, because many derived queries will be executed. We - * highly recommend you use - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] - * RPC instead. - * For example, if the request analyzes for which resources user A has - * permission P, and there's an IAM policy states user A has - * iam.serviceAccounts.getAccessToken permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to a Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Another example, if the request analyzes for who has - * permission P to a Google Cloud folder F, and there's an IAM policy states - * user A has iam.serviceAccounts.actAs permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to the Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Only the following permissions are considered in this analysis: - * * `iam.serviceAccounts.actAs` - * * `iam.serviceAccounts.signBlob` - * * `iam.serviceAccounts.signJwt` - * * `iam.serviceAccounts.getAccessToken` - * * `iam.serviceAccounts.getOpenIdToken` - * * `iam.serviceAccounts.implicitDelegation` - * Default is false. - * - * Generated from protobuf field bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $analyze_service_account_impersonation = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $expand_groups - * Optional. If true, the identities section of the result will expand any - * Google groups appearing in an IAM policy binding. - * If - * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] - * is specified, the identity in the result will be determined by the - * selector, and this flag is not allowed to set. - * If true, the default max expansion per group is 1000 for - * AssetService.AnalyzeIamPolicy][]. - * Default is false. - * @type bool $expand_roles - * Optional. If true, the access section of result will expand any roles - * appearing in IAM policy bindings to include their permissions. - * If - * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] - * is specified, the access section of the result will be determined by the - * selector, and this flag is not allowed to set. - * Default is false. - * @type bool $expand_resources - * Optional. If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is not specified, the resource section of the result will expand any - * resource attached to an IAM policy to include resources lower in the - * resource hierarchy. - * For example, if the request analyzes for which resources user A has - * permission P, and the results include an IAM policy with P on a Google - * Cloud folder, the results will also include resources in that folder with - * permission P. - * If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is specified, the resource section of the result will expand the - * specified resource to include resources lower in the resource hierarchy. - * Only project or lower resources are supported. Folder and organization - * resources cannot be used together with this option. - * For example, if the request analyzes for which users have permission P on - * a Google Cloud project with this option enabled, the results will include - * all users who have permission P on that project or any lower resource. - * If true, the default max expansion per resource is 1000 for - * AssetService.AnalyzeIamPolicy][] and 100000 for - * AssetService.AnalyzeIamPolicyLongrunning][]. - * Default is false. - * @type bool $output_resource_edges - * Optional. If true, the result will output the relevant parent/child - * relationships between resources. Default is false. - * @type bool $output_group_edges - * Optional. If true, the result will output the relevant membership - * relationships between groups and other groups, and between groups and - * principals. Default is false. - * @type bool $analyze_service_account_impersonation - * Optional. If true, the response will include access analysis from - * identities to resources via service account impersonation. This is a very - * expensive operation, because many derived queries will be executed. We - * highly recommend you use - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] - * RPC instead. - * For example, if the request analyzes for which resources user A has - * permission P, and there's an IAM policy states user A has - * iam.serviceAccounts.getAccessToken permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to a Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Another example, if the request analyzes for who has - * permission P to a Google Cloud folder F, and there's an IAM policy states - * user A has iam.serviceAccounts.actAs permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to the Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Only the following permissions are considered in this analysis: - * * `iam.serviceAccounts.actAs` - * * `iam.serviceAccounts.signBlob` - * * `iam.serviceAccounts.signJwt` - * * `iam.serviceAccounts.getAccessToken` - * * `iam.serviceAccounts.getOpenIdToken` - * * `iam.serviceAccounts.implicitDelegation` - * Default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. If true, the identities section of the result will expand any - * Google groups appearing in an IAM policy binding. - * If - * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] - * is specified, the identity in the result will be determined by the - * selector, and this flag is not allowed to set. - * If true, the default max expansion per group is 1000 for - * AssetService.AnalyzeIamPolicy][]. - * Default is false. - * - * Generated from protobuf field bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExpandGroups() - { - return $this->expand_groups; - } - - /** - * Optional. If true, the identities section of the result will expand any - * Google groups appearing in an IAM policy binding. - * If - * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] - * is specified, the identity in the result will be determined by the - * selector, and this flag is not allowed to set. - * If true, the default max expansion per group is 1000 for - * AssetService.AnalyzeIamPolicy][]. - * Default is false. - * - * Generated from protobuf field bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExpandGroups($var) - { - GPBUtil::checkBool($var); - $this->expand_groups = $var; - - return $this; - } - - /** - * Optional. If true, the access section of result will expand any roles - * appearing in IAM policy bindings to include their permissions. - * If - * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] - * is specified, the access section of the result will be determined by the - * selector, and this flag is not allowed to set. - * Default is false. - * - * Generated from protobuf field bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExpandRoles() - { - return $this->expand_roles; - } - - /** - * Optional. If true, the access section of result will expand any roles - * appearing in IAM policy bindings to include their permissions. - * If - * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] - * is specified, the access section of the result will be determined by the - * selector, and this flag is not allowed to set. - * Default is false. - * - * Generated from protobuf field bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExpandRoles($var) - { - GPBUtil::checkBool($var); - $this->expand_roles = $var; - - return $this; - } - - /** - * Optional. If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is not specified, the resource section of the result will expand any - * resource attached to an IAM policy to include resources lower in the - * resource hierarchy. - * For example, if the request analyzes for which resources user A has - * permission P, and the results include an IAM policy with P on a Google - * Cloud folder, the results will also include resources in that folder with - * permission P. - * If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is specified, the resource section of the result will expand the - * specified resource to include resources lower in the resource hierarchy. - * Only project or lower resources are supported. Folder and organization - * resources cannot be used together with this option. - * For example, if the request analyzes for which users have permission P on - * a Google Cloud project with this option enabled, the results will include - * all users who have permission P on that project or any lower resource. - * If true, the default max expansion per resource is 1000 for - * AssetService.AnalyzeIamPolicy][] and 100000 for - * AssetService.AnalyzeIamPolicyLongrunning][]. - * Default is false. - * - * Generated from protobuf field bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getExpandResources() - { - return $this->expand_resources; - } - - /** - * Optional. If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is not specified, the resource section of the result will expand any - * resource attached to an IAM policy to include resources lower in the - * resource hierarchy. - * For example, if the request analyzes for which resources user A has - * permission P, and the results include an IAM policy with P on a Google - * Cloud folder, the results will also include resources in that folder with - * permission P. - * If true and - * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] - * is specified, the resource section of the result will expand the - * specified resource to include resources lower in the resource hierarchy. - * Only project or lower resources are supported. Folder and organization - * resources cannot be used together with this option. - * For example, if the request analyzes for which users have permission P on - * a Google Cloud project with this option enabled, the results will include - * all users who have permission P on that project or any lower resource. - * If true, the default max expansion per resource is 1000 for - * AssetService.AnalyzeIamPolicy][] and 100000 for - * AssetService.AnalyzeIamPolicyLongrunning][]. - * Default is false. - * - * Generated from protobuf field bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setExpandResources($var) - { - GPBUtil::checkBool($var); - $this->expand_resources = $var; - - return $this; - } - - /** - * Optional. If true, the result will output the relevant parent/child - * relationships between resources. Default is false. - * - * Generated from protobuf field bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getOutputResourceEdges() - { - return $this->output_resource_edges; - } - - /** - * Optional. If true, the result will output the relevant parent/child - * relationships between resources. Default is false. - * - * Generated from protobuf field bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setOutputResourceEdges($var) - { - GPBUtil::checkBool($var); - $this->output_resource_edges = $var; - - return $this; - } - - /** - * Optional. If true, the result will output the relevant membership - * relationships between groups and other groups, and between groups and - * principals. Default is false. - * - * Generated from protobuf field bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getOutputGroupEdges() - { - return $this->output_group_edges; - } - - /** - * Optional. If true, the result will output the relevant membership - * relationships between groups and other groups, and between groups and - * principals. Default is false. - * - * Generated from protobuf field bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setOutputGroupEdges($var) - { - GPBUtil::checkBool($var); - $this->output_group_edges = $var; - - return $this; - } - - /** - * Optional. If true, the response will include access analysis from - * identities to resources via service account impersonation. This is a very - * expensive operation, because many derived queries will be executed. We - * highly recommend you use - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] - * RPC instead. - * For example, if the request analyzes for which resources user A has - * permission P, and there's an IAM policy states user A has - * iam.serviceAccounts.getAccessToken permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to a Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Another example, if the request analyzes for who has - * permission P to a Google Cloud folder F, and there's an IAM policy states - * user A has iam.serviceAccounts.actAs permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to the Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Only the following permissions are considered in this analysis: - * * `iam.serviceAccounts.actAs` - * * `iam.serviceAccounts.signBlob` - * * `iam.serviceAccounts.signJwt` - * * `iam.serviceAccounts.getAccessToken` - * * `iam.serviceAccounts.getOpenIdToken` - * * `iam.serviceAccounts.implicitDelegation` - * Default is false. - * - * Generated from protobuf field bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAnalyzeServiceAccountImpersonation() - { - return $this->analyze_service_account_impersonation; - } - - /** - * Optional. If true, the response will include access analysis from - * identities to resources via service account impersonation. This is a very - * expensive operation, because many derived queries will be executed. We - * highly recommend you use - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] - * RPC instead. - * For example, if the request analyzes for which resources user A has - * permission P, and there's an IAM policy states user A has - * iam.serviceAccounts.getAccessToken permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to a Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Another example, if the request analyzes for who has - * permission P to a Google Cloud folder F, and there's an IAM policy states - * user A has iam.serviceAccounts.actAs permission to a service account SA, - * and there's another IAM policy states service account SA has permission P - * to the Google Cloud folder F, then user A potentially has access to the - * Google Cloud folder F. And those advanced analysis results will be - * included in - * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]. - * Only the following permissions are considered in this analysis: - * * `iam.serviceAccounts.actAs` - * * `iam.serviceAccounts.signBlob` - * * `iam.serviceAccounts.signJwt` - * * `iam.serviceAccounts.getAccessToken` - * * `iam.serviceAccounts.getOpenIdToken` - * * `iam.serviceAccounts.implicitDelegation` - * Default is false. - * - * Generated from protobuf field bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAnalyzeServiceAccountImpersonation($var) - { - GPBUtil::checkBool($var); - $this->analyze_service_account_impersonation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Options::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery_Options::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/ResourceSelector.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/ResourceSelector.php deleted file mode 100644 index fb18d55f5bbb..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisQuery/ResourceSelector.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector - */ -class ResourceSelector extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of a resource of [supported resource - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types). - * - * Generated from protobuf field string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $full_resource_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource_name - * Required. The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of a resource of [supported resource - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of a resource of [supported resource - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types). - * - * Generated from protobuf field string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * Required. The [full resource name] - * (https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of a resource of [supported resource - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types). - * - * Generated from protobuf field string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ResourceSelector::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery_ResourceSelector::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult.php deleted file mode 100644 index 7d3098780e3b..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult.php +++ /dev/null @@ -1,268 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisResult - */ -class IamPolicyAnalysisResult extends \Google\Protobuf\Internal\Message -{ - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the resource to which the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * policy attaches. - * - * Generated from protobuf field string attached_resource_full_name = 1; - */ - protected $attached_resource_full_name = ''; - /** - * The IAM policy binding under analysis. - * - * Generated from protobuf field .google.iam.v1.Binding iam_binding = 2; - */ - protected $iam_binding = null; - /** - * The access control lists derived from the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match resource and access selectors specified in - * the request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - */ - private $access_control_lists; - /** - * The identity list derived from members of the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match identity selector specified in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - */ - protected $identity_list = null; - /** - * Represents whether all analyses on the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * have successfully finished. - * - * Generated from protobuf field bool fully_explored = 5; - */ - protected $fully_explored = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attached_resource_full_name - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the resource to which the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * policy attaches. - * @type \Google\Cloud\Iam\V1\Binding $iam_binding - * The IAM policy binding under analysis. - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\AccessControlList>|\Google\Protobuf\Internal\RepeatedField $access_control_lists - * The access control lists derived from the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match resource and access selectors specified in - * the request. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\IdentityList $identity_list - * The identity list derived from members of the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match identity selector specified in the request. - * @type bool $fully_explored - * Represents whether all analyses on the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * have successfully finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the resource to which the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * policy attaches. - * - * Generated from protobuf field string attached_resource_full_name = 1; - * @return string - */ - public function getAttachedResourceFullName() - { - return $this->attached_resource_full_name; - } - - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * of the resource to which the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * policy attaches. - * - * Generated from protobuf field string attached_resource_full_name = 1; - * @param string $var - * @return $this - */ - public function setAttachedResourceFullName($var) - { - GPBUtil::checkString($var, True); - $this->attached_resource_full_name = $var; - - return $this; - } - - /** - * The IAM policy binding under analysis. - * - * Generated from protobuf field .google.iam.v1.Binding iam_binding = 2; - * @return \Google\Cloud\Iam\V1\Binding|null - */ - public function getIamBinding() - { - return $this->iam_binding; - } - - public function hasIamBinding() - { - return isset($this->iam_binding); - } - - public function clearIamBinding() - { - unset($this->iam_binding); - } - - /** - * The IAM policy binding under analysis. - * - * Generated from protobuf field .google.iam.v1.Binding iam_binding = 2; - * @param \Google\Cloud\Iam\V1\Binding $var - * @return $this - */ - public function setIamBinding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Binding::class); - $this->iam_binding = $var; - - return $this; - } - - /** - * The access control lists derived from the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match resource and access selectors specified in - * the request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessControlLists() - { - return $this->access_control_lists; - } - - /** - * The access control lists derived from the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match resource and access selectors specified in - * the request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\AccessControlList>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessControlLists($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\AccessControlList::class); - $this->access_control_lists = $arr; - - return $this; - } - - /** - * The identity list derived from members of the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match identity selector specified in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\IdentityList|null - */ - public function getIdentityList() - { - return $this->identity_list; - } - - public function hasIdentityList() - { - return isset($this->identity_list); - } - - public function clearIdentityList() - { - unset($this->identity_list); - } - - /** - * The identity list derived from members of the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * that match or potentially match identity selector specified in the request. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\IdentityList $var - * @return $this - */ - public function setIdentityList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\IdentityList::class); - $this->identity_list = $var; - - return $this; - } - - /** - * Represents whether all analyses on the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * have successfully finished. - * - * Generated from protobuf field bool fully_explored = 5; - * @return bool - */ - public function getFullyExplored() - { - return $this->fully_explored; - } - - /** - * Represents whether all analyses on the - * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] - * have successfully finished. - * - * Generated from protobuf field bool fully_explored = 5; - * @param bool $var - * @return $this - */ - public function setFullyExplored($var) - { - GPBUtil::checkBool($var); - $this->fully_explored = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Access.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Access.php deleted file mode 100644 index e7485733ea76..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Access.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisResult.Access - */ -class Access extends \Google\Protobuf\Internal\Message -{ - /** - * The analysis state of this access. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - */ - protected $analysis_state = null; - protected $oneof_access; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $role - * The role. - * @type string $permission - * The permission. - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisState $analysis_state - * The analysis state of this access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The role. - * - * Generated from protobuf field string role = 1; - * @return string - */ - public function getRole() - { - return $this->readOneof(1); - } - - public function hasRole() - { - return $this->hasOneof(1); - } - - /** - * The role. - * - * Generated from protobuf field string role = 1; - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The permission. - * - * Generated from protobuf field string permission = 2; - * @return string - */ - public function getPermission() - { - return $this->readOneof(2); - } - - public function hasPermission() - { - return $this->hasOneof(2); - } - - /** - * The permission. - * - * Generated from protobuf field string permission = 2; - * @param string $var - * @return $this - */ - public function setPermission($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The analysis state of this access. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisState|null - */ - public function getAnalysisState() - { - return $this->analysis_state; - } - - public function hasAnalysisState() - { - return isset($this->analysis_state); - } - - public function clearAnalysisState() - { - unset($this->analysis_state); - } - - /** - * The analysis state of this access. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisState $var - * @return $this - */ - public function setAnalysisState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisState::class); - $this->analysis_state = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneofAccess() - { - return $this->whichOneof("oneof_access"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Access::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult_Access::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/AccessControlList.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/AccessControlList.php deleted file mode 100644 index 546498886774..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/AccessControlList.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList - */ -class AccessControlList extends \Google\Protobuf\Internal\Message -{ - /** - * The resources that match one of the following conditions: - * - The resource_selector, if it is specified in request; - * - Otherwise, resources reachable from the policy attached resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - */ - private $resources; - /** - * The accesses that match one of the following conditions: - * - The access_selector, if it is specified in request; - * - Otherwise, access specifiers reachable from the policy binding's role. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2; - */ - private $accesses; - /** - * Resource edges of the graph starting from the policy attached - * resource to any descendant resources. The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains the full resource name of a parent resource and - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains the full resource name of a child resource. This field is - * present only if the output_resource_edges option is enabled in request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - */ - private $resource_edges; - /** - * Condition evaluation for this AccessControlList, if there is a condition - * defined in the above IAM policy binding. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - */ - protected $condition_evaluation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Resource>|\Google\Protobuf\Internal\RepeatedField $resources - * The resources that match one of the following conditions: - * - The resource_selector, if it is specified in request; - * - Otherwise, resources reachable from the policy attached resource. - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Access>|\Google\Protobuf\Internal\RepeatedField $accesses - * The accesses that match one of the following conditions: - * - The access_selector, if it is specified in request; - * - Otherwise, access specifiers reachable from the policy binding's role. - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Edge>|\Google\Protobuf\Internal\RepeatedField $resource_edges - * Resource edges of the graph starting from the policy attached - * resource to any descendant resources. The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains the full resource name of a parent resource and - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains the full resource name of a child resource. This field is - * present only if the output_resource_edges option is enabled in request. - * @type \Google\Cloud\Asset\V1\ConditionEvaluation $condition_evaluation - * Condition evaluation for this AccessControlList, if there is a condition - * defined in the above IAM policy binding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The resources that match one of the following conditions: - * - The resource_selector, if it is specified in request; - * - Otherwise, resources reachable from the policy attached resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * The resources that match one of the following conditions: - * - The resource_selector, if it is specified in request; - * - Otherwise, resources reachable from the policy attached resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Resource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Resource::class); - $this->resources = $arr; - - return $this; - } - - /** - * The accesses that match one of the following conditions: - * - The access_selector, if it is specified in request; - * - Otherwise, access specifiers reachable from the policy binding's role. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccesses() - { - return $this->accesses; - } - - /** - * The accesses that match one of the following conditions: - * - The access_selector, if it is specified in request; - * - Otherwise, access specifiers reachable from the policy binding's role. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Access>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccesses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Access::class); - $this->accesses = $arr; - - return $this; - } - - /** - * Resource edges of the graph starting from the policy attached - * resource to any descendant resources. The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains the full resource name of a parent resource and - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains the full resource name of a child resource. This field is - * present only if the output_resource_edges option is enabled in request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceEdges() - { - return $this->resource_edges; - } - - /** - * Resource edges of the graph starting from the policy attached - * resource to any descendant resources. The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains the full resource name of a parent resource and - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains the full resource name of a child resource. This field is - * present only if the output_resource_edges option is enabled in request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Edge>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceEdges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Edge::class); - $this->resource_edges = $arr; - - return $this; - } - - /** - * Condition evaluation for this AccessControlList, if there is a condition - * defined in the above IAM policy binding. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * @return \Google\Cloud\Asset\V1\ConditionEvaluation|null - */ - public function getConditionEvaluation() - { - return $this->condition_evaluation; - } - - public function hasConditionEvaluation() - { - return isset($this->condition_evaluation); - } - - public function clearConditionEvaluation() - { - unset($this->condition_evaluation); - } - - /** - * Condition evaluation for this AccessControlList, if there is a condition - * defined in the above IAM policy binding. - * - * Generated from protobuf field .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * @param \Google\Cloud\Asset\V1\ConditionEvaluation $var - * @return $this - */ - public function setConditionEvaluation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\ConditionEvaluation::class); - $this->condition_evaluation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AccessControlList::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult_AccessControlList::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Edge.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Edge.php deleted file mode 100644 index 6ff59e6adb86..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Edge.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisResult.Edge - */ -class Edge extends \Google\Protobuf\Internal\Message -{ - /** - * The source node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * - * Generated from protobuf field string source_node = 1; - */ - protected $source_node = ''; - /** - * The target node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * - * Generated from protobuf field string target_node = 2; - */ - protected $target_node = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_node - * The source node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * @type string $target_node - * The target node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The source node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * - * Generated from protobuf field string source_node = 1; - * @return string - */ - public function getSourceNode() - { - return $this->source_node; - } - - /** - * The source node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * - * Generated from protobuf field string source_node = 1; - * @param string $var - * @return $this - */ - public function setSourceNode($var) - { - GPBUtil::checkString($var, True); - $this->source_node = $var; - - return $this; - } - - /** - * The target node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * - * Generated from protobuf field string target_node = 2; - * @return string - */ - public function getTargetNode() - { - return $this->target_node; - } - - /** - * The target node of the edge. For example, it could be a full resource - * name for a resource node or an email of an identity. - * - * Generated from protobuf field string target_node = 2; - * @param string $var - * @return $this - */ - public function setTargetNode($var) - { - GPBUtil::checkString($var, True); - $this->target_node = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Edge::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult_Edge::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Identity.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Identity.php deleted file mode 100644 index 7fb81d048292..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Identity.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisResult.Identity - */ -class Identity extends \Google\Protobuf\Internal\Message -{ - /** - * The identity of members, formatted as appear in an - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). For - * example, they might be formatted like the following: - * - user:foo@google.com - * - group:group1@google.com - * - serviceAccount:s1@prj1.iam.gserviceaccount.com - * - projectOwner:some_project_id - * - domain:google.com - * - allUsers - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The analysis state of this identity. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - */ - protected $analysis_state = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The identity of members, formatted as appear in an - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). For - * example, they might be formatted like the following: - * - user:foo@google.com - * - group:group1@google.com - * - serviceAccount:s1@prj1.iam.gserviceaccount.com - * - projectOwner:some_project_id - * - domain:google.com - * - allUsers - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisState $analysis_state - * The analysis state of this identity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The identity of members, formatted as appear in an - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). For - * example, they might be formatted like the following: - * - user:foo@google.com - * - group:group1@google.com - * - serviceAccount:s1@prj1.iam.gserviceaccount.com - * - projectOwner:some_project_id - * - domain:google.com - * - allUsers - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The identity of members, formatted as appear in an - * [IAM policy - * binding](https://cloud.google.com/iam/reference/rest/v1/Binding). For - * example, they might be formatted like the following: - * - user:foo@google.com - * - group:group1@google.com - * - serviceAccount:s1@prj1.iam.gserviceaccount.com - * - projectOwner:some_project_id - * - domain:google.com - * - allUsers - * - * 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; - } - - /** - * The analysis state of this identity. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisState|null - */ - public function getAnalysisState() - { - return $this->analysis_state; - } - - public function hasAnalysisState() - { - return isset($this->analysis_state); - } - - public function clearAnalysisState() - { - unset($this->analysis_state); - } - - /** - * The analysis state of this identity. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisState $var - * @return $this - */ - public function setAnalysisState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisState::class); - $this->analysis_state = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Identity::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult_Identity::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/IdentityList.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/IdentityList.php deleted file mode 100644 index 83ce34566de4..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/IdentityList.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList - */ -class IdentityList extends \Google\Protobuf\Internal\Message -{ - /** - * Only the identities that match one of the following conditions will be - * presented: - * - The identity_selector, if it is specified in request; - * - Otherwise, identities reachable from the policy binding's members. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - */ - private $identities; - /** - * Group identity edges of the graph starting from the binding's - * group members to any node of the - * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. - * The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains a group, such as `group:parent@google.com`. The - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains a member of the group, such as `group:child@google.com` or - * `user:foo@google.com`. This field is present only if the - * output_group_edges option is enabled in request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; - */ - private $group_edges; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Identity>|\Google\Protobuf\Internal\RepeatedField $identities - * Only the identities that match one of the following conditions will be - * presented: - * - The identity_selector, if it is specified in request; - * - Otherwise, identities reachable from the policy binding's members. - * @type array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Edge>|\Google\Protobuf\Internal\RepeatedField $group_edges - * Group identity edges of the graph starting from the binding's - * group members to any node of the - * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. - * The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains a group, such as `group:parent@google.com`. The - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains a member of the group, such as `group:child@google.com` or - * `user:foo@google.com`. This field is present only if the - * output_group_edges option is enabled in request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * Only the identities that match one of the following conditions will be - * presented: - * - The identity_selector, if it is specified in request; - * - Otherwise, identities reachable from the policy binding's members. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdentities() - { - return $this->identities; - } - - /** - * Only the identities that match one of the following conditions will be - * presented: - * - The identity_selector, if it is specified in request; - * - Otherwise, identities reachable from the policy binding's members. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Identity>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdentities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Identity::class); - $this->identities = $arr; - - return $this; - } - - /** - * Group identity edges of the graph starting from the binding's - * group members to any node of the - * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. - * The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains a group, such as `group:parent@google.com`. The - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains a member of the group, such as `group:child@google.com` or - * `user:foo@google.com`. This field is present only if the - * output_group_edges option is enabled in request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroupEdges() - { - return $this->group_edges; - } - - /** - * Group identity edges of the graph starting from the binding's - * group members to any node of the - * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. - * The - * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] - * contains a group, such as `group:parent@google.com`. The - * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] - * contains a member of the group, such as `group:child@google.com` or - * `user:foo@google.com`. This field is present only if the - * output_group_edges option is enabled in request. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; - * @param array<\Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Edge>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroupEdges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult\Edge::class); - $this->group_edges = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IdentityList::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult_IdentityList::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Resource.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Resource.php deleted file mode 100644 index e8995d92953c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisResult/Resource.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisResult.Resource - */ -class Resource extends \Google\Protobuf\Internal\Message -{ - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * - * Generated from protobuf field string full_resource_name = 1; - */ - protected $full_resource_name = ''; - /** - * The analysis state of this resource. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - */ - protected $analysis_state = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource_name - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisState $analysis_state - * The analysis state of this resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * - * Generated from protobuf field string full_resource_name = 1; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The [full resource - * name](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * - * Generated from protobuf field string full_resource_name = 1; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * The analysis state of this resource. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisState|null - */ - public function getAnalysisState() - { - return $this->analysis_state; - } - - public function hasAnalysisState() - { - return isset($this->analysis_state); - } - - public function clearAnalysisState() - { - unset($this->analysis_state); - } - - /** - * The analysis state of this resource. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisState $var - * @return $this - */ - public function setAnalysisState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisState::class); - $this->analysis_state = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Resource::class, \Google\Cloud\Asset\V1\IamPolicyAnalysisResult_Resource::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisState.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisState.php deleted file mode 100644 index 9ebcebbe8a81..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicyAnalysisState.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.asset.v1.IamPolicyAnalysisState - */ -class IamPolicyAnalysisState extends \Google\Protobuf\Internal\Message -{ - /** - * The Google standard error code that best describes the state. - * For example: - * - OK means the analysis on this entity has been successfully finished; - * - PERMISSION_DENIED means an access denied error is encountered; - * - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started - * in time; - * - * Generated from protobuf field .google.rpc.Code code = 1; - */ - protected $code = 0; - /** - * The human-readable description of the cause of failure. - * - * Generated from protobuf field string cause = 2; - */ - protected $cause = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * The Google standard error code that best describes the state. - * For example: - * - OK means the analysis on this entity has been successfully finished; - * - PERMISSION_DENIED means an access denied error is encountered; - * - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started - * in time; - * @type string $cause - * The human-readable description of the cause of failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The Google standard error code that best describes the state. - * For example: - * - OK means the analysis on this entity has been successfully finished; - * - PERMISSION_DENIED means an access denied error is encountered; - * - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started - * in time; - * - * Generated from protobuf field .google.rpc.Code code = 1; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * The Google standard error code that best describes the state. - * For example: - * - OK means the analysis on this entity has been successfully finished; - * - PERMISSION_DENIED means an access denied error is encountered; - * - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started - * in time; - * - * Generated from protobuf field .google.rpc.Code code = 1; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Google\Rpc\Code::class); - $this->code = $var; - - return $this; - } - - /** - * The human-readable description of the cause of failure. - * - * Generated from protobuf field string cause = 2; - * @return string - */ - public function getCause() - { - return $this->cause; - } - - /** - * The human-readable description of the cause of failure. - * - * Generated from protobuf field string cause = 2; - * @param string $var - * @return $this - */ - public function setCause($var) - { - GPBUtil::checkString($var, True); - $this->cause = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult.php deleted file mode 100644 index 2d9e36b7fb6a..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult.php +++ /dev/null @@ -1,451 +0,0 @@ -google.cloud.asset.v1.IamPolicySearchResult - */ -class IamPolicySearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * The full resource name of the resource associated with this IAM policy. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `resource`: - * * use a field query. Example: `resource:organizations/123` - * - * Generated from protobuf field string resource = 1; - */ - protected $resource = ''; - /** - * The type of the resource associated with this IAM policy. Example: - * `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * specify the `asset_types` field in your search request. - * - * Generated from protobuf field string asset_type = 5; - */ - protected $asset_type = ''; - /** - * The project that the associated Google Cloud resource belongs to, in the - * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource - * (like VM instance, Cloud Storage bucket), the project field will indicate - * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. - * To search against the `project`: - * * specify the `scope` field as this project in your search request. - * - * Generated from protobuf field string project = 2; - */ - protected $project = ''; - /** - * The folder(s) that the IAM policy belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs to one or more folders. - * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. - * - * Generated from protobuf field repeated string folders = 6; - */ - private $folders; - /** - * The organization that the IAM policy belongs to, in the form - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs to an organization. - * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. - * - * Generated from protobuf field string organization = 7; - */ - protected $organization = ''; - /** - * The IAM policy directly set on the given resource. Note that the original - * IAM policy can contain multiple bindings. This only contains the bindings - * that match the given query. For queries that don't contain a constrain on - * policies (e.g., an empty query), this contains all the bindings. - * To search against the `policy` bindings: - * * use a field query: - * - query by the policy contained members. Example: - * `policy:amy@gmail.com` - * - query by the policy contained roles. Example: - * `policy:roles/compute.admin` - * - query by the policy contained roles' included permissions. Example: - * `policy.role.permissions:compute.instances.create` - * - * Generated from protobuf field .google.iam.v1.Policy policy = 3; - */ - protected $policy = null; - /** - * Explanation about the IAM policy search result. It contains additional - * information to explain why the search result matches the query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - */ - protected $explanation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * The full resource name of the resource associated with this IAM policy. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `resource`: - * * use a field query. Example: `resource:organizations/123` - * @type string $asset_type - * The type of the resource associated with this IAM policy. Example: - * `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * specify the `asset_types` field in your search request. - * @type string $project - * The project that the associated Google Cloud resource belongs to, in the - * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource - * (like VM instance, Cloud Storage bucket), the project field will indicate - * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. - * To search against the `project`: - * * specify the `scope` field as this project in your search request. - * @type array|\Google\Protobuf\Internal\RepeatedField $folders - * The folder(s) that the IAM policy belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs to one or more folders. - * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. - * @type string $organization - * The organization that the IAM policy belongs to, in the form - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs to an organization. - * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. - * @type \Google\Cloud\Iam\V1\Policy $policy - * The IAM policy directly set on the given resource. Note that the original - * IAM policy can contain multiple bindings. This only contains the bindings - * that match the given query. For queries that don't contain a constrain on - * policies (e.g., an empty query), this contains all the bindings. - * To search against the `policy` bindings: - * * use a field query: - * - query by the policy contained members. Example: - * `policy:amy@gmail.com` - * - query by the policy contained roles. Example: - * `policy:roles/compute.admin` - * - query by the policy contained roles' included permissions. Example: - * `policy.role.permissions:compute.instances.create` - * @type \Google\Cloud\Asset\V1\IamPolicySearchResult\Explanation $explanation - * Explanation about the IAM policy search result. It contains additional - * information to explain why the search result matches the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The full resource name of the resource associated with this IAM policy. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `resource`: - * * use a field query. Example: `resource:organizations/123` - * - * Generated from protobuf field string resource = 1; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * The full resource name of the resource associated with this IAM policy. - * Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `resource`: - * * use a field query. Example: `resource:organizations/123` - * - * 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 the resource associated with this IAM policy. Example: - * `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * specify the `asset_types` field in your search request. - * - * Generated from protobuf field string asset_type = 5; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The type of the resource associated with this IAM policy. Example: - * `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * specify the `asset_types` field in your search request. - * - * Generated from protobuf field string asset_type = 5; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - - /** - * The project that the associated Google Cloud resource belongs to, in the - * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource - * (like VM instance, Cloud Storage bucket), the project field will indicate - * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. - * To search against the `project`: - * * specify the `scope` field as this project in your search request. - * - * Generated from protobuf field string project = 2; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The project that the associated Google Cloud resource belongs to, in the - * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource - * (like VM instance, Cloud Storage bucket), the project field will indicate - * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. - * To search against the `project`: - * * specify the `scope` field as this project in your search request. - * - * Generated from protobuf field string project = 2; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * The folder(s) that the IAM policy belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs to one or more folders. - * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. - * - * Generated from protobuf field repeated string folders = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFolders() - { - return $this->folders; - } - - /** - * The folder(s) that the IAM policy belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the IAM policy - * belongs to one or more folders. - * To search against `folders`: - * * use a field query. Example: `folders:(123 OR 456)` - * * use a free text query. Example: `123` - * * specify the `scope` field as this folder in your search request. - * - * Generated from protobuf field repeated string folders = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->folders = $arr; - - return $this; - } - - /** - * The organization that the IAM policy belongs to, in the form - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs to an organization. - * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. - * - * Generated from protobuf field string organization = 7; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * The organization that the IAM policy belongs to, in the form - * of organizations/{ORGANIZATION_NUMBER}. This field is available when the - * IAM policy belongs to an organization. - * To search against `organization`: - * * use a field query. Example: `organization:123` - * * use a free text query. Example: `123` - * * specify the `scope` field as this organization in your search request. - * - * Generated from protobuf field string organization = 7; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - - /** - * The IAM policy directly set on the given resource. Note that the original - * IAM policy can contain multiple bindings. This only contains the bindings - * that match the given query. For queries that don't contain a constrain on - * policies (e.g., an empty query), this contains all the bindings. - * To search against the `policy` bindings: - * * use a field query: - * - query by the policy contained members. Example: - * `policy:amy@gmail.com` - * - query by the policy contained roles. Example: - * `policy:roles/compute.admin` - * - query by the policy contained roles' included permissions. Example: - * `policy.role.permissions:compute.instances.create` - * - * Generated from protobuf field .google.iam.v1.Policy policy = 3; - * @return \Google\Cloud\Iam\V1\Policy|null - */ - public function getPolicy() - { - return $this->policy; - } - - public function hasPolicy() - { - return isset($this->policy); - } - - public function clearPolicy() - { - unset($this->policy); - } - - /** - * The IAM policy directly set on the given resource. Note that the original - * IAM policy can contain multiple bindings. This only contains the bindings - * that match the given query. For queries that don't contain a constrain on - * policies (e.g., an empty query), this contains all the bindings. - * To search against the `policy` bindings: - * * use a field query: - * - query by the policy contained members. Example: - * `policy:amy@gmail.com` - * - query by the policy contained roles. Example: - * `policy:roles/compute.admin` - * - query by the policy contained roles' included permissions. Example: - * `policy.role.permissions:compute.instances.create` - * - * Generated from protobuf field .google.iam.v1.Policy policy = 3; - * @param \Google\Cloud\Iam\V1\Policy $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); - $this->policy = $var; - - return $this; - } - - /** - * Explanation about the IAM policy search result. It contains additional - * information to explain why the search result matches the query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * @return \Google\Cloud\Asset\V1\IamPolicySearchResult\Explanation|null - */ - public function getExplanation() - { - return $this->explanation; - } - - public function hasExplanation() - { - return isset($this->explanation); - } - - public function clearExplanation() - { - unset($this->explanation); - } - - /** - * Explanation about the IAM policy search result. It contains additional - * information to explain why the search result matches the query. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * @param \Google\Cloud\Asset\V1\IamPolicySearchResult\Explanation $var - * @return $this - */ - public function setExplanation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicySearchResult\Explanation::class); - $this->explanation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult/Explanation.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult/Explanation.php deleted file mode 100644 index ab50a6e86090..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult/Explanation.php +++ /dev/null @@ -1,94 +0,0 @@ -google.cloud.asset.v1.IamPolicySearchResult.Explanation - */ -class Explanation extends \Google\Protobuf\Internal\Message -{ - /** - * The map from roles to their included permissions that match the - * permission query (i.e., a query containing `policy.role.permissions:`). - * Example: if query `policy.role.permissions:compute.disk.get` - * matches a policy binding that contains owner role, the - * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The - * roles can also be found in the returned `policy` bindings. Note that the - * map is populated only for requests with permission queries. - * - * Generated from protobuf field map matched_permissions = 1; - */ - private $matched_permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $matched_permissions - * The map from roles to their included permissions that match the - * permission query (i.e., a query containing `policy.role.permissions:`). - * Example: if query `policy.role.permissions:compute.disk.get` - * matches a policy binding that contains owner role, the - * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The - * roles can also be found in the returned `policy` bindings. Note that the - * map is populated only for requests with permission queries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The map from roles to their included permissions that match the - * permission query (i.e., a query containing `policy.role.permissions:`). - * Example: if query `policy.role.permissions:compute.disk.get` - * matches a policy binding that contains owner role, the - * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The - * roles can also be found in the returned `policy` bindings. Note that the - * map is populated only for requests with permission queries. - * - * Generated from protobuf field map matched_permissions = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMatchedPermissions() - { - return $this->matched_permissions; - } - - /** - * The map from roles to their included permissions that match the - * permission query (i.e., a query containing `policy.role.permissions:`). - * Example: if query `policy.role.permissions:compute.disk.get` - * matches a policy binding that contains owner role, the - * matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The - * roles can also be found in the returned `policy` bindings. Note that the - * map is populated only for requests with permission queries. - * - * Generated from protobuf field map matched_permissions = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMatchedPermissions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicySearchResult\Explanation\Permissions::class); - $this->matched_permissions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Explanation::class, \Google\Cloud\Asset\V1\IamPolicySearchResult_Explanation::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult/Explanation/Permissions.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult/Explanation/Permissions.php deleted file mode 100644 index 7524b94e63b5..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/IamPolicySearchResult/Explanation/Permissions.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - */ -class Permissions extends \Google\Protobuf\Internal\Message -{ - /** - * A list of permissions. A sample permission string: `compute.disk.get`. - * - * Generated from protobuf field repeated string permissions = 1; - */ - private $permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $permissions - * A list of permissions. A sample permission string: `compute.disk.get`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * A list of permissions. A sample permission string: `compute.disk.get`. - * - * Generated from protobuf field repeated string permissions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPermissions() - { - return $this->permissions; - } - - /** - * A list of permissions. A sample permission string: `compute.disk.get`. - * - * Generated from protobuf field repeated string permissions = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPermissions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->permissions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Permissions::class, \Google\Cloud\Asset\V1\IamPolicySearchResult_Explanation_Permissions::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListAssetsRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListAssetsRequest.php deleted file mode 100644 index 8209af3d0055..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListAssetsRequest.php +++ /dev/null @@ -1,454 +0,0 @@ -google.cloud.asset.v1.ListAssetsRequest - */ -class ListAssetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the organization, folder, or project the assets belong - * to. Format: "organizations/[organization-number]" (such as - * "organizations/123"), "projects/[project-id]" (such as - * "projects/my-project-id"), "projects/[project-number]" (such as - * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 2; - */ - protected $read_time = null; - /** - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expression is also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * - * Generated from protobuf field repeated string asset_types = 3; - */ - private $asset_types; - /** - * Asset content type. If not specified, no content but the asset name will - * be returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - */ - protected $content_type = 0; - /** - * The maximum number of assets to be returned in a single response. Default - * is 100, minimum is 1, and maximum is 1000. - * - * Generated from protobuf field int32 page_size = 5; - */ - protected $page_size = 0; - /** - * The `next_page_token` returned from the previous `ListAssetsResponse`, or - * unspecified for the first `ListAssetsRequest`. It is a continuation of a - * prior `ListAssets` call, and the API should return the next page of assets. - * - * Generated from protobuf field string page_token = 6; - */ - protected $page_token = ''; - /** - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 7; - */ - private $relationship_types; - - /** - * @param string $parent Required. Name of the organization, folder, or project the assets belong - * to. Format: "organizations/[organization-number]" (such as - * "organizations/123"), "projects/[project-id]" (such as - * "projects/my-project-id"), "projects/[project-number]" (such as - * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345"). - * - * @return \Google\Cloud\Asset\V1\ListAssetsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Name of the organization, folder, or project the assets belong - * to. Format: "organizations/[organization-number]" (such as - * "organizations/123"), "projects/[project-id]" (such as - * "projects/my-project-id"), "projects/[project-number]" (such as - * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345"). - * @type \Google\Protobuf\Timestamp $read_time - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * @type array|\Google\Protobuf\Internal\RepeatedField $asset_types - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expression is also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * @type int $content_type - * Asset content type. If not specified, no content but the asset name will - * be returned. - * @type int $page_size - * The maximum number of assets to be returned in a single response. Default - * is 100, minimum is 1, and maximum is 1000. - * @type string $page_token - * The `next_page_token` returned from the previous `ListAssetsResponse`, or - * unspecified for the first `ListAssetsRequest`. It is a continuation of a - * prior `ListAssets` call, and the API should return the next page of assets. - * @type array|\Google\Protobuf\Internal\RepeatedField $relationship_types - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the organization, folder, or project the assets belong - * to. Format: "organizations/[organization-number]" (such as - * "organizations/123"), "projects/[project-id]" (such as - * "projects/my-project-id"), "projects/[project-number]" (such as - * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345"). - * - * 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. Name of the organization, folder, or project the assets belong - * to. Format: "organizations/[organization-number]" (such as - * "organizations/123"), "projects/[project-id]" (such as - * "projects/my-project-id"), "projects/[project-number]" (such as - * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345"). - * - * 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; - } - - /** - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * Timestamp to take an asset snapshot. This can only be set to a timestamp - * between the current time and the current time minus 35 days (inclusive). - * If not specified, the current time will be used. Due to delays in resource - * data collection and indexing, there is a volatile window during which - * running the same query may get different results. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - - /** - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expression is also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * - * Generated from protobuf field repeated string asset_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssetTypes() - { - return $this->asset_types; - } - - /** - * A list of asset types to take a snapshot for. For example: - * "compute.googleapis.com/Disk". - * Regular expression is also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * If specified, only matching assets will be returned, otherwise, it will - * snapshot all asset types. See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types. - * - * Generated from protobuf field repeated string asset_types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asset_types = $arr; - - return $this; - } - - /** - * Asset content type. If not specified, no content but the asset name will - * be returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - * @return int - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * Asset content type. If not specified, no content but the asset name will - * be returned. - * - * Generated from protobuf field .google.cloud.asset.v1.ContentType content_type = 4; - * @param int $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\ContentType::class); - $this->content_type = $var; - - return $this; - } - - /** - * The maximum number of assets to be returned in a single response. Default - * is 100, minimum is 1, and maximum is 1000. - * - * Generated from protobuf field int32 page_size = 5; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of assets to be returned in a single response. Default - * is 100, minimum is 1, and maximum is 1000. - * - * Generated from protobuf field int32 page_size = 5; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The `next_page_token` returned from the previous `ListAssetsResponse`, or - * unspecified for the first `ListAssetsRequest`. It is a continuation of a - * prior `ListAssets` call, and the API should return the next page of assets. - * - * Generated from protobuf field string page_token = 6; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The `next_page_token` returned from the previous `ListAssetsResponse`, or - * unspecified for the first `ListAssetsRequest`. It is a continuation of a - * prior `ListAssets` call, and the API should return the next page of assets. - * - * Generated from protobuf field string page_token = 6; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelationshipTypes() - { - return $this->relationship_types; - } - - /** - * A list of relationship types to output, for example: - * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if - * content_type=RELATIONSHIP. - * * If specified: - * it snapshots specified relationships. It returns an error if - * any of the [relationship_types] doesn't belong to the supported - * relationship types of the [asset_types] or if any of the [asset_types] - * doesn't belong to the source types of the [relationship_types]. - * * Otherwise: - * it snapshots the supported relationships for all [asset_types] or returns - * an error if any of the [asset_types] has no relationship support. - * An unspecified asset types field means all supported asset_types. - * See [Introduction to Cloud Asset - * Inventory](https://cloud.google.com/asset-inventory/docs/overview) - * for all supported asset types and relationship types. - * - * Generated from protobuf field repeated string relationship_types = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelationshipTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->relationship_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListAssetsResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListAssetsResponse.php deleted file mode 100644 index 1d4aa8a72052..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListAssetsResponse.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.asset.v1.ListAssetsResponse - */ -class ListAssetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Time the snapshot was taken. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - */ - protected $read_time = null; - /** - * Assets. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Asset assets = 2; - */ - private $assets; - /** - * Token to retrieve the next page of results. It expires 72 hours after the - * page token for the first page is generated. Set to empty if there are no - * remaining results. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $read_time - * Time the snapshot was taken. - * @type array<\Google\Cloud\Asset\V1\Asset>|\Google\Protobuf\Internal\RepeatedField $assets - * Assets. - * @type string $next_page_token - * Token to retrieve the next page of results. It expires 72 hours after the - * page token for the first page is generated. Set to empty if there are no - * remaining results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Time the snapshot was taken. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * Time the snapshot was taken. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - - /** - * Assets. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Asset assets = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssets() - { - return $this->assets; - } - - /** - * Assets. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Asset assets = 2; - * @param array<\Google\Cloud\Asset\V1\Asset>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\Asset::class); - $this->assets = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results. It expires 72 hours after the - * page token for the first page is generated. Set to empty if there are no - * remaining results. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results. It expires 72 hours after the - * page token for the first page is generated. Set to empty if there are no - * remaining results. - * - * Generated from protobuf field string next_page_token = 3; - * @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/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListFeedsRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListFeedsRequest.php deleted file mode 100644 index 65a48c3d0ae5..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListFeedsRequest.php +++ /dev/null @@ -1,90 +0,0 @@ -google.cloud.asset.v1.ListFeedsRequest - */ -class ListFeedsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent project/folder/organization whose feeds are to be - * listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - - /** - * @param string $parent Required. The parent project/folder/organization whose feeds are to be - * listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * - * @return \Google\Cloud\Asset\V1\ListFeedsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent project/folder/organization whose feeds are to be - * listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent project/folder/organization whose feeds are to be - * listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent project/folder/organization whose feeds are to be - * listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListFeedsResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListFeedsResponse.php deleted file mode 100644 index 16092aec80d7..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListFeedsResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.asset.v1.ListFeedsResponse - */ -class ListFeedsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of feeds. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Feed feeds = 1; - */ - private $feeds; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\Feed>|\Google\Protobuf\Internal\RepeatedField $feeds - * A list of feeds. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * A list of feeds. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Feed feeds = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFeeds() - { - return $this->feeds; - } - - /** - * A list of feeds. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Feed feeds = 1; - * @param array<\Google\Cloud\Asset\V1\Feed>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFeeds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\Feed::class); - $this->feeds = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListSavedQueriesRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListSavedQueriesRequest.php deleted file mode 100644 index 3e3581b026c6..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListSavedQueriesRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.asset.v1.ListSavedQueriesRequest - */ -class ListSavedQueriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent project/folder/organization whose savedQueries are to - * be listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The expression to filter resources. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. The expression may also contain regular expressions. - * See https://google.aip.dev/160 for more information on the grammar. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of saved queries to return per page. The - * service may return fewer than this value. If unspecified, at most 50 will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListSavedQueries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSavedQueries` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent project/folder/organization whose savedQueries are to - * be listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). Please see - * {@see AssetServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\Asset\V1\ListSavedQueriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent project/folder/organization whose savedQueries are to - * be listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * @type string $filter - * Optional. The expression to filter resources. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. The expression may also contain regular expressions. - * See https://google.aip.dev/160 for more information on the grammar. - * @type int $page_size - * Optional. The maximum number of saved queries to return per page. The - * service may return fewer than this value. If unspecified, at most 50 will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListSavedQueries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSavedQueries` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent project/folder/organization whose savedQueries are to - * be listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * - * 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 project/folder/organization whose savedQueries are to - * be listed. It can only be using project/folder/organization number (such as - * "folders/12345")", or a project ID (such as "projects/my-project-id"). - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The expression to filter resources. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. The expression may also contain regular expressions. - * See https://google.aip.dev/160 for more information on the grammar. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The expression to filter resources. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. The expression may also contain regular expressions. - * See https://google.aip.dev/160 for more information on the grammar. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. The maximum number of saved queries to return per page. The - * service may return fewer than this value. If unspecified, at most 50 will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of saved queries to return per page. The - * service may return fewer than this value. If unspecified, at most 50 will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListSavedQueries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSavedQueries` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListSavedQueries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSavedQueries` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListSavedQueriesResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListSavedQueriesResponse.php deleted file mode 100644 index 9ddbb17f2f2d..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ListSavedQueriesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.asset.v1.ListSavedQueriesResponse - */ -class ListSavedQueriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of savedQueries. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; - */ - private $saved_queries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\SavedQuery>|\Google\Protobuf\Internal\RepeatedField $saved_queries - * A list of savedQueries. - * @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\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * A list of savedQueries. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSavedQueries() - { - return $this->saved_queries; - } - - /** - * A list of savedQueries. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; - * @param array<\Google\Cloud\Asset\V1\SavedQuery>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSavedQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\SavedQuery::class); - $this->saved_queries = $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/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveAnalysis.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveAnalysis.php deleted file mode 100644 index 8661760af4e3..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveAnalysis.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.asset.v1.MoveAnalysis - */ -class MoveAnalysis extends \Google\Protobuf\Internal\Message -{ - /** - * The user friendly display name of the analysis. E.g. IAM, organization - * policy etc. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * The user friendly display name of the analysis. E.g. IAM, organization - * policy etc. - * @type \Google\Cloud\Asset\V1\MoveAnalysisResult $analysis - * Analysis result of moving the target resource. - * @type \Google\Rpc\Status $error - * Description of error encountered when performing the analysis. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The user friendly display name of the analysis. E.g. IAM, organization - * policy etc. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The user friendly display name of the analysis. E.g. IAM, organization - * policy etc. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Analysis result of moving the target resource. - * - * Generated from protobuf field .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * @return \Google\Cloud\Asset\V1\MoveAnalysisResult|null - */ - public function getAnalysis() - { - return $this->readOneof(2); - } - - public function hasAnalysis() - { - return $this->hasOneof(2); - } - - /** - * Analysis result of moving the target resource. - * - * Generated from protobuf field .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * @param \Google\Cloud\Asset\V1\MoveAnalysisResult $var - * @return $this - */ - public function setAnalysis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\MoveAnalysisResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Description of error encountered when performing the analysis. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->readOneof(3); - } - - public function hasError() - { - return $this->hasOneof(3); - } - - /** - * Description of error encountered when performing the analysis. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveAnalysisResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveAnalysisResult.php deleted file mode 100644 index 621242eaf526..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveAnalysisResult.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.asset.v1.MoveAnalysisResult - */ -class MoveAnalysisResult extends \Google\Protobuf\Internal\Message -{ - /** - * Blocking information that would prevent the target resource from moving - * to the specified destination at runtime. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveImpact blockers = 1; - */ - private $blockers; - /** - * Warning information indicating that moving the target resource to the - * specified destination might be unsafe. This can include important policy - * information and configuration changes, but will not block moves at runtime. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveImpact warnings = 2; - */ - private $warnings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $blockers - * Blocking information that would prevent the target resource from moving - * to the specified destination at runtime. - * @type array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $warnings - * Warning information indicating that moving the target resource to the - * specified destination might be unsafe. This can include important policy - * information and configuration changes, but will not block moves at runtime. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Blocking information that would prevent the target resource from moving - * to the specified destination at runtime. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveImpact blockers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlockers() - { - return $this->blockers; - } - - /** - * Blocking information that would prevent the target resource from moving - * to the specified destination at runtime. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveImpact blockers = 1; - * @param array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlockers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\MoveImpact::class); - $this->blockers = $arr; - - return $this; - } - - /** - * Warning information indicating that moving the target resource to the - * specified destination might be unsafe. This can include important policy - * information and configuration changes, but will not block moves at runtime. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveImpact warnings = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWarnings() - { - return $this->warnings; - } - - /** - * Warning information indicating that moving the target resource to the - * specified destination might be unsafe. This can include important policy - * information and configuration changes, but will not block moves at runtime. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.MoveImpact warnings = 2; - * @param array<\Google\Cloud\Asset\V1\MoveImpact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWarnings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\MoveImpact::class); - $this->warnings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveImpact.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveImpact.php deleted file mode 100644 index 6174ec1638ba..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/MoveImpact.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.asset.v1.MoveImpact - */ -class MoveImpact extends \Google\Protobuf\Internal\Message -{ - /** - * User friendly impact detail in a free form message. - * - * Generated from protobuf field string detail = 1; - */ - protected $detail = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $detail - * User friendly impact detail in a free form message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * User friendly impact detail in a free form message. - * - * Generated from protobuf field string detail = 1; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * User friendly impact detail in a free form message. - * - * Generated from protobuf field string detail = 1; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/OutputConfig.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/OutputConfig.php deleted file mode 100644 index 755ecf4df045..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/OutputConfig.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.asset.v1.OutputConfig - */ -class OutputConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\GcsDestination $gcs_destination - * Destination on Cloud Storage. - * @type \Google\Cloud\Asset\V1\BigQueryDestination $bigquery_destination - * Destination on BigQuery. The output table stores the fields in asset - * Protobuf as columns in BigQuery. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Destination on Cloud Storage. - * - * Generated from protobuf field .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * @return \Google\Cloud\Asset\V1\GcsDestination|null - */ - public function getGcsDestination() - { - return $this->readOneof(1); - } - - public function hasGcsDestination() - { - return $this->hasOneof(1); - } - - /** - * Destination on Cloud Storage. - * - * Generated from protobuf field .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * @param \Google\Cloud\Asset\V1\GcsDestination $var - * @return $this - */ - public function setGcsDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\GcsDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Destination on BigQuery. The output table stores the fields in asset - * Protobuf as columns in BigQuery. - * - * Generated from protobuf field .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * @return \Google\Cloud\Asset\V1\BigQueryDestination|null - */ - public function getBigqueryDestination() - { - return $this->readOneof(2); - } - - public function hasBigqueryDestination() - { - return $this->hasOneof(2); - } - - /** - * Destination on BigQuery. The output table stores the fields in asset - * Protobuf as columns in BigQuery. - * - * Generated from protobuf field .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * @param \Google\Cloud\Asset\V1\BigQueryDestination $var - * @return $this - */ - public function setBigqueryDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\BigQueryDestination::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/OutputResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/OutputResult.php deleted file mode 100644 index c81bfd357244..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/OutputResult.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.asset.v1.OutputResult - */ -class OutputResult extends \Google\Protobuf\Internal\Message -{ - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\GcsOutputResult $gcs_result - * Export result on Cloud Storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Export result on Cloud Storage. - * - * Generated from protobuf field .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * @return \Google\Cloud\Asset\V1\GcsOutputResult|null - */ - public function getGcsResult() - { - return $this->readOneof(1); - } - - public function hasGcsResult() - { - return $this->hasOneof(1); - } - - /** - * Export result on Cloud Storage. - * - * Generated from protobuf field .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * @param \Google\Cloud\Asset\V1\GcsOutputResult $var - * @return $this - */ - public function setGcsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\GcsOutputResult::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PartitionSpec.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PartitionSpec.php deleted file mode 100644 index e46ad84b2576..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PartitionSpec.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.asset.v1.PartitionSpec - */ -class PartitionSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The partition key for BigQuery partitioned table. - * - * Generated from protobuf field .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - */ - protected $partition_key = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $partition_key - * The partition key for BigQuery partitioned table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The partition key for BigQuery partitioned table. - * - * Generated from protobuf field .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * @return int - */ - public function getPartitionKey() - { - return $this->partition_key; - } - - /** - * The partition key for BigQuery partitioned table. - * - * Generated from protobuf field .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * @param int $var - * @return $this - */ - public function setPartitionKey($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\PartitionSpec\PartitionKey::class); - $this->partition_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php deleted file mode 100644 index d7dd49a6d7e3..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PartitionSpec/PartitionKey.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.asset.v1.PartitionSpec.PartitionKey - */ -class PartitionKey -{ - /** - * Unspecified partition key. If used, it means using non-partitioned table. - * - * Generated from protobuf enum PARTITION_KEY_UNSPECIFIED = 0; - */ - const PARTITION_KEY_UNSPECIFIED = 0; - /** - * The time when the snapshot is taken. If specified as partition key, the - * result table(s) is partitoned by the additional timestamp column, - * readTime. If [read_time] in ExportAssetsRequest is specified, the - * readTime column's value will be the same as it. Otherwise, its value will - * be the current time that is used to take the snapshot. - * - * Generated from protobuf enum READ_TIME = 1; - */ - const READ_TIME = 1; - /** - * The time when the request is received and started to be processed. If - * specified as partition key, the result table(s) is partitoned by the - * requestTime column, an additional timestamp column representing when the - * request was received. - * - * Generated from protobuf enum REQUEST_TIME = 2; - */ - const REQUEST_TIME = 2; - - private static $valueToName = [ - self::PARTITION_KEY_UNSPECIFIED => 'PARTITION_KEY_UNSPECIFIED', - self::READ_TIME => 'READ_TIME', - self::REQUEST_TIME => 'REQUEST_TIME', - ]; - - 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(PartitionKey::class, \Google\Cloud\Asset\V1\PartitionSpec_PartitionKey::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PubsubDestination.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PubsubDestination.php deleted file mode 100644 index a84a9c172138..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/PubsubDestination.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.asset.v1.PubsubDestination - */ -class PubsubDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the Pub/Sub topic to publish to. - * Example: `projects/PROJECT_ID/topics/TOPIC_ID`. - * - * Generated from protobuf field string topic = 1; - */ - protected $topic = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * The name of the Pub/Sub topic to publish to. - * Example: `projects/PROJECT_ID/topics/TOPIC_ID`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The name of the Pub/Sub topic to publish to. - * Example: `projects/PROJECT_ID/topics/TOPIC_ID`. - * - * Generated from protobuf field string topic = 1; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * The name of the Pub/Sub topic to publish to. - * Example: `projects/PROJECT_ID/topics/TOPIC_ID`. - * - * Generated from protobuf field string topic = 1; - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->topic = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsOutputConfig.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsOutputConfig.php deleted file mode 100644 index 09c39ffdb0fb..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsOutputConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.asset.v1.QueryAssetsOutputConfig - */ -class QueryAssetsOutputConfig extends \Google\Protobuf\Internal\Message -{ - /** - * BigQuery destination where the query results will be saved. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - */ - protected $bigquery_destination = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\QueryAssetsOutputConfig\BigQueryDestination $bigquery_destination - * BigQuery destination where the query results will be saved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery destination where the query results will be saved. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * @return \Google\Cloud\Asset\V1\QueryAssetsOutputConfig\BigQueryDestination|null - */ - public function getBigqueryDestination() - { - return $this->bigquery_destination; - } - - public function hasBigqueryDestination() - { - return isset($this->bigquery_destination); - } - - public function clearBigqueryDestination() - { - unset($this->bigquery_destination); - } - - /** - * BigQuery destination where the query results will be saved. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * @param \Google\Cloud\Asset\V1\QueryAssetsOutputConfig\BigQueryDestination $var - * @return $this - */ - public function setBigqueryDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\QueryAssetsOutputConfig\BigQueryDestination::class); - $this->bigquery_destination = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsOutputConfig/BigQueryDestination.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsOutputConfig/BigQueryDestination.php deleted file mode 100644 index 0a95b67a1e4a..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsOutputConfig/BigQueryDestination.php +++ /dev/null @@ -1,182 +0,0 @@ -google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - */ -class BigQueryDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The BigQuery dataset where the query results will be saved. It - * has the format of "projects/{projectId}/datasets/{datasetId}". - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset = ''; - /** - * Required. The BigQuery table where the query results will be saved. If - * this table does not exist, a new table with the given name will be - * created. - * - * Generated from protobuf field string table = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = ''; - /** - * Specifies the action that occurs if the destination table or partition - * already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, a - * 'duplicate' error is returned in the job result. - * The default value is WRITE_EMPTY. - * - * Generated from protobuf field string write_disposition = 3; - */ - protected $write_disposition = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset - * Required. The BigQuery dataset where the query results will be saved. It - * has the format of "projects/{projectId}/datasets/{datasetId}". - * @type string $table - * Required. The BigQuery table where the query results will be saved. If - * this table does not exist, a new table with the given name will be - * created. - * @type string $write_disposition - * Specifies the action that occurs if the destination table or partition - * already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, a - * 'duplicate' error is returned in the job result. - * The default value is WRITE_EMPTY. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The BigQuery dataset where the query results will be saved. It - * has the format of "projects/{projectId}/datasets/{datasetId}". - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataset() - { - return $this->dataset; - } - - /** - * Required. The BigQuery dataset where the query results will be saved. It - * has the format of "projects/{projectId}/datasets/{datasetId}". - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkString($var, True); - $this->dataset = $var; - - return $this; - } - - /** - * Required. The BigQuery table where the query results will be saved. If - * this table does not exist, a new table with the given name will be - * created. - * - * Generated from protobuf field string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTable() - { - return $this->table; - } - - /** - * Required. The BigQuery table where the query results will be saved. If - * this table does not exist, a new table with the given name will be - * created. - * - * Generated from protobuf field string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkString($var, True); - $this->table = $var; - - return $this; - } - - /** - * Specifies the action that occurs if the destination table or partition - * already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, a - * 'duplicate' error is returned in the job result. - * The default value is WRITE_EMPTY. - * - * Generated from protobuf field string write_disposition = 3; - * @return string - */ - public function getWriteDisposition() - { - return $this->write_disposition; - } - - /** - * Specifies the action that occurs if the destination table or partition - * already exists. The following values are supported: - * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery - * overwrites the entire table or all the partitions data. - * * WRITE_APPEND: If the table or partition already exists, BigQuery - * appends the data to the table or the latest partition. - * * WRITE_EMPTY: If the table already exists and contains data, a - * 'duplicate' error is returned in the job result. - * The default value is WRITE_EMPTY. - * - * Generated from protobuf field string write_disposition = 3; - * @param string $var - * @return $this - */ - public function setWriteDisposition($var) - { - GPBUtil::checkString($var, True); - $this->write_disposition = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BigQueryDestination::class, \Google\Cloud\Asset\V1\QueryAssetsOutputConfig_BigQueryDestination::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsRequest.php deleted file mode 100644 index 0dbf1309b55e..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsRequest.php +++ /dev/null @@ -1,488 +0,0 @@ -google.cloud.asset.v1.QueryAssetsRequest - */ -class QueryAssetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/123"). - * Only assets belonging to the `parent` will be returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of rows to return in the results. Responses - * are limited to 10 MB and 1000 rows. - * By default, the maximum row count is 1000. When the byte or row count limit - * is reached, the rest of the query results will be paginated. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token received from previous `QueryAssets`. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Specifies the maximum amount of time that the client is willing - * to wait for the query to complete. By default, this limit is 5 min for the - * first query, and 1 minute for the following queries. If the query is - * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise - * false. - * Like BigQuery [jobs.query - * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest) - * The call is not guaranteed to wait for the specified timeout; it typically - * returns after around 200 seconds (200,000 milliseconds), even if the query - * is not complete. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $timeout = null; - /** - * Optional. Destination where the query results will be saved. - * When this field is specified, the query results won't be saved in the - * [QueryAssetsResponse.query_result]. Instead - * [QueryAssetsResponse.output_config] will be set. - * Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used - * to check the status of the query job when passed to a following - * [QueryAssets] API call. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $output_config = null; - protected $query; - protected $time; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/123"). - * Only assets belonging to the `parent` will be returned. - * @type string $statement - * Optional. A SQL statement that's compatible with [BigQuery - * SQL](https://cloud.google.com/bigquery/docs/introduction-sql). - * @type string $job_reference - * Optional. Reference to the query job, which is from the - * `QueryAssetsResponse` of previous `QueryAssets` call. - * @type int $page_size - * Optional. The maximum number of rows to return in the results. Responses - * are limited to 10 MB and 1000 rows. - * By default, the maximum row count is 1000. When the byte or row count limit - * is reached, the rest of the query results will be paginated. - * The field will be ignored when [output_config] is specified. - * @type string $page_token - * Optional. A page token received from previous `QueryAssets`. - * The field will be ignored when [output_config] is specified. - * @type \Google\Protobuf\Duration $timeout - * Optional. Specifies the maximum amount of time that the client is willing - * to wait for the query to complete. By default, this limit is 5 min for the - * first query, and 1 minute for the following queries. If the query is - * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise - * false. - * Like BigQuery [jobs.query - * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest) - * The call is not guaranteed to wait for the specified timeout; it typically - * returns after around 200 seconds (200,000 milliseconds), even if the query - * is not complete. - * The field will be ignored when [output_config] is specified. - * @type \Google\Cloud\Asset\V1\TimeWindow $read_time_window - * Optional. [start_time] is required. [start_time] must be less than - * [end_time] Defaults [end_time] to now if [start_time] is set and - * [end_time] isn't. Maximum permitted time range is 7 days. - * @type \Google\Protobuf\Timestamp $read_time - * Optional. Queries cloud assets as they appeared at the specified point in - * time. - * @type \Google\Cloud\Asset\V1\QueryAssetsOutputConfig $output_config - * Optional. Destination where the query results will be saved. - * When this field is specified, the query results won't be saved in the - * [QueryAssetsResponse.query_result]. Instead - * [QueryAssetsResponse.output_config] will be set. - * Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used - * to check the status of the query job when passed to a following - * [QueryAssets] API call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/123"). - * Only assets belonging to the `parent` will be returned. - * - * 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 relative name of the root asset. This can only be an - * organization number (such as "organizations/123"), a project ID (such as - * "projects/my-project-id"), or a project number (such as "projects/12345"), - * or a folder number (such as "folders/123"). - * Only assets belonging to the `parent` will be returned. - * - * 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. A SQL statement that's compatible with [BigQuery - * SQL](https://cloud.google.com/bigquery/docs/introduction-sql). - * - * Generated from protobuf field string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getStatement() - { - return $this->readOneof(2); - } - - public function hasStatement() - { - return $this->hasOneof(2); - } - - /** - * Optional. A SQL statement that's compatible with [BigQuery - * SQL](https://cloud.google.com/bigquery/docs/introduction-sql). - * - * Generated from protobuf field string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setStatement($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Reference to the query job, which is from the - * `QueryAssetsResponse` of previous `QueryAssets` call. - * - * Generated from protobuf field string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getJobReference() - { - return $this->readOneof(3); - } - - public function hasJobReference() - { - return $this->hasOneof(3); - } - - /** - * Optional. Reference to the query job, which is from the - * `QueryAssetsResponse` of previous `QueryAssets` call. - * - * Generated from protobuf field string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setJobReference($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. The maximum number of rows to return in the results. Responses - * are limited to 10 MB and 1000 rows. - * By default, the maximum row count is 1000. When the byte or row count limit - * is reached, the rest of the query results will be paginated. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of rows to return in the results. Responses - * are limited to 10 MB and 1000 rows. - * By default, the maximum row count is 1000. When the byte or row count limit - * is reached, the rest of the query results will be paginated. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field int32 page_size = 4 [(.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 previous `QueryAssets`. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token received from previous `QueryAssets`. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Specifies the maximum amount of time that the client is willing - * to wait for the query to complete. By default, this limit is 5 min for the - * first query, and 1 minute for the following queries. If the query is - * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise - * false. - * Like BigQuery [jobs.query - * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest) - * The call is not guaranteed to wait for the specified timeout; it typically - * returns after around 200 seconds (200,000 milliseconds), even if the query - * is not complete. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeout() - { - return $this->timeout; - } - - public function hasTimeout() - { - return isset($this->timeout); - } - - public function clearTimeout() - { - unset($this->timeout); - } - - /** - * Optional. Specifies the maximum amount of time that the client is willing - * to wait for the query to complete. By default, this limit is 5 min for the - * first query, and 1 minute for the following queries. If the query is - * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise - * false. - * Like BigQuery [jobs.query - * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest) - * The call is not guaranteed to wait for the specified timeout; it typically - * returns after around 200 seconds (200,000 milliseconds), even if the query - * is not complete. - * The field will be ignored when [output_config] is specified. - * - * Generated from protobuf field .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->timeout = $var; - - return $this; - } - - /** - * Optional. [start_time] is required. [start_time] must be less than - * [end_time] Defaults [end_time] to now if [start_time] is set and - * [end_time] isn't. Maximum permitted time range is 7 days. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\TimeWindow|null - */ - public function getReadTimeWindow() - { - return $this->readOneof(7); - } - - public function hasReadTimeWindow() - { - return $this->hasOneof(7); - } - - /** - * Optional. [start_time] is required. [start_time] must be less than - * [end_time] Defaults [end_time] to now if [start_time] is set and - * [end_time] isn't. Maximum permitted time range is 7 days. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\TimeWindow $var - * @return $this - */ - public function setReadTimeWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\TimeWindow::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Optional. Queries cloud assets as they appeared at the specified point in - * time. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->readOneof(8); - } - - public function hasReadTime() - { - return $this->hasOneof(8); - } - - /** - * Optional. Queries cloud assets as they appeared at the specified point in - * time. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Optional. Destination where the query results will be saved. - * When this field is specified, the query results won't be saved in the - * [QueryAssetsResponse.query_result]. Instead - * [QueryAssetsResponse.output_config] will be set. - * Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used - * to check the status of the query job when passed to a following - * [QueryAssets] API call. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Asset\V1\QueryAssetsOutputConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Optional. Destination where the query results will be saved. - * When this field is specified, the query results won't be saved in the - * [QueryAssetsResponse.query_result]. Instead - * [QueryAssetsResponse.output_config] will be set. - * Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used - * to check the status of the query job when passed to a following - * [QueryAssets] API call. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Asset\V1\QueryAssetsOutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\QueryAssetsOutputConfig::class); - $this->output_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getQuery() - { - return $this->whichOneof("query"); - } - - /** - * @return string - */ - public function getTime() - { - return $this->whichOneof("time"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsResponse.php deleted file mode 100644 index cc23eb77115b..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryAssetsResponse.php +++ /dev/null @@ -1,239 +0,0 @@ -google.cloud.asset.v1.QueryAssetsResponse - */ -class QueryAssetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Reference to a query job. - * - * Generated from protobuf field string job_reference = 1; - */ - protected $job_reference = ''; - /** - * The query response, which can be either an `error` or a valid `response`. - * If `done` == `false` and the query result is being saved in an output, the - * output_config field will be set. - * If `done` == `true`, exactly one of - * `error`, `query_result` or `output_config` will be set. - * [done] is unset unless the [QueryAssetsResponse] contains a - * [QueryAssetsResponse.job_reference]. - * - * Generated from protobuf field bool done = 2; - */ - protected $done = false; - protected $response; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_reference - * Reference to a query job. - * @type bool $done - * The query response, which can be either an `error` or a valid `response`. - * If `done` == `false` and the query result is being saved in an output, the - * output_config field will be set. - * If `done` == `true`, exactly one of - * `error`, `query_result` or `output_config` will be set. - * [done] is unset unless the [QueryAssetsResponse] contains a - * [QueryAssetsResponse.job_reference]. - * @type \Google\Rpc\Status $error - * Error status. - * @type \Google\Cloud\Asset\V1\QueryResult $query_result - * Result of the query. - * @type \Google\Cloud\Asset\V1\QueryAssetsOutputConfig $output_config - * Output configuration, which indicates that instead of being returned in - * an API response on the fly, the query result will be saved in a specific - * output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Reference to a query job. - * - * Generated from protobuf field string job_reference = 1; - * @return string - */ - public function getJobReference() - { - return $this->job_reference; - } - - /** - * Reference to a query job. - * - * Generated from protobuf field string job_reference = 1; - * @param string $var - * @return $this - */ - public function setJobReference($var) - { - GPBUtil::checkString($var, True); - $this->job_reference = $var; - - return $this; - } - - /** - * The query response, which can be either an `error` or a valid `response`. - * If `done` == `false` and the query result is being saved in an output, the - * output_config field will be set. - * If `done` == `true`, exactly one of - * `error`, `query_result` or `output_config` will be set. - * [done] is unset unless the [QueryAssetsResponse] contains a - * [QueryAssetsResponse.job_reference]. - * - * Generated from protobuf field bool done = 2; - * @return bool - */ - public function getDone() - { - return $this->done; - } - - /** - * The query response, which can be either an `error` or a valid `response`. - * If `done` == `false` and the query result is being saved in an output, the - * output_config field will be set. - * If `done` == `true`, exactly one of - * `error`, `query_result` or `output_config` will be set. - * [done] is unset unless the [QueryAssetsResponse] contains a - * [QueryAssetsResponse.job_reference]. - * - * Generated from protobuf field bool done = 2; - * @param bool $var - * @return $this - */ - public function setDone($var) - { - GPBUtil::checkBool($var); - $this->done = $var; - - return $this; - } - - /** - * Error status. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->readOneof(3); - } - - public function hasError() - { - return $this->hasOneof(3); - } - - /** - * Error status. - * - * Generated from protobuf field .google.rpc.Status error = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Result of the query. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryResult query_result = 4; - * @return \Google\Cloud\Asset\V1\QueryResult|null - */ - public function getQueryResult() - { - return $this->readOneof(4); - } - - public function hasQueryResult() - { - return $this->hasOneof(4); - } - - /** - * Result of the query. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryResult query_result = 4; - * @param \Google\Cloud\Asset\V1\QueryResult $var - * @return $this - */ - public function setQueryResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\QueryResult::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output configuration, which indicates that instead of being returned in - * an API response on the fly, the query result will be saved in a specific - * output. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * @return \Google\Cloud\Asset\V1\QueryAssetsOutputConfig|null - */ - public function getOutputConfig() - { - return $this->readOneof(5); - } - - public function hasOutputConfig() - { - return $this->hasOneof(5); - } - - /** - * Output configuration, which indicates that instead of being returned in - * an API response on the fly, the query result will be saved in a specific - * output. - * - * Generated from protobuf field .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * @param \Google\Cloud\Asset\V1\QueryAssetsOutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\QueryAssetsOutputConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getResponse() - { - return $this->whichOneof("response"); - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryResult.php deleted file mode 100644 index 430f80179a4e..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/QueryResult.php +++ /dev/null @@ -1,182 +0,0 @@ -google.cloud.asset.v1.QueryResult - */ -class QueryResult extends \Google\Protobuf\Internal\Message -{ - /** - * Each row hold a query result in the format of `Struct`. - * - * Generated from protobuf field repeated .google.protobuf.Struct rows = 1; - */ - private $rows; - /** - * Describes the format of the [rows]. - * - * Generated from protobuf field .google.cloud.asset.v1.TableSchema schema = 2; - */ - protected $schema = null; - /** - * Token to retrieve the next page of the results. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - /** - * Total rows of the whole query results. - * - * Generated from protobuf field int64 total_rows = 4; - */ - protected $total_rows = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $rows - * Each row hold a query result in the format of `Struct`. - * @type \Google\Cloud\Asset\V1\TableSchema $schema - * Describes the format of the [rows]. - * @type string $next_page_token - * Token to retrieve the next page of the results. - * @type int|string $total_rows - * Total rows of the whole query results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Each row hold a query result in the format of `Struct`. - * - * Generated from protobuf field repeated .google.protobuf.Struct rows = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Each row hold a query result in the format of `Struct`. - * - * Generated from protobuf field repeated .google.protobuf.Struct rows = 1; - * @param array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); - $this->rows = $arr; - - return $this; - } - - /** - * Describes the format of the [rows]. - * - * Generated from protobuf field .google.cloud.asset.v1.TableSchema schema = 2; - * @return \Google\Cloud\Asset\V1\TableSchema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Describes the format of the [rows]. - * - * Generated from protobuf field .google.cloud.asset.v1.TableSchema schema = 2; - * @param \Google\Cloud\Asset\V1\TableSchema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\TableSchema::class); - $this->schema = $var; - - return $this; - } - - /** - * Token to retrieve the next page of the results. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of the results. - * - * Generated from protobuf field string next_page_token = 3; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Total rows of the whole query results. - * - * Generated from protobuf field int64 total_rows = 4; - * @return int|string - */ - public function getTotalRows() - { - return $this->total_rows; - } - - /** - * Total rows of the whole query results. - * - * Generated from protobuf field int64 total_rows = 4; - * @param int|string $var - * @return $this - */ - public function setTotalRows($var) - { - GPBUtil::checkInt64($var); - $this->total_rows = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedAsset.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedAsset.php deleted file mode 100644 index f5776b29d83c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedAsset.php +++ /dev/null @@ -1,224 +0,0 @@ -google.cloud.asset.v1.RelatedAsset - */ -class RelatedAsset extends \Google\Protobuf\Internal\Message -{ - /** - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * - * Generated from protobuf field string asset = 1 [(.google.api.resource_reference) = { - */ - protected $asset = ''; - /** - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * - * Generated from protobuf field string asset_type = 2; - */ - protected $asset_type = ''; - /** - * The ancestors of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * - * Generated from protobuf field repeated string ancestors = 3; - */ - private $ancestors; - /** - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * - * Generated from protobuf field string relationship_type = 4; - */ - protected $relationship_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * @type string $asset_type - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * @type array|\Google\Protobuf\Internal\RepeatedField $ancestors - * The ancestors of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * @type string $relationship_type - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * - * Generated from protobuf field string asset = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getAsset() - { - return $this->asset; - } - - /** - * The full name of the asset. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` - * See [Resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * - * Generated from protobuf field string asset = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkString($var, True); - $this->asset = $var; - - return $this; - } - - /** - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * - * Generated from protobuf field string asset_type = 2; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The type of the asset. Example: `compute.googleapis.com/Disk` - * See [Supported asset - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * for more information. - * - * Generated from protobuf field string asset_type = 2; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - - /** - * The ancestors of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * - * Generated from protobuf field repeated string ancestors = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAncestors() - { - return $this->ancestors; - } - - /** - * The ancestors of an asset in Google Cloud [resource - * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), - * represented as a list of relative resource names. An ancestry path starts - * with the closest ancestor in the hierarchy and ends at root. - * Example: `["projects/123456789", "folders/5432", "organizations/1234"]` - * - * Generated from protobuf field repeated string ancestors = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAncestors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ancestors = $arr; - - return $this; - } - - /** - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * - * Generated from protobuf field string relationship_type = 4; - * @return string - */ - public function getRelationshipType() - { - return $this->relationship_type; - } - - /** - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * - * Generated from protobuf field string relationship_type = 4; - * @param string $var - * @return $this - */ - public function setRelationshipType($var) - { - GPBUtil::checkString($var, True); - $this->relationship_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedAssets.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedAssets.php deleted file mode 100644 index 3b38c610874c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedAssets.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.asset.v1.RelatedAssets - */ -class RelatedAssets extends \Google\Protobuf\Internal\Message -{ - /** - * The detailed relationship attributes. - * - * Generated from protobuf field .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - */ - protected $relationship_attributes = null; - /** - * The peer resources of the relationship. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.RelatedAsset assets = 2; - */ - private $assets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\RelationshipAttributes $relationship_attributes - * The detailed relationship attributes. - * @type array<\Google\Cloud\Asset\V1\RelatedAsset>|\Google\Protobuf\Internal\RepeatedField $assets - * The peer resources of the relationship. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The detailed relationship attributes. - * - * Generated from protobuf field .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * @return \Google\Cloud\Asset\V1\RelationshipAttributes|null - */ - public function getRelationshipAttributes() - { - return $this->relationship_attributes; - } - - public function hasRelationshipAttributes() - { - return isset($this->relationship_attributes); - } - - public function clearRelationshipAttributes() - { - unset($this->relationship_attributes); - } - - /** - * The detailed relationship attributes. - * - * Generated from protobuf field .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * @param \Google\Cloud\Asset\V1\RelationshipAttributes $var - * @return $this - */ - public function setRelationshipAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\RelationshipAttributes::class); - $this->relationship_attributes = $var; - - return $this; - } - - /** - * The peer resources of the relationship. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.RelatedAsset assets = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssets() - { - return $this->assets; - } - - /** - * The peer resources of the relationship. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.RelatedAsset assets = 2; - * @param array<\Google\Cloud\Asset\V1\RelatedAsset>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\RelatedAsset::class); - $this->assets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedResource.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedResource.php deleted file mode 100644 index 276ad6987d6c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedResource.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.asset.v1.RelatedResource - */ -class RelatedResource extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the asset. Example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field string asset_type = 1; - */ - protected $asset_type = ''; - /** - * The full resource name of the related resource. Example: - * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123` - * - * Generated from protobuf field string full_resource_name = 2; - */ - protected $full_resource_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_type - * The type of the asset. Example: `compute.googleapis.com/Instance` - * @type string $full_resource_name - * The full resource name of the related resource. Example: - * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The type of the asset. Example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field string asset_type = 1; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The type of the asset. Example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field string asset_type = 1; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - - /** - * The full resource name of the related resource. Example: - * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123` - * - * Generated from protobuf field string full_resource_name = 2; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The full resource name of the related resource. Example: - * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123` - * - * Generated from protobuf field string full_resource_name = 2; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedResources.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedResources.php deleted file mode 100644 index db80697a9a7c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelatedResources.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.asset.v1.RelatedResources - */ -class RelatedResources extends \Google\Protobuf\Internal\Message -{ - /** - * The detailed related resources of the primary resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; - */ - private $related_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\RelatedResource>|\Google\Protobuf\Internal\RepeatedField $related_resources - * The detailed related resources of the primary resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The detailed related resources of the primary resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedResources() - { - return $this->related_resources; - } - - /** - * The detailed related resources of the primary resource. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; - * @param array<\Google\Cloud\Asset\V1\RelatedResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\RelatedResource::class); - $this->related_resources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelationshipAttributes.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelationshipAttributes.php deleted file mode 100644 index 13e68a4e5b28..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/RelationshipAttributes.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.asset.v1.RelationshipAttributes - */ -class RelationshipAttributes extends \Google\Protobuf\Internal\Message -{ - /** - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * - * Generated from protobuf field string type = 4; - */ - protected $type = ''; - /** - * The source asset type. Example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field string source_resource_type = 1; - */ - protected $source_resource_type = ''; - /** - * The target asset type. Example: `compute.googleapis.com/Disk` - * - * Generated from protobuf field string target_resource_type = 2; - */ - protected $target_resource_type = ''; - /** - * The detail of the relationship, e.g. `contains`, `attaches` - * - * Generated from protobuf field string action = 3; - */ - protected $action = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * @type string $source_resource_type - * The source asset type. Example: `compute.googleapis.com/Instance` - * @type string $target_resource_type - * The target asset type. Example: `compute.googleapis.com/Disk` - * @type string $action - * The detail of the relationship, e.g. `contains`, `attaches` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * - * Generated from protobuf field string type = 4; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The unique identifier of the relationship type. Example: - * `INSTANCE_TO_INSTANCEGROUP` - * - * Generated from protobuf field string type = 4; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The source asset type. Example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field string source_resource_type = 1; - * @return string - */ - public function getSourceResourceType() - { - return $this->source_resource_type; - } - - /** - * The source asset type. Example: `compute.googleapis.com/Instance` - * - * Generated from protobuf field string source_resource_type = 1; - * @param string $var - * @return $this - */ - public function setSourceResourceType($var) - { - GPBUtil::checkString($var, True); - $this->source_resource_type = $var; - - return $this; - } - - /** - * The target asset type. Example: `compute.googleapis.com/Disk` - * - * Generated from protobuf field string target_resource_type = 2; - * @return string - */ - public function getTargetResourceType() - { - return $this->target_resource_type; - } - - /** - * The target asset type. Example: `compute.googleapis.com/Disk` - * - * Generated from protobuf field string target_resource_type = 2; - * @param string $var - * @return $this - */ - public function setTargetResourceType($var) - { - GPBUtil::checkString($var, True); - $this->target_resource_type = $var; - - return $this; - } - - /** - * The detail of the relationship, e.g. `contains`, `attaches` - * - * Generated from protobuf field string action = 3; - * @return string - */ - public function getAction() - { - return $this->action; - } - - /** - * The detail of the relationship, e.g. `contains`, `attaches` - * - * Generated from protobuf field string action = 3; - * @param string $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkString($var, True); - $this->action = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Resource.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Resource.php deleted file mode 100644 index ae0f10a874a9..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Resource.php +++ /dev/null @@ -1,361 +0,0 @@ -google.cloud.asset.v1.Resource - */ -class Resource extends \Google\Protobuf\Internal\Message -{ - /** - * The API version. Example: `v1` - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * The URL of the discovery document containing the resource's JSON schema. - * Example: - * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * - * Generated from protobuf field string discovery_document_uri = 2; - */ - protected $discovery_document_uri = ''; - /** - * The JSON schema name listed in the discovery document. Example: - * `Project` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * - * Generated from protobuf field string discovery_name = 3; - */ - protected $discovery_name = ''; - /** - * The REST URL for accessing the resource. An HTTP `GET` request using this - * URL returns the resource itself. Example: - * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` - * This value is unspecified for resources without a REST API. - * - * Generated from protobuf field string resource_url = 4; - */ - protected $resource_url = ''; - /** - * The full name of the immediate parent of this resource. See - * [Resource - * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * For Google Cloud assets, this value is the parent resource defined in the - * [IAM policy - * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). - * Example: - * `//cloudresourcemanager.googleapis.com/projects/my_project_123` - * - * Generated from protobuf field string parent = 5; - */ - protected $parent = ''; - /** - * The content of the resource, in which some sensitive fields are removed - * and may not be present. - * - * Generated from protobuf field .google.protobuf.Struct data = 6; - */ - protected $data = null; - /** - * The location of the resource in Google Cloud, such as its zone and region. - * For more information, see https://cloud.google.com/about/locations/. - * - * Generated from protobuf field string location = 8; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The API version. Example: `v1` - * @type string $discovery_document_uri - * The URL of the discovery document containing the resource's JSON schema. - * Example: - * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * @type string $discovery_name - * The JSON schema name listed in the discovery document. Example: - * `Project` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * @type string $resource_url - * The REST URL for accessing the resource. An HTTP `GET` request using this - * URL returns the resource itself. Example: - * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` - * This value is unspecified for resources without a REST API. - * @type string $parent - * The full name of the immediate parent of this resource. See - * [Resource - * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * For Google Cloud assets, this value is the parent resource defined in the - * [IAM policy - * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). - * Example: - * `//cloudresourcemanager.googleapis.com/projects/my_project_123` - * @type \Google\Protobuf\Struct $data - * The content of the resource, in which some sensitive fields are removed - * and may not be present. - * @type string $location - * The location of the resource in Google Cloud, such as its zone and region. - * For more information, see https://cloud.google.com/about/locations/. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The API version. Example: `v1` - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The API version. Example: `v1` - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * The URL of the discovery document containing the resource's JSON schema. - * Example: - * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * - * Generated from protobuf field string discovery_document_uri = 2; - * @return string - */ - public function getDiscoveryDocumentUri() - { - return $this->discovery_document_uri; - } - - /** - * The URL of the discovery document containing the resource's JSON schema. - * Example: - * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * - * Generated from protobuf field string discovery_document_uri = 2; - * @param string $var - * @return $this - */ - public function setDiscoveryDocumentUri($var) - { - GPBUtil::checkString($var, True); - $this->discovery_document_uri = $var; - - return $this; - } - - /** - * The JSON schema name listed in the discovery document. Example: - * `Project` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * - * Generated from protobuf field string discovery_name = 3; - * @return string - */ - public function getDiscoveryName() - { - return $this->discovery_name; - } - - /** - * The JSON schema name listed in the discovery document. Example: - * `Project` - * This value is unspecified for resources that do not have an API based on a - * discovery document, such as Cloud Bigtable. - * - * Generated from protobuf field string discovery_name = 3; - * @param string $var - * @return $this - */ - public function setDiscoveryName($var) - { - GPBUtil::checkString($var, True); - $this->discovery_name = $var; - - return $this; - } - - /** - * The REST URL for accessing the resource. An HTTP `GET` request using this - * URL returns the resource itself. Example: - * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` - * This value is unspecified for resources without a REST API. - * - * Generated from protobuf field string resource_url = 4; - * @return string - */ - public function getResourceUrl() - { - return $this->resource_url; - } - - /** - * The REST URL for accessing the resource. An HTTP `GET` request using this - * URL returns the resource itself. Example: - * `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` - * This value is unspecified for resources without a REST API. - * - * Generated from protobuf field string resource_url = 4; - * @param string $var - * @return $this - */ - public function setResourceUrl($var) - { - GPBUtil::checkString($var, True); - $this->resource_url = $var; - - return $this; - } - - /** - * The full name of the immediate parent of this resource. See - * [Resource - * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * For Google Cloud assets, this value is the parent resource defined in the - * [IAM policy - * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). - * Example: - * `//cloudresourcemanager.googleapis.com/projects/my_project_123` - * - * Generated from protobuf field string parent = 5; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The full name of the immediate parent of this resource. See - * [Resource - * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * for more information. - * For Google Cloud assets, this value is the parent resource defined in the - * [IAM policy - * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). - * Example: - * `//cloudresourcemanager.googleapis.com/projects/my_project_123` - * - * Generated from protobuf field string parent = 5; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The content of the resource, in which some sensitive fields are removed - * and may not be present. - * - * Generated from protobuf field .google.protobuf.Struct data = 6; - * @return \Google\Protobuf\Struct|null - */ - public function getData() - { - return $this->data; - } - - public function hasData() - { - return isset($this->data); - } - - public function clearData() - { - unset($this->data); - } - - /** - * The content of the resource, in which some sensitive fields are removed - * and may not be present. - * - * Generated from protobuf field .google.protobuf.Struct data = 6; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->data = $var; - - return $this; - } - - /** - * The location of the resource in Google Cloud, such as its zone and region. - * For more information, see https://cloud.google.com/about/locations/. - * - * Generated from protobuf field string location = 8; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location of the resource in Google Cloud, such as its zone and region. - * For more information, see https://cloud.google.com/about/locations/. - * - * Generated from protobuf field string location = 8; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ResourceSearchResult.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ResourceSearchResult.php deleted file mode 100644 index 1ff1be739f9c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/ResourceSearchResult.php +++ /dev/null @@ -1,1849 +0,0 @@ -google.cloud.asset.v1.ResourceSearchResult - */ -class ResourceSearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * The full resource name of this resource. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `name`: - * * Use a field query. Example: `name:instance1` - * * Use a free text query. Example: `instance1` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of this resource. Example: `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * Specify the `asset_type` field in your search request. - * - * Generated from protobuf field string asset_type = 2; - */ - protected $asset_type = ''; - /** - * The project that this resource belongs to, in the form of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * To search against `project`: - * * Use a field query. Example: `project:12345` - * * Use a free text query. Example: `12345` - * * Specify the `scope` field as this project in your search request. - * - * Generated from protobuf field string project = 3; - */ - protected $project = ''; - /** - * The folder(s) that this resource belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs to one or more folders. - * To search against `folders`: - * * Use a field query. Example: `folders:(123 OR 456)` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this folder in your search request. - * - * Generated from protobuf field repeated string folders = 17; - */ - private $folders; - /** - * The organization that this resource belongs to, in the form of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs to an organization. - * To search against `organization`: - * * Use a field query. Example: `organization:123` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this organization in your search request. - * - * Generated from protobuf field string organization = 18; - */ - protected $organization = ''; - /** - * The display name of this resource. This field is available only when the - * resource's Protobuf contains it. - * To search against the `display_name`: - * * Use a field query. Example: `displayName:"My Instance"` - * * Use a free text query. Example: `"My Instance"` - * - * Generated from protobuf field string display_name = 4; - */ - protected $display_name = ''; - /** - * One or more paragraphs of text description of this resource. Maximum length - * could be up to 1M bytes. This field is available only when the resource's - * Protobuf contains it. - * To search against the `description`: - * * Use a field query. Example: `description:"important instance"` - * * Use a free text query. Example: `"important instance"` - * - * Generated from protobuf field string description = 5; - */ - protected $description = ''; - /** - * Location can be `global`, regional like `us-east1`, or zonal like - * `us-west1-b`. This field is available only when the resource's Protobuf - * contains it. - * To search against the `location`: - * * Use a field query. Example: `location:us-west*` - * * Use a free text query. Example: `us-west*` - * - * Generated from protobuf field string location = 6; - */ - protected $location = ''; - /** - * User labels associated with this resource. See [Labelling and grouping - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `labels`: - * * Use a field query: - * - query on any label's key or value. Example: `labels:prod` - * - query by a given label. Example: `labels.env:prod` - * - query by a given label's existence. Example: `labels.env:*` - * * Use a free text query. Example: `prod` - * - * Generated from protobuf field map labels = 7; - */ - private $labels; - /** - * Network tags associated with this resource. Like labels, network tags are a - * type of annotations used to group Google Cloud resources. See [Labelling - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `network_tags`: - * * Use a field query. Example: `networkTags:internal` - * * Use a free text query. Example: `internal` - * - * Generated from protobuf field repeated string network_tags = 8; - */ - private $network_tags; - /** - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * name or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. - * This field only presents for the purpose of backward compatibility. - * Use the `kms_keys` field to retrieve Cloud KMS key information. This field - * is available only when the resource's Protobuf contains it and will only be - * populated for [these resource - * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) - * for backward compatible purposes. - * To search against the `kms_key`: - * * Use a field query. Example: `kmsKey:key` - * * Use a free text query. Example: `key` - * - * Generated from protobuf field string kms_key = 10 [deprecated = true]; - * @deprecated - */ - protected $kms_key = ''; - /** - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * names or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * names. This field is available only when the resource's Protobuf contains - * it. - * To search against the `kms_keys`: - * * Use a field query. Example: `kmsKeys:key` - * * Use a free text query. Example: `key` - * - * Generated from protobuf field repeated string kms_keys = 28; - */ - private $kms_keys; - /** - * The create timestamp of this resource, at which the resource was created. - * The granularity is in seconds. Timestamp.nanos will always be 0. This field - * is available only when the resource's Protobuf contains it. - * To search against `create_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `createTime > 1609459200` - * - value in date string. Example: `createTime > 2021-01-01` - * - value in date-time string (must be quoted). Example: `createTime > - * "2021-01-01T00:00:00"` - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - */ - protected $create_time = null; - /** - * The last update timestamp of this resource, at which the resource was last - * modified or deleted. The granularity is in seconds. Timestamp.nanos will - * always be 0. This field is available only when the resource's Protobuf - * contains it. - * To search against `update_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `updateTime < 1609459200` - * - value in date string. Example: `updateTime < 2021-01-01` - * - value in date-time string (must be quoted). Example: `updateTime < - * "2021-01-01T00:00:00"` - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12; - */ - protected $update_time = null; - /** - * The state of this resource. Different resources types have different state - * definitions that are mapped from various fields of different resource - * types. This field is available only when the resource's Protobuf contains - * it. - * Example: - * If the resource is an instance provided by Compute Engine, - * its state will include PROVISIONING, STAGING, RUNNING, STOPPING, - * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition - * in [API - * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances). - * If the resource is a project provided by Resource Manager, its state - * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and - * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API - * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). - * To search against the `state`: - * * Use a field query. Example: `state:RUNNING` - * * Use a free text query. Example: `RUNNING` - * - * Generated from protobuf field string state = 13; - */ - protected $state = ''; - /** - * The additional searchable attributes of this resource. The attributes may - * vary from one resource type to another. Examples: `projectId` for Project, - * `dnsName` for DNS ManagedZone. This field contains a subset of the resource - * metadata fields that are returned by the List or Get APIs provided by the - * corresponding Google Cloud service (e.g., Compute Engine). see [API - * references and supported searchable - * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * to see which fields are included. - * You can search values of these fields through free text search. However, - * you should not consume the field programically as the field names and - * values may change as the Google Cloud service updates to a new incompatible - * API version. - * To search against the `additional_attributes`: - * * Use a free text query to match the attributes values. Example: to search - * `additional_attributes = { dnsName: "foobar" }`, you can issue a query - * `foobar`. - * - * Generated from protobuf field .google.protobuf.Struct additional_attributes = 9; - */ - protected $additional_attributes = null; - /** - * The full resource name of this resource's parent, if it has one. - * To search against the `parent_full_resource_name`: - * * Use a field query. Example: - * `parentFullResourceName:"project-name"` - * * Use a free text query. Example: - * `project-name` - * - * Generated from protobuf field string parent_full_resource_name = 19; - */ - protected $parent_full_resource_name = ''; - /** - * Versioned resource representations of this resource. This is repeated - * because there could be multiple versions of resource representations during - * version migration. - * This `versioned_resources` field is not searchable. Some attributes of the - * resource representations are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16; - */ - private $versioned_resources; - /** - * Attached resources of this resource. For example, an OSConfig - * Inventory is an attached resource of a Compute Instance. This field is - * repeated because a resource could have multiple attached resources. - * This `attached_resources` field is not searchable. Some attributes - * of the attached resources are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20; - */ - private $attached_resources; - /** - * A map of related resources of this resource, keyed by the - * relationship type. A relationship type is in the format of - * {SourceType}_{ACTION}_{DestType}. Example: `DISK_TO_INSTANCE`, - * `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`. - * See [supported relationship - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types). - * - * Generated from protobuf field map relationships = 21; - */ - private $relationships; - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * To search against the `tagKeys`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * * Use a free text query. Example: - * - `env` - * - * Generated from protobuf field repeated string tag_keys = 23 [deprecated = true]; - * @deprecated - */ - private $tag_keys; - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue namespaced names, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * To search against the `tagValues`: - * * Use a field query. Example: - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * * Use a free text query. Example: - * - `prod` - * - * Generated from protobuf field repeated string tag_values = 25 [deprecated = true]; - * @deprecated - */ - private $tag_values; - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}. - * To search against the `tagValueIds`: - * * Use a field query. Example: - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `456` - * - * Generated from protobuf field repeated string tag_value_ids = 26 [deprecated = true]; - * @deprecated - */ - private $tag_value_ids; - /** - * The tags directly attached to this resource. - * To search against the `tags`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * - `tagKeyIds="tagKeys/123"` - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `env/prod` - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Tag tags = 29; - */ - private $tags; - /** - * The effective tags on this resource. All of the tags that are both attached - * to and inherited by a resource are collectively called the effective - * tags. For more information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * To search against the `effective_tags`: - * * Use a field query. Example: - * - `effectiveTagKeys:"123456789/env*"` - * - `effectiveTagKeys="123456789/env"` - * - `effectiveTagKeys:"env"` - * - `effectiveTagKeyIds="tagKeys/123"` - * - `effectiveTagValues:"env"` - * - `effectiveTagValues:"env/prod"` - * - `effectiveTagValues:"123456789/env/prod*"` - * - `effectiveTagValues="123456789/env/prod"` - * - `effectiveTagValueIds="tagValues/456"` - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 30; - */ - private $effective_tags; - /** - * The type of this resource's immediate parent, if there is one. - * To search against the `parent_asset_type`: - * * Use a field query. Example: - * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"` - * * Use a free text query. Example: - * `cloudresourcemanager.googleapis.com/Project` - * - * Generated from protobuf field string parent_asset_type = 103; - */ - protected $parent_asset_type = ''; - /** - * The actual content of Security Command Center security marks associated - * with the asset. - * To search against SCC SecurityMarks field: - * * Use a field query: - * - query by a given key value pair. Example: `sccSecurityMarks.foo=bar` - * - query by a given key's existence. Example: `sccSecurityMarks.foo:*` - * - * Generated from protobuf field map scc_security_marks = 32; - */ - private $scc_security_marks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The full resource name of this resource. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `name`: - * * Use a field query. Example: `name:instance1` - * * Use a free text query. Example: `instance1` - * @type string $asset_type - * The type of this resource. Example: `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * Specify the `asset_type` field in your search request. - * @type string $project - * The project that this resource belongs to, in the form of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * To search against `project`: - * * Use a field query. Example: `project:12345` - * * Use a free text query. Example: `12345` - * * Specify the `scope` field as this project in your search request. - * @type array|\Google\Protobuf\Internal\RepeatedField $folders - * The folder(s) that this resource belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs to one or more folders. - * To search against `folders`: - * * Use a field query. Example: `folders:(123 OR 456)` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this folder in your search request. - * @type string $organization - * The organization that this resource belongs to, in the form of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs to an organization. - * To search against `organization`: - * * Use a field query. Example: `organization:123` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this organization in your search request. - * @type string $display_name - * The display name of this resource. This field is available only when the - * resource's Protobuf contains it. - * To search against the `display_name`: - * * Use a field query. Example: `displayName:"My Instance"` - * * Use a free text query. Example: `"My Instance"` - * @type string $description - * One or more paragraphs of text description of this resource. Maximum length - * could be up to 1M bytes. This field is available only when the resource's - * Protobuf contains it. - * To search against the `description`: - * * Use a field query. Example: `description:"important instance"` - * * Use a free text query. Example: `"important instance"` - * @type string $location - * Location can be `global`, regional like `us-east1`, or zonal like - * `us-west1-b`. This field is available only when the resource's Protobuf - * contains it. - * To search against the `location`: - * * Use a field query. Example: `location:us-west*` - * * Use a free text query. Example: `us-west*` - * @type array|\Google\Protobuf\Internal\MapField $labels - * User labels associated with this resource. See [Labelling and grouping - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `labels`: - * * Use a field query: - * - query on any label's key or value. Example: `labels:prod` - * - query by a given label. Example: `labels.env:prod` - * - query by a given label's existence. Example: `labels.env:*` - * * Use a free text query. Example: `prod` - * @type array|\Google\Protobuf\Internal\RepeatedField $network_tags - * Network tags associated with this resource. Like labels, network tags are a - * type of annotations used to group Google Cloud resources. See [Labelling - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `network_tags`: - * * Use a field query. Example: `networkTags:internal` - * * Use a free text query. Example: `internal` - * @type string $kms_key - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * name or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. - * This field only presents for the purpose of backward compatibility. - * Use the `kms_keys` field to retrieve Cloud KMS key information. This field - * is available only when the resource's Protobuf contains it and will only be - * populated for [these resource - * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) - * for backward compatible purposes. - * To search against the `kms_key`: - * * Use a field query. Example: `kmsKey:key` - * * Use a free text query. Example: `key` - * @type array|\Google\Protobuf\Internal\RepeatedField $kms_keys - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * names or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * names. This field is available only when the resource's Protobuf contains - * it. - * To search against the `kms_keys`: - * * Use a field query. Example: `kmsKeys:key` - * * Use a free text query. Example: `key` - * @type \Google\Protobuf\Timestamp $create_time - * The create timestamp of this resource, at which the resource was created. - * The granularity is in seconds. Timestamp.nanos will always be 0. This field - * is available only when the resource's Protobuf contains it. - * To search against `create_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `createTime > 1609459200` - * - value in date string. Example: `createTime > 2021-01-01` - * - value in date-time string (must be quoted). Example: `createTime > - * "2021-01-01T00:00:00"` - * @type \Google\Protobuf\Timestamp $update_time - * The last update timestamp of this resource, at which the resource was last - * modified or deleted. The granularity is in seconds. Timestamp.nanos will - * always be 0. This field is available only when the resource's Protobuf - * contains it. - * To search against `update_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `updateTime < 1609459200` - * - value in date string. Example: `updateTime < 2021-01-01` - * - value in date-time string (must be quoted). Example: `updateTime < - * "2021-01-01T00:00:00"` - * @type string $state - * The state of this resource. Different resources types have different state - * definitions that are mapped from various fields of different resource - * types. This field is available only when the resource's Protobuf contains - * it. - * Example: - * If the resource is an instance provided by Compute Engine, - * its state will include PROVISIONING, STAGING, RUNNING, STOPPING, - * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition - * in [API - * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances). - * If the resource is a project provided by Resource Manager, its state - * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and - * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API - * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). - * To search against the `state`: - * * Use a field query. Example: `state:RUNNING` - * * Use a free text query. Example: `RUNNING` - * @type \Google\Protobuf\Struct $additional_attributes - * The additional searchable attributes of this resource. The attributes may - * vary from one resource type to another. Examples: `projectId` for Project, - * `dnsName` for DNS ManagedZone. This field contains a subset of the resource - * metadata fields that are returned by the List or Get APIs provided by the - * corresponding Google Cloud service (e.g., Compute Engine). see [API - * references and supported searchable - * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * to see which fields are included. - * You can search values of these fields through free text search. However, - * you should not consume the field programically as the field names and - * values may change as the Google Cloud service updates to a new incompatible - * API version. - * To search against the `additional_attributes`: - * * Use a free text query to match the attributes values. Example: to search - * `additional_attributes = { dnsName: "foobar" }`, you can issue a query - * `foobar`. - * @type string $parent_full_resource_name - * The full resource name of this resource's parent, if it has one. - * To search against the `parent_full_resource_name`: - * * Use a field query. Example: - * `parentFullResourceName:"project-name"` - * * Use a free text query. Example: - * `project-name` - * @type array<\Google\Cloud\Asset\V1\VersionedResource>|\Google\Protobuf\Internal\RepeatedField $versioned_resources - * Versioned resource representations of this resource. This is repeated - * because there could be multiple versions of resource representations during - * version migration. - * This `versioned_resources` field is not searchable. Some attributes of the - * resource representations are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * @type array<\Google\Cloud\Asset\V1\AttachedResource>|\Google\Protobuf\Internal\RepeatedField $attached_resources - * Attached resources of this resource. For example, an OSConfig - * Inventory is an attached resource of a Compute Instance. This field is - * repeated because a resource could have multiple attached resources. - * This `attached_resources` field is not searchable. Some attributes - * of the attached resources are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * @type array|\Google\Protobuf\Internal\MapField $relationships - * A map of related resources of this resource, keyed by the - * relationship type. A relationship type is in the format of - * {SourceType}_{ACTION}_{DestType}. Example: `DISK_TO_INSTANCE`, - * `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`. - * See [supported relationship - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types). - * @type array|\Google\Protobuf\Internal\RepeatedField $tag_keys - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * To search against the `tagKeys`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * * Use a free text query. Example: - * - `env` - * @type array|\Google\Protobuf\Internal\RepeatedField $tag_values - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue namespaced names, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * To search against the `tagValues`: - * * Use a field query. Example: - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * * Use a free text query. Example: - * - `prod` - * @type array|\Google\Protobuf\Internal\RepeatedField $tag_value_ids - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}. - * To search against the `tagValueIds`: - * * Use a field query. Example: - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `456` - * @type array<\Google\Cloud\Asset\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $tags - * The tags directly attached to this resource. - * To search against the `tags`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * - `tagKeyIds="tagKeys/123"` - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `env/prod` - * @type array<\Google\Cloud\Asset\V1\EffectiveTagDetails>|\Google\Protobuf\Internal\RepeatedField $effective_tags - * The effective tags on this resource. All of the tags that are both attached - * to and inherited by a resource are collectively called the effective - * tags. For more information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * To search against the `effective_tags`: - * * Use a field query. Example: - * - `effectiveTagKeys:"123456789/env*"` - * - `effectiveTagKeys="123456789/env"` - * - `effectiveTagKeys:"env"` - * - `effectiveTagKeyIds="tagKeys/123"` - * - `effectiveTagValues:"env"` - * - `effectiveTagValues:"env/prod"` - * - `effectiveTagValues:"123456789/env/prod*"` - * - `effectiveTagValues="123456789/env/prod"` - * - `effectiveTagValueIds="tagValues/456"` - * @type string $parent_asset_type - * The type of this resource's immediate parent, if there is one. - * To search against the `parent_asset_type`: - * * Use a field query. Example: - * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"` - * * Use a free text query. Example: - * `cloudresourcemanager.googleapis.com/Project` - * @type array|\Google\Protobuf\Internal\MapField $scc_security_marks - * The actual content of Security Command Center security marks associated - * with the asset. - * To search against SCC SecurityMarks field: - * * Use a field query: - * - query by a given key value pair. Example: `sccSecurityMarks.foo=bar` - * - query by a given key's existence. Example: `sccSecurityMarks.foo:*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The full resource name of this resource. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `name`: - * * Use a field query. Example: `name:instance1` - * * Use a free text query. Example: `instance1` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The full resource name of this resource. Example: - * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. - * See [Cloud Asset Inventory Resource Name - * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) - * for more information. - * To search against the `name`: - * * Use a field query. Example: `name:instance1` - * * Use a free text query. Example: `instance1` - * - * 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; - } - - /** - * The type of this resource. Example: `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * Specify the `asset_type` field in your search request. - * - * Generated from protobuf field string asset_type = 2; - * @return string - */ - public function getAssetType() - { - return $this->asset_type; - } - - /** - * The type of this resource. Example: `compute.googleapis.com/Disk`. - * To search against the `asset_type`: - * * Specify the `asset_type` field in your search request. - * - * Generated from protobuf field string asset_type = 2; - * @param string $var - * @return $this - */ - public function setAssetType($var) - { - GPBUtil::checkString($var, True); - $this->asset_type = $var; - - return $this; - } - - /** - * The project that this resource belongs to, in the form of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * To search against `project`: - * * Use a field query. Example: `project:12345` - * * Use a free text query. Example: `12345` - * * Specify the `scope` field as this project in your search request. - * - * Generated from protobuf field string project = 3; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The project that this resource belongs to, in the form of - * projects/{PROJECT_NUMBER}. This field is available when the resource - * belongs to a project. - * To search against `project`: - * * Use a field query. Example: `project:12345` - * * Use a free text query. Example: `12345` - * * Specify the `scope` field as this project in your search request. - * - * Generated from protobuf field string project = 3; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * The folder(s) that this resource belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs to one or more folders. - * To search against `folders`: - * * Use a field query. Example: `folders:(123 OR 456)` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this folder in your search request. - * - * Generated from protobuf field repeated string folders = 17; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFolders() - { - return $this->folders; - } - - /** - * The folder(s) that this resource belongs to, in the form of - * folders/{FOLDER_NUMBER}. This field is available when the resource - * belongs to one or more folders. - * To search against `folders`: - * * Use a field query. Example: `folders:(123 OR 456)` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this folder in your search request. - * - * Generated from protobuf field repeated string folders = 17; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFolders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->folders = $arr; - - return $this; - } - - /** - * The organization that this resource belongs to, in the form of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs to an organization. - * To search against `organization`: - * * Use a field query. Example: `organization:123` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this organization in your search request. - * - * Generated from protobuf field string organization = 18; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * The organization that this resource belongs to, in the form of - * organizations/{ORGANIZATION_NUMBER}. This field is available when the - * resource belongs to an organization. - * To search against `organization`: - * * Use a field query. Example: `organization:123` - * * Use a free text query. Example: `123` - * * Specify the `scope` field as this organization in your search request. - * - * Generated from protobuf field string organization = 18; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - - /** - * The display name of this resource. This field is available only when the - * resource's Protobuf contains it. - * To search against the `display_name`: - * * Use a field query. Example: `displayName:"My Instance"` - * * Use a free text query. Example: `"My Instance"` - * - * Generated from protobuf field string display_name = 4; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of this resource. This field is available only when the - * resource's Protobuf contains it. - * To search against the `display_name`: - * * Use a field query. Example: `displayName:"My Instance"` - * * Use a free text query. Example: `"My Instance"` - * - * Generated from protobuf field string display_name = 4; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * One or more paragraphs of text description of this resource. Maximum length - * could be up to 1M bytes. This field is available only when the resource's - * Protobuf contains it. - * To search against the `description`: - * * Use a field query. Example: `description:"important instance"` - * * Use a free text query. Example: `"important instance"` - * - * Generated from protobuf field string description = 5; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * One or more paragraphs of text description of this resource. Maximum length - * could be up to 1M bytes. This field is available only when the resource's - * Protobuf contains it. - * To search against the `description`: - * * Use a field query. Example: `description:"important instance"` - * * Use a free text query. Example: `"important instance"` - * - * Generated from protobuf field string description = 5; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Location can be `global`, regional like `us-east1`, or zonal like - * `us-west1-b`. This field is available only when the resource's Protobuf - * contains it. - * To search against the `location`: - * * Use a field query. Example: `location:us-west*` - * * Use a free text query. Example: `us-west*` - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location can be `global`, regional like `us-east1`, or zonal like - * `us-west1-b`. This field is available only when the resource's Protobuf - * contains it. - * To search against the `location`: - * * Use a field query. Example: `location:us-west*` - * * Use a free text query. Example: `us-west*` - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * User labels associated with this resource. See [Labelling and grouping - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `labels`: - * * Use a field query: - * - query on any label's key or value. Example: `labels:prod` - * - query by a given label. Example: `labels.env:prod` - * - query by a given label's existence. Example: `labels.env:*` - * * Use a free text query. Example: `prod` - * - * Generated from protobuf field map labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User labels associated with this resource. See [Labelling and grouping - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `labels`: - * * Use a field query: - * - query on any label's key or value. Example: `labels:prod` - * - query by a given label. Example: `labels.env:prod` - * - query by a given label's existence. Example: `labels.env:*` - * * Use a free text query. Example: `prod` - * - * Generated from protobuf field map labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Network tags associated with this resource. Like labels, network tags are a - * type of annotations used to group Google Cloud resources. See [Labelling - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `network_tags`: - * * Use a field query. Example: `networkTags:internal` - * * Use a free text query. Example: `internal` - * - * Generated from protobuf field repeated string network_tags = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworkTags() - { - return $this->network_tags; - } - - /** - * Network tags associated with this resource. Like labels, network tags are a - * type of annotations used to group Google Cloud resources. See [Labelling - * Google Cloud - * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) - * for more information. This field is available only when the resource's - * Protobuf contains it. - * To search against the `network_tags`: - * * Use a field query. Example: `networkTags:internal` - * * Use a free text query. Example: `internal` - * - * Generated from protobuf field repeated string network_tags = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworkTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->network_tags = $arr; - - return $this; - } - - /** - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * name or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. - * This field only presents for the purpose of backward compatibility. - * Use the `kms_keys` field to retrieve Cloud KMS key information. This field - * is available only when the resource's Protobuf contains it and will only be - * populated for [these resource - * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) - * for backward compatible purposes. - * To search against the `kms_key`: - * * Use a field query. Example: `kmsKey:key` - * * Use a free text query. Example: `key` - * - * Generated from protobuf field string kms_key = 10 [deprecated = true]; - * @return string - * @deprecated - */ - public function getKmsKey() - { - @trigger_error('kms_key is deprecated.', E_USER_DEPRECATED); - return $this->kms_key; - } - - /** - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * name or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * name. - * This field only presents for the purpose of backward compatibility. - * Use the `kms_keys` field to retrieve Cloud KMS key information. This field - * is available only when the resource's Protobuf contains it and will only be - * populated for [these resource - * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) - * for backward compatible purposes. - * To search against the `kms_key`: - * * Use a field query. Example: `kmsKey:key` - * * Use a free text query. Example: `key` - * - * Generated from protobuf field string kms_key = 10 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setKmsKey($var) - { - @trigger_error('kms_key is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->kms_key = $var; - - return $this; - } - - /** - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * names or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * names. This field is available only when the resource's Protobuf contains - * it. - * To search against the `kms_keys`: - * * Use a field query. Example: `kmsKeys:key` - * * Use a free text query. Example: `key` - * - * Generated from protobuf field repeated string kms_keys = 28; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKmsKeys() - { - return $this->kms_keys; - } - - /** - * The Cloud KMS - * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) - * names or - * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) - * names. This field is available only when the resource's Protobuf contains - * it. - * To search against the `kms_keys`: - * * Use a field query. Example: `kmsKeys:key` - * * Use a free text query. Example: `key` - * - * Generated from protobuf field repeated string kms_keys = 28; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKmsKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->kms_keys = $arr; - - return $this; - } - - /** - * The create timestamp of this resource, at which the resource was created. - * The granularity is in seconds. Timestamp.nanos will always be 0. This field - * is available only when the resource's Protobuf contains it. - * To search against `create_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `createTime > 1609459200` - * - value in date string. Example: `createTime > 2021-01-01` - * - value in date-time string (must be quoted). Example: `createTime > - * "2021-01-01T00:00:00"` - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - * @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); - } - - /** - * The create timestamp of this resource, at which the resource was created. - * The granularity is in seconds. Timestamp.nanos will always be 0. This field - * is available only when the resource's Protobuf contains it. - * To search against `create_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `createTime > 1609459200` - * - value in date string. Example: `createTime > 2021-01-01` - * - value in date-time string (must be quoted). Example: `createTime > - * "2021-01-01T00:00:00"` - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The last update timestamp of this resource, at which the resource was last - * modified or deleted. The granularity is in seconds. Timestamp.nanos will - * always be 0. This field is available only when the resource's Protobuf - * contains it. - * To search against `update_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `updateTime < 1609459200` - * - value in date string. Example: `updateTime < 2021-01-01` - * - value in date-time string (must be quoted). Example: `updateTime < - * "2021-01-01T00:00:00"` - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12; - * @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); - } - - /** - * The last update timestamp of this resource, at which the resource was last - * modified or deleted. The granularity is in seconds. Timestamp.nanos will - * always be 0. This field is available only when the resource's Protobuf - * contains it. - * To search against `update_time`: - * * Use a field query. - * - value in seconds since unix epoch. Example: `updateTime < 1609459200` - * - value in date string. Example: `updateTime < 2021-01-01` - * - value in date-time string (must be quoted). Example: `updateTime < - * "2021-01-01T00:00:00"` - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 12; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The state of this resource. Different resources types have different state - * definitions that are mapped from various fields of different resource - * types. This field is available only when the resource's Protobuf contains - * it. - * Example: - * If the resource is an instance provided by Compute Engine, - * its state will include PROVISIONING, STAGING, RUNNING, STOPPING, - * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition - * in [API - * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances). - * If the resource is a project provided by Resource Manager, its state - * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and - * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API - * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). - * To search against the `state`: - * * Use a field query. Example: `state:RUNNING` - * * Use a free text query. Example: `RUNNING` - * - * Generated from protobuf field string state = 13; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * The state of this resource. Different resources types have different state - * definitions that are mapped from various fields of different resource - * types. This field is available only when the resource's Protobuf contains - * it. - * Example: - * If the resource is an instance provided by Compute Engine, - * its state will include PROVISIONING, STAGING, RUNNING, STOPPING, - * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition - * in [API - * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances). - * If the resource is a project provided by Resource Manager, its state - * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and - * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API - * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects). - * To search against the `state`: - * * Use a field query. Example: `state:RUNNING` - * * Use a free text query. Example: `RUNNING` - * - * Generated from protobuf field string state = 13; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - - /** - * The additional searchable attributes of this resource. The attributes may - * vary from one resource type to another. Examples: `projectId` for Project, - * `dnsName` for DNS ManagedZone. This field contains a subset of the resource - * metadata fields that are returned by the List or Get APIs provided by the - * corresponding Google Cloud service (e.g., Compute Engine). see [API - * references and supported searchable - * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * to see which fields are included. - * You can search values of these fields through free text search. However, - * you should not consume the field programically as the field names and - * values may change as the Google Cloud service updates to a new incompatible - * API version. - * To search against the `additional_attributes`: - * * Use a free text query to match the attributes values. Example: to search - * `additional_attributes = { dnsName: "foobar" }`, you can issue a query - * `foobar`. - * - * Generated from protobuf field .google.protobuf.Struct additional_attributes = 9; - * @return \Google\Protobuf\Struct|null - */ - public function getAdditionalAttributes() - { - return $this->additional_attributes; - } - - public function hasAdditionalAttributes() - { - return isset($this->additional_attributes); - } - - public function clearAdditionalAttributes() - { - unset($this->additional_attributes); - } - - /** - * The additional searchable attributes of this resource. The attributes may - * vary from one resource type to another. Examples: `projectId` for Project, - * `dnsName` for DNS ManagedZone. This field contains a subset of the resource - * metadata fields that are returned by the List or Get APIs provided by the - * corresponding Google Cloud service (e.g., Compute Engine). see [API - * references and supported searchable - * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * to see which fields are included. - * You can search values of these fields through free text search. However, - * you should not consume the field programically as the field names and - * values may change as the Google Cloud service updates to a new incompatible - * API version. - * To search against the `additional_attributes`: - * * Use a free text query to match the attributes values. Example: to search - * `additional_attributes = { dnsName: "foobar" }`, you can issue a query - * `foobar`. - * - * Generated from protobuf field .google.protobuf.Struct additional_attributes = 9; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setAdditionalAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->additional_attributes = $var; - - return $this; - } - - /** - * The full resource name of this resource's parent, if it has one. - * To search against the `parent_full_resource_name`: - * * Use a field query. Example: - * `parentFullResourceName:"project-name"` - * * Use a free text query. Example: - * `project-name` - * - * Generated from protobuf field string parent_full_resource_name = 19; - * @return string - */ - public function getParentFullResourceName() - { - return $this->parent_full_resource_name; - } - - /** - * The full resource name of this resource's parent, if it has one. - * To search against the `parent_full_resource_name`: - * * Use a field query. Example: - * `parentFullResourceName:"project-name"` - * * Use a free text query. Example: - * `project-name` - * - * Generated from protobuf field string parent_full_resource_name = 19; - * @param string $var - * @return $this - */ - public function setParentFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->parent_full_resource_name = $var; - - return $this; - } - - /** - * Versioned resource representations of this resource. This is repeated - * because there could be multiple versions of resource representations during - * version migration. - * This `versioned_resources` field is not searchable. Some attributes of the - * resource representations are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersionedResources() - { - return $this->versioned_resources; - } - - /** - * Versioned resource representations of this resource. This is repeated - * because there could be multiple versions of resource representations during - * version migration. - * This `versioned_resources` field is not searchable. Some attributes of the - * resource representations are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16; - * @param array<\Google\Cloud\Asset\V1\VersionedResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersionedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\VersionedResource::class); - $this->versioned_resources = $arr; - - return $this; - } - - /** - * Attached resources of this resource. For example, an OSConfig - * Inventory is an attached resource of a Compute Instance. This field is - * repeated because a resource could have multiple attached resources. - * This `attached_resources` field is not searchable. Some attributes - * of the attached resources are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttachedResources() - { - return $this->attached_resources; - } - - /** - * Attached resources of this resource. For example, an OSConfig - * Inventory is an attached resource of a Compute Instance. This field is - * repeated because a resource could have multiple attached resources. - * This `attached_resources` field is not searchable. Some attributes - * of the attached resources are exposed in `additional_attributes` field, so - * as to allow users to search on them. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20; - * @param array<\Google\Cloud\Asset\V1\AttachedResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttachedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\AttachedResource::class); - $this->attached_resources = $arr; - - return $this; - } - - /** - * A map of related resources of this resource, keyed by the - * relationship type. A relationship type is in the format of - * {SourceType}_{ACTION}_{DestType}. Example: `DISK_TO_INSTANCE`, - * `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`. - * See [supported relationship - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types). - * - * Generated from protobuf field map relationships = 21; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRelationships() - { - return $this->relationships; - } - - /** - * A map of related resources of this resource, keyed by the - * relationship type. A relationship type is in the format of - * {SourceType}_{ACTION}_{DestType}. Example: `DISK_TO_INSTANCE`, - * `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`. - * See [supported relationship - * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types). - * - * Generated from protobuf field map relationships = 21; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRelationships($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\RelatedResources::class); - $this->relationships = $arr; - - return $this; - } - - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * To search against the `tagKeys`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * * Use a free text query. Example: - * - `env` - * - * Generated from protobuf field repeated string tag_keys = 23 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getTagKeys() - { - @trigger_error('tag_keys is deprecated.', E_USER_DEPRECATED); - return $this->tag_keys; - } - - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * To search against the `tagKeys`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * * Use a free text query. Example: - * - `env` - * - * Generated from protobuf field repeated string tag_keys = 23 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setTagKeys($var) - { - @trigger_error('tag_keys is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tag_keys = $arr; - - return $this; - } - - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue namespaced names, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * To search against the `tagValues`: - * * Use a field query. Example: - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * * Use a free text query. Example: - * - `prod` - * - * Generated from protobuf field repeated string tag_values = 25 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getTagValues() - { - @trigger_error('tag_values is deprecated.', E_USER_DEPRECATED); - return $this->tag_values; - } - - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue namespaced names, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * To search against the `tagValues`: - * * Use a field query. Example: - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * * Use a free text query. Example: - * - `prod` - * - * Generated from protobuf field repeated string tag_values = 25 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setTagValues($var) - { - @trigger_error('tag_values is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tag_values = $arr; - - return $this; - } - - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}. - * To search against the `tagValueIds`: - * * Use a field query. Example: - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `456` - * - * Generated from protobuf field repeated string tag_value_ids = 26 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getTagValueIds() - { - @trigger_error('tag_value_ids is deprecated.', E_USER_DEPRECATED); - return $this->tag_value_ids; - } - - /** - * This field is only present for the purpose of backward compatibility. - * Use the `tags` field instead. - * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}. - * To search against the `tagValueIds`: - * * Use a field query. Example: - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `456` - * - * Generated from protobuf field repeated string tag_value_ids = 26 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setTagValueIds($var) - { - @trigger_error('tag_value_ids is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tag_value_ids = $arr; - - return $this; - } - - /** - * The tags directly attached to this resource. - * To search against the `tags`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * - `tagKeyIds="tagKeys/123"` - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `env/prod` - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Tag tags = 29; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * The tags directly attached to this resource. - * To search against the `tags`: - * * Use a field query. Example: - * - `tagKeys:"123456789/env*"` - * - `tagKeys="123456789/env"` - * - `tagKeys:"env"` - * - `tagKeyIds="tagKeys/123"` - * - `tagValues:"env"` - * - `tagValues:"env/prod"` - * - `tagValues:"123456789/env/prod*"` - * - `tagValues="123456789/env/prod"` - * - `tagValueIds="tagValues/456"` - * * Use a free text query. Example: - * - `env/prod` - * - * Generated from protobuf field repeated .google.cloud.asset.v1.Tag tags = 29; - * @param array<\Google\Cloud\Asset\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\Tag::class); - $this->tags = $arr; - - return $this; - } - - /** - * The effective tags on this resource. All of the tags that are both attached - * to and inherited by a resource are collectively called the effective - * tags. For more information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * To search against the `effective_tags`: - * * Use a field query. Example: - * - `effectiveTagKeys:"123456789/env*"` - * - `effectiveTagKeys="123456789/env"` - * - `effectiveTagKeys:"env"` - * - `effectiveTagKeyIds="tagKeys/123"` - * - `effectiveTagValues:"env"` - * - `effectiveTagValues:"env/prod"` - * - `effectiveTagValues:"123456789/env/prod*"` - * - `effectiveTagValues="123456789/env/prod"` - * - `effectiveTagValueIds="tagValues/456"` - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 30; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEffectiveTags() - { - return $this->effective_tags; - } - - /** - * The effective tags on this resource. All of the tags that are both attached - * to and inherited by a resource are collectively called the effective - * tags. For more information, see [tag - * inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). - * To search against the `effective_tags`: - * * Use a field query. Example: - * - `effectiveTagKeys:"123456789/env*"` - * - `effectiveTagKeys="123456789/env"` - * - `effectiveTagKeys:"env"` - * - `effectiveTagKeyIds="tagKeys/123"` - * - `effectiveTagValues:"env"` - * - `effectiveTagValues:"env/prod"` - * - `effectiveTagValues:"123456789/env/prod*"` - * - `effectiveTagValues="123456789/env/prod"` - * - `effectiveTagValueIds="tagValues/456"` - * - * Generated from protobuf field repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 30; - * @param array<\Google\Cloud\Asset\V1\EffectiveTagDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEffectiveTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\EffectiveTagDetails::class); - $this->effective_tags = $arr; - - return $this; - } - - /** - * The type of this resource's immediate parent, if there is one. - * To search against the `parent_asset_type`: - * * Use a field query. Example: - * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"` - * * Use a free text query. Example: - * `cloudresourcemanager.googleapis.com/Project` - * - * Generated from protobuf field string parent_asset_type = 103; - * @return string - */ - public function getParentAssetType() - { - return $this->parent_asset_type; - } - - /** - * The type of this resource's immediate parent, if there is one. - * To search against the `parent_asset_type`: - * * Use a field query. Example: - * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"` - * * Use a free text query. Example: - * `cloudresourcemanager.googleapis.com/Project` - * - * Generated from protobuf field string parent_asset_type = 103; - * @param string $var - * @return $this - */ - public function setParentAssetType($var) - { - GPBUtil::checkString($var, True); - $this->parent_asset_type = $var; - - return $this; - } - - /** - * The actual content of Security Command Center security marks associated - * with the asset. - * To search against SCC SecurityMarks field: - * * Use a field query: - * - query by a given key value pair. Example: `sccSecurityMarks.foo=bar` - * - query by a given key's existence. Example: `sccSecurityMarks.foo:*` - * - * Generated from protobuf field map scc_security_marks = 32; - * @return \Google\Protobuf\Internal\MapField - */ - public function getSccSecurityMarks() - { - return $this->scc_security_marks; - } - - /** - * The actual content of Security Command Center security marks associated - * with the asset. - * To search against SCC SecurityMarks field: - * * Use a field query: - * - query by a given key value pair. Example: `sccSecurityMarks.foo=bar` - * - query by a given key's existence. Example: `sccSecurityMarks.foo:*` - * - * Generated from protobuf field map scc_security_marks = 32; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setSccSecurityMarks($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->scc_security_marks = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SavedQuery.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SavedQuery.php deleted file mode 100644 index 3928fe35a45c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SavedQuery.php +++ /dev/null @@ -1,363 +0,0 @@ -google.cloud.asset.v1.SavedQuery - */ -class SavedQuery extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the saved query. The format must be: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The description of this saved query. This value should be fewer than 255 - * characters. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Output only. The create time of this saved query. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The account's email address who has created this saved query. - * - * Generated from protobuf field string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creator = ''; - /** - * Output only. The last update time of this saved query. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - /** - * Output only. The account's email address who has updated this saved query - * most recently. - * - * Generated from protobuf field string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_updater = ''; - /** - * Labels applied on the resource. - * This value should not contain more than 10 entries. The key and value of - * each entry must be non-empty and fewer than 64 characters. - * - * Generated from protobuf field map labels = 7; - */ - private $labels; - /** - * The query content. - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - */ - protected $content = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the saved query. The format must be: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * @type string $description - * The description of this saved query. This value should be fewer than 255 - * characters. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The create time of this saved query. - * @type string $creator - * Output only. The account's email address who has created this saved query. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. The last update time of this saved query. - * @type string $last_updater - * Output only. The account's email address who has updated this saved query - * most recently. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels applied on the resource. - * This value should not contain more than 10 entries. The key and value of - * each entry must be non-empty and fewer than 64 characters. - * @type \Google\Cloud\Asset\V1\SavedQuery\QueryContent $content - * The query content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the saved query. The format must be: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the saved query. The format must be: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * 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; - } - - /** - * The description of this saved query. This value should be fewer than 255 - * characters. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of this saved query. This value should be fewer than 255 - * characters. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The create time of this saved query. - * - * 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. The create time of this saved query. - * - * 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. The account's email address who has created this saved query. - * - * Generated from protobuf field string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreator() - { - return $this->creator; - } - - /** - * Output only. The account's email address who has created this saved query. - * - * Generated from protobuf field string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreator($var) - { - GPBUtil::checkString($var, True); - $this->creator = $var; - - return $this; - } - - /** - * Output only. The last update time of this saved query. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. The last update time of this saved query. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - - /** - * Output only. The account's email address who has updated this saved query - * most recently. - * - * Generated from protobuf field string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLastUpdater() - { - return $this->last_updater; - } - - /** - * Output only. The account's email address who has updated this saved query - * most recently. - * - * Generated from protobuf field string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLastUpdater($var) - { - GPBUtil::checkString($var, True); - $this->last_updater = $var; - - return $this; - } - - /** - * Labels applied on the resource. - * This value should not contain more than 10 entries. The key and value of - * each entry must be non-empty and fewer than 64 characters. - * - * Generated from protobuf field map labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels applied on the resource. - * This value should not contain more than 10 entries. The key and value of - * each entry must be non-empty and fewer than 64 characters. - * - * Generated from protobuf field map labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The query content. - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * @return \Google\Cloud\Asset\V1\SavedQuery\QueryContent|null - */ - public function getContent() - { - return $this->content; - } - - public function hasContent() - { - return isset($this->content); - } - - public function clearContent() - { - unset($this->content); - } - - /** - * The query content. - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * @param \Google\Cloud\Asset\V1\SavedQuery\QueryContent $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\SavedQuery\QueryContent::class); - $this->content = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SavedQuery/QueryContent.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SavedQuery/QueryContent.php deleted file mode 100644 index f88f91e790a2..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SavedQuery/QueryContent.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.asset.v1.SavedQuery.QueryContent - */ -class QueryContent extends \Google\Protobuf\Internal\Message -{ - protected $query_content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $iam_policy_analysis_query - * An IAM Policy Analysis query, which could be used in - * the - * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] - * RPC or the - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] - * RPC. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * An IAM Policy Analysis query, which could be used in - * the - * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] - * RPC or the - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] - * RPC. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * @return \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery|null - */ - public function getIamPolicyAnalysisQuery() - { - return $this->readOneof(1); - } - - public function hasIamPolicyAnalysisQuery() - { - return $this->hasOneof(1); - } - - /** - * An IAM Policy Analysis query, which could be used in - * the - * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] - * RPC or the - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] - * RPC. - * - * Generated from protobuf field .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * @param \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery $var - * @return $this - */ - public function setIamPolicyAnalysisQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\IamPolicyAnalysisQuery::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getQueryContent() - { - return $this->whichOneof("query_content"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryContent::class, \Google\Cloud\Asset\V1\SavedQuery_QueryContent::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllIamPoliciesRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllIamPoliciesRequest.php deleted file mode 100644 index f12c14204e78..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllIamPoliciesRequest.php +++ /dev/null @@ -1,612 +0,0 @@ -google.cloud.asset.v1.SearchAllIamPoliciesRequest - */ -class SearchAllIamPoliciesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the IAM policies within the `scope`. The caller must - * be granted the - * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = ''; - /** - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * IAM policies within the specified `scope`. Note that the query string is - * compared against each IAM policy binding, including its principals, - * roles, and IAM conditions. The returned IAM policies will only - * contain the bindings that match your query. To learn more about the IAM - * policy structure, see the [IAM policy - * documentation](https://cloud.google.com/iam/help/allow-policies/structure). - * Examples: - * * `policy:amy@gmail.com` to find IAM policy bindings that specify user - * "amy@gmail.com". - * * `policy:roles/compute.admin` to find IAM policy bindings that specify - * the Compute Admin role. - * * `policy:comp*` to find IAM policy bindings that contain "comp" as a - * prefix of any word in the binding. - * * `policy.role.permissions:storage.buckets.update` to find IAM policy - * bindings that specify a role containing "storage.buckets.update" - * permission. Note that if callers don't have `iam.roles.get` access to a - * role's included permissions, policy bindings that specify this role will - * be dropped from the search results. - * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a - * role containing "upd" as a prefix of any word in the role permission. - * Note that if callers don't have `iam.roles.get` access to a role's - * included permissions, policy bindings that specify this role will be - * dropped from the search results. - * * `resource:organizations/123456` to find IAM policy bindings - * that are set on "organizations/123456". - * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to - * find IAM policy bindings that are set on the project named "myproject". - * * `Important` to find IAM policy bindings that contain "Important" as a - * word in any of the searchable fields (except for the included - * permissions). - * * `resource:(instance1 OR instance2) policy:amy` to find - * IAM policy bindings that are set on resources "instance1" or - * "instance2" and also specify user "amy". - * * `roles:roles/compute.admin` to find IAM policy bindings that specify the - * Compute Admin role. - * * `memberTypes:user` to find IAM policy bindings that contain the - * principal type "user". - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $query = ''; - /** - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. If present, retrieve the next batch of results from the preceding - * call to this method. `page_token` must be the value of `next_page_token` - * from the previous response. The values of all other method parameters must - * be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A list of asset types that the IAM policies are attached to. If - * empty, it will search the IAM policies that are attached to all the asset - * types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type - * starts with "compute.googleapis.com". - * * ".*Instance" snapshots IAM policies attached to asset type ends with - * "Instance". - * * ".*Instance.*" snapshots IAM policies attached to asset type contains - * "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $asset_types; - /** - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "assetType DESC, resource". - * Only singular primitive fields in the response are sortable: - * * resource - * * assetType - * * project - * All the other fields such as repeated fields (e.g., `folders`) and - * non-primitive fields (e.g., `policy`) are not supported. - * - * Generated from protobuf field string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $scope Required. A scope can be a project, a folder, or an organization. The - * search is limited to the IAM policies within the `scope`. The caller must - * be granted the - * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * - * The allowed values are: - * - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @param string $query Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * IAM policies within the specified `scope`. Note that the query string is - * compared against each IAM policy binding, including its principals, - * roles, and IAM conditions. The returned IAM policies will only - * contain the bindings that match your query. To learn more about the IAM - * policy structure, see the [IAM policy - * documentation](https://cloud.google.com/iam/help/allow-policies/structure). - * - * Examples: - * - * * `policy:amy@gmail.com` to find IAM policy bindings that specify user - * "amy@gmail.com". - * * `policy:roles/compute.admin` to find IAM policy bindings that specify - * the Compute Admin role. - * * `policy:comp*` to find IAM policy bindings that contain "comp" as a - * prefix of any word in the binding. - * * `policy.role.permissions:storage.buckets.update` to find IAM policy - * bindings that specify a role containing "storage.buckets.update" - * permission. Note that if callers don't have `iam.roles.get` access to a - * role's included permissions, policy bindings that specify this role will - * be dropped from the search results. - * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a - * role containing "upd" as a prefix of any word in the role permission. - * Note that if callers don't have `iam.roles.get` access to a role's - * included permissions, policy bindings that specify this role will be - * dropped from the search results. - * * `resource:organizations/123456` to find IAM policy bindings - * that are set on "organizations/123456". - * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to - * find IAM policy bindings that are set on the project named "myproject". - * * `Important` to find IAM policy bindings that contain "Important" as a - * word in any of the searchable fields (except for the included - * permissions). - * * `resource:(instance1 OR instance2) policy:amy` to find - * IAM policy bindings that are set on resources "instance1" or - * "instance2" and also specify user "amy". - * * `roles:roles/compute.admin` to find IAM policy bindings that specify the - * Compute Admin role. - * * `memberTypes:user` to find IAM policy bindings that contain the - * principal type "user". - * - * @return \Google\Cloud\Asset\V1\SearchAllIamPoliciesRequest - * - * @experimental - */ - public static function build(string $scope, string $query): self - { - return (new self()) - ->setScope($scope) - ->setQuery($query); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the IAM policies within the `scope`. The caller must - * be granted the - * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $query - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * IAM policies within the specified `scope`. Note that the query string is - * compared against each IAM policy binding, including its principals, - * roles, and IAM conditions. The returned IAM policies will only - * contain the bindings that match your query. To learn more about the IAM - * policy structure, see the [IAM policy - * documentation](https://cloud.google.com/iam/help/allow-policies/structure). - * Examples: - * * `policy:amy@gmail.com` to find IAM policy bindings that specify user - * "amy@gmail.com". - * * `policy:roles/compute.admin` to find IAM policy bindings that specify - * the Compute Admin role. - * * `policy:comp*` to find IAM policy bindings that contain "comp" as a - * prefix of any word in the binding. - * * `policy.role.permissions:storage.buckets.update` to find IAM policy - * bindings that specify a role containing "storage.buckets.update" - * permission. Note that if callers don't have `iam.roles.get` access to a - * role's included permissions, policy bindings that specify this role will - * be dropped from the search results. - * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a - * role containing "upd" as a prefix of any word in the role permission. - * Note that if callers don't have `iam.roles.get` access to a role's - * included permissions, policy bindings that specify this role will be - * dropped from the search results. - * * `resource:organizations/123456` to find IAM policy bindings - * that are set on "organizations/123456". - * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to - * find IAM policy bindings that are set on the project named "myproject". - * * `Important` to find IAM policy bindings that contain "Important" as a - * word in any of the searchable fields (except for the included - * permissions). - * * `resource:(instance1 OR instance2) policy:amy` to find - * IAM policy bindings that are set on resources "instance1" or - * "instance2" and also specify user "amy". - * * `roles:roles/compute.admin` to find IAM policy bindings that specify the - * Compute Admin role. - * * `memberTypes:user` to find IAM policy bindings that contain the - * principal type "user". - * @type int $page_size - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * @type string $page_token - * Optional. If present, retrieve the next batch of results from the preceding - * call to this method. `page_token` must be the value of `next_page_token` - * from the previous response. The values of all other method parameters must - * be identical to those in the previous call. - * @type array|\Google\Protobuf\Internal\RepeatedField $asset_types - * Optional. A list of asset types that the IAM policies are attached to. If - * empty, it will search the IAM policies that are attached to all the asset - * types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type - * starts with "compute.googleapis.com". - * * ".*Instance" snapshots IAM policies attached to asset type ends with - * "Instance". - * * ".*Instance.*" snapshots IAM policies attached to asset type contains - * "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * @type string $order_by - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "assetType DESC, resource". - * Only singular primitive fields in the response are sortable: - * * resource - * * assetType - * * project - * All the other fields such as repeated fields (e.g., `folders`) and - * non-primitive fields (e.g., `policy`) are not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the IAM policies within the `scope`. The caller must - * be granted the - * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the IAM policies within the `scope`. The caller must - * be granted the - * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * IAM policies within the specified `scope`. Note that the query string is - * compared against each IAM policy binding, including its principals, - * roles, and IAM conditions. The returned IAM policies will only - * contain the bindings that match your query. To learn more about the IAM - * policy structure, see the [IAM policy - * documentation](https://cloud.google.com/iam/help/allow-policies/structure). - * Examples: - * * `policy:amy@gmail.com` to find IAM policy bindings that specify user - * "amy@gmail.com". - * * `policy:roles/compute.admin` to find IAM policy bindings that specify - * the Compute Admin role. - * * `policy:comp*` to find IAM policy bindings that contain "comp" as a - * prefix of any word in the binding. - * * `policy.role.permissions:storage.buckets.update` to find IAM policy - * bindings that specify a role containing "storage.buckets.update" - * permission. Note that if callers don't have `iam.roles.get` access to a - * role's included permissions, policy bindings that specify this role will - * be dropped from the search results. - * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a - * role containing "upd" as a prefix of any word in the role permission. - * Note that if callers don't have `iam.roles.get` access to a role's - * included permissions, policy bindings that specify this role will be - * dropped from the search results. - * * `resource:organizations/123456` to find IAM policy bindings - * that are set on "organizations/123456". - * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to - * find IAM policy bindings that are set on the project named "myproject". - * * `Important` to find IAM policy bindings that contain "Important" as a - * word in any of the searchable fields (except for the included - * permissions). - * * `resource:(instance1 OR instance2) policy:amy` to find - * IAM policy bindings that are set on resources "instance1" or - * "instance2" and also specify user "amy". - * * `roles:roles/compute.admin` to find IAM policy bindings that specify the - * Compute Admin role. - * * `memberTypes:user` to find IAM policy bindings that contain the - * principal type "user". - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * IAM policies within the specified `scope`. Note that the query string is - * compared against each IAM policy binding, including its principals, - * roles, and IAM conditions. The returned IAM policies will only - * contain the bindings that match your query. To learn more about the IAM - * policy structure, see the [IAM policy - * documentation](https://cloud.google.com/iam/help/allow-policies/structure). - * Examples: - * * `policy:amy@gmail.com` to find IAM policy bindings that specify user - * "amy@gmail.com". - * * `policy:roles/compute.admin` to find IAM policy bindings that specify - * the Compute Admin role. - * * `policy:comp*` to find IAM policy bindings that contain "comp" as a - * prefix of any word in the binding. - * * `policy.role.permissions:storage.buckets.update` to find IAM policy - * bindings that specify a role containing "storage.buckets.update" - * permission. Note that if callers don't have `iam.roles.get` access to a - * role's included permissions, policy bindings that specify this role will - * be dropped from the search results. - * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a - * role containing "upd" as a prefix of any word in the role permission. - * Note that if callers don't have `iam.roles.get` access to a role's - * included permissions, policy bindings that specify this role will be - * dropped from the search results. - * * `resource:organizations/123456` to find IAM policy bindings - * that are set on "organizations/123456". - * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to - * find IAM policy bindings that are set on the project named "myproject". - * * `Important` to find IAM policy bindings that contain "Important" as a - * word in any of the searchable fields (except for the included - * permissions). - * * `resource:(instance1 OR instance2) policy:amy` to find - * IAM policy bindings that are set on resources "instance1" or - * "instance2" and also specify user "amy". - * * `roles:roles/compute.admin` to find IAM policy bindings that specify the - * Compute Admin role. - * * `memberTypes:user` to find IAM policy bindings that contain the - * principal type "user". - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. If present, retrieve the next batch of results from the preceding - * call to this method. `page_token` must be the value of `next_page_token` - * from the previous response. The values of all other method parameters must - * be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. If present, retrieve the next batch of results from the preceding - * call to this method. `page_token` must be the value of `next_page_token` - * from the previous response. The values of all other method parameters must - * be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A list of asset types that the IAM policies are attached to. If - * empty, it will search the IAM policies that are attached to all the asset - * types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type - * starts with "compute.googleapis.com". - * * ".*Instance" snapshots IAM policies attached to asset type ends with - * "Instance". - * * ".*Instance.*" snapshots IAM policies attached to asset type contains - * "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssetTypes() - { - return $this->asset_types; - } - - /** - * Optional. A list of asset types that the IAM policies are attached to. If - * empty, it will search the IAM policies that are attached to all the asset - * types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type - * starts with "compute.googleapis.com". - * * ".*Instance" snapshots IAM policies attached to asset type ends with - * "Instance". - * * ".*Instance.*" snapshots IAM policies attached to asset type contains - * "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asset_types = $arr; - - return $this; - } - - /** - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "assetType DESC, resource". - * Only singular primitive fields in the response are sortable: - * * resource - * * assetType - * * project - * All the other fields such as repeated fields (e.g., `folders`) and - * non-primitive fields (e.g., `policy`) are not supported. - * - * Generated from protobuf field string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "assetType DESC, resource". - * Only singular primitive fields in the response are sortable: - * * resource - * * assetType - * * project - * All the other fields such as repeated fields (e.g., `folders`) and - * non-primitive fields (e.g., `policy`) are not supported. - * - * Generated from protobuf field string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllIamPoliciesResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllIamPoliciesResponse.php deleted file mode 100644 index c1f4ab0abb2f..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllIamPoliciesResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.asset.v1.SearchAllIamPoliciesResponse - */ -class SearchAllIamPoliciesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of IAM policies that match the search query. Related information - * such as the associated resource is returned along with the policy. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; - */ - private $results; - /** - * Set if there are more results than those appearing in this response; to get - * the next set of results, call this method again, using this value as the - * `page_token`. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\IamPolicySearchResult>|\Google\Protobuf\Internal\RepeatedField $results - * A list of IAM policies that match the search query. Related information - * such as the associated resource is returned along with the policy. - * @type string $next_page_token - * Set if there are more results than those appearing in this response; to get - * the next set of results, call this method again, using this value as the - * `page_token`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * A list of IAM policies that match the search query. Related information - * such as the associated resource is returned along with the policy. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResults() - { - return $this->results; - } - - /** - * A list of IAM policies that match the search query. Related information - * such as the associated resource is returned along with the policy. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; - * @param array<\Google\Cloud\Asset\V1\IamPolicySearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\IamPolicySearchResult::class); - $this->results = $arr; - - return $this; - } - - /** - * Set if there are more results than those appearing in this response; to get - * the next set of results, call this method again, using this value as the - * `page_token`. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Set if there are more results than those appearing in this response; to get - * the next set of results, call this method again, using this value as the - * `page_token`. - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllResourcesRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllResourcesRequest.php deleted file mode 100644 index 700bd3911bd3..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllResourcesRequest.php +++ /dev/null @@ -1,985 +0,0 @@ -google.cloud.asset.v1.SearchAllResourcesRequest - */ -class SearchAllResourcesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the resources within the `scope`. The caller must be - * granted the - * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = ''; - /** - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * resources within the specified `scope`. - * Examples: - * * `name:Important` to find Google Cloud resources whose name contains - * `Important` as a word. - * * `name=Important` to find the Google Cloud resource whose name is exactly - * `Important`. - * * `displayName:Impor*` to find Google Cloud resources whose display name - * contains `Impor` as a prefix of any word in the field. - * * `location:us-west*` to find Google Cloud resources whose location - * contains both `us` and `west` as prefixes. - * * `labels:prod` to find Google Cloud resources whose labels contain `prod` - * as a key or value. - * * `labels.env:prod` to find Google Cloud resources that have a label `env` - * and its value is `prod`. - * * `labels.env:*` to find Google Cloud resources that have a label `env`. - * * `tagKeys:env` to find Google Cloud resources that have directly - * attached tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `tagValues:prod*` to find Google Cloud resources that have directly - * attached tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `tagValueIds=tagValues/123` to find Google Cloud resources that have - * directly attached tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `effectiveTagKeys:env` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `effectiveTagValues:prod*` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that - * have directly attached or inherited tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `kmsKey:key` to find Google Cloud resources encrypted with a - * customer-managed encryption key whose name contains `key` as a word. This - * field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS - * key information. - * * `kmsKeys:key` to find Google Cloud resources encrypted with - * customer-managed encryption keys whose name contains the word `key`. - * * `relationships:instance-group-1` to find Google Cloud resources that have - * relationships with `instance-group-1` in the related resource name. - * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine - * instances that have relationships of type `INSTANCE_TO_INSTANCEGROUP`. - * * `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find - * Compute Engine instances that have relationships with `instance-group-1` - * in the Compute Engine instance group resource name, for relationship type - * `INSTANCE_TO_INSTANCEGROUP`. - * * `sccSecurityMarks.key=value` to find Cloud resources that are attached - * with security marks whose key is `key` and value is `value`. - * * `sccSecurityMarks.key:*` to find Cloud resources that are attached with - * security marks whose key is `key`. - * * `state:ACTIVE` to find Google Cloud resources whose state contains - * `ACTIVE` as a word. - * * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't - * contain `ACTIVE` as a word. - * * `createTime<1609459200` to find Google Cloud resources that were created - * before `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `updateTime>1609459200` to find Google Cloud resources that were updated - * after `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `Important` to find Google Cloud resources that contain `Important` as a - * word in any of the searchable fields. - * * `Impor*` to find Google Cloud resources that contain `Impor` as a prefix - * of any word in any of the searchable fields. - * * `Important location:(us-west1 OR global)` to find Google Cloud - * resources that contain `Important` as a word in any of the searchable - * fields and are also located in the `us-west1` region or the `global` - * location. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $query = ''; - /** - * Optional. A list of asset types that this request searches for. If empty, - * it will search all the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $asset_types; - /** - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. If present, then retrieve the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of all other - * method parameters, must be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "location DESC, name". - * Only the following fields in the response are sortable: - * * name - * * assetType - * * project - * * displayName - * * description - * * location - * * createTime - * * updateTime - * * state - * * parentFullResourceName - * * parentAssetType - * - * Generated from protobuf field string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. A comma-separated list of fields that you want returned in the - * results. The following fields are returned by default if not specified: - * * `name` - * * `assetType` - * * `project` - * * `folders` - * * `organization` - * * `displayName` - * * `description` - * * `location` - * * `labels` - * * `tags` - * * `effectiveTags` - * * `networkTags` - * * `kmsKeys` - * * `createTime` - * * `updateTime` - * * `state` - * * `additionalAttributes` - * * `parentFullResourceName` - * * `parentAssetType` - * Some fields of large size, such as `versionedResources`, - * `attachedResources`, `effectiveTags` etc., are not returned by default, but - * you can specify them in the `read_mask` parameter if you want to include - * them. If `"*"` is specified, all [available - * fields](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources#resourcesearchresult) - * are returned. - * Examples: `"name,location"`, `"name,versionedResources"`, `"*"`. - * Any invalid field path will trigger INVALID_ARGUMENT error. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $read_mask = null; - - /** - * @param string $scope Required. A scope can be a project, a folder, or an organization. The - * search is limited to the resources within the `scope`. The caller must be - * granted the - * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * - * The allowed values are: - * - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @param string $query Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * resources within the specified `scope`. - * - * Examples: - * - * * `name:Important` to find Google Cloud resources whose name contains - * `Important` as a word. - * * `name=Important` to find the Google Cloud resource whose name is exactly - * `Important`. - * * `displayName:Impor*` to find Google Cloud resources whose display name - * contains `Impor` as a prefix of any word in the field. - * * `location:us-west*` to find Google Cloud resources whose location - * contains both `us` and `west` as prefixes. - * * `labels:prod` to find Google Cloud resources whose labels contain `prod` - * as a key or value. - * * `labels.env:prod` to find Google Cloud resources that have a label `env` - * and its value is `prod`. - * * `labels.env:*` to find Google Cloud resources that have a label `env`. - * * `tagKeys:env` to find Google Cloud resources that have directly - * attached tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `tagValues:prod*` to find Google Cloud resources that have directly - * attached tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `tagValueIds=tagValues/123` to find Google Cloud resources that have - * directly attached tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `effectiveTagKeys:env` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `effectiveTagValues:prod*` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that - * have directly attached or inherited tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `kmsKey:key` to find Google Cloud resources encrypted with a - * customer-managed encryption key whose name contains `key` as a word. This - * field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS - * key information. - * * `kmsKeys:key` to find Google Cloud resources encrypted with - * customer-managed encryption keys whose name contains the word `key`. - * * `relationships:instance-group-1` to find Google Cloud resources that have - * relationships with `instance-group-1` in the related resource name. - * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine - * instances that have relationships of type `INSTANCE_TO_INSTANCEGROUP`. - * * `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find - * Compute Engine instances that have relationships with `instance-group-1` - * in the Compute Engine instance group resource name, for relationship type - * `INSTANCE_TO_INSTANCEGROUP`. - * * `sccSecurityMarks.key=value` to find Cloud resources that are attached - * with security marks whose key is `key` and value is `value`. - * * `sccSecurityMarks.key:*` to find Cloud resources that are attached with - * security marks whose key is `key`. - * * `state:ACTIVE` to find Google Cloud resources whose state contains - * `ACTIVE` as a word. - * * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't - * contain `ACTIVE` as a word. - * * `createTime<1609459200` to find Google Cloud resources that were created - * before `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `updateTime>1609459200` to find Google Cloud resources that were updated - * after `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `Important` to find Google Cloud resources that contain `Important` as a - * word in any of the searchable fields. - * * `Impor*` to find Google Cloud resources that contain `Impor` as a prefix - * of any word in any of the searchable fields. - * * `Important location:(us-west1 OR global)` to find Google Cloud - * resources that contain `Important` as a word in any of the searchable - * fields and are also located in the `us-west1` region or the `global` - * location. - * @param string[] $assetTypes Optional. A list of asset types that this request searches for. If empty, - * it will search all the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * - * Regular expressions are also supported. For example: - * - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * - * @return \Google\Cloud\Asset\V1\SearchAllResourcesRequest - * - * @experimental - */ - public static function build(string $scope, string $query, array $assetTypes): self - { - return (new self()) - ->setScope($scope) - ->setQuery($query) - ->setAssetTypes($assetTypes); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $scope - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the resources within the `scope`. The caller must be - * granted the - * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $query - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * resources within the specified `scope`. - * Examples: - * * `name:Important` to find Google Cloud resources whose name contains - * `Important` as a word. - * * `name=Important` to find the Google Cloud resource whose name is exactly - * `Important`. - * * `displayName:Impor*` to find Google Cloud resources whose display name - * contains `Impor` as a prefix of any word in the field. - * * `location:us-west*` to find Google Cloud resources whose location - * contains both `us` and `west` as prefixes. - * * `labels:prod` to find Google Cloud resources whose labels contain `prod` - * as a key or value. - * * `labels.env:prod` to find Google Cloud resources that have a label `env` - * and its value is `prod`. - * * `labels.env:*` to find Google Cloud resources that have a label `env`. - * * `tagKeys:env` to find Google Cloud resources that have directly - * attached tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `tagValues:prod*` to find Google Cloud resources that have directly - * attached tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `tagValueIds=tagValues/123` to find Google Cloud resources that have - * directly attached tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `effectiveTagKeys:env` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `effectiveTagValues:prod*` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that - * have directly attached or inherited tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `kmsKey:key` to find Google Cloud resources encrypted with a - * customer-managed encryption key whose name contains `key` as a word. This - * field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS - * key information. - * * `kmsKeys:key` to find Google Cloud resources encrypted with - * customer-managed encryption keys whose name contains the word `key`. - * * `relationships:instance-group-1` to find Google Cloud resources that have - * relationships with `instance-group-1` in the related resource name. - * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine - * instances that have relationships of type `INSTANCE_TO_INSTANCEGROUP`. - * * `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find - * Compute Engine instances that have relationships with `instance-group-1` - * in the Compute Engine instance group resource name, for relationship type - * `INSTANCE_TO_INSTANCEGROUP`. - * * `sccSecurityMarks.key=value` to find Cloud resources that are attached - * with security marks whose key is `key` and value is `value`. - * * `sccSecurityMarks.key:*` to find Cloud resources that are attached with - * security marks whose key is `key`. - * * `state:ACTIVE` to find Google Cloud resources whose state contains - * `ACTIVE` as a word. - * * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't - * contain `ACTIVE` as a word. - * * `createTime<1609459200` to find Google Cloud resources that were created - * before `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `updateTime>1609459200` to find Google Cloud resources that were updated - * after `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `Important` to find Google Cloud resources that contain `Important` as a - * word in any of the searchable fields. - * * `Impor*` to find Google Cloud resources that contain `Impor` as a prefix - * of any word in any of the searchable fields. - * * `Important location:(us-west1 OR global)` to find Google Cloud - * resources that contain `Important` as a word in any of the searchable - * fields and are also located in the `us-west1` region or the `global` - * location. - * @type array|\Google\Protobuf\Internal\RepeatedField $asset_types - * Optional. A list of asset types that this request searches for. If empty, - * it will search all the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * @type int $page_size - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * @type string $page_token - * Optional. If present, then retrieve the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of all other - * method parameters, must be identical to those in the previous call. - * @type string $order_by - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "location DESC, name". - * Only the following fields in the response are sortable: - * * name - * * assetType - * * project - * * displayName - * * description - * * location - * * createTime - * * updateTime - * * state - * * parentFullResourceName - * * parentAssetType - * @type \Google\Protobuf\FieldMask $read_mask - * Optional. A comma-separated list of fields that you want returned in the - * results. The following fields are returned by default if not specified: - * * `name` - * * `assetType` - * * `project` - * * `folders` - * * `organization` - * * `displayName` - * * `description` - * * `location` - * * `labels` - * * `tags` - * * `effectiveTags` - * * `networkTags` - * * `kmsKeys` - * * `createTime` - * * `updateTime` - * * `state` - * * `additionalAttributes` - * * `parentFullResourceName` - * * `parentAssetType` - * Some fields of large size, such as `versionedResources`, - * `attachedResources`, `effectiveTags` etc., are not returned by default, but - * you can specify them in the `read_mask` parameter if you want to include - * them. If `"*"` is specified, all [available - * fields](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources#resourcesearchresult) - * are returned. - * Examples: `"name,location"`, `"name,versionedResources"`, `"*"`. - * Any invalid field path will trigger INVALID_ARGUMENT error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the resources within the `scope`. The caller must be - * granted the - * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Required. A scope can be a project, a folder, or an organization. The - * search is limited to the resources within the `scope`. The caller must be - * granted the - * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) - * permission on the desired scope. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * resources within the specified `scope`. - * Examples: - * * `name:Important` to find Google Cloud resources whose name contains - * `Important` as a word. - * * `name=Important` to find the Google Cloud resource whose name is exactly - * `Important`. - * * `displayName:Impor*` to find Google Cloud resources whose display name - * contains `Impor` as a prefix of any word in the field. - * * `location:us-west*` to find Google Cloud resources whose location - * contains both `us` and `west` as prefixes. - * * `labels:prod` to find Google Cloud resources whose labels contain `prod` - * as a key or value. - * * `labels.env:prod` to find Google Cloud resources that have a label `env` - * and its value is `prod`. - * * `labels.env:*` to find Google Cloud resources that have a label `env`. - * * `tagKeys:env` to find Google Cloud resources that have directly - * attached tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `tagValues:prod*` to find Google Cloud resources that have directly - * attached tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `tagValueIds=tagValues/123` to find Google Cloud resources that have - * directly attached tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `effectiveTagKeys:env` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `effectiveTagValues:prod*` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that - * have directly attached or inherited tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `kmsKey:key` to find Google Cloud resources encrypted with a - * customer-managed encryption key whose name contains `key` as a word. This - * field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS - * key information. - * * `kmsKeys:key` to find Google Cloud resources encrypted with - * customer-managed encryption keys whose name contains the word `key`. - * * `relationships:instance-group-1` to find Google Cloud resources that have - * relationships with `instance-group-1` in the related resource name. - * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine - * instances that have relationships of type `INSTANCE_TO_INSTANCEGROUP`. - * * `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find - * Compute Engine instances that have relationships with `instance-group-1` - * in the Compute Engine instance group resource name, for relationship type - * `INSTANCE_TO_INSTANCEGROUP`. - * * `sccSecurityMarks.key=value` to find Cloud resources that are attached - * with security marks whose key is `key` and value is `value`. - * * `sccSecurityMarks.key:*` to find Cloud resources that are attached with - * security marks whose key is `key`. - * * `state:ACTIVE` to find Google Cloud resources whose state contains - * `ACTIVE` as a word. - * * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't - * contain `ACTIVE` as a word. - * * `createTime<1609459200` to find Google Cloud resources that were created - * before `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `updateTime>1609459200` to find Google Cloud resources that were updated - * after `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `Important` to find Google Cloud resources that contain `Important` as a - * word in any of the searchable fields. - * * `Impor*` to find Google Cloud resources that contain `Impor` as a prefix - * of any word in any of the searchable fields. - * * `Important location:(us-west1 OR global)` to find Google Cloud - * resources that contain `Important` as a word in any of the searchable - * fields and are also located in the `us-west1` region or the `global` - * location. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Optional. The query statement. See [how to construct a - * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) - * for more information. If not specified or empty, it will search all the - * resources within the specified `scope`. - * Examples: - * * `name:Important` to find Google Cloud resources whose name contains - * `Important` as a word. - * * `name=Important` to find the Google Cloud resource whose name is exactly - * `Important`. - * * `displayName:Impor*` to find Google Cloud resources whose display name - * contains `Impor` as a prefix of any word in the field. - * * `location:us-west*` to find Google Cloud resources whose location - * contains both `us` and `west` as prefixes. - * * `labels:prod` to find Google Cloud resources whose labels contain `prod` - * as a key or value. - * * `labels.env:prod` to find Google Cloud resources that have a label `env` - * and its value is `prod`. - * * `labels.env:*` to find Google Cloud resources that have a label `env`. - * * `tagKeys:env` to find Google Cloud resources that have directly - * attached tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `tagValues:prod*` to find Google Cloud resources that have directly - * attached tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `tagValueIds=tagValues/123` to find Google Cloud resources that have - * directly attached tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `effectiveTagKeys:env` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey) - * contains `env`. - * * `effectiveTagValues:prod*` to find Google Cloud resources that have - * directly attached or inherited tags where the - * [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * contains a word prefixed by `prod`. - * * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that - * have directly attached or inherited tags where the - * [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue) - * is exactly `tagValues/123`. - * * `kmsKey:key` to find Google Cloud resources encrypted with a - * customer-managed encryption key whose name contains `key` as a word. This - * field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS - * key information. - * * `kmsKeys:key` to find Google Cloud resources encrypted with - * customer-managed encryption keys whose name contains the word `key`. - * * `relationships:instance-group-1` to find Google Cloud resources that have - * relationships with `instance-group-1` in the related resource name. - * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine - * instances that have relationships of type `INSTANCE_TO_INSTANCEGROUP`. - * * `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find - * Compute Engine instances that have relationships with `instance-group-1` - * in the Compute Engine instance group resource name, for relationship type - * `INSTANCE_TO_INSTANCEGROUP`. - * * `sccSecurityMarks.key=value` to find Cloud resources that are attached - * with security marks whose key is `key` and value is `value`. - * * `sccSecurityMarks.key:*` to find Cloud resources that are attached with - * security marks whose key is `key`. - * * `state:ACTIVE` to find Google Cloud resources whose state contains - * `ACTIVE` as a word. - * * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't - * contain `ACTIVE` as a word. - * * `createTime<1609459200` to find Google Cloud resources that were created - * before `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `updateTime>1609459200` to find Google Cloud resources that were updated - * after `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of - * `2021-01-01 00:00:00 UTC` in seconds. - * * `Important` to find Google Cloud resources that contain `Important` as a - * word in any of the searchable fields. - * * `Impor*` to find Google Cloud resources that contain `Impor` as a prefix - * of any word in any of the searchable fields. - * * `Important location:(us-west1 OR global)` to find Google Cloud - * resources that contain `Important` as a word in any of the searchable - * fields and are also located in the `us-west1` region or the `global` - * location. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. A list of asset types that this request searches for. If empty, - * it will search all the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssetTypes() - { - return $this->asset_types; - } - - /** - * Optional. A list of asset types that this request searches for. If empty, - * it will search all the asset types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - * Regular expressions are also supported. For example: - * * "compute.googleapis.com.*" snapshots resources whose asset type starts - * with "compute.googleapis.com". - * * ".*Instance" snapshots resources whose asset type ends with "Instance". - * * ".*Instance.*" snapshots resources whose asset type contains "Instance". - * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported - * regular expression syntax. If the regular expression does not match any - * supported asset type, an INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf field repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asset_types = $arr; - - return $this; - } - - /** - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The page size for search result pagination. Page size is capped - * at 500 even if a larger value is given. If set to zero or a negative value, - * server will pick an appropriate default. Returned results may be fewer than - * requested. When this happens, there could be more results as long as - * `next_page_token` is returned. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. If present, then retrieve the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of all other - * method parameters, must be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. If present, then retrieve the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of all other - * method parameters, must be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "location DESC, name". - * Only the following fields in the response are sortable: - * * name - * * assetType - * * project - * * displayName - * * description - * * location - * * createTime - * * updateTime - * * state - * * parentFullResourceName - * * parentAssetType - * - * Generated from protobuf field string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. A comma-separated list of fields specifying the sorting order of - * the results. The default order is ascending. Add " DESC" after the field - * name to indicate descending order. Redundant space characters are ignored. - * Example: "location DESC, name". - * Only the following fields in the response are sortable: - * * name - * * assetType - * * project - * * displayName - * * description - * * location - * * createTime - * * updateTime - * * state - * * parentFullResourceName - * * parentAssetType - * - * Generated from protobuf field string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. A comma-separated list of fields that you want returned in the - * results. The following fields are returned by default if not specified: - * * `name` - * * `assetType` - * * `project` - * * `folders` - * * `organization` - * * `displayName` - * * `description` - * * `location` - * * `labels` - * * `tags` - * * `effectiveTags` - * * `networkTags` - * * `kmsKeys` - * * `createTime` - * * `updateTime` - * * `state` - * * `additionalAttributes` - * * `parentFullResourceName` - * * `parentAssetType` - * Some fields of large size, such as `versionedResources`, - * `attachedResources`, `effectiveTags` etc., are not returned by default, but - * you can specify them in the `read_mask` parameter if you want to include - * them. If `"*"` is specified, all [available - * fields](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources#resourcesearchresult) - * are returned. - * Examples: `"name,location"`, `"name,versionedResources"`, `"*"`. - * Any invalid field path will trigger INVALID_ARGUMENT error. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getReadMask() - { - return $this->read_mask; - } - - public function hasReadMask() - { - return isset($this->read_mask); - } - - public function clearReadMask() - { - unset($this->read_mask); - } - - /** - * Optional. A comma-separated list of fields that you want returned in the - * results. The following fields are returned by default if not specified: - * * `name` - * * `assetType` - * * `project` - * * `folders` - * * `organization` - * * `displayName` - * * `description` - * * `location` - * * `labels` - * * `tags` - * * `effectiveTags` - * * `networkTags` - * * `kmsKeys` - * * `createTime` - * * `updateTime` - * * `state` - * * `additionalAttributes` - * * `parentFullResourceName` - * * `parentAssetType` - * Some fields of large size, such as `versionedResources`, - * `attachedResources`, `effectiveTags` etc., are not returned by default, but - * you can specify them in the `read_mask` parameter if you want to include - * them. If `"*"` is specified, all [available - * fields](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources#resourcesearchresult) - * are returned. - * Examples: `"name,location"`, `"name,versionedResources"`, `"*"`. - * Any invalid field path will trigger INVALID_ARGUMENT error. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setReadMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->read_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllResourcesResponse.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllResourcesResponse.php deleted file mode 100644 index 7cdfc2756d4d..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/SearchAllResourcesResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.asset.v1.SearchAllResourcesResponse - */ -class SearchAllResourcesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of Resources that match the search query. It contains the resource - * standard metadata information. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.ResourceSearchResult results = 1; - */ - private $results; - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token`. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\ResourceSearchResult>|\Google\Protobuf\Internal\RepeatedField $results - * A list of Resources that match the search query. It contains the resource - * standard metadata information. - * @type string $next_page_token - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * A list of Resources that match the search query. It contains the resource - * standard metadata information. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.ResourceSearchResult results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResults() - { - return $this->results; - } - - /** - * A list of Resources that match the search query. It contains the resource - * standard metadata information. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.ResourceSearchResult results = 1; - * @param array<\Google\Cloud\Asset\V1\ResourceSearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\ResourceSearchResult::class); - $this->results = $arr; - - return $this; - } - - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token`. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token`. - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/TableFieldSchema.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TableFieldSchema.php deleted file mode 100644 index 16e9d9f4bf28..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TableFieldSchema.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.asset.v1.TableFieldSchema - */ -class TableFieldSchema extends \Google\Protobuf\Internal\Message -{ - /** - * The field name. The name must contain only letters (a-z, A-Z), - * numbers (0-9), or underscores (_), and must start with a letter or - * underscore. The maximum length is 128 characters. - * - * Generated from protobuf field string field = 1; - */ - protected $field = ''; - /** - * The field data type. Possible values include - * * STRING - * * BYTES - * * INTEGER - * * FLOAT - * * BOOLEAN - * * TIMESTAMP - * * DATE - * * TIME - * * DATETIME - * * GEOGRAPHY, - * * NUMERIC, - * * BIGNUMERIC, - * * RECORD - * (where RECORD indicates that the field contains a nested schema). - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - /** - * The field mode. Possible values include NULLABLE, REQUIRED and - * REPEATED. The default value is NULLABLE. - * - * Generated from protobuf field string mode = 3; - */ - protected $mode = ''; - /** - * Describes the nested schema fields if the type property is set - * to RECORD. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; - */ - private $fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * The field name. The name must contain only letters (a-z, A-Z), - * numbers (0-9), or underscores (_), and must start with a letter or - * underscore. The maximum length is 128 characters. - * @type string $type - * The field data type. Possible values include - * * STRING - * * BYTES - * * INTEGER - * * FLOAT - * * BOOLEAN - * * TIMESTAMP - * * DATE - * * TIME - * * DATETIME - * * GEOGRAPHY, - * * NUMERIC, - * * BIGNUMERIC, - * * RECORD - * (where RECORD indicates that the field contains a nested schema). - * @type string $mode - * The field mode. Possible values include NULLABLE, REQUIRED and - * REPEATED. The default value is NULLABLE. - * @type array<\Google\Cloud\Asset\V1\TableFieldSchema>|\Google\Protobuf\Internal\RepeatedField $fields - * Describes the nested schema fields if the type property is set - * to RECORD. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * The field name. The name must contain only letters (a-z, A-Z), - * numbers (0-9), or underscores (_), and must start with a letter or - * underscore. The maximum length is 128 characters. - * - * Generated from protobuf field string field = 1; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * The field name. The name must contain only letters (a-z, A-Z), - * numbers (0-9), or underscores (_), and must start with a letter or - * underscore. The maximum length is 128 characters. - * - * Generated from protobuf field string field = 1; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * The field data type. Possible values include - * * STRING - * * BYTES - * * INTEGER - * * FLOAT - * * BOOLEAN - * * TIMESTAMP - * * DATE - * * TIME - * * DATETIME - * * GEOGRAPHY, - * * NUMERIC, - * * BIGNUMERIC, - * * RECORD - * (where RECORD indicates that the field contains a nested schema). - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The field data type. Possible values include - * * STRING - * * BYTES - * * INTEGER - * * FLOAT - * * BOOLEAN - * * TIMESTAMP - * * DATE - * * TIME - * * DATETIME - * * GEOGRAPHY, - * * NUMERIC, - * * BIGNUMERIC, - * * RECORD - * (where RECORD indicates that the field contains a nested schema). - * - * Generated from protobuf field string type = 2; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The field mode. Possible values include NULLABLE, REQUIRED and - * REPEATED. The default value is NULLABLE. - * - * Generated from protobuf field string mode = 3; - * @return string - */ - public function getMode() - { - return $this->mode; - } - - /** - * The field mode. Possible values include NULLABLE, REQUIRED and - * REPEATED. The default value is NULLABLE. - * - * Generated from protobuf field string mode = 3; - * @param string $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkString($var, True); - $this->mode = $var; - - return $this; - } - - /** - * Describes the nested schema fields if the type property is set - * to RECORD. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFields() - { - return $this->fields; - } - - /** - * Describes the nested schema fields if the type property is set - * to RECORD. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; - * @param array<\Google\Cloud\Asset\V1\TableFieldSchema>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\TableFieldSchema::class); - $this->fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TableSchema.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TableSchema.php deleted file mode 100644 index b987755cd551..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TableSchema.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.asset.v1.TableSchema - */ -class TableSchema extends \Google\Protobuf\Internal\Message -{ - /** - * Describes the fields in a table. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; - */ - private $fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Asset\V1\TableFieldSchema>|\Google\Protobuf\Internal\RepeatedField $fields - * Describes the fields in a table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Describes the fields in a table. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFields() - { - return $this->fields; - } - - /** - * Describes the fields in a table. - * - * Generated from protobuf field repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; - * @param array<\Google\Cloud\Asset\V1\TableFieldSchema>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Asset\V1\TableFieldSchema::class); - $this->fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Tag.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Tag.php deleted file mode 100644 index 63be120eea87..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/Tag.php +++ /dev/null @@ -1,214 +0,0 @@ -google.cloud.asset.v1.Tag - */ -class Tag extends \Google\Protobuf\Internal\Message -{ - /** - * TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * - * Generated from protobuf field optional string tag_key = 1; - */ - protected $tag_key = null; - /** - * TagKey ID, in the format of tagKeys/{TAG_KEY_ID}. - * - * Generated from protobuf field optional string tag_key_id = 2; - */ - protected $tag_key_id = null; - /** - * TagValue namespaced name, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * - * Generated from protobuf field optional string tag_value = 3; - */ - protected $tag_value = null; - /** - * TagValue ID, in the format of tagValues/{TAG_VALUE_ID}. - * - * Generated from protobuf field optional string tag_value_id = 4; - */ - protected $tag_value_id = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tag_key - * TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * @type string $tag_key_id - * TagKey ID, in the format of tagKeys/{TAG_KEY_ID}. - * @type string $tag_value - * TagValue namespaced name, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * @type string $tag_value_id - * TagValue ID, in the format of tagValues/{TAG_VALUE_ID}. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * - * Generated from protobuf field optional string tag_key = 1; - * @return string - */ - public function getTagKey() - { - return isset($this->tag_key) ? $this->tag_key : ''; - } - - public function hasTagKey() - { - return isset($this->tag_key); - } - - public function clearTagKey() - { - unset($this->tag_key); - } - - /** - * TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. - * - * Generated from protobuf field optional string tag_key = 1; - * @param string $var - * @return $this - */ - public function setTagKey($var) - { - GPBUtil::checkString($var, True); - $this->tag_key = $var; - - return $this; - } - - /** - * TagKey ID, in the format of tagKeys/{TAG_KEY_ID}. - * - * Generated from protobuf field optional string tag_key_id = 2; - * @return string - */ - public function getTagKeyId() - { - return isset($this->tag_key_id) ? $this->tag_key_id : ''; - } - - public function hasTagKeyId() - { - return isset($this->tag_key_id); - } - - public function clearTagKeyId() - { - unset($this->tag_key_id); - } - - /** - * TagKey ID, in the format of tagKeys/{TAG_KEY_ID}. - * - * Generated from protobuf field optional string tag_key_id = 2; - * @param string $var - * @return $this - */ - public function setTagKeyId($var) - { - GPBUtil::checkString($var, True); - $this->tag_key_id = $var; - - return $this; - } - - /** - * TagValue namespaced name, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * - * Generated from protobuf field optional string tag_value = 3; - * @return string - */ - public function getTagValue() - { - return isset($this->tag_value) ? $this->tag_value : ''; - } - - public function hasTagValue() - { - return isset($this->tag_value); - } - - public function clearTagValue() - { - unset($this->tag_value); - } - - /** - * TagValue namespaced name, in the format of - * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. - * - * Generated from protobuf field optional string tag_value = 3; - * @param string $var - * @return $this - */ - public function setTagValue($var) - { - GPBUtil::checkString($var, True); - $this->tag_value = $var; - - return $this; - } - - /** - * TagValue ID, in the format of tagValues/{TAG_VALUE_ID}. - * - * Generated from protobuf field optional string tag_value_id = 4; - * @return string - */ - public function getTagValueId() - { - return isset($this->tag_value_id) ? $this->tag_value_id : ''; - } - - public function hasTagValueId() - { - return isset($this->tag_value_id); - } - - public function clearTagValueId() - { - unset($this->tag_value_id); - } - - /** - * TagValue ID, in the format of tagValues/{TAG_VALUE_ID}. - * - * Generated from protobuf field optional string tag_value_id = 4; - * @param string $var - * @return $this - */ - public function setTagValueId($var) - { - GPBUtil::checkString($var, True); - $this->tag_value_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TemporalAsset.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TemporalAsset.php deleted file mode 100644 index b3996645ed09..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TemporalAsset.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.asset.v1.TemporalAsset - */ -class TemporalAsset extends \Google\Protobuf\Internal\Message -{ - /** - * The time window when the asset data and state was observed. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow window = 1; - */ - protected $window = null; - /** - * Whether the asset has been deleted or not. - * - * Generated from protobuf field bool deleted = 2; - */ - protected $deleted = false; - /** - * An asset in Google Cloud. - * - * Generated from protobuf field .google.cloud.asset.v1.Asset asset = 3; - */ - protected $asset = null; - /** - * State of prior_asset. - * - * Generated from protobuf field .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - */ - protected $prior_asset_state = 0; - /** - * Prior copy of the asset. Populated if prior_asset_state is PRESENT. - * Currently this is only set for responses in Real-Time Feed. - * - * Generated from protobuf field .google.cloud.asset.v1.Asset prior_asset = 5; - */ - protected $prior_asset = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\TimeWindow $window - * The time window when the asset data and state was observed. - * @type bool $deleted - * Whether the asset has been deleted or not. - * @type \Google\Cloud\Asset\V1\Asset $asset - * An asset in Google Cloud. - * @type int $prior_asset_state - * State of prior_asset. - * @type \Google\Cloud\Asset\V1\Asset $prior_asset - * Prior copy of the asset. Populated if prior_asset_state is PRESENT. - * Currently this is only set for responses in Real-Time Feed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * The time window when the asset data and state was observed. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow window = 1; - * @return \Google\Cloud\Asset\V1\TimeWindow|null - */ - public function getWindow() - { - return $this->window; - } - - public function hasWindow() - { - return isset($this->window); - } - - public function clearWindow() - { - unset($this->window); - } - - /** - * The time window when the asset data and state was observed. - * - * Generated from protobuf field .google.cloud.asset.v1.TimeWindow window = 1; - * @param \Google\Cloud\Asset\V1\TimeWindow $var - * @return $this - */ - public function setWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\TimeWindow::class); - $this->window = $var; - - return $this; - } - - /** - * Whether the asset has been deleted or not. - * - * Generated from protobuf field bool deleted = 2; - * @return bool - */ - public function getDeleted() - { - return $this->deleted; - } - - /** - * Whether the asset has been deleted or not. - * - * Generated from protobuf field bool deleted = 2; - * @param bool $var - * @return $this - */ - public function setDeleted($var) - { - GPBUtil::checkBool($var); - $this->deleted = $var; - - return $this; - } - - /** - * An asset in Google Cloud. - * - * Generated from protobuf field .google.cloud.asset.v1.Asset asset = 3; - * @return \Google\Cloud\Asset\V1\Asset|null - */ - public function getAsset() - { - return $this->asset; - } - - public function hasAsset() - { - return isset($this->asset); - } - - public function clearAsset() - { - unset($this->asset); - } - - /** - * An asset in Google Cloud. - * - * Generated from protobuf field .google.cloud.asset.v1.Asset asset = 3; - * @param \Google\Cloud\Asset\V1\Asset $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\Asset::class); - $this->asset = $var; - - return $this; - } - - /** - * State of prior_asset. - * - * Generated from protobuf field .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * @return int - */ - public function getPriorAssetState() - { - return $this->prior_asset_state; - } - - /** - * State of prior_asset. - * - * Generated from protobuf field .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * @param int $var - * @return $this - */ - public function setPriorAssetState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\TemporalAsset\PriorAssetState::class); - $this->prior_asset_state = $var; - - return $this; - } - - /** - * Prior copy of the asset. Populated if prior_asset_state is PRESENT. - * Currently this is only set for responses in Real-Time Feed. - * - * Generated from protobuf field .google.cloud.asset.v1.Asset prior_asset = 5; - * @return \Google\Cloud\Asset\V1\Asset|null - */ - public function getPriorAsset() - { - return $this->prior_asset; - } - - public function hasPriorAsset() - { - return isset($this->prior_asset); - } - - public function clearPriorAsset() - { - unset($this->prior_asset); - } - - /** - * Prior copy of the asset. Populated if prior_asset_state is PRESENT. - * Currently this is only set for responses in Real-Time Feed. - * - * Generated from protobuf field .google.cloud.asset.v1.Asset prior_asset = 5; - * @param \Google\Cloud\Asset\V1\Asset $var - * @return $this - */ - public function setPriorAsset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\Asset::class); - $this->prior_asset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TemporalAsset/PriorAssetState.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TemporalAsset/PriorAssetState.php deleted file mode 100644 index f20c1d628b9c..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TemporalAsset/PriorAssetState.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.asset.v1.TemporalAsset.PriorAssetState - */ -class PriorAssetState -{ - /** - * prior_asset is not applicable for the current asset. - * - * Generated from protobuf enum PRIOR_ASSET_STATE_UNSPECIFIED = 0; - */ - const PRIOR_ASSET_STATE_UNSPECIFIED = 0; - /** - * prior_asset is populated correctly. - * - * Generated from protobuf enum PRESENT = 1; - */ - const PRESENT = 1; - /** - * Failed to set prior_asset. - * - * Generated from protobuf enum INVALID = 2; - */ - const INVALID = 2; - /** - * Current asset is the first known state. - * - * Generated from protobuf enum DOES_NOT_EXIST = 3; - */ - const DOES_NOT_EXIST = 3; - /** - * prior_asset is a deletion. - * - * Generated from protobuf enum DELETED = 4; - */ - const DELETED = 4; - - private static $valueToName = [ - self::PRIOR_ASSET_STATE_UNSPECIFIED => 'PRIOR_ASSET_STATE_UNSPECIFIED', - self::PRESENT => 'PRESENT', - self::INVALID => 'INVALID', - self::DOES_NOT_EXIST => 'DOES_NOT_EXIST', - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PriorAssetState::class, \Google\Cloud\Asset\V1\TemporalAsset_PriorAssetState::class); - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TimeWindow.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TimeWindow.php deleted file mode 100644 index ddaa9aebfee5..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/TimeWindow.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.asset.v1.TimeWindow - */ -class TimeWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Start time of the time window (exclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * End time of the time window (inclusive). If not specified, the current - * timestamp is used instead. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Start time of the time window (exclusive). - * @type \Google\Protobuf\Timestamp $end_time - * End time of the time window (inclusive). If not specified, the current - * timestamp is used instead. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * Start time of the time window (exclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Start time of the time window (exclusive). - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * End time of the time window (inclusive). If not specified, the current - * timestamp is used instead. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * End time of the time window (inclusive). If not specified, the current - * timestamp is used instead. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/UpdateFeedRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/UpdateFeedRequest.php deleted file mode 100644 index 484371b1a06b..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/UpdateFeedRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.asset.v1.UpdateFeedRequest - */ -class UpdateFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The new values of feed details. It must match an existing feed - * and the field `name` must be in the format of: - * projects/project_number/feeds/feed_id or - * folders/folder_number/feeds/feed_id or - * organizations/organization_number/feeds/feed_id. - * - * Generated from protobuf field .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $feed = null; - /** - * Required. Only updates the `feed` fields indicated by this mask. - * The field mask must not be empty, and it must not contain fields that - * are immutable or only set by the server. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Asset\V1\Feed $feed Required. The new values of feed details. It must match an existing feed - * and the field `name` must be in the format of: - * projects/project_number/feeds/feed_id or - * folders/folder_number/feeds/feed_id or - * organizations/organization_number/feeds/feed_id. - * - * @return \Google\Cloud\Asset\V1\UpdateFeedRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Asset\V1\Feed $feed): self - { - return (new self()) - ->setFeed($feed); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\Feed $feed - * Required. The new values of feed details. It must match an existing feed - * and the field `name` must be in the format of: - * projects/project_number/feeds/feed_id or - * folders/folder_number/feeds/feed_id or - * organizations/organization_number/feeds/feed_id. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Only updates the `feed` fields indicated by this mask. - * The field mask must not be empty, and it must not contain fields that - * are immutable or only set by the server. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The new values of feed details. It must match an existing feed - * and the field `name` must be in the format of: - * projects/project_number/feeds/feed_id or - * folders/folder_number/feeds/feed_id or - * organizations/organization_number/feeds/feed_id. - * - * Generated from protobuf field .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\Feed|null - */ - public function getFeed() - { - return $this->feed; - } - - public function hasFeed() - { - return isset($this->feed); - } - - public function clearFeed() - { - unset($this->feed); - } - - /** - * Required. The new values of feed details. It must match an existing feed - * and the field `name` must be in the format of: - * projects/project_number/feeds/feed_id or - * folders/folder_number/feeds/feed_id or - * organizations/organization_number/feeds/feed_id. - * - * Generated from protobuf field .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\Feed $var - * @return $this - */ - public function setFeed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\Feed::class); - $this->feed = $var; - - return $this; - } - - /** - * Required. Only updates the `feed` fields indicated by this mask. - * The field mask must not be empty, and it must not contain fields that - * are immutable or only set by the server. - * - * 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. Only updates the `feed` fields indicated by this mask. - * The field mask must not be empty, and it must not contain fields that - * are immutable or only set by the server. - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/UpdateSavedQueryRequest.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/UpdateSavedQueryRequest.php deleted file mode 100644 index ba87744907e0..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/UpdateSavedQueryRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.asset.v1.UpdateSavedQueryRequest - */ -class UpdateSavedQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The saved query to update. - * The saved query's `name` field is used to identify the one to update, - * which has format as below: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $saved_query = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Asset\V1\SavedQuery $savedQuery Required. The saved query to update. - * - * The saved query's `name` field is used to identify the one to update, - * which has format as below: - * - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\Asset\V1\UpdateSavedQueryRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Asset\V1\SavedQuery $savedQuery, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSavedQuery($savedQuery) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Asset\V1\SavedQuery $saved_query - * Required. The saved query to update. - * The saved query's `name` field is used to identify the one to update, - * which has format as below: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The saved query to update. - * The saved query's `name` field is used to identify the one to update, - * which has format as below: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Asset\V1\SavedQuery|null - */ - public function getSavedQuery() - { - return $this->saved_query; - } - - public function hasSavedQuery() - { - return isset($this->saved_query); - } - - public function clearSavedQuery() - { - unset($this->saved_query); - } - - /** - * Required. The saved query to update. - * The saved query's `name` field is used to identify the one to update, - * which has format as below: - * * projects/project_number/savedQueries/saved_query_id - * * folders/folder_number/savedQueries/saved_query_id - * * organizations/organization_number/savedQueries/saved_query_id - * - * Generated from protobuf field .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Asset\V1\SavedQuery $var - * @return $this - */ - public function setSavedQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\SavedQuery::class); - $this->saved_query = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * 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/Asset/v1/proto/src/Google/Cloud/Asset/V1/VersionedResource.php b/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/VersionedResource.php deleted file mode 100644 index 09ceb2e0a744..000000000000 --- a/owl-bot-staging/Asset/v1/proto/src/Google/Cloud/Asset/V1/VersionedResource.php +++ /dev/null @@ -1,164 +0,0 @@ -google.cloud.asset.v1.VersionedResource - */ -class VersionedResource extends \Google\Protobuf\Internal\Message -{ - /** - * API version of the resource. - * Example: - * If the resource is an instance provided by Compute Engine v1 API as defined - * in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, - * version will be "v1". - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * JSON representation of the resource as defined by the corresponding - * service providing this resource. - * Example: - * If the resource is an instance provided by Compute Engine, this field will - * contain the JSON representation of the instance as defined by Compute - * Engine: - * `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. - * You can find the resource definition for each supported resource type in - * this table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * - * Generated from protobuf field .google.protobuf.Struct resource = 2; - */ - protected $resource = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * API version of the resource. - * Example: - * If the resource is an instance provided by Compute Engine v1 API as defined - * in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, - * version will be "v1". - * @type \Google\Protobuf\Struct $resource - * JSON representation of the resource as defined by the corresponding - * service providing this resource. - * Example: - * If the resource is an instance provided by Compute Engine, this field will - * contain the JSON representation of the instance as defined by Compute - * Engine: - * `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. - * You can find the resource definition for each supported resource type in - * this table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Asset\V1\Assets::initOnce(); - parent::__construct($data); - } - - /** - * API version of the resource. - * Example: - * If the resource is an instance provided by Compute Engine v1 API as defined - * in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, - * version will be "v1". - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * API version of the resource. - * Example: - * If the resource is an instance provided by Compute Engine v1 API as defined - * in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, - * version will be "v1". - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * JSON representation of the resource as defined by the corresponding - * service providing this resource. - * Example: - * If the resource is an instance provided by Compute Engine, this field will - * contain the JSON representation of the instance as defined by Compute - * Engine: - * `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. - * You can find the resource definition for each supported resource type in - * this table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * - * Generated from protobuf field .google.protobuf.Struct resource = 2; - * @return \Google\Protobuf\Struct|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * JSON representation of the resource as defined by the corresponding - * service providing this resource. - * Example: - * If the resource is an instance provided by Compute Engine, this field will - * contain the JSON representation of the instance as defined by Compute - * Engine: - * `https://cloud.google.com/compute/docs/reference/rest/v1/instances`. - * You can find the resource definition for each supported resource type in - * this table: - * `https://cloud.google.com/asset-inventory/docs/supported-asset-types` - * - * Generated from protobuf field .google.protobuf.Struct resource = 2; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_iam_policy.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_iam_policy.php deleted file mode 100644 index a0846e032f8c..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_iam_policy.php +++ /dev/null @@ -1,85 +0,0 @@ -setScope($analysisQueryScope); - $request = (new AnalyzeIamPolicyRequest()) - ->setAnalysisQuery($analysisQuery); - - // Call the API and handle any network failures. - try { - /** @var AnalyzeIamPolicyResponse $response */ - $response = $assetServiceClient->analyzeIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $analysisQueryScope = '[SCOPE]'; - - analyze_iam_policy_sample($analysisQueryScope); -} -// [END cloudasset_v1_generated_AssetService_AnalyzeIamPolicy_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php deleted file mode 100644 index 63808cf33542..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php +++ /dev/null @@ -1,108 +0,0 @@ -setScope($analysisQueryScope); - $outputConfig = new IamPolicyAnalysisOutputConfig(); - $request = (new AnalyzeIamPolicyLongrunningRequest()) - ->setAnalysisQuery($analysisQuery) - ->setOutputConfig($outputConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $assetServiceClient->analyzeIamPolicyLongrunning($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AnalyzeIamPolicyLongrunningResponse $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $analysisQueryScope = '[SCOPE]'; - - analyze_iam_policy_longrunning_sample($analysisQueryScope); -} -// [END cloudasset_v1_generated_AssetService_AnalyzeIamPolicyLongrunning_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_move.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_move.php deleted file mode 100644 index 6fa609bf3d7f..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_move.php +++ /dev/null @@ -1,85 +0,0 @@ -setResource($formattedResource) - ->setDestinationParent($destinationParent); - - // Call the API and handle any network failures. - try { - /** @var AnalyzeMoveResponse $response */ - $response = $assetServiceClient->analyzeMove($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedResource = AssetServiceClient::projectName('[PROJECT]'); - $destinationParent = '[DESTINATION_PARENT]'; - - analyze_move_sample($formattedResource, $destinationParent); -} -// [END cloudasset_v1_generated_AssetService_AnalyzeMove_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policies.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policies.php deleted file mode 100644 index 21f5dbe75964..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policies.php +++ /dev/null @@ -1,83 +0,0 @@ -setScope($scope) - ->setConstraint($constraint); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assetServiceClient->analyzeOrgPolicies($request); - - /** @var OrgPolicyResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $scope = '[SCOPE]'; - $constraint = '[CONSTRAINT]'; - - analyze_org_policies_sample($scope, $constraint); -} -// [END cloudasset_v1_generated_AssetService_AnalyzeOrgPolicies_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php deleted file mode 100644 index 789a887d378e..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php +++ /dev/null @@ -1,133 +0,0 @@ -setScope($scope) - ->setConstraint($constraint); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assetServiceClient->analyzeOrgPolicyGovernedAssets($request); - - /** @var GovernedAsset $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $scope = '[SCOPE]'; - $constraint = '[CONSTRAINT]'; - - analyze_org_policy_governed_assets_sample($scope, $constraint); -} -// [END cloudasset_v1_generated_AssetService_AnalyzeOrgPolicyGovernedAssets_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php deleted file mode 100644 index 97713c0767b8..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php +++ /dev/null @@ -1,86 +0,0 @@ -setScope($scope) - ->setConstraint($constraint); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assetServiceClient->analyzeOrgPolicyGovernedContainers($request); - - /** @var GovernedContainer $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $scope = '[SCOPE]'; - $constraint = '[CONSTRAINT]'; - - analyze_org_policy_governed_containers_sample($scope, $constraint); -} -// [END cloudasset_v1_generated_AssetService_AnalyzeOrgPolicyGovernedContainers_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/batch_get_assets_history.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/batch_get_assets_history.php deleted file mode 100644 index 6e878fb7c64c..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/batch_get_assets_history.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($parent) - ->setContentType($contentType) - ->setReadTimeWindow($readTimeWindow); - - // Call the API and handle any network failures. - try { - /** @var BatchGetAssetsHistoryResponse $response */ - $response = $assetServiceClient->batchGetAssetsHistory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $contentType = ContentType::CONTENT_TYPE_UNSPECIFIED; - - batch_get_assets_history_sample($parent, $contentType); -} -// [END cloudasset_v1_generated_AssetService_BatchGetAssetsHistory_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php deleted file mode 100644 index 04f9181c08a8..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php +++ /dev/null @@ -1,88 +0,0 @@ -setScope($scope) - ->setNames($names); - - // Call the API and handle any network failures. - try { - /** @var BatchGetEffectiveIamPoliciesResponse $response */ - $response = $assetServiceClient->batchGetEffectiveIamPolicies($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $scope = '[SCOPE]'; - $namesElement = '[NAMES]'; - - batch_get_effective_iam_policies_sample($scope, $namesElement); -} -// [END cloudasset_v1_generated_AssetService_BatchGetEffectiveIamPolicies_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/create_feed.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/create_feed.php deleted file mode 100644 index 302ed9c76b26..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/create_feed.php +++ /dev/null @@ -1,93 +0,0 @@ -setName($feedName) - ->setFeedOutputConfig($feedFeedOutputConfig); - $request = (new CreateFeedRequest()) - ->setParent($parent) - ->setFeedId($feedId) - ->setFeed($feed); - - // Call the API and handle any network failures. - try { - /** @var Feed $response */ - $response = $assetServiceClient->createFeed($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $feedId = '[FEED_ID]'; - $feedName = '[NAME]'; - - create_feed_sample($parent, $feedId, $feedName); -} -// [END cloudasset_v1_generated_AssetService_CreateFeed_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/create_saved_query.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/create_saved_query.php deleted file mode 100644 index 1256b5ff4f0a..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/create_saved_query.php +++ /dev/null @@ -1,88 +0,0 @@ -setParent($formattedParent) - ->setSavedQuery($savedQuery) - ->setSavedQueryId($savedQueryId); - - // Call the API and handle any network failures. - try { - /** @var SavedQuery $response */ - $response = $assetServiceClient->createSavedQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AssetServiceClient::projectName('[PROJECT]'); - $savedQueryId = '[SAVED_QUERY_ID]'; - - create_saved_query_sample($formattedParent, $savedQueryId); -} -// [END cloudasset_v1_generated_AssetService_CreateSavedQuery_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/delete_feed.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/delete_feed.php deleted file mode 100644 index 61e2b3d40712..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/delete_feed.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $assetServiceClient->deleteFeed($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssetServiceClient::feedName('[PROJECT]', '[FEED]'); - - delete_feed_sample($formattedName); -} -// [END cloudasset_v1_generated_AssetService_DeleteFeed_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/delete_saved_query.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/delete_saved_query.php deleted file mode 100644 index f26af88ac8a2..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/delete_saved_query.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $assetServiceClient->deleteSavedQuery($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssetServiceClient::savedQueryName('[PROJECT]', '[SAVED_QUERY]'); - - delete_saved_query_sample($formattedName); -} -// [END cloudasset_v1_generated_AssetService_DeleteSavedQuery_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/export_assets.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/export_assets.php deleted file mode 100644 index 9e9488e8dc9f..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/export_assets.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($parent) - ->setOutputConfig($outputConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $assetServiceClient->exportAssets($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ExportAssetsResponse $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - - export_assets_sample($parent); -} -// [END cloudasset_v1_generated_AssetService_ExportAssets_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/get_feed.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/get_feed.php deleted file mode 100644 index f30a24190f83..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/get_feed.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Feed $response */ - $response = $assetServiceClient->getFeed($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssetServiceClient::feedName('[PROJECT]', '[FEED]'); - - get_feed_sample($formattedName); -} -// [END cloudasset_v1_generated_AssetService_GetFeed_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/get_saved_query.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/get_saved_query.php deleted file mode 100644 index bf9996e18809..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/get_saved_query.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SavedQuery $response */ - $response = $assetServiceClient->getSavedQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssetServiceClient::savedQueryName('[PROJECT]', '[SAVED_QUERY]'); - - get_saved_query_sample($formattedName); -} -// [END cloudasset_v1_generated_AssetService_GetSavedQuery_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_assets.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_assets.php deleted file mode 100644 index 6403d446c771..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_assets.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assetServiceClient->listAssets($request); - - /** @var Asset $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - - list_assets_sample($parent); -} -// [END cloudasset_v1_generated_AssetService_ListAssets_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_feeds.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_feeds.php deleted file mode 100644 index 1d4deea1ab11..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_feeds.php +++ /dev/null @@ -1,72 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var ListFeedsResponse $response */ - $response = $assetServiceClient->listFeeds($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - - list_feeds_sample($parent); -} -// [END cloudasset_v1_generated_AssetService_ListFeeds_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_saved_queries.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_saved_queries.php deleted file mode 100644 index acb7ff749d56..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/list_saved_queries.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assetServiceClient->listSavedQueries($request); - - /** @var SavedQuery $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AssetServiceClient::projectName('[PROJECT]'); - - list_saved_queries_sample($formattedParent); -} -// [END cloudasset_v1_generated_AssetService_ListSavedQueries_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/query_assets.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/query_assets.php deleted file mode 100644 index 3e1f4c5d93cf..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/query_assets.php +++ /dev/null @@ -1,86 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var QueryAssetsResponse $response */ - $response = $assetServiceClient->queryAssets($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - - query_assets_sample($parent); -} -// [END cloudasset_v1_generated_AssetService_QueryAssets_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/search_all_iam_policies.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/search_all_iam_policies.php deleted file mode 100644 index 4fc4e19ecbd0..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/search_all_iam_policies.php +++ /dev/null @@ -1,89 +0,0 @@ -setScope($scope); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assetServiceClient->searchAllIamPolicies($request); - - /** @var IamPolicySearchResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $scope = '[SCOPE]'; - - search_all_iam_policies_sample($scope); -} -// [END cloudasset_v1_generated_AssetService_SearchAllIamPolicies_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/search_all_resources.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/search_all_resources.php deleted file mode 100644 index f338d2e4f57b..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/search_all_resources.php +++ /dev/null @@ -1,89 +0,0 @@ -setScope($scope); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assetServiceClient->searchAllResources($request); - - /** @var ResourceSearchResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $scope = '[SCOPE]'; - - search_all_resources_sample($scope); -} -// [END cloudasset_v1_generated_AssetService_SearchAllResources_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/update_feed.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/update_feed.php deleted file mode 100644 index d037cbd8faf3..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/update_feed.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($feedName) - ->setFeedOutputConfig($feedFeedOutputConfig); - $updateMask = new FieldMask(); - $request = (new UpdateFeedRequest()) - ->setFeed($feed) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Feed $response */ - $response = $assetServiceClient->updateFeed($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $feedName = '[NAME]'; - - update_feed_sample($feedName); -} -// [END cloudasset_v1_generated_AssetService_UpdateFeed_sync] diff --git a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/update_saved_query.php b/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/update_saved_query.php deleted file mode 100644 index 3ba9f0ee02ed..000000000000 --- a/owl-bot-staging/Asset/v1/samples/V1/AssetServiceClient/update_saved_query.php +++ /dev/null @@ -1,62 +0,0 @@ -setSavedQuery($savedQuery) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var SavedQuery $response */ - $response = $assetServiceClient->updateSavedQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END cloudasset_v1_generated_AssetService_UpdateSavedQuery_sync] diff --git a/owl-bot-staging/Asset/v1/src/V1/Client/AssetServiceClient.php b/owl-bot-staging/Asset/v1/src/V1/Client/AssetServiceClient.php deleted file mode 100644 index 6f8d2c5b7f5a..000000000000 --- a/owl-bot-staging/Asset/v1/src/V1/Client/AssetServiceClient.php +++ /dev/null @@ -1,1187 +0,0 @@ - analyzeIamPolicyAsync(AnalyzeIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeIamPolicyLongrunningAsync(AnalyzeIamPolicyLongrunningRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeMoveAsync(AnalyzeMoveRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeOrgPoliciesAsync(AnalyzeOrgPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeOrgPolicyGovernedAssetsAsync(AnalyzeOrgPolicyGovernedAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface analyzeOrgPolicyGovernedContainersAsync(AnalyzeOrgPolicyGovernedContainersRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchGetEffectiveIamPoliciesAsync(BatchGetEffectiveIamPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFeedAsync(CreateFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSavedQueryAsync(CreateSavedQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFeedAsync(DeleteFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSavedQueryAsync(DeleteSavedQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportAssetsAsync(ExportAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFeedAsync(GetFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSavedQueryAsync(GetSavedQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAssetsAsync(ListAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFeedsAsync(ListFeedsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSavedQueriesAsync(ListSavedQueriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryAssetsAsync(QueryAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchAllIamPoliciesAsync(SearchAllIamPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchAllResourcesAsync(SearchAllResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFeedAsync(UpdateFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSavedQueryAsync(UpdateSavedQueryRequest $request, array $optionalArgs = []) - */ -final class AssetServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.asset.v1.AssetService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'cloudasset.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'cloudasset.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/asset_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/asset_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/asset_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/asset_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a feed - * resource. - * - * @param string $project - * @param string $feed - * - * @return string The formatted feed resource. - */ - public static function feedName(string $project, string $feed): string - { - return self::getPathTemplate('feed')->render([ - 'project' => $project, - 'feed' => $feed, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a folder - * resource. - * - * @param string $folder - * - * @return string The formatted folder resource. - */ - public static function folderName(string $folder): string - { - return self::getPathTemplate('folder')->render([ - 'folder' => $folder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a folder_feed - * resource. - * - * @param string $folder - * @param string $feed - * - * @return string The formatted folder_feed resource. - */ - public static function folderFeedName(string $folder, string $feed): string - { - return self::getPathTemplate('folderFeed')->render([ - 'folder' => $folder, - 'feed' => $feed, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * folder_saved_query resource. - * - * @param string $folder - * @param string $savedQuery - * - * @return string The formatted folder_saved_query resource. - */ - public static function folderSavedQueryName(string $folder, string $savedQuery): string - { - return self::getPathTemplate('folderSavedQuery')->render([ - 'folder' => $folder, - 'saved_query' => $savedQuery, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_feed resource. - * - * @param string $organization - * @param string $feed - * - * @return string The formatted organization_feed resource. - */ - public static function organizationFeedName(string $organization, string $feed): string - { - return self::getPathTemplate('organizationFeed')->render([ - 'organization' => $organization, - 'feed' => $feed, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_saved_query resource. - * - * @param string $organization - * @param string $savedQuery - * - * @return string The formatted organization_saved_query resource. - */ - public static function organizationSavedQueryName(string $organization, string $savedQuery): string - { - return self::getPathTemplate('organizationSavedQuery')->render([ - 'organization' => $organization, - 'saved_query' => $savedQuery, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project_feed - * resource. - * - * @param string $project - * @param string $feed - * - * @return string The formatted project_feed resource. - */ - public static function projectFeedName(string $project, string $feed): string - { - return self::getPathTemplate('projectFeed')->render([ - 'project' => $project, - 'feed' => $feed, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_saved_query resource. - * - * @param string $project - * @param string $savedQuery - * - * @return string The formatted project_saved_query resource. - */ - public static function projectSavedQueryName(string $project, string $savedQuery): string - { - return self::getPathTemplate('projectSavedQuery')->render([ - 'project' => $project, - 'saved_query' => $savedQuery, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a saved_query - * resource. - * - * @param string $project - * @param string $savedQuery - * - * @return string The formatted saved_query resource. - */ - public static function savedQueryName(string $project, string $savedQuery): string - { - return self::getPathTemplate('savedQuery')->render([ - 'project' => $project, - 'saved_query' => $savedQuery, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - feed: projects/{project}/feeds/{feed} - * - folder: folders/{folder} - * - folderFeed: folders/{folder}/feeds/{feed} - * - folderSavedQuery: folders/{folder}/savedQueries/{saved_query} - * - organization: organizations/{organization} - * - organizationFeed: organizations/{organization}/feeds/{feed} - * - organizationSavedQuery: organizations/{organization}/savedQueries/{saved_query} - * - project: projects/{project} - * - projectFeed: projects/{project}/feeds/{feed} - * - projectSavedQuery: projects/{project}/savedQueries/{saved_query} - * - savedQuery: projects/{project}/savedQueries/{saved_query} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'cloudasset.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Analyzes IAM policies to answer which identities have what accesses on - * which resources. - * - * The async variant is {@see AssetServiceClient::analyzeIamPolicyAsync()} . - * - * @example samples/V1/AssetServiceClient/analyze_iam_policy.php - * - * @param AnalyzeIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnalyzeIamPolicyResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function analyzeIamPolicy(AnalyzeIamPolicyRequest $request, array $callOptions = []): AnalyzeIamPolicyResponse - { - return $this->startApiCall('AnalyzeIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Analyzes IAM policies asynchronously to answer which identities have what - * accesses on which resources, and writes the analysis results to a Google - * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the - * output format is the JSON format that represents a - * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. - * This method implements the - * [google.longrunning.Operation][google.longrunning.Operation], which allows - * you to track the operation status. We recommend intervals of at least 2 - * seconds with exponential backoff retry to poll the operation result. The - * metadata contains the metadata for the long-running operation. - * - * The async variant is - * {@see AssetServiceClient::analyzeIamPolicyLongrunningAsync()} . - * - * @example samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php - * - * @param AnalyzeIamPolicyLongrunningRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function analyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('AnalyzeIamPolicyLongrunning', $request, $callOptions)->wait(); - } - - /** - * Analyze moving a resource to a specified destination without kicking off - * the actual move. The analysis is best effort depending on the user's - * permissions of viewing different hierarchical policies and configurations. - * The policies and configuration are subject to change before the actual - * resource migration takes place. - * - * The async variant is {@see AssetServiceClient::analyzeMoveAsync()} . - * - * @example samples/V1/AssetServiceClient/analyze_move.php - * - * @param AnalyzeMoveRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnalyzeMoveResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function analyzeMove(AnalyzeMoveRequest $request, array $callOptions = []): AnalyzeMoveResponse - { - return $this->startApiCall('AnalyzeMove', $request, $callOptions)->wait(); - } - - /** - * Analyzes organization policies under a scope. - * - * The async variant is {@see AssetServiceClient::analyzeOrgPoliciesAsync()} . - * - * @example samples/V1/AssetServiceClient/analyze_org_policies.php - * - * @param AnalyzeOrgPoliciesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function analyzeOrgPolicies(AnalyzeOrgPoliciesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('AnalyzeOrgPolicies', $request, $callOptions); - } - - /** - * Analyzes organization policies governed assets (Google Cloud resources or - * policies) under a scope. This RPC supports custom constraints and the - * following canned constraints: - * - * * constraints/ainotebooks.accessMode - * * constraints/ainotebooks.disableFileDownloads - * * constraints/ainotebooks.disableRootAccess - * * constraints/ainotebooks.disableTerminal - * * constraints/ainotebooks.environmentOptions - * * constraints/ainotebooks.requireAutoUpgradeSchedule - * * constraints/ainotebooks.restrictVpcNetworks - * * constraints/compute.disableGuestAttributesAccess - * * constraints/compute.disableInstanceDataAccessApis - * * constraints/compute.disableNestedVirtualization - * * constraints/compute.disableSerialPortAccess - * * constraints/compute.disableSerialPortLogging - * * constraints/compute.disableVpcExternalIpv6 - * * constraints/compute.requireOsLogin - * * constraints/compute.requireShieldedVm - * * constraints/compute.restrictLoadBalancerCreationForTypes - * * constraints/compute.restrictProtocolForwardingCreationForTypes - * * constraints/compute.restrictXpnProjectLienRemoval - * * constraints/compute.setNewProjectDefaultToZonalDNSOnly - * * constraints/compute.skipDefaultNetworkCreation - * * constraints/compute.trustedImageProjects - * * constraints/compute.vmCanIpForward - * * constraints/compute.vmExternalIpAccess - * * constraints/gcp.detailedAuditLoggingMode - * * constraints/gcp.resourceLocations - * * constraints/iam.allowedPolicyMemberDomains - * * constraints/iam.automaticIamGrantsForDefaultServiceAccounts - * * constraints/iam.disableServiceAccountCreation - * * constraints/iam.disableServiceAccountKeyCreation - * * constraints/iam.disableServiceAccountKeyUpload - * * constraints/iam.restrictCrossProjectServiceAccountLienRemoval - * * constraints/iam.serviceAccountKeyExpiryHours - * * constraints/resourcemanager.accessBoundaries - * * constraints/resourcemanager.allowedExportDestinations - * * constraints/sql.restrictAuthorizedNetworks - * * constraints/sql.restrictNoncompliantDiagnosticDataAccess - * * constraints/sql.restrictNoncompliantResourceCreation - * * constraints/sql.restrictPublicIp - * * constraints/storage.publicAccessPrevention - * * constraints/storage.restrictAuthTypes - * * constraints/storage.uniformBucketLevelAccess - * - * This RPC only returns either resources of types [supported by search - * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) - * or IAM policies. - * - * The async variant is - * {@see AssetServiceClient::analyzeOrgPolicyGovernedAssetsAsync()} . - * - * @example samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php - * - * @param AnalyzeOrgPolicyGovernedAssetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function analyzeOrgPolicyGovernedAssets(AnalyzeOrgPolicyGovernedAssetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('AnalyzeOrgPolicyGovernedAssets', $request, $callOptions); - } - - /** - * Analyzes organization policies governed containers (projects, folders or - * organization) under a scope. - * - * The async variant is - * {@see AssetServiceClient::analyzeOrgPolicyGovernedContainersAsync()} . - * - * @example samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php - * - * @param AnalyzeOrgPolicyGovernedContainersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function analyzeOrgPolicyGovernedContainers(AnalyzeOrgPolicyGovernedContainersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('AnalyzeOrgPolicyGovernedContainers', $request, $callOptions); - } - - /** - * Batch gets the update history of assets that overlap a time window. - * For IAM_POLICY content, this API outputs history when the asset and its - * attached IAM POLICY both exist. This can create gaps in the output history. - * Otherwise, this API outputs history with asset in both non-delete or - * deleted status. - * If a specified asset does not exist, this API returns an INVALID_ARGUMENT - * error. - * - * The async variant is {@see AssetServiceClient::batchGetAssetsHistoryAsync()} . - * - * @example samples/V1/AssetServiceClient/batch_get_assets_history.php - * - * @param BatchGetAssetsHistoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchGetAssetsHistoryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchGetAssetsHistory(BatchGetAssetsHistoryRequest $request, array $callOptions = []): BatchGetAssetsHistoryResponse - { - return $this->startApiCall('BatchGetAssetsHistory', $request, $callOptions)->wait(); - } - - /** - * Gets effective IAM policies for a batch of resources. - * - * The async variant is - * {@see AssetServiceClient::batchGetEffectiveIamPoliciesAsync()} . - * - * @example samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php - * - * @param BatchGetEffectiveIamPoliciesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchGetEffectiveIamPoliciesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest $request, array $callOptions = []): BatchGetEffectiveIamPoliciesResponse - { - return $this->startApiCall('BatchGetEffectiveIamPolicies', $request, $callOptions)->wait(); - } - - /** - * Creates a feed in a parent project/folder/organization to listen to its - * asset updates. - * - * The async variant is {@see AssetServiceClient::createFeedAsync()} . - * - * @example samples/V1/AssetServiceClient/create_feed.php - * - * @param CreateFeedRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Feed - * - * @throws ApiException Thrown if the API call fails. - */ - public function createFeed(CreateFeedRequest $request, array $callOptions = []): Feed - { - return $this->startApiCall('CreateFeed', $request, $callOptions)->wait(); - } - - /** - * Creates a saved query in a parent project/folder/organization. - * - * The async variant is {@see AssetServiceClient::createSavedQueryAsync()} . - * - * @example samples/V1/AssetServiceClient/create_saved_query.php - * - * @param CreateSavedQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SavedQuery - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSavedQuery(CreateSavedQueryRequest $request, array $callOptions = []): SavedQuery - { - return $this->startApiCall('CreateSavedQuery', $request, $callOptions)->wait(); - } - - /** - * Deletes an asset feed. - * - * The async variant is {@see AssetServiceClient::deleteFeedAsync()} . - * - * @example samples/V1/AssetServiceClient/delete_feed.php - * - * @param DeleteFeedRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFeed(DeleteFeedRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFeed', $request, $callOptions)->wait(); - } - - /** - * Deletes a saved query. - * - * The async variant is {@see AssetServiceClient::deleteSavedQueryAsync()} . - * - * @example samples/V1/AssetServiceClient/delete_saved_query.php - * - * @param DeleteSavedQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSavedQuery(DeleteSavedQueryRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSavedQuery', $request, $callOptions)->wait(); - } - - /** - * Exports assets with time and resource types to a given Cloud Storage - * location/BigQuery table. For Cloud Storage location destinations, the - * output format is newline-delimited JSON. Each line represents a - * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON - * format; for BigQuery table destinations, the output table stores the fields - * in asset Protobuf as columns. This API implements the - * [google.longrunning.Operation][google.longrunning.Operation] API, which - * allows you to keep track of the export. We recommend intervals of at least - * 2 seconds with exponential retry to poll the export operation result. For - * regular-size resource parent, the export operation usually finishes within - * 5 minutes. - * - * The async variant is {@see AssetServiceClient::exportAssetsAsync()} . - * - * @example samples/V1/AssetServiceClient/export_assets.php - * - * @param ExportAssetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function exportAssets(ExportAssetsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportAssets', $request, $callOptions)->wait(); - } - - /** - * Gets details about an asset feed. - * - * The async variant is {@see AssetServiceClient::getFeedAsync()} . - * - * @example samples/V1/AssetServiceClient/get_feed.php - * - * @param GetFeedRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Feed - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFeed(GetFeedRequest $request, array $callOptions = []): Feed - { - return $this->startApiCall('GetFeed', $request, $callOptions)->wait(); - } - - /** - * Gets details about a saved query. - * - * The async variant is {@see AssetServiceClient::getSavedQueryAsync()} . - * - * @example samples/V1/AssetServiceClient/get_saved_query.php - * - * @param GetSavedQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SavedQuery - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSavedQuery(GetSavedQueryRequest $request, array $callOptions = []): SavedQuery - { - return $this->startApiCall('GetSavedQuery', $request, $callOptions)->wait(); - } - - /** - * Lists assets with time and resource types and returns paged results in - * response. - * - * The async variant is {@see AssetServiceClient::listAssetsAsync()} . - * - * @example samples/V1/AssetServiceClient/list_assets.php - * - * @param ListAssetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAssets(ListAssetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAssets', $request, $callOptions); - } - - /** - * Lists all asset feeds in a parent project/folder/organization. - * - * The async variant is {@see AssetServiceClient::listFeedsAsync()} . - * - * @example samples/V1/AssetServiceClient/list_feeds.php - * - * @param ListFeedsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListFeedsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listFeeds(ListFeedsRequest $request, array $callOptions = []): ListFeedsResponse - { - return $this->startApiCall('ListFeeds', $request, $callOptions)->wait(); - } - - /** - * Lists all saved queries in a parent project/folder/organization. - * - * The async variant is {@see AssetServiceClient::listSavedQueriesAsync()} . - * - * @example samples/V1/AssetServiceClient/list_saved_queries.php - * - * @param ListSavedQueriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSavedQueries(ListSavedQueriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSavedQueries', $request, $callOptions); - } - - /** - * Issue a job that queries assets using a SQL statement compatible with - * [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql). - * - * If the query execution finishes within timeout and there's no pagination, - * the full query results will be returned in the `QueryAssetsResponse`. - * - * Otherwise, full query results can be obtained by issuing extra requests - * with the `job_reference` from the a previous `QueryAssets` call. - * - * Note, the query result has approximately 10 GB limitation enforced by - * [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output). - * Queries return larger results will result in errors. - * - * The async variant is {@see AssetServiceClient::queryAssetsAsync()} . - * - * @example samples/V1/AssetServiceClient/query_assets.php - * - * @param QueryAssetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return QueryAssetsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryAssets(QueryAssetsRequest $request, array $callOptions = []): QueryAssetsResponse - { - return $this->startApiCall('QueryAssets', $request, $callOptions)->wait(); - } - - /** - * Searches all IAM policies within the specified scope, such as a project, - * folder, or organization. The caller must be granted the - * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope, - * otherwise the request will be rejected. - * - * The async variant is {@see AssetServiceClient::searchAllIamPoliciesAsync()} . - * - * @example samples/V1/AssetServiceClient/search_all_iam_policies.php - * - * @param SearchAllIamPoliciesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchAllIamPolicies(SearchAllIamPoliciesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchAllIamPolicies', $request, $callOptions); - } - - /** - * Searches all Google Cloud resources within the specified scope, such as a - * project, folder, or organization. The caller must be granted the - * `cloudasset.assets.searchAllResources` permission on the desired scope, - * otherwise the request will be rejected. - * - * The async variant is {@see AssetServiceClient::searchAllResourcesAsync()} . - * - * @example samples/V1/AssetServiceClient/search_all_resources.php - * - * @param SearchAllResourcesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchAllResources(SearchAllResourcesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchAllResources', $request, $callOptions); - } - - /** - * Updates an asset feed configuration. - * - * The async variant is {@see AssetServiceClient::updateFeedAsync()} . - * - * @example samples/V1/AssetServiceClient/update_feed.php - * - * @param UpdateFeedRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Feed - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateFeed(UpdateFeedRequest $request, array $callOptions = []): Feed - { - return $this->startApiCall('UpdateFeed', $request, $callOptions)->wait(); - } - - /** - * Updates a saved query. - * - * The async variant is {@see AssetServiceClient::updateSavedQueryAsync()} . - * - * @example samples/V1/AssetServiceClient/update_saved_query.php - * - * @param UpdateSavedQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SavedQuery - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSavedQuery(UpdateSavedQueryRequest $request, array $callOptions = []): SavedQuery - { - return $this->startApiCall('UpdateSavedQuery', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Asset/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Asset/v1/src/V1/gapic_metadata.json deleted file mode 100644 index d82ed6c640f9..000000000000 --- a/owl-bot-staging/Asset/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.asset.v1", - "libraryPackage": "Google\\Cloud\\Asset\\V1", - "services": { - "AssetService": { - "clients": { - "grpc": { - "libraryClient": "AssetServiceGapicClient", - "rpcs": { - "AnalyzeIamPolicy": { - "methods": [ - "analyzeIamPolicy" - ] - }, - "AnalyzeIamPolicyLongrunning": { - "methods": [ - "analyzeIamPolicyLongrunning" - ] - }, - "AnalyzeMove": { - "methods": [ - "analyzeMove" - ] - }, - "AnalyzeOrgPolicies": { - "methods": [ - "analyzeOrgPolicies" - ] - }, - "AnalyzeOrgPolicyGovernedAssets": { - "methods": [ - "analyzeOrgPolicyGovernedAssets" - ] - }, - "AnalyzeOrgPolicyGovernedContainers": { - "methods": [ - "analyzeOrgPolicyGovernedContainers" - ] - }, - "BatchGetAssetsHistory": { - "methods": [ - "batchGetAssetsHistory" - ] - }, - "BatchGetEffectiveIamPolicies": { - "methods": [ - "batchGetEffectiveIamPolicies" - ] - }, - "CreateFeed": { - "methods": [ - "createFeed" - ] - }, - "CreateSavedQuery": { - "methods": [ - "createSavedQuery" - ] - }, - "DeleteFeed": { - "methods": [ - "deleteFeed" - ] - }, - "DeleteSavedQuery": { - "methods": [ - "deleteSavedQuery" - ] - }, - "ExportAssets": { - "methods": [ - "exportAssets" - ] - }, - "GetFeed": { - "methods": [ - "getFeed" - ] - }, - "GetSavedQuery": { - "methods": [ - "getSavedQuery" - ] - }, - "ListAssets": { - "methods": [ - "listAssets" - ] - }, - "ListFeeds": { - "methods": [ - "listFeeds" - ] - }, - "ListSavedQueries": { - "methods": [ - "listSavedQueries" - ] - }, - "QueryAssets": { - "methods": [ - "queryAssets" - ] - }, - "SearchAllIamPolicies": { - "methods": [ - "searchAllIamPolicies" - ] - }, - "SearchAllResources": { - "methods": [ - "searchAllResources" - ] - }, - "UpdateFeed": { - "methods": [ - "updateFeed" - ] - }, - "UpdateSavedQuery": { - "methods": [ - "updateSavedQuery" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_client_config.json b/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_client_config.json deleted file mode 100644 index a77774f9f074..000000000000 --- a/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_client_config.json +++ /dev/null @@ -1,244 +0,0 @@ -{ - "interfaces": { - "google.cloud.asset.v1.AssetService": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_1_codes": [], - "retry_policy_1_codes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ], - "retry_policy_2_codes": [ - "UNAVAILABLE" - ], - "retry_policy_3_codes": [ - "UNAVAILABLE" - ], - "retry_policy_4_codes": [ - "UNAVAILABLE" - ], - "retry_policy_5_codes": [ - "UNAVAILABLE" - ], - "retry_policy_6_codes": [ - "UNAVAILABLE" - ], - "retry_policy_7_codes": [ - "UNAVAILABLE" - ], - "retry_policy_8_codes": [ - "UNAVAILABLE" - ] - }, - "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 - }, - "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 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "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 - }, - "retry_policy_2_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - }, - "retry_policy_3_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - }, - "retry_policy_4_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 200000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 200000, - "total_timeout_millis": 200000 - }, - "retry_policy_5_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 10000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 10000, - "total_timeout_millis": 10000 - }, - "retry_policy_6_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - }, - "retry_policy_7_params": { - "initial_retry_delay_millis": 100, - "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 - }, - "retry_policy_8_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AnalyzeIamPolicy": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "AnalyzeIamPolicyLongrunning": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "AnalyzeMove": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "AnalyzeOrgPolicies": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "AnalyzeOrgPolicyGovernedAssets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "AnalyzeOrgPolicyGovernedContainers": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchGetAssetsHistory": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "BatchGetEffectiveIamPolicies": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_6_codes", - "retry_params_name": "retry_policy_6_params" - }, - "CreateFeed": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateSavedQuery": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteFeed": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteSavedQuery": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ExportAssets": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetFeed": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSavedQuery": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAssets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFeeds": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSavedQueries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryAssets": { - "timeout_millis": 200000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "SearchAllIamPolicies": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "SearchAllResources": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateFeed": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateSavedQuery": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_descriptor_config.php b/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_descriptor_config.php deleted file mode 100644 index 964b0a52ce33..000000000000 --- a/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_descriptor_config.php +++ /dev/null @@ -1,391 +0,0 @@ - [ - 'google.cloud.asset.v1.AssetService' => [ - 'AnalyzeIamPolicyLongrunning' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Asset\V1\AnalyzeIamPolicyLongrunningResponse', - 'metadataReturnType' => '\Google\Cloud\Asset\V1\AnalyzeIamPolicyLongrunningMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'analysis_query.scope', - 'fieldAccessors' => [ - 'getAnalysisQuery', - 'getScope', - ], - ], - ], - ], - 'ExportAssets' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Asset\V1\ExportAssetsResponse', - 'metadataReturnType' => '\Google\Cloud\Asset\V1\ExportAssetsRequest', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'AnalyzeIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\AnalyzeIamPolicyResponse', - 'headerParams' => [ - [ - 'keyName' => 'analysis_query.scope', - 'fieldAccessors' => [ - 'getAnalysisQuery', - 'getScope', - ], - ], - ], - ], - 'AnalyzeMove' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\AnalyzeMoveResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'AnalyzeOrgPolicies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOrgPolicyResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\AnalyzeOrgPoliciesResponse', - 'headerParams' => [ - [ - 'keyName' => 'scope', - 'fieldAccessors' => [ - 'getScope', - ], - ], - ], - ], - 'AnalyzeOrgPolicyGovernedAssets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGovernedAssets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedAssetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'scope', - 'fieldAccessors' => [ - 'getScope', - ], - ], - ], - ], - 'AnalyzeOrgPolicyGovernedContainers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGovernedContainers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\AnalyzeOrgPolicyGovernedContainersResponse', - 'headerParams' => [ - [ - 'keyName' => 'scope', - 'fieldAccessors' => [ - 'getScope', - ], - ], - ], - ], - 'BatchGetAssetsHistory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\BatchGetAssetsHistoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchGetEffectiveIamPolicies' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse', - 'headerParams' => [ - [ - 'keyName' => 'scope', - 'fieldAccessors' => [ - 'getScope', - ], - ], - ], - ], - 'CreateFeed' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\Feed', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSavedQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\SavedQuery', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFeed' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSavedQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFeed' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\Feed', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSavedQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\SavedQuery', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAssets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAssets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\ListAssetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFeeds' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\ListFeedsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSavedQueries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSavedQueries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\ListSavedQueriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'QueryAssets' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\QueryAssetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SearchAllIamPolicies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\SearchAllIamPoliciesResponse', - 'headerParams' => [ - [ - 'keyName' => 'scope', - 'fieldAccessors' => [ - 'getScope', - ], - ], - ], - ], - 'SearchAllResources' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\SearchAllResourcesResponse', - 'headerParams' => [ - [ - 'keyName' => 'scope', - 'fieldAccessors' => [ - 'getScope', - ], - ], - ], - ], - 'UpdateFeed' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\Feed', - 'headerParams' => [ - [ - 'keyName' => 'feed.name', - 'fieldAccessors' => [ - 'getFeed', - 'getName', - ], - ], - ], - ], - 'UpdateSavedQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Asset\V1\SavedQuery', - 'headerParams' => [ - [ - 'keyName' => 'saved_query.name', - 'fieldAccessors' => [ - 'getSavedQuery', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'feed' => 'projects/{project}/feeds/{feed}', - 'folder' => 'folders/{folder}', - 'folderFeed' => 'folders/{folder}/feeds/{feed}', - 'folderSavedQuery' => 'folders/{folder}/savedQueries/{saved_query}', - 'organization' => 'organizations/{organization}', - 'organizationFeed' => 'organizations/{organization}/feeds/{feed}', - 'organizationSavedQuery' => 'organizations/{organization}/savedQueries/{saved_query}', - 'project' => 'projects/{project}', - 'projectFeed' => 'projects/{project}/feeds/{feed}', - 'projectSavedQuery' => 'projects/{project}/savedQueries/{saved_query}', - 'savedQuery' => 'projects/{project}/savedQueries/{saved_query}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_rest_client_config.php b/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_rest_client_config.php deleted file mode 100644 index fd1b7fd66247..000000000000 --- a/owl-bot-staging/Asset/v1/src/V1/resources/asset_service_rest_client_config.php +++ /dev/null @@ -1,312 +0,0 @@ - [ - 'google.cloud.asset.v1.AssetService' => [ - 'AnalyzeIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{analysis_query.scope=*/*}:analyzeIamPolicy', - 'placeholders' => [ - 'analysis_query.scope' => [ - 'getters' => [ - 'getAnalysisQuery', - 'getScope', - ], - ], - ], - ], - 'AnalyzeIamPolicyLongrunning' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{analysis_query.scope=*/*}:analyzeIamPolicyLongrunning', - 'body' => '*', - 'placeholders' => [ - 'analysis_query.scope' => [ - 'getters' => [ - 'getAnalysisQuery', - 'getScope', - ], - ], - ], - ], - 'AnalyzeMove' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=*/*}:analyzeMove', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'AnalyzeOrgPolicies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{scope=*/*}:analyzeOrgPolicies', - 'placeholders' => [ - 'scope' => [ - 'getters' => [ - 'getScope', - ], - ], - ], - ], - 'AnalyzeOrgPolicyGovernedAssets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{scope=*/*}:analyzeOrgPolicyGovernedAssets', - 'placeholders' => [ - 'scope' => [ - 'getters' => [ - 'getScope', - ], - ], - ], - ], - 'AnalyzeOrgPolicyGovernedContainers' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{scope=*/*}:analyzeOrgPolicyGovernedContainers', - 'placeholders' => [ - 'scope' => [ - 'getters' => [ - 'getScope', - ], - ], - ], - ], - 'BatchGetAssetsHistory' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=*/*}:batchGetAssetsHistory', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchGetEffectiveIamPolicies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{scope=*/*}/effectiveIamPolicies:batchGet', - 'placeholders' => [ - 'scope' => [ - 'getters' => [ - 'getScope', - ], - ], - ], - ], - 'CreateFeed' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=*/*}/feeds', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSavedQuery' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=*/*}/savedQueries', - 'body' => 'saved_query', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'saved_query_id', - ], - ], - 'DeleteFeed' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=*/*/feeds/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSavedQuery' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=*/*/savedQueries/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportAssets' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=*/*}:exportAssets', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetFeed' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=*/*/feeds/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSavedQuery' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=*/*/savedQueries/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAssets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=*/*}/assets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFeeds' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=*/*}/feeds', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSavedQueries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=*/*}/savedQueries', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'QueryAssets' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=*/*}:queryAssets', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SearchAllIamPolicies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{scope=*/*}:searchAllIamPolicies', - 'placeholders' => [ - 'scope' => [ - 'getters' => [ - 'getScope', - ], - ], - ], - ], - 'SearchAllResources' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{scope=*/*}:searchAllResources', - 'placeholders' => [ - 'scope' => [ - 'getters' => [ - 'getScope', - ], - ], - ], - ], - 'UpdateFeed' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{feed.name=*/*/feeds/*}', - 'body' => '*', - 'placeholders' => [ - 'feed.name' => [ - 'getters' => [ - 'getFeed', - 'getName', - ], - ], - ], - ], - 'UpdateSavedQuery' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{saved_query.name=*/*/savedQueries/*}', - 'body' => 'saved_query', - 'placeholders' => [ - 'saved_query.name' => [ - 'getters' => [ - 'getSavedQuery', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=*/*/operations/*/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Asset/v1/tests/Unit/V1/Client/AssetServiceClientTest.php b/owl-bot-staging/Asset/v1/tests/Unit/V1/Client/AssetServiceClientTest.php deleted file mode 100644 index aeaf0907eed3..000000000000 --- a/owl-bot-staging/Asset/v1/tests/Unit/V1/Client/AssetServiceClientTest.php +++ /dev/null @@ -1,1911 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AssetServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AssetServiceClient($options); - } - - /** @test */ - public function analyzeIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $fullyExplored = true; - $expectedResponse = new AnalyzeIamPolicyResponse(); - $expectedResponse->setFullyExplored($fullyExplored); - $transport->addResponse($expectedResponse); - // Mock request - $analysisQuery = new IamPolicyAnalysisQuery(); - $analysisQueryScope = 'analysisQueryScope-495018392'; - $analysisQuery->setScope($analysisQueryScope); - $request = (new AnalyzeIamPolicyRequest()) - ->setAnalysisQuery($analysisQuery); - $response = $gapicClient->analyzeIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/AnalyzeIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getAnalysisQuery(); - $this->assertProtobufEquals($analysisQuery, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $analysisQuery = new IamPolicyAnalysisQuery(); - $analysisQueryScope = 'analysisQueryScope-495018392'; - $analysisQuery->setScope($analysisQueryScope); - $request = (new AnalyzeIamPolicyRequest()) - ->setAnalysisQuery($analysisQuery); - try { - $gapicClient->analyzeIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeIamPolicyLongrunningTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/analyzeIamPolicyLongrunningTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new AnalyzeIamPolicyLongrunningResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/analyzeIamPolicyLongrunningTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $analysisQuery = new IamPolicyAnalysisQuery(); - $analysisQueryScope = 'analysisQueryScope-495018392'; - $analysisQuery->setScope($analysisQueryScope); - $outputConfig = new IamPolicyAnalysisOutputConfig(); - $request = (new AnalyzeIamPolicyLongrunningRequest()) - ->setAnalysisQuery($analysisQuery) - ->setOutputConfig($outputConfig); - $response = $gapicClient->analyzeIamPolicyLongrunning($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/AnalyzeIamPolicyLongrunning', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAnalysisQuery(); - $this->assertProtobufEquals($analysisQuery, $actualValue); - $actualValue = $actualApiRequestObject->getOutputConfig(); - $this->assertProtobufEquals($outputConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/analyzeIamPolicyLongrunningTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function analyzeIamPolicyLongrunningExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/analyzeIamPolicyLongrunningTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $analysisQuery = new IamPolicyAnalysisQuery(); - $analysisQueryScope = 'analysisQueryScope-495018392'; - $analysisQuery->setScope($analysisQueryScope); - $outputConfig = new IamPolicyAnalysisOutputConfig(); - $request = (new AnalyzeIamPolicyLongrunningRequest()) - ->setAnalysisQuery($analysisQuery) - ->setOutputConfig($outputConfig); - $response = $gapicClient->analyzeIamPolicyLongrunning($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/analyzeIamPolicyLongrunningTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function analyzeMoveTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AnalyzeMoveResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedResource = $gapicClient->projectName('[PROJECT]'); - $destinationParent = 'destinationParent-1362053637'; - $request = (new AnalyzeMoveRequest()) - ->setResource($formattedResource) - ->setDestinationParent($destinationParent); - $response = $gapicClient->analyzeMove($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/AnalyzeMove', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($formattedResource, $actualValue); - $actualValue = $actualRequestObject->getDestinationParent(); - $this->assertProtobufEquals($destinationParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeMoveExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedResource = $gapicClient->projectName('[PROJECT]'); - $destinationParent = 'destinationParent-1362053637'; - $request = (new AnalyzeMoveRequest()) - ->setResource($formattedResource) - ->setDestinationParent($destinationParent); - try { - $gapicClient->analyzeMove($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeOrgPoliciesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $orgPolicyResultsElement = new OrgPolicyResult(); - $orgPolicyResults = [ - $orgPolicyResultsElement, - ]; - $expectedResponse = new AnalyzeOrgPoliciesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setOrgPolicyResults($orgPolicyResults); - $transport->addResponse($expectedResponse); - // Mock request - $scope = 'scope109264468'; - $constraint = 'constraint-190376483'; - $request = (new AnalyzeOrgPoliciesRequest()) - ->setScope($scope) - ->setConstraint($constraint); - $response = $gapicClient->analyzeOrgPolicies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOrgPolicyResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicies', $actualFuncCall); - $actualValue = $actualRequestObject->getScope(); - $this->assertProtobufEquals($scope, $actualValue); - $actualValue = $actualRequestObject->getConstraint(); - $this->assertProtobufEquals($constraint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeOrgPoliciesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $scope = 'scope109264468'; - $constraint = 'constraint-190376483'; - $request = (new AnalyzeOrgPoliciesRequest()) - ->setScope($scope) - ->setConstraint($constraint); - try { - $gapicClient->analyzeOrgPolicies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeOrgPolicyGovernedAssetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $governedAssetsElement = new GovernedAsset(); - $governedAssets = [ - $governedAssetsElement, - ]; - $expectedResponse = new AnalyzeOrgPolicyGovernedAssetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGovernedAssets($governedAssets); - $transport->addResponse($expectedResponse); - // Mock request - $scope = 'scope109264468'; - $constraint = 'constraint-190376483'; - $request = (new AnalyzeOrgPolicyGovernedAssetsRequest()) - ->setScope($scope) - ->setConstraint($constraint); - $response = $gapicClient->analyzeOrgPolicyGovernedAssets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGovernedAssets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicyGovernedAssets', $actualFuncCall); - $actualValue = $actualRequestObject->getScope(); - $this->assertProtobufEquals($scope, $actualValue); - $actualValue = $actualRequestObject->getConstraint(); - $this->assertProtobufEquals($constraint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeOrgPolicyGovernedAssetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $scope = 'scope109264468'; - $constraint = 'constraint-190376483'; - $request = (new AnalyzeOrgPolicyGovernedAssetsRequest()) - ->setScope($scope) - ->setConstraint($constraint); - try { - $gapicClient->analyzeOrgPolicyGovernedAssets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeOrgPolicyGovernedContainersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $governedContainersElement = new GovernedContainer(); - $governedContainers = [ - $governedContainersElement, - ]; - $expectedResponse = new AnalyzeOrgPolicyGovernedContainersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGovernedContainers($governedContainers); - $transport->addResponse($expectedResponse); - // Mock request - $scope = 'scope109264468'; - $constraint = 'constraint-190376483'; - $request = (new AnalyzeOrgPolicyGovernedContainersRequest()) - ->setScope($scope) - ->setConstraint($constraint); - $response = $gapicClient->analyzeOrgPolicyGovernedContainers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGovernedContainers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicyGovernedContainers', $actualFuncCall); - $actualValue = $actualRequestObject->getScope(); - $this->assertProtobufEquals($scope, $actualValue); - $actualValue = $actualRequestObject->getConstraint(); - $this->assertProtobufEquals($constraint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeOrgPolicyGovernedContainersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $scope = 'scope109264468'; - $constraint = 'constraint-190376483'; - $request = (new AnalyzeOrgPolicyGovernedContainersRequest()) - ->setScope($scope) - ->setConstraint($constraint); - try { - $gapicClient->analyzeOrgPolicyGovernedContainers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAssetsHistoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetAssetsHistoryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $contentType = ContentType::CONTENT_TYPE_UNSPECIFIED; - $readTimeWindow = new TimeWindow(); - $request = (new BatchGetAssetsHistoryRequest()) - ->setParent($parent) - ->setContentType($contentType) - ->setReadTimeWindow($readTimeWindow); - $response = $gapicClient->batchGetAssetsHistory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/BatchGetAssetsHistory', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getContentType(); - $this->assertProtobufEquals($contentType, $actualValue); - $actualValue = $actualRequestObject->getReadTimeWindow(); - $this->assertProtobufEquals($readTimeWindow, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetAssetsHistoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $contentType = ContentType::CONTENT_TYPE_UNSPECIFIED; - $readTimeWindow = new TimeWindow(); - $request = (new BatchGetAssetsHistoryRequest()) - ->setParent($parent) - ->setContentType($contentType) - ->setReadTimeWindow($readTimeWindow); - try { - $gapicClient->batchGetAssetsHistory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetEffectiveIamPoliciesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetEffectiveIamPoliciesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $scope = 'scope109264468'; - $names = []; - $request = (new BatchGetEffectiveIamPoliciesRequest()) - ->setScope($scope) - ->setNames($names); - $response = $gapicClient->batchGetEffectiveIamPolicies($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/BatchGetEffectiveIamPolicies', $actualFuncCall); - $actualValue = $actualRequestObject->getScope(); - $this->assertProtobufEquals($scope, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($names, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetEffectiveIamPoliciesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $scope = 'scope109264468'; - $names = []; - $request = (new BatchGetEffectiveIamPoliciesRequest()) - ->setScope($scope) - ->setNames($names); - try { - $gapicClient->batchGetEffectiveIamPolicies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFeedTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Feed(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $feedId = 'feedId-976011428'; - $feed = new Feed(); - $feedName = 'feedName-192096951'; - $feed->setName($feedName); - $feedFeedOutputConfig = new FeedOutputConfig(); - $feed->setFeedOutputConfig($feedFeedOutputConfig); - $request = (new CreateFeedRequest()) - ->setParent($parent) - ->setFeedId($feedId) - ->setFeed($feed); - $response = $gapicClient->createFeed($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/CreateFeed', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getFeedId(); - $this->assertProtobufEquals($feedId, $actualValue); - $actualValue = $actualRequestObject->getFeed(); - $this->assertProtobufEquals($feed, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFeedExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $feedId = 'feedId-976011428'; - $feed = new Feed(); - $feedName = 'feedName-192096951'; - $feed->setName($feedName); - $feedFeedOutputConfig = new FeedOutputConfig(); - $feed->setFeedOutputConfig($feedFeedOutputConfig); - $request = (new CreateFeedRequest()) - ->setParent($parent) - ->setFeedId($feedId) - ->setFeed($feed); - try { - $gapicClient->createFeed($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSavedQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $creator = 'creator1028554796'; - $lastUpdater = 'lastUpdater338699296'; - $expectedResponse = new SavedQuery(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setCreator($creator); - $expectedResponse->setLastUpdater($lastUpdater); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $savedQuery = new SavedQuery(); - $savedQueryId = 'savedQueryId1290759850'; - $request = (new CreateSavedQueryRequest()) - ->setParent($formattedParent) - ->setSavedQuery($savedQuery) - ->setSavedQueryId($savedQueryId); - $response = $gapicClient->createSavedQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/CreateSavedQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSavedQuery(); - $this->assertProtobufEquals($savedQuery, $actualValue); - $actualValue = $actualRequestObject->getSavedQueryId(); - $this->assertProtobufEquals($savedQueryId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSavedQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $savedQuery = new SavedQuery(); - $savedQueryId = 'savedQueryId1290759850'; - $request = (new CreateSavedQueryRequest()) - ->setParent($formattedParent) - ->setSavedQuery($savedQuery) - ->setSavedQueryId($savedQueryId); - try { - $gapicClient->createSavedQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFeedTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->feedName('[PROJECT]', '[FEED]'); - $request = (new DeleteFeedRequest()) - ->setName($formattedName); - $gapicClient->deleteFeed($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/DeleteFeed', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFeedExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->feedName('[PROJECT]', '[FEED]'); - $request = (new DeleteFeedRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFeed($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSavedQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->savedQueryName('[PROJECT]', '[SAVED_QUERY]'); - $request = (new DeleteSavedQueryRequest()) - ->setName($formattedName); - $gapicClient->deleteSavedQuery($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/DeleteSavedQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSavedQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->savedQueryName('[PROJECT]', '[SAVED_QUERY]'); - $request = (new DeleteSavedQueryRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSavedQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function exportAssetsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportAssetsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new ExportAssetsResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportAssetsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $parent = 'parent-995424086'; - $outputConfig = new OutputConfig(); - $request = (new ExportAssetsRequest()) - ->setParent($parent) - ->setOutputConfig($outputConfig); - $response = $gapicClient->exportAssets($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/ExportAssets', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualApiRequestObject->getOutputConfig(); - $this->assertProtobufEquals($outputConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportAssetsTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportAssetsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportAssetsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $outputConfig = new OutputConfig(); - $request = (new ExportAssetsRequest()) - ->setParent($parent) - ->setOutputConfig($outputConfig); - $response = $gapicClient->exportAssets($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportAssetsTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getFeedTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Feed(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->feedName('[PROJECT]', '[FEED]'); - $request = (new GetFeedRequest()) - ->setName($formattedName); - $response = $gapicClient->getFeed($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/GetFeed', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFeedExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->feedName('[PROJECT]', '[FEED]'); - $request = (new GetFeedRequest()) - ->setName($formattedName); - try { - $gapicClient->getFeed($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSavedQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $creator = 'creator1028554796'; - $lastUpdater = 'lastUpdater338699296'; - $expectedResponse = new SavedQuery(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setCreator($creator); - $expectedResponse->setLastUpdater($lastUpdater); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->savedQueryName('[PROJECT]', '[SAVED_QUERY]'); - $request = (new GetSavedQueryRequest()) - ->setName($formattedName); - $response = $gapicClient->getSavedQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/GetSavedQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSavedQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->savedQueryName('[PROJECT]', '[SAVED_QUERY]'); - $request = (new GetSavedQueryRequest()) - ->setName($formattedName); - try { - $gapicClient->getSavedQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAssetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $assetsElement = new Asset(); - $assets = [ - $assetsElement, - ]; - $expectedResponse = new ListAssetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAssets($assets); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new ListAssetsRequest()) - ->setParent($parent); - $response = $gapicClient->listAssets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAssets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/ListAssets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAssetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $request = (new ListAssetsRequest()) - ->setParent($parent); - try { - $gapicClient->listAssets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFeedsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListFeedsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new ListFeedsRequest()) - ->setParent($parent); - $response = $gapicClient->listFeeds($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/ListFeeds', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFeedsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $request = (new ListFeedsRequest()) - ->setParent($parent); - try { - $gapicClient->listFeeds($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSavedQueriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $savedQueriesElement = new SavedQuery(); - $savedQueries = [ - $savedQueriesElement, - ]; - $expectedResponse = new ListSavedQueriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSavedQueries($savedQueries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListSavedQueriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSavedQueries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSavedQueries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/ListSavedQueries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSavedQueriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListSavedQueriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSavedQueries($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAssetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $jobReference = 'jobReference-2014311095'; - $done = true; - $expectedResponse = new QueryAssetsResponse(); - $expectedResponse->setJobReference($jobReference); - $expectedResponse->setDone($done); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryAssetsRequest()) - ->setParent($parent); - $response = $gapicClient->queryAssets($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/QueryAssets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryAssetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryAssetsRequest()) - ->setParent($parent); - try { - $gapicClient->queryAssets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchAllIamPoliciesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resultsElement = new IamPolicySearchResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchAllIamPoliciesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $scope = 'scope109264468'; - $request = (new SearchAllIamPoliciesRequest()) - ->setScope($scope); - $response = $gapicClient->searchAllIamPolicies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/SearchAllIamPolicies', $actualFuncCall); - $actualValue = $actualRequestObject->getScope(); - $this->assertProtobufEquals($scope, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchAllIamPoliciesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $scope = 'scope109264468'; - $request = (new SearchAllIamPoliciesRequest()) - ->setScope($scope); - try { - $gapicClient->searchAllIamPolicies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchAllResourcesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resultsElement = new ResourceSearchResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchAllResourcesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $scope = 'scope109264468'; - $request = (new SearchAllResourcesRequest()) - ->setScope($scope); - $response = $gapicClient->searchAllResources($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/SearchAllResources', $actualFuncCall); - $actualValue = $actualRequestObject->getScope(); - $this->assertProtobufEquals($scope, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchAllResourcesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $scope = 'scope109264468'; - $request = (new SearchAllResourcesRequest()) - ->setScope($scope); - try { - $gapicClient->searchAllResources($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFeedTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Feed(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $feed = new Feed(); - $feedName = 'feedName-192096951'; - $feed->setName($feedName); - $feedFeedOutputConfig = new FeedOutputConfig(); - $feed->setFeedOutputConfig($feedFeedOutputConfig); - $updateMask = new FieldMask(); - $request = (new UpdateFeedRequest()) - ->setFeed($feed) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateFeed($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/UpdateFeed', $actualFuncCall); - $actualValue = $actualRequestObject->getFeed(); - $this->assertProtobufEquals($feed, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFeedExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $feed = new Feed(); - $feedName = 'feedName-192096951'; - $feed->setName($feedName); - $feedFeedOutputConfig = new FeedOutputConfig(); - $feed->setFeedOutputConfig($feedFeedOutputConfig); - $updateMask = new FieldMask(); - $request = (new UpdateFeedRequest()) - ->setFeed($feed) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateFeed($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSavedQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $creator = 'creator1028554796'; - $lastUpdater = 'lastUpdater338699296'; - $expectedResponse = new SavedQuery(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setCreator($creator); - $expectedResponse->setLastUpdater($lastUpdater); - $transport->addResponse($expectedResponse); - // Mock request - $savedQuery = new SavedQuery(); - $updateMask = new FieldMask(); - $request = (new UpdateSavedQueryRequest()) - ->setSavedQuery($savedQuery) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateSavedQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/UpdateSavedQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getSavedQuery(); - $this->assertProtobufEquals($savedQuery, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSavedQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $savedQuery = new SavedQuery(); - $updateMask = new FieldMask(); - $request = (new UpdateSavedQueryRequest()) - ->setSavedQuery($savedQuery) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateSavedQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeIamPolicyAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $fullyExplored = true; - $expectedResponse = new AnalyzeIamPolicyResponse(); - $expectedResponse->setFullyExplored($fullyExplored); - $transport->addResponse($expectedResponse); - // Mock request - $analysisQuery = new IamPolicyAnalysisQuery(); - $analysisQueryScope = 'analysisQueryScope-495018392'; - $analysisQuery->setScope($analysisQueryScope); - $request = (new AnalyzeIamPolicyRequest()) - ->setAnalysisQuery($analysisQuery); - $response = $gapicClient->analyzeIamPolicyAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.asset.v1.AssetService/AnalyzeIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getAnalysisQuery(); - $this->assertProtobufEquals($analysisQuery, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1/Assuredworkloads.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1/Assuredworkloads.php deleted file mode 100644 index a1f644afd808..000000000000 Binary files a/owl-bot-staging/AssuredWorkloads/v1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1/Assuredworkloads.php and /dev/null differ diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/AcknowledgeViolationRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/AcknowledgeViolationRequest.php deleted file mode 100644 index 0be4636db1af..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/AcknowledgeViolationRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest - */ -class AcknowledgeViolationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Violation to acknowledge. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. Business justification explaining the need for violation acknowledgement - * - * Generated from protobuf field string comment = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $comment = ''; - /** - * Optional. This field is deprecated and will be removed in future version of the API. - * Name of the OrgPolicy which was modified with non-compliant change and - * resulted in this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * - * Generated from protobuf field string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $non_compliant_org_policy = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Violation to acknowledge. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * @type string $comment - * Required. Business justification explaining the need for violation acknowledgement - * @type string $non_compliant_org_policy - * Optional. This field is deprecated and will be removed in future version of the API. - * Name of the OrgPolicy which was modified with non-compliant change and - * resulted in this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Violation to acknowledge. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the Violation to acknowledge. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Business justification explaining the need for violation acknowledgement - * - * Generated from protobuf field string comment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getComment() - { - return $this->comment; - } - - /** - * Required. Business justification explaining the need for violation acknowledgement - * - * Generated from protobuf field string comment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setComment($var) - { - GPBUtil::checkString($var, True); - $this->comment = $var; - - return $this; - } - - /** - * Optional. This field is deprecated and will be removed in future version of the API. - * Name of the OrgPolicy which was modified with non-compliant change and - * resulted in this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * - * Generated from protobuf field string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return string - * @deprecated - */ - public function getNonCompliantOrgPolicy() - { - @trigger_error('non_compliant_org_policy is deprecated.', E_USER_DEPRECATED); - return $this->non_compliant_org_policy; - } - - /** - * Optional. This field is deprecated and will be removed in future version of the API. - * Name of the OrgPolicy which was modified with non-compliant change and - * resulted in this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * - * Generated from protobuf field string non_compliant_org_policy = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNonCompliantOrgPolicy($var) - { - @trigger_error('non_compliant_org_policy is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->non_compliant_org_policy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/AcknowledgeViolationResponse.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/AcknowledgeViolationResponse.php deleted file mode 100644 index f8958f14d1b6..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/AcknowledgeViolationResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.assuredworkloads.v1.AcknowledgeViolationResponse - */ -class AcknowledgeViolationResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/CreateWorkloadOperationMetadata.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/CreateWorkloadOperationMetadata.php deleted file mode 100644 index 1a4b40123dbc..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/CreateWorkloadOperationMetadata.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata - */ -class CreateWorkloadOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Optional. The display name of the workload. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The parent of the workload. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $parent = ''; - /** - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $compliance_regime = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Time when the operation was created. - * @type string $display_name - * Optional. The display name of the workload. - * @type string $parent - * Optional. The parent of the workload. - * @type int $compliance_regime - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Optional. The display name of the workload. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The display name of the workload. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The parent of the workload. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Optional. The parent of the workload. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getComplianceRegime() - { - return $this->compliance_regime; - } - - /** - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setComplianceRegime($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Workload\ComplianceRegime::class); - $this->compliance_regime = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/CreateWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/CreateWorkloadRequest.php deleted file mode 100644 index be66d2add195..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/CreateWorkloadRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.assuredworkloads.v1.CreateWorkloadRequest - */ -class CreateWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Assured Workload to create - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workload = null; - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * - * Generated from protobuf field string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_id = ''; - - /** - * @param string $parent Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. Please see - * {@see AssuredWorkloadsServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AssuredWorkloads\V1\Workload $workload Required. Assured Workload to create - * - * @return \Google\Cloud\AssuredWorkloads\V1\CreateWorkloadRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AssuredWorkloads\V1\Workload $workload): self - { - return (new self()) - ->setParent($parent) - ->setWorkload($workload); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * @type \Google\Cloud\AssuredWorkloads\V1\Workload $workload - * Required. Assured Workload to create - * @type string $external_id - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * - * 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 new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * - * 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. Assured Workload to create - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AssuredWorkloads\V1\Workload|null - */ - public function getWorkload() - { - return $this->workload; - } - - public function hasWorkload() - { - return isset($this->workload); - } - - public function clearWorkload() - { - unset($this->workload); - } - - /** - * Required. Assured Workload to create - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AssuredWorkloads\V1\Workload $var - * @return $this - */ - public function setWorkload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Workload::class); - $this->workload = $var; - - return $this; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * - * Generated from protobuf field string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * - * Generated from protobuf field string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/DeleteWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/DeleteWorkloadRequest.php deleted file mode 100644 index 2c5dfe38cdf4..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/DeleteWorkloadRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.assuredworkloads.v1.DeleteWorkloadRequest - */ -class DeleteWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * Please see {@see AssuredWorkloadsServiceClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1\DeleteWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @type string $etag - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * 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` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * 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; - } - - /** - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/GetViolationRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/GetViolationRequest.php deleted file mode 100644 index 6790c069eb29..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/GetViolationRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.assuredworkloads.v1.GetViolationRequest - */ -class GetViolationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Violation to fetch (ie. Violation.name). - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Violation to fetch (ie. Violation.name). - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * Please see {@see AssuredWorkloadsServiceClient::violationName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1\GetViolationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Violation to fetch (ie. Violation.name). - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Violation to fetch (ie. Violation.name). - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * - * 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 Violation to fetch (ie. Violation.name). - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * - * 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/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/GetWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/GetWorkloadRequest.php deleted file mode 100644 index 96dccb40d104..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/GetWorkloadRequest.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.assuredworkloads.v1.GetWorkloadRequest - */ -class GetWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Workload to fetch. This is the workload's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Workload to fetch. This is the workload's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". Please see - * {@see AssuredWorkloadsServiceClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1\GetWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Workload to fetch. This is the workload's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Workload to fetch. This is the workload's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * 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 Workload to fetch. This is the workload's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * 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/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListViolationsRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListViolationsRequest.php deleted file mode 100644 index deeba4814a66..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListViolationsRequest.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.assuredworkloads.v1.ListViolationsRequest - */ -class ListViolationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Workload name. - * Format `organizations/{org_id}/locations/{location}/workloads/{workload}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Specifies the time window for retrieving active Violations. - * When specified, retrieves Violations that were active between start_time - * and end_time. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.TimeWindow interval = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $interval = null; - /** - * Optional. Page size. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token returned from previous request. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A custom filter for filtering by the Violations properties. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The Workload name. - * Format `organizations/{org_id}/locations/{location}/workloads/{workload}`. Please see - * {@see AssuredWorkloadsServiceClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1\ListViolationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The Workload name. - * Format `organizations/{org_id}/locations/{location}/workloads/{workload}`. - * @type \Google\Cloud\AssuredWorkloads\V1\TimeWindow $interval - * Optional. Specifies the time window for retrieving active Violations. - * When specified, retrieves Violations that were active between start_time - * and end_time. - * @type int $page_size - * Optional. Page size. - * @type string $page_token - * Optional. Page token returned from previous request. - * @type string $filter - * Optional. A custom filter for filtering by the Violations properties. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Workload name. - * Format `organizations/{org_id}/locations/{location}/workloads/{workload}`. - * - * 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 Workload name. - * Format `organizations/{org_id}/locations/{location}/workloads/{workload}`. - * - * 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. Specifies the time window for retrieving active Violations. - * When specified, retrieves Violations that were active between start_time - * and end_time. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.TimeWindow interval = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\AssuredWorkloads\V1\TimeWindow|null - */ - public function getInterval() - { - return $this->interval; - } - - public function hasInterval() - { - return isset($this->interval); - } - - public function clearInterval() - { - unset($this->interval); - } - - /** - * Optional. Specifies the time window for retrieving active Violations. - * When specified, retrieves Violations that were active between start_time - * and end_time. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.TimeWindow interval = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\AssuredWorkloads\V1\TimeWindow $var - * @return $this - */ - public function setInterval($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\TimeWindow::class); - $this->interval = $var; - - return $this; - } - - /** - * Optional. Page size. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Page size. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token returned from previous request. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token returned from previous request. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A custom filter for filtering by the Violations properties. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A custom filter for filtering by the Violations properties. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListViolationsResponse.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListViolationsResponse.php deleted file mode 100644 index 9cd32a438855..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListViolationsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.assuredworkloads.v1.ListViolationsResponse - */ -class ListViolationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Violations under a Workload. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Violation violations = 1; - */ - private $violations; - /** - * The next page token. Returns empty if reached the last page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AssuredWorkloads\V1\Violation>|\Google\Protobuf\Internal\RepeatedField $violations - * List of Violations under a Workload. - * @type string $next_page_token - * The next page token. Returns empty if reached the last page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * List of Violations under a Workload. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Violation violations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getViolations() - { - return $this->violations; - } - - /** - * List of Violations under a Workload. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Violation violations = 1; - * @param array<\Google\Cloud\AssuredWorkloads\V1\Violation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1\Violation::class); - $this->violations = $arr; - - return $this; - } - - /** - * The next page token. Returns empty if reached the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. Returns empty if reached the last page. - * - * 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/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListWorkloadsRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListWorkloadsRequest.php deleted file mode 100644 index fc9101c054ff..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListWorkloadsRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.assuredworkloads.v1.ListWorkloadsRequest - */ -class ListWorkloadsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. Please see - * {@see AssuredWorkloadsServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1\ListWorkloadsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * @type int $page_size - * Page size. - * @type string $page_token - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * @type string $filter - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * - * 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. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * - * 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; - } - - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Page size. - * - * 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; - } - - /** - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * - * 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; - } - - /** - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListWorkloadsResponse.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListWorkloadsResponse.php deleted file mode 100644 index 0c78b8bd31d0..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/ListWorkloadsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.assuredworkloads.v1.ListWorkloadsResponse - */ -class ListWorkloadsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Workloads under a given parent. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; - */ - private $workloads; - /** - * The next page token. Return empty if reached the last page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AssuredWorkloads\V1\Workload>|\Google\Protobuf\Internal\RepeatedField $workloads - * List of Workloads under a given parent. - * @type string $next_page_token - * The next page token. Return empty if reached the last page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * List of Workloads under a given parent. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkloads() - { - return $this->workloads; - } - - /** - * List of Workloads under a given parent. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1; - * @param array<\Google\Cloud\AssuredWorkloads\V1\Workload>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkloads($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1\Workload::class); - $this->workloads = $arr; - - return $this; - } - - /** - * The next page token. Return empty if reached the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. Return empty if reached the last page. - * - * 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/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesRequest.php deleted file mode 100644 index 12940165bbd3..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest - */ -class RestrictAllowedResourcesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The type of restriction for using gcp products in the Workload environment. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $restriction_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @type int $restriction_type - * Required. The type of restriction for using gcp products in the Workload environment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The type of restriction for using gcp products in the Workload environment. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getRestrictionType() - { - return $this->restriction_type; - } - - /** - * Required. The type of restriction for using gcp products in the Workload environment. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setRestrictionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\RestrictAllowedResourcesRequest\RestrictionType::class); - $this->restriction_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesRequest/RestrictionType.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesRequest/RestrictionType.php deleted file mode 100644 index 630c16506a1c..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesRequest/RestrictionType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType - */ -class RestrictionType -{ - /** - * Unknown restriction type. - * - * Generated from protobuf enum RESTRICTION_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTION_TYPE_UNSPECIFIED = 0; - /** - * Allow the use all of all gcp products, irrespective of the compliance - * posture. This effectively removes gcp.restrictServiceUsage OrgPolicy - * on the AssuredWorkloads Folder. - * - * Generated from protobuf enum ALLOW_ALL_GCP_RESOURCES = 1; - */ - const ALLOW_ALL_GCP_RESOURCES = 1; - /** - * Based on Workload's compliance regime, allowed list changes. - * See - https://cloud.google.com/assured-workloads/docs/supported-products - * for the list of supported resources. - * - * Generated from protobuf enum ALLOW_COMPLIANT_RESOURCES = 2; - */ - const ALLOW_COMPLIANT_RESOURCES = 2; - - private static $valueToName = [ - self::RESTRICTION_TYPE_UNSPECIFIED => 'RESTRICTION_TYPE_UNSPECIFIED', - self::ALLOW_ALL_GCP_RESOURCES => 'ALLOW_ALL_GCP_RESOURCES', - self::ALLOW_COMPLIANT_RESOURCES => 'ALLOW_COMPLIANT_RESOURCES', - ]; - - 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(RestrictionType::class, \Google\Cloud\AssuredWorkloads\V1\RestrictAllowedResourcesRequest_RestrictionType::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesResponse.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesResponse.php deleted file mode 100644 index d1fa4eabe5f6..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/RestrictAllowedResourcesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.assuredworkloads.v1.RestrictAllowedResourcesResponse - */ -class RestrictAllowedResourcesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/TimeWindow.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/TimeWindow.php deleted file mode 100644 index d85b5f8d271b..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/TimeWindow.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.assuredworkloads.v1.TimeWindow - */ -class TimeWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The start of the time window. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * The end of the time window. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * The start of the time window. - * @type \Google\Protobuf\Timestamp $end_time - * The end of the time window. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * The start of the time window. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * The start of the time window. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * The end of the time window. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * The end of the time window. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/UpdateWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/UpdateWorkloadRequest.php deleted file mode 100644 index 686a9c01e44b..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/UpdateWorkloadRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.assuredworkloads.v1.UpdateWorkloadRequest - */ -class UpdateWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workload = null; - /** - * Required. The list of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\AssuredWorkloads\V1\Workload $workload Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. - * - * @return \Google\Cloud\AssuredWorkloads\V1\UpdateWorkloadRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AssuredWorkloads\V1\Workload $workload, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1\Workload $workload - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AssuredWorkloads\V1\Workload|null - */ - public function getWorkload() - { - return $this->workload; - } - - public function hasWorkload() - { - return isset($this->workload); - } - - public function clearWorkload() - { - unset($this->workload); - } - - /** - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AssuredWorkloads\V1\Workload $var - * @return $this - */ - public function setWorkload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Workload::class); - $this->workload = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. - * - * 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/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation.php deleted file mode 100644 index 513913ec2734..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation.php +++ /dev/null @@ -1,623 +0,0 @@ -google.cloud.assuredworkloads.v1.Violation - */ -class Violation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Immutable. Name of the Violation. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. Time of the event which triggered the Violation. - * - * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $begin_time = null; - /** - * Output only. The last time when the Violation record was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resolve_time = null; - /** - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * - * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $category = ''; - /** - * Output only. State of the violation - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in - * this violation. - * - * Generated from protobuf field string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $org_policy_constraint = ''; - /** - * Output only. Immutable. Audit Log Link for violated resource - * Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder} - * - * Generated from protobuf field string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $audit_log_link = ''; - /** - * Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and - * resulted this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * - * Generated from protobuf field string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $non_compliant_org_policy = ''; - /** - * Output only. Compliance violation remediation - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remediation = null; - /** - * Output only. A boolean that indicates if the violation is acknowledged - * - * Generated from protobuf field bool acknowledged = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $acknowledged = false; - /** - * Optional. Timestamp when this violation was acknowledged last. - * This will be absent when acknowledged field is marked as false. - * - * Generated from protobuf field optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $acknowledgement_time = null; - /** - * Output only. Immutable. Audit Log link to find business justification provided for violation - * exception. Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization} - * - * Generated from protobuf field string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $exception_audit_log_link = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Immutable. Name of the Violation. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id} - * @type string $description - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * @type \Google\Protobuf\Timestamp $begin_time - * Output only. Time of the event which triggered the Violation. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last time when the Violation record was updated. - * @type \Google\Protobuf\Timestamp $resolve_time - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * @type string $category - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * @type int $state - * Output only. State of the violation - * @type string $org_policy_constraint - * Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in - * this violation. - * @type string $audit_log_link - * Output only. Immutable. Audit Log Link for violated resource - * Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder} - * @type string $non_compliant_org_policy - * Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and - * resulted this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * @type \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation $remediation - * Output only. Compliance violation remediation - * @type bool $acknowledged - * Output only. A boolean that indicates if the violation is acknowledged - * @type \Google\Protobuf\Timestamp $acknowledgement_time - * Optional. Timestamp when this violation was acknowledged last. - * This will be absent when acknowledged field is marked as false. - * @type string $exception_audit_log_link - * Output only. Immutable. Audit Log link to find business justification provided for violation - * exception. Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Immutable. Name of the Violation. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Immutable. Name of the Violation. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. Description for the Violation. - * e.g. OrgPolicy gcp.resourceLocations has non compliant value. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Time of the event which triggered the Violation. - * - * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBeginTime() - { - return $this->begin_time; - } - - public function hasBeginTime() - { - return isset($this->begin_time); - } - - public function clearBeginTime() - { - unset($this->begin_time); - } - - /** - * Output only. Time of the event which triggered the Violation. - * - * Generated from protobuf field .google.protobuf.Timestamp begin_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBeginTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->begin_time = $var; - - return $this; - } - - /** - * Output only. The last time when the Violation record was 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. The last time when the Violation record was 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; - } - - /** - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getResolveTime() - { - return $this->resolve_time; - } - - public function hasResolveTime() - { - return isset($this->resolve_time); - } - - public function clearResolveTime() - { - unset($this->resolve_time); - } - - /** - * Output only. Time of the event which fixed the Violation. - * If the violation is ACTIVE this will be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp resolve_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setResolveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->resolve_time = $var; - - return $this; - } - - /** - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * - * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Output only. Category under which this violation is mapped. - * e.g. Location, Service Usage, Access, Encryption, etc. - * - * Generated from protobuf field string category = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * Output only. State of the violation - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the violation - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Violation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in - * this violation. - * - * Generated from protobuf field string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getOrgPolicyConstraint() - { - return $this->org_policy_constraint; - } - - /** - * Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in - * this violation. - * - * Generated from protobuf field string org_policy_constraint = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setOrgPolicyConstraint($var) - { - GPBUtil::checkString($var, True); - $this->org_policy_constraint = $var; - - return $this; - } - - /** - * Output only. Immutable. Audit Log Link for violated resource - * Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder} - * - * Generated from protobuf field string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAuditLogLink() - { - return $this->audit_log_link; - } - - /** - * Output only. Immutable. Audit Log Link for violated resource - * Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder} - * - * Generated from protobuf field string audit_log_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAuditLogLink($var) - { - GPBUtil::checkString($var, True); - $this->audit_log_link = $var; - - return $this; - } - - /** - * Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and - * resulted this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * - * Generated from protobuf field string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getNonCompliantOrgPolicy() - { - return $this->non_compliant_org_policy; - } - - /** - * Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and - * resulted this violation. - * Format: - * projects/{project_number}/policies/{constraint_name} - * folders/{folder_id}/policies/{constraint_name} - * organizations/{organization_id}/policies/{constraint_name} - * - * Generated from protobuf field string non_compliant_org_policy = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setNonCompliantOrgPolicy($var) - { - GPBUtil::checkString($var, True); - $this->non_compliant_org_policy = $var; - - return $this; - } - - /** - * Output only. Compliance violation remediation - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation|null - */ - public function getRemediation() - { - return $this->remediation; - } - - public function hasRemediation() - { - return isset($this->remediation); - } - - public function clearRemediation() - { - unset($this->remediation); - } - - /** - * Output only. Compliance violation remediation - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation remediation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation $var - * @return $this - */ - public function setRemediation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation::class); - $this->remediation = $var; - - return $this; - } - - /** - * Output only. A boolean that indicates if the violation is acknowledged - * - * Generated from protobuf field bool acknowledged = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAcknowledged() - { - return $this->acknowledged; - } - - /** - * Output only. A boolean that indicates if the violation is acknowledged - * - * Generated from protobuf field bool acknowledged = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAcknowledged($var) - { - GPBUtil::checkBool($var); - $this->acknowledged = $var; - - return $this; - } - - /** - * Optional. Timestamp when this violation was acknowledged last. - * This will be absent when acknowledged field is marked as false. - * - * Generated from protobuf field optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getAcknowledgementTime() - { - return $this->acknowledgement_time; - } - - public function hasAcknowledgementTime() - { - return isset($this->acknowledgement_time); - } - - public function clearAcknowledgementTime() - { - unset($this->acknowledgement_time); - } - - /** - * Optional. Timestamp when this violation was acknowledged last. - * This will be absent when acknowledged field is marked as false. - * - * Generated from protobuf field optional .google.protobuf.Timestamp acknowledgement_time = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setAcknowledgementTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->acknowledgement_time = $var; - - return $this; - } - - /** - * Output only. Immutable. Audit Log link to find business justification provided for violation - * exception. Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization} - * - * Generated from protobuf field string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getExceptionAuditLogLink() - { - return $this->exception_audit_log_link; - } - - /** - * Output only. Immutable. Audit Log link to find business justification provided for violation - * exception. Format: - * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization} - * - * Generated from protobuf field string exception_audit_log_link = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setExceptionAuditLogLink($var) - { - GPBUtil::checkString($var, True); - $this->exception_audit_log_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation.php deleted file mode 100644 index 6a70f24bf5f4..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.assuredworkloads.v1.Violation.Remediation - */ -class Remediation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Remediation instructions to resolve violations - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instructions = null; - /** - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * - * Generated from protobuf field repeated string compliant_values = 2; - */ - private $compliant_values; - /** - * Output only. Reemediation type based on the type of org policy values violated - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $remediation_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions $instructions - * Required. Remediation instructions to resolve violations - * @type array|\Google\Protobuf\Internal\RepeatedField $compliant_values - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * @type int $remediation_type - * Output only. Reemediation type based on the type of org policy values violated - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. Remediation instructions to resolve violations - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions|null - */ - public function getInstructions() - { - return $this->instructions; - } - - public function hasInstructions() - { - return isset($this->instructions); - } - - public function clearInstructions() - { - unset($this->instructions); - } - - /** - * Required. Remediation instructions to resolve violations - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions instructions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions $var - * @return $this - */ - public function setInstructions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions::class); - $this->instructions = $var; - - return $this; - } - - /** - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * - * Generated from protobuf field repeated string compliant_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompliantValues() - { - return $this->compliant_values; - } - - /** - * Values that can resolve the violation - * For example: for list org policy violations, this will either be the list - * of allowed or denied values - * - * Generated from protobuf field repeated string compliant_values = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompliantValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->compliant_values = $arr; - - return $this; - } - - /** - * Output only. Reemediation type based on the type of org policy values violated - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRemediationType() - { - return $this->remediation_type; - } - - /** - * Output only. Reemediation type based on the type of org policy values violated - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.RemediationType remediation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRemediationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\RemediationType::class); - $this->remediation_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Remediation::class, \Google\Cloud\AssuredWorkloads\V1\Violation_Remediation::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions.php deleted file mode 100644 index 531bdb233085..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions - */ -class Instructions extends \Google\Protobuf\Internal\Message -{ - /** - * Remediation instructions to resolve violation via gcloud cli - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; - */ - protected $gcloud_instructions = null; - /** - * Remediation instructions to resolve violation via cloud console - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Console console_instructions = 2; - */ - protected $console_instructions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Gcloud $gcloud_instructions - * Remediation instructions to resolve violation via gcloud cli - * @type \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Console $console_instructions - * Remediation instructions to resolve violation via cloud console - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Remediation instructions to resolve violation via gcloud cli - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; - * @return \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Gcloud|null - */ - public function getGcloudInstructions() - { - return $this->gcloud_instructions; - } - - public function hasGcloudInstructions() - { - return isset($this->gcloud_instructions); - } - - public function clearGcloudInstructions() - { - unset($this->gcloud_instructions); - } - - /** - * Remediation instructions to resolve violation via gcloud cli - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1; - * @param \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Gcloud $var - * @return $this - */ - public function setGcloudInstructions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Gcloud::class); - $this->gcloud_instructions = $var; - - return $this; - } - - /** - * Remediation instructions to resolve violation via cloud console - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Console console_instructions = 2; - * @return \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Console|null - */ - public function getConsoleInstructions() - { - return $this->console_instructions; - } - - public function hasConsoleInstructions() - { - return isset($this->console_instructions); - } - - public function clearConsoleInstructions() - { - unset($this->console_instructions); - } - - /** - * Remediation instructions to resolve violation via cloud console - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Console console_instructions = 2; - * @param \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Console $var - * @return $this - */ - public function setConsoleInstructions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions\Console::class); - $this->console_instructions = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Instructions::class, \Google\Cloud\AssuredWorkloads\V1\Violation_Remediation_Instructions::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions/Console.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions/Console.php deleted file mode 100644 index cdf9485e5183..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions/Console.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Console - */ -class Console extends \Google\Protobuf\Internal\Message -{ - /** - * Link to console page where violations can be resolved - * - * Generated from protobuf field repeated string console_uris = 1; - */ - private $console_uris; - /** - * Steps to resolve violation via cloud console - * - * Generated from protobuf field repeated string steps = 2; - */ - private $steps; - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - */ - private $additional_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $console_uris - * Link to console page where violations can be resolved - * @type array|\Google\Protobuf\Internal\RepeatedField $steps - * Steps to resolve violation via cloud console - * @type array|\Google\Protobuf\Internal\RepeatedField $additional_links - * Additional urls for more information about steps - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Link to console page where violations can be resolved - * - * Generated from protobuf field repeated string console_uris = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConsoleUris() - { - return $this->console_uris; - } - - /** - * Link to console page where violations can be resolved - * - * Generated from protobuf field repeated string console_uris = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConsoleUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->console_uris = $arr; - - return $this; - } - - /** - * Steps to resolve violation via cloud console - * - * Generated from protobuf field repeated string steps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * Steps to resolve violation via cloud console - * - * Generated from protobuf field repeated string steps = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->steps = $arr; - - return $this; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalLinks() - { - return $this->additional_links; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_links = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Console::class, \Google\Cloud\AssuredWorkloads\V1\Violation_Remediation_Instructions_Console::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions/Gcloud.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions/Gcloud.php deleted file mode 100644 index d3d08eceacca..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/Instructions/Gcloud.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud - */ -class Gcloud extends \Google\Protobuf\Internal\Message -{ - /** - * Gcloud command to resolve violation - * - * Generated from protobuf field repeated string gcloud_commands = 1; - */ - private $gcloud_commands; - /** - * Steps to resolve violation via gcloud cli - * - * Generated from protobuf field repeated string steps = 2; - */ - private $steps; - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - */ - private $additional_links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $gcloud_commands - * Gcloud command to resolve violation - * @type array|\Google\Protobuf\Internal\RepeatedField $steps - * Steps to resolve violation via gcloud cli - * @type array|\Google\Protobuf\Internal\RepeatedField $additional_links - * Additional urls for more information about steps - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Gcloud command to resolve violation - * - * Generated from protobuf field repeated string gcloud_commands = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGcloudCommands() - { - return $this->gcloud_commands; - } - - /** - * Gcloud command to resolve violation - * - * Generated from protobuf field repeated string gcloud_commands = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGcloudCommands($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->gcloud_commands = $arr; - - return $this; - } - - /** - * Steps to resolve violation via gcloud cli - * - * Generated from protobuf field repeated string steps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * Steps to resolve violation via gcloud cli - * - * Generated from protobuf field repeated string steps = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->steps = $arr; - - return $this; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalLinks() - { - return $this->additional_links; - } - - /** - * Additional urls for more information about steps - * - * Generated from protobuf field repeated string additional_links = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_links = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Gcloud::class, \Google\Cloud\AssuredWorkloads\V1\Violation_Remediation_Instructions_Gcloud::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/RemediationType.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/RemediationType.php deleted file mode 100644 index 838ccee58368..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/Remediation/RemediationType.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.assuredworkloads.v1.Violation.Remediation.RemediationType - */ -class RemediationType -{ - /** - * Unspecified remediation type - * - * Generated from protobuf enum REMEDIATION_TYPE_UNSPECIFIED = 0; - */ - const REMEDIATION_TYPE_UNSPECIFIED = 0; - /** - * Remediation type for boolean org policy - * - * Generated from protobuf enum REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1; - */ - const REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1; - /** - * Remediation type for list org policy which have allowed values in the - * monitoring rule - * - * Generated from protobuf enum REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2; - */ - const REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2; - /** - * Remediation type for list org policy which have denied values in the - * monitoring rule - * - * Generated from protobuf enum REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3; - */ - const REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3; - /** - * Remediation type for gcp.restrictCmekCryptoKeyProjects - * - * Generated from protobuf enum REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4; - */ - const REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4; - - private static $valueToName = [ - self::REMEDIATION_TYPE_UNSPECIFIED => 'REMEDIATION_TYPE_UNSPECIFIED', - self::REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION => 'REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION', - self::REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION => 'REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION', - self::REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION => 'REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION', - self::REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION => 'REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION', - ]; - - 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(RemediationType::class, \Google\Cloud\AssuredWorkloads\V1\Violation_Remediation_RemediationType::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/State.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/State.php deleted file mode 100644 index 3dffecec7cbf..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Violation/State.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.assuredworkloads.v1.Violation.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Violation is resolved. - * - * Generated from protobuf enum RESOLVED = 2; - */ - const RESOLVED = 2; - /** - * Violation is Unresolved - * - * Generated from protobuf enum UNRESOLVED = 3; - */ - const UNRESOLVED = 3; - /** - * Violation is Exception - * - * Generated from protobuf enum EXCEPTION = 4; - */ - const EXCEPTION = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RESOLVED => 'RESOLVED', - self::UNRESOLVED => 'UNRESOLVED', - self::EXCEPTION => 'EXCEPTION', - ]; - - 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(State::class, \Google\Cloud\AssuredWorkloads\V1\Violation_State::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload.php deleted file mode 100644 index 134a7e8f8a3b..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload.php +++ /dev/null @@ -1,755 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload - */ -class Workload extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $resources; - /** - * Required. Immutable. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $compliance_regime = 0; - /** - * Output only. Immutable. The Workload creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $create_time = null; - /** - * Optional. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * - * Generated from protobuf field string billing_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $billing_account = ''; - /** - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. Labels applied to the workload. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * - * Generated from protobuf field string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $provisioned_resources_parent = ''; - /** - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @deprecated - */ - protected $kms_settings = null; - /** - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - private $resource_settings; - /** - * Output only. Represents the KAJ enrollment state of the given workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $kaj_enrollment_state = 0; - /** - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * - * Generated from protobuf field bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_sovereign_controls = false; - /** - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $saa_enrollment_response = null; - /** - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * - * Generated from protobuf field repeated string compliant_but_disallowed_services = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $compliant_but_disallowed_services; - /** - * Optional. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.Partner partner = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $partner = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * @type string $display_name - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * @type array<\Google\Cloud\AssuredWorkloads\V1\Workload\ResourceInfo>|\Google\Protobuf\Internal\RepeatedField $resources - * Output only. The resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * @type int $compliance_regime - * Required. Immutable. Compliance Regime associated with this workload. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Immutable. The Workload creation timestamp. - * @type string $billing_account - * Optional. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * @type string $etag - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels applied to the workload. - * @type string $provisioned_resources_parent - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * @type \Google\Cloud\AssuredWorkloads\V1\Workload\KMSSettings $kms_settings - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * @type array<\Google\Cloud\AssuredWorkloads\V1\Workload\ResourceSettings>|\Google\Protobuf\Internal\RepeatedField $resource_settings - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * @type int $kaj_enrollment_state - * Output only. Represents the KAJ enrollment state of the given workload. - * @type bool $enable_sovereign_controls - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * @type \Google\Cloud\AssuredWorkloads\V1\Workload\SaaEnrollmentResponse $saa_enrollment_response - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * @type array|\Google\Protobuf\Internal\RepeatedField $compliant_but_disallowed_services - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * @type int $partner - * Optional. Compliance Regime associated with this workload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * - * 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 resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * Output only. The resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\AssuredWorkloads\V1\Workload\ResourceInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1\Workload\ResourceInfo::class); - $this->resources = $arr; - - return $this; - } - - /** - * Required. Immutable. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getComplianceRegime() - { - return $this->compliance_regime; - } - - /** - * Required. Immutable. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setComplianceRegime($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Workload\ComplianceRegime::class); - $this->compliance_regime = $var; - - return $this; - } - - /** - * Output only. Immutable. The Workload creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @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. Immutable. The Workload creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Optional. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * - * Generated from protobuf field string billing_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBillingAccount() - { - return $this->billing_account; - } - - /** - * Optional. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * - * Generated from protobuf field string billing_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBillingAccount($var) - { - GPBUtil::checkString($var, True); - $this->billing_account = $var; - - return $this; - } - - /** - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Labels applied to the workload. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels applied to the workload. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * - * Generated from protobuf field string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getProvisionedResourcesParent() - { - return $this->provisioned_resources_parent; - } - - /** - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * - * Generated from protobuf field string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setProvisionedResourcesParent($var) - { - GPBUtil::checkString($var, True); - $this->provisioned_resources_parent = $var; - - return $this; - } - - /** - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\AssuredWorkloads\V1\Workload\KMSSettings|null - * @deprecated - */ - public function getKmsSettings() - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - return $this->kms_settings; - } - - public function hasKmsSettings() - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - return isset($this->kms_settings); - } - - public function clearKmsSettings() - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - unset($this->kms_settings); - } - - /** - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.KMSSettings kms_settings = 14 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\AssuredWorkloads\V1\Workload\KMSSettings $var - * @return $this - * @deprecated - */ - public function setKmsSettings($var) - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Workload\KMSSettings::class); - $this->kms_settings = $var; - - return $this; - } - - /** - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceSettings() - { - return $this->resource_settings; - } - - /** - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param array<\Google\Cloud\AssuredWorkloads\V1\Workload\ResourceSettings>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceSettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1\Workload\ResourceSettings::class); - $this->resource_settings = $arr; - - return $this; - } - - /** - * Output only. Represents the KAJ enrollment state of the given workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getKajEnrollmentState() - { - return $this->kaj_enrollment_state; - } - - /** - * Output only. Represents the KAJ enrollment state of the given workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setKajEnrollmentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Workload\KajEnrollmentState::class); - $this->kaj_enrollment_state = $var; - - return $this; - } - - /** - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * - * Generated from protobuf field bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableSovereignControls() - { - return $this->enable_sovereign_controls; - } - - /** - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * - * Generated from protobuf field bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableSovereignControls($var) - { - GPBUtil::checkBool($var); - $this->enable_sovereign_controls = $var; - - return $this; - } - - /** - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AssuredWorkloads\V1\Workload\SaaEnrollmentResponse|null - */ - public function getSaaEnrollmentResponse() - { - return $this->saa_enrollment_response; - } - - public function hasSaaEnrollmentResponse() - { - return isset($this->saa_enrollment_response); - } - - public function clearSaaEnrollmentResponse() - { - unset($this->saa_enrollment_response); - } - - /** - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AssuredWorkloads\V1\Workload\SaaEnrollmentResponse $var - * @return $this - */ - public function setSaaEnrollmentResponse($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1\Workload\SaaEnrollmentResponse::class); - $this->saa_enrollment_response = $var; - - return $this; - } - - /** - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * - * Generated from protobuf field repeated string compliant_but_disallowed_services = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompliantButDisallowedServices() - { - return $this->compliant_but_disallowed_services; - } - - /** - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * - * Generated from protobuf field repeated string compliant_but_disallowed_services = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompliantButDisallowedServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->compliant_but_disallowed_services = $arr; - - return $this; - } - - /** - * Optional. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.Partner partner = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPartner() - { - return $this->partner; - } - - /** - * Optional. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.Partner partner = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPartner($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Workload\Partner::class); - $this->partner = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ComplianceRegime.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ComplianceRegime.php deleted file mode 100644 index f921eaced85e..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ComplianceRegime.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.ComplianceRegime - */ -class ComplianceRegime -{ - /** - * Unknown compliance regime. - * - * Generated from protobuf enum COMPLIANCE_REGIME_UNSPECIFIED = 0; - */ - const COMPLIANCE_REGIME_UNSPECIFIED = 0; - /** - * Information protection as per DoD IL4 requirements. - * - * Generated from protobuf enum IL4 = 1; - */ - const IL4 = 1; - /** - * Criminal Justice Information Services (CJIS) Security policies. - * - * Generated from protobuf enum CJIS = 2; - */ - const CJIS = 2; - /** - * FedRAMP High data protection controls - * - * Generated from protobuf enum FEDRAMP_HIGH = 3; - */ - const FEDRAMP_HIGH = 3; - /** - * FedRAMP Moderate data protection controls - * - * Generated from protobuf enum FEDRAMP_MODERATE = 4; - */ - const FEDRAMP_MODERATE = 4; - /** - * Assured Workloads For US Regions data protection controls - * - * Generated from protobuf enum US_REGIONAL_ACCESS = 5; - */ - const US_REGIONAL_ACCESS = 5; - /** - * Health Insurance Portability and Accountability Act controls - * - * Generated from protobuf enum HIPAA = 6; - */ - const HIPAA = 6; - /** - * Health Information Trust Alliance controls - * - * Generated from protobuf enum HITRUST = 7; - */ - const HITRUST = 7; - /** - * Assured Workloads For EU Regions and Support controls - * - * Generated from protobuf enum EU_REGIONS_AND_SUPPORT = 8; - */ - const EU_REGIONS_AND_SUPPORT = 8; - /** - * Assured Workloads For Canada Regions and Support controls - * - * Generated from protobuf enum CA_REGIONS_AND_SUPPORT = 9; - */ - const CA_REGIONS_AND_SUPPORT = 9; - /** - * International Traffic in Arms Regulations - * - * Generated from protobuf enum ITAR = 10; - */ - const ITAR = 10; - /** - * Assured Workloads for Australia Regions and Support controls - * Available for public preview consumption. - * Don't create production workloads. - * - * Generated from protobuf enum AU_REGIONS_AND_US_SUPPORT = 11; - */ - const AU_REGIONS_AND_US_SUPPORT = 11; - /** - * Assured Workloads for Partners - * - * Generated from protobuf enum ASSURED_WORKLOADS_FOR_PARTNERS = 12; - */ - const ASSURED_WORKLOADS_FOR_PARTNERS = 12; - - private static $valueToName = [ - self::COMPLIANCE_REGIME_UNSPECIFIED => 'COMPLIANCE_REGIME_UNSPECIFIED', - self::IL4 => 'IL4', - self::CJIS => 'CJIS', - self::FEDRAMP_HIGH => 'FEDRAMP_HIGH', - self::FEDRAMP_MODERATE => 'FEDRAMP_MODERATE', - self::US_REGIONAL_ACCESS => 'US_REGIONAL_ACCESS', - self::HIPAA => 'HIPAA', - self::HITRUST => 'HITRUST', - self::EU_REGIONS_AND_SUPPORT => 'EU_REGIONS_AND_SUPPORT', - self::CA_REGIONS_AND_SUPPORT => 'CA_REGIONS_AND_SUPPORT', - self::ITAR => 'ITAR', - self::AU_REGIONS_AND_US_SUPPORT => 'AU_REGIONS_AND_US_SUPPORT', - self::ASSURED_WORKLOADS_FOR_PARTNERS => 'ASSURED_WORKLOADS_FOR_PARTNERS', - ]; - - 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(ComplianceRegime::class, \Google\Cloud\AssuredWorkloads\V1\Workload_ComplianceRegime::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/KMSSettings.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/KMSSettings.php deleted file mode 100644 index ff277045e5cb..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/KMSSettings.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.KMSSettings - */ -class KMSSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * - * Generated from protobuf field .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $next_rotation_time = null; - /** - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * - * Generated from protobuf field .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $rotation_period = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $next_rotation_time - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * @type \Google\Protobuf\Duration $rotation_period - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * - * Generated from protobuf field .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getNextRotationTime() - { - return $this->next_rotation_time; - } - - public function hasNextRotationTime() - { - return isset($this->next_rotation_time); - } - - public function clearNextRotationTime() - { - unset($this->next_rotation_time); - } - - /** - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * - * Generated from protobuf field .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setNextRotationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->next_rotation_time = $var; - - return $this; - } - - /** - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * - * Generated from protobuf field .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Duration|null - */ - public function getRotationPeriod() - { - return $this->rotation_period; - } - - public function hasRotationPeriod() - { - return isset($this->rotation_period); - } - - public function clearRotationPeriod() - { - unset($this->rotation_period); - } - - /** - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * - * Generated from protobuf field .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRotationPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->rotation_period = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KMSSettings::class, \Google\Cloud\AssuredWorkloads\V1\Workload_KMSSettings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/KajEnrollmentState.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/KajEnrollmentState.php deleted file mode 100644 index 5daeeb90a74f..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/KajEnrollmentState.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.KajEnrollmentState - */ -class KajEnrollmentState -{ - /** - * Default State for KAJ Enrollment. - * - * Generated from protobuf enum KAJ_ENROLLMENT_STATE_UNSPECIFIED = 0; - */ - const KAJ_ENROLLMENT_STATE_UNSPECIFIED = 0; - /** - * Pending State for KAJ Enrollment. - * - * Generated from protobuf enum KAJ_ENROLLMENT_STATE_PENDING = 1; - */ - const KAJ_ENROLLMENT_STATE_PENDING = 1; - /** - * Complete State for KAJ Enrollment. - * - * Generated from protobuf enum KAJ_ENROLLMENT_STATE_COMPLETE = 2; - */ - const KAJ_ENROLLMENT_STATE_COMPLETE = 2; - - private static $valueToName = [ - self::KAJ_ENROLLMENT_STATE_UNSPECIFIED => 'KAJ_ENROLLMENT_STATE_UNSPECIFIED', - self::KAJ_ENROLLMENT_STATE_PENDING => 'KAJ_ENROLLMENT_STATE_PENDING', - self::KAJ_ENROLLMENT_STATE_COMPLETE => 'KAJ_ENROLLMENT_STATE_COMPLETE', - ]; - - 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(KajEnrollmentState::class, \Google\Cloud\AssuredWorkloads\V1\Workload_KajEnrollmentState::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/Partner.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/Partner.php deleted file mode 100644 index b3ab77303ba3..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/Partner.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.Partner - */ -class Partner -{ - /** - * Unknown partner regime/controls. - * - * Generated from protobuf enum PARTNER_UNSPECIFIED = 0; - */ - const PARTNER_UNSPECIFIED = 0; - /** - * S3NS regime/controls. - * - * Generated from protobuf enum LOCAL_CONTROLS_BY_S3NS = 1; - */ - const LOCAL_CONTROLS_BY_S3NS = 1; - - private static $valueToName = [ - self::PARTNER_UNSPECIFIED => 'PARTNER_UNSPECIFIED', - self::LOCAL_CONTROLS_BY_S3NS => 'LOCAL_CONTROLS_BY_S3NS', - ]; - - 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(Partner::class, \Google\Cloud\AssuredWorkloads\V1\Workload_Partner::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceInfo.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceInfo.php deleted file mode 100644 index 7d1d6d014207..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceInfo.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.ResourceInfo - */ -class ResourceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Resource identifier. - * For a project this represents project_number. - * - * Generated from protobuf field int64 resource_id = 1; - */ - protected $resource_id = 0; - /** - * Indicates the type of resource. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - */ - protected $resource_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $resource_id - * Resource identifier. - * For a project this represents project_number. - * @type int $resource_type - * Indicates the type of resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Resource identifier. - * For a project this represents project_number. - * - * Generated from protobuf field int64 resource_id = 1; - * @return int|string - */ - public function getResourceId() - { - return $this->resource_id; - } - - /** - * Resource identifier. - * For a project this represents project_number. - * - * Generated from protobuf field int64 resource_id = 1; - * @param int|string $var - * @return $this - */ - public function setResourceId($var) - { - GPBUtil::checkInt64($var); - $this->resource_id = $var; - - return $this; - } - - /** - * Indicates the type of resource. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Indicates the type of resource. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Workload\ResourceInfo\ResourceType::class); - $this->resource_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ResourceInfo::class, \Google\Cloud\AssuredWorkloads\V1\Workload_ResourceInfo::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceInfo/ResourceType.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceInfo/ResourceType.php deleted file mode 100644 index dc3182744b09..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceInfo/ResourceType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType - */ -class ResourceType -{ - /** - * Unknown resource type. - * - * Generated from protobuf enum RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Consumer project. - * AssuredWorkloads Projects are no longer supported. This field will be - * ignored only in CreateWorkload requests. ListWorkloads and GetWorkload - * will continue to provide projects information. - * Use CONSUMER_FOLDER instead. - * - * Generated from protobuf enum CONSUMER_PROJECT = 1 [deprecated = true]; - */ - const CONSUMER_PROJECT = 1; - /** - * Consumer Folder. - * - * Generated from protobuf enum CONSUMER_FOLDER = 4; - */ - const CONSUMER_FOLDER = 4; - /** - * Consumer project containing encryption keys. - * - * Generated from protobuf enum ENCRYPTION_KEYS_PROJECT = 2; - */ - const ENCRYPTION_KEYS_PROJECT = 2; - /** - * Keyring resource that hosts encryption keys. - * - * Generated from protobuf enum KEYRING = 3; - */ - const KEYRING = 3; - - private static $valueToName = [ - self::RESOURCE_TYPE_UNSPECIFIED => 'RESOURCE_TYPE_UNSPECIFIED', - self::CONSUMER_PROJECT => 'CONSUMER_PROJECT', - self::CONSUMER_FOLDER => 'CONSUMER_FOLDER', - self::ENCRYPTION_KEYS_PROJECT => 'ENCRYPTION_KEYS_PROJECT', - self::KEYRING => 'KEYRING', - ]; - - 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(ResourceType::class, \Google\Cloud\AssuredWorkloads\V1\Workload_ResourceInfo_ResourceType::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceSettings.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceSettings.php deleted file mode 100644 index 8383ef765da3..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/ResourceSettings.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.ResourceSettings - */ -class ResourceSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * - * Generated from protobuf field string resource_id = 1; - */ - protected $resource_id = ''; - /** - * Indicates the type of resource. This field should be specified to - * correspond the id to the right resource type (CONSUMER_FOLDER or - * ENCRYPTION_KEYS_PROJECT) - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - */ - protected $resource_type = 0; - /** - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_id - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * @type int $resource_type - * Indicates the type of resource. This field should be specified to - * correspond the id to the right resource type (CONSUMER_FOLDER or - * ENCRYPTION_KEYS_PROJECT) - * @type string $display_name - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * - * Generated from protobuf field string resource_id = 1; - * @return string - */ - public function getResourceId() - { - return $this->resource_id; - } - - /** - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * - * Generated from protobuf field string resource_id = 1; - * @param string $var - * @return $this - */ - public function setResourceId($var) - { - GPBUtil::checkString($var, True); - $this->resource_id = $var; - - return $this; - } - - /** - * Indicates the type of resource. This field should be specified to - * correspond the id to the right resource type (CONSUMER_FOLDER or - * ENCRYPTION_KEYS_PROJECT) - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Indicates the type of resource. This field should be specified to - * correspond the id to the right resource type (CONSUMER_FOLDER or - * ENCRYPTION_KEYS_PROJECT) - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Workload\ResourceInfo\ResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ResourceSettings::class, \Google\Cloud\AssuredWorkloads\V1\Workload_ResourceSettings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse.php deleted file mode 100644 index 2adc6b7d7780..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse - */ -class SaaEnrollmentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates SAA enrollment status of a given workload. - * - * Generated from protobuf field optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - */ - protected $setup_status = null; - /** - * Indicates SAA enrollment setup error if any. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - */ - private $setup_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $setup_status - * Indicates SAA enrollment status of a given workload. - * @type array|\Google\Protobuf\Internal\RepeatedField $setup_errors - * Indicates SAA enrollment setup error if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Indicates SAA enrollment status of a given workload. - * - * Generated from protobuf field optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * @return int - */ - public function getSetupStatus() - { - return isset($this->setup_status) ? $this->setup_status : 0; - } - - public function hasSetupStatus() - { - return isset($this->setup_status); - } - - public function clearSetupStatus() - { - unset($this->setup_status); - } - - /** - * Indicates SAA enrollment status of a given workload. - * - * Generated from protobuf field optional .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * @param int $var - * @return $this - */ - public function setSetupStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1\Workload\SaaEnrollmentResponse\SetupState::class); - $this->setup_status = $var; - - return $this; - } - - /** - * Indicates SAA enrollment setup error if any. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSetupErrors() - { - return $this->setup_errors; - } - - /** - * Indicates SAA enrollment setup error if any. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSetupErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\AssuredWorkloads\V1\Workload\SaaEnrollmentResponse\SetupError::class); - $this->setup_errors = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SaaEnrollmentResponse::class, \Google\Cloud\AssuredWorkloads\V1\Workload_SaaEnrollmentResponse::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse/SetupError.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse/SetupError.php deleted file mode 100644 index 6ced16897348..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse/SetupError.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupError - */ -class SetupError -{ - /** - * Unspecified. - * - * Generated from protobuf enum SETUP_ERROR_UNSPECIFIED = 0; - */ - const SETUP_ERROR_UNSPECIFIED = 0; - /** - * Invalid states for all customers, to be redirected to AA UI for - * additional details. - * - * Generated from protobuf enum ERROR_INVALID_BASE_SETUP = 1; - */ - const ERROR_INVALID_BASE_SETUP = 1; - /** - * Returned when there is not an EKM key configured. - * - * Generated from protobuf enum ERROR_MISSING_EXTERNAL_SIGNING_KEY = 2; - */ - const ERROR_MISSING_EXTERNAL_SIGNING_KEY = 2; - /** - * Returned when there are no enrolled services or the customer is - * enrolled in CAA only for a subset of services. - * - * Generated from protobuf enum ERROR_NOT_ALL_SERVICES_ENROLLED = 3; - */ - const ERROR_NOT_ALL_SERVICES_ENROLLED = 3; - /** - * Returned when exception was encountered during evaluation of other - * criteria. - * - * Generated from protobuf enum ERROR_SETUP_CHECK_FAILED = 4; - */ - const ERROR_SETUP_CHECK_FAILED = 4; - - private static $valueToName = [ - self::SETUP_ERROR_UNSPECIFIED => 'SETUP_ERROR_UNSPECIFIED', - self::ERROR_INVALID_BASE_SETUP => 'ERROR_INVALID_BASE_SETUP', - self::ERROR_MISSING_EXTERNAL_SIGNING_KEY => 'ERROR_MISSING_EXTERNAL_SIGNING_KEY', - self::ERROR_NOT_ALL_SERVICES_ENROLLED => 'ERROR_NOT_ALL_SERVICES_ENROLLED', - self::ERROR_SETUP_CHECK_FAILED => 'ERROR_SETUP_CHECK_FAILED', - ]; - - 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(SetupError::class, \Google\Cloud\AssuredWorkloads\V1\Workload_SaaEnrollmentResponse_SetupError::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse/SetupState.php b/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse/SetupState.php deleted file mode 100644 index 27112e59383a..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/proto/src/Google/Cloud/AssuredWorkloads/V1/Workload/SaaEnrollmentResponse/SetupState.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.assuredworkloads.v1.Workload.SaaEnrollmentResponse.SetupState - */ -class SetupState -{ - /** - * Unspecified. - * - * Generated from protobuf enum SETUP_STATE_UNSPECIFIED = 0; - */ - const SETUP_STATE_UNSPECIFIED = 0; - /** - * SAA enrollment pending. - * - * Generated from protobuf enum STATUS_PENDING = 1; - */ - const STATUS_PENDING = 1; - /** - * SAA enrollment comopleted. - * - * Generated from protobuf enum STATUS_COMPLETE = 2; - */ - const STATUS_COMPLETE = 2; - - private static $valueToName = [ - self::SETUP_STATE_UNSPECIFIED => 'SETUP_STATE_UNSPECIFIED', - self::STATUS_PENDING => 'STATUS_PENDING', - self::STATUS_COMPLETE => 'STATUS_COMPLETE', - ]; - - 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(SetupState::class, \Google\Cloud\AssuredWorkloads\V1\Workload_SaaEnrollmentResponse_SetupState::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/acknowledge_violation.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/acknowledge_violation.php deleted file mode 100644 index 9fa186961d47..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/acknowledge_violation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($name) - ->setComment($comment); - - // Call the API and handle any network failures. - try { - /** @var AcknowledgeViolationResponse $response */ - $response = $assuredWorkloadsServiceClient->acknowledgeViolation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - $comment = '[COMMENT]'; - - acknowledge_violation_sample($name, $comment); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_AcknowledgeViolation_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/create_workload.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/create_workload.php deleted file mode 100644 index 73d455b3660f..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/create_workload.php +++ /dev/null @@ -1,101 +0,0 @@ -setDisplayName($workloadDisplayName) - ->setComplianceRegime($workloadComplianceRegime); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkload($workload); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $assuredWorkloadsServiceClient->createWorkload($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Workload $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AssuredWorkloadsServiceClient::locationName('[ORGANIZATION]', '[LOCATION]'); - $workloadDisplayName = '[DISPLAY_NAME]'; - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - - create_workload_sample($formattedParent, $workloadDisplayName, $workloadComplianceRegime); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_CreateWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/delete_workload.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/delete_workload.php deleted file mode 100644 index 29e6b12a3b8c..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/delete_workload.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $assuredWorkloadsServiceClient->deleteWorkload($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssuredWorkloadsServiceClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[WORKLOAD]' - ); - - delete_workload_sample($formattedName); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_DeleteWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/get_violation.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/get_violation.php deleted file mode 100644 index 5326a0b9b957..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/get_violation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Violation $response */ - $response = $assuredWorkloadsServiceClient->getViolation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssuredWorkloadsServiceClient::violationName( - '[ORGANIZATION]', - '[LOCATION]', - '[WORKLOAD]', - '[VIOLATION]' - ); - - get_violation_sample($formattedName); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_GetViolation_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/get_workload.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/get_workload.php deleted file mode 100644 index b1be4c5a3dc7..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/get_workload.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Workload $response */ - $response = $assuredWorkloadsServiceClient->getWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssuredWorkloadsServiceClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[WORKLOAD]' - ); - - get_workload_sample($formattedName); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_GetWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/list_violations.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/list_violations.php deleted file mode 100644 index 249e4ed2bddd..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/list_violations.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assuredWorkloadsServiceClient->listViolations($request); - - /** @var Violation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AssuredWorkloadsServiceClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[WORKLOAD]' - ); - - list_violations_sample($formattedParent); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_ListViolations_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/list_workloads.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/list_workloads.php deleted file mode 100644 index 4eb61c7f4e44..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/list_workloads.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assuredWorkloadsServiceClient->listWorkloads($request); - - /** @var Workload $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AssuredWorkloadsServiceClient::locationName('[ORGANIZATION]', '[LOCATION]'); - - list_workloads_sample($formattedParent); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_ListWorkloads_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php deleted file mode 100644 index f990cf50b7e5..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($name) - ->setRestrictionType($restrictionType); - - // Call the API and handle any network failures. - try { - /** @var RestrictAllowedResourcesResponse $response */ - $response = $assuredWorkloadsServiceClient->restrictAllowedResources($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - $restrictionType = RestrictionType::RESTRICTION_TYPE_UNSPECIFIED; - - restrict_allowed_resources_sample($name, $restrictionType); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_RestrictAllowedResources_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/update_workload.php b/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/update_workload.php deleted file mode 100644 index dd70542a994c..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/samples/V1/AssuredWorkloadsServiceClient/update_workload.php +++ /dev/null @@ -1,87 +0,0 @@ -setDisplayName($workloadDisplayName) - ->setComplianceRegime($workloadComplianceRegime); - $updateMask = new FieldMask(); - $request = (new UpdateWorkloadRequest()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Workload $response */ - $response = $assuredWorkloadsServiceClient->updateWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $workloadDisplayName = '[DISPLAY_NAME]'; - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - - update_workload_sample($workloadDisplayName, $workloadComplianceRegime); -} -// [END assuredworkloads_v1_generated_AssuredWorkloadsService_UpdateWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1/src/V1/Client/AssuredWorkloadsServiceClient.php b/owl-bot-staging/AssuredWorkloads/v1/src/V1/Client/AssuredWorkloadsServiceClient.php deleted file mode 100644 index 95b859b5991f..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/src/V1/Client/AssuredWorkloadsServiceClient.php +++ /dev/null @@ -1,583 +0,0 @@ - acknowledgeViolationAsync(AcknowledgeViolationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getViolationAsync(GetViolationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface listViolationsAsync(ListViolationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface restrictAllowedResourcesAsync(RestrictAllowedResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) - */ -final class AssuredWorkloadsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.assuredworkloads.v1.AssuredWorkloadsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'assuredworkloads.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'assuredworkloads.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/assured_workloads_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/assured_workloads_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/assured_workloads_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/assured_workloads_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $organization, string $location): string - { - return self::getPathTemplate('location')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a violation - * resource. - * - * @param string $organization - * @param string $location - * @param string $workload - * @param string $violation - * - * @return string The formatted violation resource. - */ - public static function violationName(string $organization, string $location, string $workload, string $violation): string - { - return self::getPathTemplate('violation')->render([ - 'organization' => $organization, - 'location' => $location, - 'workload' => $workload, - 'violation' => $violation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workload - * resource. - * - * @param string $organization - * @param string $location - * @param string $workload - * - * @return string The formatted workload resource. - */ - public static function workloadName(string $organization, string $location, string $workload): string - { - return self::getPathTemplate('workload')->render([ - 'organization' => $organization, - 'location' => $location, - 'workload' => $workload, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - location: organizations/{organization}/locations/{location} - * - violation: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * - workload: organizations/{organization}/locations/{location}/workloads/{workload} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'assuredworkloads.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Acknowledges an existing violation. By acknowledging a violation, users - * acknowledge the existence of a compliance violation in their workload and - * decide to ignore it due to a valid business justification. Acknowledgement - * is a permanent operation and it cannot be reverted. - * - * The async variant is - * {@see AssuredWorkloadsServiceClient::acknowledgeViolationAsync()} . - * - * @example samples/V1/AssuredWorkloadsServiceClient/acknowledge_violation.php - * - * @param AcknowledgeViolationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AcknowledgeViolationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function acknowledgeViolation(AcknowledgeViolationRequest $request, array $callOptions = []): AcknowledgeViolationResponse - { - return $this->startApiCall('AcknowledgeViolation', $request, $callOptions)->wait(); - } - - /** - * Creates Assured Workload. - * - * The async variant is {@see AssuredWorkloadsServiceClient::createWorkloadAsync()} - * . - * - * @example samples/V1/AssuredWorkloadsServiceClient/create_workload.php - * - * @param CreateWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createWorkload(CreateWorkloadRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateWorkload', $request, $callOptions)->wait(); - } - - /** - * Deletes the workload. Make sure that workload's direct children are already - * in a deleted state, otherwise the request will fail with a - * FAILED_PRECONDITION error. - * - * The async variant is {@see AssuredWorkloadsServiceClient::deleteWorkloadAsync()} - * . - * - * @example samples/V1/AssuredWorkloadsServiceClient/delete_workload.php - * - * @param DeleteWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteWorkload(DeleteWorkloadRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkload', $request, $callOptions)->wait(); - } - - /** - * Retrieves Assured Workload Violation based on ID. - * - * The async variant is {@see AssuredWorkloadsServiceClient::getViolationAsync()} . - * - * @example samples/V1/AssuredWorkloadsServiceClient/get_violation.php - * - * @param GetViolationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Violation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getViolation(GetViolationRequest $request, array $callOptions = []): Violation - { - return $this->startApiCall('GetViolation', $request, $callOptions)->wait(); - } - - /** - * Gets Assured Workload associated with a CRM Node - * - * The async variant is {@see AssuredWorkloadsServiceClient::getWorkloadAsync()} . - * - * @example samples/V1/AssuredWorkloadsServiceClient/get_workload.php - * - * @param GetWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workload - * - * @throws ApiException Thrown if the API call fails. - */ - public function getWorkload(GetWorkloadRequest $request, array $callOptions = []): Workload - { - return $this->startApiCall('GetWorkload', $request, $callOptions)->wait(); - } - - /** - * Lists the Violations in the AssuredWorkload Environment. - * Callers may also choose to read across multiple Workloads as per - * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash - * character) as a wildcard character instead of workload-id in the parent. - * Format `organizations/{org_id}/locations/{location}/workloads/-` - * - * The async variant is {@see AssuredWorkloadsServiceClient::listViolationsAsync()} - * . - * - * @example samples/V1/AssuredWorkloadsServiceClient/list_violations.php - * - * @param ListViolationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listViolations(ListViolationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListViolations', $request, $callOptions); - } - - /** - * Lists Assured Workloads under a CRM Node. - * - * The async variant is {@see AssuredWorkloadsServiceClient::listWorkloadsAsync()} - * . - * - * @example samples/V1/AssuredWorkloadsServiceClient/list_workloads.php - * - * @param ListWorkloadsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listWorkloads(ListWorkloadsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkloads', $request, $callOptions); - } - - /** - * Restrict the list of resources allowed in the Workload environment. - * The current list of allowed products can be found at - * https://cloud.google.com/assured-workloads/docs/supported-products - * In addition to assuredworkloads.workload.update permission, the user should - * also have orgpolicy.policy.set permission on the folder resource - * to use this functionality. - * - * The async variant is - * {@see AssuredWorkloadsServiceClient::restrictAllowedResourcesAsync()} . - * - * @example samples/V1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php - * - * @param RestrictAllowedResourcesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RestrictAllowedResourcesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function restrictAllowedResources(RestrictAllowedResourcesRequest $request, array $callOptions = []): RestrictAllowedResourcesResponse - { - return $this->startApiCall('RestrictAllowedResources', $request, $callOptions)->wait(); - } - - /** - * Updates an existing workload. - * Currently allows updating of workload display_name and labels. - * For force updates don't set etag field in the Workload. - * Only one update operation per workload can be in progress. - * - * The async variant is {@see AssuredWorkloadsServiceClient::updateWorkloadAsync()} - * . - * - * @example samples/V1/AssuredWorkloadsServiceClient/update_workload.php - * - * @param UpdateWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workload - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateWorkload(UpdateWorkloadRequest $request, array $callOptions = []): Workload - { - return $this->startApiCall('UpdateWorkload', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AssuredWorkloads/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AssuredWorkloads/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 5f904fcdc771..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.assuredworkloads.v1", - "libraryPackage": "Google\\Cloud\\AssuredWorkloads\\V1", - "services": { - "AssuredWorkloadsService": { - "clients": { - "grpc": { - "libraryClient": "AssuredWorkloadsServiceGapicClient", - "rpcs": { - "AcknowledgeViolation": { - "methods": [ - "acknowledgeViolation" - ] - }, - "CreateWorkload": { - "methods": [ - "createWorkload" - ] - }, - "DeleteWorkload": { - "methods": [ - "deleteWorkload" - ] - }, - "GetViolation": { - "methods": [ - "getViolation" - ] - }, - "GetWorkload": { - "methods": [ - "getWorkload" - ] - }, - "ListViolations": { - "methods": [ - "listViolations" - ] - }, - "ListWorkloads": { - "methods": [ - "listWorkloads" - ] - }, - "RestrictAllowedResources": { - "methods": [ - "restrictAllowedResources" - ] - }, - "UpdateWorkload": { - "methods": [ - "updateWorkload" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_client_config.json b/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_client_config.json deleted file mode 100644 index c74cd9d05ff9..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_client_config.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "interfaces": { - "google.cloud.assuredworkloads.v1.AssuredWorkloadsService": { - "retry_codes": { - "no_retry_codes": [], - "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 - }, - "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": { - "AcknowledgeViolation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetViolation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListViolations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListWorkloads": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RestrictAllowedResources": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_descriptor_config.php b/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_descriptor_config.php deleted file mode 100644 index add3dde579db..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_descriptor_config.php +++ /dev/null @@ -1,141 +0,0 @@ - [ - 'google.cloud.assuredworkloads.v1.AssuredWorkloadsService' => [ - 'CreateWorkload' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AssuredWorkloads\V1\Workload', - 'metadataReturnType' => '\Google\Cloud\AssuredWorkloads\V1\CreateWorkloadOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'AcknowledgeViolation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1\AcknowledgeViolationResponse', - ], - 'DeleteWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetViolation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1\Violation', - ], - 'GetWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1\Workload', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListViolations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getViolations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1\ListViolationsResponse', - ], - 'ListWorkloads' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkloads', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1\ListWorkloadsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RestrictAllowedResources' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1\RestrictAllowedResourcesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1\Workload', - 'headerParams' => [ - [ - 'keyName' => 'workload.name', - 'fieldAccessors' => [ - 'getWorkload', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'location' => 'organizations/{organization}/locations/{location}', - 'violation' => 'organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}', - 'workload' => 'organizations/{organization}/locations/{location}/workloads/{workload}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_rest_client_config.php b/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_rest_client_config.php deleted file mode 100644 index ad506b048711..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/src/V1/resources/assured_workloads_service_rest_client_config.php +++ /dev/null @@ -1,126 +0,0 @@ - [ - 'google.cloud.assuredworkloads.v1.AssuredWorkloadsService' => [ - 'CreateWorkload' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/workloads', - 'body' => 'workload', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteWorkload' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/workloads/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkload' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/workloads/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListWorkloads' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/workloads', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RestrictAllowedResources' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/workloads/*}:restrictAllowedResources', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateWorkload' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{workload.name=organizations/*/locations/*/workloads/*}', - 'body' => 'workload', - 'placeholders' => [ - 'workload.name' => [ - 'getters' => [ - 'getWorkload', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AssuredWorkloads/v1/tests/Unit/V1/Client/AssuredWorkloadsServiceClientTest.php b/owl-bot-staging/AssuredWorkloads/v1/tests/Unit/V1/Client/AssuredWorkloadsServiceClientTest.php deleted file mode 100644 index 943dd0949cbf..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1/tests/Unit/V1/Client/AssuredWorkloadsServiceClientTest.php +++ /dev/null @@ -1,842 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AssuredWorkloadsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AssuredWorkloadsServiceClient($options); - } - - /** @test */ - public function acknowledgeViolationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeViolationResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $comment = 'comment950398559'; - $request = (new AcknowledgeViolationRequest()) - ->setName($name) - ->setComment($comment); - $response = $gapicClient->acknowledgeViolation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/AcknowledgeViolation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getComment(); - $this->assertProtobufEquals($comment, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeViolationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $comment = 'comment950398559'; - $request = (new AcknowledgeViolationRequest()) - ->setName($name) - ->setComment($comment); - try { - $gapicClient->acknowledgeViolation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkloadTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $billingAccount = 'billingAccount-545871767'; - $etag = 'etag3123477'; - $provisionedResourcesParent = 'provisionedResourcesParent-158134097'; - $enableSovereignControls = false; - $expectedResponse = new Workload(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setBillingAccount($billingAccount); - $expectedResponse->setEtag($etag); - $expectedResponse->setProvisionedResourcesParent($provisionedResourcesParent); - $expectedResponse->setEnableSovereignControls($enableSovereignControls); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createWorkloadTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkload($workload); - $response = $gapicClient->createWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/CreateWorkload', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getWorkload(); - $this->assertProtobufEquals($workload, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createWorkloadTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createWorkloadExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkload($workload); - $response = $gapicClient->createWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createWorkloadTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new DeleteWorkloadRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkload($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/DeleteWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new DeleteWorkloadRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getViolationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $category = 'category50511102'; - $orgPolicyConstraint = 'orgPolicyConstraint139795055'; - $auditLogLink = 'auditLogLink-657658887'; - $nonCompliantOrgPolicy = 'nonCompliantOrgPolicy-1555127741'; - $acknowledged = true; - $exceptionAuditLogLink = 'exceptionAuditLogLink1901265385'; - $expectedResponse = new Violation(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setCategory($category); - $expectedResponse->setOrgPolicyConstraint($orgPolicyConstraint); - $expectedResponse->setAuditLogLink($auditLogLink); - $expectedResponse->setNonCompliantOrgPolicy($nonCompliantOrgPolicy); - $expectedResponse->setAcknowledged($acknowledged); - $expectedResponse->setExceptionAuditLogLink($exceptionAuditLogLink); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]', '[VIOLATION]'); - $request = (new GetViolationRequest()) - ->setName($formattedName); - $response = $gapicClient->getViolation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/GetViolation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getViolationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->violationName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]', '[VIOLATION]'); - $request = (new GetViolationRequest()) - ->setName($formattedName); - try { - $gapicClient->getViolation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $billingAccount = 'billingAccount-545871767'; - $etag = 'etag3123477'; - $provisionedResourcesParent = 'provisionedResourcesParent-158134097'; - $enableSovereignControls = false; - $expectedResponse = new Workload(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setBillingAccount($billingAccount); - $expectedResponse->setEtag($etag); - $expectedResponse->setProvisionedResourcesParent($provisionedResourcesParent); - $expectedResponse->setEnableSovereignControls($enableSovereignControls); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/GetWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listViolationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $violationsElement = new Violation(); - $violations = [ - $violationsElement, - ]; - $expectedResponse = new ListViolationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setViolations($violations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new ListViolationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listViolations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getViolations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/ListViolations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listViolationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new ListViolationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listViolations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workloadsElement = new Workload(); - $workloads = [ - $workloadsElement, - ]; - $expectedResponse = new ListWorkloadsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkloads($workloads); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkloads($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkloads()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/ListWorkloads', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkloads($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function restrictAllowedResourcesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RestrictAllowedResourcesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $restrictionType = RestrictionType::RESTRICTION_TYPE_UNSPECIFIED; - $request = (new RestrictAllowedResourcesRequest()) - ->setName($name) - ->setRestrictionType($restrictionType); - $response = $gapicClient->restrictAllowedResources($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/RestrictAllowedResources', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getRestrictionType(); - $this->assertProtobufEquals($restrictionType, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function restrictAllowedResourcesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $restrictionType = RestrictionType::RESTRICTION_TYPE_UNSPECIFIED; - $request = (new RestrictAllowedResourcesRequest()) - ->setName($name) - ->setRestrictionType($restrictionType); - try { - $gapicClient->restrictAllowedResources($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $billingAccount = 'billingAccount-545871767'; - $etag = 'etag3123477'; - $provisionedResourcesParent = 'provisionedResourcesParent-158134097'; - $enableSovereignControls = false; - $expectedResponse = new Workload(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setBillingAccount($billingAccount); - $expectedResponse->setEtag($etag); - $expectedResponse->setProvisionedResourcesParent($provisionedResourcesParent); - $expectedResponse->setEnableSovereignControls($enableSovereignControls); - $transport->addResponse($expectedResponse); - // Mock request - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $updateMask = new FieldMask(); - $request = (new UpdateWorkloadRequest()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/UpdateWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkload(); - $this->assertProtobufEquals($workload, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $updateMask = new FieldMask(); - $request = (new UpdateWorkloadRequest()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function acknowledgeViolationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AcknowledgeViolationResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $comment = 'comment950398559'; - $request = (new AcknowledgeViolationRequest()) - ->setName($name) - ->setComment($comment); - $response = $gapicClient->acknowledgeViolationAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1.AssuredWorkloadsService/AcknowledgeViolation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getComment(); - $this->assertProtobufEquals($comment, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1Beta1/Assuredworkloads.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1Beta1/Assuredworkloads.php deleted file mode 100644 index 6ba11ddfa4af..000000000000 Binary files a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1Beta1/Assuredworkloads.php and /dev/null differ diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1Beta1/AssuredworkloadsService.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1Beta1/AssuredworkloadsService.php deleted file mode 100644 index be55b72a2230..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/GPBMetadata/Google/Cloud/Assuredworkloads/V1Beta1/AssuredworkloadsService.php +++ /dev/null @@ -1,41 +0,0 @@ -internalAddGeneratedFile( - ' - -Dgoogle/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto%google.cloud.assuredworkloads.v1beta1google/api/client.protogoogle.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveRequest - */ -class AnalyzeWorkloadMoveRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source project will hypothetically be moved to. Specify the - * workload's relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-2" - * - * Generated from protobuf field string target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target = ''; - protected $projectOrWorkloadResource; - - /** - * @param string $project The source type is a project. Specify the project's relative resource - * name, formatted as either a project number or a project ID: - * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" - * For example: - * "projects/951040570662" when specifying a project number, or - * "projects/my-project-123" when specifying a project ID. - * @param string $target Required. The resource ID of the folder-based destination workload. This workload is - * where the source project will hypothetically be moved to. Specify the - * workload's relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-2" - * - * @return \Google\Cloud\AssuredWorkloads\V1beta1\AnalyzeWorkloadMoveRequest - * - * @experimental - */ - public static function build(string $project, string $target): self - { - return (new self()) - ->setProject($project) - ->setTarget($target); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source - * The source type is a project-based workload. Specify the workloads's - * relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-1" - * @type string $project - * The source type is a project. Specify the project's relative resource - * name, formatted as either a project number or a project ID: - * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" - * For example: - * "projects/951040570662" when specifying a project number, or - * "projects/my-project-123" when specifying a project ID. - * @type string $target - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source project will hypothetically be moved to. Specify the - * workload's relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-2" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * The source type is a project-based workload. Specify the workloads's - * relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-1" - * - * Generated from protobuf field string source = 1; - * @return string - */ - public function getSource() - { - return $this->readOneof(1); - } - - public function hasSource() - { - return $this->hasOneof(1); - } - - /** - * The source type is a project-based workload. Specify the workloads's - * relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-1" - * - * Generated from protobuf field string source = 1; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The source type is a project. Specify the project's relative resource - * name, formatted as either a project number or a project ID: - * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" - * For example: - * "projects/951040570662" when specifying a project number, or - * "projects/my-project-123" when specifying a project ID. - * - * Generated from protobuf field string project = 3; - * @return string - */ - public function getProject() - { - return $this->readOneof(3); - } - - public function hasProject() - { - return $this->hasOneof(3); - } - - /** - * The source type is a project. Specify the project's relative resource - * name, formatted as either a project number or a project ID: - * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" - * For example: - * "projects/951040570662" when specifying a project number, or - * "projects/my-project-123" when specifying a project ID. - * - * Generated from protobuf field string project = 3; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source project will hypothetically be moved to. Specify the - * workload's relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-2" - * - * Generated from protobuf field string target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source project will hypothetically be moved to. Specify the - * workload's relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" - * For example: - * "organizations/123/locations/us-east1/workloads/assured-workload-2" - * - * Generated from protobuf field string target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * @return string - */ - public function getProjectOrWorkloadResource() - { - return $this->whichOneof("projectOrWorkloadResource"); - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/AnalyzeWorkloadMoveResponse.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/AnalyzeWorkloadMoveResponse.php deleted file mode 100644 index 358677fb9f89..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/AnalyzeWorkloadMoveResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse - */ -class AnalyzeWorkloadMoveResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of blockers that should be addressed before moving the source - * project or project-based workload to the destination folder-based workload. - * - * Generated from protobuf field repeated string blockers = 1; - */ - private $blockers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $blockers - * A list of blockers that should be addressed before moving the source - * project or project-based workload to the destination folder-based workload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * A list of blockers that should be addressed before moving the source - * project or project-based workload to the destination folder-based workload. - * - * Generated from protobuf field repeated string blockers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlockers() - { - return $this->blockers; - } - - /** - * A list of blockers that should be addressed before moving the source - * project or project-based workload to the destination folder-based workload. - * - * Generated from protobuf field repeated string blockers = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlockers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->blockers = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/CreateWorkloadOperationMetadata.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/CreateWorkloadOperationMetadata.php deleted file mode 100644 index fc8e74e5998a..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/CreateWorkloadOperationMetadata.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata - */ -class CreateWorkloadOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $create_time = null; - /** - * Optional. The display name of the workload. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The parent of the workload. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $parent = ''; - /** - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $compliance_regime = 0; - /** - * Optional. Resource properties in the input that are used for creating/customizing - * workload resources. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Optional. Time when the operation was created. - * @type string $display_name - * Optional. The display name of the workload. - * @type string $parent - * Optional. The parent of the workload. - * @type int $compliance_regime - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * @type array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings>|\Google\Protobuf\Internal\RepeatedField $resource_settings - * Optional. Resource properties in the input that are used for creating/customizing - * workload resources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Optional. The display name of the workload. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The display name of the workload. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. The parent of the workload. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Optional. The parent of the workload. - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getComplianceRegime() - { - return $this->compliance_regime; - } - - /** - * Optional. Compliance controls that should be applied to the resources managed by - * the workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setComplianceRegime($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\ComplianceRegime::class); - $this->compliance_regime = $var; - - return $this; - } - - /** - * Optional. Resource properties in the input that are used for creating/customizing - * workload resources. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceSettings() - { - return $this->resource_settings; - } - - /** - * Optional. Resource properties in the input that are used for creating/customizing - * workload resources. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceSettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings::class); - $this->resource_settings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/CreateWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/CreateWorkloadRequest.php deleted file mode 100644 index 65461d55a2b0..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/CreateWorkloadRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest - */ -class CreateWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Assured Workload to create - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workload = null; - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * - * Generated from protobuf field string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_id = ''; - - /** - * @param string $parent Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. Please see - * {@see AssuredWorkloadsServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload $workload Required. Assured Workload to create - * - * @return \Google\Cloud\AssuredWorkloads\V1beta1\CreateWorkloadRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AssuredWorkloads\V1beta1\Workload $workload): self - { - return (new self()) - ->setParent($parent) - ->setWorkload($workload); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload $workload - * Required. Assured Workload to create - * @type string $external_id - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * - * 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 new Workload's parent. - * Must be of the form `organizations/{org_id}/locations/{location_id}`. - * - * 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. Assured Workload to create - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload|null - */ - public function getWorkload() - { - return $this->workload; - } - - public function hasWorkload() - { - return isset($this->workload); - } - - public function clearWorkload() - { - unset($this->workload); - } - - /** - * Required. Assured Workload to create - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload workload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload $var - * @return $this - */ - public function setWorkload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload::class); - $this->workload = $var; - - return $this; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * - * Generated from protobuf field string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalId() - { - return $this->external_id; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value - * provided for the identifier will add a label to the workload and contained - * projects with the identifier as the value. - * - * Generated from protobuf field string external_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalId($var) - { - GPBUtil::checkString($var, True); - $this->external_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/DeleteWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/DeleteWorkloadRequest.php deleted file mode 100644 index 06ffdd344fa8..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/DeleteWorkloadRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest - */ -class DeleteWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * Please see {@see AssuredWorkloadsServiceClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1beta1\DeleteWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @type string $etag - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `name` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * 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` field is used to identify the workload. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * 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; - } - - /** - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag of the workload. - * If this is provided, it must match the server's etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/GetWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/GetWorkloadRequest.php deleted file mode 100644 index 28e30c7b02ba..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/GetWorkloadRequest.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest - */ -class GetWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Workload to fetch. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Workload to fetch. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". Please see - * {@see AssuredWorkloadsServiceClient::workloadName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1beta1\GetWorkloadRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Workload to fetch. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Workload to fetch. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * 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 Workload to fetch. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * 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/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/ListWorkloadsRequest.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/ListWorkloadsRequest.php deleted file mode 100644 index ead0ff47b4e2..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/ListWorkloadsRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest - */ -class ListWorkloadsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. Please see - * {@see AssuredWorkloadsServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AssuredWorkloads\V1beta1\ListWorkloadsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * @type int $page_size - * Page size. - * @type string $page_token - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * @type string $filter - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * - * 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. Parent Resource to list workloads from. - * Must be of the form `organizations/{org_id}/locations/{location}`. - * - * 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; - } - - /** - * Page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Page size. - * - * 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; - } - - /** - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following - * requests. - * - * 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; - } - - /** - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A custom filter for filtering by properties of a workload. At this time, - * only filtering by labels is supported. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/ListWorkloadsResponse.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/ListWorkloadsResponse.php deleted file mode 100644 index 41c3865caecf..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/ListWorkloadsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse - */ -class ListWorkloadsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of Workloads under a given parent. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; - */ - private $workloads; - /** - * The next page token. Return empty if reached the last page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload>|\Google\Protobuf\Internal\RepeatedField $workloads - * List of Workloads under a given parent. - * @type string $next_page_token - * The next page token. Return empty if reached the last page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * List of Workloads under a given parent. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkloads() - { - return $this->workloads; - } - - /** - * List of Workloads under a given parent. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1; - * @param array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkloads($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1beta1\Workload::class); - $this->workloads = $arr; - - return $this; - } - - /** - * The next page token. Return empty if reached the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. Return empty if reached the last page. - * - * 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/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesRequest.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesRequest.php deleted file mode 100644 index 4c34526ed7ef..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest - */ -class RestrictAllowedResourcesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The type of restriction for using gcp products in the Workload environment. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $restriction_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @type int $restriction_type - * Required. The type of restriction for using gcp products in the Workload environment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the Workload. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - * For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The type of restriction for using gcp products in the Workload environment. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getRestrictionType() - { - return $this->restriction_type; - } - - /** - * Required. The type of restriction for using gcp products in the Workload environment. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setRestrictionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1beta1\RestrictAllowedResourcesRequest\RestrictionType::class); - $this->restriction_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesRequest/RestrictionType.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesRequest/RestrictionType.php deleted file mode 100644 index b6587e19dd4d..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesRequest/RestrictionType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType - */ -class RestrictionType -{ - /** - * Unknown restriction type. - * - * Generated from protobuf enum RESTRICTION_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTION_TYPE_UNSPECIFIED = 0; - /** - * Allow the use all of all gcp products, irrespective of the compliance - * posture. This effectively removes gcp.restrictServiceUsage OrgPolicy - * on the AssuredWorkloads Folder. - * - * Generated from protobuf enum ALLOW_ALL_GCP_RESOURCES = 1; - */ - const ALLOW_ALL_GCP_RESOURCES = 1; - /** - * Based on Workload's compliance regime, allowed list changes. - * See - https://cloud.google.com/assured-workloads/docs/supported-products - * for the list of supported resources. - * - * Generated from protobuf enum ALLOW_COMPLIANT_RESOURCES = 2; - */ - const ALLOW_COMPLIANT_RESOURCES = 2; - - private static $valueToName = [ - self::RESTRICTION_TYPE_UNSPECIFIED => 'RESTRICTION_TYPE_UNSPECIFIED', - self::ALLOW_ALL_GCP_RESOURCES => 'ALLOW_ALL_GCP_RESOURCES', - self::ALLOW_COMPLIANT_RESOURCES => 'ALLOW_COMPLIANT_RESOURCES', - ]; - - 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(RestrictionType::class, \Google\Cloud\AssuredWorkloads\V1beta1\RestrictAllowedResourcesRequest_RestrictionType::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesResponse.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesResponse.php deleted file mode 100644 index 206494d5f65d..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/RestrictAllowedResourcesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse - */ -class RestrictAllowedResourcesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/UpdateWorkloadRequest.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/UpdateWorkloadRequest.php deleted file mode 100644 index d2102c333654..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/UpdateWorkloadRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest - */ -class UpdateWorkloadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workload = null; - /** - * Required. The list of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload $workload Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to be updated. - * - * @return \Google\Cloud\AssuredWorkloads\V1beta1\UpdateWorkloadRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AssuredWorkloads\V1beta1\Workload $workload, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload $workload - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to be updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload|null - */ - public function getWorkload() - { - return $this->workload; - } - - public function hasWorkload() - { - return isset($this->workload); - } - - public function clearWorkload() - { - unset($this->workload); - } - - /** - * Required. The workload to update. - * The workload's `name` field is used to identify the workload to be updated. - * Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload workload = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload $var - * @return $this - */ - public function setWorkload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload::class); - $this->workload = $var; - - return $this; - } - - /** - * Required. The list of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to be updated. - * - * 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/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload.php deleted file mode 100644 index e71607673b5a..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload.php +++ /dev/null @@ -1,882 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload - */ -class Workload extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $resources; - /** - * Required. Immutable. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $compliance_regime = 0; - /** - * Output only. Immutable. The Workload creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $create_time = null; - /** - * Output only. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * - * Generated from protobuf field string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $billing_account = ''; - /** - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. Labels applied to the workload. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * - * Generated from protobuf field string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $provisioned_resources_parent = ''; - /** - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @deprecated - */ - protected $kms_settings = null; - /** - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - private $resource_settings; - /** - * Output only. Represents the KAJ enrollment state of the given workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $kaj_enrollment_state = 0; - /** - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * - * Generated from protobuf field bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_sovereign_controls = false; - /** - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $saa_enrollment_response = null; - /** - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * - * Generated from protobuf field repeated string compliant_but_disallowed_services = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $compliant_but_disallowed_services; - protected $compliance_regime_settings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * @type string $display_name - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * @type array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo>|\Google\Protobuf\Internal\RepeatedField $resources - * Output only. The resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * @type int $compliance_regime - * Required. Immutable. Compliance Regime associated with this workload. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Immutable. The Workload creation timestamp. - * @type string $billing_account - * Output only. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings $il4_settings - * Input only. Immutable. Settings specific to resources needed for IL4. - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings $cjis_settings - * Input only. Immutable. Settings specific to resources needed for CJIS. - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings $fedramp_high_settings - * Input only. Immutable. Settings specific to resources needed for FedRAMP High. - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings $fedramp_moderate_settings - * Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate. - * @type string $etag - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels applied to the workload. - * @type string $provisioned_resources_parent - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $kms_settings - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * @type array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings>|\Google\Protobuf\Internal\RepeatedField $resource_settings - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * @type int $kaj_enrollment_state - * Output only. Represents the KAJ enrollment state of the given workload. - * @type bool $enable_sovereign_controls - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse $saa_enrollment_response - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * @type array|\Google\Protobuf\Internal\RepeatedField $compliant_but_disallowed_services - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The resource name of the workload. - * Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * Read-only. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The user-assigned display name of the Workload. - * When present it must be between 4 to 30 characters. - * Allowed characters are: lowercase and uppercase letters, numbers, - * hyphen, and spaces. - * Example: My Workload - * - * 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 resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * Output only. The resources associated with this workload. - * These resources will be created when creating the workload. - * If any of the projects already exist, the workload creation will fail. - * Always read only. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo::class); - $this->resources = $arr; - - return $this; - } - - /** - * Required. Immutable. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getComplianceRegime() - { - return $this->compliance_regime; - } - - /** - * Required. Immutable. Compliance Regime associated with this workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setComplianceRegime($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\ComplianceRegime::class); - $this->compliance_regime = $var; - - return $this; - } - - /** - * Output only. Immutable. The Workload creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @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. Immutable. The Workload creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @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. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * - * Generated from protobuf field string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getBillingAccount() - { - return $this->billing_account; - } - - /** - * Output only. The billing account used for the resources which are - * direct children of workload. This billing account is initially associated - * with the resources created as part of Workload creation. - * After the initial creation of these resources, the customer can change - * the assigned billing account. - * The resource name has the form - * `billingAccounts/{billing_account_id}`. For example, - * `billingAccounts/012345-567890-ABCDEF`. - * - * Generated from protobuf field string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setBillingAccount($var) - { - GPBUtil::checkString($var, True); - $this->billing_account = $var; - - return $this; - } - - /** - * Input only. Immutable. Settings specific to resources needed for IL4. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings|null - * @deprecated - */ - public function getIl4Settings() - { - @trigger_error('il4_settings is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(7); - } - - public function hasIl4Settings() - { - @trigger_error('il4_settings is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(7); - } - - /** - * Input only. Immutable. Settings specific to resources needed for IL4. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings il4_settings = 7 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings $var - * @return $this - * @deprecated - */ - public function setIl4Settings($var) - { - @trigger_error('il4_settings is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\IL4Settings::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Input only. Immutable. Settings specific to resources needed for CJIS. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings|null - * @deprecated - */ - public function getCjisSettings() - { - @trigger_error('cjis_settings is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(8); - } - - public function hasCjisSettings() - { - @trigger_error('cjis_settings is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(8); - } - - /** - * Input only. Immutable. Settings specific to resources needed for CJIS. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings cjis_settings = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings $var - * @return $this - * @deprecated - */ - public function setCjisSettings($var) - { - @trigger_error('cjis_settings is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\CJISSettings::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Input only. Immutable. Settings specific to resources needed for FedRAMP High. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings|null - * @deprecated - */ - public function getFedrampHighSettings() - { - @trigger_error('fedramp_high_settings is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(11); - } - - public function hasFedrampHighSettings() - { - @trigger_error('fedramp_high_settings is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(11); - } - - /** - * Input only. Immutable. Settings specific to resources needed for FedRAMP High. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings fedramp_high_settings = 11 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings $var - * @return $this - * @deprecated - */ - public function setFedrampHighSettings($var) - { - @trigger_error('fedramp_high_settings is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampHighSettings::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings|null - * @deprecated - */ - public function getFedrampModerateSettings() - { - @trigger_error('fedramp_moderate_settings is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(12); - } - - public function hasFedrampModerateSettings() - { - @trigger_error('fedramp_moderate_settings is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(12); - } - - /** - * Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings fedramp_moderate_settings = 12 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings $var - * @return $this - * @deprecated - */ - public function setFedrampModerateSettings($var) - { - @trigger_error('fedramp_moderate_settings is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\FedrampModerateSettings::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. ETag of the workload, it is calculated on the basis - * of the Workload contents. It will be used in Update & Delete operations. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Labels applied to the workload. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels applied to the workload. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * - * Generated from protobuf field string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getProvisionedResourcesParent() - { - return $this->provisioned_resources_parent; - } - - /** - * Input only. The parent resource for the resources managed by this Assured Workload. May - * be either empty or a folder resource which is a child of the - * Workload parent. If not specified all resources are created under the - * parent organization. - * Format: - * folders/{folder_id} - * - * Generated from protobuf field string provisioned_resources_parent = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setProvisionedResourcesParent($var) - { - GPBUtil::checkString($var, True); - $this->provisioned_resources_parent = $var; - - return $this; - } - - /** - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings|null - * @deprecated - */ - public function getKmsSettings() - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - return $this->kms_settings; - } - - public function hasKmsSettings() - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - return isset($this->kms_settings); - } - - public function clearKmsSettings() - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - unset($this->kms_settings); - } - - /** - * Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS - * CMEK key is provisioned. - * This field is deprecated as of Feb 28, 2022. - * In order to create a Keyring, callers should specify, - * ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 14 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $var - * @return $this - * @deprecated - */ - public function setKmsSettings($var) - { - @trigger_error('kms_settings is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings::class); - $this->kms_settings = $var; - - return $this; - } - - /** - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceSettings() - { - return $this->resource_settings; - } - - /** - * Input only. Resource properties that are used to customize workload resources. - * These properties (such as custom project id) will be used to create - * workload resources if possible. This field is optional. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param array<\Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceSettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceSettings::class); - $this->resource_settings = $arr; - - return $this; - } - - /** - * Output only. Represents the KAJ enrollment state of the given workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getKajEnrollmentState() - { - return $this->kaj_enrollment_state; - } - - /** - * Output only. Represents the KAJ enrollment state of the given workload. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState kaj_enrollment_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setKajEnrollmentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KajEnrollmentState::class); - $this->kaj_enrollment_state = $var; - - return $this; - } - - /** - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * - * Generated from protobuf field bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableSovereignControls() - { - return $this->enable_sovereign_controls; - } - - /** - * Optional. Indicates the sovereignty status of the given workload. - * Currently meant to be used by Europe/Canada customers. - * - * Generated from protobuf field bool enable_sovereign_controls = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableSovereignControls($var) - { - GPBUtil::checkBool($var); - $this->enable_sovereign_controls = $var; - - return $this; - } - - /** - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse|null - */ - public function getSaaEnrollmentResponse() - { - return $this->saa_enrollment_response; - } - - public function hasSaaEnrollmentResponse() - { - return isset($this->saa_enrollment_response); - } - - public function clearSaaEnrollmentResponse() - { - unset($this->saa_enrollment_response); - } - - /** - * Output only. Represents the SAA enrollment response of the given workload. - * SAA enrollment response is queried during GetWorkload call. - * In failure cases, user friendly error message is shown in SAA details page. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse saa_enrollment_response = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse $var - * @return $this - */ - public function setSaaEnrollmentResponse($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse::class); - $this->saa_enrollment_response = $var; - - return $this; - } - - /** - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * - * Generated from protobuf field repeated string compliant_but_disallowed_services = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompliantButDisallowedServices() - { - return $this->compliant_but_disallowed_services; - } - - /** - * Output only. Urls for services which are compliant for this Assured Workload, but which - * are currently disallowed by the ResourceUsageRestriction org policy. - * Invoke RestrictAllowedResources endpoint to allow your project developers - * to use these services in their environment." - * - * Generated from protobuf field repeated string compliant_but_disallowed_services = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompliantButDisallowedServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->compliant_but_disallowed_services = $arr; - - return $this; - } - - /** - * @return string - */ - public function getComplianceRegimeSettings() - { - return $this->whichOneof("compliance_regime_settings"); - } - -} - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/CJISSettings.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/CJISSettings.php deleted file mode 100644 index 0d231860e48a..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/CJISSettings.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings - */ -class CJISSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $kms_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $kms_settings - * Input only. Immutable. Settings used to create a CMEK crypto key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings|null - */ - public function getKmsSettings() - { - return $this->kms_settings; - } - - public function hasKmsSettings() - { - return isset($this->kms_settings); - } - - public function clearKmsSettings() - { - unset($this->kms_settings); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $var - * @return $this - */ - public function setKmsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings::class); - $this->kms_settings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CJISSettings::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_CJISSettings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ComplianceRegime.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ComplianceRegime.php deleted file mode 100644 index 2a313655a862..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ComplianceRegime.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime - */ -class ComplianceRegime -{ - /** - * Unknown compliance regime. - * - * Generated from protobuf enum COMPLIANCE_REGIME_UNSPECIFIED = 0; - */ - const COMPLIANCE_REGIME_UNSPECIFIED = 0; - /** - * Information protection as per DoD IL4 requirements. - * - * Generated from protobuf enum IL4 = 1; - */ - const IL4 = 1; - /** - * Criminal Justice Information Services (CJIS) Security policies. - * - * Generated from protobuf enum CJIS = 2; - */ - const CJIS = 2; - /** - * FedRAMP High data protection controls - * - * Generated from protobuf enum FEDRAMP_HIGH = 3; - */ - const FEDRAMP_HIGH = 3; - /** - * FedRAMP Moderate data protection controls - * - * Generated from protobuf enum FEDRAMP_MODERATE = 4; - */ - const FEDRAMP_MODERATE = 4; - /** - * Assured Workloads For US Regions data protection controls - * - * Generated from protobuf enum US_REGIONAL_ACCESS = 5; - */ - const US_REGIONAL_ACCESS = 5; - /** - * Health Insurance Portability and Accountability Act controls - * - * Generated from protobuf enum HIPAA = 6; - */ - const HIPAA = 6; - /** - * Health Information Trust Alliance controls - * - * Generated from protobuf enum HITRUST = 7; - */ - const HITRUST = 7; - /** - * Assured Workloads For EU Regions and Support controls - * - * Generated from protobuf enum EU_REGIONS_AND_SUPPORT = 8; - */ - const EU_REGIONS_AND_SUPPORT = 8; - /** - * Assured Workloads For Canada Regions and Support controls - * - * Generated from protobuf enum CA_REGIONS_AND_SUPPORT = 9; - */ - const CA_REGIONS_AND_SUPPORT = 9; - /** - * International Traffic in Arms Regulations - * - * Generated from protobuf enum ITAR = 10; - */ - const ITAR = 10; - /** - * Assured Workloads for Australia Regions and Support controls - * - * Generated from protobuf enum AU_REGIONS_AND_US_SUPPORT = 11; - */ - const AU_REGIONS_AND_US_SUPPORT = 11; - - private static $valueToName = [ - self::COMPLIANCE_REGIME_UNSPECIFIED => 'COMPLIANCE_REGIME_UNSPECIFIED', - self::IL4 => 'IL4', - self::CJIS => 'CJIS', - self::FEDRAMP_HIGH => 'FEDRAMP_HIGH', - self::FEDRAMP_MODERATE => 'FEDRAMP_MODERATE', - self::US_REGIONAL_ACCESS => 'US_REGIONAL_ACCESS', - self::HIPAA => 'HIPAA', - self::HITRUST => 'HITRUST', - self::EU_REGIONS_AND_SUPPORT => 'EU_REGIONS_AND_SUPPORT', - self::CA_REGIONS_AND_SUPPORT => 'CA_REGIONS_AND_SUPPORT', - self::ITAR => 'ITAR', - self::AU_REGIONS_AND_US_SUPPORT => 'AU_REGIONS_AND_US_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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ComplianceRegime::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_ComplianceRegime::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/FedrampHighSettings.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/FedrampHighSettings.php deleted file mode 100644 index bbc6ff8eccca..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/FedrampHighSettings.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings - */ -class FedrampHighSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $kms_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $kms_settings - * Input only. Immutable. Settings used to create a CMEK crypto key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings|null - */ - public function getKmsSettings() - { - return $this->kms_settings; - } - - public function hasKmsSettings() - { - return isset($this->kms_settings); - } - - public function clearKmsSettings() - { - unset($this->kms_settings); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $var - * @return $this - */ - public function setKmsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings::class); - $this->kms_settings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FedrampHighSettings::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_FedrampHighSettings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/FedrampModerateSettings.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/FedrampModerateSettings.php deleted file mode 100644 index 11083bfa95ae..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/FedrampModerateSettings.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings - */ -class FedrampModerateSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $kms_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $kms_settings - * Input only. Immutable. Settings used to create a CMEK crypto key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings|null - */ - public function getKmsSettings() - { - return $this->kms_settings; - } - - public function hasKmsSettings() - { - return isset($this->kms_settings); - } - - public function clearKmsSettings() - { - unset($this->kms_settings); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $var - * @return $this - */ - public function setKmsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings::class); - $this->kms_settings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FedrampModerateSettings::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_FedrampModerateSettings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/IL4Settings.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/IL4Settings.php deleted file mode 100644 index 83a0e87805c8..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/IL4Settings.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings - */ -class IL4Settings extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $kms_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $kms_settings - * Input only. Immutable. Settings used to create a CMEK crypto key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings|null - */ - public function getKmsSettings() - { - return $this->kms_settings; - } - - public function hasKmsSettings() - { - return isset($this->kms_settings); - } - - public function clearKmsSettings() - { - unset($this->kms_settings); - } - - /** - * Input only. Immutable. Settings used to create a CMEK crypto key. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings kms_settings = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings $var - * @return $this - */ - public function setKmsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\KMSSettings::class); - $this->kms_settings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IL4Settings::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_IL4Settings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/KMSSettings.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/KMSSettings.php deleted file mode 100644 index 3c10c5c601b4..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/KMSSettings.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings - */ -class KMSSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * - * Generated from protobuf field .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $next_rotation_time = null; - /** - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * - * Generated from protobuf field .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $rotation_period = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $next_rotation_time - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * @type \Google\Protobuf\Duration $rotation_period - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * - * Generated from protobuf field .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getNextRotationTime() - { - return $this->next_rotation_time; - } - - public function hasNextRotationTime() - { - return isset($this->next_rotation_time); - } - - public function clearNextRotationTime() - { - unset($this->next_rotation_time); - } - - /** - * Required. Input only. Immutable. The time at which the Key Management Service will automatically create a - * new version of the crypto key and mark it as the primary. - * - * Generated from protobuf field .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setNextRotationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->next_rotation_time = $var; - - return $this; - } - - /** - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * - * Generated from protobuf field .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Duration|null - */ - public function getRotationPeriod() - { - return $this->rotation_period; - } - - public function hasRotationPeriod() - { - return isset($this->rotation_period); - } - - public function clearRotationPeriod() - { - unset($this->rotation_period); - } - - /** - * Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key - * Management Service automatically rotates a key. Must be at least 24 hours - * and at most 876,000 hours. - * - * Generated from protobuf field .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRotationPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->rotation_period = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KMSSettings::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_KMSSettings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/KajEnrollmentState.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/KajEnrollmentState.php deleted file mode 100644 index 393673186a18..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/KajEnrollmentState.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState - */ -class KajEnrollmentState -{ - /** - * Default State for KAJ Enrollment. - * - * Generated from protobuf enum KAJ_ENROLLMENT_STATE_UNSPECIFIED = 0; - */ - const KAJ_ENROLLMENT_STATE_UNSPECIFIED = 0; - /** - * Pending State for KAJ Enrollment. - * - * Generated from protobuf enum KAJ_ENROLLMENT_STATE_PENDING = 1; - */ - const KAJ_ENROLLMENT_STATE_PENDING = 1; - /** - * Complete State for KAJ Enrollment. - * - * Generated from protobuf enum KAJ_ENROLLMENT_STATE_COMPLETE = 2; - */ - const KAJ_ENROLLMENT_STATE_COMPLETE = 2; - - private static $valueToName = [ - self::KAJ_ENROLLMENT_STATE_UNSPECIFIED => 'KAJ_ENROLLMENT_STATE_UNSPECIFIED', - self::KAJ_ENROLLMENT_STATE_PENDING => 'KAJ_ENROLLMENT_STATE_PENDING', - self::KAJ_ENROLLMENT_STATE_COMPLETE => 'KAJ_ENROLLMENT_STATE_COMPLETE', - ]; - - 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(KajEnrollmentState::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_KajEnrollmentState::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceInfo.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceInfo.php deleted file mode 100644 index 50fc16731dbc..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceInfo.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo - */ -class ResourceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Resource identifier. - * For a project this represents project_number. - * - * Generated from protobuf field int64 resource_id = 1; - */ - protected $resource_id = 0; - /** - * Indicates the type of resource. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - */ - protected $resource_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $resource_id - * Resource identifier. - * For a project this represents project_number. - * @type int $resource_type - * Indicates the type of resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Resource identifier. - * For a project this represents project_number. - * - * Generated from protobuf field int64 resource_id = 1; - * @return int|string - */ - public function getResourceId() - { - return $this->resource_id; - } - - /** - * Resource identifier. - * For a project this represents project_number. - * - * Generated from protobuf field int64 resource_id = 1; - * @param int|string $var - * @return $this - */ - public function setResourceId($var) - { - GPBUtil::checkInt64($var); - $this->resource_id = $var; - - return $this; - } - - /** - * Indicates the type of resource. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Indicates the type of resource. - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo\ResourceType::class); - $this->resource_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ResourceInfo::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_ResourceInfo::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceInfo/ResourceType.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceInfo/ResourceType.php deleted file mode 100644 index 0e9955769014..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceInfo/ResourceType.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType - */ -class ResourceType -{ - /** - * Unknown resource type. - * - * Generated from protobuf enum RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Deprecated. Existing workloads will continue to support this, but new - * CreateWorkloadRequests should not specify this as an input value. - * - * Generated from protobuf enum CONSUMER_PROJECT = 1 [deprecated = true]; - */ - const CONSUMER_PROJECT = 1; - /** - * Consumer Folder. - * - * Generated from protobuf enum CONSUMER_FOLDER = 4; - */ - const CONSUMER_FOLDER = 4; - /** - * Consumer project containing encryption keys. - * - * Generated from protobuf enum ENCRYPTION_KEYS_PROJECT = 2; - */ - const ENCRYPTION_KEYS_PROJECT = 2; - /** - * Keyring resource that hosts encryption keys. - * - * Generated from protobuf enum KEYRING = 3; - */ - const KEYRING = 3; - - private static $valueToName = [ - self::RESOURCE_TYPE_UNSPECIFIED => 'RESOURCE_TYPE_UNSPECIFIED', - self::CONSUMER_PROJECT => 'CONSUMER_PROJECT', - self::CONSUMER_FOLDER => 'CONSUMER_FOLDER', - self::ENCRYPTION_KEYS_PROJECT => 'ENCRYPTION_KEYS_PROJECT', - self::KEYRING => 'KEYRING', - ]; - - 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(ResourceType::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_ResourceInfo_ResourceType::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceSettings.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceSettings.php deleted file mode 100644 index 6cf59ec7c72f..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/ResourceSettings.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings - */ -class ResourceSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * - * Generated from protobuf field string resource_id = 1; - */ - protected $resource_id = ''; - /** - * Indicates the type of resource. This field should be specified to - * correspond the id to the right project type (CONSUMER_PROJECT or - * ENCRYPTION_KEYS_PROJECT) - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - */ - protected $resource_type = 0; - /** - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_id - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * @type int $resource_type - * Indicates the type of resource. This field should be specified to - * correspond the id to the right project type (CONSUMER_PROJECT or - * ENCRYPTION_KEYS_PROJECT) - * @type string $display_name - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * - * Generated from protobuf field string resource_id = 1; - * @return string - */ - public function getResourceId() - { - return $this->resource_id; - } - - /** - * Resource identifier. - * For a project this represents project_id. If the project is already - * taken, the workload creation will fail. - * For KeyRing, this represents the keyring_id. - * For a folder, don't set this value as folder_id is assigned by Google. - * - * Generated from protobuf field string resource_id = 1; - * @param string $var - * @return $this - */ - public function setResourceId($var) - { - GPBUtil::checkString($var, True); - $this->resource_id = $var; - - return $this; - } - - /** - * Indicates the type of resource. This field should be specified to - * correspond the id to the right project type (CONSUMER_PROJECT or - * ENCRYPTION_KEYS_PROJECT) - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Indicates the type of resource. This field should be specified to - * correspond the id to the right project type (CONSUMER_PROJECT or - * ENCRYPTION_KEYS_PROJECT) - * - * Generated from protobuf field .google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType resource_type = 2; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\ResourceInfo\ResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User-assigned resource display name. - * If not empty it will be used to create a resource with the specified - * name. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ResourceSettings::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_ResourceSettings::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse.php deleted file mode 100644 index a18d70e9ae5c..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse - */ -class SaaEnrollmentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates SAA enrollment status of a given workload. - * - * Generated from protobuf field optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - */ - protected $setup_status = null; - /** - * Indicates SAA enrollment setup error if any. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - */ - private $setup_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $setup_status - * Indicates SAA enrollment status of a given workload. - * @type array|\Google\Protobuf\Internal\RepeatedField $setup_errors - * Indicates SAA enrollment setup error if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Assuredworkloads\V1Beta1\Assuredworkloads::initOnce(); - parent::__construct($data); - } - - /** - * Indicates SAA enrollment status of a given workload. - * - * Generated from protobuf field optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * @return int - */ - public function getSetupStatus() - { - return isset($this->setup_status) ? $this->setup_status : 0; - } - - public function hasSetupStatus() - { - return isset($this->setup_status); - } - - public function clearSetupStatus() - { - unset($this->setup_status); - } - - /** - * Indicates SAA enrollment status of a given workload. - * - * Generated from protobuf field optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1; - * @param int $var - * @return $this - */ - public function setSetupStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse\SetupState::class); - $this->setup_status = $var; - - return $this; - } - - /** - * Indicates SAA enrollment setup error if any. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSetupErrors() - { - return $this->setup_errors; - } - - /** - * Indicates SAA enrollment setup error if any. - * - * Generated from protobuf field repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSetupErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\AssuredWorkloads\V1beta1\Workload\SaaEnrollmentResponse\SetupError::class); - $this->setup_errors = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SaaEnrollmentResponse::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_SaaEnrollmentResponse::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse/SetupError.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse/SetupError.php deleted file mode 100644 index 8a777f423600..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse/SetupError.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError - */ -class SetupError -{ - /** - * Unspecified. - * - * Generated from protobuf enum SETUP_ERROR_UNSPECIFIED = 0; - */ - const SETUP_ERROR_UNSPECIFIED = 0; - /** - * Invalid states for all customers, to be redirected to AA UI for - * additional details. - * - * Generated from protobuf enum ERROR_INVALID_BASE_SETUP = 1; - */ - const ERROR_INVALID_BASE_SETUP = 1; - /** - * Returned when there is not an EKM key configured. - * - * Generated from protobuf enum ERROR_MISSING_EXTERNAL_SIGNING_KEY = 2; - */ - const ERROR_MISSING_EXTERNAL_SIGNING_KEY = 2; - /** - * Returned when there are no enrolled services or the customer is - * enrolled in CAA only for a subset of services. - * - * Generated from protobuf enum ERROR_NOT_ALL_SERVICES_ENROLLED = 3; - */ - const ERROR_NOT_ALL_SERVICES_ENROLLED = 3; - /** - * Returned when exception was encountered during evaluation of other - * criteria. - * - * Generated from protobuf enum ERROR_SETUP_CHECK_FAILED = 4; - */ - const ERROR_SETUP_CHECK_FAILED = 4; - - private static $valueToName = [ - self::SETUP_ERROR_UNSPECIFIED => 'SETUP_ERROR_UNSPECIFIED', - self::ERROR_INVALID_BASE_SETUP => 'ERROR_INVALID_BASE_SETUP', - self::ERROR_MISSING_EXTERNAL_SIGNING_KEY => 'ERROR_MISSING_EXTERNAL_SIGNING_KEY', - self::ERROR_NOT_ALL_SERVICES_ENROLLED => 'ERROR_NOT_ALL_SERVICES_ENROLLED', - self::ERROR_SETUP_CHECK_FAILED => 'ERROR_SETUP_CHECK_FAILED', - ]; - - 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(SetupError::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_SaaEnrollmentResponse_SetupError::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse/SetupState.php b/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse/SetupState.php deleted file mode 100644 index 14bd01931eb5..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/proto/src/Google/Cloud/AssuredWorkloads/V1beta1/Workload/SaaEnrollmentResponse/SetupState.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState - */ -class SetupState -{ - /** - * Unspecified. - * - * Generated from protobuf enum SETUP_STATE_UNSPECIFIED = 0; - */ - const SETUP_STATE_UNSPECIFIED = 0; - /** - * SAA enrollment pending. - * - * Generated from protobuf enum STATUS_PENDING = 1; - */ - const STATUS_PENDING = 1; - /** - * SAA enrollment comopleted. - * - * Generated from protobuf enum STATUS_COMPLETE = 2; - */ - const STATUS_COMPLETE = 2; - - private static $valueToName = [ - self::SETUP_STATE_UNSPECIFIED => 'SETUP_STATE_UNSPECIFIED', - self::STATUS_PENDING => 'STATUS_PENDING', - self::STATUS_COMPLETE => 'STATUS_COMPLETE', - ]; - - 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(SetupState::class, \Google\Cloud\AssuredWorkloads\V1beta1\Workload_SaaEnrollmentResponse_SetupState::class); - diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/analyze_workload_move.php b/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/analyze_workload_move.php deleted file mode 100644 index c0d32052155e..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/analyze_workload_move.php +++ /dev/null @@ -1,76 +0,0 @@ -setTarget($target); - - // Call the API and handle any network failures. - try { - /** @var AnalyzeWorkloadMoveResponse $response */ - $response = $assuredWorkloadsServiceClient->analyzeWorkloadMove($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $target = '[TARGET]'; - - analyze_workload_move_sample($target); -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_AnalyzeWorkloadMove_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php b/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php deleted file mode 100644 index 0cf7a6358265..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php +++ /dev/null @@ -1,101 +0,0 @@ -setDisplayName($workloadDisplayName) - ->setComplianceRegime($workloadComplianceRegime); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkload($workload); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $assuredWorkloadsServiceClient->createWorkload($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Workload $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AssuredWorkloadsServiceClient::locationName('[ORGANIZATION]', '[LOCATION]'); - $workloadDisplayName = '[DISPLAY_NAME]'; - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - - create_workload_sample($formattedParent, $workloadDisplayName, $workloadComplianceRegime); -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_CreateWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/delete_workload.php b/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/delete_workload.php deleted file mode 100644 index a6e87ac47c90..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/delete_workload.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $assuredWorkloadsServiceClient->deleteWorkload($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssuredWorkloadsServiceClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[WORKLOAD]' - ); - - delete_workload_sample($formattedName); -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_DeleteWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/get_workload.php b/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/get_workload.php deleted file mode 100644 index 8264dc04ae18..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/get_workload.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Workload $response */ - $response = $assuredWorkloadsServiceClient->getWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AssuredWorkloadsServiceClient::workloadName( - '[ORGANIZATION]', - '[LOCATION]', - '[WORKLOAD]' - ); - - get_workload_sample($formattedName); -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_GetWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/list_workloads.php b/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/list_workloads.php deleted file mode 100644 index ab0f2400f6a2..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/list_workloads.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $assuredWorkloadsServiceClient->listWorkloads($request); - - /** @var Workload $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AssuredWorkloadsServiceClient::locationName('[ORGANIZATION]', '[LOCATION]'); - - list_workloads_sample($formattedParent); -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_ListWorkloads_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php b/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php deleted file mode 100644 index 781f82ef643d..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($name) - ->setRestrictionType($restrictionType); - - // Call the API and handle any network failures. - try { - /** @var RestrictAllowedResourcesResponse $response */ - $response = $assuredWorkloadsServiceClient->restrictAllowedResources($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - $restrictionType = RestrictionType::RESTRICTION_TYPE_UNSPECIFIED; - - restrict_allowed_resources_sample($name, $restrictionType); -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_RestrictAllowedResources_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php b/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php deleted file mode 100644 index 9e67b46c56ed..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php +++ /dev/null @@ -1,87 +0,0 @@ -setDisplayName($workloadDisplayName) - ->setComplianceRegime($workloadComplianceRegime); - $updateMask = new FieldMask(); - $request = (new UpdateWorkloadRequest()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Workload $response */ - $response = $assuredWorkloadsServiceClient->updateWorkload($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $workloadDisplayName = '[DISPLAY_NAME]'; - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - - update_workload_sample($workloadDisplayName, $workloadComplianceRegime); -} -// [END assuredworkloads_v1beta1_generated_AssuredWorkloadsService_UpdateWorkload_sync] diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/Client/AssuredWorkloadsServiceClient.php b/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/Client/AssuredWorkloadsServiceClient.php deleted file mode 100644 index 12adc7835994..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/Client/AssuredWorkloadsServiceClient.php +++ /dev/null @@ -1,530 +0,0 @@ - analyzeWorkloadMoveAsync(AnalyzeWorkloadMoveRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkloadAsync(CreateWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkloadAsync(DeleteWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkloadAsync(GetWorkloadRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkloadsAsync(ListWorkloadsRequest $request, array $optionalArgs = []) - * @method PromiseInterface restrictAllowedResourcesAsync(RestrictAllowedResourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkloadAsync(UpdateWorkloadRequest $request, array $optionalArgs = []) - */ -final class AssuredWorkloadsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'assuredworkloads.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'assuredworkloads.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/assured_workloads_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/assured_workloads_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/assured_workloads_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/assured_workloads_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted location resource. - * - * @experimental - */ - public static function locationName(string $organization, string $location): string - { - return self::getPathTemplate('location')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workload - * resource. - * - * @param string $organization - * @param string $location - * @param string $workload - * - * @return string The formatted workload resource. - * - * @experimental - */ - public static function workloadName(string $organization, string $location, string $workload): string - { - return self::getPathTemplate('workload')->render([ - 'organization' => $organization, - 'location' => $location, - 'workload' => $workload, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - location: organizations/{organization}/locations/{location} - * - workload: organizations/{organization}/locations/{location}/workloads/{workload} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'assuredworkloads.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Analyze if the source Assured Workloads can be moved to the target Assured - * Workload - * - * The async variant is - * {@see AssuredWorkloadsServiceClient::analyzeWorkloadMoveAsync()} . - * - * @example samples/V1beta1/AssuredWorkloadsServiceClient/analyze_workload_move.php - * - * @param AnalyzeWorkloadMoveRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnalyzeWorkloadMoveResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function analyzeWorkloadMove(AnalyzeWorkloadMoveRequest $request, array $callOptions = []): AnalyzeWorkloadMoveResponse - { - return $this->startApiCall('AnalyzeWorkloadMove', $request, $callOptions)->wait(); - } - - /** - * Creates Assured Workload. - * - * The async variant is {@see AssuredWorkloadsServiceClient::createWorkloadAsync()} - * . - * - * @example samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php - * - * @param CreateWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createWorkload(CreateWorkloadRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateWorkload', $request, $callOptions)->wait(); - } - - /** - * Deletes the workload. Make sure that workload's direct children are already - * in a deleted state, otherwise the request will fail with a - * FAILED_PRECONDITION error. - * In addition to assuredworkloads.workload.delete permission, the user should - * also have orgpolicy.policy.set permission on the deleted folder to remove - * Assured Workloads OrgPolicies. - * - * The async variant is {@see AssuredWorkloadsServiceClient::deleteWorkloadAsync()} - * . - * - * @example samples/V1beta1/AssuredWorkloadsServiceClient/delete_workload.php - * - * @param DeleteWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteWorkload(DeleteWorkloadRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkload', $request, $callOptions)->wait(); - } - - /** - * Gets Assured Workload associated with a CRM Node - * - * The async variant is {@see AssuredWorkloadsServiceClient::getWorkloadAsync()} . - * - * @example samples/V1beta1/AssuredWorkloadsServiceClient/get_workload.php - * - * @param GetWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workload - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getWorkload(GetWorkloadRequest $request, array $callOptions = []): Workload - { - return $this->startApiCall('GetWorkload', $request, $callOptions)->wait(); - } - - /** - * Lists Assured Workloads under a CRM Node. - * - * The async variant is {@see AssuredWorkloadsServiceClient::listWorkloadsAsync()} - * . - * - * @example samples/V1beta1/AssuredWorkloadsServiceClient/list_workloads.php - * - * @param ListWorkloadsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listWorkloads(ListWorkloadsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkloads', $request, $callOptions); - } - - /** - * Restrict the list of resources allowed in the Workload environment. - * The current list of allowed products can be found at - * https://cloud.google.com/assured-workloads/docs/supported-products - * In addition to assuredworkloads.workload.update permission, the user should - * also have orgpolicy.policy.set permission on the folder resource - * to use this functionality. - * - * The async variant is - * {@see AssuredWorkloadsServiceClient::restrictAllowedResourcesAsync()} . - * - * @example samples/V1beta1/AssuredWorkloadsServiceClient/restrict_allowed_resources.php - * - * @param RestrictAllowedResourcesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RestrictAllowedResourcesResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function restrictAllowedResources(RestrictAllowedResourcesRequest $request, array $callOptions = []): RestrictAllowedResourcesResponse - { - return $this->startApiCall('RestrictAllowedResources', $request, $callOptions)->wait(); - } - - /** - * Updates an existing workload. - * Currently allows updating of workload display_name and labels. - * For force updates don't set etag field in the Workload. - * Only one update operation per workload can be in progress. - * - * The async variant is {@see AssuredWorkloadsServiceClient::updateWorkloadAsync()} - * . - * - * @example samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php - * - * @param UpdateWorkloadRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workload - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateWorkload(UpdateWorkloadRequest $request, array $callOptions = []): Workload - { - return $this->startApiCall('UpdateWorkload', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/gapic_metadata.json b/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/gapic_metadata.json deleted file mode 100644 index da91f5a92bb7..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/gapic_metadata.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.assuredworkloads.v1beta1", - "libraryPackage": "Google\\Cloud\\AssuredWorkloads\\V1beta1", - "services": { - "AssuredWorkloadsService": { - "clients": { - "grpc": { - "libraryClient": "AssuredWorkloadsServiceGapicClient", - "rpcs": { - "AnalyzeWorkloadMove": { - "methods": [ - "analyzeWorkloadMove" - ] - }, - "CreateWorkload": { - "methods": [ - "createWorkload" - ] - }, - "DeleteWorkload": { - "methods": [ - "deleteWorkload" - ] - }, - "GetWorkload": { - "methods": [ - "getWorkload" - ] - }, - "ListWorkloads": { - "methods": [ - "listWorkloads" - ] - }, - "RestrictAllowedResources": { - "methods": [ - "restrictAllowedResources" - ] - }, - "UpdateWorkload": { - "methods": [ - "updateWorkload" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_client_config.json b/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_client_config.json deleted file mode 100644 index 947e7ed4a76b..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_client_config.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "interfaces": { - "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_1_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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 - }, - "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 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 200, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 30000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AnalyzeWorkloadMove": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListWorkloads": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RestrictAllowedResources": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateWorkload": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_descriptor_config.php b/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_descriptor_config.php deleted file mode 100644 index 977c1a614d27..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_descriptor_config.php +++ /dev/null @@ -1,99 +0,0 @@ - [ - 'google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService' => [ - 'CreateWorkload' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AssuredWorkloads\V1beta1\Workload', - 'metadataReturnType' => '\Google\Cloud\AssuredWorkloads\V1beta1\CreateWorkloadOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'AnalyzeWorkloadMove' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1beta1\AnalyzeWorkloadMoveResponse', - ], - 'DeleteWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1beta1\Workload', - ], - 'ListWorkloads' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkloads', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1beta1\ListWorkloadsResponse', - ], - 'RestrictAllowedResources' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1beta1\RestrictAllowedResourcesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateWorkload' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AssuredWorkloads\V1beta1\Workload', - ], - 'templateMap' => [ - 'location' => 'organizations/{organization}/locations/{location}', - 'workload' => 'organizations/{organization}/locations/{location}/workloads/{workload}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_rest_client_config.php b/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_rest_client_config.php deleted file mode 100644 index 2148a2339c57..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/src/V1beta1/resources/assured_workloads_service_rest_client_config.php +++ /dev/null @@ -1,88 +0,0 @@ - [ - 'google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService' => [ - 'CreateWorkload' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=organizations/*/locations/*}/workloads', - 'body' => 'workload', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteWorkload' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=organizations/*/locations/*/workloads/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RestrictAllowedResources' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=organizations/*/locations/*/workloads/*}:restrictAllowedResources', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=organizations/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=organizations/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AssuredWorkloads/v1beta1/tests/Unit/V1beta1/Client/AssuredWorkloadsServiceClientTest.php b/owl-bot-staging/AssuredWorkloads/v1beta1/tests/Unit/V1beta1/Client/AssuredWorkloadsServiceClientTest.php deleted file mode 100644 index 11a512d60171..000000000000 --- a/owl-bot-staging/AssuredWorkloads/v1beta1/tests/Unit/V1beta1/Client/AssuredWorkloadsServiceClientTest.php +++ /dev/null @@ -1,678 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AssuredWorkloadsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AssuredWorkloadsServiceClient($options); - } - - /** @test */ - public function analyzeWorkloadMoveTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AnalyzeWorkloadMoveResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $target = 'target-880905839'; - $request = (new AnalyzeWorkloadMoveRequest()) - ->setTarget($target); - $response = $gapicClient->analyzeWorkloadMove($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/AnalyzeWorkloadMove', $actualFuncCall); - $actualValue = $actualRequestObject->getTarget(); - $this->assertProtobufEquals($target, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeWorkloadMoveExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $target = 'target-880905839'; - $request = (new AnalyzeWorkloadMoveRequest()) - ->setTarget($target); - try { - $gapicClient->analyzeWorkloadMove($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkloadTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $billingAccount = 'billingAccount-545871767'; - $etag = 'etag3123477'; - $provisionedResourcesParent = 'provisionedResourcesParent-158134097'; - $enableSovereignControls = false; - $expectedResponse = new Workload(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setBillingAccount($billingAccount); - $expectedResponse->setEtag($etag); - $expectedResponse->setProvisionedResourcesParent($provisionedResourcesParent); - $expectedResponse->setEnableSovereignControls($enableSovereignControls); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createWorkloadTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkload($workload); - $response = $gapicClient->createWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/CreateWorkload', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getWorkload(); - $this->assertProtobufEquals($workload, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createWorkloadTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createWorkloadExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createWorkloadTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $request = (new CreateWorkloadRequest()) - ->setParent($formattedParent) - ->setWorkload($workload); - $response = $gapicClient->createWorkload($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createWorkloadTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new DeleteWorkloadRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkload($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/DeleteWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new DeleteWorkloadRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $billingAccount = 'billingAccount-545871767'; - $etag = 'etag3123477'; - $provisionedResourcesParent = 'provisionedResourcesParent-158134097'; - $enableSovereignControls = false; - $expectedResponse = new Workload(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setBillingAccount($billingAccount); - $expectedResponse->setEtag($etag); - $expectedResponse->setProvisionedResourcesParent($provisionedResourcesParent); - $expectedResponse->setEnableSovereignControls($enableSovereignControls); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/GetWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workloadName('[ORGANIZATION]', '[LOCATION]', '[WORKLOAD]'); - $request = (new GetWorkloadRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workloadsElement = new Workload(); - $workloads = [ - $workloadsElement, - ]; - $expectedResponse = new ListWorkloadsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkloads($workloads); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkloads($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkloads()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/ListWorkloads', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkloadsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListWorkloadsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkloads($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function restrictAllowedResourcesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RestrictAllowedResourcesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $restrictionType = RestrictionType::RESTRICTION_TYPE_UNSPECIFIED; - $request = (new RestrictAllowedResourcesRequest()) - ->setName($name) - ->setRestrictionType($restrictionType); - $response = $gapicClient->restrictAllowedResources($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/RestrictAllowedResources', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getRestrictionType(); - $this->assertProtobufEquals($restrictionType, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function restrictAllowedResourcesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $restrictionType = RestrictionType::RESTRICTION_TYPE_UNSPECIFIED; - $request = (new RestrictAllowedResourcesRequest()) - ->setName($name) - ->setRestrictionType($restrictionType); - try { - $gapicClient->restrictAllowedResources($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkloadTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $billingAccount = 'billingAccount-545871767'; - $etag = 'etag3123477'; - $provisionedResourcesParent = 'provisionedResourcesParent-158134097'; - $enableSovereignControls = false; - $expectedResponse = new Workload(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setBillingAccount($billingAccount); - $expectedResponse->setEtag($etag); - $expectedResponse->setProvisionedResourcesParent($provisionedResourcesParent); - $expectedResponse->setEnableSovereignControls($enableSovereignControls); - $transport->addResponse($expectedResponse); - // Mock request - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $updateMask = new FieldMask(); - $request = (new UpdateWorkloadRequest()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateWorkload($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/UpdateWorkload', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkload(); - $this->assertProtobufEquals($workload, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkloadExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $workload = new Workload(); - $workloadDisplayName = 'workloadDisplayName191619702'; - $workload->setDisplayName($workloadDisplayName); - $workloadComplianceRegime = ComplianceRegime::COMPLIANCE_REGIME_UNSPECIFIED; - $workload->setComplianceRegime($workloadComplianceRegime); - $updateMask = new FieldMask(); - $request = (new UpdateWorkloadRequest()) - ->setWorkload($workload) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateWorkload($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function analyzeWorkloadMoveAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AnalyzeWorkloadMoveResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $target = 'target-880905839'; - $request = (new AnalyzeWorkloadMoveRequest()) - ->setTarget($target); - $response = $gapicClient->analyzeWorkloadMoveAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/AnalyzeWorkloadMove', $actualFuncCall); - $actualValue = $actualRequestObject->getTarget(); - $this->assertProtobufEquals($target, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/AnnotationPayload.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/AnnotationPayload.php deleted file mode 100644 index 9e9e65f15492..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/AnnotationPayload.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/AnnotationSpec.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/AnnotationSpec.php deleted file mode 100644 index cf28095f3918..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/AnnotationSpec.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' - -,google/cloud/automl/v1/annotation_spec.protogoogle.cloud.automl.v1" -AnnotationSpec -name (  - display_name (  - example_count (:A -$automl.googleapis.com/AnnotationSpec\\projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}B -com.google.cloud.automl.v1PZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Classification.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Classification.php deleted file mode 100644 index 253a23b5d258..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Classification.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/DataItems.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/DataItems.php deleted file mode 100644 index bf68a11094d3..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/DataItems.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Dataset.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Dataset.php deleted file mode 100644 index 2ed54c515669..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Dataset.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Detection.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Detection.php deleted file mode 100644 index 05c933b999bd..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Detection.php +++ /dev/null @@ -1,44 +0,0 @@ -internalAddGeneratedFile( - ' - -&google/cloud/automl/v1/detection.protogoogle.cloud.automl.v1"k -ImageObjectDetectionAnnotation: - bounding_box ( 2$.google.cloud.automl.v1.BoundingPoly -score (" -BoundingBoxMetricsEntry - iou_threshold ( -mean_average_precision (j -confidence_metrics_entries ( 2F.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryk -ConfidenceMetricsEntry -confidence_threshold ( -recall ( - precision ( -f1_score (" -%ImageObjectDetectionEvaluationMetrics$ -evaluated_bounding_box_count (U -bounding_box_metrics_entries ( 2/.google.cloud.automl.v1.BoundingBoxMetricsEntry+ -#bounding_box_mean_average_precision (B -com.google.cloud.automl.v1PZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Geometry.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Geometry.php deleted file mode 100644 index 72db1f5224ca..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Geometry.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' - -%google/cloud/automl/v1/geometry.protogoogle.cloud.automl.v1"( -NormalizedVertex -x ( -y ("U - BoundingPolyE -normalized_vertices ( 2(.google.cloud.automl.v1.NormalizedVertexB -com.google.cloud.automl.v1PZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Image.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Image.php deleted file mode 100644 index 44b8e2623603..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Image.php +++ /dev/null @@ -1,58 +0,0 @@ -internalAddGeneratedFile( - ' - -"google/cloud/automl/v1/image.protogoogle.cloud.automl.v1+google/cloud/automl/v1/classification.proto"r -"ImageClassificationDatasetMetadataL -classification_type (2*.google.cloud.automl.v1.ClassificationTypeBA"% -#ImageObjectDetectionDatasetMetadata" - ImageClassificationModelMetadata - base_model_id ( BA* -train_budget_milli_node_hours (BA( -train_cost_milli_node_hours (BA - stop_reason ( BA - -model_type ( BA -node_qps (BA - -node_count (BA" -!ImageObjectDetectionModelMetadata - -model_type ( BA - -node_count (BA -node_qps (BA - stop_reason ( BA* -train_budget_milli_node_hours (BA( -train_cost_milli_node_hours (BA"E -*ImageClassificationModelDeploymentMetadata - -node_count (BA"F -+ImageObjectDetectionModelDeploymentMetadata - -node_count (BAB -com.google.cloud.automl.v1B -ImageProtoPZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Io.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Io.php deleted file mode 100644 index 36f50727d932..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Io.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Model.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Model.php deleted file mode 100644 index 16324d230031..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Model.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/ModelEvaluation.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/ModelEvaluation.php deleted file mode 100644 index 62c0dee999a7..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/ModelEvaluation.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Operations.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Operations.php deleted file mode 100644 index 7388986ed973..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Operations.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/PredictionService.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/PredictionService.php deleted file mode 100644 index 4d2bbb57bded..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/PredictionService.php +++ /dev/null @@ -1,68 +0,0 @@ -internalAddGeneratedFile( - ' - -/google/cloud/automl/v1/prediction_service.protogoogle.cloud.automl.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto/google/cloud/automl/v1/annotation_payload.proto\'google/cloud/automl/v1/data_items.protogoogle/cloud/automl/v1/io.proto#google/longrunning/operations.proto" -PredictRequest1 -name ( B#AA -automl.googleapis.com/Model< -payload ( 2&.google.cloud.automl.v1.ExamplePayloadBAB -params ( 22.google.cloud.automl.v1.PredictRequest.ParamsEntry- - ParamsEntry -key (  -value ( :8" -PredictResponse: -payload ( 2).google.cloud.automl.v1.AnnotationPayloadB -preprocessed_input ( 2&.google.cloud.automl.v1.ExamplePayloadG -metadata ( 25.google.cloud.automl.v1.PredictResponse.MetadataEntry/ - MetadataEntry -key (  -value ( :8" -BatchPredictRequest1 -name ( B#AA -automl.googleapis.com/ModelJ - input_config ( 2/.google.cloud.automl.v1.BatchPredictInputConfigBAL - output_config ( 20.google.cloud.automl.v1.BatchPredictOutputConfigBAG -params ( 27.google.cloud.automl.v1.BatchPredictRequest.ParamsEntry- - ParamsEntry -key (  -value ( :8" -BatchPredictResultJ -metadata ( 28.google.cloud.automl.v1.BatchPredictResult.MetadataEntry/ - MetadataEntry -key (  -value ( :82 -PredictionService -Predict&.google.cloud.automl.v1.PredictRequest\'.google.cloud.automl.v1.PredictResponse"SAname,payload,params7"2/v1/{name=projects/*/locations/*/models/*}:predict:* - BatchPredict+.google.cloud.automl.v1.BatchPredictRequest.google.longrunning.Operation"A\' -BatchPredictResultOperationMetadataA&name,input_config,output_config,params<"7/v1/{name=projects/*/locations/*/models/*}:batchPredict:*IAautoml.googleapis.comA.https://www.googleapis.com/auth/cloud-platformB -com.google.cloud.automl.v1BPredictionServiceProtoPZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Service.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Service.php deleted file mode 100644 index e5cc822384eb..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Service.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Text.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Text.php deleted file mode 100644 index 9099b4c7bb52..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Text.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' - -!google/cloud/automl/v1/text.protogoogle.cloud.automl.v1"l -!TextClassificationDatasetMetadataG -classification_type (2*.google.cloud.automl.v1.ClassificationType"j -TextClassificationModelMetadataG -classification_type (2*.google.cloud.automl.v1.ClassificationType" -TextExtractionDatasetMetadata" -TextExtractionModelMetadata"5 -TextSentimentDatasetMetadata - sentiment_max (" -TextSentimentModelMetadataB -com.google.cloud.automl.v1B TextProtoPZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextExtraction.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextExtraction.php deleted file mode 100644 index 2243852022ff..000000000000 Binary files a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextExtraction.php and /dev/null differ diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextSegment.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextSegment.php deleted file mode 100644 index 751b2c2cfe63..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextSegment.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' - -)google/cloud/automl/v1/text_segment.protogoogle.cloud.automl.v1"H - TextSegment -content (  - start_offset ( - -end_offset (B -com.google.cloud.automl.v1BTextSegmentProtoPZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextSentiment.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextSentiment.php deleted file mode 100644 index 4ca9eee82cee..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/TextSentiment.php +++ /dev/null @@ -1,39 +0,0 @@ -internalAddGeneratedFile( - ' - -+google/cloud/automl/v1/text_sentiment.protogoogle.cloud.automl.v1", -TextSentimentAnnotation - sentiment (" -TextSentimentEvaluationMetrics - precision ( -recall ( -f1_score ( -mean_absolute_error ( -mean_squared_error ( - linear_kappa ( -quadratic_kappa (a -confusion_matrix ( 2G.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrixB -com.google.cloud.automl.v1BTextSentimentProtoPZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Translation.php b/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Translation.php deleted file mode 100644 index abb31035d744..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/GPBMetadata/Google/Cloud/Automl/V1/Translation.php +++ /dev/null @@ -1,43 +0,0 @@ -internalAddGeneratedFile( - ' - -(google/cloud/automl/v1/translation.protogoogle.cloud.automl.v1\'google/cloud/automl/v1/data_items.proto"b -TranslationDatasetMetadata! -source_language_code ( BA! -target_language_code ( BA"K -TranslationEvaluationMetrics - -bleu_score ( -base_bleu_score ("j -TranslationModelMetadata - -base_model (  -source_language_code (  -target_language_code ( "X -TranslationAnnotation? -translated_content ( 2#.google.cloud.automl.v1.TextSnippetB -com.google.cloud.automl.v1BTranslationProtoPZ2cloud.google.com/go/automl/apiv1/automlpb;automlpbGoogle.Cloud.AutoML.V1Google\\Cloud\\AutoMl\\V1Google::Cloud::AutoML::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/AnnotationPayload.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/AnnotationPayload.php deleted file mode 100644 index f21999b9d69d..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/AnnotationPayload.php +++ /dev/null @@ -1,303 +0,0 @@ -google.cloud.automl.v1.AnnotationPayload - */ -class AnnotationPayload extends \Google\Protobuf\Internal\Message -{ - /** - * Output only . The resource ID of the annotation spec that - * this annotation pertains to. The annotation spec comes from either an - * ancestor dataset, or the dataset that was used to train the model in use. - * - * Generated from protobuf field string annotation_spec_id = 1; - */ - protected $annotation_spec_id = ''; - /** - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * when the model was trained. Because this field returns a value at model - * training time, for different models trained using the same dataset, the - * returned value could be different as model owner could update the - * `display_name` between any two model training. - * - * Generated from protobuf field string display_name = 5; - */ - protected $display_name = ''; - protected $detail; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\TranslationAnnotation $translation - * Annotation details for translation. - * @type \Google\Cloud\AutoMl\V1\ClassificationAnnotation $classification - * Annotation details for content or image classification. - * @type \Google\Cloud\AutoMl\V1\ImageObjectDetectionAnnotation $image_object_detection - * Annotation details for image object detection. - * @type \Google\Cloud\AutoMl\V1\TextExtractionAnnotation $text_extraction - * Annotation details for text extraction. - * @type \Google\Cloud\AutoMl\V1\TextSentimentAnnotation $text_sentiment - * Annotation details for text sentiment. - * @type string $annotation_spec_id - * Output only . The resource ID of the annotation spec that - * this annotation pertains to. The annotation spec comes from either an - * ancestor dataset, or the dataset that was used to train the model in use. - * @type string $display_name - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * when the model was trained. Because this field returns a value at model - * training time, for different models trained using the same dataset, the - * returned value could be different as model owner could update the - * `display_name` between any two model training. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\AnnotationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Annotation details for translation. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * @return \Google\Cloud\AutoMl\V1\TranslationAnnotation|null - */ - public function getTranslation() - { - return $this->readOneof(2); - } - - public function hasTranslation() - { - return $this->hasOneof(2); - } - - /** - * Annotation details for translation. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationAnnotation translation = 2; - * @param \Google\Cloud\AutoMl\V1\TranslationAnnotation $var - * @return $this - */ - public function setTranslation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TranslationAnnotation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Annotation details for content or image classification. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * @return \Google\Cloud\AutoMl\V1\ClassificationAnnotation|null - */ - public function getClassification() - { - return $this->readOneof(3); - } - - public function hasClassification() - { - return $this->hasOneof(3); - } - - /** - * Annotation details for content or image classification. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationAnnotation classification = 3; - * @param \Google\Cloud\AutoMl\V1\ClassificationAnnotation $var - * @return $this - */ - public function setClassification($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ClassificationAnnotation::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Annotation details for image object detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * @return \Google\Cloud\AutoMl\V1\ImageObjectDetectionAnnotation|null - */ - public function getImageObjectDetection() - { - return $this->readOneof(4); - } - - public function hasImageObjectDetection() - { - return $this->hasOneof(4); - } - - /** - * Annotation details for image object detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; - * @param \Google\Cloud\AutoMl\V1\ImageObjectDetectionAnnotation $var - * @return $this - */ - public function setImageObjectDetection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageObjectDetectionAnnotation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Annotation details for text extraction. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * @return \Google\Cloud\AutoMl\V1\TextExtractionAnnotation|null - */ - public function getTextExtraction() - { - return $this->readOneof(6); - } - - public function hasTextExtraction() - { - return $this->hasOneof(6); - } - - /** - * Annotation details for text extraction. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; - * @param \Google\Cloud\AutoMl\V1\TextExtractionAnnotation $var - * @return $this - */ - public function setTextExtraction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextExtractionAnnotation::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Annotation details for text sentiment. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * @return \Google\Cloud\AutoMl\V1\TextSentimentAnnotation|null - */ - public function getTextSentiment() - { - return $this->readOneof(7); - } - - public function hasTextSentiment() - { - return $this->hasOneof(7); - } - - /** - * Annotation details for text sentiment. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; - * @param \Google\Cloud\AutoMl\V1\TextSentimentAnnotation $var - * @return $this - */ - public function setTextSentiment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSentimentAnnotation::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Output only . The resource ID of the annotation spec that - * this annotation pertains to. The annotation spec comes from either an - * ancestor dataset, or the dataset that was used to train the model in use. - * - * Generated from protobuf field string annotation_spec_id = 1; - * @return string - */ - public function getAnnotationSpecId() - { - return $this->annotation_spec_id; - } - - /** - * Output only . The resource ID of the annotation spec that - * this annotation pertains to. The annotation spec comes from either an - * ancestor dataset, or the dataset that was used to train the model in use. - * - * Generated from protobuf field string annotation_spec_id = 1; - * @param string $var - * @return $this - */ - public function setAnnotationSpecId($var) - { - GPBUtil::checkString($var, True); - $this->annotation_spec_id = $var; - - return $this; - } - - /** - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * when the model was trained. Because this field returns a value at model - * training time, for different models trained using the same dataset, the - * returned value could be different as model owner could update the - * `display_name` between any two model training. - * - * Generated from protobuf field string display_name = 5; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * when the model was trained. Because this field returns a value at model - * training time, for different models trained using the same dataset, the - * returned value could be different as model owner could update the - * `display_name` between any two model training. - * - * Generated from protobuf field string display_name = 5; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * @return string - */ - public function getDetail() - { - return $this->whichOneof("detail"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/AnnotationSpec.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/AnnotationSpec.php deleted file mode 100644 index 3bfaaba11c7b..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/AnnotationSpec.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.automl.v1.AnnotationSpec - */ -class AnnotationSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the annotation spec. - * Form: - * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}' - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The name of the annotation spec to show in the interface. The name can be - * up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Output only. The number of examples in the parent dataset - * labeled by the annotation spec. - * - * Generated from protobuf field int32 example_count = 9; - */ - protected $example_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the annotation spec. - * Form: - * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}' - * @type string $display_name - * Required. The name of the annotation spec to show in the interface. The name can be - * up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`. - * @type int $example_count - * Output only. The number of examples in the parent dataset - * labeled by the annotation spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\AnnotationSpec::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the annotation spec. - * Form: - * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}' - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the annotation spec. - * Form: - * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}' - * - * 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; - } - - /** - * Required. The name of the annotation spec to show in the interface. The name can be - * up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The name of the annotation spec to show in the interface. The name can be - * up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`. - * - * 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; - } - - /** - * Output only. The number of examples in the parent dataset - * labeled by the annotation spec. - * - * Generated from protobuf field int32 example_count = 9; - * @return int - */ - public function getExampleCount() - { - return $this->example_count; - } - - /** - * Output only. The number of examples in the parent dataset - * labeled by the annotation spec. - * - * Generated from protobuf field int32 example_count = 9; - * @param int $var - * @return $this - */ - public function setExampleCount($var) - { - GPBUtil::checkInt32($var); - $this->example_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictInputConfig.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictInputConfig.php deleted file mode 100644 index 7c057b1eef47..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictInputConfig.php +++ /dev/null @@ -1,280 +0,0 @@ -AutoML Vision - *

Classification
- * One or more CSV files where each line is a single column: - * GCS_FILE_PATH - * The Google Cloud Storage location of an image of up to - * 30MB in size. Supported extensions: .JPEG, .GIF, .PNG. - * This path is treated as the ID in the batch predict output. - * Sample rows: - * gs://folder/image1.jpeg - * gs://folder/image2.gif - * gs://folder/image3.png - *
Object Detection
- * One or more CSV files where each line is a single column: - * GCS_FILE_PATH - * The Google Cloud Storage location of an image of up to - * 30MB in size. Supported extensions: .JPEG, .GIF, .PNG. - * This path is treated as the ID in the batch predict output. - * Sample rows: - * gs://folder/image1.jpeg - * gs://folder/image2.gif - * gs://folder/image3.png - *
- *
- *

AutoML Video Intelligence

- *
Classification
- * One or more CSV files where each line is a single column: - * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END - * `GCS_FILE_PATH` is the Google Cloud Storage location of video up to 50GB in - * size and up to 3h in duration duration. - * Supported extensions: .MOV, .MPEG4, .MP4, .AVI. - * `TIME_SEGMENT_START` and `TIME_SEGMENT_END` must be within the - * length of the video, and the end time must be after the start time. - * Sample rows: - * gs://folder/video1.mp4,10,40 - * gs://folder/video1.mp4,20,60 - * gs://folder/vid2.mov,0,inf - *
Object Tracking
- * One or more CSV files where each line is a single column: - * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END - * `GCS_FILE_PATH` is the Google Cloud Storage location of video up to 50GB in - * size and up to 3h in duration duration. - * Supported extensions: .MOV, .MPEG4, .MP4, .AVI. - * `TIME_SEGMENT_START` and `TIME_SEGMENT_END` must be within the - * length of the video, and the end time must be after the start time. - * Sample rows: - * gs://folder/video1.mp4,10,40 - * gs://folder/video1.mp4,20,60 - * gs://folder/vid2.mov,0,inf - *
- *
- *

AutoML Natural Language

- *
Classification
- * One or more CSV files where each line is a single column: - * GCS_FILE_PATH - * `GCS_FILE_PATH` is the Google Cloud Storage location of a text file. - * Supported file extensions: .TXT, .PDF, .TIF, .TIFF - * Text files can be no larger than 10MB in size. - * Sample rows: - * gs://folder/text1.txt - * gs://folder/text2.pdf - * gs://folder/text3.tif - *
Sentiment Analysis
- * One or more CSV files where each line is a single column: - * GCS_FILE_PATH - * `GCS_FILE_PATH` is the Google Cloud Storage location of a text file. - * Supported file extensions: .TXT, .PDF, .TIF, .TIFF - * Text files can be no larger than 128kB in size. - * Sample rows: - * gs://folder/text1.txt - * gs://folder/text2.pdf - * gs://folder/text3.tif - *
Entity Extraction
- * One or more JSONL (JSON Lines) files that either provide inline text or - * documents. You can only use one format, either inline text or documents, - * for a single call to [AutoMl.BatchPredict]. - * Each JSONL file contains a per line a proto that - * wraps a temporary user-assigned TextSnippet ID (string up to 2000 - * characters long) called "id", a TextSnippet proto (in - * JSON representation) and zero or more TextFeature protos. Any given - * text snippet content must have 30,000 characters or less, and also - * be UTF-8 NFC encoded (ASCII already is). The IDs provided should be - * unique. - * Each document JSONL file contains, per line, a proto that wraps a Document - * proto with `input_config` set. Each document cannot exceed 2MB in size. - * Supported document extensions: .PDF, .TIF, .TIFF - * Each JSONL file must not exceed 100MB in size, and no more than 20 - * JSONL files may be passed. - * Sample inline JSONL file (Shown with artificial line - * breaks. Actual line breaks are denoted by "\n".): - * { - * "id": "my_first_id", - * "text_snippet": { "content": "dog car cat"}, - * "text_features": [ - * { - * "text_segment": {"start_offset": 4, "end_offset": 6}, - * "structural_type": PARAGRAPH, - * "bounding_poly": { - * "normalized_vertices": [ - * {"x": 0.1, "y": 0.1}, - * {"x": 0.1, "y": 0.3}, - * {"x": 0.3, "y": 0.3}, - * {"x": 0.3, "y": 0.1}, - * ] - * }, - * } - * ], - * }\n - * { - * "id": "2", - * "text_snippet": { - * "content": "Extended sample content", - * "mime_type": "text/plain" - * } - * } - * Sample document JSONL file (Shown with artificial line - * breaks. Actual line breaks are denoted by "\n".): - * { - * "document": { - * "input_config": { - * "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ] - * } - * } - * } - * }\n - * { - * "document": { - * "input_config": { - * "gcs_source": { "input_uris": [ "gs://folder/document2.tif" ] - * } - * } - * } - * } - *
- *
- *

AutoML Tables

- * See [Preparing your training - * data](https://cloud.google.com/automl-tables/docs/predict-batch) for more - * information. - * You can use either - * [gcs_source][google.cloud.automl.v1.BatchPredictInputConfig.gcs_source] - * or - * [bigquery_source][BatchPredictInputConfig.bigquery_source]. - * **For gcs_source:** - * CSV file(s), each by itself 10GB or smaller and total size must be - * 100GB or smaller, where first file must have a header containing - * column names. If the first row of a subsequent file is the same as - * the header, then it is also treated as a header. All other rows - * contain values for the corresponding columns. - * The column names must contain the model's - * [input_feature_column_specs'][google.cloud.automl.v1.TablesModelMetadata.input_feature_column_specs] - * [display_name-s][google.cloud.automl.v1.ColumnSpec.display_name] - * (order doesn't matter). The columns corresponding to the model's - * input feature column specs must contain values compatible with the - * column spec's data types. Prediction on all the rows, i.e. the CSV - * lines, will be attempted. - * Sample rows from a CSV file: - *
- * "First Name","Last Name","Dob","Addresses"
- * "John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
- * "Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
- * 
- * **For bigquery_source:** - * The URI of a BigQuery table. The user data size of the BigQuery - * table must be 100GB or smaller. - * The column names must contain the model's - * [input_feature_column_specs'][google.cloud.automl.v1.TablesModelMetadata.input_feature_column_specs] - * [display_name-s][google.cloud.automl.v1.ColumnSpec.display_name] - * (order doesn't matter). The columns corresponding to the model's - * input feature column specs must contain values compatible with the - * column spec's data types. Prediction on all the rows of the table - * will be attempted. - *
- *
- * **Input field definitions:** - * `GCS_FILE_PATH` - * : The path to a file on Google Cloud Storage. For example, - * "gs://folder/video.avi". - * `TIME_SEGMENT_START` - * : (`TIME_OFFSET`) - * Expresses a beginning, inclusive, of a time segment - * within an example that has a time dimension - * (e.g. video). - * `TIME_SEGMENT_END` - * : (`TIME_OFFSET`) - * Expresses an end, exclusive, of a time segment within - * n example that has a time dimension (e.g. video). - * `TIME_OFFSET` - * : A number of seconds as measured from the start of an - * example (e.g. video). Fractions are allowed, up to a - * microsecond precision. "inf" is allowed, and it means the end - * of the example. - * **Errors:** - * If any of the provided CSV files can't be parsed or if more than certain - * percent of CSV rows cannot be processed then the operation fails and - * prediction does not happen. Regardless of overall success or failure the - * per-row failures, up to a certain count cap, will be listed in - * Operation.metadata.partial_failures. - * - * Generated from protobuf message google.cloud.automl.v1.BatchPredictInputConfig - */ -class BatchPredictInputConfig extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\GcsSource $gcs_source - * Required. The Google Cloud Storage location for the input content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Google Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(1); - } - - public function hasGcsSource() - { - return $this->hasOneof(1); - } - - /** - * Required. The Google Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsSource gcs_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\GcsSource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOperationMetadata.php deleted file mode 100644 index e4da433620a5..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOperationMetadata.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.automl.v1.BatchPredictOperationMetadata - */ -class BatchPredictOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The input config that was given upon starting this - * batch predict operation. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - */ - protected $input_config = null; - /** - * Output only. Information further describing this batch predict's output. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - */ - protected $output_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\BatchPredictInputConfig $input_config - * Output only. The input config that was given upon starting this - * batch predict operation. - * @type \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata\BatchPredictOutputInfo $output_info - * Output only. Information further describing this batch predict's output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The input config that was given upon starting this - * batch predict operation. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - * @return \Google\Cloud\AutoMl\V1\BatchPredictInputConfig|null - */ - public function getInputConfig() - { - return $this->input_config; - } - - public function hasInputConfig() - { - return isset($this->input_config); - } - - public function clearInputConfig() - { - unset($this->input_config); - } - - /** - * Output only. The input config that was given upon starting this - * batch predict operation. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictInputConfig input_config = 1; - * @param \Google\Cloud\AutoMl\V1\BatchPredictInputConfig $var - * @return $this - */ - public function setInputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\BatchPredictInputConfig::class); - $this->input_config = $var; - - return $this; - } - - /** - * Output only. Information further describing this batch predict's output. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * @return \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata\BatchPredictOutputInfo|null - */ - public function getOutputInfo() - { - return $this->output_info; - } - - public function hasOutputInfo() - { - return isset($this->output_info); - } - - public function clearOutputInfo() - { - unset($this->output_info); - } - - /** - * Output only. Information further describing this batch predict's output. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; - * @param \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata\BatchPredictOutputInfo $var - * @return $this - */ - public function setOutputInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata\BatchPredictOutputInfo::class); - $this->output_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOperationMetadata/BatchPredictOutputInfo.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOperationMetadata/BatchPredictOutputInfo.php deleted file mode 100644 index 602511a659d7..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOperationMetadata/BatchPredictOutputInfo.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.automl.v1.BatchPredictOperationMetadata.BatchPredictOutputInfo - */ -class BatchPredictOutputInfo extends \Google\Protobuf\Internal\Message -{ - protected $output_location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_output_directory - * The full path of the Google Cloud Storage directory created, into which - * the prediction output is written. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - - /** - * The full path of the Google Cloud Storage directory created, into which - * the prediction output is written. - * - * Generated from protobuf field string gcs_output_directory = 1; - * @return string - */ - public function getGcsOutputDirectory() - { - return $this->readOneof(1); - } - - public function hasGcsOutputDirectory() - { - return $this->hasOneof(1); - } - - /** - * The full path of the Google Cloud Storage directory created, into which - * the prediction output is written. - * - * Generated from protobuf field string gcs_output_directory = 1; - * @param string $var - * @return $this - */ - public function setGcsOutputDirectory($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOutputLocation() - { - return $this->whichOneof("output_location"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BatchPredictOutputInfo::class, \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata_BatchPredictOutputInfo::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOutputConfig.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOutputConfig.php deleted file mode 100644 index 39442dae7cba..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictOutputConfig.php +++ /dev/null @@ -1,311 +0,0 @@ --", - * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. The contents - * of it depends on the ML problem the predictions are made for. - * * For Image Classification: - * In the created directory files `image_classification_1.jsonl`, - * `image_classification_2.jsonl`,...,`image_classification_N.jsonl` - * will be created, where N may be 1, and depends on the - * total number of the successfully predicted images and annotations. - * A single image will be listed only once with all its annotations, - * and its annotations will never be split across files. - * Each .JSONL file will contain, per line, a JSON representation of a - * proto that wraps image's "ID" : "" followed by a list of - * zero or more AnnotationPayload protos (called annotations), which - * have classification detail populated. - * If prediction for any image failed (partially or completely), then an - * additional `errors_1.jsonl`, `errors_2.jsonl`,..., `errors_N.jsonl` - * files will be created (N depends on total number of failed - * predictions). These files will have a JSON representation of a proto - * that wraps the same "ID" : "" but here followed by - * exactly one - * [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) - * containing only `code` and `message`fields. - * * For Image Object Detection: - * In the created directory files `image_object_detection_1.jsonl`, - * `image_object_detection_2.jsonl`,...,`image_object_detection_N.jsonl` - * will be created, where N may be 1, and depends on the - * total number of the successfully predicted images and annotations. - * Each .JSONL file will contain, per line, a JSON representation of a - * proto that wraps image's "ID" : "" followed by a list of - * zero or more AnnotationPayload protos (called annotations), which - * have image_object_detection detail populated. A single image will - * be listed only once with all its annotations, and its annotations - * will never be split across files. - * If prediction for any image failed (partially or completely), then - * additional `errors_1.jsonl`, `errors_2.jsonl`,..., `errors_N.jsonl` - * files will be created (N depends on total number of failed - * predictions). These files will have a JSON representation of a proto - * that wraps the same "ID" : "" but here followed by - * exactly one - * [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) - * containing only `code` and `message`fields. - * * For Video Classification: - * In the created directory a video_classification.csv file, and a .JSON - * file per each video classification requested in the input (i.e. each - * line in given CSV(s)), will be created. - * The format of video_classification.csv is: - * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS - * where: - * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1 - * the prediction input lines (i.e. video_classification.csv has - * precisely the same number of lines as the prediction input had.) - * JSON_FILE_NAME = Name of .JSON file in the output directory, which - * contains prediction responses for the video time segment. - * STATUS = "OK" if prediction completed successfully, or an error code - * with message otherwise. If STATUS is not "OK" then the .JSON file - * for that line may not exist or be empty. - * Each .JSON file, assuming STATUS is "OK", will contain a list of - * AnnotationPayload protos in JSON format, which are the predictions - * for the video time segment the file is assigned to in the - * video_classification.csv. All AnnotationPayload protos will have - * video_classification field set, and will be sorted by - * video_classification.type field (note that the returned types are - * governed by `classifaction_types` parameter in - * [PredictService.BatchPredictRequest.params][]). - * * For Video Object Tracking: - * In the created directory a video_object_tracking.csv file will be - * created, and multiple files video_object_trackinng_1.json, - * video_object_trackinng_2.json,..., video_object_trackinng_N.json, - * where N is the number of requests in the input (i.e. the number of - * lines in given CSV(s)). - * The format of video_object_tracking.csv is: - * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS - * where: - * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1 - * the prediction input lines (i.e. video_object_tracking.csv has - * precisely the same number of lines as the prediction input had.) - * JSON_FILE_NAME = Name of .JSON file in the output directory, which - * contains prediction responses for the video time segment. - * STATUS = "OK" if prediction completed successfully, or an error - * code with message otherwise. If STATUS is not "OK" then the .JSON - * file for that line may not exist or be empty. - * Each .JSON file, assuming STATUS is "OK", will contain a list of - * AnnotationPayload protos in JSON format, which are the predictions - * for each frame of the video time segment the file is assigned to in - * video_object_tracking.csv. All AnnotationPayload protos will have - * video_object_tracking field set. - * * For Text Classification: - * In the created directory files `text_classification_1.jsonl`, - * `text_classification_2.jsonl`,...,`text_classification_N.jsonl` - * will be created, where N may be 1, and depends on the - * total number of inputs and annotations found. - * Each .JSONL file will contain, per line, a JSON representation of a - * proto that wraps input text file (or document) in - * the text snippet (or document) proto and a list of - * zero or more AnnotationPayload protos (called annotations), which - * have classification detail populated. A single text file (or - * document) will be listed only once with all its annotations, and its - * annotations will never be split across files. - * If prediction for any input file (or document) failed (partially or - * completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,..., - * `errors_N.jsonl` files will be created (N depends on total number of - * failed predictions). These files will have a JSON representation of a - * proto that wraps input file followed by exactly one - * [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) - * containing only `code` and `message`. - * * For Text Sentiment: - * In the created directory files `text_sentiment_1.jsonl`, - * `text_sentiment_2.jsonl`,...,`text_sentiment_N.jsonl` - * will be created, where N may be 1, and depends on the - * total number of inputs and annotations found. - * Each .JSONL file will contain, per line, a JSON representation of a - * proto that wraps input text file (or document) in - * the text snippet (or document) proto and a list of - * zero or more AnnotationPayload protos (called annotations), which - * have text_sentiment detail populated. A single text file (or - * document) will be listed only once with all its annotations, and its - * annotations will never be split across files. - * If prediction for any input file (or document) failed (partially or - * completely), then additional `errors_1.jsonl`, `errors_2.jsonl`,..., - * `errors_N.jsonl` files will be created (N depends on total number of - * failed predictions). These files will have a JSON representation of a - * proto that wraps input file followed by exactly one - * [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) - * containing only `code` and `message`. - * * For Text Extraction: - * In the created directory files `text_extraction_1.jsonl`, - * `text_extraction_2.jsonl`,...,`text_extraction_N.jsonl` - * will be created, where N may be 1, and depends on the - * total number of inputs and annotations found. - * The contents of these .JSONL file(s) depend on whether the input - * used inline text, or documents. - * If input was inline, then each .JSONL file will contain, per line, - * a JSON representation of a proto that wraps given in request text - * snippet's "id" (if specified), followed by input text snippet, - * and a list of zero or more - * AnnotationPayload protos (called annotations), which have - * text_extraction detail populated. A single text snippet will be - * listed only once with all its annotations, and its annotations will - * never be split across files. - * If input used documents, then each .JSONL file will contain, per - * line, a JSON representation of a proto that wraps given in request - * document proto, followed by its OCR-ed representation in the form - * of a text snippet, finally followed by a list of zero or more - * AnnotationPayload protos (called annotations), which have - * text_extraction detail populated and refer, via their indices, to - * the OCR-ed text snippet. A single document (and its text snippet) - * will be listed only once with all its annotations, and its - * annotations will never be split across files. - * If prediction for any text snippet failed (partially or completely), - * then additional `errors_1.jsonl`, `errors_2.jsonl`,..., - * `errors_N.jsonl` files will be created (N depends on total number of - * failed predictions). These files will have a JSON representation of a - * proto that wraps either the "id" : "" (in case of inline) - * or the document proto (in case of document) but here followed by - * exactly one - * [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) - * containing only `code` and `message`. - * * For Tables: - * Output depends on whether - * [gcs_destination][google.cloud.automl.v1p1beta.BatchPredictOutputConfig.gcs_destination] - * or - * [bigquery_destination][google.cloud.automl.v1p1beta.BatchPredictOutputConfig.bigquery_destination] - * is set (either is allowed). - * Google Cloud Storage case: - * In the created directory files `tables_1.csv`, `tables_2.csv`,..., - * `tables_N.csv` will be created, where N may be 1, and depends on - * the total number of the successfully predicted rows. - * For all CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]: - * Each .csv file will contain a header, listing all columns' - * [display_name-s][google.cloud.automl.v1p1beta.ColumnSpec.display_name] - * given on input followed by M target column names in the format of - * "<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec] - * [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>__score" where M is the number of distinct target values, - * i.e. number of distinct values in the target column of the table - * used to train the model. Subsequent lines will contain the - * respective values of successfully predicted rows, with the last, - * i.e. the target, columns having the corresponding prediction - * [scores][google.cloud.automl.v1p1beta.TablesAnnotation.score]. - * For REGRESSION and FORECASTING - * [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]: - * Each .csv file will contain a header, listing all columns' - * [display_name-s][google.cloud.automl.v1p1beta.display_name] - * given on input followed by the predicted target column with name - * in the format of - * "predicted_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec] - * [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>" - * Subsequent lines will contain the respective values of - * successfully predicted rows, with the last, i.e. the target, - * column having the predicted target value. - * If prediction for any rows failed, then an additional - * `errors_1.csv`, `errors_2.csv`,..., `errors_N.csv` will be - * created (N depends on total number of failed rows). These files - * will have analogous format as `tables_*.csv`, but always with a - * single target column having - * [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) - * represented as a JSON string, and containing only `code` and - * `message`. - * BigQuery case: - * [bigquery_destination][google.cloud.automl.v1p1beta.OutputConfig.bigquery_destination] - * pointing to a BigQuery project must be set. In the given project a - * new dataset will be created with name - * `prediction__` - * where will be made - * BigQuery-dataset-name compatible (e.g. most special characters will - * become underscores), and timestamp will be in - * YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset - * two tables will be created, `predictions`, and `errors`. - * The `predictions` table's column names will be the input columns' - * [display_name-s][google.cloud.automl.v1p1beta.ColumnSpec.display_name] - * followed by the target column with name in the format of - * "predicted_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec] - * [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>" - * The input feature columns will contain the respective values of - * successfully predicted rows, with the target column having an - * ARRAY of - * [AnnotationPayloads][google.cloud.automl.v1p1beta.AnnotationPayload], - * represented as STRUCT-s, containing - * [TablesAnnotation][google.cloud.automl.v1p1beta.TablesAnnotation]. - * The `errors` table contains rows for which the prediction has - * failed, it has analogous input columns while the target column name - * is in the format of - * "errors_<[target_column_specs][google.cloud.automl.v1p1beta.TablesModelMetadata.target_column_spec] - * [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>", - * and as a value has - * [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) - * represented as a STRUCT, and containing only `code` and `message`. - * - * Generated from protobuf message google.cloud.automl.v1.BatchPredictOutputConfig - */ -class BatchPredictOutputConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\GcsDestination $gcs_destination - * Required. The Google Cloud Storage location of the directory where the output is to - * be written to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Google Cloud Storage location of the directory where the output is to - * be written to. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\GcsDestination|null - */ - public function getGcsDestination() - { - return $this->readOneof(1); - } - - public function hasGcsDestination() - { - return $this->hasOneof(1); - } - - /** - * Required. The Google Cloud Storage location of the directory where the output is to - * be written to. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\GcsDestination $var - * @return $this - */ - public function setGcsDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\GcsDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictRequest.php deleted file mode 100644 index 581405bbbb17..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictRequest.php +++ /dev/null @@ -1,553 +0,0 @@ -google.cloud.automl.v1.BatchPredictRequest - */ -class BatchPredictRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the model requested to serve the batch prediction. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The input configuration for batch prediction. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $input_config = null; - /** - * Required. The Configuration specifying where output predictions should - * be written. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_config = null; - /** - * Additional domain-specific parameters for the predictions, any string must - * be up to 25000 characters long. - * AutoML Natural Language Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a text snippet, it will only produce results - * that have at least this confidence score. The default is 0.5. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that - * have at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * AutoML Video Intelligence Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a video, it will only produce results that - * have at least this confidence score. The default is 0.5. - * `segment_classification` - * : (boolean) Set to true to request - * segment-level classification. AutoML Video Intelligence returns - * labels and their confidence scores for the entire segment of the - * video that user specified in the request configuration. - * The default is true. - * `shot_classification` - * : (boolean) Set to true to request shot-level - * classification. AutoML Video Intelligence determines the boundaries - * for each camera shot in the entire segment of the video that user - * specified in the request configuration. AutoML Video Intelligence - * then returns labels and their confidence scores for each detected - * shot, along with the start and end time of the shot. - * The default is false. - * WARNING: Model evaluation is not done for this classification type, - * the quality of it depends on training data, but there are no metrics - * provided to describe that quality. - * `1s_interval_classification` - * : (boolean) Set to true to request - * classification for a video at one-second intervals. AutoML Video - * Intelligence returns labels and their confidence scores for each - * second of the entire segment of the video that user specified in the - * request configuration. The default is false. - * WARNING: Model evaluation is not done for this classification - * type, the quality of it depends on training data, but there are no - * metrics provided to describe that quality. - * AutoML Video Intelligence Object Tracking - * `score_threshold` - * : (float) When Model detects objects on video frames, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * `min_bounding_box_size` - * : (float) Only bounding boxes with shortest edge - * at least that long as a relative value of video frame size are - * returned. Value in 0 to 1 range. Default is 0. - * - * Generated from protobuf field map params = 5; - */ - private $params; - - /** - * @param string $name Required. Name of the model requested to serve the batch prediction. Please see - * {@see PredictionServiceClient::modelName()} for help formatting this field. - * @param \Google\Cloud\AutoMl\V1\BatchPredictInputConfig $inputConfig Required. The input configuration for batch prediction. - * @param \Google\Cloud\AutoMl\V1\BatchPredictOutputConfig $outputConfig Required. The Configuration specifying where output predictions should - * be written. - * @param array $params Additional domain-specific parameters for the predictions, any string must - * be up to 25000 characters long. - * - * AutoML Natural Language Classification - * - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a text snippet, it will only produce results - * that have at least this confidence score. The default is 0.5. - * - * - * AutoML Vision Classification - * - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that - * have at least this confidence score. The default is 0.5. - * - * AutoML Vision Object Detection - * - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * AutoML Video Intelligence Classification - * - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a video, it will only produce results that - * have at least this confidence score. The default is 0.5. - * - * `segment_classification` - * : (boolean) Set to true to request - * segment-level classification. AutoML Video Intelligence returns - * labels and their confidence scores for the entire segment of the - * video that user specified in the request configuration. - * The default is true. - * - * `shot_classification` - * : (boolean) Set to true to request shot-level - * classification. AutoML Video Intelligence determines the boundaries - * for each camera shot in the entire segment of the video that user - * specified in the request configuration. AutoML Video Intelligence - * then returns labels and their confidence scores for each detected - * shot, along with the start and end time of the shot. - * The default is false. - * - * WARNING: Model evaluation is not done for this classification type, - * the quality of it depends on training data, but there are no metrics - * provided to describe that quality. - * - * `1s_interval_classification` - * : (boolean) Set to true to request - * classification for a video at one-second intervals. AutoML Video - * Intelligence returns labels and their confidence scores for each - * second of the entire segment of the video that user specified in the - * request configuration. The default is false. - * - * WARNING: Model evaluation is not done for this classification - * type, the quality of it depends on training data, but there are no - * metrics provided to describe that quality. - * - * AutoML Video Intelligence Object Tracking - * - * `score_threshold` - * : (float) When Model detects objects on video frames, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * - * `min_bounding_box_size` - * : (float) Only bounding boxes with shortest edge - * at least that long as a relative value of video frame size are - * returned. Value in 0 to 1 range. Default is 0. - * - * - * @return \Google\Cloud\AutoMl\V1\BatchPredictRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\AutoMl\V1\BatchPredictInputConfig $inputConfig, \Google\Cloud\AutoMl\V1\BatchPredictOutputConfig $outputConfig, array $params): self - { - return (new self()) - ->setName($name) - ->setInputConfig($inputConfig) - ->setOutputConfig($outputConfig) - ->setParams($params); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the model requested to serve the batch prediction. - * @type \Google\Cloud\AutoMl\V1\BatchPredictInputConfig $input_config - * Required. The input configuration for batch prediction. - * @type \Google\Cloud\AutoMl\V1\BatchPredictOutputConfig $output_config - * Required. The Configuration specifying where output predictions should - * be written. - * @type array|\Google\Protobuf\Internal\MapField $params - * Additional domain-specific parameters for the predictions, any string must - * be up to 25000 characters long. - * AutoML Natural Language Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a text snippet, it will only produce results - * that have at least this confidence score. The default is 0.5. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that - * have at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * AutoML Video Intelligence Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a video, it will only produce results that - * have at least this confidence score. The default is 0.5. - * `segment_classification` - * : (boolean) Set to true to request - * segment-level classification. AutoML Video Intelligence returns - * labels and their confidence scores for the entire segment of the - * video that user specified in the request configuration. - * The default is true. - * `shot_classification` - * : (boolean) Set to true to request shot-level - * classification. AutoML Video Intelligence determines the boundaries - * for each camera shot in the entire segment of the video that user - * specified in the request configuration. AutoML Video Intelligence - * then returns labels and their confidence scores for each detected - * shot, along with the start and end time of the shot. - * The default is false. - * WARNING: Model evaluation is not done for this classification type, - * the quality of it depends on training data, but there are no metrics - * provided to describe that quality. - * `1s_interval_classification` - * : (boolean) Set to true to request - * classification for a video at one-second intervals. AutoML Video - * Intelligence returns labels and their confidence scores for each - * second of the entire segment of the video that user specified in the - * request configuration. The default is false. - * WARNING: Model evaluation is not done for this classification - * type, the quality of it depends on training data, but there are no - * metrics provided to describe that quality. - * AutoML Video Intelligence Object Tracking - * `score_threshold` - * : (float) When Model detects objects on video frames, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * `min_bounding_box_size` - * : (float) Only bounding boxes with shortest edge - * at least that long as a relative value of video frame size are - * returned. Value in 0 to 1 range. Default is 0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\PredictionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the model requested to serve the batch prediction. - * - * 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. Name of the model requested to serve the batch prediction. - * - * 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; - } - - /** - * Required. The input configuration for batch prediction. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\BatchPredictInputConfig|null - */ - public function getInputConfig() - { - return $this->input_config; - } - - public function hasInputConfig() - { - return isset($this->input_config); - } - - public function clearInputConfig() - { - unset($this->input_config); - } - - /** - * Required. The input configuration for batch prediction. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictInputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\BatchPredictInputConfig $var - * @return $this - */ - public function setInputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\BatchPredictInputConfig::class); - $this->input_config = $var; - - return $this; - } - - /** - * Required. The Configuration specifying where output predictions should - * be written. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\BatchPredictOutputConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Required. The Configuration specifying where output predictions should - * be written. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\BatchPredictOutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\BatchPredictOutputConfig::class); - $this->output_config = $var; - - return $this; - } - - /** - * Additional domain-specific parameters for the predictions, any string must - * be up to 25000 characters long. - * AutoML Natural Language Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a text snippet, it will only produce results - * that have at least this confidence score. The default is 0.5. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that - * have at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * AutoML Video Intelligence Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a video, it will only produce results that - * have at least this confidence score. The default is 0.5. - * `segment_classification` - * : (boolean) Set to true to request - * segment-level classification. AutoML Video Intelligence returns - * labels and their confidence scores for the entire segment of the - * video that user specified in the request configuration. - * The default is true. - * `shot_classification` - * : (boolean) Set to true to request shot-level - * classification. AutoML Video Intelligence determines the boundaries - * for each camera shot in the entire segment of the video that user - * specified in the request configuration. AutoML Video Intelligence - * then returns labels and their confidence scores for each detected - * shot, along with the start and end time of the shot. - * The default is false. - * WARNING: Model evaluation is not done for this classification type, - * the quality of it depends on training data, but there are no metrics - * provided to describe that quality. - * `1s_interval_classification` - * : (boolean) Set to true to request - * classification for a video at one-second intervals. AutoML Video - * Intelligence returns labels and their confidence scores for each - * second of the entire segment of the video that user specified in the - * request configuration. The default is false. - * WARNING: Model evaluation is not done for this classification - * type, the quality of it depends on training data, but there are no - * metrics provided to describe that quality. - * AutoML Video Intelligence Object Tracking - * `score_threshold` - * : (float) When Model detects objects on video frames, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * `min_bounding_box_size` - * : (float) Only bounding boxes with shortest edge - * at least that long as a relative value of video frame size are - * returned. Value in 0 to 1 range. Default is 0. - * - * Generated from protobuf field map params = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParams() - { - return $this->params; - } - - /** - * Additional domain-specific parameters for the predictions, any string must - * be up to 25000 characters long. - * AutoML Natural Language Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a text snippet, it will only produce results - * that have at least this confidence score. The default is 0.5. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that - * have at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * AutoML Video Intelligence Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for a video, it will only produce results that - * have at least this confidence score. The default is 0.5. - * `segment_classification` - * : (boolean) Set to true to request - * segment-level classification. AutoML Video Intelligence returns - * labels and their confidence scores for the entire segment of the - * video that user specified in the request configuration. - * The default is true. - * `shot_classification` - * : (boolean) Set to true to request shot-level - * classification. AutoML Video Intelligence determines the boundaries - * for each camera shot in the entire segment of the video that user - * specified in the request configuration. AutoML Video Intelligence - * then returns labels and their confidence scores for each detected - * shot, along with the start and end time of the shot. - * The default is false. - * WARNING: Model evaluation is not done for this classification type, - * the quality of it depends on training data, but there are no metrics - * provided to describe that quality. - * `1s_interval_classification` - * : (boolean) Set to true to request - * classification for a video at one-second intervals. AutoML Video - * Intelligence returns labels and their confidence scores for each - * second of the entire segment of the video that user specified in the - * request configuration. The default is false. - * WARNING: Model evaluation is not done for this classification - * type, the quality of it depends on training data, but there are no - * metrics provided to describe that quality. - * AutoML Video Intelligence Object Tracking - * `score_threshold` - * : (float) When Model detects objects on video frames, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned per image. The default is 100, the - * number of bounding boxes returned might be limited by the server. - * `min_bounding_box_size` - * : (float) Only bounding boxes with shortest edge - * at least that long as a relative value of video frame size are - * returned. Value in 0 to 1 range. Default is 0. - * - * Generated from protobuf field map params = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParams($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->params = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictResult.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictResult.php deleted file mode 100644 index cba80eebfee9..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BatchPredictResult.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.automl.v1.BatchPredictResult - */ -class BatchPredictResult extends \Google\Protobuf\Internal\Message -{ - /** - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per image. - * AutoML Video Intelligence Object Tracking - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per frame. - * - * Generated from protobuf field map metadata = 1; - */ - private $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per image. - * AutoML Video Intelligence Object Tracking - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per frame. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\PredictionService::initOnce(); - parent::__construct($data); - } - - /** - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per image. - * AutoML Video Intelligence Object Tracking - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per frame. - * - * Generated from protobuf field map metadata = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per image. - * AutoML Video Intelligence Object Tracking - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes returned per frame. - * - * Generated from protobuf field map metadata = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingBoxMetricsEntry.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingBoxMetricsEntry.php deleted file mode 100644 index 375e95b8e033..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingBoxMetricsEntry.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.automl.v1.BoundingBoxMetricsEntry - */ -class BoundingBoxMetricsEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The intersection-over-union threshold value used to compute - * this metrics entry. - * - * Generated from protobuf field float iou_threshold = 1; - */ - protected $iou_threshold = 0.0; - /** - * Output only. The mean average precision, most often close to au_prc. - * - * Generated from protobuf field float mean_average_precision = 2; - */ - protected $mean_average_precision = 0.0; - /** - * Output only. Metrics for each label-match confidence_threshold from - * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is - * derived from them. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - */ - private $confidence_metrics_entries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $iou_threshold - * Output only. The intersection-over-union threshold value used to compute - * this metrics entry. - * @type float $mean_average_precision - * Output only. The mean average precision, most often close to au_prc. - * @type array<\Google\Cloud\AutoMl\V1\BoundingBoxMetricsEntry\ConfidenceMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $confidence_metrics_entries - * Output only. Metrics for each label-match confidence_threshold from - * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is - * derived from them. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Detection::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The intersection-over-union threshold value used to compute - * this metrics entry. - * - * Generated from protobuf field float iou_threshold = 1; - * @return float - */ - public function getIouThreshold() - { - return $this->iou_threshold; - } - - /** - * Output only. The intersection-over-union threshold value used to compute - * this metrics entry. - * - * Generated from protobuf field float iou_threshold = 1; - * @param float $var - * @return $this - */ - public function setIouThreshold($var) - { - GPBUtil::checkFloat($var); - $this->iou_threshold = $var; - - return $this; - } - - /** - * Output only. The mean average precision, most often close to au_prc. - * - * Generated from protobuf field float mean_average_precision = 2; - * @return float - */ - public function getMeanAveragePrecision() - { - return $this->mean_average_precision; - } - - /** - * Output only. The mean average precision, most often close to au_prc. - * - * Generated from protobuf field float mean_average_precision = 2; - * @param float $var - * @return $this - */ - public function setMeanAveragePrecision($var) - { - GPBUtil::checkFloat($var); - $this->mean_average_precision = $var; - - return $this; - } - - /** - * Output only. Metrics for each label-match confidence_threshold from - * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is - * derived from them. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConfidenceMetricsEntries() - { - return $this->confidence_metrics_entries; - } - - /** - * Output only. Metrics for each label-match confidence_threshold from - * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is - * derived from them. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * @param array<\Google\Cloud\AutoMl\V1\BoundingBoxMetricsEntry\ConfidenceMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConfidenceMetricsEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\BoundingBoxMetricsEntry\ConfidenceMetricsEntry::class); - $this->confidence_metrics_entries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingBoxMetricsEntry/ConfidenceMetricsEntry.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingBoxMetricsEntry/ConfidenceMetricsEntry.php deleted file mode 100644 index 7b96c02b4d5a..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingBoxMetricsEntry/ConfidenceMetricsEntry.php +++ /dev/null @@ -1,172 +0,0 @@ -google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry - */ -class ConfidenceMetricsEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The confidence threshold value used to compute the metrics. - * - * Generated from protobuf field float confidence_threshold = 1; - */ - protected $confidence_threshold = 0.0; - /** - * Output only. Recall under the given confidence threshold. - * - * Generated from protobuf field float recall = 2; - */ - protected $recall = 0.0; - /** - * Output only. Precision under the given confidence threshold. - * - * Generated from protobuf field float precision = 3; - */ - protected $precision = 0.0; - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 4; - */ - protected $f1_score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $confidence_threshold - * Output only. The confidence threshold value used to compute the metrics. - * @type float $recall - * Output only. Recall under the given confidence threshold. - * @type float $precision - * Output only. Precision under the given confidence threshold. - * @type float $f1_score - * Output only. The harmonic mean of recall and precision. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Detection::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The confidence threshold value used to compute the metrics. - * - * Generated from protobuf field float confidence_threshold = 1; - * @return float - */ - public function getConfidenceThreshold() - { - return $this->confidence_threshold; - } - - /** - * Output only. The confidence threshold value used to compute the metrics. - * - * Generated from protobuf field float confidence_threshold = 1; - * @param float $var - * @return $this - */ - public function setConfidenceThreshold($var) - { - GPBUtil::checkFloat($var); - $this->confidence_threshold = $var; - - return $this; - } - - /** - * Output only. Recall under the given confidence threshold. - * - * Generated from protobuf field float recall = 2; - * @return float - */ - public function getRecall() - { - return $this->recall; - } - - /** - * Output only. Recall under the given confidence threshold. - * - * Generated from protobuf field float recall = 2; - * @param float $var - * @return $this - */ - public function setRecall($var) - { - GPBUtil::checkFloat($var); - $this->recall = $var; - - return $this; - } - - /** - * Output only. Precision under the given confidence threshold. - * - * Generated from protobuf field float precision = 3; - * @return float - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * Output only. Precision under the given confidence threshold. - * - * Generated from protobuf field float precision = 3; - * @param float $var - * @return $this - */ - public function setPrecision($var) - { - GPBUtil::checkFloat($var); - $this->precision = $var; - - return $this; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 4; - * @return float - */ - public function getF1Score() - { - return $this->f1_score; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 4; - * @param float $var - * @return $this - */ - public function setF1Score($var) - { - GPBUtil::checkFloat($var); - $this->f1_score = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConfidenceMetricsEntry::class, \Google\Cloud\AutoMl\V1\BoundingBoxMetricsEntry_ConfidenceMetricsEntry::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingPoly.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingPoly.php deleted file mode 100644 index 9155aadb93dd..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/BoundingPoly.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.automl.v1.BoundingPoly - */ -class BoundingPoly extends \Google\Protobuf\Internal\Message -{ - /** - * Output only . The bounding polygon normalized vertices. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; - */ - private $normalized_vertices; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AutoMl\V1\NormalizedVertex>|\Google\Protobuf\Internal\RepeatedField $normalized_vertices - * Output only . The bounding polygon normalized vertices. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Geometry::initOnce(); - parent::__construct($data); - } - - /** - * Output only . The bounding polygon normalized vertices. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNormalizedVertices() - { - return $this->normalized_vertices; - } - - /** - * Output only . The bounding polygon normalized vertices. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.NormalizedVertex normalized_vertices = 2; - * @param array<\Google\Cloud\AutoMl\V1\NormalizedVertex>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNormalizedVertices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\NormalizedVertex::class); - $this->normalized_vertices = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationAnnotation.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationAnnotation.php deleted file mode 100644 index 1a78afa7261b..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationAnnotation.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.automl.v1.ClassificationAnnotation - */ -class ClassificationAnnotation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence that the annotation is positive. If a user - * approves an annotation as negative or positive, the score value remains - * unchanged. If a user creates an annotation, the score is 0 for negative or - * 1 for positive. - * - * Generated from protobuf field float score = 1; - */ - protected $score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $score - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence that the annotation is positive. If a user - * approves an annotation as negative or positive, the score value remains - * unchanged. If a user creates an annotation, the score is 0 for negative or - * 1 for positive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Classification::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence that the annotation is positive. If a user - * approves an annotation as negative or positive, the score value remains - * unchanged. If a user creates an annotation, the score is 0 for negative or - * 1 for positive. - * - * Generated from protobuf field float score = 1; - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence that the annotation is positive. If a user - * approves an annotation as negative or positive, the score value remains - * unchanged. If a user creates an annotation, the score is 0 for negative or - * 1 for positive. - * - * Generated from protobuf field float score = 1; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics.php deleted file mode 100644 index 4391dc5673d6..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics.php +++ /dev/null @@ -1,293 +0,0 @@ -google.cloud.automl.v1.ClassificationEvaluationMetrics - */ -class ClassificationEvaluationMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged - * for the overall evaluation. - * - * Generated from protobuf field float au_prc = 1; - */ - protected $au_prc = 0.0; - /** - * Output only. The Area Under Receiver Operating Characteristic curve metric. - * Micro-averaged for the overall evaluation. - * - * Generated from protobuf field float au_roc = 6; - */ - protected $au_roc = 0.0; - /** - * Output only. The Log Loss metric. - * - * Generated from protobuf field float log_loss = 7; - */ - protected $log_loss = 0.0; - /** - * Output only. Metrics for each confidence_threshold in - * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and - * position_threshold = INT32_MAX_VALUE. - * ROC and precision-recall curves, and other aggregated metrics are derived - * from them. The confidence metrics entries may also be supplied for - * additional values of position_threshold, but from these no aggregated - * metrics are computed. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - */ - private $confidence_metrics_entry; - /** - * Output only. Confusion matrix of the evaluation. - * Only set for MULTICLASS classification problems where number - * of labels is no more than 10. - * Only set for model level evaluation, not for evaluation per label. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - */ - protected $confusion_matrix = null; - /** - * Output only. The annotation spec ids used for this evaluation. - * - * Generated from protobuf field repeated string annotation_spec_id = 5; - */ - private $annotation_spec_id; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $au_prc - * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged - * for the overall evaluation. - * @type float $au_roc - * Output only. The Area Under Receiver Operating Characteristic curve metric. - * Micro-averaged for the overall evaluation. - * @type float $log_loss - * Output only. The Log Loss metric. - * @type array<\Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfidenceMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $confidence_metrics_entry - * Output only. Metrics for each confidence_threshold in - * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and - * position_threshold = INT32_MAX_VALUE. - * ROC and precision-recall curves, and other aggregated metrics are derived - * from them. The confidence metrics entries may also be supplied for - * additional values of position_threshold, but from these no aggregated - * metrics are computed. - * @type \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix $confusion_matrix - * Output only. Confusion matrix of the evaluation. - * Only set for MULTICLASS classification problems where number - * of labels is no more than 10. - * Only set for model level evaluation, not for evaluation per label. - * @type array|\Google\Protobuf\Internal\RepeatedField $annotation_spec_id - * Output only. The annotation spec ids used for this evaluation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Classification::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged - * for the overall evaluation. - * - * Generated from protobuf field float au_prc = 1; - * @return float - */ - public function getAuPrc() - { - return $this->au_prc; - } - - /** - * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged - * for the overall evaluation. - * - * Generated from protobuf field float au_prc = 1; - * @param float $var - * @return $this - */ - public function setAuPrc($var) - { - GPBUtil::checkFloat($var); - $this->au_prc = $var; - - return $this; - } - - /** - * Output only. The Area Under Receiver Operating Characteristic curve metric. - * Micro-averaged for the overall evaluation. - * - * Generated from protobuf field float au_roc = 6; - * @return float - */ - public function getAuRoc() - { - return $this->au_roc; - } - - /** - * Output only. The Area Under Receiver Operating Characteristic curve metric. - * Micro-averaged for the overall evaluation. - * - * Generated from protobuf field float au_roc = 6; - * @param float $var - * @return $this - */ - public function setAuRoc($var) - { - GPBUtil::checkFloat($var); - $this->au_roc = $var; - - return $this; - } - - /** - * Output only. The Log Loss metric. - * - * Generated from protobuf field float log_loss = 7; - * @return float - */ - public function getLogLoss() - { - return $this->log_loss; - } - - /** - * Output only. The Log Loss metric. - * - * Generated from protobuf field float log_loss = 7; - * @param float $var - * @return $this - */ - public function setLogLoss($var) - { - GPBUtil::checkFloat($var); - $this->log_loss = $var; - - return $this; - } - - /** - * Output only. Metrics for each confidence_threshold in - * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and - * position_threshold = INT32_MAX_VALUE. - * ROC and precision-recall curves, and other aggregated metrics are derived - * from them. The confidence metrics entries may also be supplied for - * additional values of position_threshold, but from these no aggregated - * metrics are computed. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConfidenceMetricsEntry() - { - return $this->confidence_metrics_entry; - } - - /** - * Output only. Metrics for each confidence_threshold in - * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and - * position_threshold = INT32_MAX_VALUE. - * ROC and precision-recall curves, and other aggregated metrics are derived - * from them. The confidence metrics entries may also be supplied for - * additional values of position_threshold, but from these no aggregated - * metrics are computed. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * @param array<\Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfidenceMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConfidenceMetricsEntry($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfidenceMetricsEntry::class); - $this->confidence_metrics_entry = $arr; - - return $this; - } - - /** - * Output only. Confusion matrix of the evaluation. - * Only set for MULTICLASS classification problems where number - * of labels is no more than 10. - * Only set for model level evaluation, not for evaluation per label. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * @return \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix|null - */ - public function getConfusionMatrix() - { - return $this->confusion_matrix; - } - - public function hasConfusionMatrix() - { - return isset($this->confusion_matrix); - } - - public function clearConfusionMatrix() - { - unset($this->confusion_matrix); - } - - /** - * Output only. Confusion matrix of the evaluation. - * Only set for MULTICLASS classification problems where number - * of labels is no more than 10. - * Only set for model level evaluation, not for evaluation per label. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; - * @param \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix $var - * @return $this - */ - public function setConfusionMatrix($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix::class); - $this->confusion_matrix = $var; - - return $this; - } - - /** - * Output only. The annotation spec ids used for this evaluation. - * - * Generated from protobuf field repeated string annotation_spec_id = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnnotationSpecId() - { - return $this->annotation_spec_id; - } - - /** - * Output only. The annotation spec ids used for this evaluation. - * - * Generated from protobuf field repeated string annotation_spec_id = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnnotationSpecId($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotation_spec_id = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfidenceMetricsEntry.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfidenceMetricsEntry.php deleted file mode 100644 index edfbb3a2f738..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfidenceMetricsEntry.php +++ /dev/null @@ -1,568 +0,0 @@ -google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry - */ -class ConfidenceMetricsEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Metrics are computed with an assumption that the model - * never returns predictions with score lower than this value. - * - * Generated from protobuf field float confidence_threshold = 1; - */ - protected $confidence_threshold = 0.0; - /** - * Output only. Metrics are computed with an assumption that the model - * always returns at most this many predictions (ordered by their score, - * descendingly), but they all still need to meet the confidence_threshold. - * - * Generated from protobuf field int32 position_threshold = 14; - */ - protected $position_threshold = 0; - /** - * Output only. Recall (True Positive Rate) for the given confidence - * threshold. - * - * Generated from protobuf field float recall = 2; - */ - protected $recall = 0.0; - /** - * Output only. Precision for the given confidence threshold. - * - * Generated from protobuf field float precision = 3; - */ - protected $precision = 0.0; - /** - * Output only. False Positive Rate for the given confidence threshold. - * - * Generated from protobuf field float false_positive_rate = 8; - */ - protected $false_positive_rate = 0.0; - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 4; - */ - protected $f1_score = 0.0; - /** - * Output only. The Recall (True Positive Rate) when only considering the - * label that has the highest prediction score and not below the confidence - * threshold for each example. - * - * Generated from protobuf field float recall_at1 = 5; - */ - protected $recall_at1 = 0.0; - /** - * Output only. The precision when only considering the label that has the - * highest prediction score and not below the confidence threshold for each - * example. - * - * Generated from protobuf field float precision_at1 = 6; - */ - protected $precision_at1 = 0.0; - /** - * Output only. The False Positive Rate when only considering the label that - * has the highest prediction score and not below the confidence threshold - * for each example. - * - * Generated from protobuf field float false_positive_rate_at1 = 9; - */ - protected $false_positive_rate_at1 = 0.0; - /** - * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1]. - * - * Generated from protobuf field float f1_score_at1 = 7; - */ - protected $f1_score_at1 = 0.0; - /** - * Output only. The number of model created labels that match a ground truth - * label. - * - * Generated from protobuf field int64 true_positive_count = 10; - */ - protected $true_positive_count = 0; - /** - * Output only. The number of model created labels that do not match a - * ground truth label. - * - * Generated from protobuf field int64 false_positive_count = 11; - */ - protected $false_positive_count = 0; - /** - * Output only. The number of ground truth labels that are not matched - * by a model created label. - * - * Generated from protobuf field int64 false_negative_count = 12; - */ - protected $false_negative_count = 0; - /** - * Output only. The number of labels that were not created by the model, - * but if they would, they would not match a ground truth label. - * - * Generated from protobuf field int64 true_negative_count = 13; - */ - protected $true_negative_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $confidence_threshold - * Output only. Metrics are computed with an assumption that the model - * never returns predictions with score lower than this value. - * @type int $position_threshold - * Output only. Metrics are computed with an assumption that the model - * always returns at most this many predictions (ordered by their score, - * descendingly), but they all still need to meet the confidence_threshold. - * @type float $recall - * Output only. Recall (True Positive Rate) for the given confidence - * threshold. - * @type float $precision - * Output only. Precision for the given confidence threshold. - * @type float $false_positive_rate - * Output only. False Positive Rate for the given confidence threshold. - * @type float $f1_score - * Output only. The harmonic mean of recall and precision. - * @type float $recall_at1 - * Output only. The Recall (True Positive Rate) when only considering the - * label that has the highest prediction score and not below the confidence - * threshold for each example. - * @type float $precision_at1 - * Output only. The precision when only considering the label that has the - * highest prediction score and not below the confidence threshold for each - * example. - * @type float $false_positive_rate_at1 - * Output only. The False Positive Rate when only considering the label that - * has the highest prediction score and not below the confidence threshold - * for each example. - * @type float $f1_score_at1 - * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1]. - * @type int|string $true_positive_count - * Output only. The number of model created labels that match a ground truth - * label. - * @type int|string $false_positive_count - * Output only. The number of model created labels that do not match a - * ground truth label. - * @type int|string $false_negative_count - * Output only. The number of ground truth labels that are not matched - * by a model created label. - * @type int|string $true_negative_count - * Output only. The number of labels that were not created by the model, - * but if they would, they would not match a ground truth label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Classification::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Metrics are computed with an assumption that the model - * never returns predictions with score lower than this value. - * - * Generated from protobuf field float confidence_threshold = 1; - * @return float - */ - public function getConfidenceThreshold() - { - return $this->confidence_threshold; - } - - /** - * Output only. Metrics are computed with an assumption that the model - * never returns predictions with score lower than this value. - * - * Generated from protobuf field float confidence_threshold = 1; - * @param float $var - * @return $this - */ - public function setConfidenceThreshold($var) - { - GPBUtil::checkFloat($var); - $this->confidence_threshold = $var; - - return $this; - } - - /** - * Output only. Metrics are computed with an assumption that the model - * always returns at most this many predictions (ordered by their score, - * descendingly), but they all still need to meet the confidence_threshold. - * - * Generated from protobuf field int32 position_threshold = 14; - * @return int - */ - public function getPositionThreshold() - { - return $this->position_threshold; - } - - /** - * Output only. Metrics are computed with an assumption that the model - * always returns at most this many predictions (ordered by their score, - * descendingly), but they all still need to meet the confidence_threshold. - * - * Generated from protobuf field int32 position_threshold = 14; - * @param int $var - * @return $this - */ - public function setPositionThreshold($var) - { - GPBUtil::checkInt32($var); - $this->position_threshold = $var; - - return $this; - } - - /** - * Output only. Recall (True Positive Rate) for the given confidence - * threshold. - * - * Generated from protobuf field float recall = 2; - * @return float - */ - public function getRecall() - { - return $this->recall; - } - - /** - * Output only. Recall (True Positive Rate) for the given confidence - * threshold. - * - * Generated from protobuf field float recall = 2; - * @param float $var - * @return $this - */ - public function setRecall($var) - { - GPBUtil::checkFloat($var); - $this->recall = $var; - - return $this; - } - - /** - * Output only. Precision for the given confidence threshold. - * - * Generated from protobuf field float precision = 3; - * @return float - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * Output only. Precision for the given confidence threshold. - * - * Generated from protobuf field float precision = 3; - * @param float $var - * @return $this - */ - public function setPrecision($var) - { - GPBUtil::checkFloat($var); - $this->precision = $var; - - return $this; - } - - /** - * Output only. False Positive Rate for the given confidence threshold. - * - * Generated from protobuf field float false_positive_rate = 8; - * @return float - */ - public function getFalsePositiveRate() - { - return $this->false_positive_rate; - } - - /** - * Output only. False Positive Rate for the given confidence threshold. - * - * Generated from protobuf field float false_positive_rate = 8; - * @param float $var - * @return $this - */ - public function setFalsePositiveRate($var) - { - GPBUtil::checkFloat($var); - $this->false_positive_rate = $var; - - return $this; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 4; - * @return float - */ - public function getF1Score() - { - return $this->f1_score; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 4; - * @param float $var - * @return $this - */ - public function setF1Score($var) - { - GPBUtil::checkFloat($var); - $this->f1_score = $var; - - return $this; - } - - /** - * Output only. The Recall (True Positive Rate) when only considering the - * label that has the highest prediction score and not below the confidence - * threshold for each example. - * - * Generated from protobuf field float recall_at1 = 5; - * @return float - */ - public function getRecallAt1() - { - return $this->recall_at1; - } - - /** - * Output only. The Recall (True Positive Rate) when only considering the - * label that has the highest prediction score and not below the confidence - * threshold for each example. - * - * Generated from protobuf field float recall_at1 = 5; - * @param float $var - * @return $this - */ - public function setRecallAt1($var) - { - GPBUtil::checkFloat($var); - $this->recall_at1 = $var; - - return $this; - } - - /** - * Output only. The precision when only considering the label that has the - * highest prediction score and not below the confidence threshold for each - * example. - * - * Generated from protobuf field float precision_at1 = 6; - * @return float - */ - public function getPrecisionAt1() - { - return $this->precision_at1; - } - - /** - * Output only. The precision when only considering the label that has the - * highest prediction score and not below the confidence threshold for each - * example. - * - * Generated from protobuf field float precision_at1 = 6; - * @param float $var - * @return $this - */ - public function setPrecisionAt1($var) - { - GPBUtil::checkFloat($var); - $this->precision_at1 = $var; - - return $this; - } - - /** - * Output only. The False Positive Rate when only considering the label that - * has the highest prediction score and not below the confidence threshold - * for each example. - * - * Generated from protobuf field float false_positive_rate_at1 = 9; - * @return float - */ - public function getFalsePositiveRateAt1() - { - return $this->false_positive_rate_at1; - } - - /** - * Output only. The False Positive Rate when only considering the label that - * has the highest prediction score and not below the confidence threshold - * for each example. - * - * Generated from protobuf field float false_positive_rate_at1 = 9; - * @param float $var - * @return $this - */ - public function setFalsePositiveRateAt1($var) - { - GPBUtil::checkFloat($var); - $this->false_positive_rate_at1 = $var; - - return $this; - } - - /** - * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1]. - * - * Generated from protobuf field float f1_score_at1 = 7; - * @return float - */ - public function getF1ScoreAt1() - { - return $this->f1_score_at1; - } - - /** - * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1]. - * - * Generated from protobuf field float f1_score_at1 = 7; - * @param float $var - * @return $this - */ - public function setF1ScoreAt1($var) - { - GPBUtil::checkFloat($var); - $this->f1_score_at1 = $var; - - return $this; - } - - /** - * Output only. The number of model created labels that match a ground truth - * label. - * - * Generated from protobuf field int64 true_positive_count = 10; - * @return int|string - */ - public function getTruePositiveCount() - { - return $this->true_positive_count; - } - - /** - * Output only. The number of model created labels that match a ground truth - * label. - * - * Generated from protobuf field int64 true_positive_count = 10; - * @param int|string $var - * @return $this - */ - public function setTruePositiveCount($var) - { - GPBUtil::checkInt64($var); - $this->true_positive_count = $var; - - return $this; - } - - /** - * Output only. The number of model created labels that do not match a - * ground truth label. - * - * Generated from protobuf field int64 false_positive_count = 11; - * @return int|string - */ - public function getFalsePositiveCount() - { - return $this->false_positive_count; - } - - /** - * Output only. The number of model created labels that do not match a - * ground truth label. - * - * Generated from protobuf field int64 false_positive_count = 11; - * @param int|string $var - * @return $this - */ - public function setFalsePositiveCount($var) - { - GPBUtil::checkInt64($var); - $this->false_positive_count = $var; - - return $this; - } - - /** - * Output only. The number of ground truth labels that are not matched - * by a model created label. - * - * Generated from protobuf field int64 false_negative_count = 12; - * @return int|string - */ - public function getFalseNegativeCount() - { - return $this->false_negative_count; - } - - /** - * Output only. The number of ground truth labels that are not matched - * by a model created label. - * - * Generated from protobuf field int64 false_negative_count = 12; - * @param int|string $var - * @return $this - */ - public function setFalseNegativeCount($var) - { - GPBUtil::checkInt64($var); - $this->false_negative_count = $var; - - return $this; - } - - /** - * Output only. The number of labels that were not created by the model, - * but if they would, they would not match a ground truth label. - * - * Generated from protobuf field int64 true_negative_count = 13; - * @return int|string - */ - public function getTrueNegativeCount() - { - return $this->true_negative_count; - } - - /** - * Output only. The number of labels that were not created by the model, - * but if they would, they would not match a ground truth label. - * - * Generated from protobuf field int64 true_negative_count = 13; - * @param int|string $var - * @return $this - */ - public function setTrueNegativeCount($var) - { - GPBUtil::checkInt64($var); - $this->true_negative_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConfidenceMetricsEntry::class, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics_ConfidenceMetricsEntry::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfusionMatrix.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfusionMatrix.php deleted file mode 100644 index 7fb6ec327e28..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfusionMatrix.php +++ /dev/null @@ -1,186 +0,0 @@ -google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix - */ -class ConfusionMatrix extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. IDs of the annotation specs used in the confusion matrix. - * For Tables CLASSIFICATION - * [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type] - * only list of [annotation_spec_display_name-s][] is populated. - * - * Generated from protobuf field repeated string annotation_spec_id = 1; - */ - private $annotation_spec_id; - /** - * Output only. Display name of the annotation specs used in the confusion - * matrix, as they were at the moment of the evaluation. For Tables - * CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type], - * distinct values of the target column at the moment of the model - * evaluation are populated here. - * - * Generated from protobuf field repeated string display_name = 3; - */ - private $display_name; - /** - * Output only. Rows in the confusion matrix. The number of rows is equal to - * the size of `annotation_spec_id`. - * `row[i].example_count[j]` is the number of examples that have ground - * truth of the `annotation_spec_id[i]` and are predicted as - * `annotation_spec_id[j]` by the model being evaluated. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - */ - private $row; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $annotation_spec_id - * Output only. IDs of the annotation specs used in the confusion matrix. - * For Tables CLASSIFICATION - * [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type] - * only list of [annotation_spec_display_name-s][] is populated. - * @type array|\Google\Protobuf\Internal\RepeatedField $display_name - * Output only. Display name of the annotation specs used in the confusion - * matrix, as they were at the moment of the evaluation. For Tables - * CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type], - * distinct values of the target column at the moment of the model - * evaluation are populated here. - * @type array<\Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix\Row>|\Google\Protobuf\Internal\RepeatedField $row - * Output only. Rows in the confusion matrix. The number of rows is equal to - * the size of `annotation_spec_id`. - * `row[i].example_count[j]` is the number of examples that have ground - * truth of the `annotation_spec_id[i]` and are predicted as - * `annotation_spec_id[j]` by the model being evaluated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Classification::initOnce(); - parent::__construct($data); - } - - /** - * Output only. IDs of the annotation specs used in the confusion matrix. - * For Tables CLASSIFICATION - * [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type] - * only list of [annotation_spec_display_name-s][] is populated. - * - * Generated from protobuf field repeated string annotation_spec_id = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnnotationSpecId() - { - return $this->annotation_spec_id; - } - - /** - * Output only. IDs of the annotation specs used in the confusion matrix. - * For Tables CLASSIFICATION - * [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type] - * only list of [annotation_spec_display_name-s][] is populated. - * - * Generated from protobuf field repeated string annotation_spec_id = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnnotationSpecId($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotation_spec_id = $arr; - - return $this; - } - - /** - * Output only. Display name of the annotation specs used in the confusion - * matrix, as they were at the moment of the evaluation. For Tables - * CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type], - * distinct values of the target column at the moment of the model - * evaluation are populated here. - * - * Generated from protobuf field repeated string display_name = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Display name of the annotation specs used in the confusion - * matrix, as they were at the moment of the evaluation. For Tables - * CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type], - * distinct values of the target column at the moment of the model - * evaluation are populated here. - * - * Generated from protobuf field repeated string display_name = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisplayName($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->display_name = $arr; - - return $this; - } - - /** - * Output only. Rows in the confusion matrix. The number of rows is equal to - * the size of `annotation_spec_id`. - * `row[i].example_count[j]` is the number of examples that have ground - * truth of the `annotation_spec_id[i]` and are predicted as - * `annotation_spec_id[j]` by the model being evaluated. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRow() - { - return $this->row; - } - - /** - * Output only. Rows in the confusion matrix. The number of rows is equal to - * the size of `annotation_spec_id`. - * `row[i].example_count[j]` is the number of examples that have ground - * truth of the `annotation_spec_id[i]` and are predicted as - * `annotation_spec_id[j]` by the model being evaluated. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row row = 2; - * @param array<\Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRow($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix\Row::class); - $this->row = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConfusionMatrix::class, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics_ConfusionMatrix::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfusionMatrix/Row.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfusionMatrix/Row.php deleted file mode 100644 index 3f433135f499..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationEvaluationMetrics/ConfusionMatrix/Row.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Value of the specific cell in the confusion matrix. - * The number of values each row has (i.e. the length of the row) is equal - * to the length of the `annotation_spec_id` field or, if that one is not - * populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field. - * - * Generated from protobuf field repeated int32 example_count = 1; - */ - private $example_count; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $example_count - * Output only. Value of the specific cell in the confusion matrix. - * The number of values each row has (i.e. the length of the row) is equal - * to the length of the `annotation_spec_id` field or, if that one is not - * populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Classification::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Value of the specific cell in the confusion matrix. - * The number of values each row has (i.e. the length of the row) is equal - * to the length of the `annotation_spec_id` field or, if that one is not - * populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field. - * - * Generated from protobuf field repeated int32 example_count = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExampleCount() - { - return $this->example_count; - } - - /** - * Output only. Value of the specific cell in the confusion matrix. - * The number of values each row has (i.e. the length of the row) is equal - * to the length of the `annotation_spec_id` field or, if that one is not - * populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field. - * - * Generated from protobuf field repeated int32 example_count = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExampleCount($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->example_count = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Row::class, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics_ConfusionMatrix_Row::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationType.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationType.php deleted file mode 100644 index 71c2bab1d3c7..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ClassificationType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.automl.v1.ClassificationType - */ -class ClassificationType -{ - /** - * An un-set value of this enum. - * - * Generated from protobuf enum CLASSIFICATION_TYPE_UNSPECIFIED = 0; - */ - const CLASSIFICATION_TYPE_UNSPECIFIED = 0; - /** - * At most one label is allowed per example. - * - * Generated from protobuf enum MULTICLASS = 1; - */ - const MULTICLASS = 1; - /** - * Multiple labels are allowed for one example. - * - * Generated from protobuf enum MULTILABEL = 2; - */ - const MULTILABEL = 2; - - private static $valueToName = [ - self::CLASSIFICATION_TYPE_UNSPECIFIED => 'CLASSIFICATION_TYPE_UNSPECIFIED', - self::MULTICLASS => 'MULTICLASS', - self::MULTILABEL => 'MULTILABEL', - ]; - - 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateDatasetOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateDatasetOperationMetadata.php deleted file mode 100644 index ac49c13c1fc5..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateDatasetOperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.CreateDatasetOperationMetadata - */ -class CreateDatasetOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateDatasetRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateDatasetRequest.php deleted file mode 100644 index 104ad7be83e2..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateDatasetRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.automl.v1.CreateDatasetRequest - */ -class CreateDatasetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the project to create the dataset for. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The dataset to create. - * - * Generated from protobuf field .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset = null; - - /** - * @param string $parent Required. The resource name of the project to create the dataset for. Please see - * {@see AutoMlClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AutoMl\V1\Dataset $dataset Required. The dataset to create. - * - * @return \Google\Cloud\AutoMl\V1\CreateDatasetRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AutoMl\V1\Dataset $dataset): self - { - return (new self()) - ->setParent($parent) - ->setDataset($dataset); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the project to create the dataset for. - * @type \Google\Cloud\AutoMl\V1\Dataset $dataset - * Required. The dataset to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the project to create the dataset for. - * - * 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 project to create the dataset for. - * - * 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 dataset to create. - * - * Generated from protobuf field .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\Dataset|null - */ - public function getDataset() - { - return $this->dataset; - } - - public function hasDataset() - { - return isset($this->dataset); - } - - public function clearDataset() - { - unset($this->dataset); - } - - /** - * Required. The dataset to create. - * - * Generated from protobuf field .google.cloud.automl.v1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\Dataset $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\Dataset::class); - $this->dataset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateModelOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateModelOperationMetadata.php deleted file mode 100644 index d02e428ca252..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateModelOperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.CreateModelOperationMetadata - */ -class CreateModelOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateModelRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateModelRequest.php deleted file mode 100644 index 982fdf52d1c9..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/CreateModelRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.automl.v1.CreateModelRequest - */ -class CreateModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the parent project where the model is being created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The model to create. - * - * Generated from protobuf field .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $model = null; - - /** - * @param string $parent Required. Resource name of the parent project where the model is being created. Please see - * {@see AutoMlClient::locationName()} for help formatting this field. - * @param \Google\Cloud\AutoMl\V1\Model $model Required. The model to create. - * - * @return \Google\Cloud\AutoMl\V1\CreateModelRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\AutoMl\V1\Model $model): self - { - return (new self()) - ->setParent($parent) - ->setModel($model); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the parent project where the model is being created. - * @type \Google\Cloud\AutoMl\V1\Model $model - * Required. The model to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the parent project where the model is being created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the parent project where the model is being created. - * - * 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 model to create. - * - * Generated from protobuf field .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\Model|null - */ - public function getModel() - { - return $this->model; - } - - public function hasModel() - { - return isset($this->model); - } - - public function clearModel() - { - unset($this->model); - } - - /** - * Required. The model to create. - * - * Generated from protobuf field .google.cloud.automl.v1.Model model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\Model $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\Model::class); - $this->model = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Dataset.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Dataset.php deleted file mode 100644 index 2e8ecb216189..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Dataset.php +++ /dev/null @@ -1,533 +0,0 @@ -google.cloud.automl.v1.Dataset - */ -class Dataset extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the dataset. - * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The name of the dataset to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * User-provided description of the dataset. The description can be up to - * 25000 characters long. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. The number of examples in the dataset. - * - * Generated from protobuf field int32 example_count = 21; - */ - protected $example_count = 0; - /** - * Output only. Timestamp when this dataset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - */ - protected $create_time = null; - /** - * Used to perform consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * - * Generated from protobuf field string etag = 17; - */ - protected $etag = ''; - /** - * Optional. The labels with user-defined metadata to organize your dataset. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * - * Generated from protobuf field map labels = 39; - */ - private $labels; - protected $dataset_metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\TranslationDatasetMetadata $translation_dataset_metadata - * Metadata for a dataset used for translation. - * @type \Google\Cloud\AutoMl\V1\ImageClassificationDatasetMetadata $image_classification_dataset_metadata - * Metadata for a dataset used for image classification. - * @type \Google\Cloud\AutoMl\V1\TextClassificationDatasetMetadata $text_classification_dataset_metadata - * Metadata for a dataset used for text classification. - * @type \Google\Cloud\AutoMl\V1\ImageObjectDetectionDatasetMetadata $image_object_detection_dataset_metadata - * Metadata for a dataset used for image object detection. - * @type \Google\Cloud\AutoMl\V1\TextExtractionDatasetMetadata $text_extraction_dataset_metadata - * Metadata for a dataset used for text extraction. - * @type \Google\Cloud\AutoMl\V1\TextSentimentDatasetMetadata $text_sentiment_dataset_metadata - * Metadata for a dataset used for text sentiment. - * @type string $name - * Output only. The resource name of the dataset. - * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}` - * @type string $display_name - * Required. The name of the dataset to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. - * @type string $description - * User-provided description of the dataset. The description can be up to - * 25000 characters long. - * @type int $example_count - * Output only. The number of examples in the dataset. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Timestamp when this dataset was created. - * @type string $etag - * Used to perform consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The labels with user-defined metadata to organize your dataset. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Dataset::initOnce(); - parent::__construct($data); - } - - /** - * Metadata for a dataset used for translation. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * @return \Google\Cloud\AutoMl\V1\TranslationDatasetMetadata|null - */ - public function getTranslationDatasetMetadata() - { - return $this->readOneof(23); - } - - public function hasTranslationDatasetMetadata() - { - return $this->hasOneof(23); - } - - /** - * Metadata for a dataset used for translation. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23; - * @param \Google\Cloud\AutoMl\V1\TranslationDatasetMetadata $var - * @return $this - */ - public function setTranslationDatasetMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TranslationDatasetMetadata::class); - $this->writeOneof(23, $var); - - return $this; - } - - /** - * Metadata for a dataset used for image classification. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * @return \Google\Cloud\AutoMl\V1\ImageClassificationDatasetMetadata|null - */ - public function getImageClassificationDatasetMetadata() - { - return $this->readOneof(24); - } - - public function hasImageClassificationDatasetMetadata() - { - return $this->hasOneof(24); - } - - /** - * Metadata for a dataset used for image classification. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; - * @param \Google\Cloud\AutoMl\V1\ImageClassificationDatasetMetadata $var - * @return $this - */ - public function setImageClassificationDatasetMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageClassificationDatasetMetadata::class); - $this->writeOneof(24, $var); - - return $this; - } - - /** - * Metadata for a dataset used for text classification. - * - * Generated from protobuf field .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * @return \Google\Cloud\AutoMl\V1\TextClassificationDatasetMetadata|null - */ - public function getTextClassificationDatasetMetadata() - { - return $this->readOneof(25); - } - - public function hasTextClassificationDatasetMetadata() - { - return $this->hasOneof(25); - } - - /** - * Metadata for a dataset used for text classification. - * - * Generated from protobuf field .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * @param \Google\Cloud\AutoMl\V1\TextClassificationDatasetMetadata $var - * @return $this - */ - public function setTextClassificationDatasetMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextClassificationDatasetMetadata::class); - $this->writeOneof(25, $var); - - return $this; - } - - /** - * Metadata for a dataset used for image object detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * @return \Google\Cloud\AutoMl\V1\ImageObjectDetectionDatasetMetadata|null - */ - public function getImageObjectDetectionDatasetMetadata() - { - return $this->readOneof(26); - } - - public function hasImageObjectDetectionDatasetMetadata() - { - return $this->hasOneof(26); - } - - /** - * Metadata for a dataset used for image object detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; - * @param \Google\Cloud\AutoMl\V1\ImageObjectDetectionDatasetMetadata $var - * @return $this - */ - public function setImageObjectDetectionDatasetMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageObjectDetectionDatasetMetadata::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * Metadata for a dataset used for text extraction. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * @return \Google\Cloud\AutoMl\V1\TextExtractionDatasetMetadata|null - */ - public function getTextExtractionDatasetMetadata() - { - return $this->readOneof(28); - } - - public function hasTextExtractionDatasetMetadata() - { - return $this->hasOneof(28); - } - - /** - * Metadata for a dataset used for text extraction. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; - * @param \Google\Cloud\AutoMl\V1\TextExtractionDatasetMetadata $var - * @return $this - */ - public function setTextExtractionDatasetMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextExtractionDatasetMetadata::class); - $this->writeOneof(28, $var); - - return $this; - } - - /** - * Metadata for a dataset used for text sentiment. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * @return \Google\Cloud\AutoMl\V1\TextSentimentDatasetMetadata|null - */ - public function getTextSentimentDatasetMetadata() - { - return $this->readOneof(30); - } - - public function hasTextSentimentDatasetMetadata() - { - return $this->hasOneof(30); - } - - /** - * Metadata for a dataset used for text sentiment. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; - * @param \Google\Cloud\AutoMl\V1\TextSentimentDatasetMetadata $var - * @return $this - */ - public function setTextSentimentDatasetMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSentimentDatasetMetadata::class); - $this->writeOneof(30, $var); - - return $this; - } - - /** - * Output only. The resource name of the dataset. - * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name of the dataset. - * Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}` - * - * 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; - } - - /** - * Required. The name of the dataset to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The name of the dataset to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. - * - * 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; - } - - /** - * User-provided description of the dataset. The description can be up to - * 25000 characters long. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * User-provided description of the dataset. The description can be up to - * 25000 characters long. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The number of examples in the dataset. - * - * Generated from protobuf field int32 example_count = 21; - * @return int - */ - public function getExampleCount() - { - return $this->example_count; - } - - /** - * Output only. The number of examples in the dataset. - * - * Generated from protobuf field int32 example_count = 21; - * @param int $var - * @return $this - */ - public function setExampleCount($var) - { - GPBUtil::checkInt32($var); - $this->example_count = $var; - - return $this; - } - - /** - * Output only. Timestamp when this dataset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - * @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. Timestamp when this dataset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Used to perform consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * - * Generated from protobuf field string etag = 17; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Used to perform consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * - * Generated from protobuf field string etag = 17; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. The labels with user-defined metadata to organize your dataset. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * - * Generated from protobuf field map labels = 39; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The labels with user-defined metadata to organize your dataset. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * - * Generated from protobuf field map labels = 39; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDatasetMetadata() - { - return $this->whichOneof("dataset_metadata"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteDatasetRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteDatasetRequest.php deleted file mode 100644 index 51473a001c78..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteDatasetRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.DeleteDatasetRequest - */ -class DeleteDatasetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the dataset to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the dataset to delete. Please see - * {@see AutoMlClient::datasetName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\DeleteDatasetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the dataset to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the dataset to delete. - * - * 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 dataset to delete. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteModelRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteModelRequest.php deleted file mode 100644 index 2a2b9a73b439..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteModelRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.DeleteModelRequest - */ -class DeleteModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the model being deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the model being deleted. Please see - * {@see AutoMlClient::modelName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\DeleteModelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the model being deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the model being deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the model being deleted. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteOperationMetadata.php deleted file mode 100644 index 9e8a8551ac12..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeleteOperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.DeleteOperationMetadata - */ -class DeleteOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeployModelOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeployModelOperationMetadata.php deleted file mode 100644 index a60fd7e79038..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeployModelOperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.DeployModelOperationMetadata - */ -class DeployModelOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeployModelRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeployModelRequest.php deleted file mode 100644 index 40b54b870eaf..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DeployModelRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.automl.v1.DeployModelRequest - */ -class DeployModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the model to deploy. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - protected $model_deployment_metadata; - - /** - * @param string $name Required. Resource name of the model to deploy. Please see - * {@see AutoMlClient::modelName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\DeployModelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelDeploymentMetadata $image_object_detection_model_deployment_metadata - * Model deployment metadata specific to Image Object Detection. - * @type \Google\Cloud\AutoMl\V1\ImageClassificationModelDeploymentMetadata $image_classification_model_deployment_metadata - * Model deployment metadata specific to Image Classification. - * @type string $name - * Required. Resource name of the model to deploy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Model deployment metadata specific to Image Object Detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * @return \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelDeploymentMetadata|null - */ - public function getImageObjectDetectionModelDeploymentMetadata() - { - return $this->readOneof(2); - } - - public function hasImageObjectDetectionModelDeploymentMetadata() - { - return $this->hasOneof(2); - } - - /** - * Model deployment metadata specific to Image Object Detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; - * @param \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelDeploymentMetadata $var - * @return $this - */ - public function setImageObjectDetectionModelDeploymentMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelDeploymentMetadata::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Model deployment metadata specific to Image Classification. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * @return \Google\Cloud\AutoMl\V1\ImageClassificationModelDeploymentMetadata|null - */ - public function getImageClassificationModelDeploymentMetadata() - { - return $this->readOneof(4); - } - - public function hasImageClassificationModelDeploymentMetadata() - { - return $this->hasOneof(4); - } - - /** - * Model deployment metadata specific to Image Classification. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata image_classification_model_deployment_metadata = 4; - * @param \Google\Cloud\AutoMl\V1\ImageClassificationModelDeploymentMetadata $var - * @return $this - */ - public function setImageClassificationModelDeploymentMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageClassificationModelDeploymentMetadata::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. Resource name of the model to deploy. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the model to deploy. - * - * 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; - } - - /** - * @return string - */ - public function getModelDeploymentMetadata() - { - return $this->whichOneof("model_deployment_metadata"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document.php deleted file mode 100644 index 1563d30be57b..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.automl.v1.Document - */ -class Document extends \Google\Protobuf\Internal\Message -{ - /** - * An input config specifying the content of the document. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - */ - protected $input_config = null; - /** - * The plain text version of this document. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet document_text = 2; - */ - protected $document_text = null; - /** - * Describes the layout of the document. - * Sorted by [page_number][]. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Document.Layout layout = 3; - */ - private $layout; - /** - * The dimensions of the page in the document. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - */ - protected $document_dimensions = null; - /** - * Number of pages in the document. - * - * Generated from protobuf field int32 page_count = 5; - */ - protected $page_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\DocumentInputConfig $input_config - * An input config specifying the content of the document. - * @type \Google\Cloud\AutoMl\V1\TextSnippet $document_text - * The plain text version of this document. - * @type array<\Google\Cloud\AutoMl\V1\Document\Layout>|\Google\Protobuf\Internal\RepeatedField $layout - * Describes the layout of the document. - * Sorted by [page_number][]. - * @type \Google\Cloud\AutoMl\V1\DocumentDimensions $document_dimensions - * The dimensions of the page in the document. - * @type int $page_count - * Number of pages in the document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\DataItems::initOnce(); - parent::__construct($data); - } - - /** - * An input config specifying the content of the document. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * @return \Google\Cloud\AutoMl\V1\DocumentInputConfig|null - */ - public function getInputConfig() - { - return $this->input_config; - } - - public function hasInputConfig() - { - return isset($this->input_config); - } - - public function clearInputConfig() - { - unset($this->input_config); - } - - /** - * An input config specifying the content of the document. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentInputConfig input_config = 1; - * @param \Google\Cloud\AutoMl\V1\DocumentInputConfig $var - * @return $this - */ - public function setInputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\DocumentInputConfig::class); - $this->input_config = $var; - - return $this; - } - - /** - * The plain text version of this document. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet document_text = 2; - * @return \Google\Cloud\AutoMl\V1\TextSnippet|null - */ - public function getDocumentText() - { - return $this->document_text; - } - - public function hasDocumentText() - { - return isset($this->document_text); - } - - public function clearDocumentText() - { - unset($this->document_text); - } - - /** - * The plain text version of this document. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet document_text = 2; - * @param \Google\Cloud\AutoMl\V1\TextSnippet $var - * @return $this - */ - public function setDocumentText($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSnippet::class); - $this->document_text = $var; - - return $this; - } - - /** - * Describes the layout of the document. - * Sorted by [page_number][]. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Document.Layout layout = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLayout() - { - return $this->layout; - } - - /** - * Describes the layout of the document. - * Sorted by [page_number][]. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Document.Layout layout = 3; - * @param array<\Google\Cloud\AutoMl\V1\Document\Layout>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLayout($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\Document\Layout::class); - $this->layout = $arr; - - return $this; - } - - /** - * The dimensions of the page in the document. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * @return \Google\Cloud\AutoMl\V1\DocumentDimensions|null - */ - public function getDocumentDimensions() - { - return $this->document_dimensions; - } - - public function hasDocumentDimensions() - { - return isset($this->document_dimensions); - } - - public function clearDocumentDimensions() - { - unset($this->document_dimensions); - } - - /** - * The dimensions of the page in the document. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentDimensions document_dimensions = 4; - * @param \Google\Cloud\AutoMl\V1\DocumentDimensions $var - * @return $this - */ - public function setDocumentDimensions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\DocumentDimensions::class); - $this->document_dimensions = $var; - - return $this; - } - - /** - * Number of pages in the document. - * - * Generated from protobuf field int32 page_count = 5; - * @return int - */ - public function getPageCount() - { - return $this->page_count; - } - - /** - * Number of pages in the document. - * - * Generated from protobuf field int32 page_count = 5; - * @param int $var - * @return $this - */ - public function setPageCount($var) - { - GPBUtil::checkInt32($var); - $this->page_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document/Layout.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document/Layout.php deleted file mode 100644 index 6543bf1767ed..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document/Layout.php +++ /dev/null @@ -1,228 +0,0 @@ -google.cloud.automl.v1.Document.Layout - */ -class Layout extends \Google\Protobuf\Internal\Message -{ - /** - * Text Segment that represents a segment in - * [document_text][google.cloud.automl.v1p1beta.Document.document_text]. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSegment text_segment = 1; - */ - protected $text_segment = null; - /** - * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts - * from 1. - * - * Generated from protobuf field int32 page_number = 2; - */ - protected $page_number = 0; - /** - * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. - * Contains exactly 4 - * [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] - * and they are connected by edges in the order provided, which will - * represent a rectangle parallel to the frame. The - * [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are - * relative to the page. - * Coordinates are based on top-left as point (0,0). - * - * Generated from protobuf field .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - */ - protected $bounding_poly = null; - /** - * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document. - * - * Generated from protobuf field .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - */ - protected $text_segment_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\TextSegment $text_segment - * Text Segment that represents a segment in - * [document_text][google.cloud.automl.v1p1beta.Document.document_text]. - * @type int $page_number - * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts - * from 1. - * @type \Google\Cloud\AutoMl\V1\BoundingPoly $bounding_poly - * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. - * Contains exactly 4 - * [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] - * and they are connected by edges in the order provided, which will - * represent a rectangle parallel to the frame. The - * [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are - * relative to the page. - * Coordinates are based on top-left as point (0,0). - * @type int $text_segment_type - * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\DataItems::initOnce(); - parent::__construct($data); - } - - /** - * Text Segment that represents a segment in - * [document_text][google.cloud.automl.v1p1beta.Document.document_text]. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSegment text_segment = 1; - * @return \Google\Cloud\AutoMl\V1\TextSegment|null - */ - public function getTextSegment() - { - return $this->text_segment; - } - - public function hasTextSegment() - { - return isset($this->text_segment); - } - - public function clearTextSegment() - { - unset($this->text_segment); - } - - /** - * Text Segment that represents a segment in - * [document_text][google.cloud.automl.v1p1beta.Document.document_text]. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSegment text_segment = 1; - * @param \Google\Cloud\AutoMl\V1\TextSegment $var - * @return $this - */ - public function setTextSegment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSegment::class); - $this->text_segment = $var; - - return $this; - } - - /** - * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts - * from 1. - * - * Generated from protobuf field int32 page_number = 2; - * @return int - */ - public function getPageNumber() - { - return $this->page_number; - } - - /** - * Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts - * from 1. - * - * Generated from protobuf field int32 page_number = 2; - * @param int $var - * @return $this - */ - public function setPageNumber($var) - { - GPBUtil::checkInt32($var); - $this->page_number = $var; - - return $this; - } - - /** - * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. - * Contains exactly 4 - * [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] - * and they are connected by edges in the order provided, which will - * represent a rectangle parallel to the frame. The - * [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are - * relative to the page. - * Coordinates are based on top-left as point (0,0). - * - * Generated from protobuf field .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * @return \Google\Cloud\AutoMl\V1\BoundingPoly|null - */ - public function getBoundingPoly() - { - return $this->bounding_poly; - } - - public function hasBoundingPoly() - { - return isset($this->bounding_poly); - } - - public function clearBoundingPoly() - { - unset($this->bounding_poly); - } - - /** - * The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. - * Contains exactly 4 - * [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] - * and they are connected by edges in the order provided, which will - * represent a rectangle parallel to the frame. The - * [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are - * relative to the page. - * Coordinates are based on top-left as point (0,0). - * - * Generated from protobuf field .google.cloud.automl.v1.BoundingPoly bounding_poly = 3; - * @param \Google\Cloud\AutoMl\V1\BoundingPoly $var - * @return $this - */ - public function setBoundingPoly($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\BoundingPoly::class); - $this->bounding_poly = $var; - - return $this; - } - - /** - * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document. - * - * Generated from protobuf field .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * @return int - */ - public function getTextSegmentType() - { - return $this->text_segment_type; - } - - /** - * The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document. - * - * Generated from protobuf field .google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4; - * @param int $var - * @return $this - */ - public function setTextSegmentType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1\Document\Layout\TextSegmentType::class); - $this->text_segment_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Layout::class, \Google\Cloud\AutoMl\V1\Document_Layout::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document/Layout/TextSegmentType.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document/Layout/TextSegmentType.php deleted file mode 100644 index 26f6465c5713..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Document/Layout/TextSegmentType.php +++ /dev/null @@ -1,123 +0,0 @@ -google.cloud.automl.v1.Document.Layout.TextSegmentType - */ -class TextSegmentType -{ - /** - * Should not be used. - * - * Generated from protobuf enum TEXT_SEGMENT_TYPE_UNSPECIFIED = 0; - */ - const TEXT_SEGMENT_TYPE_UNSPECIFIED = 0; - /** - * The text segment is a token. e.g. word. - * - * Generated from protobuf enum TOKEN = 1; - */ - const TOKEN = 1; - /** - * The text segment is a paragraph. - * - * Generated from protobuf enum PARAGRAPH = 2; - */ - const PARAGRAPH = 2; - /** - * The text segment is a form field. - * - * Generated from protobuf enum FORM_FIELD = 3; - */ - const FORM_FIELD = 3; - /** - * The text segment is the name part of a form field. It will be treated - * as child of another FORM_FIELD TextSegment if its span is subspan of - * another TextSegment with type FORM_FIELD. - * - * Generated from protobuf enum FORM_FIELD_NAME = 4; - */ - const FORM_FIELD_NAME = 4; - /** - * The text segment is the text content part of a form field. It will be - * treated as child of another FORM_FIELD TextSegment if its span is - * subspan of another TextSegment with type FORM_FIELD. - * - * Generated from protobuf enum FORM_FIELD_CONTENTS = 5; - */ - const FORM_FIELD_CONTENTS = 5; - /** - * The text segment is a whole table, including headers, and all rows. - * - * Generated from protobuf enum TABLE = 6; - */ - const TABLE = 6; - /** - * The text segment is a table's headers. It will be treated as child of - * another TABLE TextSegment if its span is subspan of another TextSegment - * with type TABLE. - * - * Generated from protobuf enum TABLE_HEADER = 7; - */ - const TABLE_HEADER = 7; - /** - * The text segment is a row in table. It will be treated as child of - * another TABLE TextSegment if its span is subspan of another TextSegment - * with type TABLE. - * - * Generated from protobuf enum TABLE_ROW = 8; - */ - const TABLE_ROW = 8; - /** - * The text segment is a cell in table. It will be treated as child of - * another TABLE_ROW TextSegment if its span is subspan of another - * TextSegment with type TABLE_ROW. - * - * Generated from protobuf enum TABLE_CELL = 9; - */ - const TABLE_CELL = 9; - - private static $valueToName = [ - self::TEXT_SEGMENT_TYPE_UNSPECIFIED => 'TEXT_SEGMENT_TYPE_UNSPECIFIED', - self::TOKEN => 'TOKEN', - self::PARAGRAPH => 'PARAGRAPH', - self::FORM_FIELD => 'FORM_FIELD', - self::FORM_FIELD_NAME => 'FORM_FIELD_NAME', - self::FORM_FIELD_CONTENTS => 'FORM_FIELD_CONTENTS', - self::TABLE => 'TABLE', - self::TABLE_HEADER => 'TABLE_HEADER', - self::TABLE_ROW => 'TABLE_ROW', - self::TABLE_CELL => 'TABLE_CELL', - ]; - - 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(TextSegmentType::class, \Google\Cloud\AutoMl\V1\Document_Layout_TextSegmentType::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentDimensions.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentDimensions.php deleted file mode 100644 index ec1a7850a858..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentDimensions.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.automl.v1.DocumentDimensions - */ -class DocumentDimensions extends \Google\Protobuf\Internal\Message -{ - /** - * Unit of the dimension. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - */ - protected $unit = 0; - /** - * Width value of the document, works together with the unit. - * - * Generated from protobuf field float width = 2; - */ - protected $width = 0.0; - /** - * Height value of the document, works together with the unit. - * - * Generated from protobuf field float height = 3; - */ - protected $height = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $unit - * Unit of the dimension. - * @type float $width - * Width value of the document, works together with the unit. - * @type float $height - * Height value of the document, works together with the unit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\DataItems::initOnce(); - parent::__construct($data); - } - - /** - * Unit of the dimension. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * @return int - */ - public function getUnit() - { - return $this->unit; - } - - /** - * Unit of the dimension. - * - * Generated from protobuf field .google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit unit = 1; - * @param int $var - * @return $this - */ - public function setUnit($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1\DocumentDimensions\DocumentDimensionUnit::class); - $this->unit = $var; - - return $this; - } - - /** - * Width value of the document, works together with the unit. - * - * Generated from protobuf field float width = 2; - * @return float - */ - public function getWidth() - { - return $this->width; - } - - /** - * Width value of the document, works together with the unit. - * - * Generated from protobuf field float width = 2; - * @param float $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkFloat($var); - $this->width = $var; - - return $this; - } - - /** - * Height value of the document, works together with the unit. - * - * Generated from protobuf field float height = 3; - * @return float - */ - public function getHeight() - { - return $this->height; - } - - /** - * Height value of the document, works together with the unit. - * - * Generated from protobuf field float height = 3; - * @param float $var - * @return $this - */ - public function setHeight($var) - { - GPBUtil::checkFloat($var); - $this->height = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentDimensions/DocumentDimensionUnit.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentDimensions/DocumentDimensionUnit.php deleted file mode 100644 index 2faca889037c..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentDimensions/DocumentDimensionUnit.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.automl.v1.DocumentDimensions.DocumentDimensionUnit - */ -class DocumentDimensionUnit -{ - /** - * Should not be used. - * - * Generated from protobuf enum DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0; - */ - const DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0; - /** - * Document dimension is measured in inches. - * - * Generated from protobuf enum INCH = 1; - */ - const INCH = 1; - /** - * Document dimension is measured in centimeters. - * - * Generated from protobuf enum CENTIMETER = 2; - */ - const CENTIMETER = 2; - /** - * Document dimension is measured in points. 72 points = 1 inch. - * - * Generated from protobuf enum POINT = 3; - */ - const POINT = 3; - - private static $valueToName = [ - self::DOCUMENT_DIMENSION_UNIT_UNSPECIFIED => 'DOCUMENT_DIMENSION_UNIT_UNSPECIFIED', - self::INCH => 'INCH', - self::CENTIMETER => 'CENTIMETER', - self::POINT => 'POINT', - ]; - - 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(DocumentDimensionUnit::class, \Google\Cloud\AutoMl\V1\DocumentDimensions_DocumentDimensionUnit::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentInputConfig.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentInputConfig.php deleted file mode 100644 index 6c4eeee9e78d..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/DocumentInputConfig.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.automl.v1.DocumentInputConfig - */ -class DocumentInputConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Google Cloud Storage location of the document file. Only a single path - * should be given. - * Max supported size: 512MB. - * Supported extensions: .PDF. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsSource gcs_source = 1; - */ - protected $gcs_source = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\GcsSource $gcs_source - * The Google Cloud Storage location of the document file. Only a single path - * should be given. - * Max supported size: 512MB. - * Supported extensions: .PDF. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * The Google Cloud Storage location of the document file. Only a single path - * should be given. - * Max supported size: 512MB. - * Supported extensions: .PDF. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsSource gcs_source = 1; - * @return \Google\Cloud\AutoMl\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->gcs_source; - } - - public function hasGcsSource() - { - return isset($this->gcs_source); - } - - public function clearGcsSource() - { - unset($this->gcs_source); - } - - /** - * The Google Cloud Storage location of the document file. Only a single path - * should be given. - * Max supported size: 512MB. - * Supported extensions: .PDF. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsSource gcs_source = 1; - * @param \Google\Cloud\AutoMl\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\GcsSource::class); - $this->gcs_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExamplePayload.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExamplePayload.php deleted file mode 100644 index 9348c79ee7f3..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExamplePayload.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.automl.v1.ExamplePayload - */ -class ExamplePayload extends \Google\Protobuf\Internal\Message -{ - protected $payload; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\Image $image - * Example image. - * @type \Google\Cloud\AutoMl\V1\TextSnippet $text_snippet - * Example text. - * @type \Google\Cloud\AutoMl\V1\Document $document - * Example document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\DataItems::initOnce(); - parent::__construct($data); - } - - /** - * Example image. - * - * Generated from protobuf field .google.cloud.automl.v1.Image image = 1; - * @return \Google\Cloud\AutoMl\V1\Image|null - */ - public function getImage() - { - return $this->readOneof(1); - } - - public function hasImage() - { - return $this->hasOneof(1); - } - - /** - * Example image. - * - * Generated from protobuf field .google.cloud.automl.v1.Image image = 1; - * @param \Google\Cloud\AutoMl\V1\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\Image::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Example text. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * @return \Google\Cloud\AutoMl\V1\TextSnippet|null - */ - public function getTextSnippet() - { - return $this->readOneof(2); - } - - public function hasTextSnippet() - { - return $this->hasOneof(2); - } - - /** - * Example text. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet text_snippet = 2; - * @param \Google\Cloud\AutoMl\V1\TextSnippet $var - * @return $this - */ - public function setTextSnippet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSnippet::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Example document. - * - * Generated from protobuf field .google.cloud.automl.v1.Document document = 4; - * @return \Google\Cloud\AutoMl\V1\Document|null - */ - public function getDocument() - { - return $this->readOneof(4); - } - - public function hasDocument() - { - return $this->hasOneof(4); - } - - /** - * Example document. - * - * Generated from protobuf field .google.cloud.automl.v1.Document document = 4; - * @param \Google\Cloud\AutoMl\V1\Document $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\Document::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getPayload() - { - return $this->whichOneof("payload"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataOperationMetadata.php deleted file mode 100644 index df21bee419e0..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataOperationMetadata.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.automl.v1.ExportDataOperationMetadata - */ -class ExportDataOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Information further describing this export data's output. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - */ - protected $output_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata\ExportDataOutputInfo $output_info - * Output only. Information further describing this export data's output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Information further describing this export data's output. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * @return \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata\ExportDataOutputInfo|null - */ - public function getOutputInfo() - { - return $this->output_info; - } - - public function hasOutputInfo() - { - return isset($this->output_info); - } - - public function clearOutputInfo() - { - unset($this->output_info); - } - - /** - * Output only. Information further describing this export data's output. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; - * @param \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata\ExportDataOutputInfo $var - * @return $this - */ - public function setOutputInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata\ExportDataOutputInfo::class); - $this->output_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataOperationMetadata/ExportDataOutputInfo.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataOperationMetadata/ExportDataOutputInfo.php deleted file mode 100644 index 9b2842faa5b7..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataOperationMetadata/ExportDataOutputInfo.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.automl.v1.ExportDataOperationMetadata.ExportDataOutputInfo - */ -class ExportDataOutputInfo extends \Google\Protobuf\Internal\Message -{ - protected $output_location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_output_directory - * The full path of the Google Cloud Storage directory created, into which - * the exported data is written. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - - /** - * The full path of the Google Cloud Storage directory created, into which - * the exported data is written. - * - * Generated from protobuf field string gcs_output_directory = 1; - * @return string - */ - public function getGcsOutputDirectory() - { - return $this->readOneof(1); - } - - public function hasGcsOutputDirectory() - { - return $this->hasOneof(1); - } - - /** - * The full path of the Google Cloud Storage directory created, into which - * the exported data is written. - * - * Generated from protobuf field string gcs_output_directory = 1; - * @param string $var - * @return $this - */ - public function setGcsOutputDirectory($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOutputLocation() - { - return $this->whichOneof("output_location"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExportDataOutputInfo::class, \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata_ExportDataOutputInfo::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataRequest.php deleted file mode 100644 index de1805283889..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportDataRequest.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.automl.v1.ExportDataRequest - */ -class ExportDataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the dataset. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The desired output location. - * - * Generated from protobuf field .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_config = null; - - /** - * @param string $name Required. The resource name of the dataset. Please see - * {@see AutoMlClient::datasetName()} for help formatting this field. - * @param \Google\Cloud\AutoMl\V1\OutputConfig $outputConfig Required. The desired output location. - * - * @return \Google\Cloud\AutoMl\V1\ExportDataRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\AutoMl\V1\OutputConfig $outputConfig): self - { - return (new self()) - ->setName($name) - ->setOutputConfig($outputConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the dataset. - * @type \Google\Cloud\AutoMl\V1\OutputConfig $output_config - * Required. The desired output location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the dataset. - * - * 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 dataset. - * - * 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; - } - - /** - * Required. The desired output location. - * - * Generated from protobuf field .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\OutputConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Required. The desired output location. - * - * Generated from protobuf field .google.cloud.automl.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\OutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\OutputConfig::class); - $this->output_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelOperationMetadata.php deleted file mode 100644 index d14c8c23cdf4..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelOperationMetadata.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.ExportModelOperationMetadata - */ -class ExportModelOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Information further describing the output of this model - * export. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - */ - protected $output_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata\ExportModelOutputInfo $output_info - * Output only. Information further describing the output of this model - * export. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Information further describing the output of this model - * export. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * @return \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata\ExportModelOutputInfo|null - */ - public function getOutputInfo() - { - return $this->output_info; - } - - public function hasOutputInfo() - { - return isset($this->output_info); - } - - public function clearOutputInfo() - { - unset($this->output_info); - } - - /** - * Output only. Information further describing the output of this model - * export. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; - * @param \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata\ExportModelOutputInfo $var - * @return $this - */ - public function setOutputInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata\ExportModelOutputInfo::class); - $this->output_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelOperationMetadata/ExportModelOutputInfo.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelOperationMetadata/ExportModelOutputInfo.php deleted file mode 100644 index a474a71bfbcd..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelOperationMetadata/ExportModelOutputInfo.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.automl.v1.ExportModelOperationMetadata.ExportModelOutputInfo - */ -class ExportModelOutputInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The full path of the Google Cloud Storage directory created, into which - * the model will be exported. - * - * Generated from protobuf field string gcs_output_directory = 1; - */ - protected $gcs_output_directory = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_output_directory - * The full path of the Google Cloud Storage directory created, into which - * the model will be exported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - - /** - * The full path of the Google Cloud Storage directory created, into which - * the model will be exported. - * - * Generated from protobuf field string gcs_output_directory = 1; - * @return string - */ - public function getGcsOutputDirectory() - { - return $this->gcs_output_directory; - } - - /** - * The full path of the Google Cloud Storage directory created, into which - * the model will be exported. - * - * Generated from protobuf field string gcs_output_directory = 1; - * @param string $var - * @return $this - */ - public function setGcsOutputDirectory($var) - { - GPBUtil::checkString($var, True); - $this->gcs_output_directory = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExportModelOutputInfo::class, \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata_ExportModelOutputInfo::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelRequest.php deleted file mode 100644 index f312fb2a3331..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ExportModelRequest.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.automl.v1.ExportModelRequest - */ -class ExportModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the model to export. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The desired output location and configuration. - * - * Generated from protobuf field .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_config = null; - - /** - * @param string $name Required. The resource name of the model to export. Please see - * {@see AutoMlClient::modelName()} for help formatting this field. - * @param \Google\Cloud\AutoMl\V1\ModelExportOutputConfig $outputConfig Required. The desired output location and configuration. - * - * @return \Google\Cloud\AutoMl\V1\ExportModelRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\AutoMl\V1\ModelExportOutputConfig $outputConfig): self - { - return (new self()) - ->setName($name) - ->setOutputConfig($outputConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the model to export. - * @type \Google\Cloud\AutoMl\V1\ModelExportOutputConfig $output_config - * Required. The desired output location and configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the model to export. - * - * 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 model to export. - * - * 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; - } - - /** - * Required. The desired output location and configuration. - * - * Generated from protobuf field .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\ModelExportOutputConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Required. The desired output location and configuration. - * - * Generated from protobuf field .google.cloud.automl.v1.ModelExportOutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\ModelExportOutputConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ModelExportOutputConfig::class); - $this->output_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GcsDestination.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GcsDestination.php deleted file mode 100644 index 1507ee3b65c3..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GcsDestination.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.automl.v1.GcsDestination - */ -class GcsDestination extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Google Cloud Storage URI to output directory, up to 2000 - * characters long. - * Accepted forms: - * * Prefix path: gs://bucket/directory - * The requesting user must have write permission to the bucket. - * The directory is created if it doesn't exist. - * - * Generated from protobuf field string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_uri_prefix = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $output_uri_prefix - * Required. Google Cloud Storage URI to output directory, up to 2000 - * characters long. - * Accepted forms: - * * Prefix path: gs://bucket/directory - * The requesting user must have write permission to the bucket. - * The directory is created if it doesn't exist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * Required. Google Cloud Storage URI to output directory, up to 2000 - * characters long. - * Accepted forms: - * * Prefix path: gs://bucket/directory - * The requesting user must have write permission to the bucket. - * The directory is created if it doesn't exist. - * - * Generated from protobuf field string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getOutputUriPrefix() - { - return $this->output_uri_prefix; - } - - /** - * Required. Google Cloud Storage URI to output directory, up to 2000 - * characters long. - * Accepted forms: - * * Prefix path: gs://bucket/directory - * The requesting user must have write permission to the bucket. - * The directory is created if it doesn't exist. - * - * Generated from protobuf field string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setOutputUriPrefix($var) - { - GPBUtil::checkString($var, True); - $this->output_uri_prefix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GcsSource.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GcsSource.php deleted file mode 100644 index f1ee2813c293..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GcsSource.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.automl.v1.GcsSource - */ -class GcsSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Google Cloud Storage URIs to input files, up to 2000 - * characters long. Accepted forms: - * * Full object path, e.g. gs://bucket/directory/object.csv - * - * Generated from protobuf field repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $input_uris; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $input_uris - * Required. Google Cloud Storage URIs to input files, up to 2000 - * characters long. Accepted forms: - * * Full object path, e.g. gs://bucket/directory/object.csv - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * Required. Google Cloud Storage URIs to input files, up to 2000 - * characters long. Accepted forms: - * * Full object path, e.g. gs://bucket/directory/object.csv - * - * Generated from protobuf field repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInputUris() - { - return $this->input_uris; - } - - /** - * Required. Google Cloud Storage URIs to input files, up to 2000 - * characters long. Accepted forms: - * * Full object path, e.g. gs://bucket/directory/object.csv - * - * Generated from protobuf field repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInputUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->input_uris = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetAnnotationSpecRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetAnnotationSpecRequest.php deleted file mode 100644 index b6537a7c5566..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetAnnotationSpecRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.GetAnnotationSpecRequest - */ -class GetAnnotationSpecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the annotation spec to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the annotation spec to retrieve. Please see - * {@see AutoMlClient::annotationSpecName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\GetAnnotationSpecRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the annotation spec to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the annotation spec to retrieve. - * - * 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 annotation spec to retrieve. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetDatasetRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetDatasetRequest.php deleted file mode 100644 index e72ac9b107a3..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetDatasetRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.GetDatasetRequest - */ -class GetDatasetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the dataset to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the dataset to retrieve. Please see - * {@see AutoMlClient::datasetName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\GetDatasetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the dataset to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the dataset to retrieve. - * - * 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 dataset to retrieve. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetModelEvaluationRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetModelEvaluationRequest.php deleted file mode 100644 index 486af4fea40c..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetModelEvaluationRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.GetModelEvaluationRequest - */ -class GetModelEvaluationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the model evaluation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the model evaluation. Please see - * {@see AutoMlClient::modelEvaluationName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\GetModelEvaluationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the model evaluation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the model evaluation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name for the model evaluation. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetModelRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetModelRequest.php deleted file mode 100644 index a318754dbc1a..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/GetModelRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.GetModelRequest - */ -class GetModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the model. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the model. Please see - * {@see AutoMlClient::modelName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\GetModelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the model. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the model. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the model. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Image.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Image.php deleted file mode 100644 index e419a45e3363..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Image.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.automl.v1.Image - */ -class Image extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. HTTP URI to the thumbnail image. - * - * Generated from protobuf field string thumbnail_uri = 4; - */ - protected $thumbnail_uri = ''; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_bytes - * Image content represented as a stream of bytes. - * Note: As with all `bytes` fields, protobuffers use a pure binary - * representation, whereas JSON representations use base64. - * @type string $thumbnail_uri - * Output only. HTTP URI to the thumbnail image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\DataItems::initOnce(); - parent::__construct($data); - } - - /** - * Image content represented as a stream of bytes. - * Note: As with all `bytes` fields, protobuffers use a pure binary - * representation, whereas JSON representations use base64. - * - * Generated from protobuf field bytes image_bytes = 1; - * @return string - */ - public function getImageBytes() - { - return $this->readOneof(1); - } - - public function hasImageBytes() - { - return $this->hasOneof(1); - } - - /** - * Image content represented as a stream of bytes. - * Note: As with all `bytes` fields, protobuffers use a pure binary - * representation, whereas JSON representations use base64. - * - * Generated from protobuf field bytes image_bytes = 1; - * @param string $var - * @return $this - */ - public function setImageBytes($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Output only. HTTP URI to the thumbnail image. - * - * Generated from protobuf field string thumbnail_uri = 4; - * @return string - */ - public function getThumbnailUri() - { - return $this->thumbnail_uri; - } - - /** - * Output only. HTTP URI to the thumbnail image. - * - * Generated from protobuf field string thumbnail_uri = 4; - * @param string $var - * @return $this - */ - public function setThumbnailUri($var) - { - GPBUtil::checkString($var, True); - $this->thumbnail_uri = $var; - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationDatasetMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationDatasetMetadata.php deleted file mode 100644 index cdff5eb4abcc..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationDatasetMetadata.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.automl.v1.ImageClassificationDatasetMetadata - */ -class ImageClassificationDatasetMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Type of the classification problem. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $classification_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $classification_type - * Required. Type of the classification problem. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Required. Type of the classification problem. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getClassificationType() - { - return $this->classification_type; - } - - /** - * Required. Type of the classification problem. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setClassificationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1\ClassificationType::class); - $this->classification_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationModelDeploymentMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationModelDeploymentMetadata.php deleted file mode 100644 index 6feef139228c..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationModelDeploymentMetadata.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata - */ -class ImageClassificationModelDeploymentMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [node_qps][google.cloud.automl.v1.ImageClassificationModelMetadata.node_qps]. - * Must be between 1 and 100, inclusive on both ends. - * - * Generated from protobuf field int64 node_count = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $node_count - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [node_qps][google.cloud.automl.v1.ImageClassificationModelMetadata.node_qps]. - * Must be between 1 and 100, inclusive on both ends. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [node_qps][google.cloud.automl.v1.ImageClassificationModelMetadata.node_qps]. - * Must be between 1 and 100, inclusive on both ends. - * - * Generated from protobuf field int64 node_count = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int|string - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [node_qps][google.cloud.automl.v1.ImageClassificationModelMetadata.node_qps]. - * Must be between 1 and 100, inclusive on both ends. - * - * Generated from protobuf field int64 node_count = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt64($var); - $this->node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationModelMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationModelMetadata.php deleted file mode 100644 index 9ae527709873..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageClassificationModelMetadata.php +++ /dev/null @@ -1,491 +0,0 @@ -google.cloud.automl.v1.ImageClassificationModelMetadata - */ -class ImageClassificationModelMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The ID of the `base` model. If it is specified, the new model - * will be created based on the `base` model. Otherwise, the new model will be - * created from scratch. The `base` model must be in the same - * `project` and `location` as the new model to create, and have the same - * `model_type`. - * - * Generated from protobuf field string base_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $base_model_id = ''; - /** - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud`(default), the train budget must be between 8,000 - * and 800,000 milli node hours, inclusive. The default value is 192, 000 - * which represents one day in wall time. For model type - * `mobile-low-latency-1`, `mobile-versatile-1`, `mobile-high-accuracy-1`, - * `mobile-core-ml-low-latency-1`, `mobile-core-ml-versatile-1`, - * `mobile-core-ml-high-accuracy-1`, the train budget must be between 1,000 - * and 100,000 milli node hours, inclusive. The default value is 24, 000 which - * represents one day in wall time. - * - * Generated from protobuf field int64 train_budget_milli_node_hours = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $train_budget_milli_node_hours = 0; - /** - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * - * Generated from protobuf field int64 train_cost_milli_node_hours = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $train_cost_milli_node_hours = 0; - /** - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * - * Generated from protobuf field string stop_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $stop_reason = ''; - /** - * Optional. Type of the model. The available values are: - * * `cloud` - Model to be used via prediction calls to AutoML API. - * This is the default value. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * * `mobile-core-ml-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. Expected to have low latency, but may have - * lower prediction quality than other models. - * * `mobile-core-ml-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. - * * `mobile-core-ml-high-accuracy-1` - A model that, in addition to - * providing prediction via AutoML API, can also be exported - * (see [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with - * Core ML afterwards. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * - * Generated from protobuf field string model_type = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $model_type = ''; - /** - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * - * Generated from protobuf field double node_qps = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_qps = 0.0; - /** - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the node_qps field. - * - * Generated from protobuf field int64 node_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $base_model_id - * Optional. The ID of the `base` model. If it is specified, the new model - * will be created based on the `base` model. Otherwise, the new model will be - * created from scratch. The `base` model must be in the same - * `project` and `location` as the new model to create, and have the same - * `model_type`. - * @type int|string $train_budget_milli_node_hours - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud`(default), the train budget must be between 8,000 - * and 800,000 milli node hours, inclusive. The default value is 192, 000 - * which represents one day in wall time. For model type - * `mobile-low-latency-1`, `mobile-versatile-1`, `mobile-high-accuracy-1`, - * `mobile-core-ml-low-latency-1`, `mobile-core-ml-versatile-1`, - * `mobile-core-ml-high-accuracy-1`, the train budget must be between 1,000 - * and 100,000 milli node hours, inclusive. The default value is 24, 000 which - * represents one day in wall time. - * @type int|string $train_cost_milli_node_hours - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * @type string $stop_reason - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * @type string $model_type - * Optional. Type of the model. The available values are: - * * `cloud` - Model to be used via prediction calls to AutoML API. - * This is the default value. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * * `mobile-core-ml-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. Expected to have low latency, but may have - * lower prediction quality than other models. - * * `mobile-core-ml-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. - * * `mobile-core-ml-high-accuracy-1` - A model that, in addition to - * providing prediction via AutoML API, can also be exported - * (see [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with - * Core ML afterwards. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * @type float $node_qps - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * @type int|string $node_count - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the node_qps field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The ID of the `base` model. If it is specified, the new model - * will be created based on the `base` model. Otherwise, the new model will be - * created from scratch. The `base` model must be in the same - * `project` and `location` as the new model to create, and have the same - * `model_type`. - * - * Generated from protobuf field string base_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBaseModelId() - { - return $this->base_model_id; - } - - /** - * Optional. The ID of the `base` model. If it is specified, the new model - * will be created based on the `base` model. Otherwise, the new model will be - * created from scratch. The `base` model must be in the same - * `project` and `location` as the new model to create, and have the same - * `model_type`. - * - * Generated from protobuf field string base_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBaseModelId($var) - { - GPBUtil::checkString($var, True); - $this->base_model_id = $var; - - return $this; - } - - /** - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud`(default), the train budget must be between 8,000 - * and 800,000 milli node hours, inclusive. The default value is 192, 000 - * which represents one day in wall time. For model type - * `mobile-low-latency-1`, `mobile-versatile-1`, `mobile-high-accuracy-1`, - * `mobile-core-ml-low-latency-1`, `mobile-core-ml-versatile-1`, - * `mobile-core-ml-high-accuracy-1`, the train budget must be between 1,000 - * and 100,000 milli node hours, inclusive. The default value is 24, 000 which - * represents one day in wall time. - * - * Generated from protobuf field int64 train_budget_milli_node_hours = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getTrainBudgetMilliNodeHours() - { - return $this->train_budget_milli_node_hours; - } - - /** - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud`(default), the train budget must be between 8,000 - * and 800,000 milli node hours, inclusive. The default value is 192, 000 - * which represents one day in wall time. For model type - * `mobile-low-latency-1`, `mobile-versatile-1`, `mobile-high-accuracy-1`, - * `mobile-core-ml-low-latency-1`, `mobile-core-ml-versatile-1`, - * `mobile-core-ml-high-accuracy-1`, the train budget must be between 1,000 - * and 100,000 milli node hours, inclusive. The default value is 24, 000 which - * represents one day in wall time. - * - * Generated from protobuf field int64 train_budget_milli_node_hours = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setTrainBudgetMilliNodeHours($var) - { - GPBUtil::checkInt64($var); - $this->train_budget_milli_node_hours = $var; - - return $this; - } - - /** - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * - * Generated from protobuf field int64 train_cost_milli_node_hours = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTrainCostMilliNodeHours() - { - return $this->train_cost_milli_node_hours; - } - - /** - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * - * Generated from protobuf field int64 train_cost_milli_node_hours = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTrainCostMilliNodeHours($var) - { - GPBUtil::checkInt64($var); - $this->train_cost_milli_node_hours = $var; - - return $this; - } - - /** - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * - * Generated from protobuf field string stop_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStopReason() - { - return $this->stop_reason; - } - - /** - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * - * Generated from protobuf field string stop_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStopReason($var) - { - GPBUtil::checkString($var, True); - $this->stop_reason = $var; - - return $this; - } - - /** - * Optional. Type of the model. The available values are: - * * `cloud` - Model to be used via prediction calls to AutoML API. - * This is the default value. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * * `mobile-core-ml-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. Expected to have low latency, but may have - * lower prediction quality than other models. - * * `mobile-core-ml-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. - * * `mobile-core-ml-high-accuracy-1` - A model that, in addition to - * providing prediction via AutoML API, can also be exported - * (see [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with - * Core ML afterwards. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * - * Generated from protobuf field string model_type = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getModelType() - { - return $this->model_type; - } - - /** - * Optional. Type of the model. The available values are: - * * `cloud` - Model to be used via prediction calls to AutoML API. - * This is the default value. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * * `mobile-core-ml-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. Expected to have low latency, but may have - * lower prediction quality than other models. - * * `mobile-core-ml-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with Core - * ML afterwards. - * * `mobile-core-ml-high-accuracy-1` - A model that, in addition to - * providing prediction via AutoML API, can also be exported - * (see [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile device with - * Core ML afterwards. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * - * Generated from protobuf field string model_type = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setModelType($var) - { - GPBUtil::checkString($var, True); - $this->model_type = $var; - - return $this; - } - - /** - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * - * Generated from protobuf field double node_qps = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getNodeQps() - { - return $this->node_qps; - } - - /** - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * - * Generated from protobuf field double node_qps = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setNodeQps($var) - { - GPBUtil::checkDouble($var); - $this->node_qps = $var; - - return $this; - } - - /** - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the node_qps field. - * - * Generated from protobuf field int64 node_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the node_qps field. - * - * Generated from protobuf field int64 node_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt64($var); - $this->node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionAnnotation.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionAnnotation.php deleted file mode 100644 index d14e42e9405c..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionAnnotation.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.automl.v1.ImageObjectDetectionAnnotation - */ -class ImageObjectDetectionAnnotation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The rectangle representing the object location. - * - * Generated from protobuf field .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - */ - protected $bounding_box = null; - /** - * Output only. The confidence that this annotation is positive for the parent example, - * value in [0, 1], higher means higher positivity confidence. - * - * Generated from protobuf field float score = 2; - */ - protected $score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\BoundingPoly $bounding_box - * Output only. The rectangle representing the object location. - * @type float $score - * Output only. The confidence that this annotation is positive for the parent example, - * value in [0, 1], higher means higher positivity confidence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Detection::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The rectangle representing the object location. - * - * Generated from protobuf field .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * @return \Google\Cloud\AutoMl\V1\BoundingPoly|null - */ - public function getBoundingBox() - { - return $this->bounding_box; - } - - public function hasBoundingBox() - { - return isset($this->bounding_box); - } - - public function clearBoundingBox() - { - unset($this->bounding_box); - } - - /** - * Output only. The rectangle representing the object location. - * - * Generated from protobuf field .google.cloud.automl.v1.BoundingPoly bounding_box = 1; - * @param \Google\Cloud\AutoMl\V1\BoundingPoly $var - * @return $this - */ - public function setBoundingBox($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\BoundingPoly::class); - $this->bounding_box = $var; - - return $this; - } - - /** - * Output only. The confidence that this annotation is positive for the parent example, - * value in [0, 1], higher means higher positivity confidence. - * - * Generated from protobuf field float score = 2; - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * Output only. The confidence that this annotation is positive for the parent example, - * value in [0, 1], higher means higher positivity confidence. - * - * Generated from protobuf field float score = 2; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionDatasetMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionDatasetMetadata.php deleted file mode 100644 index a2ba5e2adecf..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionDatasetMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata - */ -class ImageObjectDetectionDatasetMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Image::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionEvaluationMetrics.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionEvaluationMetrics.php deleted file mode 100644 index c76660d7f663..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionEvaluationMetrics.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics - */ -class ImageObjectDetectionEvaluationMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The total number of bounding boxes (i.e. summed over all - * images) the ground truth used to create this evaluation had. - * - * Generated from protobuf field int32 evaluated_bounding_box_count = 1; - */ - protected $evaluated_bounding_box_count = 0; - /** - * Output only. The bounding boxes match metrics for each - * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * pair. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - */ - private $bounding_box_metrics_entries; - /** - * Output only. The single metric for bounding boxes evaluation: - * the mean_average_precision averaged over all bounding_box_metrics_entries. - * - * Generated from protobuf field float bounding_box_mean_average_precision = 3; - */ - protected $bounding_box_mean_average_precision = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $evaluated_bounding_box_count - * Output only. The total number of bounding boxes (i.e. summed over all - * images) the ground truth used to create this evaluation had. - * @type array<\Google\Cloud\AutoMl\V1\BoundingBoxMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $bounding_box_metrics_entries - * Output only. The bounding boxes match metrics for each - * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * pair. - * @type float $bounding_box_mean_average_precision - * Output only. The single metric for bounding boxes evaluation: - * the mean_average_precision averaged over all bounding_box_metrics_entries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Detection::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The total number of bounding boxes (i.e. summed over all - * images) the ground truth used to create this evaluation had. - * - * Generated from protobuf field int32 evaluated_bounding_box_count = 1; - * @return int - */ - public function getEvaluatedBoundingBoxCount() - { - return $this->evaluated_bounding_box_count; - } - - /** - * Output only. The total number of bounding boxes (i.e. summed over all - * images) the ground truth used to create this evaluation had. - * - * Generated from protobuf field int32 evaluated_bounding_box_count = 1; - * @param int $var - * @return $this - */ - public function setEvaluatedBoundingBoxCount($var) - { - GPBUtil::checkInt32($var); - $this->evaluated_bounding_box_count = $var; - - return $this; - } - - /** - * Output only. The bounding boxes match metrics for each - * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * pair. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBoundingBoxMetricsEntries() - { - return $this->bounding_box_metrics_entries; - } - - /** - * Output only. The bounding boxes match metrics for each - * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 - * pair. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; - * @param array<\Google\Cloud\AutoMl\V1\BoundingBoxMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBoundingBoxMetricsEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\BoundingBoxMetricsEntry::class); - $this->bounding_box_metrics_entries = $arr; - - return $this; - } - - /** - * Output only. The single metric for bounding boxes evaluation: - * the mean_average_precision averaged over all bounding_box_metrics_entries. - * - * Generated from protobuf field float bounding_box_mean_average_precision = 3; - * @return float - */ - public function getBoundingBoxMeanAveragePrecision() - { - return $this->bounding_box_mean_average_precision; - } - - /** - * Output only. The single metric for bounding boxes evaluation: - * the mean_average_precision averaged over all bounding_box_metrics_entries. - * - * Generated from protobuf field float bounding_box_mean_average_precision = 3; - * @param float $var - * @return $this - */ - public function setBoundingBoxMeanAveragePrecision($var) - { - GPBUtil::checkFloat($var); - $this->bounding_box_mean_average_precision = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionModelDeploymentMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionModelDeploymentMetadata.php deleted file mode 100644 index aa2ba7040637..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionModelDeploymentMetadata.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata - */ -class ImageObjectDetectionModelDeploymentMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [qps_per_node][google.cloud.automl.v1.ImageObjectDetectionModelMetadata.qps_per_node]. - * Must be between 1 and 100, inclusive on both ends. - * - * Generated from protobuf field int64 node_count = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $node_count - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [qps_per_node][google.cloud.automl.v1.ImageObjectDetectionModelMetadata.qps_per_node]. - * Must be between 1 and 100, inclusive on both ends. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [qps_per_node][google.cloud.automl.v1.ImageObjectDetectionModelMetadata.qps_per_node]. - * Must be between 1 and 100, inclusive on both ends. - * - * Generated from protobuf field int64 node_count = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return int|string - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Input only. The number of nodes to deploy the model on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the model's - * [qps_per_node][google.cloud.automl.v1.ImageObjectDetectionModelMetadata.qps_per_node]. - * Must be between 1 and 100, inclusive on both ends. - * - * Generated from protobuf field int64 node_count = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt64($var); - $this->node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionModelMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionModelMetadata.php deleted file mode 100644 index 522fb87ccb8f..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImageObjectDetectionModelMetadata.php +++ /dev/null @@ -1,405 +0,0 @@ -google.cloud.automl.v1.ImageObjectDetectionModelMetadata - */ -class ImageObjectDetectionModelMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Type of the model. The available values are: - * * `cloud-high-accuracy-1` - (default) A model to be used via prediction - * calls to AutoML API. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * * `cloud-low-latency-1` - A model to be used via prediction - * calls to AutoML API. Expected to have low latency, but may - * have lower prediction quality than other models. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * - * Generated from protobuf field string model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $model_type = ''; - /** - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the qps_per_node field. - * - * Generated from protobuf field int64 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_count = 0; - /** - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * - * Generated from protobuf field double node_qps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_qps = 0.0; - /** - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * - * Generated from protobuf field string stop_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $stop_reason = ''; - /** - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`, - * the train budget must be between 20,000 and 900,000 milli node hours, - * inclusive. The default value is 216, 000 which represents one day in - * wall time. - * For model type `mobile-low-latency-1`, `mobile-versatile-1`, - * `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`, - * `mobile-core-ml-versatile-1`, `mobile-core-ml-high-accuracy-1`, the train - * budget must be between 1,000 and 100,000 milli node hours, inclusive. - * The default value is 24, 000 which represents one day in wall time. - * - * Generated from protobuf field int64 train_budget_milli_node_hours = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $train_budget_milli_node_hours = 0; - /** - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * - * Generated from protobuf field int64 train_cost_milli_node_hours = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $train_cost_milli_node_hours = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $model_type - * Optional. Type of the model. The available values are: - * * `cloud-high-accuracy-1` - (default) A model to be used via prediction - * calls to AutoML API. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * * `cloud-low-latency-1` - A model to be used via prediction - * calls to AutoML API. Expected to have low latency, but may - * have lower prediction quality than other models. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * @type int|string $node_count - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the qps_per_node field. - * @type float $node_qps - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * @type string $stop_reason - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * @type int|string $train_budget_milli_node_hours - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`, - * the train budget must be between 20,000 and 900,000 milli node hours, - * inclusive. The default value is 216, 000 which represents one day in - * wall time. - * For model type `mobile-low-latency-1`, `mobile-versatile-1`, - * `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`, - * `mobile-core-ml-versatile-1`, `mobile-core-ml-high-accuracy-1`, the train - * budget must be between 1,000 and 100,000 milli node hours, inclusive. - * The default value is 24, 000 which represents one day in wall time. - * @type int|string $train_cost_milli_node_hours - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Type of the model. The available values are: - * * `cloud-high-accuracy-1` - (default) A model to be used via prediction - * calls to AutoML API. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * * `cloud-low-latency-1` - A model to be used via prediction - * calls to AutoML API. Expected to have low latency, but may - * have lower prediction quality than other models. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * - * Generated from protobuf field string model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getModelType() - { - return $this->model_type; - } - - /** - * Optional. Type of the model. The available values are: - * * `cloud-high-accuracy-1` - (default) A model to be used via prediction - * calls to AutoML API. Expected to have a higher latency, but - * should also have a higher prediction quality than other - * models. - * * `cloud-low-latency-1` - A model to be used via prediction - * calls to AutoML API. Expected to have low latency, but may - * have lower prediction quality than other models. - * * `mobile-low-latency-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have low latency, but - * may have lower prediction quality than other models. - * * `mobile-versatile-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. - * * `mobile-high-accuracy-1` - A model that, in addition to providing - * prediction via AutoML API, can also be exported (see - * [AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel]) and used on a mobile or edge device - * with TensorFlow afterwards. Expected to have a higher - * latency, but should also have a higher prediction quality - * than other models. - * - * Generated from protobuf field string model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setModelType($var) - { - GPBUtil::checkString($var, True); - $this->model_type = $var; - - return $this; - } - - /** - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the qps_per_node field. - * - * Generated from protobuf field int64 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Output only. The number of nodes this model is deployed on. A node is an - * abstraction of a machine resource, which can handle online prediction QPS - * as given in the qps_per_node field. - * - * Generated from protobuf field int64 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt64($var); - $this->node_count = $var; - - return $this; - } - - /** - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * - * Generated from protobuf field double node_qps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getNodeQps() - { - return $this->node_qps; - } - - /** - * Output only. An approximate number of online prediction QPS that can - * be supported by this model per each node on which it is deployed. - * - * Generated from protobuf field double node_qps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setNodeQps($var) - { - GPBUtil::checkDouble($var); - $this->node_qps = $var; - - return $this; - } - - /** - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * - * Generated from protobuf field string stop_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStopReason() - { - return $this->stop_reason; - } - - /** - * Output only. The reason that this create model operation stopped, - * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. - * - * Generated from protobuf field string stop_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStopReason($var) - { - GPBUtil::checkString($var, True); - $this->stop_reason = $var; - - return $this; - } - - /** - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`, - * the train budget must be between 20,000 and 900,000 milli node hours, - * inclusive. The default value is 216, 000 which represents one day in - * wall time. - * For model type `mobile-low-latency-1`, `mobile-versatile-1`, - * `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`, - * `mobile-core-ml-versatile-1`, `mobile-core-ml-high-accuracy-1`, the train - * budget must be between 1,000 and 100,000 milli node hours, inclusive. - * The default value is 24, 000 which represents one day in wall time. - * - * Generated from protobuf field int64 train_budget_milli_node_hours = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getTrainBudgetMilliNodeHours() - { - return $this->train_budget_milli_node_hours; - } - - /** - * Optional. The train budget of creating this model, expressed in milli node - * hours i.e. 1,000 value in this field means 1 node hour. The actual - * `train_cost` will be equal or less than this value. If further model - * training ceases to provide any improvements, it will stop without using - * full budget and the stop_reason will be `MODEL_CONVERGED`. - * Note, node_hour = actual_hour * number_of_nodes_invovled. - * For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`, - * the train budget must be between 20,000 and 900,000 milli node hours, - * inclusive. The default value is 216, 000 which represents one day in - * wall time. - * For model type `mobile-low-latency-1`, `mobile-versatile-1`, - * `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`, - * `mobile-core-ml-versatile-1`, `mobile-core-ml-high-accuracy-1`, the train - * budget must be between 1,000 and 100,000 milli node hours, inclusive. - * The default value is 24, 000 which represents one day in wall time. - * - * Generated from protobuf field int64 train_budget_milli_node_hours = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setTrainBudgetMilliNodeHours($var) - { - GPBUtil::checkInt64($var); - $this->train_budget_milli_node_hours = $var; - - return $this; - } - - /** - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * - * Generated from protobuf field int64 train_cost_milli_node_hours = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTrainCostMilliNodeHours() - { - return $this->train_cost_milli_node_hours; - } - - /** - * Output only. The actual train cost of creating this model, expressed in - * milli node hours, i.e. 1,000 value in this field means 1 node hour. - * Guaranteed to not exceed the train budget. - * - * Generated from protobuf field int64 train_cost_milli_node_hours = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTrainCostMilliNodeHours($var) - { - GPBUtil::checkInt64($var); - $this->train_cost_milli_node_hours = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImportDataOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImportDataOperationMetadata.php deleted file mode 100644 index 33f3202cd1f0..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImportDataOperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.ImportDataOperationMetadata - */ -class ImportDataOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImportDataRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImportDataRequest.php deleted file mode 100644 index c8b094af5d22..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ImportDataRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.automl.v1.ImportDataRequest - */ -class ImportDataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Dataset name. Dataset must already exist. All imported - * annotations and examples will be added. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The desired input location and its domain specific semantics, - * if any. - * - * Generated from protobuf field .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $input_config = null; - - /** - * @param string $name Required. Dataset name. Dataset must already exist. All imported - * annotations and examples will be added. Please see - * {@see AutoMlClient::datasetName()} for help formatting this field. - * @param \Google\Cloud\AutoMl\V1\InputConfig $inputConfig Required. The desired input location and its domain specific semantics, - * if any. - * - * @return \Google\Cloud\AutoMl\V1\ImportDataRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\AutoMl\V1\InputConfig $inputConfig): self - { - return (new self()) - ->setName($name) - ->setInputConfig($inputConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Dataset name. Dataset must already exist. All imported - * annotations and examples will be added. - * @type \Google\Cloud\AutoMl\V1\InputConfig $input_config - * Required. The desired input location and its domain specific semantics, - * if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Dataset name. Dataset must already exist. All imported - * annotations and examples will be added. - * - * 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. Dataset name. Dataset must already exist. All imported - * annotations and examples will be added. - * - * 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; - } - - /** - * Required. The desired input location and its domain specific semantics, - * if any. - * - * Generated from protobuf field .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\InputConfig|null - */ - public function getInputConfig() - { - return $this->input_config; - } - - public function hasInputConfig() - { - return isset($this->input_config); - } - - public function clearInputConfig() - { - unset($this->input_config); - } - - /** - * Required. The desired input location and its domain specific semantics, - * if any. - * - * Generated from protobuf field .google.cloud.automl.v1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\InputConfig $var - * @return $this - */ - public function setInputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\InputConfig::class); - $this->input_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/InputConfig.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/InputConfig.php deleted file mode 100644 index 8018b34a8be6..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/InputConfig.php +++ /dev/null @@ -1,617 +0,0 @@ -AutoML Vision - *
Classification
- * See [Preparing your training - * data](https://cloud.google.com/vision/automl/docs/prepare) for more - * information. - * CSV file(s) with each line in format: - * ML_USE,GCS_FILE_PATH,LABEL,LABEL,... - * * `ML_USE` - Identifies the data set that the current row (file) applies - * to. - * This value can be one of the following: - * * `TRAIN` - Rows in this file are used to train the model. - * * `TEST` - Rows in this file are used to test the model during training. - * * `UNASSIGNED` - Rows in this file are not categorized. They are - * Automatically divided into train and test data. 80% for training and - * 20% for testing. - * * `GCS_FILE_PATH` - The Google Cloud Storage location of an image of up to - * 30MB in size. Supported extensions: .JPEG, .GIF, .PNG, .WEBP, .BMP, - * .TIFF, .ICO. - * * `LABEL` - A label that identifies the object in the image. - * For the `MULTICLASS` classification type, at most one `LABEL` is allowed - * per image. If an image has not yet been labeled, then it should be - * mentioned just once with no `LABEL`. - * Some sample rows: - * TRAIN,gs://folder/image1.jpg,daisy - * TEST,gs://folder/image2.jpg,dandelion,tulip,rose - * UNASSIGNED,gs://folder/image3.jpg,daisy - * UNASSIGNED,gs://folder/image4.jpg - *
Object Detection
- * See [Preparing your training - * data](https://cloud.google.com/vision/automl/object-detection/docs/prepare) - * for more information. - * A CSV file(s) with each line in format: - * ML_USE,GCS_FILE_PATH,[LABEL],(BOUNDING_BOX | ,,,,,,,) - * * `ML_USE` - Identifies the data set that the current row (file) applies - * to. - * This value can be one of the following: - * * `TRAIN` - Rows in this file are used to train the model. - * * `TEST` - Rows in this file are used to test the model during training. - * * `UNASSIGNED` - Rows in this file are not categorized. They are - * Automatically divided into train and test data. 80% for training and - * 20% for testing. - * * `GCS_FILE_PATH` - The Google Cloud Storage location of an image of up to - * 30MB in size. Supported extensions: .JPEG, .GIF, .PNG. Each image - * is assumed to be exhaustively labeled. - * * `LABEL` - A label that identifies the object in the image specified by the - * `BOUNDING_BOX`. - * * `BOUNDING BOX` - The vertices of an object in the example image. - * The minimum allowed `BOUNDING_BOX` edge length is 0.01, and no more than - * 500 `BOUNDING_BOX` instances per image are allowed (one `BOUNDING_BOX` - * per line). If an image has no looked for objects then it should be - * mentioned just once with no LABEL and the ",,,,,,," in place of the - * `BOUNDING_BOX`. - * **Four sample rows:** - * TRAIN,gs://folder/image1.png,car,0.1,0.1,,,0.3,0.3,, - * TRAIN,gs://folder/image1.png,bike,.7,.6,,,.8,.9,, - * UNASSIGNED,gs://folder/im2.png,car,0.1,0.1,0.2,0.1,0.2,0.3,0.1,0.3 - * TEST,gs://folder/im3.png,,,,,,,,, - *
- *
- *

AutoML Video Intelligence

- *
Classification
- * See [Preparing your training - * data](https://cloud.google.com/video-intelligence/automl/docs/prepare) for - * more information. - * CSV file(s) with each line in format: - * ML_USE,GCS_FILE_PATH - * For `ML_USE`, do not use `VALIDATE`. - * `GCS_FILE_PATH` is the path to another .csv file that describes training - * example for a given `ML_USE`, using the following row format: - * GCS_FILE_PATH,(LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END | ,,) - * Here `GCS_FILE_PATH` leads to a video of up to 50GB in size and up - * to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. - * `TIME_SEGMENT_START` and `TIME_SEGMENT_END` must be within the - * length of the video, and the end time must be after the start time. Any - * segment of a video which has one or more labels on it, is considered a - * hard negative for all other labels. Any segment with no labels on - * it is considered to be unknown. If a whole video is unknown, then - * it should be mentioned just once with ",," in place of `LABEL, - * TIME_SEGMENT_START,TIME_SEGMENT_END`. - * Sample top level CSV file: - * TRAIN,gs://folder/train_videos.csv - * TEST,gs://folder/test_videos.csv - * UNASSIGNED,gs://folder/other_videos.csv - * Sample rows of a CSV file for a particular ML_USE: - * gs://folder/video1.avi,car,120,180.000021 - * gs://folder/video1.avi,bike,150,180.000021 - * gs://folder/vid2.avi,car,0,60.5 - * gs://folder/vid3.avi,,, - *
Object Tracking
- * See [Preparing your training - * data](/video-intelligence/automl/object-tracking/docs/prepare) for more - * information. - * CSV file(s) with each line in format: - * ML_USE,GCS_FILE_PATH - * For `ML_USE`, do not use `VALIDATE`. - * `GCS_FILE_PATH` is the path to another .csv file that describes training - * example for a given `ML_USE`, using the following row format: - * GCS_FILE_PATH,LABEL,[INSTANCE_ID],TIMESTAMP,BOUNDING_BOX - * or - * GCS_FILE_PATH,,,,,,,,,, - * Here `GCS_FILE_PATH` leads to a video of up to 50GB in size and up - * to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. - * Providing `INSTANCE_ID`s can help to obtain a better model. When - * a specific labeled entity leaves the video frame, and shows up - * afterwards it is not required, albeit preferable, that the same - * `INSTANCE_ID` is given to it. - * `TIMESTAMP` must be within the length of the video, the - * `BOUNDING_BOX` is assumed to be drawn on the closest video's frame - * to the `TIMESTAMP`. Any mentioned by the `TIMESTAMP` frame is expected - * to be exhaustively labeled and no more than 500 `BOUNDING_BOX`-es per - * frame are allowed. If a whole video is unknown, then it should be - * mentioned just once with ",,,,,,,,,," in place of `LABEL, - * [INSTANCE_ID],TIMESTAMP,BOUNDING_BOX`. - * Sample top level CSV file: - * TRAIN,gs://folder/train_videos.csv - * TEST,gs://folder/test_videos.csv - * UNASSIGNED,gs://folder/other_videos.csv - * Seven sample rows of a CSV file for a particular ML_USE: - * gs://folder/video1.avi,car,1,12.10,0.8,0.8,0.9,0.8,0.9,0.9,0.8,0.9 - * gs://folder/video1.avi,car,1,12.90,0.4,0.8,0.5,0.8,0.5,0.9,0.4,0.9 - * gs://folder/video1.avi,car,2,12.10,.4,.2,.5,.2,.5,.3,.4,.3 - * gs://folder/video1.avi,car,2,12.90,.8,.2,,,.9,.3,, - * gs://folder/video1.avi,bike,,12.50,.45,.45,,,.55,.55,, - * gs://folder/video2.avi,car,1,0,.1,.9,,,.9,.1,, - * gs://folder/video2.avi,,,,,,,,,,, - *
- *
- *

AutoML Natural Language

- *
Entity Extraction
- * See [Preparing your training - * data](/natural-language/automl/entity-analysis/docs/prepare) for more - * information. - * One or more CSV file(s) with each line in the following format: - * ML_USE,GCS_FILE_PATH - * * `ML_USE` - Identifies the data set that the current row (file) applies - * to. - * This value can be one of the following: - * * `TRAIN` - Rows in this file are used to train the model. - * * `TEST` - Rows in this file are used to test the model during training. - * * `UNASSIGNED` - Rows in this file are not categorized. They are - * Automatically divided into train and test data. 80% for training and - * 20% for testing.. - * * `GCS_FILE_PATH` - a Identifies JSON Lines (.JSONL) file stored in - * Google Cloud Storage that contains in-line text in-line as documents - * for model training. - * After the training data set has been determined from the `TRAIN` and - * `UNASSIGNED` CSV files, the training data is divided into train and - * validation data sets. 70% for training and 30% for validation. - * For example: - * TRAIN,gs://folder/file1.jsonl - * VALIDATE,gs://folder/file2.jsonl - * TEST,gs://folder/file3.jsonl - * **In-line JSONL files** - * In-line .JSONL files contain, per line, a JSON document that wraps a - * [`text_snippet`][google.cloud.automl.v1.TextSnippet] field followed by - * one or more [`annotations`][google.cloud.automl.v1.AnnotationPayload] - * fields, which have `display_name` and `text_extraction` fields to describe - * the entity from the text snippet. Multiple JSON documents can be separated - * using line breaks (\n). - * The supplied text must be annotated exhaustively. For example, if you - * include the text "horse", but do not label it as "animal", - * then "horse" is assumed to not be an "animal". - * Any given text snippet content must have 30,000 characters or - * less, and also be UTF-8 NFC encoded. ASCII is accepted as it is - * UTF-8 NFC encoded. - * For example: - * { - * "text_snippet": { - * "content": "dog car cat" - * }, - * "annotations": [ - * { - * "display_name": "animal", - * "text_extraction": { - * "text_segment": {"start_offset": 0, "end_offset": 2} - * } - * }, - * { - * "display_name": "vehicle", - * "text_extraction": { - * "text_segment": {"start_offset": 4, "end_offset": 6} - * } - * }, - * { - * "display_name": "animal", - * "text_extraction": { - * "text_segment": {"start_offset": 8, "end_offset": 10} - * } - * } - * ] - * }\n - * { - * "text_snippet": { - * "content": "This dog is good." - * }, - * "annotations": [ - * { - * "display_name": "animal", - * "text_extraction": { - * "text_segment": {"start_offset": 5, "end_offset": 7} - * } - * } - * ] - * } - * **JSONL files that reference documents** - * .JSONL files contain, per line, a JSON document that wraps a - * `input_config` that contains the path to a source document. - * Multiple JSON documents can be separated using line breaks (\n). - * Supported document extensions: .PDF, .TIF, .TIFF - * For example: - * { - * "document": { - * "input_config": { - * "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ] - * } - * } - * } - * }\n - * { - * "document": { - * "input_config": { - * "gcs_source": { "input_uris": [ "gs://folder/document2.tif" ] - * } - * } - * } - * } - * **In-line JSONL files with document layout information** - * **Note:** You can only annotate documents using the UI. The format described - * below applies to annotated documents exported using the UI or `exportData`. - * In-line .JSONL files for documents contain, per line, a JSON document - * that wraps a `document` field that provides the textual content of the - * document and the layout information. - * For example: - * { - * "document": { - * "document_text": { - * "content": "dog car cat" - * } - * "layout": [ - * { - * "text_segment": { - * "start_offset": 0, - * "end_offset": 11, - * }, - * "page_number": 1, - * "bounding_poly": { - * "normalized_vertices": [ - * {"x": 0.1, "y": 0.1}, - * {"x": 0.1, "y": 0.3}, - * {"x": 0.3, "y": 0.3}, - * {"x": 0.3, "y": 0.1}, - * ], - * }, - * "text_segment_type": TOKEN, - * } - * ], - * "document_dimensions": { - * "width": 8.27, - * "height": 11.69, - * "unit": INCH, - * } - * "page_count": 3, - * }, - * "annotations": [ - * { - * "display_name": "animal", - * "text_extraction": { - * "text_segment": {"start_offset": 0, "end_offset": 3} - * } - * }, - * { - * "display_name": "vehicle", - * "text_extraction": { - * "text_segment": {"start_offset": 4, "end_offset": 7} - * } - * }, - * { - * "display_name": "animal", - * "text_extraction": { - * "text_segment": {"start_offset": 8, "end_offset": 11} - * } - * }, - * ], - *
Classification
- * See [Preparing your training - * data](https://cloud.google.com/natural-language/automl/docs/prepare) for more - * information. - * One or more CSV file(s) with each line in the following format: - * ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),LABEL,LABEL,... - * * `ML_USE` - Identifies the data set that the current row (file) applies - * to. - * This value can be one of the following: - * * `TRAIN` - Rows in this file are used to train the model. - * * `TEST` - Rows in this file are used to test the model during training. - * * `UNASSIGNED` - Rows in this file are not categorized. They are - * Automatically divided into train and test data. 80% for training and - * 20% for testing. - * * `TEXT_SNIPPET` and `GCS_FILE_PATH` are distinguished by a pattern. If - * the column content is a valid Google Cloud Storage file path, that is, - * prefixed by "gs://", it is treated as a `GCS_FILE_PATH`. Otherwise, if - * the content is enclosed in double quotes (""), it is treated as a - * `TEXT_SNIPPET`. For `GCS_FILE_PATH`, the path must lead to a - * file with supported extension and UTF-8 encoding, for example, - * "gs://folder/content.txt" AutoML imports the file content - * as a text snippet. For `TEXT_SNIPPET`, AutoML imports the column content - * excluding quotes. In both cases, size of the content must be 10MB or - * less in size. For zip files, the size of each file inside the zip must be - * 10MB or less in size. - * For the `MULTICLASS` classification type, at most one `LABEL` is allowed. - * The `ML_USE` and `LABEL` columns are optional. - * Supported file extensions: .TXT, .PDF, .TIF, .TIFF, .ZIP - * A maximum of 100 unique labels are allowed per CSV row. - * Sample rows: - * TRAIN,"They have bad food and very rude",RudeService,BadFood - * gs://folder/content.txt,SlowService - * TEST,gs://folder/document.pdf - * VALIDATE,gs://folder/text_files.zip,BadFood - *
Sentiment Analysis
- * See [Preparing your training - * data](https://cloud.google.com/natural-language/automl/docs/prepare) for more - * information. - * CSV file(s) with each line in format: - * ML_USE,(TEXT_SNIPPET | GCS_FILE_PATH),SENTIMENT - * * `ML_USE` - Identifies the data set that the current row (file) applies - * to. - * This value can be one of the following: - * * `TRAIN` - Rows in this file are used to train the model. - * * `TEST` - Rows in this file are used to test the model during training. - * * `UNASSIGNED` - Rows in this file are not categorized. They are - * Automatically divided into train and test data. 80% for training and - * 20% for testing. - * * `TEXT_SNIPPET` and `GCS_FILE_PATH` are distinguished by a pattern. If - * the column content is a valid Google Cloud Storage file path, that is, - * prefixed by "gs://", it is treated as a `GCS_FILE_PATH`. Otherwise, if - * the content is enclosed in double quotes (""), it is treated as a - * `TEXT_SNIPPET`. For `GCS_FILE_PATH`, the path must lead to a - * file with supported extension and UTF-8 encoding, for example, - * "gs://folder/content.txt" AutoML imports the file content - * as a text snippet. For `TEXT_SNIPPET`, AutoML imports the column content - * excluding quotes. In both cases, size of the content must be 128kB or - * less in size. For zip files, the size of each file inside the zip must be - * 128kB or less in size. - * The `ML_USE` and `SENTIMENT` columns are optional. - * Supported file extensions: .TXT, .PDF, .TIF, .TIFF, .ZIP - * * `SENTIMENT` - An integer between 0 and - * Dataset.text_sentiment_dataset_metadata.sentiment_max - * (inclusive). Describes the ordinal of the sentiment - higher - * value means a more positive sentiment. All the values are - * completely relative, i.e. neither 0 needs to mean a negative or - * neutral sentiment nor sentiment_max needs to mean a positive one - - * it is just required that 0 is the least positive sentiment - * in the data, and sentiment_max is the most positive one. - * The SENTIMENT shouldn't be confused with "score" or "magnitude" - * from the previous Natural Language Sentiment Analysis API. - * All SENTIMENT values between 0 and sentiment_max must be - * represented in the imported data. On prediction the same 0 to - * sentiment_max range will be used. The difference between - * neighboring sentiment values needs not to be uniform, e.g. 1 and - * 2 may be similar whereas the difference between 2 and 3 may be - * large. - * Sample rows: - * TRAIN,"@freewrytin this is way too good for your product",2 - * gs://folder/content.txt,3 - * TEST,gs://folder/document.pdf - * VALIDATE,gs://folder/text_files.zip,2 - *
- *
- *

AutoML Tables

- * See [Preparing your training - * data](https://cloud.google.com/automl-tables/docs/prepare) for more - * information. - * You can use either - * [gcs_source][google.cloud.automl.v1.InputConfig.gcs_source] or - * [bigquery_source][google.cloud.automl.v1.InputConfig.bigquery_source]. - * All input is concatenated into a - * single - * [primary_table_spec_id][google.cloud.automl.v1.TablesDatasetMetadata.primary_table_spec_id] - * **For gcs_source:** - * CSV file(s), where the first row of the first file is the header, - * containing unique column names. If the first row of a subsequent - * file is the same as the header, then it is also treated as a - * header. All other rows contain values for the corresponding - * columns. - * Each .CSV file by itself must be 10GB or smaller, and their total - * size must be 100GB or smaller. - * First three sample rows of a CSV file: - *
- * "Id","First Name","Last Name","Dob","Addresses"
- * "1","John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
- * "2","Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
- * 
- * **For bigquery_source:** - * An URI of a BigQuery table. The user data size of the BigQuery - * table must be 100GB or smaller. - * An imported table must have between 2 and 1,000 columns, inclusive, - * and between 1000 and 100,000,000 rows, inclusive. There are at most 5 - * import data running in parallel. - *
- *
- * **Input field definitions:** - * `ML_USE` - * : ("TRAIN" | "VALIDATE" | "TEST" | "UNASSIGNED") - * Describes how the given example (file) should be used for model - * training. "UNASSIGNED" can be used when user has no preference. - * `GCS_FILE_PATH` - * : The path to a file on Google Cloud Storage. For example, - * "gs://folder/image1.png". - * `LABEL` - * : A display name of an object on an image, video etc., e.g. "dog". - * Must be up to 32 characters long and can consist only of ASCII - * Latin letters A-Z and a-z, underscores(_), and ASCII digits 0-9. - * For each label an AnnotationSpec is created which display_name - * becomes the label; AnnotationSpecs are given back in predictions. - * `INSTANCE_ID` - * : A positive integer that identifies a specific instance of a - * labeled entity on an example. Used e.g. to track two cars on - * a video while being able to tell apart which one is which. - * `BOUNDING_BOX` - * : (`VERTEX,VERTEX,VERTEX,VERTEX` | `VERTEX,,,VERTEX,,`) - * A rectangle parallel to the frame of the example (image, - * video). If 4 vertices are given they are connected by edges - * in the order provided, if 2 are given they are recognized - * as diagonally opposite vertices of the rectangle. - * `VERTEX` - * : (`COORDINATE,COORDINATE`) - * First coordinate is horizontal (x), the second is vertical (y). - * `COORDINATE` - * : A float in 0 to 1 range, relative to total length of - * image or video in given dimension. For fractions the - * leading non-decimal 0 can be omitted (i.e. 0.3 = .3). - * Point 0,0 is in top left. - * `TIME_SEGMENT_START` - * : (`TIME_OFFSET`) - * Expresses a beginning, inclusive, of a time segment - * within an example that has a time dimension - * (e.g. video). - * `TIME_SEGMENT_END` - * : (`TIME_OFFSET`) - * Expresses an end, exclusive, of a time segment within - * n example that has a time dimension (e.g. video). - * `TIME_OFFSET` - * : A number of seconds as measured from the start of an - * example (e.g. video). Fractions are allowed, up to a - * microsecond precision. "inf" is allowed, and it means the end - * of the example. - * `TEXT_SNIPPET` - * : The content of a text snippet, UTF-8 encoded, enclosed within - * double quotes (""). - * `DOCUMENT` - * : A field that provides the textual content with document and the layout - * information. - * **Errors:** - * If any of the provided CSV files can't be parsed or if more than certain - * percent of CSV rows cannot be processed then the operation fails and - * nothing is imported. Regardless of overall success or failure the per-row - * failures, up to a certain count cap, is listed in - * Operation.metadata.partial_failures. - * - * Generated from protobuf message google.cloud.automl.v1.InputConfig - */ -class InputConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Additional domain-specific parameters describing the semantic of the - * imported data, any string must be up to 25000 - * characters long. - *

AutoML Tables

- * `schema_inference_version` - * : (integer) This value must be supplied. - * The version of the - * algorithm to use for the initial inference of the - * column data types of the imported table. Allowed values: "1". - * - * Generated from protobuf field map params = 2; - */ - private $params; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\GcsSource $gcs_source - * The Google Cloud Storage location for the input content. - * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with - * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig]. - * @type array|\Google\Protobuf\Internal\MapField $params - * Additional domain-specific parameters describing the semantic of the - * imported data, any string must be up to 25000 - * characters long. - *

AutoML Tables

- * `schema_inference_version` - * : (integer) This value must be supplied. - * The version of the - * algorithm to use for the initial inference of the - * column data types of the imported table. Allowed values: "1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * The Google Cloud Storage location for the input content. - * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with - * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig]. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsSource gcs_source = 1; - * @return \Google\Cloud\AutoMl\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(1); - } - - public function hasGcsSource() - { - return $this->hasOneof(1); - } - - /** - * The Google Cloud Storage location for the input content. - * For [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData], `gcs_source` points to a CSV file with - * a structure described in [InputConfig][google.cloud.automl.v1.InputConfig]. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsSource gcs_source = 1; - * @param \Google\Cloud\AutoMl\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\GcsSource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Additional domain-specific parameters describing the semantic of the - * imported data, any string must be up to 25000 - * characters long. - *

AutoML Tables

- * `schema_inference_version` - * : (integer) This value must be supplied. - * The version of the - * algorithm to use for the initial inference of the - * column data types of the imported table. Allowed values: "1". - * - * Generated from protobuf field map params = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParams() - { - return $this->params; - } - - /** - * Additional domain-specific parameters describing the semantic of the - * imported data, any string must be up to 25000 - * characters long. - *

AutoML Tables

- * `schema_inference_version` - * : (integer) This value must be supplied. - * The version of the - * algorithm to use for the initial inference of the - * column data types of the imported table. Allowed values: "1". - * - * Generated from protobuf field map params = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParams($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->params = $arr; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListDatasetsRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListDatasetsRequest.php deleted file mode 100644 index e769688ed858..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListDatasetsRequest.php +++ /dev/null @@ -1,215 +0,0 @@ -google.cloud.automl.v1.ListDatasetsRequest - */ -class ListDatasetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the project from which to list datasets. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * An expression for filtering the results of the request. - * * `dataset_metadata` - for existence of the case (e.g. - * `image_classification_dataset_metadata:*`). Some examples of using the filter are: - * * `translation_dataset_metadata:*` --> The dataset has - * `translation_dataset_metadata`. - * - * Generated from protobuf field string filter = 3; - */ - protected $filter = ''; - /** - * Requested page size. Server may return fewer results than requested. - * If unspecified, server will pick a default size. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1.ListDatasetsResponse.next_page_token] of the previous - * [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets] call. - * - * Generated from protobuf field string page_token = 6; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the project from which to list datasets. Please see - * {@see AutoMlClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\ListDatasetsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the project from which to list datasets. - * @type string $filter - * An expression for filtering the results of the request. - * * `dataset_metadata` - for existence of the case (e.g. - * `image_classification_dataset_metadata:*`). Some examples of using the filter are: - * * `translation_dataset_metadata:*` --> The dataset has - * `translation_dataset_metadata`. - * @type int $page_size - * Requested page size. Server may return fewer results than requested. - * If unspecified, server will pick a default size. - * @type string $page_token - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1.ListDatasetsResponse.next_page_token] of the previous - * [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets] call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the project from which to list datasets. - * - * 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 project from which to list datasets. - * - * 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; - } - - /** - * An expression for filtering the results of the request. - * * `dataset_metadata` - for existence of the case (e.g. - * `image_classification_dataset_metadata:*`). Some examples of using the filter are: - * * `translation_dataset_metadata:*` --> The dataset has - * `translation_dataset_metadata`. - * - * Generated from protobuf field string filter = 3; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression for filtering the results of the request. - * * `dataset_metadata` - for existence of the case (e.g. - * `image_classification_dataset_metadata:*`). Some examples of using the filter are: - * * `translation_dataset_metadata:*` --> The dataset has - * `translation_dataset_metadata`. - * - * Generated from protobuf field string filter = 3; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer results than requested. - * If unspecified, server will pick a default size. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer results than requested. - * If unspecified, server will pick a default size. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1.ListDatasetsResponse.next_page_token] of the previous - * [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets] call. - * - * Generated from protobuf field string page_token = 6; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1.ListDatasetsResponse.next_page_token] of the previous - * [AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets] call. - * - * Generated from protobuf field string page_token = 6; - * @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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListDatasetsResponse.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListDatasetsResponse.php deleted file mode 100644 index f2d797616ee3..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListDatasetsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.automl.v1.ListDatasetsResponse - */ -class ListDatasetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The datasets read. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Dataset datasets = 1; - */ - private $datasets; - /** - * A token to retrieve next page of results. - * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AutoMl\V1\Dataset>|\Google\Protobuf\Internal\RepeatedField $datasets - * The datasets read. - * @type string $next_page_token - * A token to retrieve next page of results. - * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The datasets read. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Dataset datasets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDatasets() - { - return $this->datasets; - } - - /** - * The datasets read. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Dataset datasets = 1; - * @param array<\Google\Cloud\AutoMl\V1\Dataset>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDatasets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\Dataset::class); - $this->datasets = $arr; - - return $this; - } - - /** - * A token to retrieve next page of results. - * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve next page of results. - * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1.ListDatasetsRequest.page_token] to obtain that page. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelEvaluationsRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelEvaluationsRequest.php deleted file mode 100644 index cd2ede27676c..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelEvaluationsRequest.php +++ /dev/null @@ -1,245 +0,0 @@ -google.cloud.automl.v1.ListModelEvaluationsRequest - */ -class ListModelEvaluationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the model to list the model evaluations for. - * If modelId is set as "-", this will list model evaluations from across all - * models of the parent location. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. An expression for filtering the results of the request. - * * `annotation_spec_id` - for =, != or existence. See example below for - * the last. - * Some examples of using the filter are: - * * `annotation_spec_id!=4` --> The model evaluation was done for - * annotation spec with ID different than 4. - * * `NOT annotation_spec_id:*` --> The model evaluation was done for - * aggregate of all annotation specs. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * A token identifying a page of results for the server to return. - * Typically obtained via - * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1.ListModelEvaluationsResponse.next_page_token] of the previous - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] call. - * - * Generated from protobuf field string page_token = 6; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Resource name of the model to list the model evaluations for. - * If modelId is set as "-", this will list model evaluations from across all - * models of the parent location. Please see - * {@see AutoMlClient::modelName()} for help formatting this field. - * @param string $filter Required. An expression for filtering the results of the request. - * - * * `annotation_spec_id` - for =, != or existence. See example below for - * the last. - * - * Some examples of using the filter are: - * - * * `annotation_spec_id!=4` --> The model evaluation was done for - * annotation spec with ID different than 4. - * * `NOT annotation_spec_id:*` --> The model evaluation was done for - * aggregate of all annotation specs. - * - * @return \Google\Cloud\AutoMl\V1\ListModelEvaluationsRequest - * - * @experimental - */ - public static function build(string $parent, string $filter): self - { - return (new self()) - ->setParent($parent) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the model to list the model evaluations for. - * If modelId is set as "-", this will list model evaluations from across all - * models of the parent location. - * @type string $filter - * Required. An expression for filtering the results of the request. - * * `annotation_spec_id` - for =, != or existence. See example below for - * the last. - * Some examples of using the filter are: - * * `annotation_spec_id!=4` --> The model evaluation was done for - * annotation spec with ID different than 4. - * * `NOT annotation_spec_id:*` --> The model evaluation was done for - * aggregate of all annotation specs. - * @type int $page_size - * Requested page size. - * @type string $page_token - * A token identifying a page of results for the server to return. - * Typically obtained via - * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1.ListModelEvaluationsResponse.next_page_token] of the previous - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the model to list the model evaluations for. - * If modelId is set as "-", this will list model evaluations from across all - * models of the parent location. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the model to list the model evaluations for. - * If modelId is set as "-", this will list model evaluations from across all - * models of the parent location. - * - * 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. An expression for filtering the results of the request. - * * `annotation_spec_id` - for =, != or existence. See example below for - * the last. - * Some examples of using the filter are: - * * `annotation_spec_id!=4` --> The model evaluation was done for - * annotation spec with ID different than 4. - * * `NOT annotation_spec_id:*` --> The model evaluation was done for - * aggregate of all annotation specs. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. An expression for filtering the results of the request. - * * `annotation_spec_id` - for =, != or existence. See example below for - * the last. - * Some examples of using the filter are: - * * `annotation_spec_id!=4` --> The model evaluation was done for - * annotation spec with ID different than 4. - * * `NOT annotation_spec_id:*` --> The model evaluation was done for - * aggregate of all annotation specs. - * - * Generated from protobuf field string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results for the server to return. - * Typically obtained via - * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1.ListModelEvaluationsResponse.next_page_token] of the previous - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] call. - * - * Generated from protobuf field string page_token = 6; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results for the server to return. - * Typically obtained via - * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1.ListModelEvaluationsResponse.next_page_token] of the previous - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] call. - * - * Generated from protobuf field string page_token = 6; - * @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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelEvaluationsResponse.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelEvaluationsResponse.php deleted file mode 100644 index c1bfdafea3e1..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelEvaluationsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.automl.v1.ListModelEvaluationsResponse - */ -class ListModelEvaluationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of model evaluations in the requested page. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; - */ - private $model_evaluation; - /** - * A token to retrieve next page of results. - * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] request to obtain that page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AutoMl\V1\ModelEvaluation>|\Google\Protobuf\Internal\RepeatedField $model_evaluation - * List of model evaluations in the requested page. - * @type string $next_page_token - * A token to retrieve next page of results. - * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] request to obtain that page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of model evaluations in the requested page. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getModelEvaluation() - { - return $this->model_evaluation; - } - - /** - * List of model evaluations in the requested page. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.ModelEvaluation model_evaluation = 1; - * @param array<\Google\Cloud\AutoMl\V1\ModelEvaluation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setModelEvaluation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\ModelEvaluation::class); - $this->model_evaluation = $arr; - - return $this; - } - - /** - * A token to retrieve next page of results. - * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] request to obtain that page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve next page of results. - * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1.ListModelEvaluationsRequest.page_token] field of a new - * [AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations] request to obtain that page. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelsRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelsRequest.php deleted file mode 100644 index 948b62bb0955..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelsRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.cloud.automl.v1.ListModelsRequest - */ -class ListModelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project, from which to list the models. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * An expression for filtering the results of the request. - * * `model_metadata` - for existence of the case (e.g. - * `video_classification_model_metadata:*`). - * * `dataset_id` - for = or !=. Some examples of using the filter are: - * * `image_classification_model_metadata:*` --> The model has - * `image_classification_model_metadata`. - * * `dataset_id=5` --> The model was created from a dataset with ID 5. - * - * Generated from protobuf field string filter = 3; - */ - protected $filter = ''; - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListModelsResponse.next_page_token][google.cloud.automl.v1.ListModelsResponse.next_page_token] of the previous - * [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels] call. - * - * Generated from protobuf field string page_token = 6; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Resource name of the project, from which to list the models. Please see - * {@see AutoMlClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\ListModelsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the project, from which to list the models. - * @type string $filter - * An expression for filtering the results of the request. - * * `model_metadata` - for existence of the case (e.g. - * `video_classification_model_metadata:*`). - * * `dataset_id` - for = or !=. Some examples of using the filter are: - * * `image_classification_model_metadata:*` --> The model has - * `image_classification_model_metadata`. - * * `dataset_id=5` --> The model was created from a dataset with ID 5. - * @type int $page_size - * Requested page size. - * @type string $page_token - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListModelsResponse.next_page_token][google.cloud.automl.v1.ListModelsResponse.next_page_token] of the previous - * [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels] call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project, from which to list the models. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the project, from which to list the models. - * - * 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; - } - - /** - * An expression for filtering the results of the request. - * * `model_metadata` - for existence of the case (e.g. - * `video_classification_model_metadata:*`). - * * `dataset_id` - for = or !=. Some examples of using the filter are: - * * `image_classification_model_metadata:*` --> The model has - * `image_classification_model_metadata`. - * * `dataset_id=5` --> The model was created from a dataset with ID 5. - * - * Generated from protobuf field string filter = 3; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression for filtering the results of the request. - * * `model_metadata` - for existence of the case (e.g. - * `video_classification_model_metadata:*`). - * * `dataset_id` - for = or !=. Some examples of using the filter are: - * * `image_classification_model_metadata:*` --> The model has - * `image_classification_model_metadata`. - * * `dataset_id=5` --> The model was created from a dataset with ID 5. - * - * Generated from protobuf field string filter = 3; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListModelsResponse.next_page_token][google.cloud.automl.v1.ListModelsResponse.next_page_token] of the previous - * [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels] call. - * - * Generated from protobuf field string page_token = 6; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results for the server to return - * Typically obtained via - * [ListModelsResponse.next_page_token][google.cloud.automl.v1.ListModelsResponse.next_page_token] of the previous - * [AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels] call. - * - * Generated from protobuf field string page_token = 6; - * @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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelsResponse.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelsResponse.php deleted file mode 100644 index f59c0ca288d3..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ListModelsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.automl.v1.ListModelsResponse - */ -class ListModelsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of models in the requested page. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Model model = 1; - */ - private $model; - /** - * A token to retrieve next page of results. - * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AutoMl\V1\Model>|\Google\Protobuf\Internal\RepeatedField $model - * List of models in the requested page. - * @type string $next_page_token - * A token to retrieve next page of results. - * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of models in the requested page. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Model model = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getModel() - { - return $this->model; - } - - /** - * List of models in the requested page. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.Model model = 1; - * @param array<\Google\Cloud\AutoMl\V1\Model>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setModel($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\Model::class); - $this->model = $arr; - - return $this; - } - - /** - * A token to retrieve next page of results. - * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve next page of results. - * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1.ListModelsRequest.page_token] to obtain that page. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Model.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Model.php deleted file mode 100644 index 0d84d2014398..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Model.php +++ /dev/null @@ -1,580 +0,0 @@ -google.cloud.automl.v1.Model - */ -class Model extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the model. - * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The name of the model to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. It must start with a letter. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Required. The resource ID of the dataset used to create the model. The dataset must - * come from the same ancestor project and location. - * - * Generated from protobuf field string dataset_id = 3; - */ - protected $dataset_id = ''; - /** - * Output only. Timestamp when the model training finished and can be used for prediction. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - */ - protected $create_time = null; - /** - * Output only. Timestamp when this model was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - */ - protected $update_time = null; - /** - * Output only. Deployment state of the model. A model can only serve - * prediction requests after it gets deployed. - * - * Generated from protobuf field .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - */ - protected $deployment_state = 0; - /** - * Used to perform a consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * - * Generated from protobuf field string etag = 10; - */ - protected $etag = ''; - /** - * Optional. The labels with user-defined metadata to organize your model. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * - * Generated from protobuf field map labels = 34; - */ - private $labels; - protected $model_metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\TranslationModelMetadata $translation_model_metadata - * Metadata for translation models. - * @type \Google\Cloud\AutoMl\V1\ImageClassificationModelMetadata $image_classification_model_metadata - * Metadata for image classification models. - * @type \Google\Cloud\AutoMl\V1\TextClassificationModelMetadata $text_classification_model_metadata - * Metadata for text classification models. - * @type \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelMetadata $image_object_detection_model_metadata - * Metadata for image object detection models. - * @type \Google\Cloud\AutoMl\V1\TextExtractionModelMetadata $text_extraction_model_metadata - * Metadata for text extraction models. - * @type \Google\Cloud\AutoMl\V1\TextSentimentModelMetadata $text_sentiment_model_metadata - * Metadata for text sentiment models. - * @type string $name - * Output only. Resource name of the model. - * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}` - * @type string $display_name - * Required. The name of the model to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. It must start with a letter. - * @type string $dataset_id - * Required. The resource ID of the dataset used to create the model. The dataset must - * come from the same ancestor project and location. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Timestamp when the model training finished and can be used for prediction. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Timestamp when this model was last updated. - * @type int $deployment_state - * Output only. Deployment state of the model. A model can only serve - * prediction requests after it gets deployed. - * @type string $etag - * Used to perform a consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The labels with user-defined metadata to organize your model. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Model::initOnce(); - parent::__construct($data); - } - - /** - * Metadata for translation models. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * @return \Google\Cloud\AutoMl\V1\TranslationModelMetadata|null - */ - public function getTranslationModelMetadata() - { - return $this->readOneof(15); - } - - public function hasTranslationModelMetadata() - { - return $this->hasOneof(15); - } - - /** - * Metadata for translation models. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; - * @param \Google\Cloud\AutoMl\V1\TranslationModelMetadata $var - * @return $this - */ - public function setTranslationModelMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TranslationModelMetadata::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Metadata for image classification models. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * @return \Google\Cloud\AutoMl\V1\ImageClassificationModelMetadata|null - */ - public function getImageClassificationModelMetadata() - { - return $this->readOneof(13); - } - - public function hasImageClassificationModelMetadata() - { - return $this->hasOneof(13); - } - - /** - * Metadata for image classification models. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; - * @param \Google\Cloud\AutoMl\V1\ImageClassificationModelMetadata $var - * @return $this - */ - public function setImageClassificationModelMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageClassificationModelMetadata::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Metadata for text classification models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * @return \Google\Cloud\AutoMl\V1\TextClassificationModelMetadata|null - */ - public function getTextClassificationModelMetadata() - { - return $this->readOneof(14); - } - - public function hasTextClassificationModelMetadata() - { - return $this->hasOneof(14); - } - - /** - * Metadata for text classification models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * @param \Google\Cloud\AutoMl\V1\TextClassificationModelMetadata $var - * @return $this - */ - public function setTextClassificationModelMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextClassificationModelMetadata::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Metadata for image object detection models. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * @return \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelMetadata|null - */ - public function getImageObjectDetectionModelMetadata() - { - return $this->readOneof(20); - } - - public function hasImageObjectDetectionModelMetadata() - { - return $this->hasOneof(20); - } - - /** - * Metadata for image object detection models. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; - * @param \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelMetadata $var - * @return $this - */ - public function setImageObjectDetectionModelMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageObjectDetectionModelMetadata::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * Metadata for text extraction models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * @return \Google\Cloud\AutoMl\V1\TextExtractionModelMetadata|null - */ - public function getTextExtractionModelMetadata() - { - return $this->readOneof(19); - } - - public function hasTextExtractionModelMetadata() - { - return $this->hasOneof(19); - } - - /** - * Metadata for text extraction models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; - * @param \Google\Cloud\AutoMl\V1\TextExtractionModelMetadata $var - * @return $this - */ - public function setTextExtractionModelMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextExtractionModelMetadata::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Metadata for text sentiment models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * @return \Google\Cloud\AutoMl\V1\TextSentimentModelMetadata|null - */ - public function getTextSentimentModelMetadata() - { - return $this->readOneof(22); - } - - public function hasTextSentimentModelMetadata() - { - return $this->hasOneof(22); - } - - /** - * Metadata for text sentiment models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; - * @param \Google\Cloud\AutoMl\V1\TextSentimentModelMetadata $var - * @return $this - */ - public function setTextSentimentModelMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSentimentModelMetadata::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * Output only. Resource name of the model. - * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the model. - * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}` - * - * 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; - } - - /** - * Required. The name of the model to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. It must start with a letter. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The name of the model to show in the interface. The name can be - * up to 32 characters long and can consist only of ASCII Latin letters A-Z - * and a-z, underscores - * (_), and ASCII digits 0-9. It must start with a letter. - * - * 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; - } - - /** - * Required. The resource ID of the dataset used to create the model. The dataset must - * come from the same ancestor project and location. - * - * Generated from protobuf field string dataset_id = 3; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Required. The resource ID of the dataset used to create the model. The dataset must - * come from the same ancestor project and location. - * - * Generated from protobuf field string dataset_id = 3; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Output only. Timestamp when the model training finished and can be used for prediction. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @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. Timestamp when the model training finished and can be used for prediction. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @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. Timestamp when this model was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @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. Timestamp when this model was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @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. Deployment state of the model. A model can only serve - * prediction requests after it gets deployed. - * - * Generated from protobuf field .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * @return int - */ - public function getDeploymentState() - { - return $this->deployment_state; - } - - /** - * Output only. Deployment state of the model. A model can only serve - * prediction requests after it gets deployed. - * - * Generated from protobuf field .google.cloud.automl.v1.Model.DeploymentState deployment_state = 8; - * @param int $var - * @return $this - */ - public function setDeploymentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1\Model\DeploymentState::class); - $this->deployment_state = $var; - - return $this; - } - - /** - * Used to perform a consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * - * Generated from protobuf field string etag = 10; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Used to perform a consistent read-modify-write updates. If not set, a blind - * "overwrite" update happens. - * - * Generated from protobuf field string etag = 10; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. The labels with user-defined metadata to organize your model. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * - * Generated from protobuf field map labels = 34; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The labels with user-defined metadata to organize your model. - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * - * Generated from protobuf field map labels = 34; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * @return string - */ - public function getModelMetadata() - { - return $this->whichOneof("model_metadata"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Model/DeploymentState.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Model/DeploymentState.php deleted file mode 100644 index 717194cacb0f..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/Model/DeploymentState.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.automl.v1.Model.DeploymentState - */ -class DeploymentState -{ - /** - * Should not be used, an un-set enum has this value by default. - * - * Generated from protobuf enum DEPLOYMENT_STATE_UNSPECIFIED = 0; - */ - const DEPLOYMENT_STATE_UNSPECIFIED = 0; - /** - * Model is deployed. - * - * Generated from protobuf enum DEPLOYED = 1; - */ - const DEPLOYED = 1; - /** - * Model is not deployed. - * - * Generated from protobuf enum UNDEPLOYED = 2; - */ - const UNDEPLOYED = 2; - - private static $valueToName = [ - self::DEPLOYMENT_STATE_UNSPECIFIED => 'DEPLOYMENT_STATE_UNSPECIFIED', - self::DEPLOYED => 'DEPLOYED', - self::UNDEPLOYED => 'UNDEPLOYED', - ]; - - 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(DeploymentState::class, \Google\Cloud\AutoMl\V1\Model_DeploymentState::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ModelEvaluation.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ModelEvaluation.php deleted file mode 100644 index bbe35143df37..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ModelEvaluation.php +++ /dev/null @@ -1,496 +0,0 @@ -google.cloud.automl.v1.ModelEvaluation - */ -class ModelEvaluation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the model evaluation. - * Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The ID of the annotation spec that the model evaluation applies to. The - * The ID is empty for the overall model evaluation. - * For Tables annotation specs in the dataset do not exist and this ID is - * always not set, but for CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * the - * [display_name][google.cloud.automl.v1.ModelEvaluation.display_name] - * field is used. - * - * Generated from protobuf field string annotation_spec_id = 2; - */ - protected $annotation_spec_id = ''; - /** - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * at the moment when the model was trained. Because this field returns a - * value at model training time, for different models trained from the same - * dataset, the values may differ, since display names could had been changed - * between the two model's trainings. For Tables CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * distinct values of the target column at the moment of the model evaluation - * are populated here. - * The display_name is empty for the overall model evaluation. - * - * Generated from protobuf field string display_name = 15; - */ - protected $display_name = ''; - /** - * Output only. Timestamp when this model evaluation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - */ - protected $create_time = null; - /** - * Output only. The number of examples used for model evaluation, i.e. for - * which ground truth from time of model creation is compared against the - * predicted annotations created by the model. - * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is - * the total number of all examples used for evaluation. - * Otherwise, this is the count of examples that according to the ground - * truth were annotated by the - * [annotation_spec_id][google.cloud.automl.v1.ModelEvaluation.annotation_spec_id]. - * - * Generated from protobuf field int32 evaluated_example_count = 6; - */ - protected $evaluated_example_count = 0; - protected $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics $classification_evaluation_metrics - * Model evaluation metrics for image, text, video and tables - * classification. - * Tables problem is considered a classification when the target column - * is CATEGORY DataType. - * @type \Google\Cloud\AutoMl\V1\TranslationEvaluationMetrics $translation_evaluation_metrics - * Model evaluation metrics for translation. - * @type \Google\Cloud\AutoMl\V1\ImageObjectDetectionEvaluationMetrics $image_object_detection_evaluation_metrics - * Model evaluation metrics for image object detection. - * @type \Google\Cloud\AutoMl\V1\TextSentimentEvaluationMetrics $text_sentiment_evaluation_metrics - * Evaluation metrics for text sentiment models. - * @type \Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics $text_extraction_evaluation_metrics - * Evaluation metrics for text extraction models. - * @type string $name - * Output only. Resource name of the model evaluation. - * Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}` - * @type string $annotation_spec_id - * Output only. The ID of the annotation spec that the model evaluation applies to. The - * The ID is empty for the overall model evaluation. - * For Tables annotation specs in the dataset do not exist and this ID is - * always not set, but for CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * the - * [display_name][google.cloud.automl.v1.ModelEvaluation.display_name] - * field is used. - * @type string $display_name - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * at the moment when the model was trained. Because this field returns a - * value at model training time, for different models trained from the same - * dataset, the values may differ, since display names could had been changed - * between the two model's trainings. For Tables CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * distinct values of the target column at the moment of the model evaluation - * are populated here. - * The display_name is empty for the overall model evaluation. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Timestamp when this model evaluation was created. - * @type int $evaluated_example_count - * Output only. The number of examples used for model evaluation, i.e. for - * which ground truth from time of model creation is compared against the - * predicted annotations created by the model. - * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is - * the total number of all examples used for evaluation. - * Otherwise, this is the count of examples that according to the ground - * truth were annotated by the - * [annotation_spec_id][google.cloud.automl.v1.ModelEvaluation.annotation_spec_id]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\ModelEvaluation::initOnce(); - parent::__construct($data); - } - - /** - * Model evaluation metrics for image, text, video and tables - * classification. - * Tables problem is considered a classification when the target column - * is CATEGORY DataType. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * @return \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics|null - */ - public function getClassificationEvaluationMetrics() - { - return $this->readOneof(8); - } - - public function hasClassificationEvaluationMetrics() - { - return $this->hasOneof(8); - } - - /** - * Model evaluation metrics for image, text, video and tables - * classification. - * Tables problem is considered a classification when the target column - * is CATEGORY DataType. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - * @param \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics $var - * @return $this - */ - public function setClassificationEvaluationMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Model evaluation metrics for translation. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * @return \Google\Cloud\AutoMl\V1\TranslationEvaluationMetrics|null - */ - public function getTranslationEvaluationMetrics() - { - return $this->readOneof(9); - } - - public function hasTranslationEvaluationMetrics() - { - return $this->hasOneof(9); - } - - /** - * Model evaluation metrics for translation. - * - * Generated from protobuf field .google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; - * @param \Google\Cloud\AutoMl\V1\TranslationEvaluationMetrics $var - * @return $this - */ - public function setTranslationEvaluationMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TranslationEvaluationMetrics::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Model evaluation metrics for image object detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * @return \Google\Cloud\AutoMl\V1\ImageObjectDetectionEvaluationMetrics|null - */ - public function getImageObjectDetectionEvaluationMetrics() - { - return $this->readOneof(12); - } - - public function hasImageObjectDetectionEvaluationMetrics() - { - return $this->hasOneof(12); - } - - /** - * Model evaluation metrics for image object detection. - * - * Generated from protobuf field .google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; - * @param \Google\Cloud\AutoMl\V1\ImageObjectDetectionEvaluationMetrics $var - * @return $this - */ - public function setImageObjectDetectionEvaluationMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImageObjectDetectionEvaluationMetrics::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Evaluation metrics for text sentiment models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * @return \Google\Cloud\AutoMl\V1\TextSentimentEvaluationMetrics|null - */ - public function getTextSentimentEvaluationMetrics() - { - return $this->readOneof(11); - } - - public function hasTextSentimentEvaluationMetrics() - { - return $this->hasOneof(11); - } - - /** - * Evaluation metrics for text sentiment models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; - * @param \Google\Cloud\AutoMl\V1\TextSentimentEvaluationMetrics $var - * @return $this - */ - public function setTextSentimentEvaluationMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSentimentEvaluationMetrics::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Evaluation metrics for text extraction models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * @return \Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics|null - */ - public function getTextExtractionEvaluationMetrics() - { - return $this->readOneof(13); - } - - public function hasTextExtractionEvaluationMetrics() - { - return $this->hasOneof(13); - } - - /** - * Evaluation metrics for text extraction models. - * - * Generated from protobuf field .google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; - * @param \Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics $var - * @return $this - */ - public function setTextExtractionEvaluationMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Output only. Resource name of the model evaluation. - * Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the model evaluation. - * Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}` - * - * 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; - } - - /** - * Output only. The ID of the annotation spec that the model evaluation applies to. The - * The ID is empty for the overall model evaluation. - * For Tables annotation specs in the dataset do not exist and this ID is - * always not set, but for CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * the - * [display_name][google.cloud.automl.v1.ModelEvaluation.display_name] - * field is used. - * - * Generated from protobuf field string annotation_spec_id = 2; - * @return string - */ - public function getAnnotationSpecId() - { - return $this->annotation_spec_id; - } - - /** - * Output only. The ID of the annotation spec that the model evaluation applies to. The - * The ID is empty for the overall model evaluation. - * For Tables annotation specs in the dataset do not exist and this ID is - * always not set, but for CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * the - * [display_name][google.cloud.automl.v1.ModelEvaluation.display_name] - * field is used. - * - * Generated from protobuf field string annotation_spec_id = 2; - * @param string $var - * @return $this - */ - public function setAnnotationSpecId($var) - { - GPBUtil::checkString($var, True); - $this->annotation_spec_id = $var; - - return $this; - } - - /** - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * at the moment when the model was trained. Because this field returns a - * value at model training time, for different models trained from the same - * dataset, the values may differ, since display names could had been changed - * between the two model's trainings. For Tables CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * distinct values of the target column at the moment of the model evaluation - * are populated here. - * The display_name is empty for the overall model evaluation. - * - * Generated from protobuf field string display_name = 15; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The value of - * [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] - * at the moment when the model was trained. Because this field returns a - * value at model training time, for different models trained from the same - * dataset, the values may differ, since display names could had been changed - * between the two model's trainings. For Tables CLASSIFICATION - * [prediction_type-s][google.cloud.automl.v1.TablesModelMetadata.prediction_type] - * distinct values of the target column at the moment of the model evaluation - * are populated here. - * The display_name is empty for the overall model evaluation. - * - * Generated from protobuf field string display_name = 15; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Timestamp when this model evaluation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @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. Timestamp when this model evaluation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @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. The number of examples used for model evaluation, i.e. for - * which ground truth from time of model creation is compared against the - * predicted annotations created by the model. - * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is - * the total number of all examples used for evaluation. - * Otherwise, this is the count of examples that according to the ground - * truth were annotated by the - * [annotation_spec_id][google.cloud.automl.v1.ModelEvaluation.annotation_spec_id]. - * - * Generated from protobuf field int32 evaluated_example_count = 6; - * @return int - */ - public function getEvaluatedExampleCount() - { - return $this->evaluated_example_count; - } - - /** - * Output only. The number of examples used for model evaluation, i.e. for - * which ground truth from time of model creation is compared against the - * predicted annotations created by the model. - * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is - * the total number of all examples used for evaluation. - * Otherwise, this is the count of examples that according to the ground - * truth were annotated by the - * [annotation_spec_id][google.cloud.automl.v1.ModelEvaluation.annotation_spec_id]. - * - * Generated from protobuf field int32 evaluated_example_count = 6; - * @param int $var - * @return $this - */ - public function setEvaluatedExampleCount($var) - { - GPBUtil::checkInt32($var); - $this->evaluated_example_count = $var; - - return $this; - } - - /** - * @return string - */ - public function getMetrics() - { - return $this->whichOneof("metrics"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ModelExportOutputConfig.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ModelExportOutputConfig.php deleted file mode 100644 index 6d986c85f709..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/ModelExportOutputConfig.php +++ /dev/null @@ -1,288 +0,0 @@ -google.cloud.automl.v1.ModelExportOutputConfig - */ -class ModelExportOutputConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The format in which the model must be exported. The available, and default, - * formats depend on the problem and model type (if given problem and type - * combination doesn't have a format listed, it means its models are not - * exportable): - * * For Image Classification mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", - * "docker". - * * For Image Classification mobile-core-ml-low-latency-1, - * mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: - * "core_ml" (default). - * * For Image Object Detection mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite", "tf_saved_model", "tf_js". - * Formats description: - * * tflite - Used for Android mobile devices. - * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/) - * devices. - * * tf_saved_model - A tensorflow model in SavedModel format. - * * tf_js - A [TensorFlow.js](https://www.tensorflow.org/js) model that can - * be used in the browser and in Node.js using JavaScript. - * * docker - Used for Docker containers. Use the params field to customize - * the container. The container is verified to work correctly on - * ubuntu 16.04 operating system. See more at - * [containers - * quickstart](https://cloud.google.com/vision/automl/docs/containers-gcs-quickstart) - * * core_ml - Used for iOS mobile devices. - * - * Generated from protobuf field string model_format = 4; - */ - protected $model_format = ''; - /** - * Additional model-type and format specific parameters describing the - * requirements for the to be exported model files, any string must be up to - * 25000 characters long. - * * For `docker` format: - * `cpu_architecture` - (string) "x86_64" (default). - * `gpu_architecture` - (string) "none" (default), "nvidia". - * - * Generated from protobuf field map params = 2; - */ - private $params; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\GcsDestination $gcs_destination - * Required. The Google Cloud Storage location where the model is to be written to. - * This location may only be set for the following model formats: - * "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml". - * Under the directory given as the destination a new one with name - * "model-export--", - * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, - * will be created. Inside the model and any of its supporting files - * will be written. - * @type string $model_format - * The format in which the model must be exported. The available, and default, - * formats depend on the problem and model type (if given problem and type - * combination doesn't have a format listed, it means its models are not - * exportable): - * * For Image Classification mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", - * "docker". - * * For Image Classification mobile-core-ml-low-latency-1, - * mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: - * "core_ml" (default). - * * For Image Object Detection mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite", "tf_saved_model", "tf_js". - * Formats description: - * * tflite - Used for Android mobile devices. - * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/) - * devices. - * * tf_saved_model - A tensorflow model in SavedModel format. - * * tf_js - A [TensorFlow.js](https://www.tensorflow.org/js) model that can - * be used in the browser and in Node.js using JavaScript. - * * docker - Used for Docker containers. Use the params field to customize - * the container. The container is verified to work correctly on - * ubuntu 16.04 operating system. See more at - * [containers - * quickstart](https://cloud.google.com/vision/automl/docs/containers-gcs-quickstart) - * * core_ml - Used for iOS mobile devices. - * @type array|\Google\Protobuf\Internal\MapField $params - * Additional model-type and format specific parameters describing the - * requirements for the to be exported model files, any string must be up to - * 25000 characters long. - * * For `docker` format: - * `cpu_architecture` - (string) "x86_64" (default). - * `gpu_architecture` - (string) "none" (default), "nvidia". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Google Cloud Storage location where the model is to be written to. - * This location may only be set for the following model formats: - * "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml". - * Under the directory given as the destination a new one with name - * "model-export--", - * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, - * will be created. Inside the model and any of its supporting files - * will be written. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\GcsDestination|null - */ - public function getGcsDestination() - { - return $this->readOneof(1); - } - - public function hasGcsDestination() - { - return $this->hasOneof(1); - } - - /** - * Required. The Google Cloud Storage location where the model is to be written to. - * This location may only be set for the following model formats: - * "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml". - * Under the directory given as the destination a new one with name - * "model-export--", - * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, - * will be created. Inside the model and any of its supporting files - * will be written. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\GcsDestination $var - * @return $this - */ - public function setGcsDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\GcsDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The format in which the model must be exported. The available, and default, - * formats depend on the problem and model type (if given problem and type - * combination doesn't have a format listed, it means its models are not - * exportable): - * * For Image Classification mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", - * "docker". - * * For Image Classification mobile-core-ml-low-latency-1, - * mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: - * "core_ml" (default). - * * For Image Object Detection mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite", "tf_saved_model", "tf_js". - * Formats description: - * * tflite - Used for Android mobile devices. - * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/) - * devices. - * * tf_saved_model - A tensorflow model in SavedModel format. - * * tf_js - A [TensorFlow.js](https://www.tensorflow.org/js) model that can - * be used in the browser and in Node.js using JavaScript. - * * docker - Used for Docker containers. Use the params field to customize - * the container. The container is verified to work correctly on - * ubuntu 16.04 operating system. See more at - * [containers - * quickstart](https://cloud.google.com/vision/automl/docs/containers-gcs-quickstart) - * * core_ml - Used for iOS mobile devices. - * - * Generated from protobuf field string model_format = 4; - * @return string - */ - public function getModelFormat() - { - return $this->model_format; - } - - /** - * The format in which the model must be exported. The available, and default, - * formats depend on the problem and model type (if given problem and type - * combination doesn't have a format listed, it means its models are not - * exportable): - * * For Image Classification mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", - * "docker". - * * For Image Classification mobile-core-ml-low-latency-1, - * mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: - * "core_ml" (default). - * * For Image Object Detection mobile-low-latency-1, mobile-versatile-1, - * mobile-high-accuracy-1: - * "tflite", "tf_saved_model", "tf_js". - * Formats description: - * * tflite - Used for Android mobile devices. - * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/) - * devices. - * * tf_saved_model - A tensorflow model in SavedModel format. - * * tf_js - A [TensorFlow.js](https://www.tensorflow.org/js) model that can - * be used in the browser and in Node.js using JavaScript. - * * docker - Used for Docker containers. Use the params field to customize - * the container. The container is verified to work correctly on - * ubuntu 16.04 operating system. See more at - * [containers - * quickstart](https://cloud.google.com/vision/automl/docs/containers-gcs-quickstart) - * * core_ml - Used for iOS mobile devices. - * - * Generated from protobuf field string model_format = 4; - * @param string $var - * @return $this - */ - public function setModelFormat($var) - { - GPBUtil::checkString($var, True); - $this->model_format = $var; - - return $this; - } - - /** - * Additional model-type and format specific parameters describing the - * requirements for the to be exported model files, any string must be up to - * 25000 characters long. - * * For `docker` format: - * `cpu_architecture` - (string) "x86_64" (default). - * `gpu_architecture` - (string) "none" (default), "nvidia". - * - * Generated from protobuf field map params = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParams() - { - return $this->params; - } - - /** - * Additional model-type and format specific parameters describing the - * requirements for the to be exported model files, any string must be up to - * 25000 characters long. - * * For `docker` format: - * `cpu_architecture` - (string) "x86_64" (default). - * `gpu_architecture` - (string) "none" (default), "nvidia". - * - * Generated from protobuf field map params = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParams($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->params = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/NormalizedVertex.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/NormalizedVertex.php deleted file mode 100644 index f32853bc25e8..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/NormalizedVertex.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.automl.v1.NormalizedVertex - */ -class NormalizedVertex extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Horizontal coordinate. - * - * Generated from protobuf field float x = 1; - */ - protected $x = 0.0; - /** - * Required. Vertical coordinate. - * - * Generated from protobuf field float y = 2; - */ - protected $y = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $x - * Required. Horizontal coordinate. - * @type float $y - * Required. Vertical coordinate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Geometry::initOnce(); - parent::__construct($data); - } - - /** - * Required. Horizontal coordinate. - * - * Generated from protobuf field float x = 1; - * @return float - */ - public function getX() - { - return $this->x; - } - - /** - * Required. Horizontal coordinate. - * - * Generated from protobuf field float x = 1; - * @param float $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkFloat($var); - $this->x = $var; - - return $this; - } - - /** - * Required. Vertical coordinate. - * - * Generated from protobuf field float y = 2; - * @return float - */ - public function getY() - { - return $this->y; - } - - /** - * Required. Vertical coordinate. - * - * Generated from protobuf field float y = 2; - * @param float $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkFloat($var); - $this->y = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/OperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/OperationMetadata.php deleted file mode 100644 index e6b98b84fc49..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/OperationMetadata.php +++ /dev/null @@ -1,511 +0,0 @@ -google.cloud.automl.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Progress of operation. Range: [0, 100]. - * Not used currently. - * - * Generated from protobuf field int32 progress_percent = 13; - */ - protected $progress_percent = 0; - /** - * Output only. Partial failures encountered. - * E.g. single files that couldn't be read. - * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. - * - * Generated from protobuf field repeated .google.rpc.Status partial_failures = 2; - */ - private $partial_failures; - /** - * Output only. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - */ - protected $create_time = null; - /** - * Output only. Time when the operation was updated for the last time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - */ - protected $update_time = null; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\DeleteOperationMetadata $delete_details - * Details of a Delete operation. - * @type \Google\Cloud\AutoMl\V1\DeployModelOperationMetadata $deploy_model_details - * Details of a DeployModel operation. - * @type \Google\Cloud\AutoMl\V1\UndeployModelOperationMetadata $undeploy_model_details - * Details of an UndeployModel operation. - * @type \Google\Cloud\AutoMl\V1\CreateModelOperationMetadata $create_model_details - * Details of CreateModel operation. - * @type \Google\Cloud\AutoMl\V1\CreateDatasetOperationMetadata $create_dataset_details - * Details of CreateDataset operation. - * @type \Google\Cloud\AutoMl\V1\ImportDataOperationMetadata $import_data_details - * Details of ImportData operation. - * @type \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata $batch_predict_details - * Details of BatchPredict operation. - * @type \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata $export_data_details - * Details of ExportData operation. - * @type \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata $export_model_details - * Details of ExportModel operation. - * @type int $progress_percent - * Output only. Progress of operation. Range: [0, 100]. - * Not used currently. - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_failures - * Output only. Partial failures encountered. - * E.g. single files that couldn't be read. - * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the operation was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time when the operation was updated for the last time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - - /** - * Details of a Delete operation. - * - * Generated from protobuf field .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * @return \Google\Cloud\AutoMl\V1\DeleteOperationMetadata|null - */ - public function getDeleteDetails() - { - return $this->readOneof(8); - } - - public function hasDeleteDetails() - { - return $this->hasOneof(8); - } - - /** - * Details of a Delete operation. - * - * Generated from protobuf field .google.cloud.automl.v1.DeleteOperationMetadata delete_details = 8; - * @param \Google\Cloud\AutoMl\V1\DeleteOperationMetadata $var - * @return $this - */ - public function setDeleteDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\DeleteOperationMetadata::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Details of a DeployModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * @return \Google\Cloud\AutoMl\V1\DeployModelOperationMetadata|null - */ - public function getDeployModelDetails() - { - return $this->readOneof(24); - } - - public function hasDeployModelDetails() - { - return $this->hasOneof(24); - } - - /** - * Details of a DeployModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.DeployModelOperationMetadata deploy_model_details = 24; - * @param \Google\Cloud\AutoMl\V1\DeployModelOperationMetadata $var - * @return $this - */ - public function setDeployModelDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\DeployModelOperationMetadata::class); - $this->writeOneof(24, $var); - - return $this; - } - - /** - * Details of an UndeployModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * @return \Google\Cloud\AutoMl\V1\UndeployModelOperationMetadata|null - */ - public function getUndeployModelDetails() - { - return $this->readOneof(25); - } - - public function hasUndeployModelDetails() - { - return $this->hasOneof(25); - } - - /** - * Details of an UndeployModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.UndeployModelOperationMetadata undeploy_model_details = 25; - * @param \Google\Cloud\AutoMl\V1\UndeployModelOperationMetadata $var - * @return $this - */ - public function setUndeployModelDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\UndeployModelOperationMetadata::class); - $this->writeOneof(25, $var); - - return $this; - } - - /** - * Details of CreateModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * @return \Google\Cloud\AutoMl\V1\CreateModelOperationMetadata|null - */ - public function getCreateModelDetails() - { - return $this->readOneof(10); - } - - public function hasCreateModelDetails() - { - return $this->hasOneof(10); - } - - /** - * Details of CreateModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.CreateModelOperationMetadata create_model_details = 10; - * @param \Google\Cloud\AutoMl\V1\CreateModelOperationMetadata $var - * @return $this - */ - public function setCreateModelDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\CreateModelOperationMetadata::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Details of CreateDataset operation. - * - * Generated from protobuf field .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * @return \Google\Cloud\AutoMl\V1\CreateDatasetOperationMetadata|null - */ - public function getCreateDatasetDetails() - { - return $this->readOneof(30); - } - - public function hasCreateDatasetDetails() - { - return $this->hasOneof(30); - } - - /** - * Details of CreateDataset operation. - * - * Generated from protobuf field .google.cloud.automl.v1.CreateDatasetOperationMetadata create_dataset_details = 30; - * @param \Google\Cloud\AutoMl\V1\CreateDatasetOperationMetadata $var - * @return $this - */ - public function setCreateDatasetDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\CreateDatasetOperationMetadata::class); - $this->writeOneof(30, $var); - - return $this; - } - - /** - * Details of ImportData operation. - * - * Generated from protobuf field .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * @return \Google\Cloud\AutoMl\V1\ImportDataOperationMetadata|null - */ - public function getImportDataDetails() - { - return $this->readOneof(15); - } - - public function hasImportDataDetails() - { - return $this->hasOneof(15); - } - - /** - * Details of ImportData operation. - * - * Generated from protobuf field .google.cloud.automl.v1.ImportDataOperationMetadata import_data_details = 15; - * @param \Google\Cloud\AutoMl\V1\ImportDataOperationMetadata $var - * @return $this - */ - public function setImportDataDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ImportDataOperationMetadata::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Details of BatchPredict operation. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * @return \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata|null - */ - public function getBatchPredictDetails() - { - return $this->readOneof(16); - } - - public function hasBatchPredictDetails() - { - return $this->hasOneof(16); - } - - /** - * Details of BatchPredict operation. - * - * Generated from protobuf field .google.cloud.automl.v1.BatchPredictOperationMetadata batch_predict_details = 16; - * @param \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata $var - * @return $this - */ - public function setBatchPredictDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\BatchPredictOperationMetadata::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Details of ExportData operation. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * @return \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata|null - */ - public function getExportDataDetails() - { - return $this->readOneof(21); - } - - public function hasExportDataDetails() - { - return $this->hasOneof(21); - } - - /** - * Details of ExportData operation. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportDataOperationMetadata export_data_details = 21; - * @param \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata $var - * @return $this - */ - public function setExportDataDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ExportDataOperationMetadata::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Details of ExportModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * @return \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata|null - */ - public function getExportModelDetails() - { - return $this->readOneof(22); - } - - public function hasExportModelDetails() - { - return $this->hasOneof(22); - } - - /** - * Details of ExportModel operation. - * - * Generated from protobuf field .google.cloud.automl.v1.ExportModelOperationMetadata export_model_details = 22; - * @param \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata $var - * @return $this - */ - public function setExportModelDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ExportModelOperationMetadata::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * Output only. Progress of operation. Range: [0, 100]. - * Not used currently. - * - * Generated from protobuf field int32 progress_percent = 13; - * @return int - */ - public function getProgressPercent() - { - return $this->progress_percent; - } - - /** - * Output only. Progress of operation. Range: [0, 100]. - * Not used currently. - * - * Generated from protobuf field int32 progress_percent = 13; - * @param int $var - * @return $this - */ - public function setProgressPercent($var) - { - GPBUtil::checkInt32($var); - $this->progress_percent = $var; - - return $this; - } - - /** - * Output only. Partial failures encountered. - * E.g. single files that couldn't be read. - * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. - * - * Generated from protobuf field repeated .google.rpc.Status partial_failures = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPartialFailures() - { - return $this->partial_failures; - } - - /** - * Output only. Partial failures encountered. - * E.g. single files that couldn't be read. - * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. - * - * Generated from protobuf field repeated .google.rpc.Status partial_failures = 2; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPartialFailures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->partial_failures = $arr; - - return $this; - } - - /** - * Output only. Time when the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @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 operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @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 the operation was updated for the last time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @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 the operation was updated for the last time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/OutputConfig.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/OutputConfig.php deleted file mode 100644 index 588a791d8a38..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/OutputConfig.php +++ /dev/null @@ -1,116 +0,0 @@ -_` - * where will be made - * BigQuery-dataset-name compatible (e.g. most special characters will - * become underscores), and timestamp will be in - * YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that - * dataset a new table called `primary_table` will be created, and - * filled with precisely the same data as this obtained on import. - * - * Generated from protobuf message google.cloud.automl.v1.OutputConfig - */ -class OutputConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\GcsDestination $gcs_destination - * Required. The Google Cloud Storage location where the output is to be written to. - * For Image Object Detection, Text Extraction, Video Classification and - * Tables, in the given directory a new directory will be created with name: - * export_data-- where - * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export - * output will be written into that directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Io::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Google Cloud Storage location where the output is to be written to. - * For Image Object Detection, Text Extraction, Video Classification and - * Tables, in the given directory a new directory will be created with name: - * export_data-- where - * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export - * output will be written into that directory. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\GcsDestination|null - */ - public function getGcsDestination() - { - return $this->readOneof(1); - } - - public function hasGcsDestination() - { - return $this->hasOneof(1); - } - - /** - * Required. The Google Cloud Storage location where the output is to be written to. - * For Image Object Detection, Text Extraction, Video Classification and - * Tables, in the given directory a new directory will be created with name: - * export_data-- where - * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export - * output will be written into that directory. - * - * Generated from protobuf field .google.cloud.automl.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\GcsDestination $var - * @return $this - */ - public function setGcsDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\GcsDestination::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/PredictRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/PredictRequest.php deleted file mode 100644 index fe8b74d90ec0..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/PredictRequest.php +++ /dev/null @@ -1,285 +0,0 @@ -google.cloud.automl.v1.PredictRequest - */ -class PredictRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the model requested to serve the prediction. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Payload to perform a prediction on. The payload must match the - * problem type that the model was trained to solve. - * - * Generated from protobuf field .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $payload = null; - /** - * Additional domain-specific parameters, any string must be up to 25000 - * characters long. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that have - * at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned. The default is 100. The - * number of returned bounding boxes might be limited by the server. - * AutoML Tables - * `feature_importance` - * : (boolean) Whether - * [feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance] - * is populated in the returned list of - * [TablesAnnotation][google.cloud.automl.v1.TablesAnnotation] - * objects. The default is false. - * - * Generated from protobuf field map params = 3; - */ - private $params; - - /** - * @param string $name Required. Name of the model requested to serve the prediction. Please see - * {@see PredictionServiceClient::modelName()} for help formatting this field. - * @param \Google\Cloud\AutoMl\V1\ExamplePayload $payload Required. Payload to perform a prediction on. The payload must match the - * problem type that the model was trained to solve. - * @param array $params Additional domain-specific parameters, any string must be up to 25000 - * characters long. - * - * AutoML Vision Classification - * - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that have - * at least this confidence score. The default is 0.5. - * - * AutoML Vision Object Detection - * - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned. The default is 100. The - * number of returned bounding boxes might be limited by the server. - * - * AutoML Tables - * - * `feature_importance` - * : (boolean) Whether - * [feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance] - * is populated in the returned list of - * [TablesAnnotation][google.cloud.automl.v1.TablesAnnotation] - * objects. The default is false. - * - * @return \Google\Cloud\AutoMl\V1\PredictRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\AutoMl\V1\ExamplePayload $payload, array $params): self - { - return (new self()) - ->setName($name) - ->setPayload($payload) - ->setParams($params); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the model requested to serve the prediction. - * @type \Google\Cloud\AutoMl\V1\ExamplePayload $payload - * Required. Payload to perform a prediction on. The payload must match the - * problem type that the model was trained to solve. - * @type array|\Google\Protobuf\Internal\MapField $params - * Additional domain-specific parameters, any string must be up to 25000 - * characters long. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that have - * at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned. The default is 100. The - * number of returned bounding boxes might be limited by the server. - * AutoML Tables - * `feature_importance` - * : (boolean) Whether - * [feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance] - * is populated in the returned list of - * [TablesAnnotation][google.cloud.automl.v1.TablesAnnotation] - * objects. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\PredictionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the model requested to serve the prediction. - * - * 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. Name of the model requested to serve the prediction. - * - * 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; - } - - /** - * Required. Payload to perform a prediction on. The payload must match the - * problem type that the model was trained to solve. - * - * Generated from protobuf field .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\ExamplePayload|null - */ - public function getPayload() - { - return $this->payload; - } - - public function hasPayload() - { - return isset($this->payload); - } - - public function clearPayload() - { - unset($this->payload); - } - - /** - * Required. Payload to perform a prediction on. The payload must match the - * problem type that the model was trained to solve. - * - * Generated from protobuf field .google.cloud.automl.v1.ExamplePayload payload = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\ExamplePayload $var - * @return $this - */ - public function setPayload($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ExamplePayload::class); - $this->payload = $var; - - return $this; - } - - /** - * Additional domain-specific parameters, any string must be up to 25000 - * characters long. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that have - * at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned. The default is 100. The - * number of returned bounding boxes might be limited by the server. - * AutoML Tables - * `feature_importance` - * : (boolean) Whether - * [feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance] - * is populated in the returned list of - * [TablesAnnotation][google.cloud.automl.v1.TablesAnnotation] - * objects. The default is false. - * - * Generated from protobuf field map params = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParams() - { - return $this->params; - } - - /** - * Additional domain-specific parameters, any string must be up to 25000 - * characters long. - * AutoML Vision Classification - * `score_threshold` - * : (float) A value from 0.0 to 1.0. When the model - * makes predictions for an image, it will only produce results that have - * at least this confidence score. The default is 0.5. - * AutoML Vision Object Detection - * `score_threshold` - * : (float) When Model detects objects on the image, - * it will only produce bounding boxes which have at least this - * confidence score. Value in 0 to 1 range, default is 0.5. - * `max_bounding_box_count` - * : (int64) The maximum number of bounding - * boxes returned. The default is 100. The - * number of returned bounding boxes might be limited by the server. - * AutoML Tables - * `feature_importance` - * : (boolean) Whether - * [feature_importance][google.cloud.automl.v1.TablesModelColumnInfo.feature_importance] - * is populated in the returned list of - * [TablesAnnotation][google.cloud.automl.v1.TablesAnnotation] - * objects. The default is false. - * - * Generated from protobuf field map params = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParams($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->params = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/PredictResponse.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/PredictResponse.php deleted file mode 100644 index e87737cc5e77..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/PredictResponse.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.automl.v1.PredictResponse - */ -class PredictResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Prediction result. - * AutoML Translation and AutoML Natural Language Sentiment Analysis - * return precisely one payload. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.AnnotationPayload payload = 1; - */ - private $payload; - /** - * The preprocessed example that AutoML actually makes prediction on. - * Empty if AutoML does not preprocess the input example. - * For AutoML Natural Language (Classification, Entity Extraction, and - * Sentiment Analysis), if the input is a document, the recognized text is - * returned in the - * [document_text][google.cloud.automl.v1.Document.document_text] - * property. - * - * Generated from protobuf field .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - */ - protected $preprocessed_input = null; - /** - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes to return per image. - * AutoML Natural Language Sentiment Analysis - * `sentiment_score` - * : (float, deprecated) A value between -1 and 1, - * -1 maps to least positive sentiment, while 1 maps to the most positive - * one and the higher the score, the more positive the sentiment in the - * document is. Yet these values are relative to the training data, so - * e.g. if all data was positive then -1 is also positive (though - * the least). - * `sentiment_score` is not the same as "score" and "magnitude" - * from Sentiment Analysis in the Natural Language API. - * - * Generated from protobuf field map metadata = 2; - */ - private $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\AutoMl\V1\AnnotationPayload>|\Google\Protobuf\Internal\RepeatedField $payload - * Prediction result. - * AutoML Translation and AutoML Natural Language Sentiment Analysis - * return precisely one payload. - * @type \Google\Cloud\AutoMl\V1\ExamplePayload $preprocessed_input - * The preprocessed example that AutoML actually makes prediction on. - * Empty if AutoML does not preprocess the input example. - * For AutoML Natural Language (Classification, Entity Extraction, and - * Sentiment Analysis), if the input is a document, the recognized text is - * returned in the - * [document_text][google.cloud.automl.v1.Document.document_text] - * property. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes to return per image. - * AutoML Natural Language Sentiment Analysis - * `sentiment_score` - * : (float, deprecated) A value between -1 and 1, - * -1 maps to least positive sentiment, while 1 maps to the most positive - * one and the higher the score, the more positive the sentiment in the - * document is. Yet these values are relative to the training data, so - * e.g. if all data was positive then -1 is also positive (though - * the least). - * `sentiment_score` is not the same as "score" and "magnitude" - * from Sentiment Analysis in the Natural Language API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\PredictionService::initOnce(); - parent::__construct($data); - } - - /** - * Prediction result. - * AutoML Translation and AutoML Natural Language Sentiment Analysis - * return precisely one payload. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.AnnotationPayload payload = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPayload() - { - return $this->payload; - } - - /** - * Prediction result. - * AutoML Translation and AutoML Natural Language Sentiment Analysis - * return precisely one payload. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.AnnotationPayload payload = 1; - * @param array<\Google\Cloud\AutoMl\V1\AnnotationPayload>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPayload($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\AnnotationPayload::class); - $this->payload = $arr; - - return $this; - } - - /** - * The preprocessed example that AutoML actually makes prediction on. - * Empty if AutoML does not preprocess the input example. - * For AutoML Natural Language (Classification, Entity Extraction, and - * Sentiment Analysis), if the input is a document, the recognized text is - * returned in the - * [document_text][google.cloud.automl.v1.Document.document_text] - * property. - * - * Generated from protobuf field .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * @return \Google\Cloud\AutoMl\V1\ExamplePayload|null - */ - public function getPreprocessedInput() - { - return $this->preprocessed_input; - } - - public function hasPreprocessedInput() - { - return isset($this->preprocessed_input); - } - - public function clearPreprocessedInput() - { - unset($this->preprocessed_input); - } - - /** - * The preprocessed example that AutoML actually makes prediction on. - * Empty if AutoML does not preprocess the input example. - * For AutoML Natural Language (Classification, Entity Extraction, and - * Sentiment Analysis), if the input is a document, the recognized text is - * returned in the - * [document_text][google.cloud.automl.v1.Document.document_text] - * property. - * - * Generated from protobuf field .google.cloud.automl.v1.ExamplePayload preprocessed_input = 3; - * @param \Google\Cloud\AutoMl\V1\ExamplePayload $var - * @return $this - */ - public function setPreprocessedInput($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ExamplePayload::class); - $this->preprocessed_input = $var; - - return $this; - } - - /** - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes to return per image. - * AutoML Natural Language Sentiment Analysis - * `sentiment_score` - * : (float, deprecated) A value between -1 and 1, - * -1 maps to least positive sentiment, while 1 maps to the most positive - * one and the higher the score, the more positive the sentiment in the - * document is. Yet these values are relative to the training data, so - * e.g. if all data was positive then -1 is also positive (though - * the least). - * `sentiment_score` is not the same as "score" and "magnitude" - * from Sentiment Analysis in the Natural Language API. - * - * Generated from protobuf field map metadata = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Additional domain-specific prediction response metadata. - * AutoML Vision Object Detection - * `max_bounding_box_count` - * : (int64) The maximum number of bounding boxes to return per image. - * AutoML Natural Language Sentiment Analysis - * `sentiment_score` - * : (float, deprecated) A value between -1 and 1, - * -1 maps to least positive sentiment, while 1 maps to the most positive - * one and the higher the score, the more positive the sentiment in the - * document is. Yet these values are relative to the training data, so - * e.g. if all data was positive then -1 is also positive (though - * the least). - * `sentiment_score` is not the same as "score" and "magnitude" - * from Sentiment Analysis in the Natural Language API. - * - * Generated from protobuf field map metadata = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextClassificationDatasetMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextClassificationDatasetMetadata.php deleted file mode 100644 index d174bc8d04a8..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextClassificationDatasetMetadata.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.automl.v1.TextClassificationDatasetMetadata - */ -class TextClassificationDatasetMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Type of the classification problem. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 1; - */ - protected $classification_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $classification_type - * Required. Type of the classification problem. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Text::initOnce(); - parent::__construct($data); - } - - /** - * Required. Type of the classification problem. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 1; - * @return int - */ - public function getClassificationType() - { - return $this->classification_type; - } - - /** - * Required. Type of the classification problem. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 1; - * @param int $var - * @return $this - */ - public function setClassificationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1\ClassificationType::class); - $this->classification_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextClassificationModelMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextClassificationModelMetadata.php deleted file mode 100644 index 2d1a81c94f42..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextClassificationModelMetadata.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.automl.v1.TextClassificationModelMetadata - */ -class TextClassificationModelMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Classification type of the dataset used to train this model. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 3; - */ - protected $classification_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $classification_type - * Output only. Classification type of the dataset used to train this model. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Text::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Classification type of the dataset used to train this model. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 3; - * @return int - */ - public function getClassificationType() - { - return $this->classification_type; - } - - /** - * Output only. Classification type of the dataset used to train this model. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationType classification_type = 3; - * @param int $var - * @return $this - */ - public function setClassificationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1\ClassificationType::class); - $this->classification_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionAnnotation.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionAnnotation.php deleted file mode 100644 index 38691a3cc831..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionAnnotation.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.automl.v1.TextExtractionAnnotation - */ -class TextExtractionAnnotation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence in correctness of the annotation. - * - * Generated from protobuf field float score = 1; - */ - protected $score = 0.0; - protected $annotation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\TextSegment $text_segment - * An entity annotation will set this, which is the part of the original - * text to which the annotation pertains. - * @type float $score - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence in correctness of the annotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\TextExtraction::initOnce(); - parent::__construct($data); - } - - /** - * An entity annotation will set this, which is the part of the original - * text to which the annotation pertains. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSegment text_segment = 3; - * @return \Google\Cloud\AutoMl\V1\TextSegment|null - */ - public function getTextSegment() - { - return $this->readOneof(3); - } - - public function hasTextSegment() - { - return $this->hasOneof(3); - } - - /** - * An entity annotation will set this, which is the part of the original - * text to which the annotation pertains. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSegment text_segment = 3; - * @param \Google\Cloud\AutoMl\V1\TextSegment $var - * @return $this - */ - public function setTextSegment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSegment::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence in correctness of the annotation. - * - * Generated from protobuf field float score = 1; - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * Output only. A confidence estimate between 0.0 and 1.0. A higher value - * means greater confidence in correctness of the annotation. - * - * Generated from protobuf field float score = 1; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - - /** - * @return string - */ - public function getAnnotation() - { - return $this->whichOneof("annotation"); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionDatasetMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionDatasetMetadata.php deleted file mode 100644 index b6c10c7bd5f5..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionDatasetMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.TextExtractionDatasetMetadata - */ -class TextExtractionDatasetMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Text::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionEvaluationMetrics.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionEvaluationMetrics.php deleted file mode 100644 index 2acd2cd4824d..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionEvaluationMetrics.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.automl.v1.TextExtractionEvaluationMetrics - */ -class TextExtractionEvaluationMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The Area under precision recall curve metric. - * - * Generated from protobuf field float au_prc = 1; - */ - protected $au_prc = 0.0; - /** - * Output only. Metrics that have confidence thresholds. - * Precision-recall curve can be derived from it. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - */ - private $confidence_metrics_entries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $au_prc - * Output only. The Area under precision recall curve metric. - * @type array<\Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics\ConfidenceMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $confidence_metrics_entries - * Output only. Metrics that have confidence thresholds. - * Precision-recall curve can be derived from it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\TextExtraction::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The Area under precision recall curve metric. - * - * Generated from protobuf field float au_prc = 1; - * @return float - */ - public function getAuPrc() - { - return $this->au_prc; - } - - /** - * Output only. The Area under precision recall curve metric. - * - * Generated from protobuf field float au_prc = 1; - * @param float $var - * @return $this - */ - public function setAuPrc($var) - { - GPBUtil::checkFloat($var); - $this->au_prc = $var; - - return $this; - } - - /** - * Output only. Metrics that have confidence thresholds. - * Precision-recall curve can be derived from it. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConfidenceMetricsEntries() - { - return $this->confidence_metrics_entries; - } - - /** - * Output only. Metrics that have confidence thresholds. - * Precision-recall curve can be derived from it. - * - * Generated from protobuf field repeated .google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; - * @param array<\Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics\ConfidenceMetricsEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConfidenceMetricsEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics\ConfidenceMetricsEntry::class); - $this->confidence_metrics_entries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionEvaluationMetrics/ConfidenceMetricsEntry.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionEvaluationMetrics/ConfidenceMetricsEntry.php deleted file mode 100644 index 8c833d3d60d6..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionEvaluationMetrics/ConfidenceMetricsEntry.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry - */ -class ConfidenceMetricsEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The confidence threshold value used to compute the metrics. - * Only annotations with score of at least this threshold are considered to - * be ones the model would return. - * - * Generated from protobuf field float confidence_threshold = 1; - */ - protected $confidence_threshold = 0.0; - /** - * Output only. Recall under the given confidence threshold. - * - * Generated from protobuf field float recall = 3; - */ - protected $recall = 0.0; - /** - * Output only. Precision under the given confidence threshold. - * - * Generated from protobuf field float precision = 4; - */ - protected $precision = 0.0; - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 5; - */ - protected $f1_score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $confidence_threshold - * Output only. The confidence threshold value used to compute the metrics. - * Only annotations with score of at least this threshold are considered to - * be ones the model would return. - * @type float $recall - * Output only. Recall under the given confidence threshold. - * @type float $precision - * Output only. Precision under the given confidence threshold. - * @type float $f1_score - * Output only. The harmonic mean of recall and precision. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\TextExtraction::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The confidence threshold value used to compute the metrics. - * Only annotations with score of at least this threshold are considered to - * be ones the model would return. - * - * Generated from protobuf field float confidence_threshold = 1; - * @return float - */ - public function getConfidenceThreshold() - { - return $this->confidence_threshold; - } - - /** - * Output only. The confidence threshold value used to compute the metrics. - * Only annotations with score of at least this threshold are considered to - * be ones the model would return. - * - * Generated from protobuf field float confidence_threshold = 1; - * @param float $var - * @return $this - */ - public function setConfidenceThreshold($var) - { - GPBUtil::checkFloat($var); - $this->confidence_threshold = $var; - - return $this; - } - - /** - * Output only. Recall under the given confidence threshold. - * - * Generated from protobuf field float recall = 3; - * @return float - */ - public function getRecall() - { - return $this->recall; - } - - /** - * Output only. Recall under the given confidence threshold. - * - * Generated from protobuf field float recall = 3; - * @param float $var - * @return $this - */ - public function setRecall($var) - { - GPBUtil::checkFloat($var); - $this->recall = $var; - - return $this; - } - - /** - * Output only. Precision under the given confidence threshold. - * - * Generated from protobuf field float precision = 4; - * @return float - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * Output only. Precision under the given confidence threshold. - * - * Generated from protobuf field float precision = 4; - * @param float $var - * @return $this - */ - public function setPrecision($var) - { - GPBUtil::checkFloat($var); - $this->precision = $var; - - return $this; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 5; - * @return float - */ - public function getF1Score() - { - return $this->f1_score; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 5; - * @param float $var - * @return $this - */ - public function setF1Score($var) - { - GPBUtil::checkFloat($var); - $this->f1_score = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConfidenceMetricsEntry::class, \Google\Cloud\AutoMl\V1\TextExtractionEvaluationMetrics_ConfidenceMetricsEntry::class); - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionModelMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionModelMetadata.php deleted file mode 100644 index cdc4f068d268..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextExtractionModelMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.TextExtractionModelMetadata - */ -class TextExtractionModelMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Text::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSegment.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSegment.php deleted file mode 100644 index 9ccbf189ab85..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSegment.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.automl.v1.TextSegment - */ -class TextSegment extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The content of the TextSegment. - * - * Generated from protobuf field string content = 3; - */ - protected $content = ''; - /** - * Required. Zero-based character index of the first character of the text - * segment (counting characters from the beginning of the text). - * - * Generated from protobuf field int64 start_offset = 1; - */ - protected $start_offset = 0; - /** - * Required. Zero-based character index of the first character past the end of - * the text segment (counting character from the beginning of the text). - * The character at the end_offset is NOT included in the text segment. - * - * Generated from protobuf field int64 end_offset = 2; - */ - protected $end_offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content - * Output only. The content of the TextSegment. - * @type int|string $start_offset - * Required. Zero-based character index of the first character of the text - * segment (counting characters from the beginning of the text). - * @type int|string $end_offset - * Required. Zero-based character index of the first character past the end of - * the text segment (counting character from the beginning of the text). - * The character at the end_offset is NOT included in the text segment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\TextSegment::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The content of the TextSegment. - * - * Generated from protobuf field string content = 3; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Output only. The content of the TextSegment. - * - * Generated from protobuf field string content = 3; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Required. Zero-based character index of the first character of the text - * segment (counting characters from the beginning of the text). - * - * Generated from protobuf field int64 start_offset = 1; - * @return int|string - */ - public function getStartOffset() - { - return $this->start_offset; - } - - /** - * Required. Zero-based character index of the first character of the text - * segment (counting characters from the beginning of the text). - * - * Generated from protobuf field int64 start_offset = 1; - * @param int|string $var - * @return $this - */ - public function setStartOffset($var) - { - GPBUtil::checkInt64($var); - $this->start_offset = $var; - - return $this; - } - - /** - * Required. Zero-based character index of the first character past the end of - * the text segment (counting character from the beginning of the text). - * The character at the end_offset is NOT included in the text segment. - * - * Generated from protobuf field int64 end_offset = 2; - * @return int|string - */ - public function getEndOffset() - { - return $this->end_offset; - } - - /** - * Required. Zero-based character index of the first character past the end of - * the text segment (counting character from the beginning of the text). - * The character at the end_offset is NOT included in the text segment. - * - * Generated from protobuf field int64 end_offset = 2; - * @param int|string $var - * @return $this - */ - public function setEndOffset($var) - { - GPBUtil::checkInt64($var); - $this->end_offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentAnnotation.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentAnnotation.php deleted file mode 100644 index 1c95dbd25468..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentAnnotation.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.automl.v1.TextSentimentAnnotation - */ -class TextSentimentAnnotation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The sentiment with the semantic, as given to the - * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used - * for the prediction had been trained. - * The sentiment values are between 0 and - * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), - * with higher value meaning more positive sentiment. They are completely - * relative, i.e. 0 means least positive sentiment and sentiment_max means - * the most positive from the sentiments present in the train data. Therefore - * e.g. if train data had only negative sentiment, then sentiment_max, would - * be still negative (although least negative). - * The sentiment shouldn't be confused with "score" or "magnitude" - * from the previous Natural Language Sentiment Analysis API. - * - * Generated from protobuf field int32 sentiment = 1; - */ - protected $sentiment = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $sentiment - * Output only. The sentiment with the semantic, as given to the - * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used - * for the prediction had been trained. - * The sentiment values are between 0 and - * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), - * with higher value meaning more positive sentiment. They are completely - * relative, i.e. 0 means least positive sentiment and sentiment_max means - * the most positive from the sentiments present in the train data. Therefore - * e.g. if train data had only negative sentiment, then sentiment_max, would - * be still negative (although least negative). - * The sentiment shouldn't be confused with "score" or "magnitude" - * from the previous Natural Language Sentiment Analysis API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\TextSentiment::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The sentiment with the semantic, as given to the - * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used - * for the prediction had been trained. - * The sentiment values are between 0 and - * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), - * with higher value meaning more positive sentiment. They are completely - * relative, i.e. 0 means least positive sentiment and sentiment_max means - * the most positive from the sentiments present in the train data. Therefore - * e.g. if train data had only negative sentiment, then sentiment_max, would - * be still negative (although least negative). - * The sentiment shouldn't be confused with "score" or "magnitude" - * from the previous Natural Language Sentiment Analysis API. - * - * Generated from protobuf field int32 sentiment = 1; - * @return int - */ - public function getSentiment() - { - return $this->sentiment; - } - - /** - * Output only. The sentiment with the semantic, as given to the - * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used - * for the prediction had been trained. - * The sentiment values are between 0 and - * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), - * with higher value meaning more positive sentiment. They are completely - * relative, i.e. 0 means least positive sentiment and sentiment_max means - * the most positive from the sentiments present in the train data. Therefore - * e.g. if train data had only negative sentiment, then sentiment_max, would - * be still negative (although least negative). - * The sentiment shouldn't be confused with "score" or "magnitude" - * from the previous Natural Language Sentiment Analysis API. - * - * Generated from protobuf field int32 sentiment = 1; - * @param int $var - * @return $this - */ - public function setSentiment($var) - { - GPBUtil::checkInt32($var); - $this->sentiment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentDatasetMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentDatasetMetadata.php deleted file mode 100644 index 352d7dfd4d45..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentDatasetMetadata.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.automl.v1.TextSentimentDatasetMetadata - */ -class TextSentimentDatasetMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A sentiment is expressed as an integer ordinal, where higher value - * means a more positive sentiment. The range of sentiments that will be used - * is between 0 and sentiment_max (inclusive on both ends), and all the values - * in the range must be represented in the dataset before a model can be - * created. - * sentiment_max value must be between 1 and 10 (inclusive). - * - * Generated from protobuf field int32 sentiment_max = 1; - */ - protected $sentiment_max = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $sentiment_max - * Required. A sentiment is expressed as an integer ordinal, where higher value - * means a more positive sentiment. The range of sentiments that will be used - * is between 0 and sentiment_max (inclusive on both ends), and all the values - * in the range must be represented in the dataset before a model can be - * created. - * sentiment_max value must be between 1 and 10 (inclusive). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Text::initOnce(); - parent::__construct($data); - } - - /** - * Required. A sentiment is expressed as an integer ordinal, where higher value - * means a more positive sentiment. The range of sentiments that will be used - * is between 0 and sentiment_max (inclusive on both ends), and all the values - * in the range must be represented in the dataset before a model can be - * created. - * sentiment_max value must be between 1 and 10 (inclusive). - * - * Generated from protobuf field int32 sentiment_max = 1; - * @return int - */ - public function getSentimentMax() - { - return $this->sentiment_max; - } - - /** - * Required. A sentiment is expressed as an integer ordinal, where higher value - * means a more positive sentiment. The range of sentiments that will be used - * is between 0 and sentiment_max (inclusive on both ends), and all the values - * in the range must be represented in the dataset before a model can be - * created. - * sentiment_max value must be between 1 and 10 (inclusive). - * - * Generated from protobuf field int32 sentiment_max = 1; - * @param int $var - * @return $this - */ - public function setSentimentMax($var) - { - GPBUtil::checkInt32($var); - $this->sentiment_max = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentEvaluationMetrics.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentEvaluationMetrics.php deleted file mode 100644 index 3d45752c0090..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentEvaluationMetrics.php +++ /dev/null @@ -1,339 +0,0 @@ -google.cloud.automl.v1.TextSentimentEvaluationMetrics - */ -class TextSentimentEvaluationMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Precision. - * - * Generated from protobuf field float precision = 1; - */ - protected $precision = 0.0; - /** - * Output only. Recall. - * - * Generated from protobuf field float recall = 2; - */ - protected $recall = 0.0; - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 3; - */ - protected $f1_score = 0.0; - /** - * Output only. Mean absolute error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float mean_absolute_error = 4; - */ - protected $mean_absolute_error = 0.0; - /** - * Output only. Mean squared error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float mean_squared_error = 5; - */ - protected $mean_squared_error = 0.0; - /** - * Output only. Linear weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float linear_kappa = 6; - */ - protected $linear_kappa = 0.0; - /** - * Output only. Quadratic weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float quadratic_kappa = 7; - */ - protected $quadratic_kappa = 0.0; - /** - * Output only. Confusion matrix of the evaluation. - * Only set for the overall model evaluation, not for evaluation of a single - * annotation spec. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - */ - protected $confusion_matrix = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $precision - * Output only. Precision. - * @type float $recall - * Output only. Recall. - * @type float $f1_score - * Output only. The harmonic mean of recall and precision. - * @type float $mean_absolute_error - * Output only. Mean absolute error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * @type float $mean_squared_error - * Output only. Mean squared error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * @type float $linear_kappa - * Output only. Linear weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * @type float $quadratic_kappa - * Output only. Quadratic weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * @type \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix $confusion_matrix - * Output only. Confusion matrix of the evaluation. - * Only set for the overall model evaluation, not for evaluation of a single - * annotation spec. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\TextSentiment::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Precision. - * - * Generated from protobuf field float precision = 1; - * @return float - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * Output only. Precision. - * - * Generated from protobuf field float precision = 1; - * @param float $var - * @return $this - */ - public function setPrecision($var) - { - GPBUtil::checkFloat($var); - $this->precision = $var; - - return $this; - } - - /** - * Output only. Recall. - * - * Generated from protobuf field float recall = 2; - * @return float - */ - public function getRecall() - { - return $this->recall; - } - - /** - * Output only. Recall. - * - * Generated from protobuf field float recall = 2; - * @param float $var - * @return $this - */ - public function setRecall($var) - { - GPBUtil::checkFloat($var); - $this->recall = $var; - - return $this; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 3; - * @return float - */ - public function getF1Score() - { - return $this->f1_score; - } - - /** - * Output only. The harmonic mean of recall and precision. - * - * Generated from protobuf field float f1_score = 3; - * @param float $var - * @return $this - */ - public function setF1Score($var) - { - GPBUtil::checkFloat($var); - $this->f1_score = $var; - - return $this; - } - - /** - * Output only. Mean absolute error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float mean_absolute_error = 4; - * @return float - */ - public function getMeanAbsoluteError() - { - return $this->mean_absolute_error; - } - - /** - * Output only. Mean absolute error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float mean_absolute_error = 4; - * @param float $var - * @return $this - */ - public function setMeanAbsoluteError($var) - { - GPBUtil::checkFloat($var); - $this->mean_absolute_error = $var; - - return $this; - } - - /** - * Output only. Mean squared error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float mean_squared_error = 5; - * @return float - */ - public function getMeanSquaredError() - { - return $this->mean_squared_error; - } - - /** - * Output only. Mean squared error. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float mean_squared_error = 5; - * @param float $var - * @return $this - */ - public function setMeanSquaredError($var) - { - GPBUtil::checkFloat($var); - $this->mean_squared_error = $var; - - return $this; - } - - /** - * Output only. Linear weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float linear_kappa = 6; - * @return float - */ - public function getLinearKappa() - { - return $this->linear_kappa; - } - - /** - * Output only. Linear weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float linear_kappa = 6; - * @param float $var - * @return $this - */ - public function setLinearKappa($var) - { - GPBUtil::checkFloat($var); - $this->linear_kappa = $var; - - return $this; - } - - /** - * Output only. Quadratic weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float quadratic_kappa = 7; - * @return float - */ - public function getQuadraticKappa() - { - return $this->quadratic_kappa; - } - - /** - * Output only. Quadratic weighted kappa. Only set for the overall model - * evaluation, not for evaluation of a single annotation spec. - * - * Generated from protobuf field float quadratic_kappa = 7; - * @param float $var - * @return $this - */ - public function setQuadraticKappa($var) - { - GPBUtil::checkFloat($var); - $this->quadratic_kappa = $var; - - return $this; - } - - /** - * Output only. Confusion matrix of the evaluation. - * Only set for the overall model evaluation, not for evaluation of a single - * annotation spec. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * @return \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix|null - */ - public function getConfusionMatrix() - { - return $this->confusion_matrix; - } - - public function hasConfusionMatrix() - { - return isset($this->confusion_matrix); - } - - public function clearConfusionMatrix() - { - unset($this->confusion_matrix); - } - - /** - * Output only. Confusion matrix of the evaluation. - * Only set for the overall model evaluation, not for evaluation of a single - * annotation spec. - * - * Generated from protobuf field .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; - * @param \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix $var - * @return $this - */ - public function setConfusionMatrix($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\ClassificationEvaluationMetrics\ConfusionMatrix::class); - $this->confusion_matrix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentModelMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentModelMetadata.php deleted file mode 100644 index 67524cbc7e25..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSentimentModelMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.TextSentimentModelMetadata - */ -class TextSentimentModelMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Text::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSnippet.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSnippet.php deleted file mode 100644 index 0ddb5bffe51f..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TextSnippet.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.automl.v1.TextSnippet - */ -class TextSnippet extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The content of the text snippet as a string. Up to 250000 - * characters long. - * - * Generated from protobuf field string content = 1; - */ - protected $content = ''; - /** - * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content]. - * - * Generated from protobuf field string mime_type = 2; - */ - protected $mime_type = ''; - /** - * Output only. HTTP URI where you can download the content. - * - * Generated from protobuf field string content_uri = 4; - */ - protected $content_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content - * Required. The content of the text snippet as a string. Up to 250000 - * characters long. - * @type string $mime_type - * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content]. - * @type string $content_uri - * Output only. HTTP URI where you can download the content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\DataItems::initOnce(); - parent::__construct($data); - } - - /** - * Required. The content of the text snippet as a string. Up to 250000 - * characters long. - * - * Generated from protobuf field string content = 1; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Required. The content of the text snippet as a string. Up to 250000 - * characters long. - * - * Generated from protobuf field string content = 1; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content]. - * - * Generated from protobuf field string mime_type = 2; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content]. - * - * Generated from protobuf field string mime_type = 2; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Output only. HTTP URI where you can download the content. - * - * Generated from protobuf field string content_uri = 4; - * @return string - */ - public function getContentUri() - { - return $this->content_uri; - } - - /** - * Output only. HTTP URI where you can download the content. - * - * Generated from protobuf field string content_uri = 4; - * @param string $var - * @return $this - */ - public function setContentUri($var) - { - GPBUtil::checkString($var, True); - $this->content_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationAnnotation.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationAnnotation.php deleted file mode 100644 index f0331be6b72b..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationAnnotation.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.automl.v1.TranslationAnnotation - */ -class TranslationAnnotation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only . The translated content. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet translated_content = 1; - */ - protected $translated_content = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\TextSnippet $translated_content - * Output only . The translated content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Translation::initOnce(); - parent::__construct($data); - } - - /** - * Output only . The translated content. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet translated_content = 1; - * @return \Google\Cloud\AutoMl\V1\TextSnippet|null - */ - public function getTranslatedContent() - { - return $this->translated_content; - } - - public function hasTranslatedContent() - { - return isset($this->translated_content); - } - - public function clearTranslatedContent() - { - unset($this->translated_content); - } - - /** - * Output only . The translated content. - * - * Generated from protobuf field .google.cloud.automl.v1.TextSnippet translated_content = 1; - * @param \Google\Cloud\AutoMl\V1\TextSnippet $var - * @return $this - */ - public function setTranslatedContent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\TextSnippet::class); - $this->translated_content = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationDatasetMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationDatasetMetadata.php deleted file mode 100644 index 37554063e8e1..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationDatasetMetadata.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.automl.v1.TranslationDatasetMetadata - */ -class TranslationDatasetMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The BCP-47 language code of the source language. - * - * Generated from protobuf field string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $source_language_code = ''; - /** - * Required. The BCP-47 language code of the target language. - * - * Generated from protobuf field string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_language_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_language_code - * Required. The BCP-47 language code of the source language. - * @type string $target_language_code - * Required. The BCP-47 language code of the target language. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Translation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The BCP-47 language code of the source language. - * - * Generated from protobuf field string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSourceLanguageCode() - { - return $this->source_language_code; - } - - /** - * Required. The BCP-47 language code of the source language. - * - * Generated from protobuf field string source_language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSourceLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->source_language_code = $var; - - return $this; - } - - /** - * Required. The BCP-47 language code of the target language. - * - * Generated from protobuf field string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTargetLanguageCode() - { - return $this->target_language_code; - } - - /** - * Required. The BCP-47 language code of the target language. - * - * Generated from protobuf field string target_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTargetLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->target_language_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationEvaluationMetrics.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationEvaluationMetrics.php deleted file mode 100644 index 824df4fb470d..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationEvaluationMetrics.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.automl.v1.TranslationEvaluationMetrics - */ -class TranslationEvaluationMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. BLEU score. - * - * Generated from protobuf field double bleu_score = 1; - */ - protected $bleu_score = 0.0; - /** - * Output only. BLEU score for base model. - * - * Generated from protobuf field double base_bleu_score = 2; - */ - protected $base_bleu_score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $bleu_score - * Output only. BLEU score. - * @type float $base_bleu_score - * Output only. BLEU score for base model. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Translation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. BLEU score. - * - * Generated from protobuf field double bleu_score = 1; - * @return float - */ - public function getBleuScore() - { - return $this->bleu_score; - } - - /** - * Output only. BLEU score. - * - * Generated from protobuf field double bleu_score = 1; - * @param float $var - * @return $this - */ - public function setBleuScore($var) - { - GPBUtil::checkDouble($var); - $this->bleu_score = $var; - - return $this; - } - - /** - * Output only. BLEU score for base model. - * - * Generated from protobuf field double base_bleu_score = 2; - * @return float - */ - public function getBaseBleuScore() - { - return $this->base_bleu_score; - } - - /** - * Output only. BLEU score for base model. - * - * Generated from protobuf field double base_bleu_score = 2; - * @param float $var - * @return $this - */ - public function setBaseBleuScore($var) - { - GPBUtil::checkDouble($var); - $this->base_bleu_score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationModelMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationModelMetadata.php deleted file mode 100644 index 7271f3e10913..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/TranslationModelMetadata.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.automl.v1.TranslationModelMetadata - */ -class TranslationModelMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the model to use as a baseline to train the custom - * model. If unset, we use the default base model provided by Google - * Translate. Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}` - * - * Generated from protobuf field string base_model = 1; - */ - protected $base_model = ''; - /** - * Output only. Inferred from the dataset. - * The source language (The BCP-47 language code) that is used for training. - * - * Generated from protobuf field string source_language_code = 2; - */ - protected $source_language_code = ''; - /** - * Output only. The target language (The BCP-47 language code) that is used - * for training. - * - * Generated from protobuf field string target_language_code = 3; - */ - protected $target_language_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $base_model - * The resource name of the model to use as a baseline to train the custom - * model. If unset, we use the default base model provided by Google - * Translate. Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}` - * @type string $source_language_code - * Output only. Inferred from the dataset. - * The source language (The BCP-47 language code) that is used for training. - * @type string $target_language_code - * Output only. The target language (The BCP-47 language code) that is used - * for training. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Translation::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the model to use as a baseline to train the custom - * model. If unset, we use the default base model provided by Google - * Translate. Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}` - * - * Generated from protobuf field string base_model = 1; - * @return string - */ - public function getBaseModel() - { - return $this->base_model; - } - - /** - * The resource name of the model to use as a baseline to train the custom - * model. If unset, we use the default base model provided by Google - * Translate. Format: - * `projects/{project_id}/locations/{location_id}/models/{model_id}` - * - * Generated from protobuf field string base_model = 1; - * @param string $var - * @return $this - */ - public function setBaseModel($var) - { - GPBUtil::checkString($var, True); - $this->base_model = $var; - - return $this; - } - - /** - * Output only. Inferred from the dataset. - * The source language (The BCP-47 language code) that is used for training. - * - * Generated from protobuf field string source_language_code = 2; - * @return string - */ - public function getSourceLanguageCode() - { - return $this->source_language_code; - } - - /** - * Output only. Inferred from the dataset. - * The source language (The BCP-47 language code) that is used for training. - * - * Generated from protobuf field string source_language_code = 2; - * @param string $var - * @return $this - */ - public function setSourceLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->source_language_code = $var; - - return $this; - } - - /** - * Output only. The target language (The BCP-47 language code) that is used - * for training. - * - * Generated from protobuf field string target_language_code = 3; - * @return string - */ - public function getTargetLanguageCode() - { - return $this->target_language_code; - } - - /** - * Output only. The target language (The BCP-47 language code) that is used - * for training. - * - * Generated from protobuf field string target_language_code = 3; - * @param string $var - * @return $this - */ - public function setTargetLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->target_language_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UndeployModelOperationMetadata.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UndeployModelOperationMetadata.php deleted file mode 100644 index 437d6e00c14c..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UndeployModelOperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.automl.v1.UndeployModelOperationMetadata - */ -class UndeployModelOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Operations::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UndeployModelRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UndeployModelRequest.php deleted file mode 100644 index fc39415291db..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UndeployModelRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.automl.v1.UndeployModelRequest - */ -class UndeployModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the model to undeploy. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the model to undeploy. Please see - * {@see AutoMlClient::modelName()} for help formatting this field. - * - * @return \Google\Cloud\AutoMl\V1\UndeployModelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the model to undeploy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the model to undeploy. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the model to undeploy. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UpdateDatasetRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UpdateDatasetRequest.php deleted file mode 100644 index 2beb23764837..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UpdateDatasetRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.automl.v1.UpdateDatasetRequest - */ -class UpdateDatasetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The dataset which replaces the resource on the server. - * - * Generated from protobuf field .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset = null; - /** - * Required. The update mask applies to the resource. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\AutoMl\V1\Dataset $dataset Required. The dataset which replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask Required. The update mask applies to the resource. - * - * @return \Google\Cloud\AutoMl\V1\UpdateDatasetRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AutoMl\V1\Dataset $dataset, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataset($dataset) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\Dataset $dataset - * Required. The dataset which replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The update mask applies to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The dataset which replaces the resource on the server. - * - * Generated from protobuf field .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\Dataset|null - */ - public function getDataset() - { - return $this->dataset; - } - - public function hasDataset() - { - return isset($this->dataset); - } - - public function clearDataset() - { - unset($this->dataset); - } - - /** - * Required. The dataset which replaces the resource on the server. - * - * Generated from protobuf field .google.cloud.automl.v1.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\Dataset $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\Dataset::class); - $this->dataset = $var; - - return $this; - } - - /** - * Required. The update mask applies to the resource. - * - * 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 update mask applies to the resource. - * - * 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/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UpdateModelRequest.php b/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UpdateModelRequest.php deleted file mode 100644 index 0408ab2efb2a..000000000000 --- a/owl-bot-staging/AutoMl/v1/proto/src/Google/Cloud/AutoMl/V1/UpdateModelRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.automl.v1.UpdateModelRequest - */ -class UpdateModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The model which replaces the resource on the server. - * - * Generated from protobuf field .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $model = null; - /** - * Required. The update mask applies to the resource. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\AutoMl\V1\Model $model Required. The model which replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask Required. The update mask applies to the resource. - * - * @return \Google\Cloud\AutoMl\V1\UpdateModelRequest - * - * @experimental - */ - public static function build(\Google\Cloud\AutoMl\V1\Model $model, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setModel($model) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\AutoMl\V1\Model $model - * Required. The model which replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The update mask applies to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Automl\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The model which replaces the resource on the server. - * - * Generated from protobuf field .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\AutoMl\V1\Model|null - */ - public function getModel() - { - return $this->model; - } - - public function hasModel() - { - return isset($this->model); - } - - public function clearModel() - { - unset($this->model); - } - - /** - * Required. The model which replaces the resource on the server. - * - * Generated from protobuf field .google.cloud.automl.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\AutoMl\V1\Model $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1\Model::class); - $this->model = $var; - - return $this; - } - - /** - * Required. The update mask applies to the resource. - * - * 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 update mask applies to the resource. - * - * 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/AutoMl/v1/samples/V1/AutoMlClient/create_dataset.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/create_dataset.php deleted file mode 100644 index d0614e92c97e..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/create_dataset.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent) - ->setDataset($dataset); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->createDataset($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Dataset $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AutoMlClient::locationName('[PROJECT]', '[LOCATION]'); - - create_dataset_sample($formattedParent); -} -// [END automl_v1_generated_AutoMl_CreateDataset_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/create_model.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/create_model.php deleted file mode 100644 index 69f95a54b186..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/create_model.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent) - ->setModel($model); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->createModel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Model $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AutoMlClient::locationName('[PROJECT]', '[LOCATION]'); - - create_model_sample($formattedParent); -} -// [END automl_v1_generated_AutoMl_CreateModel_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/delete_dataset.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/delete_dataset.php deleted file mode 100644 index cc27e08bc16d..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/delete_dataset.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->deleteDataset($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - - delete_dataset_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_DeleteDataset_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/delete_model.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/delete_model.php deleted file mode 100644 index 51ad90525937..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/delete_model.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->deleteModel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - - delete_model_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_DeleteModel_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/deploy_model.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/deploy_model.php deleted file mode 100644 index 342e9a950952..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/deploy_model.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->deployModel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - - deploy_model_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_DeployModel_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/export_data.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/export_data.php deleted file mode 100644 index 28d17822fa67..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/export_data.php +++ /dev/null @@ -1,98 +0,0 @@ -setOutputUriPrefix($outputConfigGcsDestinationOutputUriPrefix); - $outputConfig = (new OutputConfig()) - ->setGcsDestination($outputConfigGcsDestination); - $request = (new ExportDataRequest()) - ->setName($formattedName) - ->setOutputConfig($outputConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->exportData($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $outputConfigGcsDestinationOutputUriPrefix = '[OUTPUT_URI_PREFIX]'; - - export_data_sample($formattedName, $outputConfigGcsDestinationOutputUriPrefix); -} -// [END automl_v1_generated_AutoMl_ExportData_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/export_model.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/export_model.php deleted file mode 100644 index d482584b3b8a..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/export_model.php +++ /dev/null @@ -1,102 +0,0 @@ -setOutputUriPrefix($outputConfigGcsDestinationOutputUriPrefix); - $outputConfig = (new ModelExportOutputConfig()) - ->setGcsDestination($outputConfigGcsDestination); - $request = (new ExportModelRequest()) - ->setName($formattedName) - ->setOutputConfig($outputConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->exportModel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $outputConfigGcsDestinationOutputUriPrefix = '[OUTPUT_URI_PREFIX]'; - - export_model_sample($formattedName, $outputConfigGcsDestinationOutputUriPrefix); -} -// [END automl_v1_generated_AutoMl_ExportModel_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_annotation_spec.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_annotation_spec.php deleted file mode 100644 index 52a862870be4..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_annotation_spec.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AnnotationSpec $response */ - $response = $autoMlClient->getAnnotationSpec($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::annotationSpecName( - '[PROJECT]', - '[LOCATION]', - '[DATASET]', - '[ANNOTATION_SPEC]' - ); - - get_annotation_spec_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_GetAnnotationSpec_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_dataset.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_dataset.php deleted file mode 100644 index 664f48931c27..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_dataset.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Dataset $response */ - $response = $autoMlClient->getDataset($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - - get_dataset_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_GetDataset_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_model.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_model.php deleted file mode 100644 index 9f35305c88cf..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_model.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Model $response */ - $response = $autoMlClient->getModel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - - get_model_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_GetModel_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_model_evaluation.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_model_evaluation.php deleted file mode 100644 index fd11ecf2cec8..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/get_model_evaluation.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ModelEvaluation $response */ - $response = $autoMlClient->getModelEvaluation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::modelEvaluationName( - '[PROJECT]', - '[LOCATION]', - '[MODEL]', - '[MODEL_EVALUATION]' - ); - - get_model_evaluation_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_GetModelEvaluation_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/import_data.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/import_data.php deleted file mode 100644 index 561944ff9b65..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/import_data.php +++ /dev/null @@ -1,92 +0,0 @@ -setName($formattedName) - ->setInputConfig($inputConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->importData($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - - import_data_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_ImportData_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_datasets.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_datasets.php deleted file mode 100644 index d33650ae5385..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_datasets.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $autoMlClient->listDatasets($request); - - /** @var Dataset $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AutoMlClient::locationName('[PROJECT]', '[LOCATION]'); - - list_datasets_sample($formattedParent); -} -// [END automl_v1_generated_AutoMl_ListDatasets_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_model_evaluations.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_model_evaluations.php deleted file mode 100644 index 22972bcdd8ca..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_model_evaluations.php +++ /dev/null @@ -1,91 +0,0 @@ - The model evaluation was done for - * annotation spec with ID different than 4. - * * `NOT annotation_spec_id:*` --> The model evaluation was done for - * aggregate of all annotation specs. - */ -function list_model_evaluations_sample(string $formattedParent, string $filter): void -{ - // Create a client. - $autoMlClient = new AutoMlClient(); - - // Prepare the request message. - $request = (new ListModelEvaluationsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $autoMlClient->listModelEvaluations($request); - - /** @var ModelEvaluation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AutoMlClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $filter = '[FILTER]'; - - list_model_evaluations_sample($formattedParent, $filter); -} -// [END automl_v1_generated_AutoMl_ListModelEvaluations_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_models.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_models.php deleted file mode 100644 index dfe234500d3d..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/list_models.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $autoMlClient->listModels($request); - - /** @var Model $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = AutoMlClient::locationName('[PROJECT]', '[LOCATION]'); - - list_models_sample($formattedParent); -} -// [END automl_v1_generated_AutoMl_ListModels_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/undeploy_model.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/undeploy_model.php deleted file mode 100644 index 8aac610a235b..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/undeploy_model.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $autoMlClient->undeployModel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AutoMlClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - - undeploy_model_sample($formattedName); -} -// [END automl_v1_generated_AutoMl_UndeployModel_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/update_dataset.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/update_dataset.php deleted file mode 100644 index cb6d571bf1ec..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/update_dataset.php +++ /dev/null @@ -1,62 +0,0 @@ -setDataset($dataset) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Dataset $response */ - $response = $autoMlClient->updateDataset($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END automl_v1_generated_AutoMl_UpdateDataset_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/update_model.php b/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/update_model.php deleted file mode 100644 index a04d31b68e67..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/AutoMlClient/update_model.php +++ /dev/null @@ -1,62 +0,0 @@ -setModel($model) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Model $response */ - $response = $autoMlClient->updateModel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END automl_v1_generated_AutoMl_UpdateModel_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/PredictionServiceClient/batch_predict.php b/owl-bot-staging/AutoMl/v1/samples/V1/PredictionServiceClient/batch_predict.php deleted file mode 100644 index 04e99da93e38..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/PredictionServiceClient/batch_predict.php +++ /dev/null @@ -1,130 +0,0 @@ -setInputUris($inputConfigGcsSourceInputUris); - $inputConfig = (new BatchPredictInputConfig()) - ->setGcsSource($inputConfigGcsSource); - $outputConfigGcsDestination = (new GcsDestination()) - ->setOutputUriPrefix($outputConfigGcsDestinationOutputUriPrefix); - $outputConfig = (new BatchPredictOutputConfig()) - ->setGcsDestination($outputConfigGcsDestination); - $request = (new BatchPredictRequest()) - ->setName($formattedName) - ->setInputConfig($inputConfig) - ->setOutputConfig($outputConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $predictionServiceClient->batchPredict($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BatchPredictResult $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = PredictionServiceClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $inputConfigGcsSourceInputUrisElement = '[INPUT_URIS]'; - $outputConfigGcsDestinationOutputUriPrefix = '[OUTPUT_URI_PREFIX]'; - - batch_predict_sample( - $formattedName, - $inputConfigGcsSourceInputUrisElement, - $outputConfigGcsDestinationOutputUriPrefix - ); -} -// [END automl_v1_generated_PredictionService_BatchPredict_sync] diff --git a/owl-bot-staging/AutoMl/v1/samples/V1/PredictionServiceClient/predict.php b/owl-bot-staging/AutoMl/v1/samples/V1/PredictionServiceClient/predict.php deleted file mode 100644 index ab9ba2bbea5f..000000000000 --- a/owl-bot-staging/AutoMl/v1/samples/V1/PredictionServiceClient/predict.php +++ /dev/null @@ -1,109 +0,0 @@ -setName($formattedName) - ->setPayload($payload); - - // Call the API and handle any network failures. - try { - /** @var PredictResponse $response */ - $response = $predictionServiceClient->predict($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = PredictionServiceClient::modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - - predict_sample($formattedName); -} -// [END automl_v1_generated_PredictionService_Predict_sync] diff --git a/owl-bot-staging/AutoMl/v1/src/V1/Client/AutoMlClient.php b/owl-bot-staging/AutoMl/v1/src/V1/Client/AutoMlClient.php deleted file mode 100644 index fa18e426040b..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/Client/AutoMlClient.php +++ /dev/null @@ -1,912 +0,0 @@ - createDatasetAsync(CreateDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface createModelAsync(CreateModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDatasetAsync(DeleteDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteModelAsync(DeleteModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deployModelAsync(DeployModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportDataAsync(ExportDataRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportModelAsync(ExportModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAnnotationSpecAsync(GetAnnotationSpecRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDatasetAsync(GetDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getModelAsync(GetModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getModelEvaluationAsync(GetModelEvaluationRequest $request, array $optionalArgs = []) - * @method PromiseInterface importDataAsync(ImportDataRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDatasetsAsync(ListDatasetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listModelEvaluationsAsync(ListModelEvaluationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listModelsAsync(ListModelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface undeployModelAsync(UndeployModelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDatasetAsync(UpdateDatasetRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateModelAsync(UpdateModelRequest $request, array $optionalArgs = []) - */ -final class AutoMlClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.automl.v1.AutoMl'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'automl.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'automl.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/auto_ml_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/auto_ml_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/auto_ml_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/auto_ml_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * annotation_spec resource. - * - * @param string $project - * @param string $location - * @param string $dataset - * @param string $annotationSpec - * - * @return string The formatted annotation_spec resource. - */ - public static function annotationSpecName(string $project, string $location, string $dataset, string $annotationSpec): string - { - return self::getPathTemplate('annotationSpec')->render([ - 'project' => $project, - 'location' => $location, - 'dataset' => $dataset, - 'annotation_spec' => $annotationSpec, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a dataset - * resource. - * - * @param string $project - * @param string $location - * @param string $dataset - * - * @return string The formatted dataset resource. - */ - public static function datasetName(string $project, string $location, string $dataset): string - { - return self::getPathTemplate('dataset')->render([ - 'project' => $project, - 'location' => $location, - 'dataset' => $dataset, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a model - * resource. - * - * @param string $project - * @param string $location - * @param string $model - * - * @return string The formatted model resource. - */ - public static function modelName(string $project, string $location, string $model): string - { - return self::getPathTemplate('model')->render([ - 'project' => $project, - 'location' => $location, - 'model' => $model, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * model_evaluation resource. - * - * @param string $project - * @param string $location - * @param string $model - * @param string $modelEvaluation - * - * @return string The formatted model_evaluation resource. - */ - public static function modelEvaluationName(string $project, string $location, string $model, string $modelEvaluation): string - { - return self::getPathTemplate('modelEvaluation')->render([ - 'project' => $project, - 'location' => $location, - 'model' => $model, - 'model_evaluation' => $modelEvaluation, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - annotationSpec: projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec} - * - dataset: projects/{project}/locations/{location}/datasets/{dataset} - * - location: projects/{project}/locations/{location} - * - model: projects/{project}/locations/{location}/models/{model} - * - modelEvaluation: projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'automl.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a dataset. - * - * The async variant is {@see AutoMlClient::createDatasetAsync()} . - * - * @example samples/V1/AutoMlClient/create_dataset.php - * - * @param CreateDatasetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDataset(CreateDatasetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataset', $request, $callOptions)->wait(); - } - - /** - * Creates a model. - * Returns a Model in the [response][google.longrunning.Operation.response] - * field when it completes. - * When you create a model, several model evaluations are created for it: - * a global evaluation, and one evaluation for each annotation spec. - * - * The async variant is {@see AutoMlClient::createModelAsync()} . - * - * @example samples/V1/AutoMlClient/create_model.php - * - * @param CreateModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createModel(CreateModelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateModel', $request, $callOptions)->wait(); - } - - /** - * Deletes a dataset and all of its contents. - * Returns empty response in the - * [response][google.longrunning.Operation.response] field when it completes, - * and `delete_details` in the - * [metadata][google.longrunning.Operation.metadata] field. - * - * The async variant is {@see AutoMlClient::deleteDatasetAsync()} . - * - * @example samples/V1/AutoMlClient/delete_dataset.php - * - * @param DeleteDatasetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDataset(DeleteDatasetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataset', $request, $callOptions)->wait(); - } - - /** - * Deletes a model. - * Returns `google.protobuf.Empty` in the - * [response][google.longrunning.Operation.response] field when it completes, - * and `delete_details` in the - * [metadata][google.longrunning.Operation.metadata] field. - * - * The async variant is {@see AutoMlClient::deleteModelAsync()} . - * - * @example samples/V1/AutoMlClient/delete_model.php - * - * @param DeleteModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteModel(DeleteModelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteModel', $request, $callOptions)->wait(); - } - - /** - * Deploys a model. If a model is already deployed, deploying it with the - * same parameters has no effect. Deploying with different parametrs - * (as e.g. changing - * [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number]) - * will reset the deployment state without pausing the model's availability. - * - * Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage - * deployment automatically. - * - * Returns an empty response in the - * [response][google.longrunning.Operation.response] field when it completes. - * - * The async variant is {@see AutoMlClient::deployModelAsync()} . - * - * @example samples/V1/AutoMlClient/deploy_model.php - * - * @param DeployModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deployModel(DeployModelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeployModel', $request, $callOptions)->wait(); - } - - /** - * Exports dataset's data to the provided output location. - * Returns an empty response in the - * [response][google.longrunning.Operation.response] field when it completes. - * - * The async variant is {@see AutoMlClient::exportDataAsync()} . - * - * @example samples/V1/AutoMlClient/export_data.php - * - * @param ExportDataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function exportData(ExportDataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportData', $request, $callOptions)->wait(); - } - - /** - * Exports a trained, "export-able", model to a user specified Google Cloud - * Storage location. A model is considered export-able if and only if it has - * an export format defined for it in - * [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig]. - * - * Returns an empty response in the - * [response][google.longrunning.Operation.response] field when it completes. - * - * The async variant is {@see AutoMlClient::exportModelAsync()} . - * - * @example samples/V1/AutoMlClient/export_model.php - * - * @param ExportModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function exportModel(ExportModelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportModel', $request, $callOptions)->wait(); - } - - /** - * Gets an annotation spec. - * - * The async variant is {@see AutoMlClient::getAnnotationSpecAsync()} . - * - * @example samples/V1/AutoMlClient/get_annotation_spec.php - * - * @param GetAnnotationSpecRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnnotationSpec - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAnnotationSpec(GetAnnotationSpecRequest $request, array $callOptions = []): AnnotationSpec - { - return $this->startApiCall('GetAnnotationSpec', $request, $callOptions)->wait(); - } - - /** - * Gets a dataset. - * - * The async variant is {@see AutoMlClient::getDatasetAsync()} . - * - * @example samples/V1/AutoMlClient/get_dataset.php - * - * @param GetDatasetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Dataset - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataset(GetDatasetRequest $request, array $callOptions = []): Dataset - { - return $this->startApiCall('GetDataset', $request, $callOptions)->wait(); - } - - /** - * Gets a model. - * - * The async variant is {@see AutoMlClient::getModelAsync()} . - * - * @example samples/V1/AutoMlClient/get_model.php - * - * @param GetModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Model - * - * @throws ApiException Thrown if the API call fails. - */ - public function getModel(GetModelRequest $request, array $callOptions = []): Model - { - return $this->startApiCall('GetModel', $request, $callOptions)->wait(); - } - - /** - * Gets a model evaluation. - * - * The async variant is {@see AutoMlClient::getModelEvaluationAsync()} . - * - * @example samples/V1/AutoMlClient/get_model_evaluation.php - * - * @param GetModelEvaluationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ModelEvaluation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getModelEvaluation(GetModelEvaluationRequest $request, array $callOptions = []): ModelEvaluation - { - return $this->startApiCall('GetModelEvaluation', $request, $callOptions)->wait(); - } - - /** - * Imports data into a dataset. - * For Tables this method can only be called on an empty Dataset. - * - * For Tables: - * * A - * [schema_inference_version][google.cloud.automl.v1.InputConfig.params] - * parameter must be explicitly set. - * Returns an empty response in the - * [response][google.longrunning.Operation.response] field when it completes. - * - * The async variant is {@see AutoMlClient::importDataAsync()} . - * - * @example samples/V1/AutoMlClient/import_data.php - * - * @param ImportDataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function importData(ImportDataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportData', $request, $callOptions)->wait(); - } - - /** - * Lists datasets in a project. - * - * The async variant is {@see AutoMlClient::listDatasetsAsync()} . - * - * @example samples/V1/AutoMlClient/list_datasets.php - * - * @param ListDatasetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDatasets(ListDatasetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDatasets', $request, $callOptions); - } - - /** - * Lists model evaluations. - * - * The async variant is {@see AutoMlClient::listModelEvaluationsAsync()} . - * - * @example samples/V1/AutoMlClient/list_model_evaluations.php - * - * @param ListModelEvaluationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listModelEvaluations(ListModelEvaluationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListModelEvaluations', $request, $callOptions); - } - - /** - * Lists models. - * - * The async variant is {@see AutoMlClient::listModelsAsync()} . - * - * @example samples/V1/AutoMlClient/list_models.php - * - * @param ListModelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listModels(ListModelsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListModels', $request, $callOptions); - } - - /** - * Undeploys a model. If the model is not deployed this method has no effect. - * - * Only applicable for Text Classification, Image Object Detection and Tables; - * all other domains manage deployment automatically. - * - * Returns an empty response in the - * [response][google.longrunning.Operation.response] field when it completes. - * - * The async variant is {@see AutoMlClient::undeployModelAsync()} . - * - * @example samples/V1/AutoMlClient/undeploy_model.php - * - * @param UndeployModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function undeployModel(UndeployModelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UndeployModel', $request, $callOptions)->wait(); - } - - /** - * Updates a dataset. - * - * The async variant is {@see AutoMlClient::updateDatasetAsync()} . - * - * @example samples/V1/AutoMlClient/update_dataset.php - * - * @param UpdateDatasetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Dataset - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataset(UpdateDatasetRequest $request, array $callOptions = []): Dataset - { - return $this->startApiCall('UpdateDataset', $request, $callOptions)->wait(); - } - - /** - * Updates a model. - * - * The async variant is {@see AutoMlClient::updateModelAsync()} . - * - * @example samples/V1/AutoMlClient/update_model.php - * - * @param UpdateModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Model - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateModel(UpdateModelRequest $request, array $callOptions = []): Model - { - return $this->startApiCall('UpdateModel', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AutoMl/v1/src/V1/Client/PredictionServiceClient.php b/owl-bot-staging/AutoMl/v1/src/V1/Client/PredictionServiceClient.php deleted file mode 100644 index 0b1b2b5a05d4..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/Client/PredictionServiceClient.php +++ /dev/null @@ -1,374 +0,0 @@ - batchPredictAsync(BatchPredictRequest $request, array $optionalArgs = []) - * @method PromiseInterface predictAsync(PredictRequest $request, array $optionalArgs = []) - */ -final class PredictionServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.automl.v1.PredictionService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'automl.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'automl.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/prediction_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/prediction_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/prediction_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/prediction_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a model - * resource. - * - * @param string $project - * @param string $location - * @param string $model - * - * @return string The formatted model resource. - */ - public static function modelName(string $project, string $location, string $model): string - { - return self::getPathTemplate('model')->render([ - 'project' => $project, - 'location' => $location, - 'model' => $model, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - model: projects/{project}/locations/{location}/models/{model} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'automl.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch - * prediction result won't be immediately available in the response. Instead, - * a long running operation object is returned. User can poll the operation - * result via [GetOperation][google.longrunning.Operations.GetOperation] - * method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned in - * the [response][google.longrunning.Operation.response] field. - * Available for following ML scenarios: - * - * * AutoML Vision Classification - * * AutoML Vision Object Detection - * * AutoML Video Intelligence Classification - * * AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification - * * AutoML Natural Language Entity Extraction - * * AutoML Natural Language Sentiment Analysis - * * AutoML Tables - * - * The async variant is {@see PredictionServiceClient::batchPredictAsync()} . - * - * @example samples/V1/PredictionServiceClient/batch_predict.php - * - * @param BatchPredictRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchPredict(BatchPredictRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('BatchPredict', $request, $callOptions)->wait(); - } - - /** - * Perform an online prediction. The prediction result is directly - * returned in the response. - * Available for following ML scenarios, and their expected request payloads: - * - * AutoML Vision Classification - * - * * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. - * - * AutoML Vision Object Detection - * - * * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. - * - * AutoML Natural Language Classification - * - * * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in - * .PDF, .TIF or .TIFF format with size upto 2MB. - * - * AutoML Natural Language Entity Extraction - * - * * A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document - * in .PDF, .TIF or .TIFF format with size upto 20MB. - * - * AutoML Natural Language Sentiment Analysis - * - * * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in - * .PDF, .TIF or .TIFF format with size upto 2MB. - * - * AutoML Translation - * - * * A TextSnippet up to 25,000 characters, UTF-8 encoded. - * - * AutoML Tables - * - * * A row with column values matching - * the columns of the model, up to 5MB. Not available for FORECASTING - * `prediction_type`. - * - * The async variant is {@see PredictionServiceClient::predictAsync()} . - * - * @example samples/V1/PredictionServiceClient/predict.php - * - * @param PredictRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PredictResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function predict(PredictRequest $request, array $callOptions = []): PredictResponse - { - return $this->startApiCall('Predict', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AutoMl/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AutoMl/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 0c6570bd7d8b..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.automl.v1", - "libraryPackage": "Google\\Cloud\\AutoMl\\V1", - "services": { - "PredictionService": { - "clients": { - "grpc": { - "libraryClient": "PredictionServiceGapicClient", - "rpcs": { - "BatchPredict": { - "methods": [ - "batchPredict" - ] - }, - "Predict": { - "methods": [ - "predict" - ] - } - } - } - } - }, - "AutoMl": { - "clients": { - "grpc": { - "libraryClient": "AutoMlGapicClient", - "rpcs": { - "CreateDataset": { - "methods": [ - "createDataset" - ] - }, - "CreateModel": { - "methods": [ - "createModel" - ] - }, - "DeleteDataset": { - "methods": [ - "deleteDataset" - ] - }, - "DeleteModel": { - "methods": [ - "deleteModel" - ] - }, - "DeployModel": { - "methods": [ - "deployModel" - ] - }, - "ExportData": { - "methods": [ - "exportData" - ] - }, - "ExportModel": { - "methods": [ - "exportModel" - ] - }, - "GetAnnotationSpec": { - "methods": [ - "getAnnotationSpec" - ] - }, - "GetDataset": { - "methods": [ - "getDataset" - ] - }, - "GetModel": { - "methods": [ - "getModel" - ] - }, - "GetModelEvaluation": { - "methods": [ - "getModelEvaluation" - ] - }, - "ImportData": { - "methods": [ - "importData" - ] - }, - "ListDatasets": { - "methods": [ - "listDatasets" - ] - }, - "ListModelEvaluations": { - "methods": [ - "listModelEvaluations" - ] - }, - "ListModels": { - "methods": [ - "listModels" - ] - }, - "UndeployModel": { - "methods": [ - "undeployModel" - ] - }, - "UpdateDataset": { - "methods": [ - "updateDataset" - ] - }, - "UpdateModel": { - "methods": [ - "updateModel" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_client_config.json b/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_client_config.json deleted file mode 100644 index 086602a0938f..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_client_config.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "interfaces": { - "google.cloud.automl.v1.AutoMl": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_1_codes": [], - "retry_policy_1_codes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ] - }, - "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 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 5000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 5000, - "total_timeout_millis": 5000 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 5000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 5000, - "total_timeout_millis": 5000 - } - }, - "methods": { - "CreateDataset": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateModel": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteDataset": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteModel": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeployModel": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ExportData": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ExportModel": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAnnotationSpec": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataset": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetModel": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetModelEvaluation": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ImportData": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListDatasets": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListModelEvaluations": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListModels": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UndeployModel": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDataset": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateModel": { - "timeout_millis": 5000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_descriptor_config.php b/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_descriptor_config.php deleted file mode 100644 index 2f2030959022..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_descriptor_config.php +++ /dev/null @@ -1,340 +0,0 @@ - [ - 'google.cloud.automl.v1.AutoMl' => [ - 'CreateDataset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AutoMl\V1\Dataset', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateModel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AutoMl\V1\Model', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteModel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeployModel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExportData' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExportModel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ImportData' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UndeployModel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAnnotationSpec' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\AnnotationSpec', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataset' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\Dataset', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetModel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\Model', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetModelEvaluation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\ModelEvaluation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDatasets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDatasets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\ListDatasetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListModelEvaluations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getModelEvaluation', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\ListModelEvaluationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListModels' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getModel', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\ListModelsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataset' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\Dataset', - 'headerParams' => [ - [ - 'keyName' => 'dataset.name', - 'fieldAccessors' => [ - 'getDataset', - 'getName', - ], - ], - ], - ], - 'UpdateModel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\Model', - 'headerParams' => [ - [ - 'keyName' => 'model.name', - 'fieldAccessors' => [ - 'getModel', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'annotationSpec' => 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}', - 'dataset' => 'projects/{project}/locations/{location}/datasets/{dataset}', - 'location' => 'projects/{project}/locations/{location}', - 'model' => 'projects/{project}/locations/{location}/models/{model}', - 'modelEvaluation' => 'projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_rest_client_config.php b/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_rest_client_config.php deleted file mode 100644 index bbff0ff1693d..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/resources/auto_ml_rest_client_config.php +++ /dev/null @@ -1,389 +0,0 @@ - [ - 'google.cloud.automl.v1.AutoMl' => [ - 'CreateDataset' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/datasets', - 'body' => 'dataset', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateModel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/models', - 'body' => 'model', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataset' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/datasets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteModel' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeployModel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*}:deploy', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportData' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/datasets/*}:exportData', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportModel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*}:export', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAnnotationSpec' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataset' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/datasets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetModel' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetModelEvaluation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*/modelEvaluations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ImportData' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/datasets/*}:importData', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDatasets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/datasets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListModelEvaluations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/models/*}/modelEvaluations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'filter', - ], - ], - 'ListModels' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/models', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UndeployModel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*}:undeploy', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDataset' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{dataset.name=projects/*/locations/*/datasets/*}', - 'body' => 'dataset', - 'placeholders' => [ - 'dataset.name' => [ - 'getters' => [ - 'getDataset', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateModel' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{model.name=projects/*/locations/*/models/*}', - 'body' => 'model', - 'placeholders' => [ - 'model.name' => [ - 'getters' => [ - 'getModel', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/datasets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/datasets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/**}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'WaitOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:wait', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_client_config.json b/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_client_config.json deleted file mode 100644 index be950636b88e..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_client_config.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "interfaces": { - "google.cloud.automl.v1.PredictionService": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_2_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 - }, - "no_retry_2_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": { - "BatchPredict": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "Predict": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_descriptor_config.php b/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_descriptor_config.php deleted file mode 100644 index df0456c861c3..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_descriptor_config.php +++ /dev/null @@ -1,62 +0,0 @@ - [ - 'google.cloud.automl.v1.PredictionService' => [ - 'BatchPredict' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\AutoMl\V1\BatchPredictResult', - 'metadataReturnType' => '\Google\Cloud\AutoMl\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'Predict' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\AutoMl\V1\PredictResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'model' => 'projects/{project}/locations/{location}/models/{model}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_rest_client_config.php b/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_rest_client_config.php deleted file mode 100644 index e4707be02c0e..000000000000 --- a/owl-bot-staging/AutoMl/v1/src/V1/resources/prediction_service_rest_client_config.php +++ /dev/null @@ -1,195 +0,0 @@ - [ - 'google.cloud.automl.v1.PredictionService' => [ - 'BatchPredict' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*}:batchPredict', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'Predict' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/models/*}:predict', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/datasets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/models/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/datasets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/models/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/**}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'WaitOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:wait', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AutoMl/v1/tests/Unit/V1/Client/AutoMlClientTest.php b/owl-bot-staging/AutoMl/v1/tests/Unit/V1/Client/AutoMlClientTest.php deleted file mode 100644 index 4596acf3cb67..000000000000 --- a/owl-bot-staging/AutoMl/v1/tests/Unit/V1/Client/AutoMlClientTest.php +++ /dev/null @@ -1,1982 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AutoMlClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AutoMlClient($options); - } - - /** @test */ - public function createDatasetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDatasetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $exampleCount = 1517063674; - $etag = 'etag3123477'; - $expectedResponse = new Dataset(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setExampleCount($exampleCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDatasetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataset = new Dataset(); - $request = (new CreateDatasetRequest()) - ->setParent($formattedParent) - ->setDataset($dataset); - $response = $gapicClient->createDataset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/CreateDataset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataset(); - $this->assertProtobufEquals($dataset, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDatasetTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createDatasetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDatasetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataset = new Dataset(); - $request = (new CreateDatasetRequest()) - ->setParent($formattedParent) - ->setDataset($dataset); - $response = $gapicClient->createDataset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDatasetTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createModelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $datasetId = 'datasetId-2115646910'; - $etag = 'etag3123477'; - $expectedResponse = new Model(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDatasetId($datasetId); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createModelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $model = new Model(); - $request = (new CreateModelRequest()) - ->setParent($formattedParent) - ->setModel($model); - $response = $gapicClient->createModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/CreateModel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getModel(); - $this->assertProtobufEquals($model, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createModelTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createModelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $model = new Model(); - $request = (new CreateModelRequest()) - ->setParent($formattedParent) - ->setModel($model); - $response = $gapicClient->createModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createModelTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDatasetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDatasetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDatasetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $request = (new DeleteDatasetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/DeleteDataset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDatasetTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDatasetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDatasetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $request = (new DeleteDatasetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDatasetTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteModelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteModelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new DeleteModelRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/DeleteModel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteModelTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteModelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new DeleteModelRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteModelTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deployModelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deployModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deployModelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new DeployModelRequest()) - ->setName($formattedName); - $response = $gapicClient->deployModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/DeployModel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deployModelTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deployModelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deployModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new DeployModelRequest()) - ->setName($formattedName); - $response = $gapicClient->deployModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deployModelTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportDataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportDataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportDataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $outputConfig = new OutputConfig(); - $outputConfigGcsDestination = new GcsDestination(); - $gcsDestinationOutputUriPrefix = 'gcsDestinationOutputUriPrefix-335790682'; - $outputConfigGcsDestination->setOutputUriPrefix($gcsDestinationOutputUriPrefix); - $outputConfig->setGcsDestination($outputConfigGcsDestination); - $request = (new ExportDataRequest()) - ->setName($formattedName) - ->setOutputConfig($outputConfig); - $response = $gapicClient->exportData($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/ExportData', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getOutputConfig(); - $this->assertProtobufEquals($outputConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportDataTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportDataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportDataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $outputConfig = new OutputConfig(); - $outputConfigGcsDestination = new GcsDestination(); - $gcsDestinationOutputUriPrefix = 'gcsDestinationOutputUriPrefix-335790682'; - $outputConfigGcsDestination->setOutputUriPrefix($gcsDestinationOutputUriPrefix); - $outputConfig->setGcsDestination($outputConfigGcsDestination); - $request = (new ExportDataRequest()) - ->setName($formattedName) - ->setOutputConfig($outputConfig); - $response = $gapicClient->exportData($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportDataTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportModelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportModelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $outputConfig = new ModelExportOutputConfig(); - $outputConfigGcsDestination = new GcsDestination(); - $gcsDestinationOutputUriPrefix = 'gcsDestinationOutputUriPrefix-335790682'; - $outputConfigGcsDestination->setOutputUriPrefix($gcsDestinationOutputUriPrefix); - $outputConfig->setGcsDestination($outputConfigGcsDestination); - $request = (new ExportModelRequest()) - ->setName($formattedName) - ->setOutputConfig($outputConfig); - $response = $gapicClient->exportModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/ExportModel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getOutputConfig(); - $this->assertProtobufEquals($outputConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportModelTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportModelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $outputConfig = new ModelExportOutputConfig(); - $outputConfigGcsDestination = new GcsDestination(); - $gcsDestinationOutputUriPrefix = 'gcsDestinationOutputUriPrefix-335790682'; - $outputConfigGcsDestination->setOutputUriPrefix($gcsDestinationOutputUriPrefix); - $outputConfig->setGcsDestination($outputConfigGcsDestination); - $request = (new ExportModelRequest()) - ->setName($formattedName) - ->setOutputConfig($outputConfig); - $response = $gapicClient->exportModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportModelTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getAnnotationSpecTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $exampleCount = 1517063674; - $expectedResponse = new AnnotationSpec(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setExampleCount($exampleCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->annotationSpecName('[PROJECT]', '[LOCATION]', '[DATASET]', '[ANNOTATION_SPEC]'); - $request = (new GetAnnotationSpecRequest()) - ->setName($formattedName); - $response = $gapicClient->getAnnotationSpec($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/GetAnnotationSpec', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAnnotationSpecExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->annotationSpecName('[PROJECT]', '[LOCATION]', '[DATASET]', '[ANNOTATION_SPEC]'); - $request = (new GetAnnotationSpecRequest()) - ->setName($formattedName); - try { - $gapicClient->getAnnotationSpec($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDatasetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $exampleCount = 1517063674; - $etag = 'etag3123477'; - $expectedResponse = new Dataset(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setExampleCount($exampleCount); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $request = (new GetDatasetRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataset($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/GetDataset', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDatasetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $request = (new GetDatasetRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataset($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getModelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $datasetId = 'datasetId-2115646910'; - $etag = 'etag3123477'; - $expectedResponse = new Model(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDatasetId($datasetId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new GetModelRequest()) - ->setName($formattedName); - $response = $gapicClient->getModel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/GetModel', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getModelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new GetModelRequest()) - ->setName($formattedName); - try { - $gapicClient->getModel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getModelEvaluationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $annotationSpecId = 'annotationSpecId60690191'; - $displayName = 'displayName1615086568'; - $evaluatedExampleCount = 277565350; - $expectedResponse = new ModelEvaluation(); - $expectedResponse->setName($name2); - $expectedResponse->setAnnotationSpecId($annotationSpecId); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEvaluatedExampleCount($evaluatedExampleCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->modelEvaluationName('[PROJECT]', '[LOCATION]', '[MODEL]', '[MODEL_EVALUATION]'); - $request = (new GetModelEvaluationRequest()) - ->setName($formattedName); - $response = $gapicClient->getModelEvaluation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/GetModelEvaluation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getModelEvaluationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelEvaluationName('[PROJECT]', '[LOCATION]', '[MODEL]', '[MODEL_EVALUATION]'); - $request = (new GetModelEvaluationRequest()) - ->setName($formattedName); - try { - $gapicClient->getModelEvaluation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importDataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importDataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importDataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $inputConfig = new InputConfig(); - $request = (new ImportDataRequest()) - ->setName($formattedName) - ->setInputConfig($inputConfig); - $response = $gapicClient->importData($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/ImportData', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getInputConfig(); - $this->assertProtobufEquals($inputConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importDataTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function importDataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importDataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->datasetName('[PROJECT]', '[LOCATION]', '[DATASET]'); - $inputConfig = new InputConfig(); - $request = (new ImportDataRequest()) - ->setName($formattedName) - ->setInputConfig($inputConfig); - $response = $gapicClient->importData($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importDataTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function listDatasetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $datasetsElement = new Dataset(); - $datasets = [ - $datasetsElement, - ]; - $expectedResponse = new ListDatasetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDatasets($datasets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDatasetsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDatasets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDatasets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/ListDatasets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDatasetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDatasetsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDatasets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listModelEvaluationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $modelEvaluationElement = new ModelEvaluation(); - $modelEvaluation = [ - $modelEvaluationElement, - ]; - $expectedResponse = new ListModelEvaluationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setModelEvaluation($modelEvaluation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $filter = 'filter-1274492040'; - $request = (new ListModelEvaluationsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - $response = $gapicClient->listModelEvaluations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getModelEvaluation()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/ListModelEvaluations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listModelEvaluationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $filter = 'filter-1274492040'; - $request = (new ListModelEvaluationsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - try { - $gapicClient->listModelEvaluations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listModelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $modelElement = new Model(); - $model = [ - $modelElement, - ]; - $expectedResponse = new ListModelsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setModel($model); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListModelsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listModels($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getModel()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/ListModels', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listModelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListModelsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listModels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function undeployModelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeployModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/undeployModelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new UndeployModelRequest()) - ->setName($formattedName); - $response = $gapicClient->undeployModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/UndeployModel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeployModelTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function undeployModelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeployModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $request = (new UndeployModelRequest()) - ->setName($formattedName); - $response = $gapicClient->undeployModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeployModelTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDatasetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $exampleCount = 1517063674; - $etag = 'etag3123477'; - $expectedResponse = new Dataset(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setExampleCount($exampleCount); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $dataset = new Dataset(); - $updateMask = new FieldMask(); - $request = (new UpdateDatasetRequest()) - ->setDataset($dataset) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateDataset($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/UpdateDataset', $actualFuncCall); - $actualValue = $actualRequestObject->getDataset(); - $this->assertProtobufEquals($dataset, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDatasetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataset = new Dataset(); - $updateMask = new FieldMask(); - $request = (new UpdateDatasetRequest()) - ->setDataset($dataset) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateDataset($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateModelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $datasetId = 'datasetId-2115646910'; - $etag = 'etag3123477'; - $expectedResponse = new Model(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDatasetId($datasetId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $model = new Model(); - $updateMask = new FieldMask(); - $request = (new UpdateModelRequest()) - ->setModel($model) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateModel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/UpdateModel', $actualFuncCall); - $actualValue = $actualRequestObject->getModel(); - $this->assertProtobufEquals($model, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateModelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $model = new Model(); - $updateMask = new FieldMask(); - $request = (new UpdateModelRequest()) - ->setModel($model) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateModel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDatasetAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDatasetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $exampleCount = 1517063674; - $etag = 'etag3123477'; - $expectedResponse = new Dataset(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setExampleCount($exampleCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDatasetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataset = new Dataset(); - $request = (new CreateDatasetRequest()) - ->setParent($formattedParent) - ->setDataset($dataset); - $response = $gapicClient->createDatasetAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.AutoMl/CreateDataset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataset(); - $this->assertProtobufEquals($dataset, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDatasetTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/AutoMl/v1/tests/Unit/V1/Client/PredictionServiceClientTest.php b/owl-bot-staging/AutoMl/v1/tests/Unit/V1/Client/PredictionServiceClientTest.php deleted file mode 100644 index 1baca4b26f48..000000000000 --- a/owl-bot-staging/AutoMl/v1/tests/Unit/V1/Client/PredictionServiceClientTest.php +++ /dev/null @@ -1,370 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return PredictionServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new PredictionServiceClient($options); - } - - /** @test */ - public function batchPredictTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchPredictTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchPredictResult(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchPredictTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $inputConfig = new BatchPredictInputConfig(); - $inputConfigGcsSource = new GcsSource(); - $gcsSourceInputUris = []; - $inputConfigGcsSource->setInputUris($gcsSourceInputUris); - $inputConfig->setGcsSource($inputConfigGcsSource); - $outputConfig = new BatchPredictOutputConfig(); - $outputConfigGcsDestination = new GcsDestination(); - $gcsDestinationOutputUriPrefix = 'gcsDestinationOutputUriPrefix-335790682'; - $outputConfigGcsDestination->setOutputUriPrefix($gcsDestinationOutputUriPrefix); - $outputConfig->setGcsDestination($outputConfigGcsDestination); - $request = (new BatchPredictRequest()) - ->setName($formattedName) - ->setInputConfig($inputConfig) - ->setOutputConfig($outputConfig); - $response = $gapicClient->batchPredict($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.PredictionService/BatchPredict', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getInputConfig(); - $this->assertProtobufEquals($inputConfig, $actualValue); - $actualValue = $actualApiRequestObject->getOutputConfig(); - $this->assertProtobufEquals($outputConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchPredictTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function batchPredictExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchPredictTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $inputConfig = new BatchPredictInputConfig(); - $inputConfigGcsSource = new GcsSource(); - $gcsSourceInputUris = []; - $inputConfigGcsSource->setInputUris($gcsSourceInputUris); - $inputConfig->setGcsSource($inputConfigGcsSource); - $outputConfig = new BatchPredictOutputConfig(); - $outputConfigGcsDestination = new GcsDestination(); - $gcsDestinationOutputUriPrefix = 'gcsDestinationOutputUriPrefix-335790682'; - $outputConfigGcsDestination->setOutputUriPrefix($gcsDestinationOutputUriPrefix); - $outputConfig->setGcsDestination($outputConfigGcsDestination); - $request = (new BatchPredictRequest()) - ->setName($formattedName) - ->setInputConfig($inputConfig) - ->setOutputConfig($outputConfig); - $response = $gapicClient->batchPredict($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchPredictTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function predictTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PredictResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $payload = new ExamplePayload(); - $request = (new PredictRequest()) - ->setName($formattedName) - ->setPayload($payload); - $response = $gapicClient->predict($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.PredictionService/Predict', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getPayload(); - $this->assertProtobufEquals($payload, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function predictExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $payload = new ExamplePayload(); - $request = (new PredictRequest()) - ->setName($formattedName) - ->setPayload($payload); - try { - $gapicClient->predict($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchPredictAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchPredictTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchPredictResult(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchPredictTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->modelName('[PROJECT]', '[LOCATION]', '[MODEL]'); - $inputConfig = new BatchPredictInputConfig(); - $inputConfigGcsSource = new GcsSource(); - $gcsSourceInputUris = []; - $inputConfigGcsSource->setInputUris($gcsSourceInputUris); - $inputConfig->setGcsSource($inputConfigGcsSource); - $outputConfig = new BatchPredictOutputConfig(); - $outputConfigGcsDestination = new GcsDestination(); - $gcsDestinationOutputUriPrefix = 'gcsDestinationOutputUriPrefix-335790682'; - $outputConfigGcsDestination->setOutputUriPrefix($gcsDestinationOutputUriPrefix); - $outputConfig->setGcsDestination($outputConfigGcsDestination); - $request = (new BatchPredictRequest()) - ->setName($formattedName) - ->setInputConfig($inputConfig) - ->setOutputConfig($outputConfig); - $response = $gapicClient->batchPredictAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.automl.v1.PredictionService/BatchPredict', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getInputConfig(); - $this->assertProtobufEquals($inputConfig, $actualValue); - $actualValue = $actualApiRequestObject->getOutputConfig(); - $this->assertProtobufEquals($outputConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchPredictTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -} diff --git a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupdr.php b/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupdr.php deleted file mode 100644 index fde6b0d8cfbd..000000000000 Binary files a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupdr.php and /dev/null differ diff --git a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupplan.php b/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupplan.php deleted file mode 100644 index 6bfd440367ce..000000000000 Binary files a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupplan.php and /dev/null differ diff --git a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupplanassociation.php b/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupplanassociation.php deleted file mode 100644 index f2c6692f67f7..000000000000 Binary files a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupplanassociation.php and /dev/null differ diff --git a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupvault.php b/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupvault.php deleted file mode 100644 index 23fe82324104..000000000000 Binary files a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/Backupvault.php and /dev/null differ diff --git a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/BackupvaultBa.php b/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/BackupvaultBa.php deleted file mode 100644 index 06aa2a0bd464..000000000000 Binary files a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/BackupvaultBa.php and /dev/null differ diff --git a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/BackupvaultGce.php b/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/BackupvaultGce.php deleted file mode 100644 index 6a830e43e0cc..000000000000 Binary files a/owl-bot-staging/BackupDr/v1/proto/src/GPBMetadata/Google/Cloud/Backupdr/V1/BackupvaultGce.php and /dev/null differ diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AcceleratorConfig.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AcceleratorConfig.php deleted file mode 100644 index 5a0f3dce0b04..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AcceleratorConfig.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.backupdr.v1.AcceleratorConfig - */ -class AcceleratorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Full or partial URL of the accelerator type resource to attach to - * this instance. - * - * Generated from protobuf field optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $accelerator_type = null; - /** - * Optional. The number of the guest accelerator cards exposed to this - * instance. - * - * Generated from protobuf field optional int32 accelerator_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $accelerator_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $accelerator_type - * Optional. Full or partial URL of the accelerator type resource to attach to - * this instance. - * @type int $accelerator_count - * Optional. The number of the guest accelerator cards exposed to this - * instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Full or partial URL of the accelerator type resource to attach to - * this instance. - * - * Generated from protobuf field optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAcceleratorType() - { - return isset($this->accelerator_type) ? $this->accelerator_type : ''; - } - - public function hasAcceleratorType() - { - return isset($this->accelerator_type); - } - - public function clearAcceleratorType() - { - unset($this->accelerator_type); - } - - /** - * Optional. Full or partial URL of the accelerator type resource to attach to - * this instance. - * - * Generated from protobuf field optional string accelerator_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAcceleratorType($var) - { - GPBUtil::checkString($var, True); - $this->accelerator_type = $var; - - return $this; - } - - /** - * Optional. The number of the guest accelerator cards exposed to this - * instance. - * - * Generated from protobuf field optional int32 accelerator_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getAcceleratorCount() - { - return isset($this->accelerator_count) ? $this->accelerator_count : 0; - } - - public function hasAcceleratorCount() - { - return isset($this->accelerator_count); - } - - public function clearAcceleratorCount() - { - unset($this->accelerator_count); - } - - /** - * Optional. The number of the guest accelerator cards exposed to this - * instance. - * - * Generated from protobuf field optional int32 accelerator_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setAcceleratorCount($var) - { - GPBUtil::checkInt32($var); - $this->accelerator_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig.php deleted file mode 100644 index 325e5e49dd31..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig.php +++ /dev/null @@ -1,406 +0,0 @@ -google.cloud.backupdr.v1.AccessConfig - */ -class AccessConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. In accessConfigs (IPv4), the - * default and only option is ONE_TO_ONE_NAT. In - * ipv6AccessConfigs, the default and only option is - * DIRECT_IPV6. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = null; - /** - * Optional. The name of this access configuration. - * - * Generated from protobuf field optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = null; - /** - * Optional. The external IP address of this access configuration. - * - * Generated from protobuf field optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_ip = null; - /** - * Optional. The external IPv6 address of this access configuration. - * - * Generated from protobuf field optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_ipv6 = null; - /** - * Optional. The prefix length of the external IPv6 range. - * - * Generated from protobuf field optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $external_ipv6_prefix_length = null; - /** - * Optional. Specifies whether a public DNS 'PTR' record should be created to - * map the external IP address of the instance to a DNS domain name. - * - * Generated from protobuf field optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $set_public_ptr = null; - /** - * Optional. The DNS domain name for the public PTR record. - * - * Generated from protobuf field optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $public_ptr_domain_name = null; - /** - * Optional. This signifies the networking tier used for configuring this - * access - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network_tier = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Optional. In accessConfigs (IPv4), the - * default and only option is ONE_TO_ONE_NAT. In - * ipv6AccessConfigs, the default and only option is - * DIRECT_IPV6. - * @type string $name - * Optional. The name of this access configuration. - * @type string $external_ip - * Optional. The external IP address of this access configuration. - * @type string $external_ipv6 - * Optional. The external IPv6 address of this access configuration. - * @type int $external_ipv6_prefix_length - * Optional. The prefix length of the external IPv6 range. - * @type bool $set_public_ptr - * Optional. Specifies whether a public DNS 'PTR' record should be created to - * map the external IP address of the instance to a DNS domain name. - * @type string $public_ptr_domain_name - * Optional. The DNS domain name for the public PTR record. - * @type int $network_tier - * Optional. This signifies the networking tier used for configuring this - * access - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. In accessConfigs (IPv4), the - * default and only option is ONE_TO_ONE_NAT. In - * ipv6AccessConfigs, the default and only option is - * DIRECT_IPV6. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return isset($this->type) ? $this->type : 0; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * Optional. In accessConfigs (IPv4), the - * default and only option is ONE_TO_ONE_NAT. In - * ipv6AccessConfigs, the default and only option is - * DIRECT_IPV6. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AccessConfig\AccessType::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The name of this access configuration. - * - * Generated from protobuf field optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return isset($this->name) ? $this->name : ''; - } - - public function hasName() - { - return isset($this->name); - } - - public function clearName() - { - unset($this->name); - } - - /** - * Optional. The name of this access configuration. - * - * Generated from protobuf field optional string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The external IP address of this access configuration. - * - * Generated from protobuf field optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalIp() - { - return isset($this->external_ip) ? $this->external_ip : ''; - } - - public function hasExternalIp() - { - return isset($this->external_ip); - } - - public function clearExternalIp() - { - unset($this->external_ip); - } - - /** - * Optional. The external IP address of this access configuration. - * - * Generated from protobuf field optional string external_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalIp($var) - { - GPBUtil::checkString($var, True); - $this->external_ip = $var; - - return $this; - } - - /** - * Optional. The external IPv6 address of this access configuration. - * - * Generated from protobuf field optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getExternalIpv6() - { - return isset($this->external_ipv6) ? $this->external_ipv6 : ''; - } - - public function hasExternalIpv6() - { - return isset($this->external_ipv6); - } - - public function clearExternalIpv6() - { - unset($this->external_ipv6); - } - - /** - * Optional. The external IPv6 address of this access configuration. - * - * Generated from protobuf field optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setExternalIpv6($var) - { - GPBUtil::checkString($var, True); - $this->external_ipv6 = $var; - - return $this; - } - - /** - * Optional. The prefix length of the external IPv6 range. - * - * Generated from protobuf field optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getExternalIpv6PrefixLength() - { - return isset($this->external_ipv6_prefix_length) ? $this->external_ipv6_prefix_length : 0; - } - - public function hasExternalIpv6PrefixLength() - { - return isset($this->external_ipv6_prefix_length); - } - - public function clearExternalIpv6PrefixLength() - { - unset($this->external_ipv6_prefix_length); - } - - /** - * Optional. The prefix length of the external IPv6 range. - * - * Generated from protobuf field optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setExternalIpv6PrefixLength($var) - { - GPBUtil::checkInt32($var); - $this->external_ipv6_prefix_length = $var; - - return $this; - } - - /** - * Optional. Specifies whether a public DNS 'PTR' record should be created to - * map the external IP address of the instance to a DNS domain name. - * - * Generated from protobuf field optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getSetPublicPtr() - { - return isset($this->set_public_ptr) ? $this->set_public_ptr : false; - } - - public function hasSetPublicPtr() - { - return isset($this->set_public_ptr); - } - - public function clearSetPublicPtr() - { - unset($this->set_public_ptr); - } - - /** - * Optional. Specifies whether a public DNS 'PTR' record should be created to - * map the external IP address of the instance to a DNS domain name. - * - * Generated from protobuf field optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setSetPublicPtr($var) - { - GPBUtil::checkBool($var); - $this->set_public_ptr = $var; - - return $this; - } - - /** - * Optional. The DNS domain name for the public PTR record. - * - * Generated from protobuf field optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPublicPtrDomainName() - { - return isset($this->public_ptr_domain_name) ? $this->public_ptr_domain_name : ''; - } - - public function hasPublicPtrDomainName() - { - return isset($this->public_ptr_domain_name); - } - - public function clearPublicPtrDomainName() - { - unset($this->public_ptr_domain_name); - } - - /** - * Optional. The DNS domain name for the public PTR record. - * - * Generated from protobuf field optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPublicPtrDomainName($var) - { - GPBUtil::checkString($var, True); - $this->public_ptr_domain_name = $var; - - return $this; - } - - /** - * Optional. This signifies the networking tier used for configuring this - * access - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getNetworkTier() - { - return isset($this->network_tier) ? $this->network_tier : 0; - } - - public function hasNetworkTier() - { - return isset($this->network_tier); - } - - public function clearNetworkTier() - { - unset($this->network_tier); - } - - /** - * Optional. This signifies the networking tier used for configuring this - * access - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setNetworkTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AccessConfig\NetworkTier::class); - $this->network_tier = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig/AccessType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig/AccessType.php deleted file mode 100644 index aedd6203972c..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig/AccessType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.AccessConfig.AccessType - */ -class AccessType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ACCESS_TYPE_UNSPECIFIED = 0; - */ - const ACCESS_TYPE_UNSPECIFIED = 0; - /** - * ONE_TO_ONE_NAT - * - * Generated from protobuf enum ONE_TO_ONE_NAT = 1; - */ - const ONE_TO_ONE_NAT = 1; - /** - * Direct IPv6 access. - * - * Generated from protobuf enum DIRECT_IPV6 = 2; - */ - const DIRECT_IPV6 = 2; - - private static $valueToName = [ - self::ACCESS_TYPE_UNSPECIFIED => 'ACCESS_TYPE_UNSPECIFIED', - self::ONE_TO_ONE_NAT => 'ONE_TO_ONE_NAT', - self::DIRECT_IPV6 => 'DIRECT_IPV6', - ]; - - 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(AccessType::class, \Google\Cloud\BackupDR\V1\AccessConfig_AccessType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig/NetworkTier.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig/NetworkTier.php deleted file mode 100644 index 181b61710791..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AccessConfig/NetworkTier.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.backupdr.v1.AccessConfig.NetworkTier - */ -class NetworkTier -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum NETWORK_TIER_UNSPECIFIED = 0; - */ - const NETWORK_TIER_UNSPECIFIED = 0; - /** - * High quality, Google-grade network tier, support for all networking - * products. - * - * Generated from protobuf enum PREMIUM = 1; - */ - const PREMIUM = 1; - /** - * Public internet quality, only limited support for other networking - * products. - * - * Generated from protobuf enum STANDARD = 2; - */ - const STANDARD = 2; - - private static $valueToName = [ - self::NETWORK_TIER_UNSPECIFIED => 'NETWORK_TIER_UNSPECIFIED', - self::PREMIUM => 'PREMIUM', - self::STANDARD => 'STANDARD', - ]; - - 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(NetworkTier::class, \Google\Cloud\BackupDR\V1\AccessConfig_NetworkTier::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AdvancedMachineFeatures.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AdvancedMachineFeatures.php deleted file mode 100644 index 29901b19bd41..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AdvancedMachineFeatures.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.backupdr.v1.AdvancedMachineFeatures - */ -class AdvancedMachineFeatures extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to enable nested virtualization or not (default is - * false). - * - * Generated from protobuf field optional bool enable_nested_virtualization = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_nested_virtualization = null; - /** - * Optional. The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number - * of threads supported per core by the underlying processor is - * assumed. - * - * Generated from protobuf field optional int32 threads_per_core = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $threads_per_core = null; - /** - * Optional. The number of physical cores to expose to an instance. Multiply - * by the number of threads per core to compute the total number of virtual - * CPUs to expose to the instance. If unset, the number of cores is - * inferred from the instance's nominal CPU count and the underlying - * platform's SMT width. - * - * Generated from protobuf field optional int32 visible_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $visible_core_count = null; - /** - * Optional. Whether to enable UEFI networking for instance creation. - * - * Generated from protobuf field optional bool enable_uefi_networking = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_uefi_networking = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_nested_virtualization - * Optional. Whether to enable nested virtualization or not (default is - * false). - * @type int $threads_per_core - * Optional. The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number - * of threads supported per core by the underlying processor is - * assumed. - * @type int $visible_core_count - * Optional. The number of physical cores to expose to an instance. Multiply - * by the number of threads per core to compute the total number of virtual - * CPUs to expose to the instance. If unset, the number of cores is - * inferred from the instance's nominal CPU count and the underlying - * platform's SMT width. - * @type bool $enable_uefi_networking - * Optional. Whether to enable UEFI networking for instance creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to enable nested virtualization or not (default is - * false). - * - * Generated from protobuf field optional bool enable_nested_virtualization = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableNestedVirtualization() - { - return isset($this->enable_nested_virtualization) ? $this->enable_nested_virtualization : false; - } - - public function hasEnableNestedVirtualization() - { - return isset($this->enable_nested_virtualization); - } - - public function clearEnableNestedVirtualization() - { - unset($this->enable_nested_virtualization); - } - - /** - * Optional. Whether to enable nested virtualization or not (default is - * false). - * - * Generated from protobuf field optional bool enable_nested_virtualization = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableNestedVirtualization($var) - { - GPBUtil::checkBool($var); - $this->enable_nested_virtualization = $var; - - return $this; - } - - /** - * Optional. The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number - * of threads supported per core by the underlying processor is - * assumed. - * - * Generated from protobuf field optional int32 threads_per_core = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getThreadsPerCore() - { - return isset($this->threads_per_core) ? $this->threads_per_core : 0; - } - - public function hasThreadsPerCore() - { - return isset($this->threads_per_core); - } - - public function clearThreadsPerCore() - { - unset($this->threads_per_core); - } - - /** - * Optional. The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number - * of threads supported per core by the underlying processor is - * assumed. - * - * Generated from protobuf field optional int32 threads_per_core = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setThreadsPerCore($var) - { - GPBUtil::checkInt32($var); - $this->threads_per_core = $var; - - return $this; - } - - /** - * Optional. The number of physical cores to expose to an instance. Multiply - * by the number of threads per core to compute the total number of virtual - * CPUs to expose to the instance. If unset, the number of cores is - * inferred from the instance's nominal CPU count and the underlying - * platform's SMT width. - * - * Generated from protobuf field optional int32 visible_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getVisibleCoreCount() - { - return isset($this->visible_core_count) ? $this->visible_core_count : 0; - } - - public function hasVisibleCoreCount() - { - return isset($this->visible_core_count); - } - - public function clearVisibleCoreCount() - { - unset($this->visible_core_count); - } - - /** - * Optional. The number of physical cores to expose to an instance. Multiply - * by the number of threads per core to compute the total number of virtual - * CPUs to expose to the instance. If unset, the number of cores is - * inferred from the instance's nominal CPU count and the underlying - * platform's SMT width. - * - * Generated from protobuf field optional int32 visible_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setVisibleCoreCount($var) - { - GPBUtil::checkInt32($var); - $this->visible_core_count = $var; - - return $this; - } - - /** - * Optional. Whether to enable UEFI networking for instance creation. - * - * Generated from protobuf field optional bool enable_uefi_networking = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableUefiNetworking() - { - return isset($this->enable_uefi_networking) ? $this->enable_uefi_networking : false; - } - - public function hasEnableUefiNetworking() - { - return isset($this->enable_uefi_networking); - } - - public function clearEnableUefiNetworking() - { - unset($this->enable_uefi_networking); - } - - /** - * Optional. Whether to enable UEFI networking for instance creation. - * - * Generated from protobuf field optional bool enable_uefi_networking = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableUefiNetworking($var) - { - GPBUtil::checkBool($var); - $this->enable_uefi_networking = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AliasIpRange.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AliasIpRange.php deleted file mode 100644 index c7fa6c80788b..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AliasIpRange.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.backupdr.v1.AliasIpRange - */ -class AliasIpRange extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The IP alias ranges to allocate for this interface. - * - * Generated from protobuf field optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ip_cidr_range = null; - /** - * Optional. The name of a subnetwork secondary IP range from which to - * allocate an IP alias range. If not specified, the primary range of the - * subnetwork is used. - * - * Generated from protobuf field optional string subnetwork_range_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $subnetwork_range_name = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ip_cidr_range - * Optional. The IP alias ranges to allocate for this interface. - * @type string $subnetwork_range_name - * Optional. The name of a subnetwork secondary IP range from which to - * allocate an IP alias range. If not specified, the primary range of the - * subnetwork is used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The IP alias ranges to allocate for this interface. - * - * Generated from protobuf field optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getIpCidrRange() - { - return isset($this->ip_cidr_range) ? $this->ip_cidr_range : ''; - } - - public function hasIpCidrRange() - { - return isset($this->ip_cidr_range); - } - - public function clearIpCidrRange() - { - unset($this->ip_cidr_range); - } - - /** - * Optional. The IP alias ranges to allocate for this interface. - * - * Generated from protobuf field optional string ip_cidr_range = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setIpCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->ip_cidr_range = $var; - - return $this; - } - - /** - * Optional. The name of a subnetwork secondary IP range from which to - * allocate an IP alias range. If not specified, the primary range of the - * subnetwork is used. - * - * Generated from protobuf field optional string subnetwork_range_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSubnetworkRangeName() - { - return isset($this->subnetwork_range_name) ? $this->subnetwork_range_name : ''; - } - - public function hasSubnetworkRangeName() - { - return isset($this->subnetwork_range_name); - } - - public function clearSubnetworkRangeName() - { - unset($this->subnetwork_range_name); - } - - /** - * Optional. The name of a subnetwork secondary IP range from which to - * allocate an IP alias range. If not specified, the primary range of the - * subnetwork is used. - * - * Generated from protobuf field optional string subnetwork_range_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSubnetworkRangeName($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork_range_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AllocationAffinity.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AllocationAffinity.php deleted file mode 100644 index 6eb73d7b0b92..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AllocationAffinity.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.AllocationAffinity - */ -class AllocationAffinity extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the type of reservation from which this instance can - * consume - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $consume_allocation_type = null; - /** - * Optional. Corresponds to the label key of a reservation resource. - * - * Generated from protobuf field optional string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key = null; - /** - * Optional. Corresponds to the label values of a reservation resource. - * - * Generated from protobuf field repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consume_allocation_type - * Optional. Specifies the type of reservation from which this instance can - * consume - * @type string $key - * Optional. Corresponds to the label key of a reservation resource. - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Optional. Corresponds to the label values of a reservation resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the type of reservation from which this instance can - * consume - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getConsumeAllocationType() - { - return isset($this->consume_allocation_type) ? $this->consume_allocation_type : 0; - } - - public function hasConsumeAllocationType() - { - return isset($this->consume_allocation_type); - } - - public function clearConsumeAllocationType() - { - unset($this->consume_allocation_type); - } - - /** - * Optional. Specifies the type of reservation from which this instance can - * consume - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AllocationAffinity.Type consume_allocation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setConsumeAllocationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AllocationAffinity\Type::class); - $this->consume_allocation_type = $var; - - return $this; - } - - /** - * Optional. Corresponds to the label key of a reservation resource. - * - * Generated from protobuf field optional string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKey() - { - return isset($this->key) ? $this->key : ''; - } - - public function hasKey() - { - return isset($this->key); - } - - public function clearKey() - { - unset($this->key); - } - - /** - * Optional. Corresponds to the label key of a reservation resource. - * - * Generated from protobuf field optional string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Optional. Corresponds to the label values of a reservation resource. - * - * Generated from protobuf field repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Optional. Corresponds to the label values of a reservation resource. - * - * Generated from protobuf field repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AllocationAffinity/Type.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AllocationAffinity/Type.php deleted file mode 100644 index f6b1ff173e0d..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AllocationAffinity/Type.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.backupdr.v1.AllocationAffinity.Type - */ -class Type -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Do not consume from any allocated capacity. - * - * Generated from protobuf enum NO_RESERVATION = 1; - */ - const NO_RESERVATION = 1; - /** - * Consume any allocation available. - * - * Generated from protobuf enum ANY_RESERVATION = 2; - */ - const ANY_RESERVATION = 2; - /** - * Must consume from a specific reservation. Must specify key value fields - * for specifying the reservations. - * - * Generated from protobuf enum SPECIFIC_RESERVATION = 3; - */ - const SPECIFIC_RESERVATION = 3; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::NO_RESERVATION => 'NO_RESERVATION', - self::ANY_RESERVATION => 'ANY_RESERVATION', - self::SPECIFIC_RESERVATION => 'SPECIFIC_RESERVATION', - ]; - - 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(Type::class, \Google\Cloud\BackupDR\V1\AllocationAffinity_Type::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk.php deleted file mode 100644 index 6d06c12af671..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk.php +++ /dev/null @@ -1,804 +0,0 @@ -google.cloud.backupdr.v1.AttachedDisk - */ -class AttachedDisk extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the parameters to initialize this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $initialize_params = null; - /** - * Optional. This is used as an identifier for the disks. This is the unique - * name has to provided to modify disk parameters like disk_name and - * replica_zones (in case of RePDs) - * - * Generated from protobuf field optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $device_name = null; - /** - * Optional. Type of the resource. - * - * Generated from protobuf field optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $kind = null; - /** - * Specifies the type of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true]; - * @deprecated - */ - protected $disk_type_deprecated = null; - /** - * Optional. The mode in which to attach this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mode = null; - /** - * Optional. Specifies a valid partial or full URL to an existing Persistent - * Disk resource. - * - * Generated from protobuf field optional string source = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $source = null; - /** - * Optional. A zero-based index to this disk, where 0 is reserved for the - * boot disk. - * - * Generated from protobuf field optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $index = null; - /** - * Optional. Indicates that this is a boot disk. The virtual machine will use - * the first partition of the disk for its root filesystem. - * - * Generated from protobuf field optional bool boot = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $boot = null; - /** - * Optional. Specifies whether the disk will be auto-deleted when the instance - * is deleted (but not when the disk is detached from the instance). - * - * Generated from protobuf field optional bool auto_delete = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $auto_delete = null; - /** - * Optional. Any valid publicly visible licenses. - * - * Generated from protobuf field repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $license; - /** - * Optional. Specifies the disk interface to use for attaching this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_interface = null; - /** - * Optional. A list of features to enable on the guest operating system. - * Applicable only for bootable images. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $guest_os_feature; - /** - * Optional. Encrypts or decrypts a disk using a customer-supplied - * encryption key. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_encryption_key = null; - /** - * Optional. The size of the disk in GB. - * - * Generated from protobuf field optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_size_gb = null; - /** - * Optional. Output only. The state of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $saved_state = null; - /** - * Optional. Output only. The URI of the disk type resource. For example: - * projects/project/zones/zone/diskTypes/pd-standard or pd-ssd - * - * Generated from protobuf field optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $disk_type = null; - /** - * Optional. Specifies the type of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BackupDR\V1\AttachedDisk\InitializeParams $initialize_params - * Optional. Specifies the parameters to initialize this disk. - * @type string $device_name - * Optional. This is used as an identifier for the disks. This is the unique - * name has to provided to modify disk parameters like disk_name and - * replica_zones (in case of RePDs) - * @type string $kind - * Optional. Type of the resource. - * @type int $disk_type_deprecated - * Specifies the type of the disk. - * @type int $mode - * Optional. The mode in which to attach this disk. - * @type string $source - * Optional. Specifies a valid partial or full URL to an existing Persistent - * Disk resource. - * @type int|string $index - * Optional. A zero-based index to this disk, where 0 is reserved for the - * boot disk. - * @type bool $boot - * Optional. Indicates that this is a boot disk. The virtual machine will use - * the first partition of the disk for its root filesystem. - * @type bool $auto_delete - * Optional. Specifies whether the disk will be auto-deleted when the instance - * is deleted (but not when the disk is detached from the instance). - * @type array|\Google\Protobuf\Internal\RepeatedField $license - * Optional. Any valid publicly visible licenses. - * @type int $disk_interface - * Optional. Specifies the disk interface to use for attaching this disk. - * @type array<\Google\Cloud\BackupDR\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $guest_os_feature - * Optional. A list of features to enable on the guest operating system. - * Applicable only for bootable images. - * @type \Google\Cloud\BackupDR\V1\CustomerEncryptionKey $disk_encryption_key - * Optional. Encrypts or decrypts a disk using a customer-supplied - * encryption key. - * @type int|string $disk_size_gb - * Optional. The size of the disk in GB. - * @type int $saved_state - * Optional. Output only. The state of the disk. - * @type string $disk_type - * Optional. Output only. The URI of the disk type resource. For example: - * projects/project/zones/zone/diskTypes/pd-standard or pd-ssd - * @type int $type - * Optional. Specifies the type of the disk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the parameters to initialize this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\AttachedDisk\InitializeParams|null - */ - public function getInitializeParams() - { - return $this->initialize_params; - } - - public function hasInitializeParams() - { - return isset($this->initialize_params); - } - - public function clearInitializeParams() - { - unset($this->initialize_params); - } - - /** - * Optional. Specifies the parameters to initialize this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\AttachedDisk\InitializeParams $var - * @return $this - */ - public function setInitializeParams($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\AttachedDisk\InitializeParams::class); - $this->initialize_params = $var; - - return $this; - } - - /** - * Optional. This is used as an identifier for the disks. This is the unique - * name has to provided to modify disk parameters like disk_name and - * replica_zones (in case of RePDs) - * - * Generated from protobuf field optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDeviceName() - { - return isset($this->device_name) ? $this->device_name : ''; - } - - public function hasDeviceName() - { - return isset($this->device_name); - } - - public function clearDeviceName() - { - unset($this->device_name); - } - - /** - * Optional. This is used as an identifier for the disks. This is the unique - * name has to provided to modify disk parameters like disk_name and - * replica_zones (in case of RePDs) - * - * Generated from protobuf field optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDeviceName($var) - { - GPBUtil::checkString($var, True); - $this->device_name = $var; - - return $this; - } - - /** - * Optional. Type of the resource. - * - * Generated from protobuf field optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKind() - { - return isset($this->kind) ? $this->kind : ''; - } - - public function hasKind() - { - return isset($this->kind); - } - - public function clearKind() - { - unset($this->kind); - } - - /** - * Optional. Type of the resource. - * - * Generated from protobuf field optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * Specifies the type of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true]; - * @return int - * @deprecated - */ - public function getDiskTypeDeprecated() - { - @trigger_error('disk_type_deprecated is deprecated.', E_USER_DEPRECATED); - return isset($this->disk_type_deprecated) ? $this->disk_type_deprecated : 0; - } - - public function hasDiskTypeDeprecated() - { - @trigger_error('disk_type_deprecated is deprecated.', E_USER_DEPRECATED); - return isset($this->disk_type_deprecated); - } - - public function clearDiskTypeDeprecated() - { - @trigger_error('disk_type_deprecated is deprecated.', E_USER_DEPRECATED); - unset($this->disk_type_deprecated); - } - - /** - * Specifies the type of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setDiskTypeDeprecated($var) - { - @trigger_error('disk_type_deprecated is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AttachedDisk\DiskType::class); - $this->disk_type_deprecated = $var; - - return $this; - } - - /** - * Optional. The mode in which to attach this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMode() - { - return isset($this->mode) ? $this->mode : 0; - } - - public function hasMode() - { - return isset($this->mode); - } - - public function clearMode() - { - unset($this->mode); - } - - /** - * Optional. The mode in which to attach this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AttachedDisk\DiskMode::class); - $this->mode = $var; - - return $this; - } - - /** - * Optional. Specifies a valid partial or full URL to an existing Persistent - * Disk resource. - * - * Generated from protobuf field optional string source = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSource() - { - return isset($this->source) ? $this->source : ''; - } - - public function hasSource() - { - return isset($this->source); - } - - public function clearSource() - { - unset($this->source); - } - - /** - * Optional. Specifies a valid partial or full URL to an existing Persistent - * Disk resource. - * - * Generated from protobuf field optional string source = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * Optional. A zero-based index to this disk, where 0 is reserved for the - * boot disk. - * - * Generated from protobuf field optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getIndex() - { - return isset($this->index) ? $this->index : 0; - } - - public function hasIndex() - { - return isset($this->index); - } - - public function clearIndex() - { - unset($this->index); - } - - /** - * Optional. A zero-based index to this disk, where 0 is reserved for the - * boot disk. - * - * Generated from protobuf field optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt64($var); - $this->index = $var; - - return $this; - } - - /** - * Optional. Indicates that this is a boot disk. The virtual machine will use - * the first partition of the disk for its root filesystem. - * - * Generated from protobuf field optional bool boot = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getBoot() - { - return isset($this->boot) ? $this->boot : false; - } - - public function hasBoot() - { - return isset($this->boot); - } - - public function clearBoot() - { - unset($this->boot); - } - - /** - * Optional. Indicates that this is a boot disk. The virtual machine will use - * the first partition of the disk for its root filesystem. - * - * Generated from protobuf field optional bool boot = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setBoot($var) - { - GPBUtil::checkBool($var); - $this->boot = $var; - - return $this; - } - - /** - * Optional. Specifies whether the disk will be auto-deleted when the instance - * is deleted (but not when the disk is detached from the instance). - * - * Generated from protobuf field optional bool auto_delete = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAutoDelete() - { - return isset($this->auto_delete) ? $this->auto_delete : false; - } - - public function hasAutoDelete() - { - return isset($this->auto_delete); - } - - public function clearAutoDelete() - { - unset($this->auto_delete); - } - - /** - * Optional. Specifies whether the disk will be auto-deleted when the instance - * is deleted (but not when the disk is detached from the instance). - * - * Generated from protobuf field optional bool auto_delete = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAutoDelete($var) - { - GPBUtil::checkBool($var); - $this->auto_delete = $var; - - return $this; - } - - /** - * Optional. Any valid publicly visible licenses. - * - * Generated from protobuf field repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLicense() - { - return $this->license; - } - - /** - * Optional. Any valid publicly visible licenses. - * - * Generated from protobuf field repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLicense($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->license = $arr; - - return $this; - } - - /** - * Optional. Specifies the disk interface to use for attaching this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDiskInterface() - { - return isset($this->disk_interface) ? $this->disk_interface : 0; - } - - public function hasDiskInterface() - { - return isset($this->disk_interface); - } - - public function clearDiskInterface() - { - unset($this->disk_interface); - } - - /** - * Optional. Specifies the disk interface to use for attaching this disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDiskInterface($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AttachedDisk\DiskInterface::class); - $this->disk_interface = $var; - - return $this; - } - - /** - * Optional. A list of features to enable on the guest operating system. - * Applicable only for bootable images. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGuestOsFeature() - { - return $this->guest_os_feature; - } - - /** - * Optional. A list of features to enable on the guest operating system. - * Applicable only for bootable images. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGuestOsFeature($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\GuestOsFeature::class); - $this->guest_os_feature = $arr; - - return $this; - } - - /** - * Optional. Encrypts or decrypts a disk using a customer-supplied - * encryption key. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\CustomerEncryptionKey|null - */ - public function getDiskEncryptionKey() - { - return $this->disk_encryption_key; - } - - public function hasDiskEncryptionKey() - { - return isset($this->disk_encryption_key); - } - - public function clearDiskEncryptionKey() - { - unset($this->disk_encryption_key); - } - - /** - * Optional. Encrypts or decrypts a disk using a customer-supplied - * encryption key. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\CustomerEncryptionKey $var - * @return $this - */ - public function setDiskEncryptionKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\CustomerEncryptionKey::class); - $this->disk_encryption_key = $var; - - return $this; - } - - /** - * Optional. The size of the disk in GB. - * - * Generated from protobuf field optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getDiskSizeGb() - { - return isset($this->disk_size_gb) ? $this->disk_size_gb : 0; - } - - public function hasDiskSizeGb() - { - return isset($this->disk_size_gb); - } - - public function clearDiskSizeGb() - { - unset($this->disk_size_gb); - } - - /** - * Optional. The size of the disk in GB. - * - * Generated from protobuf field optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt64($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Optional. Output only. The state of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSavedState() - { - return isset($this->saved_state) ? $this->saved_state : 0; - } - - public function hasSavedState() - { - return isset($this->saved_state); - } - - public function clearSavedState() - { - unset($this->saved_state); - } - - /** - * Optional. Output only. The state of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSavedState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AttachedDisk\DiskSavedState::class); - $this->saved_state = $var; - - return $this; - } - - /** - * Optional. Output only. The URI of the disk type resource. For example: - * projects/project/zones/zone/diskTypes/pd-standard or pd-ssd - * - * Generated from protobuf field optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDiskType() - { - return isset($this->disk_type) ? $this->disk_type : ''; - } - - public function hasDiskType() - { - return isset($this->disk_type); - } - - public function clearDiskType() - { - unset($this->disk_type); - } - - /** - * Optional. Output only. The URI of the disk type resource. For example: - * projects/project/zones/zone/diskTypes/pd-standard or pd-ssd - * - * Generated from protobuf field optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Optional. Specifies the type of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return isset($this->type) ? $this->type : 0; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * Optional. Specifies the type of the disk. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\AttachedDisk\DiskType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskInterface.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskInterface.php deleted file mode 100644 index 3dc9f131bda4..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskInterface.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.backupdr.v1.AttachedDisk.DiskInterface - */ -class DiskInterface -{ - /** - * Default value, which is unused. - * - * Generated from protobuf enum DISK_INTERFACE_UNSPECIFIED = 0; - */ - const DISK_INTERFACE_UNSPECIFIED = 0; - /** - * SCSI Disk Interface. - * - * Generated from protobuf enum SCSI = 1; - */ - const SCSI = 1; - /** - * NVME Disk Interface. - * - * Generated from protobuf enum NVME = 2; - */ - const NVME = 2; - /** - * NVDIMM Disk Interface. - * - * Generated from protobuf enum NVDIMM = 3; - */ - const NVDIMM = 3; - /** - * ISCSI Disk Interface. - * - * Generated from protobuf enum ISCSI = 4; - */ - const ISCSI = 4; - - private static $valueToName = [ - self::DISK_INTERFACE_UNSPECIFIED => 'DISK_INTERFACE_UNSPECIFIED', - self::SCSI => 'SCSI', - self::NVME => 'NVME', - self::NVDIMM => 'NVDIMM', - self::ISCSI => 'ISCSI', - ]; - - 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(DiskInterface::class, \Google\Cloud\BackupDR\V1\AttachedDisk_DiskInterface::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskMode.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskMode.php deleted file mode 100644 index f11c19ef3425..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskMode.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.backupdr.v1.AttachedDisk.DiskMode - */ -class DiskMode -{ - /** - * Default value, which is unused. - * - * Generated from protobuf enum DISK_MODE_UNSPECIFIED = 0; - */ - const DISK_MODE_UNSPECIFIED = 0; - /** - * Attaches this disk in read-write mode. Only one - * virtual machine at a time can be attached to a disk in read-write mode. - * - * Generated from protobuf enum READ_WRITE = 1; - */ - const READ_WRITE = 1; - /** - * Attaches this disk in read-only mode. Multiple virtual machines can use - * a disk in read-only mode at a time. - * - * Generated from protobuf enum READ_ONLY = 2; - */ - const READ_ONLY = 2; - /** - * The disk is locked for administrative reasons. Nobody else - * can use the disk. This mode is used (for example) when taking - * a snapshot of a disk to prevent mounting the disk while it is - * being snapshotted. - * - * Generated from protobuf enum LOCKED = 3; - */ - const LOCKED = 3; - - private static $valueToName = [ - self::DISK_MODE_UNSPECIFIED => 'DISK_MODE_UNSPECIFIED', - self::READ_WRITE => 'READ_WRITE', - self::READ_ONLY => 'READ_ONLY', - self::LOCKED => 'LOCKED', - ]; - - 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(DiskMode::class, \Google\Cloud\BackupDR\V1\AttachedDisk_DiskMode::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskSavedState.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskSavedState.php deleted file mode 100644 index 2e994033207b..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskSavedState.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.backupdr.v1.AttachedDisk.DiskSavedState - */ -class DiskSavedState -{ - /** - * Default Disk state has not been preserved. - * - * Generated from protobuf enum DISK_SAVED_STATE_UNSPECIFIED = 0; - */ - const DISK_SAVED_STATE_UNSPECIFIED = 0; - /** - * Disk state has been preserved. - * - * Generated from protobuf enum PRESERVED = 1; - */ - const PRESERVED = 1; - - private static $valueToName = [ - self::DISK_SAVED_STATE_UNSPECIFIED => 'DISK_SAVED_STATE_UNSPECIFIED', - self::PRESERVED => 'PRESERVED', - ]; - - 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(DiskSavedState::class, \Google\Cloud\BackupDR\V1\AttachedDisk_DiskSavedState::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskType.php deleted file mode 100644 index 92697d619408..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/DiskType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.AttachedDisk.DiskType - */ -class DiskType -{ - /** - * Default value, which is unused. - * - * Generated from protobuf enum DISK_TYPE_UNSPECIFIED = 0; - */ - const DISK_TYPE_UNSPECIFIED = 0; - /** - * A scratch disk type. - * - * Generated from protobuf enum SCRATCH = 1; - */ - const SCRATCH = 1; - /** - * A persistent disk type. - * - * Generated from protobuf enum PERSISTENT = 2; - */ - const PERSISTENT = 2; - - private static $valueToName = [ - self::DISK_TYPE_UNSPECIFIED => 'DISK_TYPE_UNSPECIFIED', - self::SCRATCH => 'SCRATCH', - self::PERSISTENT => 'PERSISTENT', - ]; - - 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(DiskType::class, \Google\Cloud\BackupDR\V1\AttachedDisk_DiskType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/InitializeParams.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/InitializeParams.php deleted file mode 100644 index 38c3ceb174c2..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/AttachedDisk/InitializeParams.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.backupdr.v1.AttachedDisk.InitializeParams - */ -class InitializeParams extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the disk name. If not specified, the default is to - * use the name of the instance. - * - * Generated from protobuf field optional string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_name = null; - /** - * Optional. URL of the zone where the disk should be created. - * Required for each regional disk associated with the instance. - * - * Generated from protobuf field repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $replica_zones; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $disk_name - * Optional. Specifies the disk name. If not specified, the default is to - * use the name of the instance. - * @type array|\Google\Protobuf\Internal\RepeatedField $replica_zones - * Optional. URL of the zone where the disk should be created. - * Required for each regional disk associated with the instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the disk name. If not specified, the default is to - * use the name of the instance. - * - * Generated from protobuf field optional string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDiskName() - { - return isset($this->disk_name) ? $this->disk_name : ''; - } - - public function hasDiskName() - { - return isset($this->disk_name); - } - - public function clearDiskName() - { - unset($this->disk_name); - } - - /** - * Optional. Specifies the disk name. If not specified, the default is to - * use the name of the instance. - * - * Generated from protobuf field optional string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDiskName($var) - { - GPBUtil::checkString($var, True); - $this->disk_name = $var; - - return $this; - } - - /** - * Optional. URL of the zone where the disk should be created. - * Required for each regional disk associated with the instance. - * - * Generated from protobuf field repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReplicaZones() - { - return $this->replica_zones; - } - - /** - * Optional. URL of the zone where the disk should be created. - * Required for each regional disk associated with the instance. - * - * Generated from protobuf field repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReplicaZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->replica_zones = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InitializeParams::class, \Google\Cloud\BackupDR\V1\AttachedDisk_InitializeParams::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup.php deleted file mode 100644 index 5639d7923c1e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup.php +++ /dev/null @@ -1,728 +0,0 @@ -google.cloud.backupdr.v1.Backup - */ -class Backup extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. Name of the backup to create. It must have the - * format`"projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}"`. - * `{backup}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the datasource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The description of the Backup instance (2048 characters or - * less). - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = null; - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the instance was updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. The backup can not be deleted before this time. - * - * Generated from protobuf field optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enforced_retention_end_time = null; - /** - * Optional. When this backup is automatically expired. - * - * Generated from protobuf field optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $expire_time = null; - /** - * Output only. The point in time when this backup was captured from the - * source. - * - * Generated from protobuf field optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $consistency_time = null; - /** - * Optional. Server specified ETag to prevent updates from overwriting each - * other. - * - * Generated from protobuf field optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = null; - /** - * Output only. The Backup resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The list of BackupLocks taken by the service to prevent the - * deletion of the backup. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $service_locks; - /** - * Optional. The list of BackupLocks taken by the accessor Backup Appliance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $backup_appliance_locks; - /** - * Output only. Type of the backup, unspecified, scheduled or ondemand. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $backup_type = 0; - /** - * Output only. source resource size in bytes at the time of the backup. - * - * Generated from protobuf field int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resource_size_bytes = 0; - protected $backup_properties; - protected $plan_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. Name of the backup to create. It must have the - * format`"projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}"`. - * `{backup}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the datasource. - * @type string $description - * Output only. The description of the Backup instance (2048 characters or - * less). - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the instance was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the instance was updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined. - * @type \Google\Protobuf\Timestamp $enforced_retention_end_time - * Optional. The backup can not be deleted before this time. - * @type \Google\Protobuf\Timestamp $expire_time - * Optional. When this backup is automatically expired. - * @type \Google\Protobuf\Timestamp $consistency_time - * Output only. The point in time when this backup was captured from the - * source. - * @type string $etag - * Optional. Server specified ETag to prevent updates from overwriting each - * other. - * @type int $state - * Output only. The Backup resource instance state. - * @type array<\Google\Cloud\BackupDR\V1\BackupLock>|\Google\Protobuf\Internal\RepeatedField $service_locks - * Output only. The list of BackupLocks taken by the service to prevent the - * deletion of the backup. - * @type array<\Google\Cloud\BackupDR\V1\BackupLock>|\Google\Protobuf\Internal\RepeatedField $backup_appliance_locks - * Optional. The list of BackupLocks taken by the accessor Backup Appliance. - * @type \Google\Cloud\BackupDR\V1\ComputeInstanceBackupProperties $compute_instance_backup_properties - * Output only. Compute Engine specific backup properties. - * @type \Google\Cloud\BackupDR\V1\BackupApplianceBackupProperties $backup_appliance_backup_properties - * Output only. Backup Appliance specific backup properties. - * @type int $backup_type - * Output only. Type of the backup, unspecified, scheduled or ondemand. - * @type \Google\Cloud\BackupDR\V1\Backup\GCPBackupPlanInfo $gcp_backup_plan_info - * Output only. Configuration for a Google Cloud resource. - * @type int|string $resource_size_bytes - * Output only. source resource size in bytes at the time of the backup. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. Name of the backup to create. It must have the - * format`"projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}"`. - * `{backup}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the datasource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. Name of the backup to create. It must have the - * format`"projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}"`. - * `{backup}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the datasource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The description of the Backup instance (2048 characters or - * less). - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Output only. The description of the Backup instance (2048 characters or - * less). - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field optional .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. The time when the instance was created. - * - * Generated from protobuf field optional .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. The time when the instance was updated. - * - * Generated from protobuf field optional .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. The time when the instance was updated. - * - * Generated from protobuf field optional .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; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. The backup can not be deleted before this time. - * - * Generated from protobuf field optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEnforcedRetentionEndTime() - { - return $this->enforced_retention_end_time; - } - - public function hasEnforcedRetentionEndTime() - { - return isset($this->enforced_retention_end_time); - } - - public function clearEnforcedRetentionEndTime() - { - unset($this->enforced_retention_end_time); - } - - /** - * Optional. The backup can not be deleted before this time. - * - * Generated from protobuf field optional .google.protobuf.Timestamp enforced_retention_end_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEnforcedRetentionEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->enforced_retention_end_time = $var; - - return $this; - } - - /** - * Optional. When this backup is automatically expired. - * - * Generated from protobuf field optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. When this backup is automatically expired. - * - * Generated from protobuf field optional .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Output only. The point in time when this backup was captured from the - * source. - * - * Generated from protobuf field optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getConsistencyTime() - { - return $this->consistency_time; - } - - public function hasConsistencyTime() - { - return isset($this->consistency_time); - } - - public function clearConsistencyTime() - { - unset($this->consistency_time); - } - - /** - * Output only. The point in time when this backup was captured from the - * source. - * - * Generated from protobuf field optional .google.protobuf.Timestamp consistency_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setConsistencyTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->consistency_time = $var; - - return $this; - } - - /** - * Optional. Server specified ETag to prevent updates from overwriting each - * other. - * - * Generated from protobuf field optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return isset($this->etag) ? $this->etag : ''; - } - - public function hasEtag() - { - return isset($this->etag); - } - - public function clearEtag() - { - unset($this->etag); - } - - /** - * Optional. Server specified ETag to prevent updates from overwriting each - * other. - * - * Generated from protobuf field optional string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The Backup resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The Backup resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\Backup\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The list of BackupLocks taken by the service to prevent the - * deletion of the backup. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceLocks() - { - return $this->service_locks; - } - - /** - * Output only. The list of BackupLocks taken by the service to prevent the - * deletion of the backup. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupLock service_locks = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\BackupDR\V1\BackupLock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceLocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupLock::class); - $this->service_locks = $arr; - - return $this; - } - - /** - * Optional. The list of BackupLocks taken by the accessor Backup Appliance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackupApplianceLocks() - { - return $this->backup_appliance_locks; - } - - /** - * Optional. The list of BackupLocks taken by the accessor Backup Appliance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupLock backup_appliance_locks = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\BackupLock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackupApplianceLocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupLock::class); - $this->backup_appliance_locks = $arr; - - return $this; - } - - /** - * Output only. Compute Engine specific backup properties. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\ComputeInstanceBackupProperties|null - */ - public function getComputeInstanceBackupProperties() - { - return $this->readOneof(19); - } - - public function hasComputeInstanceBackupProperties() - { - return $this->hasOneof(19); - } - - /** - * Output only. Compute Engine specific backup properties. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceBackupProperties compute_instance_backup_properties = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\ComputeInstanceBackupProperties $var - * @return $this - */ - public function setComputeInstanceBackupProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ComputeInstanceBackupProperties::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Output only. Backup Appliance specific backup properties. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\BackupApplianceBackupProperties|null - */ - public function getBackupApplianceBackupProperties() - { - return $this->readOneof(21); - } - - public function hasBackupApplianceBackupProperties() - { - return $this->hasOneof(21); - } - - /** - * Output only. Backup Appliance specific backup properties. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupApplianceBackupProperties backup_appliance_backup_properties = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\BackupApplianceBackupProperties $var - * @return $this - */ - public function setBackupApplianceBackupProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupApplianceBackupProperties::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Output only. Type of the backup, unspecified, scheduled or ondemand. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getBackupType() - { - return $this->backup_type; - } - - /** - * Output only. Type of the backup, unspecified, scheduled or ondemand. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.BackupType backup_type = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setBackupType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\Backup\BackupType::class); - $this->backup_type = $var; - - return $this; - } - - /** - * Output only. Configuration for a Google Cloud resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\Backup\GCPBackupPlanInfo|null - */ - public function getGcpBackupPlanInfo() - { - return $this->readOneof(22); - } - - public function hasGcpBackupPlanInfo() - { - return $this->hasOneof(22); - } - - /** - * Output only. Configuration for a Google Cloud resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo gcp_backup_plan_info = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\Backup\GCPBackupPlanInfo $var - * @return $this - */ - public function setGcpBackupPlanInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Backup\GCPBackupPlanInfo::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * Output only. source resource size in bytes at the time of the backup. - * - * Generated from protobuf field int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getResourceSizeBytes() - { - return $this->resource_size_bytes; - } - - /** - * Output only. source resource size in bytes at the time of the backup. - * - * Generated from protobuf field int64 resource_size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setResourceSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->resource_size_bytes = $var; - - return $this; - } - - /** - * @return string - */ - public function getBackupProperties() - { - return $this->whichOneof("backup_properties"); - } - - /** - * @return string - */ - public function getPlanInfo() - { - return $this->whichOneof("plan_info"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/BackupType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/BackupType.php deleted file mode 100644 index 4d787b1357be..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/BackupType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.Backup.BackupType - */ -class BackupType -{ - /** - * Backup type is unspecified. - * - * Generated from protobuf enum BACKUP_TYPE_UNSPECIFIED = 0; - */ - const BACKUP_TYPE_UNSPECIFIED = 0; - /** - * Scheduled backup. - * - * Generated from protobuf enum SCHEDULED = 1; - */ - const SCHEDULED = 1; - /** - * On demand backup. - * - * Generated from protobuf enum ON_DEMAND = 2; - */ - const ON_DEMAND = 2; - - private static $valueToName = [ - self::BACKUP_TYPE_UNSPECIFIED => 'BACKUP_TYPE_UNSPECIFIED', - self::SCHEDULED => 'SCHEDULED', - self::ON_DEMAND => 'ON_DEMAND', - ]; - - 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(BackupType::class, \Google\Cloud\BackupDR\V1\Backup_BackupType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/GCPBackupPlanInfo.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/GCPBackupPlanInfo.php deleted file mode 100644 index 8598637c8c8e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/GCPBackupPlanInfo.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.backupdr.v1.Backup.GCPBackupPlanInfo - */ -class GCPBackupPlanInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of backup plan by which workload is protected at the time - * of the backup. - * Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * - * Generated from protobuf field string backup_plan = 1 [(.google.api.resource_reference) = { - */ - protected $backup_plan = ''; - /** - * The rule id of the backup plan which triggered this backup in case of - * scheduled backup or used for - * - * Generated from protobuf field string backup_plan_rule_id = 2; - */ - protected $backup_plan_rule_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $backup_plan - * Resource name of backup plan by which workload is protected at the time - * of the backup. - * Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * @type string $backup_plan_rule_id - * The rule id of the backup plan which triggered this backup in case of - * scheduled backup or used for - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of backup plan by which workload is protected at the time - * of the backup. - * Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * - * Generated from protobuf field string backup_plan = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getBackupPlan() - { - return $this->backup_plan; - } - - /** - * Resource name of backup plan by which workload is protected at the time - * of the backup. - * Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * - * Generated from protobuf field string backup_plan = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackupPlan($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan = $var; - - return $this; - } - - /** - * The rule id of the backup plan which triggered this backup in case of - * scheduled backup or used for - * - * Generated from protobuf field string backup_plan_rule_id = 2; - * @return string - */ - public function getBackupPlanRuleId() - { - return $this->backup_plan_rule_id; - } - - /** - * The rule id of the backup plan which triggered this backup in case of - * scheduled backup or used for - * - * Generated from protobuf field string backup_plan_rule_id = 2; - * @param string $var - * @return $this - */ - public function setBackupPlanRuleId($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan_rule_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GCPBackupPlanInfo::class, \Google\Cloud\BackupDR\V1\Backup_GCPBackupPlanInfo::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/State.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/State.php deleted file mode 100644 index 23b07ca7917c..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Backup/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.backupdr.v1.Backup.State - */ -class State -{ - /** - * State not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The backup has been created and is fully usable. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The backup is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The backup is experiencing an issue and might be unusable. - * - * Generated from protobuf enum ERROR = 4; - */ - const ERROR = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - 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(State::class, \Google\Cloud\BackupDR\V1\Backup_State::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceBackupConfig.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceBackupConfig.php deleted file mode 100644 index b5d4c27f9480..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceBackupConfig.php +++ /dev/null @@ -1,272 +0,0 @@ -google.cloud.backupdr.v1.BackupApplianceBackupConfig - */ -class BackupApplianceBackupConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the backup appliance. - * - * Generated from protobuf field string backup_appliance_name = 1; - */ - protected $backup_appliance_name = ''; - /** - * The ID of the backup appliance. - * - * Generated from protobuf field int64 backup_appliance_id = 2; - */ - protected $backup_appliance_id = 0; - /** - * The ID of the SLA of this application. - * - * Generated from protobuf field int64 sla_id = 3; - */ - protected $sla_id = 0; - /** - * The name of the application. - * - * Generated from protobuf field string application_name = 4; - */ - protected $application_name = ''; - /** - * The name of the host where the application is running. - * - * Generated from protobuf field string host_name = 5; - */ - protected $host_name = ''; - /** - * The name of the SLT associated with the application. - * - * Generated from protobuf field string slt_name = 6; - */ - protected $slt_name = ''; - /** - * The name of the SLP associated with the application. - * - * Generated from protobuf field string slp_name = 7; - */ - protected $slp_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $backup_appliance_name - * The name of the backup appliance. - * @type int|string $backup_appliance_id - * The ID of the backup appliance. - * @type int|string $sla_id - * The ID of the SLA of this application. - * @type string $application_name - * The name of the application. - * @type string $host_name - * The name of the host where the application is running. - * @type string $slt_name - * The name of the SLT associated with the application. - * @type string $slp_name - * The name of the SLP associated with the application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * The name of the backup appliance. - * - * Generated from protobuf field string backup_appliance_name = 1; - * @return string - */ - public function getBackupApplianceName() - { - return $this->backup_appliance_name; - } - - /** - * The name of the backup appliance. - * - * Generated from protobuf field string backup_appliance_name = 1; - * @param string $var - * @return $this - */ - public function setBackupApplianceName($var) - { - GPBUtil::checkString($var, True); - $this->backup_appliance_name = $var; - - return $this; - } - - /** - * The ID of the backup appliance. - * - * Generated from protobuf field int64 backup_appliance_id = 2; - * @return int|string - */ - public function getBackupApplianceId() - { - return $this->backup_appliance_id; - } - - /** - * The ID of the backup appliance. - * - * Generated from protobuf field int64 backup_appliance_id = 2; - * @param int|string $var - * @return $this - */ - public function setBackupApplianceId($var) - { - GPBUtil::checkInt64($var); - $this->backup_appliance_id = $var; - - return $this; - } - - /** - * The ID of the SLA of this application. - * - * Generated from protobuf field int64 sla_id = 3; - * @return int|string - */ - public function getSlaId() - { - return $this->sla_id; - } - - /** - * The ID of the SLA of this application. - * - * Generated from protobuf field int64 sla_id = 3; - * @param int|string $var - * @return $this - */ - public function setSlaId($var) - { - GPBUtil::checkInt64($var); - $this->sla_id = $var; - - return $this; - } - - /** - * The name of the application. - * - * Generated from protobuf field string application_name = 4; - * @return string - */ - public function getApplicationName() - { - return $this->application_name; - } - - /** - * The name of the application. - * - * Generated from protobuf field string application_name = 4; - * @param string $var - * @return $this - */ - public function setApplicationName($var) - { - GPBUtil::checkString($var, True); - $this->application_name = $var; - - return $this; - } - - /** - * The name of the host where the application is running. - * - * Generated from protobuf field string host_name = 5; - * @return string - */ - public function getHostName() - { - return $this->host_name; - } - - /** - * The name of the host where the application is running. - * - * Generated from protobuf field string host_name = 5; - * @param string $var - * @return $this - */ - public function setHostName($var) - { - GPBUtil::checkString($var, True); - $this->host_name = $var; - - return $this; - } - - /** - * The name of the SLT associated with the application. - * - * Generated from protobuf field string slt_name = 6; - * @return string - */ - public function getSltName() - { - return $this->slt_name; - } - - /** - * The name of the SLT associated with the application. - * - * Generated from protobuf field string slt_name = 6; - * @param string $var - * @return $this - */ - public function setSltName($var) - { - GPBUtil::checkString($var, True); - $this->slt_name = $var; - - return $this; - } - - /** - * The name of the SLP associated with the application. - * - * Generated from protobuf field string slp_name = 7; - * @return string - */ - public function getSlpName() - { - return $this->slp_name; - } - - /** - * The name of the SLP associated with the application. - * - * Generated from protobuf field string slp_name = 7; - * @param string $var - * @return $this - */ - public function setSlpName($var) - { - GPBUtil::checkString($var, True); - $this->slp_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceBackupProperties.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceBackupProperties.php deleted file mode 100644 index 62bf277eea5e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceBackupProperties.php +++ /dev/null @@ -1,218 +0,0 @@ -google.cloud.backupdr.v1.BackupApplianceBackupProperties - */ -class BackupApplianceBackupProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The numeric generation ID of the backup (monotonically - * increasing). - * - * Generated from protobuf field optional int32 generation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $generation_id = null; - /** - * Output only. The time when this backup object was finalized (if none, - * backup is not finalized). - * - * Generated from protobuf field optional .google.protobuf.Timestamp finalize_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $finalize_time = null; - /** - * Optional. The earliest timestamp of data available in this Backup. - * - * Generated from protobuf field optional .google.protobuf.Timestamp recovery_range_start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $recovery_range_start_time = null; - /** - * Optional. The latest timestamp of data available in this Backup. - * - * Generated from protobuf field optional .google.protobuf.Timestamp recovery_range_end_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $recovery_range_end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $generation_id - * Output only. The numeric generation ID of the backup (monotonically - * increasing). - * @type \Google\Protobuf\Timestamp $finalize_time - * Output only. The time when this backup object was finalized (if none, - * backup is not finalized). - * @type \Google\Protobuf\Timestamp $recovery_range_start_time - * Optional. The earliest timestamp of data available in this Backup. - * @type \Google\Protobuf\Timestamp $recovery_range_end_time - * Optional. The latest timestamp of data available in this Backup. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultBa::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The numeric generation ID of the backup (monotonically - * increasing). - * - * Generated from protobuf field optional int32 generation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getGenerationId() - { - return isset($this->generation_id) ? $this->generation_id : 0; - } - - public function hasGenerationId() - { - return isset($this->generation_id); - } - - public function clearGenerationId() - { - unset($this->generation_id); - } - - /** - * Output only. The numeric generation ID of the backup (monotonically - * increasing). - * - * Generated from protobuf field optional int32 generation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setGenerationId($var) - { - GPBUtil::checkInt32($var); - $this->generation_id = $var; - - return $this; - } - - /** - * Output only. The time when this backup object was finalized (if none, - * backup is not finalized). - * - * Generated from protobuf field optional .google.protobuf.Timestamp finalize_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinalizeTime() - { - return $this->finalize_time; - } - - public function hasFinalizeTime() - { - return isset($this->finalize_time); - } - - public function clearFinalizeTime() - { - unset($this->finalize_time); - } - - /** - * Output only. The time when this backup object was finalized (if none, - * backup is not finalized). - * - * Generated from protobuf field optional .google.protobuf.Timestamp finalize_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinalizeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finalize_time = $var; - - return $this; - } - - /** - * Optional. The earliest timestamp of data available in this Backup. - * - * Generated from protobuf field optional .google.protobuf.Timestamp recovery_range_start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRecoveryRangeStartTime() - { - return $this->recovery_range_start_time; - } - - public function hasRecoveryRangeStartTime() - { - return isset($this->recovery_range_start_time); - } - - public function clearRecoveryRangeStartTime() - { - unset($this->recovery_range_start_time); - } - - /** - * Optional. The earliest timestamp of data available in this Backup. - * - * Generated from protobuf field optional .google.protobuf.Timestamp recovery_range_start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRecoveryRangeStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->recovery_range_start_time = $var; - - return $this; - } - - /** - * Optional. The latest timestamp of data available in this Backup. - * - * Generated from protobuf field optional .google.protobuf.Timestamp recovery_range_end_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRecoveryRangeEndTime() - { - return $this->recovery_range_end_time; - } - - public function hasRecoveryRangeEndTime() - { - return isset($this->recovery_range_end_time); - } - - public function clearRecoveryRangeEndTime() - { - unset($this->recovery_range_end_time); - } - - /** - * Optional. The latest timestamp of data available in this Backup. - * - * Generated from protobuf field optional .google.protobuf.Timestamp recovery_range_end_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRecoveryRangeEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->recovery_range_end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceLockInfo.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceLockInfo.php deleted file mode 100644 index f024d90f7bd8..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupApplianceLockInfo.php +++ /dev/null @@ -1,252 +0,0 @@ -google.cloud.backupdr.v1.BackupApplianceLockInfo - */ -class BackupApplianceLockInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the backup/recovery appliance that created this lock. - * - * Generated from protobuf field int64 backup_appliance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_appliance_id = 0; - /** - * Required. The name of the backup/recovery appliance that created this lock. - * - * Generated from protobuf field string backup_appliance_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_appliance_name = ''; - /** - * Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The - * value of this string is only meaningful to the client and it is not - * interpreted by the BackupVault service. - * - * Generated from protobuf field string lock_reason = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lock_reason = ''; - protected $lock_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $backup_appliance_id - * Required. The ID of the backup/recovery appliance that created this lock. - * @type string $backup_appliance_name - * Required. The name of the backup/recovery appliance that created this lock. - * @type string $lock_reason - * Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The - * value of this string is only meaningful to the client and it is not - * interpreted by the BackupVault service. - * @type string $job_name - * The job name on the backup/recovery appliance that created this lock. - * @type string $backup_image - * The image name that depends on this Backup. - * @type int|string $sla_id - * The SLA on the backup/recovery appliance that owns the lock. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the backup/recovery appliance that created this lock. - * - * Generated from protobuf field int64 backup_appliance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getBackupApplianceId() - { - return $this->backup_appliance_id; - } - - /** - * Required. The ID of the backup/recovery appliance that created this lock. - * - * Generated from protobuf field int64 backup_appliance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setBackupApplianceId($var) - { - GPBUtil::checkInt64($var); - $this->backup_appliance_id = $var; - - return $this; - } - - /** - * Required. The name of the backup/recovery appliance that created this lock. - * - * Generated from protobuf field string backup_appliance_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupApplianceName() - { - return $this->backup_appliance_name; - } - - /** - * Required. The name of the backup/recovery appliance that created this lock. - * - * Generated from protobuf field string backup_appliance_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupApplianceName($var) - { - GPBUtil::checkString($var, True); - $this->backup_appliance_name = $var; - - return $this; - } - - /** - * Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The - * value of this string is only meaningful to the client and it is not - * interpreted by the BackupVault service. - * - * Generated from protobuf field string lock_reason = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLockReason() - { - return $this->lock_reason; - } - - /** - * Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The - * value of this string is only meaningful to the client and it is not - * interpreted by the BackupVault service. - * - * Generated from protobuf field string lock_reason = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLockReason($var) - { - GPBUtil::checkString($var, True); - $this->lock_reason = $var; - - return $this; - } - - /** - * The job name on the backup/recovery appliance that created this lock. - * - * Generated from protobuf field string job_name = 6; - * @return string - */ - public function getJobName() - { - return $this->readOneof(6); - } - - public function hasJobName() - { - return $this->hasOneof(6); - } - - /** - * The job name on the backup/recovery appliance that created this lock. - * - * Generated from protobuf field string job_name = 6; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The image name that depends on this Backup. - * - * Generated from protobuf field string backup_image = 7; - * @return string - */ - public function getBackupImage() - { - return $this->readOneof(7); - } - - public function hasBackupImage() - { - return $this->hasOneof(7); - } - - /** - * The image name that depends on this Backup. - * - * Generated from protobuf field string backup_image = 7; - * @param string $var - * @return $this - */ - public function setBackupImage($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The SLA on the backup/recovery appliance that owns the lock. - * - * Generated from protobuf field int64 sla_id = 8; - * @return int|string - */ - public function getSlaId() - { - return $this->readOneof(8); - } - - public function hasSlaId() - { - return $this->hasOneof(8); - } - - /** - * The SLA on the backup/recovery appliance that owns the lock. - * - * Generated from protobuf field int64 sla_id = 8; - * @param int|string $var - * @return $this - */ - public function setSlaId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getLockSource() - { - return $this->whichOneof("lock_source"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigInfo.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigInfo.php deleted file mode 100644 index 910ef56ebd1e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigInfo.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.backupdr.v1.BackupConfigInfo - */ -class BackupConfigInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The status of the last backup to this BackupVault - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigInfo.LastBackupState last_backup_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_backup_state = 0; - /** - * Output only. If the last backup were successful, this field has the - * consistency date. - * - * Generated from protobuf field .google.protobuf.Timestamp last_successful_backup_consistency_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_successful_backup_consistency_time = null; - /** - * Output only. If the last backup failed, this field has the error message. - * - * Generated from protobuf field .google.rpc.Status last_backup_error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_backup_error = null; - protected $backup_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $last_backup_state - * Output only. The status of the last backup to this BackupVault - * @type \Google\Protobuf\Timestamp $last_successful_backup_consistency_time - * Output only. If the last backup were successful, this field has the - * consistency date. - * @type \Google\Rpc\Status $last_backup_error - * Output only. If the last backup failed, this field has the error message. - * @type \Google\Cloud\BackupDR\V1\GcpBackupConfig $gcp_backup_config - * Configuration for a Google Cloud resource. - * @type \Google\Cloud\BackupDR\V1\BackupApplianceBackupConfig $backup_appliance_backup_config - * Configuration for an application backed up by a Backup Appliance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The status of the last backup to this BackupVault - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigInfo.LastBackupState last_backup_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLastBackupState() - { - return $this->last_backup_state; - } - - /** - * Output only. The status of the last backup to this BackupVault - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigInfo.LastBackupState last_backup_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLastBackupState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupConfigInfo\LastBackupState::class); - $this->last_backup_state = $var; - - return $this; - } - - /** - * Output only. If the last backup were successful, this field has the - * consistency date. - * - * Generated from protobuf field .google.protobuf.Timestamp last_successful_backup_consistency_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSuccessfulBackupConsistencyTime() - { - return $this->last_successful_backup_consistency_time; - } - - public function hasLastSuccessfulBackupConsistencyTime() - { - return isset($this->last_successful_backup_consistency_time); - } - - public function clearLastSuccessfulBackupConsistencyTime() - { - unset($this->last_successful_backup_consistency_time); - } - - /** - * Output only. If the last backup were successful, this field has the - * consistency date. - * - * Generated from protobuf field .google.protobuf.Timestamp last_successful_backup_consistency_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSuccessfulBackupConsistencyTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_successful_backup_consistency_time = $var; - - return $this; - } - - /** - * Output only. If the last backup failed, this field has the error message. - * - * Generated from protobuf field .google.rpc.Status last_backup_error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getLastBackupError() - { - return $this->last_backup_error; - } - - public function hasLastBackupError() - { - return isset($this->last_backup_error); - } - - public function clearLastBackupError() - { - unset($this->last_backup_error); - } - - /** - * Output only. If the last backup failed, this field has the error message. - * - * Generated from protobuf field .google.rpc.Status last_backup_error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setLastBackupError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->last_backup_error = $var; - - return $this; - } - - /** - * Configuration for a Google Cloud resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.GcpBackupConfig gcp_backup_config = 4; - * @return \Google\Cloud\BackupDR\V1\GcpBackupConfig|null - */ - public function getGcpBackupConfig() - { - return $this->readOneof(4); - } - - public function hasGcpBackupConfig() - { - return $this->hasOneof(4); - } - - /** - * Configuration for a Google Cloud resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.GcpBackupConfig gcp_backup_config = 4; - * @param \Google\Cloud\BackupDR\V1\GcpBackupConfig $var - * @return $this - */ - public function setGcpBackupConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\GcpBackupConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Configuration for an application backed up by a Backup Appliance. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupApplianceBackupConfig backup_appliance_backup_config = 5; - * @return \Google\Cloud\BackupDR\V1\BackupApplianceBackupConfig|null - */ - public function getBackupApplianceBackupConfig() - { - return $this->readOneof(5); - } - - public function hasBackupApplianceBackupConfig() - { - return $this->hasOneof(5); - } - - /** - * Configuration for an application backed up by a Backup Appliance. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupApplianceBackupConfig backup_appliance_backup_config = 5; - * @param \Google\Cloud\BackupDR\V1\BackupApplianceBackupConfig $var - * @return $this - */ - public function setBackupApplianceBackupConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupApplianceBackupConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getBackupConfig() - { - return $this->whichOneof("backup_config"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigInfo/LastBackupState.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigInfo/LastBackupState.php deleted file mode 100644 index 0b4a9fb6b92a..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigInfo/LastBackupState.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.backupdr.v1.BackupConfigInfo.LastBackupState - */ -class LastBackupState -{ - /** - * Status not set. - * - * Generated from protobuf enum LAST_BACKUP_STATE_UNSPECIFIED = 0; - */ - const LAST_BACKUP_STATE_UNSPECIFIED = 0; - /** - * The first backup has not yet completed - * - * Generated from protobuf enum FIRST_BACKUP_PENDING = 1; - */ - const FIRST_BACKUP_PENDING = 1; - /** - * The most recent backup was successful - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The most recent backup failed - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The most recent backup could not be run/failed because of the lack of - * permissions - * - * Generated from protobuf enum PERMISSION_DENIED = 4; - */ - const PERMISSION_DENIED = 4; - - private static $valueToName = [ - self::LAST_BACKUP_STATE_UNSPECIFIED => 'LAST_BACKUP_STATE_UNSPECIFIED', - self::FIRST_BACKUP_PENDING => 'FIRST_BACKUP_PENDING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - ]; - - 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(LastBackupState::class, \Google\Cloud\BackupDR\V1\BackupConfigInfo_LastBackupState::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigState.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigState.php deleted file mode 100644 index 8c760774704c..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupConfigState.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.backupdr.v1.BackupConfigState - */ -class BackupConfigState -{ - /** - * The possible states of backup configuration. - * Status not set. - * - * Generated from protobuf enum BACKUP_CONFIG_STATE_UNSPECIFIED = 0; - */ - const BACKUP_CONFIG_STATE_UNSPECIFIED = 0; - /** - * The data source is actively protected (i.e. there is a - * BackupPlanAssociation or Appliance SLA pointing to it) - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The data source is no longer protected (but may have backups under it) - * - * Generated from protobuf enum PASSIVE = 2; - */ - const PASSIVE = 2; - - private static $valueToName = [ - self::BACKUP_CONFIG_STATE_UNSPECIFIED => 'BACKUP_CONFIG_STATE_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::PASSIVE => 'PASSIVE', - ]; - - 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupLock.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupLock.php deleted file mode 100644 index 16c344cda822..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupLock.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.backupdr.v1.BackupLock - */ -class BackupLock extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The time after which this lock is not considered valid and will - * no longer protect the Backup from deletion. - * - * Generated from protobuf field .google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lock_until_time = null; - protected $ClientLockInfo; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $lock_until_time - * Required. The time after which this lock is not considered valid and will - * no longer protect the Backup from deletion. - * @type \Google\Cloud\BackupDR\V1\BackupApplianceLockInfo $backup_appliance_lock_info - * If the client is a backup and recovery appliance, this - * contains metadata about why the lock exists. - * @type \Google\Cloud\BackupDR\V1\ServiceLockInfo $service_lock_info - * Output only. Contains metadata about the lock exist for Google Cloud - * native backups. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. The time after which this lock is not considered valid and will - * no longer protect the Backup from deletion. - * - * Generated from protobuf field .google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLockUntilTime() - { - return $this->lock_until_time; - } - - public function hasLockUntilTime() - { - return isset($this->lock_until_time); - } - - public function clearLockUntilTime() - { - unset($this->lock_until_time); - } - - /** - * Required. The time after which this lock is not considered valid and will - * no longer protect the Backup from deletion. - * - * Generated from protobuf field .google.protobuf.Timestamp lock_until_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLockUntilTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->lock_until_time = $var; - - return $this; - } - - /** - * If the client is a backup and recovery appliance, this - * contains metadata about why the lock exists. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3; - * @return \Google\Cloud\BackupDR\V1\BackupApplianceLockInfo|null - */ - public function getBackupApplianceLockInfo() - { - return $this->readOneof(3); - } - - public function hasBackupApplianceLockInfo() - { - return $this->hasOneof(3); - } - - /** - * If the client is a backup and recovery appliance, this - * contains metadata about why the lock exists. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupApplianceLockInfo backup_appliance_lock_info = 3; - * @param \Google\Cloud\BackupDR\V1\BackupApplianceLockInfo $var - * @return $this - */ - public function setBackupApplianceLockInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupApplianceLockInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. Contains metadata about the lock exist for Google Cloud - * native backups. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\ServiceLockInfo|null - */ - public function getServiceLockInfo() - { - return $this->readOneof(4); - } - - public function hasServiceLockInfo() - { - return $this->hasOneof(4); - } - - /** - * Output only. Contains metadata about the lock exist for Google Cloud - * native backups. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ServiceLockInfo service_lock_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\ServiceLockInfo $var - * @return $this - */ - public function setServiceLockInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ServiceLockInfo::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getClientLockInfo() - { - return $this->whichOneof("ClientLockInfo"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlan.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlan.php deleted file mode 100644 index 5f4feca856b7..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlan.php +++ /dev/null @@ -1,490 +0,0 @@ -google.cloud.backupdr.v1.BackupPlan - */ -class BackupPlan extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The resource name of the `BackupPlan`. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The description of the `BackupPlan` resource. - * The description allows for additional details about `BackupPlan` and its - * use cases to be provided. An example description is the following: "This - * is a backup plan that performs a daily backup at 6pm and retains data for 3 - * months". The description must be at most 2048 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. This collection of key/value pairs allows for custom labels to be - * supplied by the user. Example, {"tag": "Weekly"}. - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. When the `BackupPlan` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. When the `BackupPlan` was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. The backup rules for this `BackupPlan`. There must be at least - * one `BackupRule` message. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupRule backup_rules = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - private $backup_rules; - /** - * Output only. The `State` for the `BackupPlan`. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlan.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Required. The resource type to which the `BackupPlan` will be applied. - * Examples include, "compute.googleapis.com/Instance" and - * "storage.googleapis.com/Bucket". - * - * Generated from protobuf field string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_type = ''; - /** - * Optional. `etag` is returned from the service in the response. As a user of - * the service, you may provide an etag value in this field to prevent stale - * resources. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Required. Resource name of backup vault which will be used as storage - * location for backups. Format: - * projects/{project}/locations/{location}/backupVaults/{backupvault} - * - * Generated from protobuf field string backup_vault = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $backup_vault = ''; - /** - * Output only. The Google Cloud Platform Service Account to be used by the - * BackupVault for taking backups. Specify the email address of the Backup - * Vault Service Account. - * - * Generated from protobuf field string backup_vault_service_account = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $backup_vault_service_account = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The resource name of the `BackupPlan`. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * @type string $description - * Optional. The description of the `BackupPlan` resource. - * The description allows for additional details about `BackupPlan` and its - * use cases to be provided. An example description is the following: "This - * is a backup plan that performs a daily backup at 6pm and retains data for 3 - * months". The description must be at most 2048 characters. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. This collection of key/value pairs allows for custom labels to be - * supplied by the user. Example, {"tag": "Weekly"}. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. When the `BackupPlan` was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. When the `BackupPlan` was last updated. - * @type array<\Google\Cloud\BackupDR\V1\BackupRule>|\Google\Protobuf\Internal\RepeatedField $backup_rules - * Required. The backup rules for this `BackupPlan`. There must be at least - * one `BackupRule` message. - * @type int $state - * Output only. The `State` for the `BackupPlan`. - * @type string $resource_type - * Required. The resource type to which the `BackupPlan` will be applied. - * Examples include, "compute.googleapis.com/Instance" and - * "storage.googleapis.com/Bucket". - * @type string $etag - * Optional. `etag` is returned from the service in the response. As a user of - * the service, you may provide an etag value in this field to prevent stale - * resources. - * @type string $backup_vault - * Required. Resource name of backup vault which will be used as storage - * location for backups. Format: - * projects/{project}/locations/{location}/backupVaults/{backupvault} - * @type string $backup_vault_service_account - * Output only. The Google Cloud Platform Service Account to be used by the - * BackupVault for taking backups. Specify the email address of the Backup - * Vault Service Account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The resource name of the `BackupPlan`. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The resource name of the `BackupPlan`. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The description of the `BackupPlan` resource. - * The description allows for additional details about `BackupPlan` and its - * use cases to be provided. An example description is the following: "This - * is a backup plan that performs a daily backup at 6pm and retains data for 3 - * months". The description must be at most 2048 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the `BackupPlan` resource. - * The description allows for additional details about `BackupPlan` and its - * use cases to be provided. An example description is the following: "This - * is a backup plan that performs a daily backup at 6pm and retains data for 3 - * months". The description must be at most 2048 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. This collection of key/value pairs allows for custom labels to be - * supplied by the user. Example, {"tag": "Weekly"}. - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. This collection of key/value pairs allows for custom labels to be - * supplied by the user. Example, {"tag": "Weekly"}. - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. When the `BackupPlan` was 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. When the `BackupPlan` was 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. When the `BackupPlan` was 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. When the `BackupPlan` was 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; - } - - /** - * Required. The backup rules for this `BackupPlan`. There must be at least - * one `BackupRule` message. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupRule backup_rules = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackupRules() - { - return $this->backup_rules; - } - - /** - * Required. The backup rules for this `BackupPlan`. There must be at least - * one `BackupRule` message. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupRule backup_rules = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\BackupDR\V1\BackupRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackupRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupRule::class); - $this->backup_rules = $arr; - - return $this; - } - - /** - * Output only. The `State` for the `BackupPlan`. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlan.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The `State` for the `BackupPlan`. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlan.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupPlan\State::class); - $this->state = $var; - - return $this; - } - - /** - * Required. The resource type to which the `BackupPlan` will be applied. - * Examples include, "compute.googleapis.com/Instance" and - * "storage.googleapis.com/Bucket". - * - * Generated from protobuf field string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Required. The resource type to which the `BackupPlan` will be applied. - * Examples include, "compute.googleapis.com/Instance" and - * "storage.googleapis.com/Bucket". - * - * Generated from protobuf field string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Optional. `etag` is returned from the service in the response. As a user of - * the service, you may provide an etag value in this field to prevent stale - * resources. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. `etag` is returned from the service in the response. As a user of - * the service, you may provide an etag value in this field to prevent stale - * resources. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Required. Resource name of backup vault which will be used as storage - * location for backups. Format: - * projects/{project}/locations/{location}/backupVaults/{backupvault} - * - * Generated from protobuf field string backup_vault = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getBackupVault() - { - return $this->backup_vault; - } - - /** - * Required. Resource name of backup vault which will be used as storage - * location for backups. Format: - * projects/{project}/locations/{location}/backupVaults/{backupvault} - * - * Generated from protobuf field string backup_vault = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackupVault($var) - { - GPBUtil::checkString($var, True); - $this->backup_vault = $var; - - return $this; - } - - /** - * Output only. The Google Cloud Platform Service Account to be used by the - * BackupVault for taking backups. Specify the email address of the Backup - * Vault Service Account. - * - * Generated from protobuf field string backup_vault_service_account = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getBackupVaultServiceAccount() - { - return $this->backup_vault_service_account; - } - - /** - * Output only. The Google Cloud Platform Service Account to be used by the - * BackupVault for taking backups. Specify the email address of the Backup - * Vault Service Account. - * - * Generated from protobuf field string backup_vault_service_account = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setBackupVaultServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->backup_vault_service_account = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlan/State.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlan/State.php deleted file mode 100644 index 60dada607170..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlan/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.backupdr.v1.BackupPlan.State - */ -class State -{ - /** - * State not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The resource is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The resource has been created and is fully usable. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The resource is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The resource has been created but is not usable. - * - * Generated from protobuf enum INACTIVE = 4; - */ - const INACTIVE = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - self::INACTIVE => 'INACTIVE', - ]; - - 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(State::class, \Google\Cloud\BackupDR\V1\BackupPlan_State::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlanAssociation.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlanAssociation.php deleted file mode 100644 index 2a5804c13ae5..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlanAssociation.php +++ /dev/null @@ -1,396 +0,0 @@ -google.cloud.backupdr.v1.BackupPlanAssociation - */ -class BackupPlanAssociation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The resource name of BackupPlanAssociation in - * below format Format : - * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Optional. Resource type of workload on which backupplan is applied - * - * Generated from protobuf field string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_type = ''; - /** - * Required. Immutable. Resource name of workload on which backupplan is - * applied - * - * Generated from protobuf field string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $resource = ''; - /** - * Required. Resource name of backup plan which needs to be applied on - * workload. Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * - * Generated from protobuf field string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $backup_plan = ''; - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the instance was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The BackupPlanAssociation resource state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The config info related to backup rules. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $rules_config_info; - /** - * Output only. Output Only. - * Resource name of data source which will be used as storage location for - * backups taken. - * Format : - * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource} - * - * Generated from protobuf field string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The resource name of BackupPlanAssociation in - * below format Format : - * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} - * @type string $resource_type - * Optional. Resource type of workload on which backupplan is applied - * @type string $resource - * Required. Immutable. Resource name of workload on which backupplan is - * applied - * @type string $backup_plan - * Required. Resource name of backup plan which needs to be applied on - * workload. Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the instance was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the instance was updated. - * @type int $state - * Output only. The BackupPlanAssociation resource state. - * @type array<\Google\Cloud\BackupDR\V1\RuleConfigInfo>|\Google\Protobuf\Internal\RepeatedField $rules_config_info - * Output only. The config info related to backup rules. - * @type string $data_source - * Output only. Output Only. - * Resource name of data source which will be used as storage location for - * backups taken. - * Format : - * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The resource name of BackupPlanAssociation in - * below format Format : - * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The resource name of BackupPlanAssociation in - * below format Format : - * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Resource type of workload on which backupplan is applied - * - * Generated from protobuf field string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. Resource type of workload on which backupplan is applied - * - * Generated from protobuf field string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Required. Immutable. Resource name of workload on which backupplan is - * applied - * - * Generated from protobuf field string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Required. Immutable. Resource name of workload on which backupplan is - * applied - * - * Generated from protobuf field string resource = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Required. Resource name of backup plan which needs to be applied on - * workload. Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * - * Generated from protobuf field string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getBackupPlan() - { - return $this->backup_plan; - } - - /** - * Required. Resource name of backup plan which needs to be applied on - * workload. Format: - * projects/{project}/locations/{location}/backupPlans/{backupPlanId} - * - * Generated from protobuf field string backup_plan = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackupPlan($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan = $var; - - return $this; - } - - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. The time when the instance was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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. The time when the instance was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. The time when the instance was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. The BackupPlanAssociation resource state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The BackupPlanAssociation resource state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlanAssociation.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupPlanAssociation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The config info related to backup rules. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRulesConfigInfo() - { - return $this->rules_config_info; - } - - /** - * Output only. The config info related to backup rules. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.RuleConfigInfo rules_config_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\BackupDR\V1\RuleConfigInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRulesConfigInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\RuleConfigInfo::class); - $this->rules_config_info = $arr; - - return $this; - } - - /** - * Output only. Output Only. - * Resource name of data source which will be used as storage location for - * backups taken. - * Format : - * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource} - * - * Generated from protobuf field string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Output only. Output Only. - * Resource name of data source which will be used as storage location for - * backups taken. - * Format : - * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource} - * - * Generated from protobuf field string data_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlanAssociation/State.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlanAssociation/State.php deleted file mode 100644 index 3fd5da4711b5..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupPlanAssociation/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.backupdr.v1.BackupPlanAssociation.State - */ -class State -{ - /** - * State not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The resource is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The resource has been created and is fully usable. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The resource is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The resource has been created but is not usable. - * - * Generated from protobuf enum INACTIVE = 4; - */ - const INACTIVE = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - self::INACTIVE => 'INACTIVE', - ]; - - 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(State::class, \Google\Cloud\BackupDR\V1\BackupPlanAssociation_State::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupRule.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupRule.php deleted file mode 100644 index a66eb5362db0..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupRule.php +++ /dev/null @@ -1,166 +0,0 @@ -google.cloud.backupdr.v1.BackupRule - */ -class BackupRule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is - * unique per `BackupPlan`.The `rule_id` must start with a lowercase letter - * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, - * /[a-z][a-z0-9-]{,62}/. - * - * Generated from protobuf field string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $rule_id = ''; - /** - * Required. Configures the duration for which backup data will be kept. It is - * defined in “days”. The value should be greater than or equal to minimum - * enforced retention of the backup vault. - * - * Generated from protobuf field int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_retention_days = 0; - protected $backup_schedule_oneof; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rule_id - * Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is - * unique per `BackupPlan`.The `rule_id` must start with a lowercase letter - * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, - * /[a-z][a-z0-9-]{,62}/. - * @type int $backup_retention_days - * Required. Configures the duration for which backup data will be kept. It is - * defined in “days”. The value should be greater than or equal to minimum - * enforced retention of the backup vault. - * @type \Google\Cloud\BackupDR\V1\StandardSchedule $standard_schedule - * Required. Defines a schedule that runs within the confines of a defined - * window of time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is - * unique per `BackupPlan`.The `rule_id` must start with a lowercase letter - * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, - * /[a-z][a-z0-9-]{,62}/. - * - * Generated from protobuf field string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getRuleId() - { - return $this->rule_id; - } - - /** - * Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is - * unique per `BackupPlan`.The `rule_id` must start with a lowercase letter - * followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, - * /[a-z][a-z0-9-]{,62}/. - * - * Generated from protobuf field string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setRuleId($var) - { - GPBUtil::checkString($var, True); - $this->rule_id = $var; - - return $this; - } - - /** - * Required. Configures the duration for which backup data will be kept. It is - * defined in “days”. The value should be greater than or equal to minimum - * enforced retention of the backup vault. - * - * Generated from protobuf field int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getBackupRetentionDays() - { - return $this->backup_retention_days; - } - - /** - * Required. Configures the duration for which backup data will be kept. It is - * defined in “days”. The value should be greater than or equal to minimum - * enforced retention of the backup vault. - * - * Generated from protobuf field int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setBackupRetentionDays($var) - { - GPBUtil::checkInt32($var); - $this->backup_retention_days = $var; - - return $this; - } - - /** - * Required. Defines a schedule that runs within the confines of a defined - * window of time. - * - * Generated from protobuf field .google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\StandardSchedule|null - */ - public function getStandardSchedule() - { - return $this->readOneof(5); - } - - public function hasStandardSchedule() - { - return $this->hasOneof(5); - } - - /** - * Required. Defines a schedule that runs within the confines of a defined - * window of time. - * - * Generated from protobuf field .google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\StandardSchedule $var - * @return $this - */ - public function setStandardSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\StandardSchedule::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getBackupScheduleOneof() - { - return $this->whichOneof("backup_schedule_oneof"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault.php deleted file mode 100644 index 03d965e14bae..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault.php +++ /dev/null @@ -1,715 +0,0 @@ -google.cloud.backupdr.v1.BackupVault - */ -class BackupVault extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. Name of the backup vault to create. It must have - * the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`. - * `{backupvault}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the project and location. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The description of the BackupVault instance (2048 characters or - * less). - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the instance was updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. The default and minimum enforced retention for each backup within - * the backup vault. The enforced retention for each backup can be extended. - * - * Generated from protobuf field optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_minimum_enforced_retention_duration = null; - /** - * Output only. Set to true when there are no backups nested under this - * resource. - * - * Generated from protobuf field optional bool deletable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deletable = null; - /** - * Optional. Server specified ETag for the backup vault resource to - * prevent simultaneous updates from overwiting each other. - * - * Generated from protobuf field optional string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = null; - /** - * Output only. The BackupVault resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. Time after which the BackupVault resource is locked. - * - * Generated from protobuf field optional .google.protobuf.Timestamp effective_time = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $effective_time = null; - /** - * Output only. The number of backups in this backup vault. - * - * Generated from protobuf field int64 backup_count = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $backup_count = 0; - /** - * Output only. Service account used by the BackupVault Service for this - * BackupVault. The user should grant this account permissions in their - * workload project to enable the service to run backups and restores there. - * - * Generated from protobuf field string service_account = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_account = ''; - /** - * Output only. Total size of the storage used by all backup resources. - * - * Generated from protobuf field int64 total_stored_bytes = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_stored_bytes = 0; - /** - * Output only. Output only - * Immutable after resource creation until resource deletion. - * - * Generated from protobuf field string uid = 21 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Optional. User annotations. See https://google.aip.dev/128#annotations - * Stores small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Note: This field is added for future use case and will not be - * supported in the current release. - * Optional. - * Access restriction for the backup vault. - * Default value is WITHIN_ORGANIZATION if not provided during creation. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault.AccessRestriction access_restriction = 24 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $access_restriction = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. Name of the backup vault to create. It must have - * the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`. - * `{backupvault}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the project and location. - * @type string $description - * Optional. The description of the BackupVault instance (2048 characters or - * less). - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the instance was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the instance was updated. - * @type \Google\Protobuf\Duration $backup_minimum_enforced_retention_duration - * Required. The default and minimum enforced retention for each backup within - * the backup vault. The enforced retention for each backup can be extended. - * @type bool $deletable - * Output only. Set to true when there are no backups nested under this - * resource. - * @type string $etag - * Optional. Server specified ETag for the backup vault resource to - * prevent simultaneous updates from overwiting each other. - * @type int $state - * Output only. The BackupVault resource instance state. - * @type \Google\Protobuf\Timestamp $effective_time - * Optional. Time after which the BackupVault resource is locked. - * @type int|string $backup_count - * Output only. The number of backups in this backup vault. - * @type string $service_account - * Output only. Service account used by the BackupVault Service for this - * BackupVault. The user should grant this account permissions in their - * workload project to enable the service to run backups and restores there. - * @type int|string $total_stored_bytes - * Output only. Total size of the storage used by all backup resources. - * @type string $uid - * Output only. Output only - * Immutable after resource creation until resource deletion. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. User annotations. See https://google.aip.dev/128#annotations - * Stores small amounts of arbitrary data. - * @type int $access_restriction - * Optional. Note: This field is added for future use case and will not be - * supported in the current release. - * Optional. - * Access restriction for the backup vault. - * Default value is WITHIN_ORGANIZATION if not provided during creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. Name of the backup vault to create. It must have - * the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`. - * `{backupvault}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the project and location. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. Name of the backup vault to create. It must have - * the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`. - * `{backupvault}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the project and location. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The description of the BackupVault instance (2048 characters or - * less). - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. The description of the BackupVault instance (2048 characters or - * less). - * - * Generated from protobuf field optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field optional .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. The time when the instance was created. - * - * Generated from protobuf field optional .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. The time when the instance was updated. - * - * Generated from protobuf field optional .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. The time when the instance was updated. - * - * Generated from protobuf field optional .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; - } - - /** - * Required. The default and minimum enforced retention for each backup within - * the backup vault. The enforced retention for each backup can be extended. - * - * Generated from protobuf field optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Duration|null - */ - public function getBackupMinimumEnforcedRetentionDuration() - { - return $this->backup_minimum_enforced_retention_duration; - } - - public function hasBackupMinimumEnforcedRetentionDuration() - { - return isset($this->backup_minimum_enforced_retention_duration); - } - - public function clearBackupMinimumEnforcedRetentionDuration() - { - unset($this->backup_minimum_enforced_retention_duration); - } - - /** - * Required. The default and minimum enforced retention for each backup within - * the backup vault. The enforced retention for each backup can be extended. - * - * Generated from protobuf field optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setBackupMinimumEnforcedRetentionDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->backup_minimum_enforced_retention_duration = $var; - - return $this; - } - - /** - * Output only. Set to true when there are no backups nested under this - * resource. - * - * Generated from protobuf field optional bool deletable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDeletable() - { - return isset($this->deletable) ? $this->deletable : false; - } - - public function hasDeletable() - { - return isset($this->deletable); - } - - public function clearDeletable() - { - unset($this->deletable); - } - - /** - * Output only. Set to true when there are no backups nested under this - * resource. - * - * Generated from protobuf field optional bool deletable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDeletable($var) - { - GPBUtil::checkBool($var); - $this->deletable = $var; - - return $this; - } - - /** - * Optional. Server specified ETag for the backup vault resource to - * prevent simultaneous updates from overwiting each other. - * - * Generated from protobuf field optional string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return isset($this->etag) ? $this->etag : ''; - } - - public function hasEtag() - { - return isset($this->etag); - } - - public function clearEtag() - { - unset($this->etag); - } - - /** - * Optional. Server specified ETag for the backup vault resource to - * prevent simultaneous updates from overwiting each other. - * - * Generated from protobuf field optional string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The BackupVault resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The BackupVault resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupVault\State::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. Time after which the BackupVault resource is locked. - * - * Generated from protobuf field optional .google.protobuf.Timestamp effective_time = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEffectiveTime() - { - return $this->effective_time; - } - - public function hasEffectiveTime() - { - return isset($this->effective_time); - } - - public function clearEffectiveTime() - { - unset($this->effective_time); - } - - /** - * Optional. Time after which the BackupVault resource is locked. - * - * Generated from protobuf field optional .google.protobuf.Timestamp effective_time = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEffectiveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->effective_time = $var; - - return $this; - } - - /** - * Output only. The number of backups in this backup vault. - * - * Generated from protobuf field int64 backup_count = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getBackupCount() - { - return $this->backup_count; - } - - /** - * Output only. The number of backups in this backup vault. - * - * Generated from protobuf field int64 backup_count = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setBackupCount($var) - { - GPBUtil::checkInt64($var); - $this->backup_count = $var; - - return $this; - } - - /** - * Output only. Service account used by the BackupVault Service for this - * BackupVault. The user should grant this account permissions in their - * workload project to enable the service to run backups and restores there. - * - * Generated from protobuf field string service_account = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Output only. Service account used by the BackupVault Service for this - * BackupVault. The user should grant this account permissions in their - * workload project to enable the service to run backups and restores there. - * - * Generated from protobuf field string service_account = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Output only. Total size of the storage used by all backup resources. - * - * Generated from protobuf field int64 total_stored_bytes = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalStoredBytes() - { - return $this->total_stored_bytes; - } - - /** - * Output only. Total size of the storage used by all backup resources. - * - * Generated from protobuf field int64 total_stored_bytes = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalStoredBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_stored_bytes = $var; - - return $this; - } - - /** - * Output only. Output only - * Immutable after resource creation until resource deletion. - * - * Generated from protobuf field string uid = 21 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Output only - * Immutable after resource creation until resource deletion. - * - * Generated from protobuf field string uid = 21 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. User annotations. See https://google.aip.dev/128#annotations - * Stores small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. User annotations. See https://google.aip.dev/128#annotations - * Stores small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Note: This field is added for future use case and will not be - * supported in the current release. - * Optional. - * Access restriction for the backup vault. - * Default value is WITHIN_ORGANIZATION if not provided during creation. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault.AccessRestriction access_restriction = 24 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getAccessRestriction() - { - return $this->access_restriction; - } - - /** - * Optional. Note: This field is added for future use case and will not be - * supported in the current release. - * Optional. - * Access restriction for the backup vault. - * Default value is WITHIN_ORGANIZATION if not provided during creation. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault.AccessRestriction access_restriction = 24 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setAccessRestriction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupVault\AccessRestriction::class); - $this->access_restriction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault/AccessRestriction.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault/AccessRestriction.php deleted file mode 100644 index ce86fc5cc6ca..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault/AccessRestriction.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.backupdr.v1.BackupVault.AccessRestriction - */ -class AccessRestriction -{ - /** - * Access restriction not set. - * - * Generated from protobuf enum ACCESS_RESTRICTION_UNSPECIFIED = 0; - */ - const ACCESS_RESTRICTION_UNSPECIFIED = 0; - /** - * Access to or from resources outside your current project will be denied. - * - * Generated from protobuf enum WITHIN_PROJECT = 1; - */ - const WITHIN_PROJECT = 1; - /** - * Access to or from resources outside your current organization will be - * denied. - * - * Generated from protobuf enum WITHIN_ORGANIZATION = 2; - */ - const WITHIN_ORGANIZATION = 2; - /** - * No access restriction. - * - * Generated from protobuf enum UNRESTRICTED = 3; - */ - const UNRESTRICTED = 3; - - private static $valueToName = [ - self::ACCESS_RESTRICTION_UNSPECIFIED => 'ACCESS_RESTRICTION_UNSPECIFIED', - self::WITHIN_PROJECT => 'WITHIN_PROJECT', - self::WITHIN_ORGANIZATION => 'WITHIN_ORGANIZATION', - self::UNRESTRICTED => 'UNRESTRICTED', - ]; - - 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(AccessRestriction::class, \Google\Cloud\BackupDR\V1\BackupVault_AccessRestriction::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault/State.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault/State.php deleted file mode 100644 index 90d1a152ddc9..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVault/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.backupdr.v1.BackupVault.State - */ -class State -{ - /** - * State not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup vault is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The backup vault has been created and is fully usable. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The backup vault is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The backup vault is experiencing an issue and might be unusable. - * - * Generated from protobuf enum ERROR = 4; - */ - const ERROR = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - 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(State::class, \Google\Cloud\BackupDR\V1\BackupVault_State::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVaultView.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVaultView.php deleted file mode 100644 index 2fb4c1492dc7..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupVaultView.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.backupdr.v1.BackupVaultView - */ -class BackupVaultView -{ - /** - * If the value is not set, the default 'FULL' view is used. - * - * Generated from protobuf enum BACKUP_VAULT_VIEW_UNSPECIFIED = 0; - */ - const BACKUP_VAULT_VIEW_UNSPECIFIED = 0; - /** - * Includes basic data about the Backup Vault, but not the full contents. - * - * Generated from protobuf enum BACKUP_VAULT_VIEW_BASIC = 1; - */ - const BACKUP_VAULT_VIEW_BASIC = 1; - /** - * Includes all data about the Backup Vault. - * This is the default value (for both ListBackupVaults and GetBackupVault). - * - * Generated from protobuf enum BACKUP_VAULT_VIEW_FULL = 2; - */ - const BACKUP_VAULT_VIEW_FULL = 2; - - private static $valueToName = [ - self::BACKUP_VAULT_VIEW_UNSPECIFIED => 'BACKUP_VAULT_VIEW_UNSPECIFIED', - self::BACKUP_VAULT_VIEW_BASIC => 'BACKUP_VAULT_VIEW_BASIC', - self::BACKUP_VAULT_VIEW_FULL => 'BACKUP_VAULT_VIEW_FULL', - ]; - - 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupView.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupView.php deleted file mode 100644 index 27ea4394600a..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupView.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.backupdr.v1.BackupView - */ -class BackupView -{ - /** - * If the value is not set, the default 'FULL' view is used. - * - * Generated from protobuf enum BACKUP_VIEW_UNSPECIFIED = 0; - */ - const BACKUP_VIEW_UNSPECIFIED = 0; - /** - * Includes basic data about the Backup, but not the full contents. - * - * Generated from protobuf enum BACKUP_VIEW_BASIC = 1; - */ - const BACKUP_VIEW_BASIC = 1; - /** - * Includes all data about the Backup. - * This is the default value (for both ListBackups and GetBackup). - * - * Generated from protobuf enum BACKUP_VIEW_FULL = 2; - */ - const BACKUP_VIEW_FULL = 2; - - private static $valueToName = [ - self::BACKUP_VIEW_UNSPECIFIED => 'BACKUP_VIEW_UNSPECIFIED', - self::BACKUP_VIEW_BASIC => 'BACKUP_VIEW_BASIC', - self::BACKUP_VIEW_FULL => 'BACKUP_VIEW_FULL', - ]; - - 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupWindow.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupWindow.php deleted file mode 100644 index 8e4da2ca5064..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/BackupWindow.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.backupdr.v1.BackupWindow - */ -class BackupWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The hour of day (0-23) when the window starts for e.g. if value - * of start hour of day is 6 that mean backup window start at 6:00. - * - * Generated from protobuf field int32 start_hour_of_day = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $start_hour_of_day = 0; - /** - * Required. The hour of day (1-24) when the window end for e.g. if value of - * end hour of day is 10 that mean backup window end time is 10:00. - * End hour of day should be greater than start hour of day. - * 0 <= start_hour_of_day < end_hour_of_day <= 24 - * End hour of day is not include in backup window that mean if - * end_hour_of_day= 10 jobs should start before 10:00. - * - * Generated from protobuf field int32 end_hour_of_day = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $end_hour_of_day = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_hour_of_day - * Required. The hour of day (0-23) when the window starts for e.g. if value - * of start hour of day is 6 that mean backup window start at 6:00. - * @type int $end_hour_of_day - * Required. The hour of day (1-24) when the window end for e.g. if value of - * end hour of day is 10 that mean backup window end time is 10:00. - * End hour of day should be greater than start hour of day. - * 0 <= start_hour_of_day < end_hour_of_day <= 24 - * End hour of day is not include in backup window that mean if - * end_hour_of_day= 10 jobs should start before 10:00. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. The hour of day (0-23) when the window starts for e.g. if value - * of start hour of day is 6 that mean backup window start at 6:00. - * - * Generated from protobuf field int32 start_hour_of_day = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStartHourOfDay() - { - return $this->start_hour_of_day; - } - - /** - * Required. The hour of day (0-23) when the window starts for e.g. if value - * of start hour of day is 6 that mean backup window start at 6:00. - * - * Generated from protobuf field int32 start_hour_of_day = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStartHourOfDay($var) - { - GPBUtil::checkInt32($var); - $this->start_hour_of_day = $var; - - return $this; - } - - /** - * Required. The hour of day (1-24) when the window end for e.g. if value of - * end hour of day is 10 that mean backup window end time is 10:00. - * End hour of day should be greater than start hour of day. - * 0 <= start_hour_of_day < end_hour_of_day <= 24 - * End hour of day is not include in backup window that mean if - * end_hour_of_day= 10 jobs should start before 10:00. - * - * Generated from protobuf field int32 end_hour_of_day = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEndHourOfDay() - { - return $this->end_hour_of_day; - } - - /** - * Required. The hour of day (1-24) when the window end for e.g. if value of - * end hour of day is 10 that mean backup window end time is 10:00. - * End hour of day should be greater than start hour of day. - * 0 <= start_hour_of_day < end_hour_of_day <= 24 - * End hour of day is not include in backup window that mean if - * end_hour_of_day= 10 jobs should start before 10:00. - * - * Generated from protobuf field int32 end_hour_of_day = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEndHourOfDay($var) - { - GPBUtil::checkInt32($var); - $this->end_hour_of_day = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceBackupProperties.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceBackupProperties.php deleted file mode 100644 index 8f9a6f915880..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceBackupProperties.php +++ /dev/null @@ -1,716 +0,0 @@ -google.cloud.backupdr.v1.ComputeInstanceBackupProperties - */ -class ComputeInstanceBackupProperties extends \Google\Protobuf\Internal\Message -{ - /** - * An optional text description for the instances that are created from these - * properties. - * - * Generated from protobuf field optional string description = 1; - */ - protected $description = null; - /** - * A list of tags to apply to the instances that are created from these - * properties. The tags identify valid sources or targets for network - * firewalls. The setTags method can modify this list of tags. Each tag within - * the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt). - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Tags tags = 2; - */ - protected $tags = null; - /** - * The machine type to use for instances that are created from these - * properties. - * - * Generated from protobuf field optional string machine_type = 3; - */ - protected $machine_type = null; - /** - * Enables instances created based on these properties to send packets with - * source IP addresses other than their own and receive packets with - * destination IP addresses other than their own. If these instances will be - * used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify `true`. If unsure, leave this set to `false`. See the - * https://cloud.google.com/vpc/docs/using-routes#canipforward - * documentation for more information. - * - * Generated from protobuf field optional bool can_ip_forward = 4; - */ - protected $can_ip_forward = null; - /** - * An array of network access configurations for this interface. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5; - */ - private $network_interface; - /** - * An array of disks that are associated with the instances that are created - * from these properties. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6; - */ - private $disk; - /** - * The metadata key/value pairs to assign to instances that are created from - * these properties. These pairs can consist of custom metadata or predefined - * keys. See https://cloud.google.com/compute/docs/metadata/overview for more - * information. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Metadata metadata = 7; - */ - protected $metadata = null; - /** - * A list of service accounts with specified scopes. Access tokens for these - * service accounts are available to the instances that are created from - * these properties. Use metadata queries to obtain the access tokens for - * these instances. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8; - */ - private $service_account; - /** - * Specifies the scheduling options for the instances that are created from - * these properties. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling scheduling = 9; - */ - protected $scheduling = null; - /** - * A list of guest accelerator cards' type and count to use for instances - * created from these properties. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10; - */ - private $guest_accelerator; - /** - * Minimum cpu/platform to be used by instances. The instance may be - * scheduled on the specified or newer cpu/platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. - * For more information, read - * https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. - * - * Generated from protobuf field optional string min_cpu_platform = 11; - */ - protected $min_cpu_platform = null; - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and - * "NONE". The default value is "NONE" if it is not specified. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12; - */ - protected $key_revocation_action_type = null; - /** - * The source instance used to create this backup. This can be a partial or - * full URL to the resource. For example, the following are valid values: - * -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - * -projects/project/zones/zone/instances/instance - * - * Generated from protobuf field optional string source_instance = 13; - */ - protected $source_instance = null; - /** - * Labels to apply to instances that are created from these properties. - * - * Generated from protobuf field map labels = 14; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * An optional text description for the instances that are created from these - * properties. - * @type \Google\Cloud\BackupDR\V1\Tags $tags - * A list of tags to apply to the instances that are created from these - * properties. The tags identify valid sources or targets for network - * firewalls. The setTags method can modify this list of tags. Each tag within - * the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt). - * @type string $machine_type - * The machine type to use for instances that are created from these - * properties. - * @type bool $can_ip_forward - * Enables instances created based on these properties to send packets with - * source IP addresses other than their own and receive packets with - * destination IP addresses other than their own. If these instances will be - * used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify `true`. If unsure, leave this set to `false`. See the - * https://cloud.google.com/vpc/docs/using-routes#canipforward - * documentation for more information. - * @type array<\Google\Cloud\BackupDR\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $network_interface - * An array of network access configurations for this interface. - * @type array<\Google\Cloud\BackupDR\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $disk - * An array of disks that are associated with the instances that are created - * from these properties. - * @type \Google\Cloud\BackupDR\V1\Metadata $metadata - * The metadata key/value pairs to assign to instances that are created from - * these properties. These pairs can consist of custom metadata or predefined - * keys. See https://cloud.google.com/compute/docs/metadata/overview for more - * information. - * @type array<\Google\Cloud\BackupDR\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $service_account - * A list of service accounts with specified scopes. Access tokens for these - * service accounts are available to the instances that are created from - * these properties. Use metadata queries to obtain the access tokens for - * these instances. - * @type \Google\Cloud\BackupDR\V1\Scheduling $scheduling - * Specifies the scheduling options for the instances that are created from - * these properties. - * @type array<\Google\Cloud\BackupDR\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $guest_accelerator - * A list of guest accelerator cards' type and count to use for instances - * created from these properties. - * @type string $min_cpu_platform - * Minimum cpu/platform to be used by instances. The instance may be - * scheduled on the specified or newer cpu/platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. - * For more information, read - * https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. - * @type int $key_revocation_action_type - * KeyRevocationActionType of the instance. Supported options are "STOP" and - * "NONE". The default value is "NONE" if it is not specified. - * @type string $source_instance - * The source instance used to create this backup. This can be a partial or - * full URL to the resource. For example, the following are valid values: - * -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - * -projects/project/zones/zone/instances/instance - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels to apply to instances that are created from these properties. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * An optional text description for the instances that are created from these - * properties. - * - * Generated from protobuf field optional string description = 1; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * An optional text description for the instances that are created from these - * properties. - * - * Generated from protobuf field optional string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A list of tags to apply to the instances that are created from these - * properties. The tags identify valid sources or targets for network - * firewalls. The setTags method can modify this list of tags. Each tag within - * the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt). - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Tags tags = 2; - * @return \Google\Cloud\BackupDR\V1\Tags|null - */ - public function getTags() - { - return $this->tags; - } - - public function hasTags() - { - return isset($this->tags); - } - - public function clearTags() - { - unset($this->tags); - } - - /** - * A list of tags to apply to the instances that are created from these - * properties. The tags identify valid sources or targets for network - * firewalls. The setTags method can modify this list of tags. Each tag within - * the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt). - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Tags tags = 2; - * @param \Google\Cloud\BackupDR\V1\Tags $var - * @return $this - */ - public function setTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Tags::class); - $this->tags = $var; - - return $this; - } - - /** - * The machine type to use for instances that are created from these - * properties. - * - * Generated from protobuf field optional string machine_type = 3; - * @return string - */ - public function getMachineType() - { - return isset($this->machine_type) ? $this->machine_type : ''; - } - - public function hasMachineType() - { - return isset($this->machine_type); - } - - public function clearMachineType() - { - unset($this->machine_type); - } - - /** - * The machine type to use for instances that are created from these - * properties. - * - * Generated from protobuf field optional string machine_type = 3; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Enables instances created based on these properties to send packets with - * source IP addresses other than their own and receive packets with - * destination IP addresses other than their own. If these instances will be - * used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify `true`. If unsure, leave this set to `false`. See the - * https://cloud.google.com/vpc/docs/using-routes#canipforward - * documentation for more information. - * - * Generated from protobuf field optional bool can_ip_forward = 4; - * @return bool - */ - public function getCanIpForward() - { - return isset($this->can_ip_forward) ? $this->can_ip_forward : false; - } - - public function hasCanIpForward() - { - return isset($this->can_ip_forward); - } - - public function clearCanIpForward() - { - unset($this->can_ip_forward); - } - - /** - * Enables instances created based on these properties to send packets with - * source IP addresses other than their own and receive packets with - * destination IP addresses other than their own. If these instances will be - * used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify `true`. If unsure, leave this set to `false`. See the - * https://cloud.google.com/vpc/docs/using-routes#canipforward - * documentation for more information. - * - * Generated from protobuf field optional bool can_ip_forward = 4; - * @param bool $var - * @return $this - */ - public function setCanIpForward($var) - { - GPBUtil::checkBool($var); - $this->can_ip_forward = $var; - - return $this; - } - - /** - * An array of network access configurations for this interface. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworkInterface() - { - return $this->network_interface; - } - - /** - * An array of network access configurations for this interface. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5; - * @param array<\Google\Cloud\BackupDR\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworkInterface($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\NetworkInterface::class); - $this->network_interface = $arr; - - return $this; - } - - /** - * An array of disks that are associated with the instances that are created - * from these properties. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisk() - { - return $this->disk; - } - - /** - * An array of disks that are associated with the instances that are created - * from these properties. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6; - * @param array<\Google\Cloud\BackupDR\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisk($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\AttachedDisk::class); - $this->disk = $arr; - - return $this; - } - - /** - * The metadata key/value pairs to assign to instances that are created from - * these properties. These pairs can consist of custom metadata or predefined - * keys. See https://cloud.google.com/compute/docs/metadata/overview for more - * information. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Metadata metadata = 7; - * @return \Google\Cloud\BackupDR\V1\Metadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * The metadata key/value pairs to assign to instances that are created from - * these properties. These pairs can consist of custom metadata or predefined - * keys. See https://cloud.google.com/compute/docs/metadata/overview for more - * information. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Metadata metadata = 7; - * @param \Google\Cloud\BackupDR\V1\Metadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Metadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * A list of service accounts with specified scopes. Access tokens for these - * service accounts are available to the instances that are created from - * these properties. Use metadata queries to obtain the access tokens for - * these instances. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * A list of service accounts with specified scopes. Access tokens for these - * service accounts are available to the instances that are created from - * these properties. Use metadata queries to obtain the access tokens for - * these instances. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8; - * @param array<\Google\Cloud\BackupDR\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAccount($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\ServiceAccount::class); - $this->service_account = $arr; - - return $this; - } - - /** - * Specifies the scheduling options for the instances that are created from - * these properties. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling scheduling = 9; - * @return \Google\Cloud\BackupDR\V1\Scheduling|null - */ - public function getScheduling() - { - return $this->scheduling; - } - - public function hasScheduling() - { - return isset($this->scheduling); - } - - public function clearScheduling() - { - unset($this->scheduling); - } - - /** - * Specifies the scheduling options for the instances that are created from - * these properties. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling scheduling = 9; - * @param \Google\Cloud\BackupDR\V1\Scheduling $var - * @return $this - */ - public function setScheduling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Scheduling::class); - $this->scheduling = $var; - - return $this; - } - - /** - * A list of guest accelerator cards' type and count to use for instances - * created from these properties. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGuestAccelerator() - { - return $this->guest_accelerator; - } - - /** - * A list of guest accelerator cards' type and count to use for instances - * created from these properties. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10; - * @param array<\Google\Cloud\BackupDR\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGuestAccelerator($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\AcceleratorConfig::class); - $this->guest_accelerator = $arr; - - return $this; - } - - /** - * Minimum cpu/platform to be used by instances. The instance may be - * scheduled on the specified or newer cpu/platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. - * For more information, read - * https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. - * - * Generated from protobuf field optional string min_cpu_platform = 11; - * @return string - */ - public function getMinCpuPlatform() - { - return isset($this->min_cpu_platform) ? $this->min_cpu_platform : ''; - } - - public function hasMinCpuPlatform() - { - return isset($this->min_cpu_platform); - } - - public function clearMinCpuPlatform() - { - unset($this->min_cpu_platform); - } - - /** - * Minimum cpu/platform to be used by instances. The instance may be - * scheduled on the specified or newer cpu/platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. - * For more information, read - * https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. - * - * Generated from protobuf field optional string min_cpu_platform = 11; - * @param string $var - * @return $this - */ - public function setMinCpuPlatform($var) - { - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and - * "NONE". The default value is "NONE" if it is not specified. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12; - * @return int - */ - public function getKeyRevocationActionType() - { - return isset($this->key_revocation_action_type) ? $this->key_revocation_action_type : 0; - } - - public function hasKeyRevocationActionType() - { - return isset($this->key_revocation_action_type); - } - - public function clearKeyRevocationActionType() - { - unset($this->key_revocation_action_type); - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and - * "NONE". The default value is "NONE" if it is not specified. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12; - * @param int $var - * @return $this - */ - public function setKeyRevocationActionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\KeyRevocationActionType::class); - $this->key_revocation_action_type = $var; - - return $this; - } - - /** - * The source instance used to create this backup. This can be a partial or - * full URL to the resource. For example, the following are valid values: - * -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - * -projects/project/zones/zone/instances/instance - * - * Generated from protobuf field optional string source_instance = 13; - * @return string - */ - public function getSourceInstance() - { - return isset($this->source_instance) ? $this->source_instance : ''; - } - - public function hasSourceInstance() - { - return isset($this->source_instance); - } - - public function clearSourceInstance() - { - unset($this->source_instance); - } - - /** - * The source instance used to create this backup. This can be a partial or - * full URL to the resource. For example, the following are valid values: - * -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - * -projects/project/zones/zone/instances/instance - * - * Generated from protobuf field optional string source_instance = 13; - * @param string $var - * @return $this - */ - public function setSourceInstance($var) - { - GPBUtil::checkString($var, True); - $this->source_instance = $var; - - return $this; - } - - /** - * Labels to apply to instances that are created from these properties. - * - * Generated from protobuf field map labels = 14; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels to apply to instances that are created from these properties. - * - * Generated from protobuf field map labels = 14; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceDataSourceProperties.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceDataSourceProperties.php deleted file mode 100644 index 28fa438fe071..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceDataSourceProperties.php +++ /dev/null @@ -1,204 +0,0 @@ -google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties - */ -class ComputeInstanceDataSourceProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the compute instance backed up by the datasource. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The description of the Compute Engine instance. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The machine type of the instance. - * - * Generated from protobuf field string machine_type = 3; - */ - protected $machine_type = ''; - /** - * The total number of disks attached to the Instance. - * - * Generated from protobuf field int64 total_disk_count = 4; - */ - protected $total_disk_count = 0; - /** - * The sum of all the disk sizes. - * - * Generated from protobuf field int64 total_disk_size_gb = 5; - */ - protected $total_disk_size_gb = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the compute instance backed up by the datasource. - * @type string $description - * The description of the Compute Engine instance. - * @type string $machine_type - * The machine type of the instance. - * @type int|string $total_disk_count - * The total number of disks attached to the Instance. - * @type int|string $total_disk_size_gb - * The sum of all the disk sizes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Name of the compute instance backed up by the datasource. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the compute instance backed up by the datasource. - * - * 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; - } - - /** - * The description of the Compute Engine instance. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the Compute Engine instance. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The machine type of the instance. - * - * Generated from protobuf field string machine_type = 3; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * The machine type of the instance. - * - * Generated from protobuf field string machine_type = 3; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * The total number of disks attached to the Instance. - * - * Generated from protobuf field int64 total_disk_count = 4; - * @return int|string - */ - public function getTotalDiskCount() - { - return $this->total_disk_count; - } - - /** - * The total number of disks attached to the Instance. - * - * Generated from protobuf field int64 total_disk_count = 4; - * @param int|string $var - * @return $this - */ - public function setTotalDiskCount($var) - { - GPBUtil::checkInt64($var); - $this->total_disk_count = $var; - - return $this; - } - - /** - * The sum of all the disk sizes. - * - * Generated from protobuf field int64 total_disk_size_gb = 5; - * @return int|string - */ - public function getTotalDiskSizeGb() - { - return $this->total_disk_size_gb; - } - - /** - * The sum of all the disk sizes. - * - * Generated from protobuf field int64 total_disk_size_gb = 5; - * @param int|string $var - * @return $this - */ - public function setTotalDiskSizeGb($var) - { - GPBUtil::checkInt64($var); - $this->total_disk_size_gb = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceRestoreProperties.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceRestoreProperties.php deleted file mode 100644 index b5ed7b1b9feb..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceRestoreProperties.php +++ /dev/null @@ -1,1150 +0,0 @@ -google.cloud.backupdr.v1.ComputeInstanceRestoreProperties - */ -class ComputeInstanceRestoreProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the compute instance. - * - * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = null; - /** - * Optional. Controls for advanced machine-related behavior features. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AdvancedMachineFeatures advanced_machine_features = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $advanced_machine_features = null; - /** - * Optional. Allows this instance to send and receive packets with - * non-matching destination or source IPs. - * - * Generated from protobuf field optional bool can_ip_forward = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $can_ip_forward = null; - /** - * Optional. Controls Confidential compute options on the instance - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.ConfidentialInstanceConfig confidential_instance_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $confidential_instance_config = null; - /** - * Optional. Whether the resource should be protected against deletion. - * - * Generated from protobuf field optional bool deletion_protection = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $deletion_protection = null; - /** - * Optional. An optional description of this resource. Provide this property - * when you create the resource. - * - * Generated from protobuf field optional string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = null; - /** - * Optional. Array of disks associated with this instance. Persistent disks - * must be created before you can assign them. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AttachedDisk disks = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $disks; - /** - * Optional. Enables display device for the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.DisplayDevice display_device = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_device = null; - /** - * Optional. A list of the type and count of accelerator cards attached to the - * instance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerators = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $guest_accelerators; - /** - * Optional. Specifies the hostname of the instance. The specified hostname - * must be RFC1035 compliant. If hostname is not specified, the default - * hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global - * DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal - * DNS. - * - * Generated from protobuf field optional string hostname = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $hostname = null; - /** - * Optional. Encrypts suspended data for an instance with a - * customer-managed encryption key. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.CustomerEncryptionKey instance_encryption_key = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_encryption_key = null; - /** - * Optional. KeyRevocationActionType of the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key_revocation_action_type = null; - /** - * Optional. Labels to apply to this instance. - * - * Generated from protobuf field map labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Full or partial URL of the machine type resource to use for this - * instance. - * - * Generated from protobuf field optional string machine_type = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $machine_type = null; - /** - * Optional. This includes custom metadata and predefined keys. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Metadata metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metadata = null; - /** - * Optional. Minimum CPU platform to use for this instance. - * - * Generated from protobuf field optional string min_cpu_platform = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_cpu_platform = null; - /** - * Optional. An array of network configurations for this instance. These - * specify how interfaces are configured to interact with other network - * services, such as connecting to the internet. Multiple interfaces are - * supported per instance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkInterface network_interfaces = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $network_interfaces; - /** - * Optional. Configure network performance such as egress bandwidth tier. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkPerformanceConfig network_performance_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network_performance_config = null; - /** - * Input only. Additional params passed with the request, but not persisted - * as part of resource payload. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.InstanceParams params = 19 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $params = null; - /** - * Optional. The private IPv6 google access type for the VM. - * If not specified, use INHERIT_FROM_SUBNETWORK as default. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.ComputeInstanceRestoreProperties.InstancePrivateIpv6GoogleAccess private_ipv6_google_access = 20 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $private_ipv6_google_access = null; - /** - * Optional. Specifies the reservations that this instance can consume from. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AllocationAffinity allocation_affinity = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allocation_affinity = null; - /** - * Optional. Resource policies applied to this instance. - * - * Generated from protobuf field repeated string resource_policies = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_policies; - /** - * Optional. Sets the scheduling options for this instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling scheduling = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $scheduling = null; - /** - * Optional. A list of service accounts, with their specified scopes, - * authorized for this instance. Only one service account per VM instance is - * supported. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ServiceAccount service_accounts = 24 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $service_accounts; - /** - * Optional. Tags to apply to this instance. Tags are used to identify valid - * sources or targets for network firewalls and are specified by the client - * during instance creation. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Tags tags = 26 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $tags = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the compute instance. - * @type \Google\Cloud\BackupDR\V1\AdvancedMachineFeatures $advanced_machine_features - * Optional. Controls for advanced machine-related behavior features. - * @type bool $can_ip_forward - * Optional. Allows this instance to send and receive packets with - * non-matching destination or source IPs. - * @type \Google\Cloud\BackupDR\V1\ConfidentialInstanceConfig $confidential_instance_config - * Optional. Controls Confidential compute options on the instance - * @type bool $deletion_protection - * Optional. Whether the resource should be protected against deletion. - * @type string $description - * Optional. An optional description of this resource. Provide this property - * when you create the resource. - * @type array<\Google\Cloud\BackupDR\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $disks - * Optional. Array of disks associated with this instance. Persistent disks - * must be created before you can assign them. - * @type \Google\Cloud\BackupDR\V1\DisplayDevice $display_device - * Optional. Enables display device for the instance. - * @type array<\Google\Cloud\BackupDR\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $guest_accelerators - * Optional. A list of the type and count of accelerator cards attached to the - * instance. - * @type string $hostname - * Optional. Specifies the hostname of the instance. The specified hostname - * must be RFC1035 compliant. If hostname is not specified, the default - * hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global - * DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal - * DNS. - * @type \Google\Cloud\BackupDR\V1\CustomerEncryptionKey $instance_encryption_key - * Optional. Encrypts suspended data for an instance with a - * customer-managed encryption key. - * @type int $key_revocation_action_type - * Optional. KeyRevocationActionType of the instance. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels to apply to this instance. - * @type string $machine_type - * Optional. Full or partial URL of the machine type resource to use for this - * instance. - * @type \Google\Cloud\BackupDR\V1\Metadata $metadata - * Optional. This includes custom metadata and predefined keys. - * @type string $min_cpu_platform - * Optional. Minimum CPU platform to use for this instance. - * @type array<\Google\Cloud\BackupDR\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $network_interfaces - * Optional. An array of network configurations for this instance. These - * specify how interfaces are configured to interact with other network - * services, such as connecting to the internet. Multiple interfaces are - * supported per instance. - * @type \Google\Cloud\BackupDR\V1\NetworkPerformanceConfig $network_performance_config - * Optional. Configure network performance such as egress bandwidth tier. - * @type \Google\Cloud\BackupDR\V1\InstanceParams $params - * Input only. Additional params passed with the request, but not persisted - * as part of resource payload. - * @type int $private_ipv6_google_access - * Optional. The private IPv6 google access type for the VM. - * If not specified, use INHERIT_FROM_SUBNETWORK as default. - * @type \Google\Cloud\BackupDR\V1\AllocationAffinity $allocation_affinity - * Optional. Specifies the reservations that this instance can consume from. - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies - * Optional. Resource policies applied to this instance. - * @type \Google\Cloud\BackupDR\V1\Scheduling $scheduling - * Optional. Sets the scheduling options for this instance. - * @type array<\Google\Cloud\BackupDR\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $service_accounts - * Optional. A list of service accounts, with their specified scopes, - * authorized for this instance. Only one service account per VM instance is - * supported. - * @type \Google\Cloud\BackupDR\V1\Tags $tags - * Optional. Tags to apply to this instance. Tags are used to identify valid - * sources or targets for network firewalls and are specified by the client - * during instance creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the compute instance. - * - * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return isset($this->name) ? $this->name : ''; - } - - public function hasName() - { - return isset($this->name); - } - - public function clearName() - { - unset($this->name); - } - - /** - * Required. Name of the compute instance. - * - * Generated from protobuf field optional string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Controls for advanced machine-related behavior features. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AdvancedMachineFeatures advanced_machine_features = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\AdvancedMachineFeatures|null - */ - public function getAdvancedMachineFeatures() - { - return $this->advanced_machine_features; - } - - public function hasAdvancedMachineFeatures() - { - return isset($this->advanced_machine_features); - } - - public function clearAdvancedMachineFeatures() - { - unset($this->advanced_machine_features); - } - - /** - * Optional. Controls for advanced machine-related behavior features. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AdvancedMachineFeatures advanced_machine_features = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\AdvancedMachineFeatures $var - * @return $this - */ - public function setAdvancedMachineFeatures($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\AdvancedMachineFeatures::class); - $this->advanced_machine_features = $var; - - return $this; - } - - /** - * Optional. Allows this instance to send and receive packets with - * non-matching destination or source IPs. - * - * Generated from protobuf field optional bool can_ip_forward = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCanIpForward() - { - return isset($this->can_ip_forward) ? $this->can_ip_forward : false; - } - - public function hasCanIpForward() - { - return isset($this->can_ip_forward); - } - - public function clearCanIpForward() - { - unset($this->can_ip_forward); - } - - /** - * Optional. Allows this instance to send and receive packets with - * non-matching destination or source IPs. - * - * Generated from protobuf field optional bool can_ip_forward = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCanIpForward($var) - { - GPBUtil::checkBool($var); - $this->can_ip_forward = $var; - - return $this; - } - - /** - * Optional. Controls Confidential compute options on the instance - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.ConfidentialInstanceConfig confidential_instance_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\ConfidentialInstanceConfig|null - */ - public function getConfidentialInstanceConfig() - { - return $this->confidential_instance_config; - } - - public function hasConfidentialInstanceConfig() - { - return isset($this->confidential_instance_config); - } - - public function clearConfidentialInstanceConfig() - { - unset($this->confidential_instance_config); - } - - /** - * Optional. Controls Confidential compute options on the instance - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.ConfidentialInstanceConfig confidential_instance_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\ConfidentialInstanceConfig $var - * @return $this - */ - public function setConfidentialInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ConfidentialInstanceConfig::class); - $this->confidential_instance_config = $var; - - return $this; - } - - /** - * Optional. Whether the resource should be protected against deletion. - * - * Generated from protobuf field optional bool deletion_protection = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDeletionProtection() - { - return isset($this->deletion_protection) ? $this->deletion_protection : false; - } - - public function hasDeletionProtection() - { - return isset($this->deletion_protection); - } - - public function clearDeletionProtection() - { - unset($this->deletion_protection); - } - - /** - * Optional. Whether the resource should be protected against deletion. - * - * Generated from protobuf field optional bool deletion_protection = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDeletionProtection($var) - { - GPBUtil::checkBool($var); - $this->deletion_protection = $var; - - return $this; - } - - /** - * Optional. An optional description of this resource. Provide this property - * when you create the resource. - * - * Generated from protobuf field optional string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return isset($this->description) ? $this->description : ''; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Optional. An optional description of this resource. Provide this property - * when you create the resource. - * - * Generated from protobuf field optional string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Array of disks associated with this instance. Persistent disks - * must be created before you can assign them. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AttachedDisk disks = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisks() - { - return $this->disks; - } - - /** - * Optional. Array of disks associated with this instance. Persistent disks - * must be created before you can assign them. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AttachedDisk disks = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\AttachedDisk::class); - $this->disks = $arr; - - return $this; - } - - /** - * Optional. Enables display device for the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.DisplayDevice display_device = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\DisplayDevice|null - */ - public function getDisplayDevice() - { - return $this->display_device; - } - - public function hasDisplayDevice() - { - return isset($this->display_device); - } - - public function clearDisplayDevice() - { - unset($this->display_device); - } - - /** - * Optional. Enables display device for the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.DisplayDevice display_device = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\DisplayDevice $var - * @return $this - */ - public function setDisplayDevice($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\DisplayDevice::class); - $this->display_device = $var; - - return $this; - } - - /** - * Optional. A list of the type and count of accelerator cards attached to the - * instance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerators = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGuestAccelerators() - { - return $this->guest_accelerators; - } - - /** - * Optional. A list of the type and count of accelerator cards attached to the - * instance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerators = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGuestAccelerators($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\AcceleratorConfig::class); - $this->guest_accelerators = $arr; - - return $this; - } - - /** - * Optional. Specifies the hostname of the instance. The specified hostname - * must be RFC1035 compliant. If hostname is not specified, the default - * hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global - * DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal - * DNS. - * - * Generated from protobuf field optional string hostname = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getHostname() - { - return isset($this->hostname) ? $this->hostname : ''; - } - - public function hasHostname() - { - return isset($this->hostname); - } - - public function clearHostname() - { - unset($this->hostname); - } - - /** - * Optional. Specifies the hostname of the instance. The specified hostname - * must be RFC1035 compliant. If hostname is not specified, the default - * hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global - * DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal - * DNS. - * - * Generated from protobuf field optional string hostname = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setHostname($var) - { - GPBUtil::checkString($var, True); - $this->hostname = $var; - - return $this; - } - - /** - * Optional. Encrypts suspended data for an instance with a - * customer-managed encryption key. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.CustomerEncryptionKey instance_encryption_key = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\CustomerEncryptionKey|null - */ - public function getInstanceEncryptionKey() - { - return $this->instance_encryption_key; - } - - public function hasInstanceEncryptionKey() - { - return isset($this->instance_encryption_key); - } - - public function clearInstanceEncryptionKey() - { - unset($this->instance_encryption_key); - } - - /** - * Optional. Encrypts suspended data for an instance with a - * customer-managed encryption key. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.CustomerEncryptionKey instance_encryption_key = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\CustomerEncryptionKey $var - * @return $this - */ - public function setInstanceEncryptionKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\CustomerEncryptionKey::class); - $this->instance_encryption_key = $var; - - return $this; - } - - /** - * Optional. KeyRevocationActionType of the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getKeyRevocationActionType() - { - return isset($this->key_revocation_action_type) ? $this->key_revocation_action_type : 0; - } - - public function hasKeyRevocationActionType() - { - return isset($this->key_revocation_action_type); - } - - public function clearKeyRevocationActionType() - { - unset($this->key_revocation_action_type); - } - - /** - * Optional. KeyRevocationActionType of the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setKeyRevocationActionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\KeyRevocationActionType::class); - $this->key_revocation_action_type = $var; - - return $this; - } - - /** - * Optional. Labels to apply to this instance. - * - * Generated from protobuf field map labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels to apply to this instance. - * - * Generated from protobuf field map labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Full or partial URL of the machine type resource to use for this - * instance. - * - * Generated from protobuf field optional string machine_type = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMachineType() - { - return isset($this->machine_type) ? $this->machine_type : ''; - } - - public function hasMachineType() - { - return isset($this->machine_type); - } - - public function clearMachineType() - { - unset($this->machine_type); - } - - /** - * Optional. Full or partial URL of the machine type resource to use for this - * instance. - * - * Generated from protobuf field optional string machine_type = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Optional. This includes custom metadata and predefined keys. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Metadata metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\Metadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Optional. This includes custom metadata and predefined keys. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Metadata metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\Metadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Metadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Optional. Minimum CPU platform to use for this instance. - * - * Generated from protobuf field optional string min_cpu_platform = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMinCpuPlatform() - { - return isset($this->min_cpu_platform) ? $this->min_cpu_platform : ''; - } - - public function hasMinCpuPlatform() - { - return isset($this->min_cpu_platform); - } - - public function clearMinCpuPlatform() - { - unset($this->min_cpu_platform); - } - - /** - * Optional. Minimum CPU platform to use for this instance. - * - * Generated from protobuf field optional string min_cpu_platform = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMinCpuPlatform($var) - { - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * Optional. An array of network configurations for this instance. These - * specify how interfaces are configured to interact with other network - * services, such as connecting to the internet. Multiple interfaces are - * supported per instance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkInterface network_interfaces = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworkInterfaces() - { - return $this->network_interfaces; - } - - /** - * Optional. An array of network configurations for this instance. These - * specify how interfaces are configured to interact with other network - * services, such as connecting to the internet. Multiple interfaces are - * supported per instance. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkInterface network_interfaces = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworkInterfaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\NetworkInterface::class); - $this->network_interfaces = $arr; - - return $this; - } - - /** - * Optional. Configure network performance such as egress bandwidth tier. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkPerformanceConfig network_performance_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\NetworkPerformanceConfig|null - */ - public function getNetworkPerformanceConfig() - { - return $this->network_performance_config; - } - - public function hasNetworkPerformanceConfig() - { - return isset($this->network_performance_config); - } - - public function clearNetworkPerformanceConfig() - { - unset($this->network_performance_config); - } - - /** - * Optional. Configure network performance such as egress bandwidth tier. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkPerformanceConfig network_performance_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\NetworkPerformanceConfig $var - * @return $this - */ - public function setNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\NetworkPerformanceConfig::class); - $this->network_performance_config = $var; - - return $this; - } - - /** - * Input only. Additional params passed with the request, but not persisted - * as part of resource payload. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.InstanceParams params = 19 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\InstanceParams|null - */ - public function getParams() - { - return $this->params; - } - - public function hasParams() - { - return isset($this->params); - } - - public function clearParams() - { - unset($this->params); - } - - /** - * Input only. Additional params passed with the request, but not persisted - * as part of resource payload. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.InstanceParams params = 19 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\InstanceParams $var - * @return $this - */ - public function setParams($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\InstanceParams::class); - $this->params = $var; - - return $this; - } - - /** - * Optional. The private IPv6 google access type for the VM. - * If not specified, use INHERIT_FROM_SUBNETWORK as default. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.ComputeInstanceRestoreProperties.InstancePrivateIpv6GoogleAccess private_ipv6_google_access = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPrivateIpv6GoogleAccess() - { - return isset($this->private_ipv6_google_access) ? $this->private_ipv6_google_access : 0; - } - - public function hasPrivateIpv6GoogleAccess() - { - return isset($this->private_ipv6_google_access); - } - - public function clearPrivateIpv6GoogleAccess() - { - unset($this->private_ipv6_google_access); - } - - /** - * Optional. The private IPv6 google access type for the VM. - * If not specified, use INHERIT_FROM_SUBNETWORK as default. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.ComputeInstanceRestoreProperties.InstancePrivateIpv6GoogleAccess private_ipv6_google_access = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPrivateIpv6GoogleAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\ComputeInstanceRestoreProperties\InstancePrivateIpv6GoogleAccess::class); - $this->private_ipv6_google_access = $var; - - return $this; - } - - /** - * Optional. Specifies the reservations that this instance can consume from. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AllocationAffinity allocation_affinity = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\AllocationAffinity|null - */ - public function getAllocationAffinity() - { - return $this->allocation_affinity; - } - - public function hasAllocationAffinity() - { - return isset($this->allocation_affinity); - } - - public function clearAllocationAffinity() - { - unset($this->allocation_affinity); - } - - /** - * Optional. Specifies the reservations that this instance can consume from. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.AllocationAffinity allocation_affinity = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\AllocationAffinity $var - * @return $this - */ - public function setAllocationAffinity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\AllocationAffinity::class); - $this->allocation_affinity = $var; - - return $this; - } - - /** - * Optional. Resource policies applied to this instance. - * - * Generated from protobuf field repeated string resource_policies = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourcePolicies() - { - return $this->resource_policies; - } - - /** - * Optional. Resource policies applied to this instance. - * - * Generated from protobuf field repeated string resource_policies = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourcePolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_policies = $arr; - - return $this; - } - - /** - * Optional. Sets the scheduling options for this instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling scheduling = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\Scheduling|null - */ - public function getScheduling() - { - return $this->scheduling; - } - - public function hasScheduling() - { - return isset($this->scheduling); - } - - public function clearScheduling() - { - unset($this->scheduling); - } - - /** - * Optional. Sets the scheduling options for this instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling scheduling = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\Scheduling $var - * @return $this - */ - public function setScheduling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Scheduling::class); - $this->scheduling = $var; - - return $this; - } - - /** - * Optional. A list of service accounts, with their specified scopes, - * authorized for this instance. Only one service account per VM instance is - * supported. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ServiceAccount service_accounts = 24 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAccounts() - { - return $this->service_accounts; - } - - /** - * Optional. A list of service accounts, with their specified scopes, - * authorized for this instance. Only one service account per VM instance is - * supported. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ServiceAccount service_accounts = 24 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAccounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\ServiceAccount::class); - $this->service_accounts = $arr; - - return $this; - } - - /** - * Optional. Tags to apply to this instance. Tags are used to identify valid - * sources or targets for network firewalls and are specified by the client - * during instance creation. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Tags tags = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\Tags|null - */ - public function getTags() - { - return $this->tags; - } - - public function hasTags() - { - return isset($this->tags); - } - - public function clearTags() - { - unset($this->tags); - } - - /** - * Optional. Tags to apply to this instance. Tags are used to identify valid - * sources or targets for network firewalls and are specified by the client - * during instance creation. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Tags tags = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\Tags $var - * @return $this - */ - public function setTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Tags::class); - $this->tags = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceRestoreProperties/InstancePrivateIpv6GoogleAccess.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceRestoreProperties/InstancePrivateIpv6GoogleAccess.php deleted file mode 100644 index 8c0f3a4e5c74..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceRestoreProperties/InstancePrivateIpv6GoogleAccess.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.backupdr.v1.ComputeInstanceRestoreProperties.InstancePrivateIpv6GoogleAccess - */ -class InstancePrivateIpv6GoogleAccess -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - const INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - /** - * Each network interface inherits PrivateIpv6GoogleAccess from its - * subnetwork. - * - * Generated from protobuf enum INHERIT_FROM_SUBNETWORK = 1; - */ - const INHERIT_FROM_SUBNETWORK = 1; - /** - * Outbound private IPv6 access from VMs in this subnet to Google services. - * If specified, the subnetwork who is attached to the instance's default - * network interface will be assigned an internal IPv6 prefix if it doesn't - * have before. - * - * Generated from protobuf enum ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE = 2; - */ - const ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE = 2; - /** - * Bidirectional private IPv6 access to/from Google services. If - * specified, the subnetwork who is attached to the instance's default - * network interface will be assigned an internal IPv6 prefix if it doesn't - * have before. - * - * Generated from protobuf enum ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE = 3; - */ - const ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE = 3; - - private static $valueToName = [ - self::INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED => 'INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED', - self::INHERIT_FROM_SUBNETWORK => 'INHERIT_FROM_SUBNETWORK', - self::ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE => 'ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE', - self::ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE => 'ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE', - ]; - - 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(InstancePrivateIpv6GoogleAccess::class, \Google\Cloud\BackupDR\V1\ComputeInstanceRestoreProperties_InstancePrivateIpv6GoogleAccess::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceTargetEnvironment.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceTargetEnvironment.php deleted file mode 100644 index 6251eea36937..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ComputeInstanceTargetEnvironment.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment - */ -class ComputeInstanceTargetEnvironment extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Target project for the Compute Engine instance. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project = ''; - /** - * Required. The zone of the Compute Engine instance. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $zone = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project - * Required. Target project for the Compute Engine instance. - * @type string $zone - * Required. The zone of the Compute Engine instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Required. Target project for the Compute Engine instance. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Required. Target project for the Compute Engine instance. - * - * Generated from protobuf field string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Required. The zone of the Compute Engine instance. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Required. The zone of the Compute Engine instance. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ConfidentialInstanceConfig.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ConfidentialInstanceConfig.php deleted file mode 100644 index 276f5b0eaf46..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ConfidentialInstanceConfig.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.backupdr.v1.ConfidentialInstanceConfig - */ -class ConfidentialInstanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Defines whether the instance should have confidential compute - * enabled. - * - * Generated from protobuf field optional bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_confidential_compute = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_confidential_compute - * Optional. Defines whether the instance should have confidential compute - * enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Defines whether the instance should have confidential compute - * enabled. - * - * Generated from protobuf field optional bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableConfidentialCompute() - { - return isset($this->enable_confidential_compute) ? $this->enable_confidential_compute : false; - } - - public function hasEnableConfidentialCompute() - { - return isset($this->enable_confidential_compute); - } - - public function clearEnableConfidentialCompute() - { - unset($this->enable_confidential_compute); - } - - /** - * Optional. Defines whether the instance should have confidential compute - * enabled. - * - * Generated from protobuf field optional bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableConfidentialCompute($var) - { - GPBUtil::checkBool($var); - $this->enable_confidential_compute = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupPlanAssociationRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupPlanAssociationRequest.php deleted file mode 100644 index 9462d6101471..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupPlanAssociationRequest.php +++ /dev/null @@ -1,252 +0,0 @@ -google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest - */ -class CreateBackupPlanAssociationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The backup plan association project and location in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The name of the backup plan association to create. The name must - * be unique for the specified project and location. - * - * Generated from protobuf field string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_plan_association_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_plan_association = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The backup plan association project and location in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * @param \Google\Cloud\BackupDR\V1\BackupPlanAssociation $backupPlanAssociation Required. The resource being created - * @param string $backupPlanAssociationId Required. The name of the backup plan association to create. The name must - * be unique for the specified project and location. - * - * @return \Google\Cloud\BackupDR\V1\CreateBackupPlanAssociationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\BackupDR\V1\BackupPlanAssociation $backupPlanAssociation, string $backupPlanAssociationId): self - { - return (new self()) - ->setParent($parent) - ->setBackupPlanAssociation($backupPlanAssociation) - ->setBackupPlanAssociationId($backupPlanAssociationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The backup plan association project and location in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * @type string $backup_plan_association_id - * Required. The name of the backup plan association to create. The name must - * be unique for the specified project and location. - * @type \Google\Cloud\BackupDR\V1\BackupPlanAssociation $backup_plan_association - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The backup plan association project and location in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * - * 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 backup plan association project and location in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * - * 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 name of the backup plan association to create. The name must - * be unique for the specified project and location. - * - * Generated from protobuf field string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupPlanAssociationId() - { - return $this->backup_plan_association_id; - } - - /** - * Required. The name of the backup plan association to create. The name must - * be unique for the specified project and location. - * - * Generated from protobuf field string backup_plan_association_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupPlanAssociationId($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan_association_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\BackupPlanAssociation|null - */ - public function getBackupPlanAssociation() - { - return $this->backup_plan_association; - } - - public function hasBackupPlanAssociation() - { - return isset($this->backup_plan_association); - } - - public function clearBackupPlanAssociation() - { - unset($this->backup_plan_association); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_association = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\BackupPlanAssociation $var - * @return $this - */ - public function setBackupPlanAssociation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupPlanAssociation::class); - $this->backup_plan_association = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupPlanRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupPlanRequest.php deleted file mode 100644 index f4eeb674fb1f..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupPlanRequest.php +++ /dev/null @@ -1,262 +0,0 @@ -google.cloud.backupdr.v1.CreateBackupPlanRequest - */ -class CreateBackupPlanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `BackupPlan` project and location in the format - * `projects/{project}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The name of the `BackupPlan` to create. The name must be unique - * for the specified project and location.The name must start with a lowercase - * letter followed by up to 62 lowercase letters, numbers, or hyphens. - * Pattern, /[a-z][a-z0-9-]{,62}/. - * - * Generated from protobuf field string backup_plan_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_plan_id = ''; - /** - * Required. The `BackupPlan` resource object to create. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlan backup_plan = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_plan = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The `BackupPlan` project and location in the format - * `projects/{project}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * @param \Google\Cloud\BackupDR\V1\BackupPlan $backupPlan Required. The `BackupPlan` resource object to create. - * @param string $backupPlanId Required. The name of the `BackupPlan` to create. The name must be unique - * for the specified project and location.The name must start with a lowercase - * letter followed by up to 62 lowercase letters, numbers, or hyphens. - * Pattern, /[a-z][a-z0-9-]{,62}/. - * - * @return \Google\Cloud\BackupDR\V1\CreateBackupPlanRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\BackupDR\V1\BackupPlan $backupPlan, string $backupPlanId): self - { - return (new self()) - ->setParent($parent) - ->setBackupPlan($backupPlan) - ->setBackupPlanId($backupPlanId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The `BackupPlan` project and location in the format - * `projects/{project}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * @type string $backup_plan_id - * Required. The name of the `BackupPlan` to create. The name must be unique - * for the specified project and location.The name must start with a lowercase - * letter followed by up to 62 lowercase letters, numbers, or hyphens. - * Pattern, /[a-z][a-z0-9-]{,62}/. - * @type \Google\Cloud\BackupDR\V1\BackupPlan $backup_plan - * Required. The `BackupPlan` resource object to create. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `BackupPlan` project and location in the format - * `projects/{project}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * - * 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 `BackupPlan` project and location in the format - * `projects/{project}/locations/{location}`. In Cloud BackupDR locations - * map to GCP regions, for example **us-central1**. - * - * 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 name of the `BackupPlan` to create. The name must be unique - * for the specified project and location.The name must start with a lowercase - * letter followed by up to 62 lowercase letters, numbers, or hyphens. - * Pattern, /[a-z][a-z0-9-]{,62}/. - * - * Generated from protobuf field string backup_plan_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupPlanId() - { - return $this->backup_plan_id; - } - - /** - * Required. The name of the `BackupPlan` to create. The name must be unique - * for the specified project and location.The name must start with a lowercase - * letter followed by up to 62 lowercase letters, numbers, or hyphens. - * Pattern, /[a-z][a-z0-9-]{,62}/. - * - * Generated from protobuf field string backup_plan_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupPlanId($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan_id = $var; - - return $this; - } - - /** - * Required. The `BackupPlan` resource object to create. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlan backup_plan = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\BackupPlan|null - */ - public function getBackupPlan() - { - return $this->backup_plan; - } - - public function hasBackupPlan() - { - return isset($this->backup_plan); - } - - public function clearBackupPlan() - { - unset($this->backup_plan); - } - - /** - * Required. The `BackupPlan` resource object to create. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupPlan backup_plan = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\BackupPlan $var - * @return $this - */ - public function setBackupPlan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupPlan::class); - $this->backup_plan = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupVaultRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupVaultRequest.php deleted file mode 100644 index 39269b8ee810..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateBackupVaultRequest.php +++ /dev/null @@ -1,285 +0,0 @@ -google.cloud.backupdr.v1.CreateBackupVaultRequest - */ -class CreateBackupVaultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the requesting object - * If auto-generating ID server-side, remove this field and - * backup_vault_id from the method_signature of Create RPC - * - * Generated from protobuf field string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_vault_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_vault = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. Value for parent. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * @param \Google\Cloud\BackupDR\V1\BackupVault $backupVault Required. The resource being created - * @param string $backupVaultId Required. ID of the requesting object - * If auto-generating ID server-side, remove this field and - * backup_vault_id from the method_signature of Create RPC - * - * @return \Google\Cloud\BackupDR\V1\CreateBackupVaultRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\BackupDR\V1\BackupVault $backupVault, string $backupVaultId): self - { - return (new self()) - ->setParent($parent) - ->setBackupVault($backupVault) - ->setBackupVaultId($backupVaultId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $backup_vault_id - * Required. ID of the requesting object - * If auto-generating ID server-side, remove this field and - * backup_vault_id from the method_signature of Create RPC - * @type \Google\Cloud\BackupDR\V1\BackupVault $backup_vault - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * 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. Value for parent. - * - * 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. ID of the requesting object - * If auto-generating ID server-side, remove this field and - * backup_vault_id from the method_signature of Create RPC - * - * Generated from protobuf field string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupVaultId() - { - return $this->backup_vault_id; - } - - /** - * Required. ID of the requesting object - * If auto-generating ID server-side, remove this field and - * backup_vault_id from the method_signature of Create RPC - * - * Generated from protobuf field string backup_vault_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupVaultId($var) - { - GPBUtil::checkString($var, True); - $this->backup_vault_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\BackupVault|null - */ - public function getBackupVault() - { - return $this->backup_vault; - } - - public function hasBackupVault() - { - return isset($this->backup_vault); - } - - public function clearBackupVault() - { - unset($this->backup_vault); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault backup_vault = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\BackupVault $var - * @return $this - */ - public function setBackupVault($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupVault::class); - $this->backup_vault = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateManagementServerRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateManagementServerRequest.php deleted file mode 100644 index a1eb23931ba0..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CreateManagementServerRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.cloud.backupdr.v1.CreateManagementServerRequest - */ -class CreateManagementServerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The management server project and location in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR - * locations map to Google Cloud regions, for example **us-central1**. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The name of the management server to create. The name must be - * unique for the specified project and location. - * - * Generated from protobuf field string management_server_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $management_server_id = ''; - /** - * Required. A [management server - * resource][google.cloud.backupdr.v1.ManagementServer] - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer management_server = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $management_server = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The management server project and location in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR - * locations map to Google Cloud regions, for example **us-central1**. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * @param \Google\Cloud\BackupDR\V1\ManagementServer $managementServer Required. A [management server - * resource][google.cloud.backupdr.v1.ManagementServer] - * @param string $managementServerId Required. The name of the management server to create. The name must be - * unique for the specified project and location. - * - * @return \Google\Cloud\BackupDR\V1\CreateManagementServerRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\BackupDR\V1\ManagementServer $managementServer, string $managementServerId): self - { - return (new self()) - ->setParent($parent) - ->setManagementServer($managementServer) - ->setManagementServerId($managementServerId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The management server project and location in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR - * locations map to Google Cloud regions, for example **us-central1**. - * @type string $management_server_id - * Required. The name of the management server to create. The name must be - * unique for the specified project and location. - * @type \Google\Cloud\BackupDR\V1\ManagementServer $management_server - * Required. A [management server - * resource][google.cloud.backupdr.v1.ManagementServer] - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Required. The management server project and location in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR - * locations map to Google Cloud regions, for example **us-central1**. - * - * 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 management server project and location in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR - * locations map to Google Cloud regions, for example **us-central1**. - * - * 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 name of the management server to create. The name must be - * unique for the specified project and location. - * - * Generated from protobuf field string management_server_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getManagementServerId() - { - return $this->management_server_id; - } - - /** - * Required. The name of the management server to create. The name must be - * unique for the specified project and location. - * - * Generated from protobuf field string management_server_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setManagementServerId($var) - { - GPBUtil::checkString($var, True); - $this->management_server_id = $var; - - return $this; - } - - /** - * Required. A [management server - * resource][google.cloud.backupdr.v1.ManagementServer] - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer management_server = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\ManagementServer|null - */ - public function getManagementServer() - { - return $this->management_server; - } - - public function hasManagementServer() - { - return isset($this->management_server); - } - - public function clearManagementServer() - { - unset($this->management_server); - } - - /** - * Required. A [management server - * resource][google.cloud.backupdr.v1.ManagementServer] - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer management_server = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\ManagementServer $var - * @return $this - */ - public function setManagementServer($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ManagementServer::class); - $this->management_server = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CustomerEncryptionKey.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CustomerEncryptionKey.php deleted file mode 100644 index da28ac0861a8..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/CustomerEncryptionKey.php +++ /dev/null @@ -1,205 +0,0 @@ -google.cloud.backupdr.v1.CustomerEncryptionKey - */ -class CustomerEncryptionKey extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The service account being used for the encryption request for the - * given KMS key. If absent, the Compute Engine default service account is - * used. - * - * Generated from protobuf field optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $kms_key_service_account = null; - protected $key; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $raw_key - * Optional. Specifies a 256-bit customer-supplied - * encryption key. - * @type string $rsa_encrypted_key - * Optional. RSA-wrapped 2048-bit - * customer-supplied encryption key to either encrypt or decrypt this - * resource. - * @type string $kms_key_name - * Optional. The name of the encryption key that is stored in Google Cloud - * KMS. - * @type string $kms_key_service_account - * Optional. The service account being used for the encryption request for the - * given KMS key. If absent, the Compute Engine default service account is - * used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies a 256-bit customer-supplied - * encryption key. - * - * Generated from protobuf field string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRawKey() - { - return $this->readOneof(1); - } - - public function hasRawKey() - { - return $this->hasOneof(1); - } - - /** - * Optional. Specifies a 256-bit customer-supplied - * encryption key. - * - * Generated from protobuf field string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRawKey($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. RSA-wrapped 2048-bit - * customer-supplied encryption key to either encrypt or decrypt this - * resource. - * - * Generated from protobuf field string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRsaEncryptedKey() - { - return $this->readOneof(2); - } - - public function hasRsaEncryptedKey() - { - return $this->hasOneof(2); - } - - /** - * Optional. RSA-wrapped 2048-bit - * customer-supplied encryption key to either encrypt or decrypt this - * resource. - * - * Generated from protobuf field string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRsaEncryptedKey($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. The name of the encryption key that is stored in Google Cloud - * KMS. - * - * Generated from protobuf field string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKmsKeyName() - { - return $this->readOneof(3); - } - - public function hasKmsKeyName() - { - return $this->hasOneof(3); - } - - /** - * Optional. The name of the encryption key that is stored in Google Cloud - * KMS. - * - * Generated from protobuf field string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. The service account being used for the encryption request for the - * given KMS key. If absent, the Compute Engine default service account is - * used. - * - * Generated from protobuf field optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKmsKeyServiceAccount() - { - return isset($this->kms_key_service_account) ? $this->kms_key_service_account : ''; - } - - public function hasKmsKeyServiceAccount() - { - return isset($this->kms_key_service_account); - } - - public function clearKmsKeyServiceAccount() - { - unset($this->kms_key_service_account); - } - - /** - * Optional. The service account being used for the encryption request for the - * given KMS key. If absent, the Compute Engine default service account is - * used. - * - * Generated from protobuf field optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKmsKeyServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_service_account = $var; - - return $this; - } - - /** - * @return string - */ - public function getKey() - { - return $this->whichOneof("key"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSource.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSource.php deleted file mode 100644 index 5522ae4f3952..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSource.php +++ /dev/null @@ -1,543 +0,0 @@ -google.cloud.backupdr.v1.DataSource - */ -class DataSource extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. Name of the datasource to create. - * It must have the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. - * `{datasource}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the backup vault. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The DataSource resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSource.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the instance was updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Number of backups in the data source. - * - * Generated from protobuf field optional int64 backup_count = 7; - */ - protected $backup_count = null; - /** - * Server specified ETag for the ManagementServer resource to prevent - * simultaneous updates from overwiting each other. - * - * Generated from protobuf field optional string etag = 14; - */ - protected $etag = null; - /** - * The number of bytes (metadata and data) stored in this datasource. - * - * Generated from protobuf field optional int64 total_stored_bytes = 23; - */ - protected $total_stored_bytes = null; - /** - * Output only. The backup configuration state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigState config_state = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $config_state = 0; - /** - * Output only. Details of how the resource is configured for backup. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigInfo backup_config_info = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $backup_config_info = null; - protected $source_resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. Name of the datasource to create. - * It must have the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. - * `{datasource}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the backup vault. - * @type int $state - * Output only. The DataSource resource instance state. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the instance was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the instance was updated. - * @type int|string $backup_count - * Number of backups in the data source. - * @type string $etag - * Server specified ETag for the ManagementServer resource to prevent - * simultaneous updates from overwiting each other. - * @type int|string $total_stored_bytes - * The number of bytes (metadata and data) stored in this datasource. - * @type int $config_state - * Output only. The backup configuration state. - * @type \Google\Cloud\BackupDR\V1\BackupConfigInfo $backup_config_info - * Output only. Details of how the resource is configured for backup. - * @type \Google\Cloud\BackupDR\V1\DataSourceGcpResource $data_source_gcp_resource - * The backed up resource is a Google Cloud resource. - * The word 'DataSource' was included in the names to indicate that this is - * the representation of the Google Cloud resource used within the - * DataSource object. - * @type \Google\Cloud\BackupDR\V1\DataSourceBackupApplianceApplication $data_source_backup_appliance_application - * The backed up resource is a backup appliance application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. Name of the datasource to create. - * It must have the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. - * `{datasource}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the backup vault. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. Name of the datasource to create. - * It must have the - * format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. - * `{datasource}` cannot be changed after creation. It must be between 3-63 - * characters long and must be unique within the backup vault. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The DataSource resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSource.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The DataSource resource instance state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSource.State state = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\DataSource\State::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * No labels currently defined: - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 5 [(.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. The time when the instance was created. - * - * Generated from protobuf field optional .google.protobuf.Timestamp create_time = 5 [(.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. The time when the instance was updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 6 [(.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. The time when the instance was updated. - * - * Generated from protobuf field optional .google.protobuf.Timestamp update_time = 6 [(.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; - } - - /** - * Number of backups in the data source. - * - * Generated from protobuf field optional int64 backup_count = 7; - * @return int|string - */ - public function getBackupCount() - { - return isset($this->backup_count) ? $this->backup_count : 0; - } - - public function hasBackupCount() - { - return isset($this->backup_count); - } - - public function clearBackupCount() - { - unset($this->backup_count); - } - - /** - * Number of backups in the data source. - * - * Generated from protobuf field optional int64 backup_count = 7; - * @param int|string $var - * @return $this - */ - public function setBackupCount($var) - { - GPBUtil::checkInt64($var); - $this->backup_count = $var; - - return $this; - } - - /** - * Server specified ETag for the ManagementServer resource to prevent - * simultaneous updates from overwiting each other. - * - * Generated from protobuf field optional string etag = 14; - * @return string - */ - public function getEtag() - { - return isset($this->etag) ? $this->etag : ''; - } - - public function hasEtag() - { - return isset($this->etag); - } - - public function clearEtag() - { - unset($this->etag); - } - - /** - * Server specified ETag for the ManagementServer resource to prevent - * simultaneous updates from overwiting each other. - * - * Generated from protobuf field optional string etag = 14; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * The number of bytes (metadata and data) stored in this datasource. - * - * Generated from protobuf field optional int64 total_stored_bytes = 23; - * @return int|string - */ - public function getTotalStoredBytes() - { - return isset($this->total_stored_bytes) ? $this->total_stored_bytes : 0; - } - - public function hasTotalStoredBytes() - { - return isset($this->total_stored_bytes); - } - - public function clearTotalStoredBytes() - { - unset($this->total_stored_bytes); - } - - /** - * The number of bytes (metadata and data) stored in this datasource. - * - * Generated from protobuf field optional int64 total_stored_bytes = 23; - * @param int|string $var - * @return $this - */ - public function setTotalStoredBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_stored_bytes = $var; - - return $this; - } - - /** - * Output only. The backup configuration state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigState config_state = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getConfigState() - { - return $this->config_state; - } - - /** - * Output only. The backup configuration state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigState config_state = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setConfigState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupConfigState::class); - $this->config_state = $var; - - return $this; - } - - /** - * Output only. Details of how the resource is configured for backup. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigInfo backup_config_info = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\BackupConfigInfo|null - */ - public function getBackupConfigInfo() - { - return $this->backup_config_info; - } - - public function hasBackupConfigInfo() - { - return isset($this->backup_config_info); - } - - public function clearBackupConfigInfo() - { - unset($this->backup_config_info); - } - - /** - * Output only. Details of how the resource is configured for backup. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupConfigInfo backup_config_info = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\BackupConfigInfo $var - * @return $this - */ - public function setBackupConfigInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupConfigInfo::class); - $this->backup_config_info = $var; - - return $this; - } - - /** - * The backed up resource is a Google Cloud resource. - * The word 'DataSource' was included in the names to indicate that this is - * the representation of the Google Cloud resource used within the - * DataSource object. - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSourceGcpResource data_source_gcp_resource = 26; - * @return \Google\Cloud\BackupDR\V1\DataSourceGcpResource|null - */ - public function getDataSourceGcpResource() - { - return $this->readOneof(26); - } - - public function hasDataSourceGcpResource() - { - return $this->hasOneof(26); - } - - /** - * The backed up resource is a Google Cloud resource. - * The word 'DataSource' was included in the names to indicate that this is - * the representation of the Google Cloud resource used within the - * DataSource object. - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSourceGcpResource data_source_gcp_resource = 26; - * @param \Google\Cloud\BackupDR\V1\DataSourceGcpResource $var - * @return $this - */ - public function setDataSourceGcpResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\DataSourceGcpResource::class); - $this->writeOneof(26, $var); - - return $this; - } - - /** - * The backed up resource is a backup appliance application. - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSourceBackupApplianceApplication data_source_backup_appliance_application = 27; - * @return \Google\Cloud\BackupDR\V1\DataSourceBackupApplianceApplication|null - */ - public function getDataSourceBackupApplianceApplication() - { - return $this->readOneof(27); - } - - public function hasDataSourceBackupApplianceApplication() - { - return $this->hasOneof(27); - } - - /** - * The backed up resource is a backup appliance application. - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSourceBackupApplianceApplication data_source_backup_appliance_application = 27; - * @param \Google\Cloud\BackupDR\V1\DataSourceBackupApplianceApplication $var - * @return $this - */ - public function setDataSourceBackupApplianceApplication($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\DataSourceBackupApplianceApplication::class); - $this->writeOneof(27, $var); - - return $this; - } - - /** - * @return string - */ - public function getSourceResource() - { - return $this->whichOneof("source_resource"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSource/State.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSource/State.php deleted file mode 100644 index 3cec4aa57249..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSource/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.backupdr.v1.DataSource.State - */ -class State -{ - /** - * State not set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The data source is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The data source has been created and is fully usable. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The data source is being deleted. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The data source is experiencing an issue and might be unusable. - * - * Generated from protobuf enum ERROR = 4; - */ - const ERROR = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - 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(State::class, \Google\Cloud\BackupDR\V1\DataSource_State::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSourceBackupApplianceApplication.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSourceBackupApplianceApplication.php deleted file mode 100644 index 07e5a34b90f2..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSourceBackupApplianceApplication.php +++ /dev/null @@ -1,272 +0,0 @@ -google.cloud.backupdr.v1.DataSourceBackupApplianceApplication - */ -class DataSourceBackupApplianceApplication extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the Application as known to the Backup Appliance. - * - * Generated from protobuf field string application_name = 1; - */ - protected $application_name = ''; - /** - * Appliance name. - * - * Generated from protobuf field string backup_appliance = 2; - */ - protected $backup_appliance = ''; - /** - * Appliance Id of the Backup Appliance. - * - * Generated from protobuf field int64 appliance_id = 3; - */ - protected $appliance_id = 0; - /** - * The type of the application. e.g. VMBackup - * - * Generated from protobuf field string type = 4; - */ - protected $type = ''; - /** - * The appid field of the application within the Backup Appliance. - * - * Generated from protobuf field int64 application_id = 8; - */ - protected $application_id = 0; - /** - * Hostname of the host where the application is running. - * - * Generated from protobuf field string hostname = 6; - */ - protected $hostname = ''; - /** - * Hostid of the application host. - * - * Generated from protobuf field int64 host_id = 7; - */ - protected $host_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_name - * The name of the Application as known to the Backup Appliance. - * @type string $backup_appliance - * Appliance name. - * @type int|string $appliance_id - * Appliance Id of the Backup Appliance. - * @type string $type - * The type of the application. e.g. VMBackup - * @type int|string $application_id - * The appid field of the application within the Backup Appliance. - * @type string $hostname - * Hostname of the host where the application is running. - * @type int|string $host_id - * Hostid of the application host. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * The name of the Application as known to the Backup Appliance. - * - * Generated from protobuf field string application_name = 1; - * @return string - */ - public function getApplicationName() - { - return $this->application_name; - } - - /** - * The name of the Application as known to the Backup Appliance. - * - * Generated from protobuf field string application_name = 1; - * @param string $var - * @return $this - */ - public function setApplicationName($var) - { - GPBUtil::checkString($var, True); - $this->application_name = $var; - - return $this; - } - - /** - * Appliance name. - * - * Generated from protobuf field string backup_appliance = 2; - * @return string - */ - public function getBackupAppliance() - { - return $this->backup_appliance; - } - - /** - * Appliance name. - * - * Generated from protobuf field string backup_appliance = 2; - * @param string $var - * @return $this - */ - public function setBackupAppliance($var) - { - GPBUtil::checkString($var, True); - $this->backup_appliance = $var; - - return $this; - } - - /** - * Appliance Id of the Backup Appliance. - * - * Generated from protobuf field int64 appliance_id = 3; - * @return int|string - */ - public function getApplianceId() - { - return $this->appliance_id; - } - - /** - * Appliance Id of the Backup Appliance. - * - * Generated from protobuf field int64 appliance_id = 3; - * @param int|string $var - * @return $this - */ - public function setApplianceId($var) - { - GPBUtil::checkInt64($var); - $this->appliance_id = $var; - - return $this; - } - - /** - * The type of the application. e.g. VMBackup - * - * Generated from protobuf field string type = 4; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the application. e.g. VMBackup - * - * Generated from protobuf field string type = 4; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The appid field of the application within the Backup Appliance. - * - * Generated from protobuf field int64 application_id = 8; - * @return int|string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * The appid field of the application within the Backup Appliance. - * - * Generated from protobuf field int64 application_id = 8; - * @param int|string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkInt64($var); - $this->application_id = $var; - - return $this; - } - - /** - * Hostname of the host where the application is running. - * - * Generated from protobuf field string hostname = 6; - * @return string - */ - public function getHostname() - { - return $this->hostname; - } - - /** - * Hostname of the host where the application is running. - * - * Generated from protobuf field string hostname = 6; - * @param string $var - * @return $this - */ - public function setHostname($var) - { - GPBUtil::checkString($var, True); - $this->hostname = $var; - - return $this; - } - - /** - * Hostid of the application host. - * - * Generated from protobuf field int64 host_id = 7; - * @return int|string - */ - public function getHostId() - { - return $this->host_id; - } - - /** - * Hostid of the application host. - * - * Generated from protobuf field int64 host_id = 7; - * @param int|string $var - * @return $this - */ - public function setHostId($var) - { - GPBUtil::checkInt64($var); - $this->host_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSourceGcpResource.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSourceGcpResource.php deleted file mode 100644 index dfd4a646d3ee..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DataSourceGcpResource.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.backupdr.v1.DataSourceGcpResource - */ -class DataSourceGcpResource extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Full resource pathname URL of the source Google Cloud - * resource. - * - * Generated from protobuf field string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $gcp_resourcename = ''; - /** - * Location of the resource: //"global"/"unspecified". - * - * Generated from protobuf field string location = 2; - */ - protected $location = ''; - /** - * The type of the Google Cloud resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - protected $gcp_resource_properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcp_resourcename - * Output only. Full resource pathname URL of the source Google Cloud - * resource. - * @type string $location - * Location of the resource: //"global"/"unspecified". - * @type string $type - * The type of the Google Cloud resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * @type \Google\Cloud\BackupDR\V1\ComputeInstanceDataSourceProperties $compute_instance_datasource_properties - * ComputeInstanceDataSourceProperties has a subset of Compute Instance - * properties that are useful at the Datasource level. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Full resource pathname URL of the source Google Cloud - * resource. - * - * Generated from protobuf field string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGcpResourcename() - { - return $this->gcp_resourcename; - } - - /** - * Output only. Full resource pathname URL of the source Google Cloud - * resource. - * - * Generated from protobuf field string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGcpResourcename($var) - { - GPBUtil::checkString($var, True); - $this->gcp_resourcename = $var; - - return $this; - } - - /** - * Location of the resource: //"global"/"unspecified". - * - * Generated from protobuf field string location = 2; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location of the resource: //"global"/"unspecified". - * - * Generated from protobuf field string location = 2; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * The type of the Google Cloud resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the Google Cloud resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * - * Generated from protobuf field string type = 3; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * ComputeInstanceDataSourceProperties has a subset of Compute Instance - * properties that are useful at the Datasource level. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; - * @return \Google\Cloud\BackupDR\V1\ComputeInstanceDataSourceProperties|null - */ - public function getComputeInstanceDatasourceProperties() - { - return $this->readOneof(4); - } - - public function hasComputeInstanceDatasourceProperties() - { - return $this->hasOneof(4); - } - - /** - * ComputeInstanceDataSourceProperties has a subset of Compute Instance - * properties that are useful at the Datasource level. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; - * @param \Google\Cloud\BackupDR\V1\ComputeInstanceDataSourceProperties $var - * @return $this - */ - public function setComputeInstanceDatasourceProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ComputeInstanceDataSourceProperties::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getGcpResourceProperties() - { - return $this->whichOneof("gcp_resource_properties"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupPlanAssociationRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupPlanAssociationRequest.php deleted file mode 100644 index d89d4149bfa5..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupPlanAssociationRequest.php +++ /dev/null @@ -1,160 +0,0 @@ -google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest - */ -class DeleteBackupPlanAssociationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * Please see {@see BackupDRClient::backupPlanAssociationName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\DeleteBackupPlanAssociationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * 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. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupPlanRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupPlanRequest.php deleted file mode 100644 index 33d0f577a1de..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupPlanRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.backupdr.v1.DeleteBackupPlanRequest - */ -class DeleteBackupPlanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the `BackupPlan` to delete. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. The resource name of the `BackupPlan` to delete. - * - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * Please see {@see BackupDRClient::backupPlanName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\DeleteBackupPlanRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the `BackupPlan` to delete. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the `BackupPlan` to delete. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * 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 `BackupPlan` to delete. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupRequest.php deleted file mode 100644 index d3b5a8223f9c..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.backupdr.v1.DeleteBackupRequest - */ -class DeleteBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource. Please see - * {@see BackupDRClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\DeleteBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * 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. Name of the resource. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupVaultRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupVaultRequest.php deleted file mode 100644 index 2408f02e4d27..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteBackupVaultRequest.php +++ /dev/null @@ -1,311 +0,0 @@ -google.cloud.backupdr.v1.DeleteBackupVaultRequest - */ -class DeleteBackupVaultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - /** - * Optional. If set to true, any data source from this backup vault will also - * be deleted. - * - * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - /** - * The current etag of the backup vault. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. If true and the BackupVault is not found, the request will - * succeed but no action will be taken. - * - * Generated from protobuf field bool allow_missing = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param string $name Required. Name of the resource. Please see - * {@see BackupDRClient::backupVaultName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\DeleteBackupVaultRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $force - * Optional. If set to true, any data source from this backup vault will also - * be deleted. - * @type string $etag - * The current etag of the backup vault. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * @type bool $allow_missing - * Optional. If true and the BackupVault is not found, the request will - * succeed but no action will be taken. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * 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. Name of the resource. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, any data source from this backup vault will also - * be deleted. - * - * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any data source from this backup vault will also - * be deleted. - * - * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - - /** - * The current etag of the backup vault. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the backup vault. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. If true and the BackupVault is not found, the request will - * succeed but no action will be taken. - * - * Generated from protobuf field bool allow_missing = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If true and the BackupVault is not found, the request will - * succeed but no action will be taken. - * - * Generated from protobuf field bool allow_missing = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteManagementServerRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteManagementServerRequest.php deleted file mode 100644 index c8bc344f88f3..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DeleteManagementServerRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.backupdr.v1.DeleteManagementServerRequest - */ -class DeleteManagementServerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see BackupDRClient::managementServerName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\DeleteManagementServerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * 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. Name of the resource - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DisplayDevice.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DisplayDevice.php deleted file mode 100644 index fd3d2d33844d..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/DisplayDevice.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.backupdr.v1.DisplayDevice - */ -class DisplayDevice extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Enables display for the Compute Engine VM - * - * Generated from protobuf field optional bool enable_display = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_display = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_display - * Optional. Enables display for the Compute Engine VM - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Enables display for the Compute Engine VM - * - * Generated from protobuf field optional bool enable_display = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableDisplay() - { - return isset($this->enable_display) ? $this->enable_display : false; - } - - public function hasEnableDisplay() - { - return isset($this->enable_display); - } - - public function clearEnableDisplay() - { - unset($this->enable_display); - } - - /** - * Optional. Enables display for the Compute Engine VM - * - * Generated from protobuf field optional bool enable_display = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableDisplay($var) - { - GPBUtil::checkBool($var); - $this->enable_display = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Entry.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Entry.php deleted file mode 100644 index 43f3558be810..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Entry.php +++ /dev/null @@ -1,133 +0,0 @@ -google.cloud.backupdr.v1.Entry - */ -class Entry extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Key for the metadata entry. - * - * Generated from protobuf field optional string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key = null; - /** - * Optional. Value for the metadata entry. These are free-form strings, and - * only have meaning as interpreted by the image running in the instance. The - * only restriction placed on values is that their size must be less than - * or equal to 262144 bytes (256 KiB). - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Optional. Key for the metadata entry. - * @type string $value - * Optional. Value for the metadata entry. These are free-form strings, and - * only have meaning as interpreted by the image running in the instance. The - * only restriction placed on values is that their size must be less than - * or equal to 262144 bytes (256 KiB). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Key for the metadata entry. - * - * Generated from protobuf field optional string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKey() - { - return isset($this->key) ? $this->key : ''; - } - - public function hasKey() - { - return isset($this->key); - } - - public function clearKey() - { - unset($this->key); - } - - /** - * Optional. Key for the metadata entry. - * - * Generated from protobuf field optional string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Optional. Value for the metadata entry. These are free-form strings, and - * only have meaning as interpreted by the image running in the instance. The - * only restriction placed on values is that their size must be less than - * or equal to 262144 bytes (256 KiB). - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getValue() - { - return isset($this->value) ? $this->value : ''; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Optional. Value for the metadata entry. These are free-form strings, and - * only have meaning as interpreted by the image running in the instance. The - * only restriction placed on values is that their size must be less than - * or equal to 262144 bytes (256 KiB). - * - * Generated from protobuf field optional string value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/FetchUsableBackupVaultsRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/FetchUsableBackupVaultsRequest.php deleted file mode 100644 index 142606583a7a..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/FetchUsableBackupVaultsRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest - */ -class FetchUsableBackupVaultsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\FetchUsableBackupVaultsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * - * 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 project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/FetchUsableBackupVaultsResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/FetchUsableBackupVaultsResponse.php deleted file mode 100644 index 058334542e91..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/FetchUsableBackupVaultsResponse.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse - */ -class FetchUsableBackupVaultsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupVault backup_vaults = 1; - */ - private $backup_vaults; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\BackupVault>|\Google\Protobuf\Internal\RepeatedField $backup_vaults - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupVault backup_vaults = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackupVaults() - { - return $this->backup_vaults; - } - - /** - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupVault backup_vaults = 1; - * @param array<\Google\Cloud\BackupDR\V1\BackupVault>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackupVaults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupVault::class); - $this->backup_vaults = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GcpBackupConfig.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GcpBackupConfig.php deleted file mode 100644 index 5e8d78bb7496..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GcpBackupConfig.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.backupdr.v1.GcpBackupConfig - */ -class GcpBackupConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the backup plan. - * - * Generated from protobuf field string backup_plan = 1 [(.google.api.resource_reference) = { - */ - protected $backup_plan = ''; - /** - * The description of the backup plan. - * - * Generated from protobuf field string backup_plan_description = 2; - */ - protected $backup_plan_description = ''; - /** - * The name of the backup plan association. - * - * Generated from protobuf field string backup_plan_association = 3 [(.google.api.resource_reference) = { - */ - protected $backup_plan_association = ''; - /** - * The names of the backup plan rules which point to this backupvault - * - * Generated from protobuf field repeated string backup_plan_rules = 4; - */ - private $backup_plan_rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $backup_plan - * The name of the backup plan. - * @type string $backup_plan_description - * The description of the backup plan. - * @type string $backup_plan_association - * The name of the backup plan association. - * @type array|\Google\Protobuf\Internal\RepeatedField $backup_plan_rules - * The names of the backup plan rules which point to this backupvault - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * The name of the backup plan. - * - * Generated from protobuf field string backup_plan = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getBackupPlan() - { - return $this->backup_plan; - } - - /** - * The name of the backup plan. - * - * Generated from protobuf field string backup_plan = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackupPlan($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan = $var; - - return $this; - } - - /** - * The description of the backup plan. - * - * Generated from protobuf field string backup_plan_description = 2; - * @return string - */ - public function getBackupPlanDescription() - { - return $this->backup_plan_description; - } - - /** - * The description of the backup plan. - * - * Generated from protobuf field string backup_plan_description = 2; - * @param string $var - * @return $this - */ - public function setBackupPlanDescription($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan_description = $var; - - return $this; - } - - /** - * The name of the backup plan association. - * - * Generated from protobuf field string backup_plan_association = 3 [(.google.api.resource_reference) = { - * @return string - */ - public function getBackupPlanAssociation() - { - return $this->backup_plan_association; - } - - /** - * The name of the backup plan association. - * - * Generated from protobuf field string backup_plan_association = 3 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackupPlanAssociation($var) - { - GPBUtil::checkString($var, True); - $this->backup_plan_association = $var; - - return $this; - } - - /** - * The names of the backup plan rules which point to this backupvault - * - * Generated from protobuf field repeated string backup_plan_rules = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackupPlanRules() - { - return $this->backup_plan_rules; - } - - /** - * The names of the backup plan rules which point to this backupvault - * - * Generated from protobuf field repeated string backup_plan_rules = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackupPlanRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->backup_plan_rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GcpResource.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GcpResource.php deleted file mode 100644 index dd1322beaae1..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GcpResource.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.backupdr.v1.GcpResource - */ -class GcpResource extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the Google Cloud resource. - * - * Generated from protobuf field string gcp_resourcename = 1; - */ - protected $gcp_resourcename = ''; - /** - * Location of the resource: //"global"/"unspecified". - * - * Generated from protobuf field string location = 2; - */ - protected $location = ''; - /** - * Type of the resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcp_resourcename - * Name of the Google Cloud resource. - * @type string $location - * Location of the resource: //"global"/"unspecified". - * @type string $type - * Type of the resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Name of the Google Cloud resource. - * - * Generated from protobuf field string gcp_resourcename = 1; - * @return string - */ - public function getGcpResourcename() - { - return $this->gcp_resourcename; - } - - /** - * Name of the Google Cloud resource. - * - * Generated from protobuf field string gcp_resourcename = 1; - * @param string $var - * @return $this - */ - public function setGcpResourcename($var) - { - GPBUtil::checkString($var, True); - $this->gcp_resourcename = $var; - - return $this; - } - - /** - * Location of the resource: //"global"/"unspecified". - * - * Generated from protobuf field string location = 2; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location of the resource: //"global"/"unspecified". - * - * Generated from protobuf field string location = 2; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Type of the resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Type of the resource. Use the Unified Resource Type, - * eg. compute.googleapis.com/Instance. - * - * Generated from protobuf field string type = 3; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupPlanAssociationRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupPlanAssociationRequest.php deleted file mode 100644 index e17c8ba0816d..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupPlanAssociationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.backupdr.v1.GetBackupPlanAssociationRequest - */ -class GetBackupPlanAssociationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * Please see {@see BackupDRClient::backupPlanAssociationName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\GetBackupPlanAssociationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * 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. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupPlanRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupPlanRequest.php deleted file mode 100644 index 5af2986cc0d1..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupPlanRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.backupdr.v1.GetBackupPlanRequest - */ -class GetBackupPlanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the `BackupPlan` to retrieve. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the `BackupPlan` to retrieve. - * - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * Please see {@see BackupDRClient::backupPlanName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\GetBackupPlanRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the `BackupPlan` to retrieve. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the `BackupPlan` to retrieve. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * 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 `BackupPlan` to retrieve. - * Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` - * - * 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupRequest.php deleted file mode 100644 index cef977871e55..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.backupdr.v1.GetBackupRequest - */ -class GetBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}' - * Please see {@see BackupDRClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\GetBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}' - * @type int $view - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}' - * - * 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. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}' - * - * 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; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupVaultRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupVaultRequest.php deleted file mode 100644 index de3959298ba2..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetBackupVaultRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.backupdr.v1.GetBackupVaultRequest - */ -class GetBackupVaultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the backupvault store resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVaultView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. Name of the backupvault store resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}' - * Please see {@see BackupDRClient::backupVaultName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\GetBackupVaultRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the backupvault store resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}' - * @type int $view - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the backupvault store resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}' - * - * 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. Name of the backupvault store resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}' - * - * 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; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVaultView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVaultView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupVaultView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetDataSourceRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetDataSourceRequest.php deleted file mode 100644 index 27f9c86ff9b1..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetDataSourceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.backupdr.v1.GetDataSourceRequest - */ -class GetDataSourceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}' - * Please see {@see BackupDRClient::dataSourceName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\GetDataSourceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}' - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}' - * - * 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. Name of the data source resource name, in the format - * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}' - * - * 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetManagementServerRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetManagementServerRequest.php deleted file mode 100644 index 7c83be3986fc..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GetManagementServerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.backupdr.v1.GetManagementServerRequest - */ -class GetManagementServerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the management server resource name, in the format - * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}' - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the management server resource name, in the format - * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}' - * Please see {@see BackupDRClient::managementServerName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\GetManagementServerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the management server resource name, in the format - * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}' - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the management server resource name, in the format - * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}' - * - * 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. Name of the management server resource name, in the format - * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}' - * - * 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GuestOsFeature.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GuestOsFeature.php deleted file mode 100644 index 93d51da05752..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GuestOsFeature.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.backupdr.v1.GuestOsFeature - */ -class GuestOsFeature extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of a supported feature. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.GuestOsFeature.FeatureType type = 1; - */ - protected $type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The ID of a supported feature. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * The ID of a supported feature. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.GuestOsFeature.FeatureType type = 1; - * @return int - */ - public function getType() - { - return isset($this->type) ? $this->type : 0; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * The ID of a supported feature. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.GuestOsFeature.FeatureType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\GuestOsFeature\FeatureType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GuestOsFeature/FeatureType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GuestOsFeature/FeatureType.php deleted file mode 100644 index 1eaa457b98e2..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/GuestOsFeature/FeatureType.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.backupdr.v1.GuestOsFeature.FeatureType - */ -class FeatureType -{ - /** - * Default value, which is unused. - * - * Generated from protobuf enum FEATURE_TYPE_UNSPECIFIED = 0; - */ - const FEATURE_TYPE_UNSPECIFIED = 0; - /** - * VIRTIO_SCSI_MULTIQUEUE feature type. - * - * Generated from protobuf enum VIRTIO_SCSI_MULTIQUEUE = 1; - */ - const VIRTIO_SCSI_MULTIQUEUE = 1; - /** - * WINDOWS feature type. - * - * Generated from protobuf enum WINDOWS = 2; - */ - const WINDOWS = 2; - /** - * MULTI_IP_SUBNET feature type. - * - * Generated from protobuf enum MULTI_IP_SUBNET = 3; - */ - const MULTI_IP_SUBNET = 3; - /** - * UEFI_COMPATIBLE feature type. - * - * Generated from protobuf enum UEFI_COMPATIBLE = 4; - */ - const UEFI_COMPATIBLE = 4; - /** - * SECURE_BOOT feature type. - * - * Generated from protobuf enum SECURE_BOOT = 5; - */ - const SECURE_BOOT = 5; - /** - * GVNIC feature type. - * - * Generated from protobuf enum GVNIC = 6; - */ - const GVNIC = 6; - /** - * SEV_CAPABLE feature type. - * - * Generated from protobuf enum SEV_CAPABLE = 7; - */ - const SEV_CAPABLE = 7; - /** - * BARE_METAL_LINUX_COMPATIBLE feature type. - * - * Generated from protobuf enum BARE_METAL_LINUX_COMPATIBLE = 8; - */ - const BARE_METAL_LINUX_COMPATIBLE = 8; - /** - * SUSPEND_RESUME_COMPATIBLE feature type. - * - * Generated from protobuf enum SUSPEND_RESUME_COMPATIBLE = 9; - */ - const SUSPEND_RESUME_COMPATIBLE = 9; - /** - * SEV_LIVE_MIGRATABLE feature type. - * - * Generated from protobuf enum SEV_LIVE_MIGRATABLE = 10; - */ - const SEV_LIVE_MIGRATABLE = 10; - /** - * SEV_SNP_CAPABLE feature type. - * - * Generated from protobuf enum SEV_SNP_CAPABLE = 11; - */ - const SEV_SNP_CAPABLE = 11; - /** - * TDX_CAPABLE feature type. - * - * Generated from protobuf enum TDX_CAPABLE = 12; - */ - const TDX_CAPABLE = 12; - /** - * IDPF feature type. - * - * Generated from protobuf enum IDPF = 13; - */ - const IDPF = 13; - /** - * SEV_LIVE_MIGRATABLE_V2 feature type. - * - * Generated from protobuf enum SEV_LIVE_MIGRATABLE_V2 = 14; - */ - const SEV_LIVE_MIGRATABLE_V2 = 14; - - private static $valueToName = [ - self::FEATURE_TYPE_UNSPECIFIED => 'FEATURE_TYPE_UNSPECIFIED', - self::VIRTIO_SCSI_MULTIQUEUE => 'VIRTIO_SCSI_MULTIQUEUE', - self::WINDOWS => 'WINDOWS', - self::MULTI_IP_SUBNET => 'MULTI_IP_SUBNET', - self::UEFI_COMPATIBLE => 'UEFI_COMPATIBLE', - self::SECURE_BOOT => 'SECURE_BOOT', - self::GVNIC => 'GVNIC', - self::SEV_CAPABLE => 'SEV_CAPABLE', - self::BARE_METAL_LINUX_COMPATIBLE => 'BARE_METAL_LINUX_COMPATIBLE', - self::SUSPEND_RESUME_COMPATIBLE => 'SUSPEND_RESUME_COMPATIBLE', - self::SEV_LIVE_MIGRATABLE => 'SEV_LIVE_MIGRATABLE', - self::SEV_SNP_CAPABLE => 'SEV_SNP_CAPABLE', - self::TDX_CAPABLE => 'TDX_CAPABLE', - self::IDPF => 'IDPF', - self::SEV_LIVE_MIGRATABLE_V2 => 'SEV_LIVE_MIGRATABLE_V2', - ]; - - 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(FeatureType::class, \Google\Cloud\BackupDR\V1\GuestOsFeature_FeatureType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/InstanceParams.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/InstanceParams.php deleted file mode 100644 index 525d36ec6f3d..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/InstanceParams.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.backupdr.v1.InstanceParams - */ -class InstanceParams extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Resource manager tags to be bound to the instance. - * - * Generated from protobuf field map resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_manager_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $resource_manager_tags - * Optional. Resource manager tags to be bound to the instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Resource manager tags to be bound to the instance. - * - * Generated from protobuf field map resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceManagerTags() - { - return $this->resource_manager_tags; - } - - /** - * Optional. Resource manager tags to be bound to the instance. - * - * Generated from protobuf field map resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceManagerTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_manager_tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/KeyRevocationActionType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/KeyRevocationActionType.php deleted file mode 100644 index 9922c9b37b07..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/KeyRevocationActionType.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.backupdr.v1.KeyRevocationActionType - */ -class KeyRevocationActionType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 0; - */ - const KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 0; - /** - * Indicates user chose no operation. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Indicates user chose to opt for VM shutdown on key revocation. - * - * Generated from protobuf enum STOP = 2; - */ - const STOP = 2; - - private static $valueToName = [ - self::KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED => 'KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED', - self::NONE => 'NONE', - self::STOP => 'STOP', - ]; - - 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/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlanAssociationsRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlanAssociationsRequest.php deleted file mode 100644 index 1cd640705bf5..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlanAssociationsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest - */ -class ListBackupPlanAssociationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location for which to retrieve backup Plan - * Associations information, in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations - * map to GCP regions, for example **us-central1**. To retrieve backup plan - * associations for all locations, use "-" for the - * `{location}` value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The project and location for which to retrieve backup Plan - * Associations information, in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations - * map to GCP regions, for example **us-central1**. To retrieve backup plan - * associations for all locations, use "-" for the - * `{location}` value. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\ListBackupPlanAssociationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location for which to retrieve backup Plan - * Associations information, in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations - * map to GCP regions, for example **us-central1**. To retrieve backup plan - * associations for all locations, use "-" for the - * `{location}` value. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location for which to retrieve backup Plan - * Associations information, in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations - * map to GCP regions, for example **us-central1**. To retrieve backup plan - * associations for all locations, use "-" for the - * `{location}` value. - * - * 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 project and location for which to retrieve backup Plan - * Associations information, in the format - * `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations - * map to GCP regions, for example **us-central1**. To retrieve backup plan - * associations for all locations, use "-" for the - * `{location}` value. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlanAssociationsResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlanAssociationsResponse.php deleted file mode 100644 index a92169b9c6c0..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlanAssociationsResponse.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse - */ -class ListBackupPlanAssociationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Backup Plan Associations in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup plan associations in reachable - * locations and the 'unreachable' field will be populated with a list of - * unreachable locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_associations = 1; - */ - private $backup_plan_associations; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\BackupPlanAssociation>|\Google\Protobuf\Internal\RepeatedField $backup_plan_associations - * The list of Backup Plan Associations in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup plan associations in reachable - * locations and the 'unreachable' field will be populated with a list of - * unreachable locations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * The list of Backup Plan Associations in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup plan associations in reachable - * locations and the 'unreachable' field will be populated with a list of - * unreachable locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_associations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackupPlanAssociations() - { - return $this->backup_plan_associations; - } - - /** - * The list of Backup Plan Associations in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup plan associations in reachable - * locations and the 'unreachable' field will be populated with a list of - * unreachable locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupPlanAssociation backup_plan_associations = 1; - * @param array<\Google\Cloud\BackupDR\V1\BackupPlanAssociation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackupPlanAssociations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupPlanAssociation::class); - $this->backup_plan_associations = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlansRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlansRequest.php deleted file mode 100644 index 59cf4b63f0d6..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlansRequest.php +++ /dev/null @@ -1,277 +0,0 @@ -google.cloud.backupdr.v1.ListBackupPlansRequest - */ -class ListBackupPlansRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location for which to retrieve `BackupPlans` - * information. Format: `projects/{project}/locations/{location}`. In Cloud - * BackupDR, locations map to GCP regions, for e.g. **us-central1**. To - * retrieve backup plans for all locations, use "-" for the - * `{location}` value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `BackupPlans` to return in a single - * response. If not specified, a default value will be chosen by the service. - * Note that the response may include a partial list and a caller should - * only rely on the response's - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The value of - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * received from a previous `ListBackupPlans` call. - * Provide this to retrieve the subsequent page in a multi-page list of - * results. When paginating, all other parameters provided to - * `ListBackupPlans` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Field match expression used to filter the results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Field by which to sort the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The project and location for which to retrieve `BackupPlans` - * information. Format: `projects/{project}/locations/{location}`. In Cloud - * BackupDR, locations map to GCP regions, for e.g. **us-central1**. To - * retrieve backup plans for all locations, use "-" for the - * `{location}` value. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\ListBackupPlansRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location for which to retrieve `BackupPlans` - * information. Format: `projects/{project}/locations/{location}`. In Cloud - * BackupDR, locations map to GCP regions, for e.g. **us-central1**. To - * retrieve backup plans for all locations, use "-" for the - * `{location}` value. - * @type int $page_size - * Optional. The maximum number of `BackupPlans` to return in a single - * response. If not specified, a default value will be chosen by the service. - * Note that the response may include a partial list and a caller should - * only rely on the response's - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * to determine if there are more instances left to be queried. - * @type string $page_token - * Optional. The value of - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * received from a previous `ListBackupPlans` call. - * Provide this to retrieve the subsequent page in a multi-page list of - * results. When paginating, all other parameters provided to - * `ListBackupPlans` must match the call that provided the page token. - * @type string $filter - * Optional. Field match expression used to filter the results. - * @type string $order_by - * Optional. Field by which to sort the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location for which to retrieve `BackupPlans` - * information. Format: `projects/{project}/locations/{location}`. In Cloud - * BackupDR, locations map to GCP regions, for e.g. **us-central1**. To - * retrieve backup plans for all locations, use "-" for the - * `{location}` value. - * - * 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 project and location for which to retrieve `BackupPlans` - * information. Format: `projects/{project}/locations/{location}`. In Cloud - * BackupDR, locations map to GCP regions, for e.g. **us-central1**. To - * retrieve backup plans for all locations, use "-" for the - * `{location}` value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `BackupPlans` to return in a single - * response. If not specified, a default value will be chosen by the service. - * Note that the response may include a partial list and a caller should - * only rely on the response's - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `BackupPlans` to return in a single - * response. If not specified, a default value will be chosen by the service. - * Note that the response may include a partial list and a caller should - * only rely on the response's - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * to determine if there are more instances left to be queried. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. The value of - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * received from a previous `ListBackupPlans` call. - * Provide this to retrieve the subsequent page in a multi-page list of - * results. When paginating, all other parameters provided to - * `ListBackupPlans` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The value of - * [next_page_token][google.cloud.backupdr.v1.ListBackupPlansResponse.next_page_token] - * received from a previous `ListBackupPlans` call. - * Provide this to retrieve the subsequent page in a multi-page list of - * results. When paginating, all other parameters provided to - * `ListBackupPlans` must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Field match expression used to filter the results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Field match expression used to filter the results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Field by which to sort the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Field by which to sort the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlansResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlansResponse.php deleted file mode 100644 index ff5e2d64a27c..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupPlansResponse.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.backupdr.v1.ListBackupPlansResponse - */ -class ListBackupPlansResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of `BackupPlans` in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of resources from all locations. In case any location is unreachable, - * the response will only return backup plans in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * BackupPlan - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupPlan backup_plans = 1; - */ - private $backup_plans; - /** - * A token which may be sent as - * [page_token][google.cloud.backupdr.v1.ListBackupPlansRequest.page_token] in - * a subsequent `ListBackupPlans` call to retrieve the next page of results. - * If this field is omitted or empty, then there are no more results to - * return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\BackupPlan>|\Google\Protobuf\Internal\RepeatedField $backup_plans - * The list of `BackupPlans` in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of resources from all locations. In case any location is unreachable, - * the response will only return backup plans in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * BackupPlan - * @type string $next_page_token - * A token which may be sent as - * [page_token][google.cloud.backupdr.v1.ListBackupPlansRequest.page_token] in - * a subsequent `ListBackupPlans` call to retrieve the next page of results. - * If this field is omitted or empty, then there are no more results to - * return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * The list of `BackupPlans` in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of resources from all locations. In case any location is unreachable, - * the response will only return backup plans in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * BackupPlan - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupPlan backup_plans = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackupPlans() - { - return $this->backup_plans; - } - - /** - * The list of `BackupPlans` in the project for the specified - * location. - * If the `{location}` value in the request is "-", the response contains a - * list of resources from all locations. In case any location is unreachable, - * the response will only return backup plans in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * BackupPlan - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupPlan backup_plans = 1; - * @param array<\Google\Cloud\BackupDR\V1\BackupPlan>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackupPlans($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupPlan::class); - $this->backup_plans = $arr; - - return $this; - } - - /** - * A token which may be sent as - * [page_token][google.cloud.backupdr.v1.ListBackupPlansRequest.page_token] in - * a subsequent `ListBackupPlans` call to retrieve the next page of results. - * If this field is omitted or empty, then there are no more results to - * return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token which may be sent as - * [page_token][google.cloud.backupdr.v1.ListBackupPlansRequest.page_token] in - * a subsequent `ListBackupPlans` call to retrieve the next page of results. - * If this field is omitted or empty, then there are no more results to - * return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupVaultsRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupVaultsRequest.php deleted file mode 100644 index 3f8755430f7e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupVaultsRequest.php +++ /dev/null @@ -1,284 +0,0 @@ -google.cloud.backupdr.v1.ListBackupVaultsRequest - */ -class ListBackupVaultsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVaultView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $parent Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\ListBackupVaultsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * @type int $view - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * - * 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 project and location for which to retrieve backupvault stores - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud Backup and DR, locations map to Google Cloud regions, for example - * **us-central1**. - * To retrieve backupvault stores for all locations, use "-" for the - * '{location}' value. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVaultView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * Vault. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVaultView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupVaultView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupVaultsResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupVaultsResponse.php deleted file mode 100644 index 34988c886256..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupVaultsResponse.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.ListBackupVaultsResponse - */ -class ListBackupVaultsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupVault backup_vaults = 1; - */ - private $backup_vaults; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\BackupVault>|\Google\Protobuf\Internal\RepeatedField $backup_vaults - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupVault backup_vaults = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackupVaults() - { - return $this->backup_vaults; - } - - /** - * The list of BackupVault instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return backup vaults in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.BackupVault backup_vaults = 1; - * @param array<\Google\Cloud\BackupDR\V1\BackupVault>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackupVaults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\BackupVault::class); - $this->backup_vaults = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupsRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupsRequest.php deleted file mode 100644 index 92b535e1b4f0..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupsRequest.php +++ /dev/null @@ -1,284 +0,0 @@ -google.cloud.backupdr.v1.ListBackupsRequest - */ -class ListBackupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location for which to retrieve backup - * information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $parent Required. The project and location for which to retrieve backup - * information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. Please see - * {@see BackupDRClient::dataSourceName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\ListBackupsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location for which to retrieve backup - * information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * @type int $view - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location for which to retrieve backup - * information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * - * 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 project and location for which to retrieve backup - * information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Reserved for future use to provide a BASIC & FULL view of Backup - * resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupView view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\BackupView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupsResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupsResponse.php deleted file mode 100644 index 04479201f61b..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListBackupsResponse.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.ListBackupsResponse - */ -class ListBackupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Backup instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Backup backups = 1; - */ - private $backups; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $backups - * The list of Backup instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * The list of Backup instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Backup backups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackups() - { - return $this->backups; - } - - /** - * The list of Backup instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Backup backups = 1; - * @param array<\Google\Cloud\BackupDR\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\Backup::class); - $this->backups = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListDataSourcesRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListDataSourcesRequest.php deleted file mode 100644 index ef8584fa5ce2..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListDataSourcesRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.backupdr.v1.ListDataSourcesRequest - */ -class ListDataSourcesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location for which to retrieve data - * sources information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The project and location for which to retrieve data - * sources information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. Please see - * {@see BackupDRClient::backupVaultName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\ListDataSourcesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location for which to retrieve data - * sources information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location for which to retrieve data - * sources information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * - * 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 project and location for which to retrieve data - * sources information, in the format - * 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, - * locations map to Google Cloud regions, for example **us-central1**. - * To retrieve data sources for all locations, use "-" for the - * '{location}' value. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListDataSourcesResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListDataSourcesResponse.php deleted file mode 100644 index ef509a105897..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListDataSourcesResponse.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.ListDataSourcesResponse - */ -class ListDataSourcesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of DataSource instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.DataSource data_sources = 1; - */ - private $data_sources; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\DataSource>|\Google\Protobuf\Internal\RepeatedField $data_sources - * The list of DataSource instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * The list of DataSource instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.DataSource data_sources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataSources() - { - return $this->data_sources; - } - - /** - * The list of DataSource instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return data sources in reachable locations - * and the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.DataSource data_sources = 1; - * @param array<\Google\Cloud\BackupDR\V1\DataSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\DataSource::class); - $this->data_sources = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListManagementServersRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListManagementServersRequest.php deleted file mode 100644 index 963e2af63f5e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListManagementServersRequest.php +++ /dev/null @@ -1,266 +0,0 @@ -google.cloud.backupdr.v1.ListManagementServersRequest - */ -class ListManagementServersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location for which to retrieve management servers - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud BackupDR, locations map to Google Cloud regions, for example - * **us-central1**. To retrieve management servers for all locations, use "-" - * for the - * '{location}' value. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filtering results. - * - * Generated from protobuf field optional string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = null; - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field optional string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = null; - - /** - * @param string $parent Required. The project and location for which to retrieve management servers - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud BackupDR, locations map to Google Cloud regions, for example - * **us-central1**. To retrieve management servers for all locations, use "-" - * for the - * '{location}' value. Please see - * {@see BackupDRClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\ListManagementServersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location for which to retrieve management servers - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud BackupDR, locations map to Google Cloud regions, for example - * **us-central1**. To retrieve management servers for all locations, use "-" - * for the - * '{location}' value. - * @type int $page_size - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * @type string $page_token - * Optional. A token identifying a page of results the server should return. - * @type string $filter - * Optional. Filtering results. - * @type string $order_by - * Optional. Hint for how to order the results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location for which to retrieve management servers - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud BackupDR, locations map to Google Cloud regions, for example - * **us-central1**. To retrieve management servers for all locations, use "-" - * for the - * '{location}' value. - * - * 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 project and location for which to retrieve management servers - * information, in the format 'projects/{project_id}/locations/{location}'. In - * Cloud BackupDR, locations map to Google Cloud regions, for example - * **us-central1**. To retrieve management servers for all locations, use "-" - * for the - * '{location}' value. - * - * 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. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Requested page size. Server may return fewer items than - * requested. If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field optional string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return isset($this->filter) ? $this->filter : ''; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Optional. Filtering results. - * - * Generated from protobuf field optional string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field optional string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return isset($this->order_by) ? $this->order_by : ''; - } - - public function hasOrderBy() - { - return isset($this->order_by); - } - - public function clearOrderBy() - { - unset($this->order_by); - } - - /** - * Optional. Hint for how to order the results. - * - * Generated from protobuf field optional string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListManagementServersResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListManagementServersResponse.php deleted file mode 100644 index 84bd573686db..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ListManagementServersResponse.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.ListManagementServersResponse - */ -class ListManagementServersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of ManagementServer instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return management servers in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1; - */ - private $management_servers; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\ManagementServer>|\Google\Protobuf\Internal\RepeatedField $management_servers - * The list of ManagementServer instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return management servers in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * The list of ManagementServer instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return management servers in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getManagementServers() - { - return $this->management_servers; - } - - /** - * The list of ManagementServer instances in the project for the specified - * location. - * If the '{location}' value in the request is "-", the response contains a - * list of instances from all locations. In case any location is unreachable, - * the response will only return management servers in reachable locations and - * the 'unreachable' field will be populated with a list of unreachable - * locations. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1; - * @param array<\Google\Cloud\BackupDR\V1\ManagementServer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setManagementServers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\ManagementServer::class); - $this->management_servers = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * 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; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer.php deleted file mode 100644 index 70295addc1c0..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer.php +++ /dev/null @@ -1,716 +0,0 @@ -google.cloud.backupdr.v1.ManagementServer - */ -class ManagementServer extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The description of the ManagementServer instance (2048 characters - * or less). - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Resource labels to represent user provided metadata. - * Labels currently defined: - * 1. migrate_from_go= - * If set to true, the MS is created in migration ready mode. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The time when the instance was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the instance was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The type of the ManagementServer resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer.InstanceType type = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - /** - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by clients to connect to AGM/RD graphical user interface and APIs. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementURI management_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $management_uri = null; - /** - * Output only. The hostnames of the exposed AGM endpoints for both types of - * user i.e. 1p and 3p, used to connect AGM/RM UI. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WorkforceIdentityBasedManagementURI workforce_identity_based_management_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workforce_identity_based_management_uri = null; - /** - * Output only. The ManagementServer state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer.InstanceState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Required. VPC networks to which the ManagementServer instance is connected. - * For this version, only a single network is supported. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - private $networks; - /** - * Optional. Server specified ETag for the ManagementServer resource to - * prevent simultaneous updates from overwiting each other. - * - * Generated from protobuf field string etag = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Output only. The OAuth 2.0 client id is required to make API calls to the - * BackupDR instance API of this ManagementServer. This is the value that - * should be provided in the 'aud' field of the OIDC ID Token (see openid - * specification - * https://openid.net/specs/openid-connect-core-1_0.html#IDToken). - * - * Generated from protobuf field string oauth2_client_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $oauth2_client_id = ''; - /** - * Output only. The OAuth client IDs for both types of user i.e. 1p and 3p. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WorkforceIdentityBasedOAuth2ClientID workforce_identity_based_oauth2_client_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $workforce_identity_based_oauth2_client_id = null; - /** - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by BAs to connect to BA proxy. - * - * Generated from protobuf field repeated string ba_proxy_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $ba_proxy_uri; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzi = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The resource name. - * @type string $description - * Optional. The description of the ManagementServer instance (2048 characters - * or less). - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels to represent user provided metadata. - * Labels currently defined: - * 1. migrate_from_go= - * If set to true, the MS is created in migration ready mode. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the instance was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the instance was updated. - * @type int $type - * Optional. The type of the ManagementServer resource. - * @type \Google\Cloud\BackupDR\V1\ManagementURI $management_uri - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by clients to connect to AGM/RD graphical user interface and APIs. - * @type \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedManagementURI $workforce_identity_based_management_uri - * Output only. The hostnames of the exposed AGM endpoints for both types of - * user i.e. 1p and 3p, used to connect AGM/RM UI. - * @type int $state - * Output only. The ManagementServer state. - * @type array<\Google\Cloud\BackupDR\V1\NetworkConfig>|\Google\Protobuf\Internal\RepeatedField $networks - * Required. VPC networks to which the ManagementServer instance is connected. - * For this version, only a single network is supported. - * @type string $etag - * Optional. Server specified ETag for the ManagementServer resource to - * prevent simultaneous updates from overwiting each other. - * @type string $oauth2_client_id - * Output only. The OAuth 2.0 client id is required to make API calls to the - * BackupDR instance API of this ManagementServer. This is the value that - * should be provided in the 'aud' field of the OIDC ID Token (see openid - * specification - * https://openid.net/specs/openid-connect-core-1_0.html#IDToken). - * @type \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedOAuth2ClientID $workforce_identity_based_oauth2_client_id - * Output only. The OAuth client IDs for both types of user i.e. 1p and 3p. - * @type array|\Google\Protobuf\Internal\RepeatedField $ba_proxy_uri - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by BAs to connect to BA proxy. - * @type \Google\Protobuf\BoolValue $satisfies_pzs - * Output only. Reserved for future use. - * @type bool $satisfies_pzi - * Output only. Reserved for future use. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The description of the ManagementServer instance (2048 characters - * or less). - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The description of the ManagementServer instance (2048 characters - * or less). - * - * Generated from protobuf field string description = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * Labels currently defined: - * 1. migrate_from_go= - * If set to true, the MS is created in migration ready mode. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels to represent user provided metadata. - * Labels currently defined: - * 1. migrate_from_go= - * If set to true, the MS is created in migration ready mode. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The time when the instance was 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. The time when the instance was 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. The time when the instance was 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. The time when the instance was 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; - } - - /** - * Optional. The type of the ManagementServer resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer.InstanceType type = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of the ManagementServer resource. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer.InstanceType type = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\ManagementServer\InstanceType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by clients to connect to AGM/RD graphical user interface and APIs. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementURI management_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\ManagementURI|null - */ - public function getManagementUri() - { - return $this->management_uri; - } - - public function hasManagementUri() - { - return isset($this->management_uri); - } - - public function clearManagementUri() - { - unset($this->management_uri); - } - - /** - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by clients to connect to AGM/RD graphical user interface and APIs. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementURI management_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\ManagementURI $var - * @return $this - */ - public function setManagementUri($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ManagementURI::class); - $this->management_uri = $var; - - return $this; - } - - /** - * Output only. The hostnames of the exposed AGM endpoints for both types of - * user i.e. 1p and 3p, used to connect AGM/RM UI. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WorkforceIdentityBasedManagementURI workforce_identity_based_management_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedManagementURI|null - */ - public function getWorkforceIdentityBasedManagementUri() - { - return $this->workforce_identity_based_management_uri; - } - - public function hasWorkforceIdentityBasedManagementUri() - { - return isset($this->workforce_identity_based_management_uri); - } - - public function clearWorkforceIdentityBasedManagementUri() - { - unset($this->workforce_identity_based_management_uri); - } - - /** - * Output only. The hostnames of the exposed AGM endpoints for both types of - * user i.e. 1p and 3p, used to connect AGM/RM UI. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WorkforceIdentityBasedManagementURI workforce_identity_based_management_uri = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedManagementURI $var - * @return $this - */ - public function setWorkforceIdentityBasedManagementUri($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedManagementURI::class); - $this->workforce_identity_based_management_uri = $var; - - return $this; - } - - /** - * Output only. The ManagementServer state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer.InstanceState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The ManagementServer state. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ManagementServer.InstanceState state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\ManagementServer\InstanceState::class); - $this->state = $var; - - return $this; - } - - /** - * Required. VPC networks to which the ManagementServer instance is connected. - * For this version, only a single network is supported. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworks() - { - return $this->networks; - } - - /** - * Required. VPC networks to which the ManagementServer instance is connected. - * For this version, only a single network is supported. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\BackupDR\V1\NetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\NetworkConfig::class); - $this->networks = $arr; - - return $this; - } - - /** - * Optional. Server specified ETag for the ManagementServer resource to - * prevent simultaneous updates from overwiting each other. - * - * Generated from protobuf field string etag = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. Server specified ETag for the ManagementServer resource to - * prevent simultaneous updates from overwiting each other. - * - * Generated from protobuf field string etag = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The OAuth 2.0 client id is required to make API calls to the - * BackupDR instance API of this ManagementServer. This is the value that - * should be provided in the 'aud' field of the OIDC ID Token (see openid - * specification - * https://openid.net/specs/openid-connect-core-1_0.html#IDToken). - * - * Generated from protobuf field string oauth2_client_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getOauth2ClientId() - { - return $this->oauth2_client_id; - } - - /** - * Output only. The OAuth 2.0 client id is required to make API calls to the - * BackupDR instance API of this ManagementServer. This is the value that - * should be provided in the 'aud' field of the OIDC ID Token (see openid - * specification - * https://openid.net/specs/openid-connect-core-1_0.html#IDToken). - * - * Generated from protobuf field string oauth2_client_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setOauth2ClientId($var) - { - GPBUtil::checkString($var, True); - $this->oauth2_client_id = $var; - - return $this; - } - - /** - * Output only. The OAuth client IDs for both types of user i.e. 1p and 3p. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WorkforceIdentityBasedOAuth2ClientID workforce_identity_based_oauth2_client_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedOAuth2ClientID|null - */ - public function getWorkforceIdentityBasedOauth2ClientId() - { - return $this->workforce_identity_based_oauth2_client_id; - } - - public function hasWorkforceIdentityBasedOauth2ClientId() - { - return isset($this->workforce_identity_based_oauth2_client_id); - } - - public function clearWorkforceIdentityBasedOauth2ClientId() - { - unset($this->workforce_identity_based_oauth2_client_id); - } - - /** - * Output only. The OAuth client IDs for both types of user i.e. 1p and 3p. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WorkforceIdentityBasedOAuth2ClientID workforce_identity_based_oauth2_client_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedOAuth2ClientID $var - * @return $this - */ - public function setWorkforceIdentityBasedOauth2ClientId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\WorkforceIdentityBasedOAuth2ClientID::class); - $this->workforce_identity_based_oauth2_client_id = $var; - - return $this; - } - - /** - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by BAs to connect to BA proxy. - * - * Generated from protobuf field repeated string ba_proxy_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBaProxyUri() - { - return $this->ba_proxy_uri; - } - - /** - * Output only. The hostname or ip address of the exposed AGM endpoints, used - * by BAs to connect to BA proxy. - * - * Generated from protobuf field repeated string ba_proxy_uri = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBaProxyUri($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ba_proxy_uri = $arr; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\BoolValue|null - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - public function hasSatisfiesPzs() - { - return isset($this->satisfies_pzs); - } - - public function clearSatisfiesPzs() - { - unset($this->satisfies_pzs); - } - - /** - * Returns the unboxed value from getSatisfiesPzs() - - * Output only. Reserved for future use. - * - * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool|null - */ - public function getSatisfiesPzsUnwrapped() - { - return $this->readWrapperValue("satisfies_pzs"); - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Output only. Reserved for future use. - * - * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool|null $var - * @return $this - */ - public function setSatisfiesPzsUnwrapped($var) - { - $this->writeWrapperValue("satisfies_pzs", $var); - return $this;} - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzi() - { - return $this->satisfies_pzi; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzi($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzi = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer/InstanceState.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer/InstanceState.php deleted file mode 100644 index 1973178f3721..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer/InstanceState.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.backupdr.v1.ManagementServer.InstanceState - */ -class InstanceState -{ - /** - * State not set. - * - * Generated from protobuf enum INSTANCE_STATE_UNSPECIFIED = 0; - */ - const INSTANCE_STATE_UNSPECIFIED = 0; - /** - * The instance is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The instance has been created and is fully usable. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - /** - * The instance configuration is being updated. Certain kinds of updates - * may cause the instance to become unusable while the update is in - * progress. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * The instance is being deleted. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * The instance is being repaired and may be unstable. - * - * Generated from protobuf enum REPAIRING = 5; - */ - const REPAIRING = 5; - /** - * Maintenance is being performed on this instance. - * - * Generated from protobuf enum MAINTENANCE = 6; - */ - const MAINTENANCE = 6; - /** - * The instance is experiencing an issue and might be unusable. You can get - * further details from the statusMessage field of Instance resource. - * - * Generated from protobuf enum ERROR = 7; - */ - const ERROR = 7; - - private static $valueToName = [ - self::INSTANCE_STATE_UNSPECIFIED => 'INSTANCE_STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::READY => 'READY', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::REPAIRING => 'REPAIRING', - self::MAINTENANCE => 'MAINTENANCE', - self::ERROR => 'ERROR', - ]; - - 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(InstanceState::class, \Google\Cloud\BackupDR\V1\ManagementServer_InstanceState::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer/InstanceType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer/InstanceType.php deleted file mode 100644 index edb8d1ad4dcf..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementServer/InstanceType.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.backupdr.v1.ManagementServer.InstanceType - */ -class InstanceType -{ - /** - * Instance type is not mentioned. - * - * Generated from protobuf enum INSTANCE_TYPE_UNSPECIFIED = 0; - */ - const INSTANCE_TYPE_UNSPECIFIED = 0; - /** - * Instance for backup and restore management (i.e., AGM). - * - * Generated from protobuf enum BACKUP_RESTORE = 1; - */ - const BACKUP_RESTORE = 1; - - private static $valueToName = [ - self::INSTANCE_TYPE_UNSPECIFIED => 'INSTANCE_TYPE_UNSPECIFIED', - self::BACKUP_RESTORE => 'BACKUP_RESTORE', - ]; - - 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(InstanceType::class, \Google\Cloud\BackupDR\V1\ManagementServer_InstanceType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementURI.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementURI.php deleted file mode 100644 index 5f9224ac9402..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ManagementURI.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.backupdr.v1.ManagementURI - */ -class ManagementURI extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The ManagementServer AGM/RD WebUI URL. - * - * Generated from protobuf field string web_ui = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $web_ui = ''; - /** - * Output only. The ManagementServer AGM/RD API URL. - * - * Generated from protobuf field string api = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $web_ui - * Output only. The ManagementServer AGM/RD WebUI URL. - * @type string $api - * Output only. The ManagementServer AGM/RD API URL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The ManagementServer AGM/RD WebUI URL. - * - * Generated from protobuf field string web_ui = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getWebUi() - { - return $this->web_ui; - } - - /** - * Output only. The ManagementServer AGM/RD WebUI URL. - * - * Generated from protobuf field string web_ui = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setWebUi($var) - { - GPBUtil::checkString($var, True); - $this->web_ui = $var; - - return $this; - } - - /** - * Output only. The ManagementServer AGM/RD API URL. - * - * Generated from protobuf field string api = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApi() - { - return $this->api; - } - - /** - * Output only. The ManagementServer AGM/RD API URL. - * - * Generated from protobuf field string api = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkString($var, True); - $this->api = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Metadata.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Metadata.php deleted file mode 100644 index a47c48d30479..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Metadata.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.backupdr.v1.Metadata - */ -class Metadata extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Array of key/value pairs. The total size of all keys and values - * must be less than 512 KB. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\BackupDR\V1\Entry>|\Google\Protobuf\Internal\RepeatedField $items - * Optional. Array of key/value pairs. The total size of all keys and values - * must be less than 512 KB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Array of key/value pairs. The total size of all keys and values - * must be less than 512 KB. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * Optional. Array of key/value pairs. The total size of all keys and values - * must be less than 512 KB. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Entry items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\Entry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\Entry::class); - $this->items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkConfig.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkConfig.php deleted file mode 100644 index 93a42fa20272..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkConfig.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.backupdr.v1.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource name of the Google Compute Engine VPC network to - * which the ManagementServer instance is connected. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network = ''; - /** - * Optional. The network connect mode of the ManagementServer instance. For - * this version, only PRIVATE_SERVICE_ACCESS is supported. - * - * Generated from protobuf field .google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $peering_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Optional. The resource name of the Google Compute Engine VPC network to - * which the ManagementServer instance is connected. - * @type int $peering_mode - * Optional. The network connect mode of the ManagementServer instance. For - * this version, only PRIVATE_SERVICE_ACCESS is supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource name of the Google Compute Engine VPC network to - * which the ManagementServer instance is connected. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Optional. The resource name of the Google Compute Engine VPC network to - * which the ManagementServer instance is connected. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Optional. The network connect mode of the ManagementServer instance. For - * this version, only PRIVATE_SERVICE_ACCESS is supported. - * - * Generated from protobuf field .google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPeeringMode() - { - return $this->peering_mode; - } - - /** - * Optional. The network connect mode of the ManagementServer instance. For - * this version, only PRIVATE_SERVICE_ACCESS is supported. - * - * Generated from protobuf field .google.cloud.backupdr.v1.NetworkConfig.PeeringMode peering_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPeeringMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\NetworkConfig\PeeringMode::class); - $this->peering_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkConfig/PeeringMode.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkConfig/PeeringMode.php deleted file mode 100644 index 6c153e8bd600..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkConfig/PeeringMode.php +++ /dev/null @@ -1,59 +0,0 @@ -google.cloud.backupdr.v1.NetworkConfig.PeeringMode - */ -class PeeringMode -{ - /** - * Peering mode not set. - * - * Generated from protobuf enum PEERING_MODE_UNSPECIFIED = 0; - */ - const PEERING_MODE_UNSPECIFIED = 0; - /** - * Connect using Private Service Access to the Management Server. Private - * services access provides an IP address range for multiple Google Cloud - * services, including Cloud BackupDR. - * - * Generated from protobuf enum PRIVATE_SERVICE_ACCESS = 1; - */ - const PRIVATE_SERVICE_ACCESS = 1; - - private static $valueToName = [ - self::PEERING_MODE_UNSPECIFIED => 'PEERING_MODE_UNSPECIFIED', - self::PRIVATE_SERVICE_ACCESS => 'PRIVATE_SERVICE_ACCESS', - ]; - - 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(PeeringMode::class, \Google\Cloud\BackupDR\V1\NetworkConfig_PeeringMode::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface.php deleted file mode 100644 index f814b5bc7885..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface.php +++ /dev/null @@ -1,700 +0,0 @@ -google.cloud.backupdr.v1.NetworkInterface - */ -class NetworkInterface extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. URL of the VPC network resource for this instance. - * - * Generated from protobuf field optional string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network = null; - /** - * Optional. The URL of the Subnetwork resource for this instance. - * - * Generated from protobuf field optional string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $subnetwork = null; - /** - * Optional. An IPv4 internal IP address to assign to the instance for this - * network interface. If not specified by the user, an unused internal IP is - * assigned by the system. - * - * Generated from protobuf field optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $ip_address = null; - /** - * Optional. An IPv6 internal network address for this network interface. To - * use a static internal IP address, it must be unused and in the same region - * as the instance's zone. If not specified, Google Cloud will automatically - * assign an internal IPv6 address from the instance's subnetwork. - * - * Generated from protobuf field optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $ipv6_address = null; - /** - * Optional. The prefix length of the primary internal IPv6 range. - * - * Generated from protobuf field optional int32 internal_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $internal_ipv6_prefix_length = null; - /** - * Output only. [Output Only] The name of the network interface, which is - * generated by the server. - * - * Generated from protobuf field optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = null; - /** - * Optional. An array of configurations for this interface. Currently, only - * one access config,ONE_TO_ONE_NAT is supported. If there are no - * accessConfigs specified, then this instance will have - * no external internet access. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $access_configs; - /** - * Optional. An array of IPv6 access configurations for this interface. - * Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there - * is no ipv6AccessConfig specified, then this instance will - * have no external IPv6 Internet access. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $ipv6_access_configs; - /** - * Optional. An array of alias IP ranges for this network interface. - * You can only specify this field for network interfaces in VPC networks. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $alias_ip_ranges; - /** - * The stack type for this network interface. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.StackType stack_type = 10; - */ - protected $stack_type = null; - /** - * Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the - * IP can be accessed from the Internet. This field is always inherited from - * its subnetwork. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.Ipv6AccessType ipv6_access_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ipv6_access_type = null; - /** - * Optional. The networking queue count that's specified by users for the - * network interface. Both Rx and Tx queues will be set to this number. It'll - * be empty if not specified by the users. - * - * Generated from protobuf field optional int32 queue_count = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $queue_count = null; - /** - * Optional. The type of vNIC to be used on this interface. This may be gVNIC - * or VirtioNet. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.NicType nic_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $nic_type = null; - /** - * Optional. The URL of the network attachment that this interface should - * connect to in the following format: - * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. - * - * Generated from protobuf field optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network_attachment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Optional. URL of the VPC network resource for this instance. - * @type string $subnetwork - * Optional. The URL of the Subnetwork resource for this instance. - * @type string $ip_address - * Optional. An IPv4 internal IP address to assign to the instance for this - * network interface. If not specified by the user, an unused internal IP is - * assigned by the system. - * @type string $ipv6_address - * Optional. An IPv6 internal network address for this network interface. To - * use a static internal IP address, it must be unused and in the same region - * as the instance's zone. If not specified, Google Cloud will automatically - * assign an internal IPv6 address from the instance's subnetwork. - * @type int $internal_ipv6_prefix_length - * Optional. The prefix length of the primary internal IPv6 range. - * @type string $name - * Output only. [Output Only] The name of the network interface, which is - * generated by the server. - * @type array<\Google\Cloud\BackupDR\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $access_configs - * Optional. An array of configurations for this interface. Currently, only - * one access config,ONE_TO_ONE_NAT is supported. If there are no - * accessConfigs specified, then this instance will have - * no external internet access. - * @type array<\Google\Cloud\BackupDR\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $ipv6_access_configs - * Optional. An array of IPv6 access configurations for this interface. - * Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there - * is no ipv6AccessConfig specified, then this instance will - * have no external IPv6 Internet access. - * @type array<\Google\Cloud\BackupDR\V1\AliasIpRange>|\Google\Protobuf\Internal\RepeatedField $alias_ip_ranges - * Optional. An array of alias IP ranges for this network interface. - * You can only specify this field for network interfaces in VPC networks. - * @type int $stack_type - * The stack type for this network interface. - * @type int $ipv6_access_type - * Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the - * IP can be accessed from the Internet. This field is always inherited from - * its subnetwork. - * @type int $queue_count - * Optional. The networking queue count that's specified by users for the - * network interface. Both Rx and Tx queues will be set to this number. It'll - * be empty if not specified by the users. - * @type int $nic_type - * Optional. The type of vNIC to be used on this interface. This may be gVNIC - * or VirtioNet. - * @type string $network_attachment - * Optional. The URL of the network attachment that this interface should - * connect to in the following format: - * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. URL of the VPC network resource for this instance. - * - * Generated from protobuf field optional string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNetwork() - { - return isset($this->network) ? $this->network : ''; - } - - public function hasNetwork() - { - return isset($this->network); - } - - public function clearNetwork() - { - unset($this->network); - } - - /** - * Optional. URL of the VPC network resource for this instance. - * - * Generated from protobuf field optional string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Optional. The URL of the Subnetwork resource for this instance. - * - * Generated from protobuf field optional string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSubnetwork() - { - return isset($this->subnetwork) ? $this->subnetwork : ''; - } - - public function hasSubnetwork() - { - return isset($this->subnetwork); - } - - public function clearSubnetwork() - { - unset($this->subnetwork); - } - - /** - * Optional. The URL of the Subnetwork resource for this instance. - * - * Generated from protobuf field optional string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Optional. An IPv4 internal IP address to assign to the instance for this - * network interface. If not specified by the user, an unused internal IP is - * assigned by the system. - * - * Generated from protobuf field optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getIpAddress() - { - return isset($this->ip_address) ? $this->ip_address : ''; - } - - public function hasIpAddress() - { - return isset($this->ip_address); - } - - public function clearIpAddress() - { - unset($this->ip_address); - } - - /** - * Optional. An IPv4 internal IP address to assign to the instance for this - * network interface. If not specified by the user, an unused internal IP is - * assigned by the system. - * - * Generated from protobuf field optional string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * Optional. An IPv6 internal network address for this network interface. To - * use a static internal IP address, it must be unused and in the same region - * as the instance's zone. If not specified, Google Cloud will automatically - * assign an internal IPv6 address from the instance's subnetwork. - * - * Generated from protobuf field optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getIpv6Address() - { - return isset($this->ipv6_address) ? $this->ipv6_address : ''; - } - - public function hasIpv6Address() - { - return isset($this->ipv6_address); - } - - public function clearIpv6Address() - { - unset($this->ipv6_address); - } - - /** - * Optional. An IPv6 internal network address for this network interface. To - * use a static internal IP address, it must be unused and in the same region - * as the instance's zone. If not specified, Google Cloud will automatically - * assign an internal IPv6 address from the instance's subnetwork. - * - * Generated from protobuf field optional string ipv6_address = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setIpv6Address($var) - { - GPBUtil::checkString($var, True); - $this->ipv6_address = $var; - - return $this; - } - - /** - * Optional. The prefix length of the primary internal IPv6 range. - * - * Generated from protobuf field optional int32 internal_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getInternalIpv6PrefixLength() - { - return isset($this->internal_ipv6_prefix_length) ? $this->internal_ipv6_prefix_length : 0; - } - - public function hasInternalIpv6PrefixLength() - { - return isset($this->internal_ipv6_prefix_length); - } - - public function clearInternalIpv6PrefixLength() - { - unset($this->internal_ipv6_prefix_length); - } - - /** - * Optional. The prefix length of the primary internal IPv6 range. - * - * Generated from protobuf field optional int32 internal_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setInternalIpv6PrefixLength($var) - { - GPBUtil::checkInt32($var); - $this->internal_ipv6_prefix_length = $var; - - return $this; - } - - /** - * Output only. [Output Only] The name of the network interface, which is - * generated by the server. - * - * Generated from protobuf field optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return isset($this->name) ? $this->name : ''; - } - - public function hasName() - { - return isset($this->name); - } - - public function clearName() - { - unset($this->name); - } - - /** - * Output only. [Output Only] The name of the network interface, which is - * generated by the server. - * - * Generated from protobuf field optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. An array of configurations for this interface. Currently, only - * one access config,ONE_TO_ONE_NAT is supported. If there are no - * accessConfigs specified, then this instance will have - * no external internet access. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessConfigs() - { - return $this->access_configs; - } - - /** - * Optional. An array of configurations for this interface. Currently, only - * one access config,ONE_TO_ONE_NAT is supported. If there are no - * accessConfigs specified, then this instance will have - * no external internet access. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AccessConfig access_configs = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\AccessConfig::class); - $this->access_configs = $arr; - - return $this; - } - - /** - * Optional. An array of IPv6 access configurations for this interface. - * Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there - * is no ipv6AccessConfig specified, then this instance will - * have no external IPv6 Internet access. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIpv6AccessConfigs() - { - return $this->ipv6_access_configs; - } - - /** - * Optional. An array of IPv6 access configurations for this interface. - * Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there - * is no ipv6AccessConfig specified, then this instance will - * have no external IPv6 Internet access. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AccessConfig ipv6_access_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIpv6AccessConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\AccessConfig::class); - $this->ipv6_access_configs = $arr; - - return $this; - } - - /** - * Optional. An array of alias IP ranges for this network interface. - * You can only specify this field for network interfaces in VPC networks. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAliasIpRanges() - { - return $this->alias_ip_ranges; - } - - /** - * Optional. An array of alias IP ranges for this network interface. - * You can only specify this field for network interfaces in VPC networks. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.AliasIpRange alias_ip_ranges = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\AliasIpRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAliasIpRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\AliasIpRange::class); - $this->alias_ip_ranges = $arr; - - return $this; - } - - /** - * The stack type for this network interface. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.StackType stack_type = 10; - * @return int - */ - public function getStackType() - { - return isset($this->stack_type) ? $this->stack_type : 0; - } - - public function hasStackType() - { - return isset($this->stack_type); - } - - public function clearStackType() - { - unset($this->stack_type); - } - - /** - * The stack type for this network interface. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.StackType stack_type = 10; - * @param int $var - * @return $this - */ - public function setStackType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\NetworkInterface\StackType::class); - $this->stack_type = $var; - - return $this; - } - - /** - * Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the - * IP can be accessed from the Internet. This field is always inherited from - * its subnetwork. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.Ipv6AccessType ipv6_access_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getIpv6AccessType() - { - return isset($this->ipv6_access_type) ? $this->ipv6_access_type : 0; - } - - public function hasIpv6AccessType() - { - return isset($this->ipv6_access_type); - } - - public function clearIpv6AccessType() - { - unset($this->ipv6_access_type); - } - - /** - * Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the - * IP can be accessed from the Internet. This field is always inherited from - * its subnetwork. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.Ipv6AccessType ipv6_access_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setIpv6AccessType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\NetworkInterface\Ipv6AccessType::class); - $this->ipv6_access_type = $var; - - return $this; - } - - /** - * Optional. The networking queue count that's specified by users for the - * network interface. Both Rx and Tx queues will be set to this number. It'll - * be empty if not specified by the users. - * - * Generated from protobuf field optional int32 queue_count = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getQueueCount() - { - return isset($this->queue_count) ? $this->queue_count : 0; - } - - public function hasQueueCount() - { - return isset($this->queue_count); - } - - public function clearQueueCount() - { - unset($this->queue_count); - } - - /** - * Optional. The networking queue count that's specified by users for the - * network interface. Both Rx and Tx queues will be set to this number. It'll - * be empty if not specified by the users. - * - * Generated from protobuf field optional int32 queue_count = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setQueueCount($var) - { - GPBUtil::checkInt32($var); - $this->queue_count = $var; - - return $this; - } - - /** - * Optional. The type of vNIC to be used on this interface. This may be gVNIC - * or VirtioNet. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.NicType nic_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getNicType() - { - return isset($this->nic_type) ? $this->nic_type : 0; - } - - public function hasNicType() - { - return isset($this->nic_type); - } - - public function clearNicType() - { - unset($this->nic_type); - } - - /** - * Optional. The type of vNIC to be used on this interface. This may be gVNIC - * or VirtioNet. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkInterface.NicType nic_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setNicType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\NetworkInterface\NicType::class); - $this->nic_type = $var; - - return $this; - } - - /** - * Optional. The URL of the network attachment that this interface should - * connect to in the following format: - * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. - * - * Generated from protobuf field optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNetworkAttachment() - { - return isset($this->network_attachment) ? $this->network_attachment : ''; - } - - public function hasNetworkAttachment() - { - return isset($this->network_attachment); - } - - public function clearNetworkAttachment() - { - unset($this->network_attachment); - } - - /** - * Optional. The URL of the network attachment that this interface should - * connect to in the following format: - * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. - * - * Generated from protobuf field optional string network_attachment = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNetworkAttachment($var) - { - GPBUtil::checkString($var, True); - $this->network_attachment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/Ipv6AccessType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/Ipv6AccessType.php deleted file mode 100644 index 3fd3019ef1d9..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/Ipv6AccessType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.backupdr.v1.NetworkInterface.Ipv6AccessType - */ -class Ipv6AccessType -{ - /** - * IPv6 access type not set. Means this network interface hasn't been - * turned on IPv6 yet. - * - * Generated from protobuf enum UNSPECIFIED_IPV6_ACCESS_TYPE = 0; - */ - const UNSPECIFIED_IPV6_ACCESS_TYPE = 0; - /** - * This network interface can have internal IPv6. - * - * Generated from protobuf enum INTERNAL = 1; - */ - const INTERNAL = 1; - /** - * This network interface can have external IPv6. - * - * Generated from protobuf enum EXTERNAL = 2; - */ - const EXTERNAL = 2; - - private static $valueToName = [ - self::UNSPECIFIED_IPV6_ACCESS_TYPE => 'UNSPECIFIED_IPV6_ACCESS_TYPE', - self::INTERNAL => 'INTERNAL', - self::EXTERNAL => 'EXTERNAL', - ]; - - 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(Ipv6AccessType::class, \Google\Cloud\BackupDR\V1\NetworkInterface_Ipv6AccessType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/NicType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/NicType.php deleted file mode 100644 index 692fba7a610b..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/NicType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.NetworkInterface.NicType - */ -class NicType -{ - /** - * Default should be NIC_TYPE_UNSPECIFIED. - * - * Generated from protobuf enum NIC_TYPE_UNSPECIFIED = 0; - */ - const NIC_TYPE_UNSPECIFIED = 0; - /** - * VIRTIO - * - * Generated from protobuf enum VIRTIO_NET = 1; - */ - const VIRTIO_NET = 1; - /** - * GVNIC - * - * Generated from protobuf enum GVNIC = 2; - */ - const GVNIC = 2; - - private static $valueToName = [ - self::NIC_TYPE_UNSPECIFIED => 'NIC_TYPE_UNSPECIFIED', - self::VIRTIO_NET => 'VIRTIO_NET', - self::GVNIC => 'GVNIC', - ]; - - 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(NicType::class, \Google\Cloud\BackupDR\V1\NetworkInterface_NicType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/StackType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/StackType.php deleted file mode 100644 index 9a2933d8f880..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkInterface/StackType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.NetworkInterface.StackType - */ -class StackType -{ - /** - * Default should be STACK_TYPE_UNSPECIFIED. - * - * Generated from protobuf enum STACK_TYPE_UNSPECIFIED = 0; - */ - const STACK_TYPE_UNSPECIFIED = 0; - /** - * The network interface will be assigned IPv4 address. - * - * Generated from protobuf enum IPV4_ONLY = 1; - */ - const IPV4_ONLY = 1; - /** - * The network interface can have both IPv4 and IPv6 addresses. - * - * Generated from protobuf enum IPV4_IPV6 = 2; - */ - const IPV4_IPV6 = 2; - - private static $valueToName = [ - self::STACK_TYPE_UNSPECIFIED => 'STACK_TYPE_UNSPECIFIED', - self::IPV4_ONLY => 'IPV4_ONLY', - self::IPV4_IPV6 => 'IPV4_IPV6', - ]; - - 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(StackType::class, \Google\Cloud\BackupDR\V1\NetworkInterface_StackType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkPerformanceConfig.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkPerformanceConfig.php deleted file mode 100644 index 9104b7f0e842..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkPerformanceConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.backupdr.v1.NetworkPerformanceConfig - */ -class NetworkPerformanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The tier of the total egress bandwidth. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $total_egress_bandwidth_tier = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_egress_bandwidth_tier - * Optional. The tier of the total egress bandwidth. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The tier of the total egress bandwidth. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; - } - - public function hasTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier); - } - - public function clearTotalEgressBandwidthTier() - { - unset($this->total_egress_bandwidth_tier); - } - - /** - * Optional. The tier of the total egress bandwidth. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTotalEgressBandwidthTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\NetworkPerformanceConfig\Tier::class); - $this->total_egress_bandwidth_tier = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkPerformanceConfig/Tier.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkPerformanceConfig/Tier.php deleted file mode 100644 index 4ed540cb417e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/NetworkPerformanceConfig/Tier.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.backupdr.v1.NetworkPerformanceConfig.Tier - */ -class Tier -{ - /** - * This value is unused. - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * Default network performance config. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * Tier 1 network performance config. - * - * Generated from protobuf enum TIER_1 = 2; - */ - const TIER_1 = 2; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::TIER_1 => 'TIER_1', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\BackupDR\V1\NetworkPerformanceConfig_Tier::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/OperationMetadata.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/OperationMetadata.php deleted file mode 100644 index e880bbc7986d..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/OperationMetadata.php +++ /dev/null @@ -1,345 +0,0 @@ -google.cloud.backupdr.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * 'Code.CANCELLED'. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - /** - * Output only. AdditionalInfo contains additional Info related to backup plan - * association resource. - * - * Generated from protobuf field map additional_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $additional_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * 'Code.CANCELLED'. - * @type string $api_version - * Output only. API version used to start the operation. - * @type array|\Google\Protobuf\Internal\MapField $additional_info - * Output only. AdditionalInfo contains additional Info related to backup plan - * association resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.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. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * 'Code.CANCELLED'. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * 'Code.CANCELLED'. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - - /** - * Output only. AdditionalInfo contains additional Info related to backup plan - * association resource. - * - * Generated from protobuf field map additional_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAdditionalInfo() - { - return $this->additional_info; - } - - /** - * Output only. AdditionalInfo contains additional Info related to backup plan - * association resource. - * - * Generated from protobuf field map additional_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAdditionalInfo($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_info = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RestoreBackupRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RestoreBackupRequest.php deleted file mode 100644 index 57cda39c282c..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RestoreBackupRequest.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.backupdr.v1.RestoreBackupRequest - */ -class RestoreBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Backup instance, in the format - * 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - protected $target_environment; - protected $instance_properties; - - /** - * @param string $name Required. The resource name of the Backup instance, in the format - * 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'. Please see - * {@see BackupDRClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\BackupDR\V1\RestoreBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Backup instance, in the format - * 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type \Google\Cloud\BackupDR\V1\ComputeInstanceTargetEnvironment $compute_instance_target_environment - * Compute Engine target environment to be used during restore. - * @type \Google\Cloud\BackupDR\V1\ComputeInstanceRestoreProperties $compute_instance_restore_properties - * Compute Engine instance properties to be overridden during restore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Backup instance, in the format - * 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'. - * - * 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 Backup instance, in the format - * 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'. - * - * 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; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Compute Engine target environment to be used during restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3; - * @return \Google\Cloud\BackupDR\V1\ComputeInstanceTargetEnvironment|null - */ - public function getComputeInstanceTargetEnvironment() - { - return $this->readOneof(3); - } - - public function hasComputeInstanceTargetEnvironment() - { - return $this->hasOneof(3); - } - - /** - * Compute Engine target environment to be used during restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment compute_instance_target_environment = 3; - * @param \Google\Cloud\BackupDR\V1\ComputeInstanceTargetEnvironment $var - * @return $this - */ - public function setComputeInstanceTargetEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ComputeInstanceTargetEnvironment::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Compute Engine instance properties to be overridden during restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4; - * @return \Google\Cloud\BackupDR\V1\ComputeInstanceRestoreProperties|null - */ - public function getComputeInstanceRestoreProperties() - { - return $this->readOneof(4); - } - - public function hasComputeInstanceRestoreProperties() - { - return $this->hasOneof(4); - } - - /** - * Compute Engine instance properties to be overridden during restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.ComputeInstanceRestoreProperties compute_instance_restore_properties = 4; - * @param \Google\Cloud\BackupDR\V1\ComputeInstanceRestoreProperties $var - * @return $this - */ - public function setComputeInstanceRestoreProperties($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\ComputeInstanceRestoreProperties::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getTargetEnvironment() - { - return $this->whichOneof("target_environment"); - } - - /** - * @return string - */ - public function getInstanceProperties() - { - return $this->whichOneof("instance_properties"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RestoreBackupResponse.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RestoreBackupResponse.php deleted file mode 100644 index 27614255363f..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RestoreBackupResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.backupdr.v1.RestoreBackupResponse - */ -class RestoreBackupResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Details of the target resource created/modified as part of restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.TargetResource target_resource = 1; - */ - protected $target_resource = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BackupDR\V1\TargetResource $target_resource - * Details of the target resource created/modified as part of restore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Details of the target resource created/modified as part of restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.TargetResource target_resource = 1; - * @return \Google\Cloud\BackupDR\V1\TargetResource|null - */ - public function getTargetResource() - { - return $this->target_resource; - } - - public function hasTargetResource() - { - return isset($this->target_resource); - } - - public function clearTargetResource() - { - unset($this->target_resource); - } - - /** - * Details of the target resource created/modified as part of restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.TargetResource target_resource = 1; - * @param \Google\Cloud\BackupDR\V1\TargetResource $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\TargetResource::class); - $this->target_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RuleConfigInfo.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RuleConfigInfo.php deleted file mode 100644 index 710f042a26d9..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RuleConfigInfo.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.backupdr.v1.RuleConfigInfo - */ -class RuleConfigInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Output Only. - * Backup Rule id fetched from backup plan. - * - * Generated from protobuf field string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule_id = ''; - /** - * Output only. The last backup state for rule. - * - * Generated from protobuf field .google.cloud.backupdr.v1.RuleConfigInfo.LastBackupState last_backup_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_backup_state = 0; - /** - * Output only. Output Only. - * google.rpc.Status object to store the last backup error. - * - * Generated from protobuf field .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_backup_error = null; - /** - * Output only. The point in time when the last successful backup was captured - * from the source. - * - * Generated from protobuf field .google.protobuf.Timestamp last_successful_backup_consistency_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_successful_backup_consistency_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rule_id - * Output only. Output Only. - * Backup Rule id fetched from backup plan. - * @type int $last_backup_state - * Output only. The last backup state for rule. - * @type \Google\Rpc\Status $last_backup_error - * Output only. Output Only. - * google.rpc.Status object to store the last backup error. - * @type \Google\Protobuf\Timestamp $last_successful_backup_consistency_time - * Output only. The point in time when the last successful backup was captured - * from the source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Output Only. - * Backup Rule id fetched from backup plan. - * - * Generated from protobuf field string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRuleId() - { - return $this->rule_id; - } - - /** - * Output only. Output Only. - * Backup Rule id fetched from backup plan. - * - * Generated from protobuf field string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRuleId($var) - { - GPBUtil::checkString($var, True); - $this->rule_id = $var; - - return $this; - } - - /** - * Output only. The last backup state for rule. - * - * Generated from protobuf field .google.cloud.backupdr.v1.RuleConfigInfo.LastBackupState last_backup_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLastBackupState() - { - return $this->last_backup_state; - } - - /** - * Output only. The last backup state for rule. - * - * Generated from protobuf field .google.cloud.backupdr.v1.RuleConfigInfo.LastBackupState last_backup_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLastBackupState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\RuleConfigInfo\LastBackupState::class); - $this->last_backup_state = $var; - - return $this; - } - - /** - * Output only. Output Only. - * google.rpc.Status object to store the last backup error. - * - * Generated from protobuf field .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getLastBackupError() - { - return $this->last_backup_error; - } - - public function hasLastBackupError() - { - return isset($this->last_backup_error); - } - - public function clearLastBackupError() - { - unset($this->last_backup_error); - } - - /** - * Output only. Output Only. - * google.rpc.Status object to store the last backup error. - * - * Generated from protobuf field .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setLastBackupError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->last_backup_error = $var; - - return $this; - } - - /** - * Output only. The point in time when the last successful backup was captured - * from the source. - * - * Generated from protobuf field .google.protobuf.Timestamp last_successful_backup_consistency_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSuccessfulBackupConsistencyTime() - { - return $this->last_successful_backup_consistency_time; - } - - public function hasLastSuccessfulBackupConsistencyTime() - { - return isset($this->last_successful_backup_consistency_time); - } - - public function clearLastSuccessfulBackupConsistencyTime() - { - unset($this->last_successful_backup_consistency_time); - } - - /** - * Output only. The point in time when the last successful backup was captured - * from the source. - * - * Generated from protobuf field .google.protobuf.Timestamp last_successful_backup_consistency_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSuccessfulBackupConsistencyTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_successful_backup_consistency_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RuleConfigInfo/LastBackupState.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RuleConfigInfo/LastBackupState.php deleted file mode 100644 index 2d60713fc717..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/RuleConfigInfo/LastBackupState.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.backupdr.v1.RuleConfigInfo.LastBackupState - */ -class LastBackupState -{ - /** - * State not set. - * - * Generated from protobuf enum LAST_BACKUP_STATE_UNSPECIFIED = 0; - */ - const LAST_BACKUP_STATE_UNSPECIFIED = 0; - /** - * The first backup is pending. - * - * Generated from protobuf enum FIRST_BACKUP_PENDING = 1; - */ - const FIRST_BACKUP_PENDING = 1; - /** - * The most recent backup could not be run/failed because of the lack of - * permissions. - * - * Generated from protobuf enum PERMISSION_DENIED = 2; - */ - const PERMISSION_DENIED = 2; - /** - * The last backup operation succeeded. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - /** - * The last backup operation failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::LAST_BACKUP_STATE_UNSPECIFIED => 'LAST_BACKUP_STATE_UNSPECIFIED', - self::FIRST_BACKUP_PENDING => 'FIRST_BACKUP_PENDING', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - ]; - - 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(LastBackupState::class, \Google\Cloud\BackupDR\V1\RuleConfigInfo_LastBackupState::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling.php deleted file mode 100644 index fceb736acfde..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling.php +++ /dev/null @@ -1,399 +0,0 @@ -google.cloud.backupdr.v1.Scheduling - */ -class Scheduling extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Defines the maintenance behavior for this instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $on_host_maintenance = null; - /** - * Optional. Specifies whether the instance should be automatically restarted - * if it is terminated by Compute Engine (not terminated by a user). - * - * Generated from protobuf field optional bool automatic_restart = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $automatic_restart = null; - /** - * Optional. Defines whether the instance is preemptible. - * - * Generated from protobuf field optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $preemptible = null; - /** - * Optional. A set of node affinity and anti-affinity configurations. - * Overrides reservationAffinity. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $node_affinities; - /** - * Optional. The minimum number of virtual CPUs this instance will consume - * when running on a sole-tenant node. - * - * Generated from protobuf field optional int32 min_node_cpus = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_node_cpus = null; - /** - * Optional. Specifies the provisioning model of the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $provisioning_model = null; - /** - * Optional. Specifies the termination action for the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $instance_termination_action = null; - /** - * Optional. Specifies the maximum amount of time a Local Ssd Vm should wait - * while recovery of the Local Ssd state is attempted. Its value should be in - * between 0 and 168 hours with hour granularity and the default value being 1 - * hour. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $local_ssd_recovery_timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $on_host_maintenance - * Optional. Defines the maintenance behavior for this instance. - * @type bool $automatic_restart - * Optional. Specifies whether the instance should be automatically restarted - * if it is terminated by Compute Engine (not terminated by a user). - * @type bool $preemptible - * Optional. Defines whether the instance is preemptible. - * @type array<\Google\Cloud\BackupDR\V1\Scheduling\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $node_affinities - * Optional. A set of node affinity and anti-affinity configurations. - * Overrides reservationAffinity. - * @type int $min_node_cpus - * Optional. The minimum number of virtual CPUs this instance will consume - * when running on a sole-tenant node. - * @type int $provisioning_model - * Optional. Specifies the provisioning model of the instance. - * @type int $instance_termination_action - * Optional. Specifies the termination action for the instance. - * @type \Google\Cloud\BackupDR\V1\SchedulingDuration $local_ssd_recovery_timeout - * Optional. Specifies the maximum amount of time a Local Ssd Vm should wait - * while recovery of the Local Ssd state is attempted. Its value should be in - * between 0 and 168 hours with hour granularity and the default value being 1 - * hour. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Defines the maintenance behavior for this instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getOnHostMaintenance() - { - return isset($this->on_host_maintenance) ? $this->on_host_maintenance : 0; - } - - public function hasOnHostMaintenance() - { - return isset($this->on_host_maintenance); - } - - public function clearOnHostMaintenance() - { - unset($this->on_host_maintenance); - } - - /** - * Optional. Defines the maintenance behavior for this instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.OnHostMaintenance on_host_maintenance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setOnHostMaintenance($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\Scheduling\OnHostMaintenance::class); - $this->on_host_maintenance = $var; - - return $this; - } - - /** - * Optional. Specifies whether the instance should be automatically restarted - * if it is terminated by Compute Engine (not terminated by a user). - * - * Generated from protobuf field optional bool automatic_restart = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAutomaticRestart() - { - return isset($this->automatic_restart) ? $this->automatic_restart : false; - } - - public function hasAutomaticRestart() - { - return isset($this->automatic_restart); - } - - public function clearAutomaticRestart() - { - unset($this->automatic_restart); - } - - /** - * Optional. Specifies whether the instance should be automatically restarted - * if it is terminated by Compute Engine (not terminated by a user). - * - * Generated from protobuf field optional bool automatic_restart = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAutomaticRestart($var) - { - GPBUtil::checkBool($var); - $this->automatic_restart = $var; - - return $this; - } - - /** - * Optional. Defines whether the instance is preemptible. - * - * Generated from protobuf field optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getPreemptible() - { - return isset($this->preemptible) ? $this->preemptible : false; - } - - public function hasPreemptible() - { - return isset($this->preemptible); - } - - public function clearPreemptible() - { - unset($this->preemptible); - } - - /** - * Optional. Defines whether the instance is preemptible. - * - * Generated from protobuf field optional bool preemptible = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setPreemptible($var) - { - GPBUtil::checkBool($var); - $this->preemptible = $var; - - return $this; - } - - /** - * Optional. A set of node affinity and anti-affinity configurations. - * Overrides reservationAffinity. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodeAffinities() - { - return $this->node_affinities; - } - - /** - * Optional. A set of node affinity and anti-affinity configurations. - * Overrides reservationAffinity. - * - * Generated from protobuf field repeated .google.cloud.backupdr.v1.Scheduling.NodeAffinity node_affinities = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\BackupDR\V1\Scheduling\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodeAffinities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BackupDR\V1\Scheduling\NodeAffinity::class); - $this->node_affinities = $arr; - - return $this; - } - - /** - * Optional. The minimum number of virtual CPUs this instance will consume - * when running on a sole-tenant node. - * - * Generated from protobuf field optional int32 min_node_cpus = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMinNodeCpus() - { - return isset($this->min_node_cpus) ? $this->min_node_cpus : 0; - } - - public function hasMinNodeCpus() - { - return isset($this->min_node_cpus); - } - - public function clearMinNodeCpus() - { - unset($this->min_node_cpus); - } - - /** - * Optional. The minimum number of virtual CPUs this instance will consume - * when running on a sole-tenant node. - * - * Generated from protobuf field optional int32 min_node_cpus = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMinNodeCpus($var) - { - GPBUtil::checkInt32($var); - $this->min_node_cpus = $var; - - return $this; - } - - /** - * Optional. Specifies the provisioning model of the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getProvisioningModel() - { - return isset($this->provisioning_model) ? $this->provisioning_model : 0; - } - - public function hasProvisioningModel() - { - return isset($this->provisioning_model); - } - - public function clearProvisioningModel() - { - unset($this->provisioning_model); - } - - /** - * Optional. Specifies the provisioning model of the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.ProvisioningModel provisioning_model = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setProvisioningModel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\Scheduling\ProvisioningModel::class); - $this->provisioning_model = $var; - - return $this; - } - - /** - * Optional. Specifies the termination action for the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getInstanceTerminationAction() - { - return isset($this->instance_termination_action) ? $this->instance_termination_action : 0; - } - - public function hasInstanceTerminationAction() - { - return isset($this->instance_termination_action); - } - - public function clearInstanceTerminationAction() - { - unset($this->instance_termination_action); - } - - /** - * Optional. Specifies the termination action for the instance. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction instance_termination_action = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setInstanceTerminationAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\Scheduling\InstanceTerminationAction::class); - $this->instance_termination_action = $var; - - return $this; - } - - /** - * Optional. Specifies the maximum amount of time a Local Ssd Vm should wait - * while recovery of the Local Ssd state is attempted. Its value should be in - * between 0 and 168 hours with hour granularity and the default value being 1 - * hour. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\SchedulingDuration|null - */ - public function getLocalSsdRecoveryTimeout() - { - return $this->local_ssd_recovery_timeout; - } - - public function hasLocalSsdRecoveryTimeout() - { - return isset($this->local_ssd_recovery_timeout); - } - - public function clearLocalSsdRecoveryTimeout() - { - unset($this->local_ssd_recovery_timeout); - } - - /** - * Optional. Specifies the maximum amount of time a Local Ssd Vm should wait - * while recovery of the Local Ssd state is attempted. Its value should be in - * between 0 and 168 hours with hour granularity and the default value being 1 - * hour. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.SchedulingDuration local_ssd_recovery_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\SchedulingDuration $var - * @return $this - */ - public function setLocalSsdRecoveryTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\SchedulingDuration::class); - $this->local_ssd_recovery_timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/InstanceTerminationAction.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/InstanceTerminationAction.php deleted file mode 100644 index b2ec47683f00..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/InstanceTerminationAction.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.Scheduling.InstanceTerminationAction - */ -class InstanceTerminationAction -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0; - */ - const INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 0; - /** - * Delete the VM. - * - * Generated from protobuf enum DELETE = 1; - */ - const DELETE = 1; - /** - * Stop the VM without storing in-memory content. default action. - * - * Generated from protobuf enum STOP = 2; - */ - const STOP = 2; - - private static $valueToName = [ - self::INSTANCE_TERMINATION_ACTION_UNSPECIFIED => 'INSTANCE_TERMINATION_ACTION_UNSPECIFIED', - self::DELETE => 'DELETE', - self::STOP => 'STOP', - ]; - - 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(InstanceTerminationAction::class, \Google\Cloud\BackupDR\V1\Scheduling_InstanceTerminationAction::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/NodeAffinity.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/NodeAffinity.php deleted file mode 100644 index 766243220a05..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/NodeAffinity.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.backupdr.v1.Scheduling.NodeAffinity - */ -class NodeAffinity extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Corresponds to the label key of Node resource. - * - * Generated from protobuf field optional string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key = null; - /** - * Optional. Defines the operation of node selection. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $operator = null; - /** - * Optional. Corresponds to the label values of Node resource. - * - * Generated from protobuf field repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Optional. Corresponds to the label key of Node resource. - * @type int $operator - * Optional. Defines the operation of node selection. - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Optional. Corresponds to the label values of Node resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Corresponds to the label key of Node resource. - * - * Generated from protobuf field optional string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKey() - { - return isset($this->key) ? $this->key : ''; - } - - public function hasKey() - { - return isset($this->key); - } - - public function clearKey() - { - unset($this->key); - } - - /** - * Optional. Corresponds to the label key of Node resource. - * - * Generated from protobuf field optional string key = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Optional. Defines the operation of node selection. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getOperator() - { - return isset($this->operator) ? $this->operator : 0; - } - - public function hasOperator() - { - return isset($this->operator); - } - - public function clearOperator() - { - unset($this->operator); - } - - /** - * Optional. Defines the operation of node selection. - * - * Generated from protobuf field optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\Scheduling\NodeAffinity\Operator::class); - $this->operator = $var; - - return $this; - } - - /** - * Optional. Corresponds to the label values of Node resource. - * - * Generated from protobuf field repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Optional. Corresponds to the label values of Node resource. - * - * Generated from protobuf field repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NodeAffinity::class, \Google\Cloud\BackupDR\V1\Scheduling_NodeAffinity::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/NodeAffinity/Operator.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/NodeAffinity/Operator.php deleted file mode 100644 index 97cd529b7742..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/NodeAffinity/Operator.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator - */ -class Operator -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0; - */ - const OPERATOR_UNSPECIFIED = 0; - /** - * Requires Compute Engine to seek for matched nodes. - * - * Generated from protobuf enum IN = 1; - */ - const IN = 1; - /** - * Requires Compute Engine to avoid certain nodes. - * - * Generated from protobuf enum NOT_IN = 2; - */ - const NOT_IN = 2; - - private static $valueToName = [ - self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED', - self::IN => 'IN', - self::NOT_IN => 'NOT_IN', - ]; - - 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(Operator::class, \Google\Cloud\BackupDR\V1\Scheduling_NodeAffinity_Operator::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/OnHostMaintenance.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/OnHostMaintenance.php deleted file mode 100644 index 32a98fdc8fc0..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/OnHostMaintenance.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.backupdr.v1.Scheduling.OnHostMaintenance - */ -class OnHostMaintenance -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum ON_HOST_MAINTENANCE_UNSPECIFIED = 0; - */ - const ON_HOST_MAINTENANCE_UNSPECIFIED = 0; - /** - * Tells Compute Engine to terminate and (optionally) restart the instance - * away from the maintenance activity. - * - * Generated from protobuf enum TERMINATE = 1; - */ - const TERMINATE = 1; - /** - * Default, Allows Compute Engine to automatically migrate instances - * out of the way of maintenance events. - * - * Generated from protobuf enum MIGRATE = 1000; - */ - const MIGRATE = 1000; - - private static $valueToName = [ - self::ON_HOST_MAINTENANCE_UNSPECIFIED => 'ON_HOST_MAINTENANCE_UNSPECIFIED', - self::TERMINATE => 'TERMINATE', - self::MIGRATE => 'MIGRATE', - ]; - - 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(OnHostMaintenance::class, \Google\Cloud\BackupDR\V1\Scheduling_OnHostMaintenance::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/ProvisioningModel.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/ProvisioningModel.php deleted file mode 100644 index 24e887699528..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Scheduling/ProvisioningModel.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.backupdr.v1.Scheduling.ProvisioningModel - */ -class ProvisioningModel -{ - /** - * Default value. This value is not used. - * - * Generated from protobuf enum PROVISIONING_MODEL_UNSPECIFIED = 0; - */ - const PROVISIONING_MODEL_UNSPECIFIED = 0; - /** - * Standard provisioning with user controlled runtime, no discounts. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * Heavily discounted, no guaranteed runtime. - * - * Generated from protobuf enum SPOT = 2; - */ - const SPOT = 2; - - private static $valueToName = [ - self::PROVISIONING_MODEL_UNSPECIFIED => 'PROVISIONING_MODEL_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::SPOT => 'SPOT', - ]; - - 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(ProvisioningModel::class, \Google\Cloud\BackupDR\V1\Scheduling_ProvisioningModel::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/SchedulingDuration.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/SchedulingDuration.php deleted file mode 100644 index cc3c3abf8a1a..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/SchedulingDuration.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.backupdr.v1.SchedulingDuration - */ -class SchedulingDuration extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Span of time at a resolution of a second. - * - * Generated from protobuf field optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $seconds = null; - /** - * Optional. Span of time that's a fraction of a second at nanosecond - * resolution. - * - * Generated from protobuf field optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $nanos = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $seconds - * Optional. Span of time at a resolution of a second. - * @type int $nanos - * Optional. Span of time that's a fraction of a second at nanosecond - * resolution. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Span of time at a resolution of a second. - * - * Generated from protobuf field optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getSeconds() - { - return isset($this->seconds) ? $this->seconds : 0; - } - - public function hasSeconds() - { - return isset($this->seconds); - } - - public function clearSeconds() - { - unset($this->seconds); - } - - /** - * Optional. Span of time at a resolution of a second. - * - * Generated from protobuf field optional int64 seconds = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setSeconds($var) - { - GPBUtil::checkInt64($var); - $this->seconds = $var; - - return $this; - } - - /** - * Optional. Span of time that's a fraction of a second at nanosecond - * resolution. - * - * Generated from protobuf field optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getNanos() - { - return isset($this->nanos) ? $this->nanos : 0; - } - - public function hasNanos() - { - return isset($this->nanos); - } - - public function clearNanos() - { - unset($this->nanos); - } - - /** - * Optional. Span of time that's a fraction of a second at nanosecond - * resolution. - * - * Generated from protobuf field optional int32 nanos = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setNanos($var) - { - GPBUtil::checkInt32($var); - $this->nanos = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ServiceAccount.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ServiceAccount.php deleted file mode 100644 index 2555e69a2e1d..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ServiceAccount.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.backupdr.v1.ServiceAccount - */ -class ServiceAccount extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Email address of the service account. - * - * Generated from protobuf field optional string email = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $email = null; - /** - * Optional. The list of scopes to be made available for this service account. - * - * Generated from protobuf field repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $scopes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $email - * Optional. Email address of the service account. - * @type array|\Google\Protobuf\Internal\RepeatedField $scopes - * Optional. The list of scopes to be made available for this service account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Email address of the service account. - * - * Generated from protobuf field optional string email = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEmail() - { - return isset($this->email) ? $this->email : ''; - } - - public function hasEmail() - { - return isset($this->email); - } - - public function clearEmail() - { - unset($this->email); - } - - /** - * Optional. Email address of the service account. - * - * Generated from protobuf field optional string email = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Optional. The list of scopes to be made available for this service account. - * - * Generated from protobuf field repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getScopes() - { - return $this->scopes; - } - - /** - * Optional. The list of scopes to be made available for this service account. - * - * Generated from protobuf field repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->scopes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ServiceLockInfo.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ServiceLockInfo.php deleted file mode 100644 index 1191b4e15201..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/ServiceLockInfo.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.backupdr.v1.ServiceLockInfo - */ -class ServiceLockInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the operation that created this lock. - * The lock will automatically be released when the operation completes. - * - * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $operation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $operation - * Output only. The name of the operation that created this lock. - * The lock will automatically be released when the operation completes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the operation that created this lock. - * The lock will automatically be released when the operation completes. - * - * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * Output only. The name of the operation that created this lock. - * The lock will automatically be released when the operation completes. - * - * Generated from protobuf field string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkString($var, True); - $this->operation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/StandardSchedule.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/StandardSchedule.php deleted file mode 100644 index a6936ec9b05d..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/StandardSchedule.php +++ /dev/null @@ -1,447 +0,0 @@ -google.cloud.backupdr.v1.StandardSchedule - */ -class StandardSchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Specifies the `RecurrenceType` for the schedule. - * - * Generated from protobuf field .google.cloud.backupdr.v1.StandardSchedule.RecurrenceType recurrence_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $recurrence_type = 0; - /** - * Optional. Specifies frequency for hourly backups. A hourly frequency of 2 - * means jobs will run every 2 hours from start time till end time defined. - * This is required for `recurrence_type`, `HOURLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `HOURLY`. - * Value of hourly frequency should be between 6 and 23. - * Reason for limit : We found that there is bandwidth limitation of 3GB/S for - * GMI while taking a backup and 5GB/S while doing a restore. Given the amount - * of parallel backups and restore we are targeting, this will potentially - * take the backup time to mins and hours (in worst case scenario). - * - * Generated from protobuf field int32 hourly_frequency = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $hourly_frequency = 0; - /** - * Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs - * will run. - * This is required for `recurrence_type`, `WEEKLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `WEEKLY`. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $days_of_week; - /** - * Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. - * Values for `days_of_month` are only applicable for `recurrence_type`, - * `MONTHLY` and `YEARLY`. A validation error will occur if other values are - * supplied. - * - * Generated from protobuf field repeated int32 days_of_month = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $days_of_month; - /** - * Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST - * MONDAY, on which jobs will run. This will be specified by two fields in - * `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, - * e.g. `LAST`. - * This field is only applicable for `recurrence_type`, `MONTHLY` and - * `YEARLY`. A validation error will occur if other values are supplied. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WeekDayOfMonth week_day_of_month = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $week_day_of_month = null; - /** - * Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on - * which jobs will run. - * This field is only applicable when `recurrence_type` is `YEARLY`. A - * validation error will occur if other values are supplied. - * - * Generated from protobuf field repeated .google.type.Month months = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $months; - /** - * Required. A BackupWindow defines the window of day during which backup jobs - * will run. Jobs are queued at the beginning of the window and will be marked - * as `NOT_RUN` if they do not start by the end of the window. - * Note: running jobs will not be cancelled at the end of the window. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupWindow backup_window = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_window = null; - /** - * Required. The time zone to be used when interpreting the schedule. - * The value of this field must be a time zone name from the IANA tz database. - * See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the - * list of valid timezone names. For e.g., Europe/Paris. - * - * Generated from protobuf field string time_zone = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_zone = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $recurrence_type - * Required. Specifies the `RecurrenceType` for the schedule. - * @type int $hourly_frequency - * Optional. Specifies frequency for hourly backups. A hourly frequency of 2 - * means jobs will run every 2 hours from start time till end time defined. - * This is required for `recurrence_type`, `HOURLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `HOURLY`. - * Value of hourly frequency should be between 6 and 23. - * Reason for limit : We found that there is bandwidth limitation of 3GB/S for - * GMI while taking a backup and 5GB/S while doing a restore. Given the amount - * of parallel backups and restore we are targeting, this will potentially - * take the backup time to mins and hours (in worst case scenario). - * @type array|\Google\Protobuf\Internal\RepeatedField $days_of_week - * Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs - * will run. - * This is required for `recurrence_type`, `WEEKLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `WEEKLY`. - * @type array|\Google\Protobuf\Internal\RepeatedField $days_of_month - * Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. - * Values for `days_of_month` are only applicable for `recurrence_type`, - * `MONTHLY` and `YEARLY`. A validation error will occur if other values are - * supplied. - * @type \Google\Cloud\BackupDR\V1\WeekDayOfMonth $week_day_of_month - * Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST - * MONDAY, on which jobs will run. This will be specified by two fields in - * `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, - * e.g. `LAST`. - * This field is only applicable for `recurrence_type`, `MONTHLY` and - * `YEARLY`. A validation error will occur if other values are supplied. - * @type array|\Google\Protobuf\Internal\RepeatedField $months - * Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on - * which jobs will run. - * This field is only applicable when `recurrence_type` is `YEARLY`. A - * validation error will occur if other values are supplied. - * @type \Google\Cloud\BackupDR\V1\BackupWindow $backup_window - * Required. A BackupWindow defines the window of day during which backup jobs - * will run. Jobs are queued at the beginning of the window and will be marked - * as `NOT_RUN` if they do not start by the end of the window. - * Note: running jobs will not be cancelled at the end of the window. - * @type string $time_zone - * Required. The time zone to be used when interpreting the schedule. - * The value of this field must be a time zone name from the IANA tz database. - * See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the - * list of valid timezone names. For e.g., Europe/Paris. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. Specifies the `RecurrenceType` for the schedule. - * - * Generated from protobuf field .google.cloud.backupdr.v1.StandardSchedule.RecurrenceType recurrence_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getRecurrenceType() - { - return $this->recurrence_type; - } - - /** - * Required. Specifies the `RecurrenceType` for the schedule. - * - * Generated from protobuf field .google.cloud.backupdr.v1.StandardSchedule.RecurrenceType recurrence_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setRecurrenceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\StandardSchedule\RecurrenceType::class); - $this->recurrence_type = $var; - - return $this; - } - - /** - * Optional. Specifies frequency for hourly backups. A hourly frequency of 2 - * means jobs will run every 2 hours from start time till end time defined. - * This is required for `recurrence_type`, `HOURLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `HOURLY`. - * Value of hourly frequency should be between 6 and 23. - * Reason for limit : We found that there is bandwidth limitation of 3GB/S for - * GMI while taking a backup and 5GB/S while doing a restore. Given the amount - * of parallel backups and restore we are targeting, this will potentially - * take the backup time to mins and hours (in worst case scenario). - * - * Generated from protobuf field int32 hourly_frequency = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getHourlyFrequency() - { - return $this->hourly_frequency; - } - - /** - * Optional. Specifies frequency for hourly backups. A hourly frequency of 2 - * means jobs will run every 2 hours from start time till end time defined. - * This is required for `recurrence_type`, `HOURLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `HOURLY`. - * Value of hourly frequency should be between 6 and 23. - * Reason for limit : We found that there is bandwidth limitation of 3GB/S for - * GMI while taking a backup and 5GB/S while doing a restore. Given the amount - * of parallel backups and restore we are targeting, this will potentially - * take the backup time to mins and hours (in worst case scenario). - * - * Generated from protobuf field int32 hourly_frequency = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setHourlyFrequency($var) - { - GPBUtil::checkInt32($var); - $this->hourly_frequency = $var; - - return $this; - } - - /** - * Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs - * will run. - * This is required for `recurrence_type`, `WEEKLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `WEEKLY`. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDaysOfWeek() - { - return $this->days_of_week; - } - - /** - * Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs - * will run. - * This is required for `recurrence_type`, `WEEKLY` and is not applicable - * otherwise. A validation error will occur if a value is supplied and - * `recurrence_type` is not `WEEKLY`. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDaysOfWeek($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); - $this->days_of_week = $arr; - - return $this; - } - - /** - * Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. - * Values for `days_of_month` are only applicable for `recurrence_type`, - * `MONTHLY` and `YEARLY`. A validation error will occur if other values are - * supplied. - * - * Generated from protobuf field repeated int32 days_of_month = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDaysOfMonth() - { - return $this->days_of_month; - } - - /** - * Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. - * Values for `days_of_month` are only applicable for `recurrence_type`, - * `MONTHLY` and `YEARLY`. A validation error will occur if other values are - * supplied. - * - * Generated from protobuf field repeated int32 days_of_month = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDaysOfMonth($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->days_of_month = $arr; - - return $this; - } - - /** - * Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST - * MONDAY, on which jobs will run. This will be specified by two fields in - * `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, - * e.g. `LAST`. - * This field is only applicable for `recurrence_type`, `MONTHLY` and - * `YEARLY`. A validation error will occur if other values are supplied. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WeekDayOfMonth week_day_of_month = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BackupDR\V1\WeekDayOfMonth|null - */ - public function getWeekDayOfMonth() - { - return $this->week_day_of_month; - } - - public function hasWeekDayOfMonth() - { - return isset($this->week_day_of_month); - } - - public function clearWeekDayOfMonth() - { - unset($this->week_day_of_month); - } - - /** - * Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST - * MONDAY, on which jobs will run. This will be specified by two fields in - * `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, - * e.g. `LAST`. - * This field is only applicable for `recurrence_type`, `MONTHLY` and - * `YEARLY`. A validation error will occur if other values are supplied. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WeekDayOfMonth week_day_of_month = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BackupDR\V1\WeekDayOfMonth $var - * @return $this - */ - public function setWeekDayOfMonth($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\WeekDayOfMonth::class); - $this->week_day_of_month = $var; - - return $this; - } - - /** - * Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on - * which jobs will run. - * This field is only applicable when `recurrence_type` is `YEARLY`. A - * validation error will occur if other values are supplied. - * - * Generated from protobuf field repeated .google.type.Month months = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMonths() - { - return $this->months; - } - - /** - * Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on - * which jobs will run. - * This field is only applicable when `recurrence_type` is `YEARLY`. A - * validation error will occur if other values are supplied. - * - * Generated from protobuf field repeated .google.type.Month months = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMonths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\Month::class); - $this->months = $arr; - - return $this; - } - - /** - * Required. A BackupWindow defines the window of day during which backup jobs - * will run. Jobs are queued at the beginning of the window and will be marked - * as `NOT_RUN` if they do not start by the end of the window. - * Note: running jobs will not be cancelled at the end of the window. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupWindow backup_window = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\BackupWindow|null - */ - public function getBackupWindow() - { - return $this->backup_window; - } - - public function hasBackupWindow() - { - return isset($this->backup_window); - } - - public function clearBackupWindow() - { - unset($this->backup_window); - } - - /** - * Required. A BackupWindow defines the window of day during which backup jobs - * will run. Jobs are queued at the beginning of the window and will be marked - * as `NOT_RUN` if they do not start by the end of the window. - * Note: running jobs will not be cancelled at the end of the window. - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupWindow backup_window = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\BackupWindow $var - * @return $this - */ - public function setBackupWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupWindow::class); - $this->backup_window = $var; - - return $this; - } - - /** - * Required. The time zone to be used when interpreting the schedule. - * The value of this field must be a time zone name from the IANA tz database. - * See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the - * list of valid timezone names. For e.g., Europe/Paris. - * - * Generated from protobuf field string time_zone = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Required. The time zone to be used when interpreting the schedule. - * The value of this field must be a time zone name from the IANA tz database. - * See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the - * list of valid timezone names. For e.g., Europe/Paris. - * - * Generated from protobuf field string time_zone = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/StandardSchedule/RecurrenceType.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/StandardSchedule/RecurrenceType.php deleted file mode 100644 index 2c80f3b55a38..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/StandardSchedule/RecurrenceType.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.backupdr.v1.StandardSchedule.RecurrenceType - */ -class RecurrenceType -{ - /** - * recurrence type not set - * - * Generated from protobuf enum RECURRENCE_TYPE_UNSPECIFIED = 0; - */ - const RECURRENCE_TYPE_UNSPECIFIED = 0; - /** - * The `BackupRule` is to be applied hourly. - * - * Generated from protobuf enum HOURLY = 1; - */ - const HOURLY = 1; - /** - * The `BackupRule` is to be applied daily. - * - * Generated from protobuf enum DAILY = 2; - */ - const DAILY = 2; - /** - * The `BackupRule` is to be applied weekly. - * - * Generated from protobuf enum WEEKLY = 3; - */ - const WEEKLY = 3; - /** - * The `BackupRule` is to be applied monthly. - * - * Generated from protobuf enum MONTHLY = 4; - */ - const MONTHLY = 4; - /** - * The `BackupRule` is to be applied yearly. - * - * Generated from protobuf enum YEARLY = 5; - */ - const YEARLY = 5; - - private static $valueToName = [ - self::RECURRENCE_TYPE_UNSPECIFIED => 'RECURRENCE_TYPE_UNSPECIFIED', - self::HOURLY => 'HOURLY', - self::DAILY => 'DAILY', - self::WEEKLY => 'WEEKLY', - self::MONTHLY => 'MONTHLY', - self::YEARLY => 'YEARLY', - ]; - - 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(RecurrenceType::class, \Google\Cloud\BackupDR\V1\StandardSchedule_RecurrenceType::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Tags.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Tags.php deleted file mode 100644 index 5c7e2cc19aff..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/Tags.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.backupdr.v1.Tags - */ -class Tags extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. An array of tags. Each tag must be 1-63 characters long, and - * comply with RFC1035. - * - * Generated from protobuf field repeated string items = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $items - * Optional. An array of tags. Each tag must be 1-63 characters long, and - * comply with RFC1035. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\BackupvaultGce::initOnce(); - parent::__construct($data); - } - - /** - * Optional. An array of tags. Each tag must be 1-63 characters long, and - * comply with RFC1035. - * - * Generated from protobuf field repeated string items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * Optional. An array of tags. Each tag must be 1-63 characters long, and - * comply with RFC1035. - * - * Generated from protobuf field repeated string items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/TargetResource.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/TargetResource.php deleted file mode 100644 index 2b664c8ac0b2..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/TargetResource.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.backupdr.v1.TargetResource - */ -class TargetResource extends \Google\Protobuf\Internal\Message -{ - protected $target_resource_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BackupDR\V1\GcpResource $gcp_resource - * Details of the native Google Cloud resource created as part of restore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Details of the native Google Cloud resource created as part of restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.GcpResource gcp_resource = 1; - * @return \Google\Cloud\BackupDR\V1\GcpResource|null - */ - public function getGcpResource() - { - return $this->readOneof(1); - } - - public function hasGcpResource() - { - return $this->hasOneof(1); - } - - /** - * Details of the native Google Cloud resource created as part of restore. - * - * Generated from protobuf field .google.cloud.backupdr.v1.GcpResource gcp_resource = 1; - * @param \Google\Cloud\BackupDR\V1\GcpResource $var - * @return $this - */ - public function setGcpResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\GcpResource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getTargetResourceInfo() - { - return $this->whichOneof("target_resource_info"); - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/TriggerBackupRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/TriggerBackupRequest.php deleted file mode 100644 index c83aa7eafd80..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/TriggerBackupRequest.php +++ /dev/null @@ -1,196 +0,0 @@ -google.cloud.backupdr.v1.TriggerBackupRequest - */ -class TriggerBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. backup rule_id for which a backup needs to be triggered. - * - * Generated from protobuf field string rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rule_id = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * Please see {@see BackupDRClient::backupPlanAssociationName()} for help formatting this field. - * @param string $ruleId Required. backup rule_id for which a backup needs to be triggered. - * - * @return \Google\Cloud\BackupDR\V1\TriggerBackupRequest - * - * @experimental - */ - public static function build(string $name, string $ruleId): self - { - return (new self()) - ->setName($name) - ->setRuleId($ruleId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * @type string $rule_id - * Required. backup rule_id for which a backup needs to be triggered. - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplanassociation::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * 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. Name of the backup plan association resource, in the format - * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` - * - * 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; - } - - /** - * Required. backup rule_id for which a backup needs to be triggered. - * - * Generated from protobuf field string rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRuleId() - { - return $this->rule_id; - } - - /** - * Required. backup rule_id for which a backup needs to be triggered. - * - * Generated from protobuf field string rule_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRuleId($var) - { - GPBUtil::checkString($var, True); - $this->rule_id = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateBackupRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateBackupRequest.php deleted file mode 100644 index 45590b90791f..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateBackupRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.cloud.backupdr.v1.UpdateBackupRequest - */ -class UpdateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\BackupDR\V1\Backup $backup Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * @return \Google\Cloud\BackupDR\V1\UpdateBackupRequest - * - * @experimental - */ - public static function build(\Google\Cloud\BackupDR\V1\Backup $backup, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setBackup($backup) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * @type \Google\Cloud\BackupDR\V1\Backup $backup - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * Backup resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\Backup::class); - $this->backup = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateBackupVaultRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateBackupVaultRequest.php deleted file mode 100644 index 4a985422b43f..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateBackupVaultRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.backupdr.v1.UpdateBackupVaultRequest - */ -class UpdateBackupVaultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * BackupVault resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_vault = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. If set to true, will not check plan duration against backup vault - * enforcement duration. - * - * Generated from protobuf field bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param \Google\Cloud\BackupDR\V1\BackupVault $backupVault Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * BackupVault resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * @return \Google\Cloud\BackupDR\V1\UpdateBackupVaultRequest - * - * @experimental - */ - public static function build(\Google\Cloud\BackupDR\V1\BackupVault $backupVault, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setBackupVault($backupVault) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * BackupVault resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * @type \Google\Cloud\BackupDR\V1\BackupVault $backup_vault - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * @type bool $force - * Optional. If set to true, will not check plan duration against backup vault - * enforcement duration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * BackupVault resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * BackupVault resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\BackupVault|null - */ - public function getBackupVault() - { - return $this->backup_vault; - } - - public function hasBackupVault() - { - return isset($this->backup_vault); - } - - public function clearBackupVault() - { - unset($this->backup_vault); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\BackupVault $var - * @return $this - */ - public function setBackupVault($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\BackupVault::class); - $this->backup_vault = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is 'false'. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. If set to true, will not check plan duration against backup vault - * enforcement duration. - * - * Generated from protobuf field bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, will not check plan duration against backup vault - * enforcement duration. - * - * Generated from protobuf field bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateDataSourceRequest.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateDataSourceRequest.php deleted file mode 100644 index 86e234620cef..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/UpdateDataSourceRequest.php +++ /dev/null @@ -1,264 +0,0 @@ -google.cloud.backupdr.v1.UpdateDataSourceRequest - */ -class UpdateDataSourceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * DataSource resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_source = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - */ - protected $request_id = ''; - /** - * Optional. Enable upsert. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - - /** - * @param \Google\Cloud\BackupDR\V1\DataSource $dataSource Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * DataSource resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * @return \Google\Cloud\BackupDR\V1\UpdateDataSourceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\BackupDR\V1\DataSource $dataSource, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataSource($dataSource) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * DataSource resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * @type \Google\Cloud\BackupDR\V1\DataSource $data_source - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. Enable upsert. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * DataSource resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the - * DataSource resource by the update. - * The fields specified in the update_mask are relative to the resource, not - * the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then the request will fail. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.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; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BackupDR\V1\DataSource|null - */ - public function getDataSource() - { - return $this->data_source; - } - - public function hasDataSource() - { - return isset($this->data_source); - } - - public function clearDataSource() - { - unset($this->data_source); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.backupdr.v1.DataSource data_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BackupDR\V1\DataSource $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\DataSource::class); - $this->data_source = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. Enable upsert. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. Enable upsert. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WeekDayOfMonth.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WeekDayOfMonth.php deleted file mode 100644 index 31a37263235e..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WeekDayOfMonth.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.backupdr.v1.WeekDayOfMonth - */ -class WeekDayOfMonth extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Specifies the week of the month. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $week_of_month = 0; - /** - * Required. Specifies the day of the week. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $day_of_week = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $week_of_month - * Required. Specifies the week of the month. - * @type int $day_of_week - * Required. Specifies the day of the week. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupplan::initOnce(); - parent::__construct($data); - } - - /** - * Required. Specifies the week of the month. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getWeekOfMonth() - { - return $this->week_of_month; - } - - /** - * Required. Specifies the week of the month. - * - * Generated from protobuf field .google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth week_of_month = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setWeekOfMonth($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BackupDR\V1\WeekDayOfMonth\WeekOfMonth::class); - $this->week_of_month = $var; - - return $this; - } - - /** - * Required. Specifies the day of the week. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDayOfWeek() - { - return $this->day_of_week; - } - - /** - * Required. Specifies the day of the week. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDayOfWeek($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day_of_week = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WeekDayOfMonth/WeekOfMonth.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WeekDayOfMonth/WeekOfMonth.php deleted file mode 100644 index e0affc57f6a4..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WeekDayOfMonth/WeekOfMonth.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.backupdr.v1.WeekDayOfMonth.WeekOfMonth - */ -class WeekOfMonth -{ - /** - * The zero value. Do not use. - * - * Generated from protobuf enum WEEK_OF_MONTH_UNSPECIFIED = 0; - */ - const WEEK_OF_MONTH_UNSPECIFIED = 0; - /** - * The first week of the month. - * - * Generated from protobuf enum FIRST = 1; - */ - const FIRST = 1; - /** - * The second week of the month. - * - * Generated from protobuf enum SECOND = 2; - */ - const SECOND = 2; - /** - * The third week of the month. - * - * Generated from protobuf enum THIRD = 3; - */ - const THIRD = 3; - /** - * The fourth week of the month. - * - * Generated from protobuf enum FOURTH = 4; - */ - const FOURTH = 4; - /** - * The last week of the month. - * - * Generated from protobuf enum LAST = 5; - */ - const LAST = 5; - - private static $valueToName = [ - self::WEEK_OF_MONTH_UNSPECIFIED => 'WEEK_OF_MONTH_UNSPECIFIED', - self::FIRST => 'FIRST', - self::SECOND => 'SECOND', - self::THIRD => 'THIRD', - self::FOURTH => 'FOURTH', - self::LAST => 'LAST', - ]; - - 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(WeekOfMonth::class, \Google\Cloud\BackupDR\V1\WeekDayOfMonth_WeekOfMonth::class); - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WorkforceIdentityBasedManagementURI.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WorkforceIdentityBasedManagementURI.php deleted file mode 100644 index d12b8eb71a64..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WorkforceIdentityBasedManagementURI.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.backupdr.v1.WorkforceIdentityBasedManagementURI - */ -class WorkforceIdentityBasedManagementURI extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. First party Management URI for Google Identities. - * - * Generated from protobuf field string first_party_management_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $first_party_management_uri = ''; - /** - * Output only. Third party Management URI for External Identity Providers. - * - * Generated from protobuf field string third_party_management_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $third_party_management_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $first_party_management_uri - * Output only. First party Management URI for Google Identities. - * @type string $third_party_management_uri - * Output only. Third party Management URI for External Identity Providers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Output only. First party Management URI for Google Identities. - * - * Generated from protobuf field string first_party_management_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirstPartyManagementUri() - { - return $this->first_party_management_uri; - } - - /** - * Output only. First party Management URI for Google Identities. - * - * Generated from protobuf field string first_party_management_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirstPartyManagementUri($var) - { - GPBUtil::checkString($var, True); - $this->first_party_management_uri = $var; - - return $this; - } - - /** - * Output only. Third party Management URI for External Identity Providers. - * - * Generated from protobuf field string third_party_management_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getThirdPartyManagementUri() - { - return $this->third_party_management_uri; - } - - /** - * Output only. Third party Management URI for External Identity Providers. - * - * Generated from protobuf field string third_party_management_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setThirdPartyManagementUri($var) - { - GPBUtil::checkString($var, True); - $this->third_party_management_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WorkforceIdentityBasedOAuth2ClientID.php b/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WorkforceIdentityBasedOAuth2ClientID.php deleted file mode 100644 index dd38518e5411..000000000000 --- a/owl-bot-staging/BackupDr/v1/proto/src/Google/Cloud/BackupDR/V1/WorkforceIdentityBasedOAuth2ClientID.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.backupdr.v1.WorkforceIdentityBasedOAuth2ClientID - */ -class WorkforceIdentityBasedOAuth2ClientID extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. First party OAuth Client ID for Google Identities. - * - * Generated from protobuf field string first_party_oauth2_client_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $first_party_oauth2_client_id = ''; - /** - * Output only. Third party OAuth Client ID for External Identity Providers. - * - * Generated from protobuf field string third_party_oauth2_client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $third_party_oauth2_client_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $first_party_oauth2_client_id - * Output only. First party OAuth Client ID for Google Identities. - * @type string $third_party_oauth2_client_id - * Output only. Third party OAuth Client ID for External Identity Providers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Backupdr\V1\Backupdr::initOnce(); - parent::__construct($data); - } - - /** - * Output only. First party OAuth Client ID for Google Identities. - * - * Generated from protobuf field string first_party_oauth2_client_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFirstPartyOauth2ClientId() - { - return $this->first_party_oauth2_client_id; - } - - /** - * Output only. First party OAuth Client ID for Google Identities. - * - * Generated from protobuf field string first_party_oauth2_client_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFirstPartyOauth2ClientId($var) - { - GPBUtil::checkString($var, True); - $this->first_party_oauth2_client_id = $var; - - return $this; - } - - /** - * Output only. Third party OAuth Client ID for External Identity Providers. - * - * Generated from protobuf field string third_party_oauth2_client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getThirdPartyOauth2ClientId() - { - return $this->third_party_oauth2_client_id; - } - - /** - * Output only. Third party OAuth Client ID for External Identity Providers. - * - * Generated from protobuf field string third_party_oauth2_client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setThirdPartyOauth2ClientId($var) - { - GPBUtil::checkString($var, True); - $this->third_party_oauth2_client_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_plan.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_plan.php deleted file mode 100644 index ee29ae4ff1c5..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_plan.php +++ /dev/null @@ -1,174 +0,0 @@ -setStartHourOfDay($backupPlanBackupRulesStandardScheduleBackupWindowStartHourOfDay) - ->setEndHourOfDay($backupPlanBackupRulesStandardScheduleBackupWindowEndHourOfDay); - $backupPlanBackupRulesStandardSchedule = (new StandardSchedule()) - ->setRecurrenceType($backupPlanBackupRulesStandardScheduleRecurrenceType) - ->setBackupWindow($backupPlanBackupRulesStandardScheduleBackupWindow) - ->setTimeZone($backupPlanBackupRulesStandardScheduleTimeZone); - $backupRule = (new BackupRule()) - ->setRuleId($backupPlanBackupRulesRuleId) - ->setBackupRetentionDays($backupPlanBackupRulesBackupRetentionDays) - ->setStandardSchedule($backupPlanBackupRulesStandardSchedule); - $backupPlanBackupRules = [$backupRule,]; - $backupPlan = (new BackupPlan()) - ->setBackupRules($backupPlanBackupRules) - ->setResourceType($backupPlanResourceType) - ->setBackupVault($formattedBackupPlanBackupVault); - $request = (new CreateBackupPlanRequest()) - ->setParent($formattedParent) - ->setBackupPlanId($backupPlanId) - ->setBackupPlan($backupPlan); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->createBackupPlan($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BackupPlan $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - $backupPlanId = '[BACKUP_PLAN_ID]'; - $backupPlanBackupRulesRuleId = '[RULE_ID]'; - $backupPlanBackupRulesBackupRetentionDays = 0; - $backupPlanBackupRulesStandardScheduleRecurrenceType = RecurrenceType::RECURRENCE_TYPE_UNSPECIFIED; - $backupPlanBackupRulesStandardScheduleBackupWindowStartHourOfDay = 0; - $backupPlanBackupRulesStandardScheduleBackupWindowEndHourOfDay = 0; - $backupPlanBackupRulesStandardScheduleTimeZone = '[TIME_ZONE]'; - $backupPlanResourceType = '[RESOURCE_TYPE]'; - $formattedBackupPlanBackupVault = BackupDRClient::backupVaultName( - '[PROJECT]', - '[LOCATION]', - '[BACKUPVAULT]' - ); - - create_backup_plan_sample( - $formattedParent, - $backupPlanId, - $backupPlanBackupRulesRuleId, - $backupPlanBackupRulesBackupRetentionDays, - $backupPlanBackupRulesStandardScheduleRecurrenceType, - $backupPlanBackupRulesStandardScheduleBackupWindowStartHourOfDay, - $backupPlanBackupRulesStandardScheduleBackupWindowEndHourOfDay, - $backupPlanBackupRulesStandardScheduleTimeZone, - $backupPlanResourceType, - $formattedBackupPlanBackupVault - ); -} -// [END backupdr_v1_generated_BackupDR_CreateBackupPlan_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_plan_association.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_plan_association.php deleted file mode 100644 index 16cba9b49c8c..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_plan_association.php +++ /dev/null @@ -1,114 +0,0 @@ -setResource($backupPlanAssociationResource) - ->setBackupPlan($formattedBackupPlanAssociationBackupPlan); - $request = (new CreateBackupPlanAssociationRequest()) - ->setParent($formattedParent) - ->setBackupPlanAssociationId($backupPlanAssociationId) - ->setBackupPlanAssociation($backupPlanAssociation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->createBackupPlanAssociation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BackupPlanAssociation $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - $backupPlanAssociationId = '[BACKUP_PLAN_ASSOCIATION_ID]'; - $backupPlanAssociationResource = '[RESOURCE]'; - $formattedBackupPlanAssociationBackupPlan = BackupDRClient::backupPlanName( - '[PROJECT]', - '[LOCATION]', - '[BACKUP_PLAN]' - ); - - create_backup_plan_association_sample( - $formattedParent, - $backupPlanAssociationId, - $backupPlanAssociationResource, - $formattedBackupPlanAssociationBackupPlan - ); -} -// [END backupdr_v1_generated_BackupDR_CreateBackupPlanAssociation_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_vault.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_vault.php deleted file mode 100644 index 0eb8a39cdfc9..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_backup_vault.php +++ /dev/null @@ -1,93 +0,0 @@ -setBackupMinimumEnforcedRetentionDuration($backupVaultBackupMinimumEnforcedRetentionDuration); - $request = (new CreateBackupVaultRequest()) - ->setParent($formattedParent) - ->setBackupVaultId($backupVaultId) - ->setBackupVault($backupVault); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->createBackupVault($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BackupVault $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - $backupVaultId = '[BACKUP_VAULT_ID]'; - - create_backup_vault_sample($formattedParent, $backupVaultId); -} -// [END backupdr_v1_generated_BackupDR_CreateBackupVault_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_management_server.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_management_server.php deleted file mode 100644 index c453145930c7..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/create_management_server.php +++ /dev/null @@ -1,96 +0,0 @@ -setNetworks($managementServerNetworks); - $request = (new CreateManagementServerRequest()) - ->setParent($formattedParent) - ->setManagementServerId($managementServerId) - ->setManagementServer($managementServer); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->createManagementServer($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ManagementServer $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - $managementServerId = '[MANAGEMENT_SERVER_ID]'; - - create_management_server_sample($formattedParent, $managementServerId); -} -// [END backupdr_v1_generated_BackupDR_CreateManagementServer_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup.php deleted file mode 100644 index e57d2bbfa7fe..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->deleteBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[BACKUPVAULT]', - '[DATASOURCE]', - '[BACKUP]' - ); - - delete_backup_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_DeleteBackup_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_plan.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_plan.php deleted file mode 100644 index ceefc320aa66..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_plan.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->deleteBackupPlan($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - - delete_backup_plan_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_DeleteBackupPlan_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_plan_association.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_plan_association.php deleted file mode 100644 index 8ebdabee84f5..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_plan_association.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->deleteBackupPlanAssociation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupPlanAssociationName( - '[PROJECT]', - '[LOCATION]', - '[BACKUP_PLAN_ASSOCIATION]' - ); - - delete_backup_plan_association_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_DeleteBackupPlanAssociation_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_vault.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_vault.php deleted file mode 100644 index d1035e0287a1..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_backup_vault.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->deleteBackupVault($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - - delete_backup_vault_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_DeleteBackupVault_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_management_server.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_management_server.php deleted file mode 100644 index 600741c46b66..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/delete_management_server.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->deleteManagementServer($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::managementServerName( - '[PROJECT]', - '[LOCATION]', - '[MANAGEMENTSERVER]' - ); - - delete_management_server_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_DeleteManagementServer_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/fetch_usable_backup_vaults.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/fetch_usable_backup_vaults.php deleted file mode 100644 index ca3baa61001d..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/fetch_usable_backup_vaults.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $backupDRClient->fetchUsableBackupVaults($request); - - /** @var BackupVault $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - - fetch_usable_backup_vaults_sample($formattedParent); -} -// [END backupdr_v1_generated_BackupDR_FetchUsableBackupVaults_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup.php deleted file mode 100644 index d022b8e9926a..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Backup $response */ - $response = $backupDRClient->getBackup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[BACKUPVAULT]', - '[DATASOURCE]', - '[BACKUP]' - ); - - get_backup_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_GetBackup_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_plan.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_plan.php deleted file mode 100644 index bafab40279bf..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_plan.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var BackupPlan $response */ - $response = $backupDRClient->getBackupPlan($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - - get_backup_plan_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_GetBackupPlan_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_plan_association.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_plan_association.php deleted file mode 100644 index 9eec0a558560..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_plan_association.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var BackupPlanAssociation $response */ - $response = $backupDRClient->getBackupPlanAssociation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupPlanAssociationName( - '[PROJECT]', - '[LOCATION]', - '[BACKUP_PLAN_ASSOCIATION]' - ); - - get_backup_plan_association_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_GetBackupPlanAssociation_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_vault.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_vault.php deleted file mode 100644 index 7eda9342994a..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_backup_vault.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var BackupVault $response */ - $response = $backupDRClient->getBackupVault($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - - get_backup_vault_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_GetBackupVault_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_data_source.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_data_source.php deleted file mode 100644 index 53f3211d7c1a..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_data_source.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataSource $response */ - $response = $backupDRClient->getDataSource($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::dataSourceName( - '[PROJECT]', - '[LOCATION]', - '[BACKUPVAULT]', - '[DATASOURCE]' - ); - - get_data_source_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_GetDataSource_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_iam_policy.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_iam_policy.php deleted file mode 100644 index 051e2e471612..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $backupDRClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END backupdr_v1_generated_BackupDR_GetIamPolicy_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_location.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_location.php deleted file mode 100644 index 6e6c3ede82e1..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END backupdr_v1_generated_BackupDR_GetLocation_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_management_server.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_management_server.php deleted file mode 100644 index f7fa6231f8c0..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/get_management_server.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ManagementServer $response */ - $response = $backupDRClient->getManagementServer($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::managementServerName( - '[PROJECT]', - '[LOCATION]', - '[MANAGEMENTSERVER]' - ); - - get_management_server_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_GetManagementServer_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_plan_associations.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_plan_associations.php deleted file mode 100644 index 8f286295c44b..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_plan_associations.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $backupDRClient->listBackupPlanAssociations($request); - - /** @var BackupPlanAssociation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - - list_backup_plan_associations_sample($formattedParent); -} -// [END backupdr_v1_generated_BackupDR_ListBackupPlanAssociations_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_plans.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_plans.php deleted file mode 100644 index 7e5f8ceee6a8..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_plans.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $backupDRClient->listBackupPlans($request); - - /** @var BackupPlan $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - - list_backup_plans_sample($formattedParent); -} -// [END backupdr_v1_generated_BackupDR_ListBackupPlans_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_vaults.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_vaults.php deleted file mode 100644 index 3ebc85f7ddef..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backup_vaults.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $backupDRClient->listBackupVaults($request); - - /** @var BackupVault $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - - list_backup_vaults_sample($formattedParent); -} -// [END backupdr_v1_generated_BackupDR_ListBackupVaults_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backups.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backups.php deleted file mode 100644 index def0a0a36513..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_backups.php +++ /dev/null @@ -1,86 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $backupDRClient->listBackups($request); - - /** @var Backup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::dataSourceName( - '[PROJECT]', - '[LOCATION]', - '[BACKUPVAULT]', - '[DATASOURCE]' - ); - - list_backups_sample($formattedParent); -} -// [END backupdr_v1_generated_BackupDR_ListBackups_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_data_sources.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_data_sources.php deleted file mode 100644 index 833e650fed27..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_data_sources.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $backupDRClient->listDataSources($request); - - /** @var DataSource $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - - list_data_sources_sample($formattedParent); -} -// [END backupdr_v1_generated_BackupDR_ListDataSources_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_locations.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_locations.php deleted file mode 100644 index baacf567a7fa..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END backupdr_v1_generated_BackupDR_ListLocations_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_management_servers.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_management_servers.php deleted file mode 100644 index c1a2219808e9..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/list_management_servers.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $backupDRClient->listManagementServers($request); - - /** @var ManagementServer $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BackupDRClient::locationName('[PROJECT]', '[LOCATION]'); - - list_management_servers_sample($formattedParent); -} -// [END backupdr_v1_generated_BackupDR_ListManagementServers_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/restore_backup.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/restore_backup.php deleted file mode 100644 index 6a6199b2a611..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/restore_backup.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->restoreBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var RestoreBackupResponse $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[BACKUPVAULT]', - '[DATASOURCE]', - '[BACKUP]' - ); - - restore_backup_sample($formattedName); -} -// [END backupdr_v1_generated_BackupDR_RestoreBackup_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/set_iam_policy.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/set_iam_policy.php deleted file mode 100644 index 5de0fc44b7fb..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $backupDRClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END backupdr_v1_generated_BackupDR_SetIamPolicy_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/test_iam_permissions.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/test_iam_permissions.php deleted file mode 100644 index e9e41bb418a7..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $backupDRClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END backupdr_v1_generated_BackupDR_TestIamPermissions_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/trigger_backup.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/trigger_backup.php deleted file mode 100644 index e5d82046cf0e..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/trigger_backup.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($formattedName) - ->setRuleId($ruleId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->triggerBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BackupPlanAssociation $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BackupDRClient::backupPlanAssociationName( - '[PROJECT]', - '[LOCATION]', - '[BACKUP_PLAN_ASSOCIATION]' - ); - $ruleId = '[RULE_ID]'; - - trigger_backup_sample($formattedName, $ruleId); -} -// [END backupdr_v1_generated_BackupDR_TriggerBackup_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_backup.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_backup.php deleted file mode 100644 index 0986bd437465..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_backup.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setBackup($backup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->updateBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END backupdr_v1_generated_BackupDR_UpdateBackup_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_backup_vault.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_backup_vault.php deleted file mode 100644 index 6cc6d590003a..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_backup_vault.php +++ /dev/null @@ -1,77 +0,0 @@ -setBackupMinimumEnforcedRetentionDuration($backupVaultBackupMinimumEnforcedRetentionDuration); - $request = (new UpdateBackupVaultRequest()) - ->setUpdateMask($updateMask) - ->setBackupVault($backupVault); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->updateBackupVault($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BackupVault $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END backupdr_v1_generated_BackupDR_UpdateBackupVault_sync] diff --git a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_data_source.php b/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_data_source.php deleted file mode 100644 index e62566e4e330..000000000000 --- a/owl-bot-staging/BackupDr/v1/samples/V1/BackupDRClient/update_data_source.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setDataSource($dataSource); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $backupDRClient->updateDataSource($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataSource $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END backupdr_v1_generated_BackupDR_UpdateDataSource_sync] diff --git a/owl-bot-staging/BackupDr/v1/src/V1/Client/BackupDRClient.php b/owl-bot-staging/BackupDr/v1/src/V1/Client/BackupDRClient.php deleted file mode 100644 index 33a0fdcd353d..000000000000 --- a/owl-bot-staging/BackupDr/v1/src/V1/Client/BackupDRClient.php +++ /dev/null @@ -1,1307 +0,0 @@ - createBackupPlanAsync(CreateBackupPlanRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupPlanAssociationAsync(CreateBackupPlanAssociationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupVaultAsync(CreateBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface createManagementServerAsync(CreateManagementServerRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupPlanAsync(DeleteBackupPlanRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupPlanAssociationAsync(DeleteBackupPlanAssociationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupVaultAsync(DeleteBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteManagementServerAsync(DeleteManagementServerRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchUsableBackupVaultsAsync(FetchUsableBackupVaultsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupPlanAsync(GetBackupPlanRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupPlanAssociationAsync(GetBackupPlanAssociationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupVaultAsync(GetBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataSourceAsync(GetDataSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getManagementServerAsync(GetManagementServerRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupPlanAssociationsAsync(ListBackupPlanAssociationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupPlansAsync(ListBackupPlansRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupVaultsAsync(ListBackupVaultsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataSourcesAsync(ListDataSourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listManagementServersAsync(ListManagementServersRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreBackupAsync(RestoreBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface triggerBackupAsync(TriggerBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBackupVaultAsync(UpdateBackupVaultRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataSourceAsync(UpdateDataSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class BackupDRClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.backupdr.v1.BackupDR'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'backupdr.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'backupdr.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/backup_dr_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/backup_dr_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/backup_dr_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/backup_dr_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup - * resource. - * - * @param string $project - * @param string $location - * @param string $backupvault - * @param string $datasource - * @param string $backup - * - * @return string The formatted backup resource. - */ - public static function backupName(string $project, string $location, string $backupvault, string $datasource, string $backup): string - { - return self::getPathTemplate('backup')->render([ - 'project' => $project, - 'location' => $location, - 'backupvault' => $backupvault, - 'datasource' => $datasource, - 'backup' => $backup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup_plan - * resource. - * - * @param string $project - * @param string $location - * @param string $backupPlan - * - * @return string The formatted backup_plan resource. - */ - public static function backupPlanName(string $project, string $location, string $backupPlan): string - { - return self::getPathTemplate('backupPlan')->render([ - 'project' => $project, - 'location' => $location, - 'backup_plan' => $backupPlan, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * backup_plan_association resource. - * - * @param string $project - * @param string $location - * @param string $backupPlanAssociation - * - * @return string The formatted backup_plan_association resource. - */ - public static function backupPlanAssociationName(string $project, string $location, string $backupPlanAssociation): string - { - return self::getPathTemplate('backupPlanAssociation')->render([ - 'project' => $project, - 'location' => $location, - 'backup_plan_association' => $backupPlanAssociation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup_vault - * resource. - * - * @param string $project - * @param string $location - * @param string $backupvault - * - * @return string The formatted backup_vault resource. - */ - public static function backupVaultName(string $project, string $location, string $backupvault): string - { - return self::getPathTemplate('backupVault')->render([ - 'project' => $project, - 'location' => $location, - 'backupvault' => $backupvault, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_source - * resource. - * - * @param string $project - * @param string $location - * @param string $backupvault - * @param string $datasource - * - * @return string The formatted data_source resource. - */ - public static function dataSourceName(string $project, string $location, string $backupvault, string $datasource): string - { - return self::getPathTemplate('dataSource')->render([ - 'project' => $project, - 'location' => $location, - 'backupvault' => $backupvault, - 'datasource' => $datasource, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * management_server resource. - * - * @param string $project - * @param string $location - * @param string $managementserver - * - * @return string The formatted management_server resource. - */ - public static function managementServerName(string $project, string $location, string $managementserver): string - { - return self::getPathTemplate('managementServer')->render([ - 'project' => $project, - 'location' => $location, - 'managementserver' => $managementserver, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - backup: projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup} - * - backupPlan: projects/{project}/locations/{location}/backupPlans/{backup_plan} - * - backupPlanAssociation: projects/{project}/locations/{location}/backupPlanAssociations/{backup_plan_association} - * - backupVault: projects/{project}/locations/{location}/backupVaults/{backupvault} - * - dataSource: projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource} - * - location: projects/{project}/locations/{location} - * - managementServer: projects/{project}/locations/{location}/managementServers/{managementserver} - * - * 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. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'backupdr.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create a BackupPlan - * - * The async variant is {@see BackupDRClient::createBackupPlanAsync()} . - * - * @example samples/V1/BackupDRClient/create_backup_plan.php - * - * @param CreateBackupPlanRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createBackupPlan(CreateBackupPlanRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackupPlan', $request, $callOptions)->wait(); - } - - /** - * Create a BackupPlanAssociation - * - * The async variant is {@see BackupDRClient::createBackupPlanAssociationAsync()} . - * - * @example samples/V1/BackupDRClient/create_backup_plan_association.php - * - * @param CreateBackupPlanAssociationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createBackupPlanAssociation(CreateBackupPlanAssociationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackupPlanAssociation', $request, $callOptions)->wait(); - } - - /** - * Creates a new BackupVault in a given project and location. - * - * The async variant is {@see BackupDRClient::createBackupVaultAsync()} . - * - * @example samples/V1/BackupDRClient/create_backup_vault.php - * - * @param CreateBackupVaultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createBackupVault(CreateBackupVaultRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackupVault', $request, $callOptions)->wait(); - } - - /** - * Creates a new ManagementServer in a given project and location. - * - * The async variant is {@see BackupDRClient::createManagementServerAsync()} . - * - * @example samples/V1/BackupDRClient/create_management_server.php - * - * @param CreateManagementServerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createManagementServer(CreateManagementServerRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateManagementServer', $request, $callOptions)->wait(); - } - - /** - * Deletes a Backup. - * - * The async variant is {@see BackupDRClient::deleteBackupAsync()} . - * - * @example samples/V1/BackupDRClient/delete_backup.php - * - * @param DeleteBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackup', $request, $callOptions)->wait(); - } - - /** - * Deletes a single BackupPlan. - * - * The async variant is {@see BackupDRClient::deleteBackupPlanAsync()} . - * - * @example samples/V1/BackupDRClient/delete_backup_plan.php - * - * @param DeleteBackupPlanRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteBackupPlan(DeleteBackupPlanRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackupPlan', $request, $callOptions)->wait(); - } - - /** - * Deletes a single BackupPlanAssociation. - * - * The async variant is {@see BackupDRClient::deleteBackupPlanAssociationAsync()} . - * - * @example samples/V1/BackupDRClient/delete_backup_plan_association.php - * - * @param DeleteBackupPlanAssociationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteBackupPlanAssociation(DeleteBackupPlanAssociationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackupPlanAssociation', $request, $callOptions)->wait(); - } - - /** - * Deletes a BackupVault. - * - * The async variant is {@see BackupDRClient::deleteBackupVaultAsync()} . - * - * @example samples/V1/BackupDRClient/delete_backup_vault.php - * - * @param DeleteBackupVaultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteBackupVault(DeleteBackupVaultRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackupVault', $request, $callOptions)->wait(); - } - - /** - * Deletes a single ManagementServer. - * - * The async variant is {@see BackupDRClient::deleteManagementServerAsync()} . - * - * @example samples/V1/BackupDRClient/delete_management_server.php - * - * @param DeleteManagementServerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteManagementServer(DeleteManagementServerRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteManagementServer', $request, $callOptions)->wait(); - } - - /** - * FetchUsableBackupVaults lists usable BackupVaults in a given project and - * location. Usable BackupVault are the ones that user has - * backupdr.backupVaults.get permission. - * - * The async variant is {@see BackupDRClient::fetchUsableBackupVaultsAsync()} . - * - * @example samples/V1/BackupDRClient/fetch_usable_backup_vaults.php - * - * @param FetchUsableBackupVaultsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchUsableBackupVaults(FetchUsableBackupVaultsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('FetchUsableBackupVaults', $request, $callOptions); - } - - /** - * Gets details of a Backup. - * - * The async variant is {@see BackupDRClient::getBackupAsync()} . - * - * @example samples/V1/BackupDRClient/get_backup.php - * - * @param GetBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Backup - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup - { - return $this->startApiCall('GetBackup', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single BackupPlan. - * - * The async variant is {@see BackupDRClient::getBackupPlanAsync()} . - * - * @example samples/V1/BackupDRClient/get_backup_plan.php - * - * @param GetBackupPlanRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BackupPlan - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBackupPlan(GetBackupPlanRequest $request, array $callOptions = []): BackupPlan - { - return $this->startApiCall('GetBackupPlan', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single BackupPlanAssociation. - * - * The async variant is {@see BackupDRClient::getBackupPlanAssociationAsync()} . - * - * @example samples/V1/BackupDRClient/get_backup_plan_association.php - * - * @param GetBackupPlanAssociationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BackupPlanAssociation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBackupPlanAssociation(GetBackupPlanAssociationRequest $request, array $callOptions = []): BackupPlanAssociation - { - return $this->startApiCall('GetBackupPlanAssociation', $request, $callOptions)->wait(); - } - - /** - * Gets details of a BackupVault. - * - * The async variant is {@see BackupDRClient::getBackupVaultAsync()} . - * - * @example samples/V1/BackupDRClient/get_backup_vault.php - * - * @param GetBackupVaultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BackupVault - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBackupVault(GetBackupVaultRequest $request, array $callOptions = []): BackupVault - { - return $this->startApiCall('GetBackupVault', $request, $callOptions)->wait(); - } - - /** - * Gets details of a DataSource. - * - * The async variant is {@see BackupDRClient::getDataSourceAsync()} . - * - * @example samples/V1/BackupDRClient/get_data_source.php - * - * @param GetDataSourceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataSource - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataSource(GetDataSourceRequest $request, array $callOptions = []): DataSource - { - return $this->startApiCall('GetDataSource', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single ManagementServer. - * - * The async variant is {@see BackupDRClient::getManagementServerAsync()} . - * - * @example samples/V1/BackupDRClient/get_management_server.php - * - * @param GetManagementServerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ManagementServer - * - * @throws ApiException Thrown if the API call fails. - */ - public function getManagementServer(GetManagementServerRequest $request, array $callOptions = []): ManagementServer - { - return $this->startApiCall('GetManagementServer', $request, $callOptions)->wait(); - } - - /** - * Lists BackupPlanAssociations in a given project and location. - * - * The async variant is {@see BackupDRClient::listBackupPlanAssociationsAsync()} . - * - * @example samples/V1/BackupDRClient/list_backup_plan_associations.php - * - * @param ListBackupPlanAssociationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBackupPlanAssociations(ListBackupPlanAssociationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackupPlanAssociations', $request, $callOptions); - } - - /** - * Lists BackupPlans in a given project and location. - * - * The async variant is {@see BackupDRClient::listBackupPlansAsync()} . - * - * @example samples/V1/BackupDRClient/list_backup_plans.php - * - * @param ListBackupPlansRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBackupPlans(ListBackupPlansRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackupPlans', $request, $callOptions); - } - - /** - * Lists BackupVaults in a given project and location. - * - * The async variant is {@see BackupDRClient::listBackupVaultsAsync()} . - * - * @example samples/V1/BackupDRClient/list_backup_vaults.php - * - * @param ListBackupVaultsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBackupVaults(ListBackupVaultsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackupVaults', $request, $callOptions); - } - - /** - * Lists Backups in a given project and location. - * - * The async variant is {@see BackupDRClient::listBackupsAsync()} . - * - * @example samples/V1/BackupDRClient/list_backups.php - * - * @param ListBackupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackups', $request, $callOptions); - } - - /** - * Lists DataSources in a given project and location. - * - * The async variant is {@see BackupDRClient::listDataSourcesAsync()} . - * - * @example samples/V1/BackupDRClient/list_data_sources.php - * - * @param ListDataSourcesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDataSources(ListDataSourcesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataSources', $request, $callOptions); - } - - /** - * Lists ManagementServers in a given project and location. - * - * The async variant is {@see BackupDRClient::listManagementServersAsync()} . - * - * @example samples/V1/BackupDRClient/list_management_servers.php - * - * @param ListManagementServersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listManagementServers(ListManagementServersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListManagementServers', $request, $callOptions); - } - - /** - * Restore from a Backup - * - * The async variant is {@see BackupDRClient::restoreBackupAsync()} . - * - * @example samples/V1/BackupDRClient/restore_backup.php - * - * @param RestoreBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function restoreBackup(RestoreBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RestoreBackup', $request, $callOptions)->wait(); - } - - /** - * Triggers a new Backup. - * - * The async variant is {@see BackupDRClient::triggerBackupAsync()} . - * - * @example samples/V1/BackupDRClient/trigger_backup.php - * - * @param TriggerBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function triggerBackup(TriggerBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('TriggerBackup', $request, $callOptions)->wait(); - } - - /** - * Updates the settings of a Backup. - * - * The async variant is {@see BackupDRClient::updateBackupAsync()} . - * - * @example samples/V1/BackupDRClient/update_backup.php - * - * @param UpdateBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateBackup(UpdateBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateBackup', $request, $callOptions)->wait(); - } - - /** - * Updates the settings of a BackupVault. - * - * The async variant is {@see BackupDRClient::updateBackupVaultAsync()} . - * - * @example samples/V1/BackupDRClient/update_backup_vault.php - * - * @param UpdateBackupVaultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateBackupVault(UpdateBackupVaultRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateBackupVault', $request, $callOptions)->wait(); - } - - /** - * Updates the settings of a DataSource. - * - * The async variant is {@see BackupDRClient::updateDataSourceAsync()} . - * - * @example samples/V1/BackupDRClient/update_data_source.php - * - * @param UpdateDataSourceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataSource(UpdateDataSourceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataSource', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see BackupDRClient::getLocationAsync()} . - * - * @example samples/V1/BackupDRClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see BackupDRClient::listLocationsAsync()} . - * - * @example samples/V1/BackupDRClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see BackupDRClient::getIamPolicyAsync()} . - * - * @example samples/V1/BackupDRClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see BackupDRClient::setIamPolicyAsync()} . - * - * @example samples/V1/BackupDRClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see BackupDRClient::testIamPermissionsAsync()} . - * - * @example samples/V1/BackupDRClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/BackupDr/v1/src/V1/gapic_metadata.json b/owl-bot-staging/BackupDr/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 130c7f38a667..000000000000 --- a/owl-bot-staging/BackupDr/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.backupdr.v1", - "libraryPackage": "Google\\Cloud\\BackupDR\\V1", - "services": { - "BackupDR": { - "clients": { - "grpc": { - "libraryClient": "BackupDRGapicClient", - "rpcs": { - "CreateBackupPlan": { - "methods": [ - "createBackupPlan" - ] - }, - "CreateBackupPlanAssociation": { - "methods": [ - "createBackupPlanAssociation" - ] - }, - "CreateBackupVault": { - "methods": [ - "createBackupVault" - ] - }, - "CreateManagementServer": { - "methods": [ - "createManagementServer" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "DeleteBackupPlan": { - "methods": [ - "deleteBackupPlan" - ] - }, - "DeleteBackupPlanAssociation": { - "methods": [ - "deleteBackupPlanAssociation" - ] - }, - "DeleteBackupVault": { - "methods": [ - "deleteBackupVault" - ] - }, - "DeleteManagementServer": { - "methods": [ - "deleteManagementServer" - ] - }, - "FetchUsableBackupVaults": { - "methods": [ - "fetchUsableBackupVaults" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "GetBackupPlan": { - "methods": [ - "getBackupPlan" - ] - }, - "GetBackupPlanAssociation": { - "methods": [ - "getBackupPlanAssociation" - ] - }, - "GetBackupVault": { - "methods": [ - "getBackupVault" - ] - }, - "GetDataSource": { - "methods": [ - "getDataSource" - ] - }, - "GetManagementServer": { - "methods": [ - "getManagementServer" - ] - }, - "ListBackupPlanAssociations": { - "methods": [ - "listBackupPlanAssociations" - ] - }, - "ListBackupPlans": { - "methods": [ - "listBackupPlans" - ] - }, - "ListBackupVaults": { - "methods": [ - "listBackupVaults" - ] - }, - "ListBackups": { - "methods": [ - "listBackups" - ] - }, - "ListDataSources": { - "methods": [ - "listDataSources" - ] - }, - "ListManagementServers": { - "methods": [ - "listManagementServers" - ] - }, - "RestoreBackup": { - "methods": [ - "restoreBackup" - ] - }, - "TriggerBackup": { - "methods": [ - "triggerBackup" - ] - }, - "UpdateBackup": { - "methods": [ - "updateBackup" - ] - }, - "UpdateBackupVault": { - "methods": [ - "updateBackupVault" - ] - }, - "UpdateDataSource": { - "methods": [ - "updateDataSource" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_client_config.json b/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_client_config.json deleted file mode 100644 index c505f44b1add..000000000000 --- a/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_client_config.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "interfaces": { - "google.cloud.backupdr.v1.BackupDR": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "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": 10000, - "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": { - "CreateBackupPlan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateBackupPlanAssociation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateBackupVault": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateManagementServer": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteBackupPlan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteBackupPlanAssociation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteBackupVault": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteManagementServer": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "FetchUsableBackupVaults": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetBackup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetBackupPlan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetBackupPlanAssociation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetBackupVault": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDataSource": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetManagementServer": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBackupPlanAssociations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListBackupPlans": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListBackupVaults": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBackups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDataSources": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListManagementServers": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RestoreBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "TriggerBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateBackupVault": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDataSource": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_descriptor_config.php b/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_descriptor_config.php deleted file mode 100644 index 669fa4bd998c..000000000000 --- a/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_descriptor_config.php +++ /dev/null @@ -1,591 +0,0 @@ - [ - 'google.cloud.backupdr.v1.BackupDR' => [ - 'CreateBackupPlan' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\BackupPlan', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateBackupPlanAssociation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\BackupPlanAssociation', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateBackupVault' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\BackupVault', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateManagementServer' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\ManagementServer', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\Backup', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackupPlan' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackupPlanAssociation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackupVault' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteManagementServer' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RestoreBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\RestoreBackupResponse', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'TriggerBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\BackupPlanAssociation', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\Backup', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'backup.name', - 'fieldAccessors' => [ - 'getBackup', - 'getName', - ], - ], - ], - ], - 'UpdateBackupVault' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\BackupVault', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'backup_vault.name', - 'fieldAccessors' => [ - 'getBackupVault', - 'getName', - ], - ], - ], - ], - 'UpdateDataSource' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\BackupDR\V1\DataSource', - 'metadataReturnType' => '\Google\Cloud\BackupDR\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_source.name', - 'fieldAccessors' => [ - 'getDataSource', - 'getName', - ], - ], - ], - ], - 'FetchUsableBackupVaults' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackupVaults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\FetchUsableBackupVaultsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\Backup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetBackupPlan' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\BackupPlan', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetBackupPlanAssociation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\BackupPlanAssociation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetBackupVault' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\BackupVault', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSource' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\DataSource', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetManagementServer' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\ManagementServer', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListBackupPlanAssociations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackupPlanAssociations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\ListBackupPlanAssociationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackupPlans' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackupPlans', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\ListBackupPlansResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackupVaults' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackupVaults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\ListBackupVaultsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\ListBackupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataSources' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataSources', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\ListDataSourcesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListManagementServers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getManagementServers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BackupDR\V1\ListManagementServersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'backup' => 'projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup}', - 'backupPlan' => 'projects/{project}/locations/{location}/backupPlans/{backup_plan}', - 'backupPlanAssociation' => 'projects/{project}/locations/{location}/backupPlanAssociations/{backup_plan_association}', - 'backupVault' => 'projects/{project}/locations/{location}/backupVaults/{backupvault}', - 'dataSource' => 'projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}', - 'location' => 'projects/{project}/locations/{location}', - 'managementServer' => 'projects/{project}/locations/{location}/managementServers/{managementserver}', - ], - ], - ], -]; diff --git a/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_rest_client_config.php b/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_rest_client_config.php deleted file mode 100644 index 072b35af529f..000000000000 --- a/owl-bot-staging/BackupDr/v1/src/V1/resources/backup_dr_rest_client_config.php +++ /dev/null @@ -1,467 +0,0 @@ - [ - 'google.cloud.backupdr.v1.BackupDR' => [ - 'CreateBackupPlan' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupPlans', - 'body' => 'backup_plan', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_plan_id', - ], - ], - 'CreateBackupPlanAssociation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupPlanAssociations', - 'body' => 'backup_plan_association', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_plan_association_id', - ], - ], - 'CreateBackupVault' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupVaults', - 'body' => 'backup_vault', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_vault_id', - ], - ], - 'CreateManagementServer' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/managementServers', - 'body' => 'management_server', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'management_server_id', - ], - ], - 'DeleteBackup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackupPlan' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlans/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackupPlanAssociation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlanAssociations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackupVault' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupVaults/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteManagementServer' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/managementServers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchUsableBackupVaults' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupVaults:fetchUsable', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetBackup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetBackupPlan' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlans/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetBackupPlanAssociation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlanAssociations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetBackupVault' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupVaults/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataSource' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupVaults/*/dataSources/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetManagementServer' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/managementServers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListBackupPlanAssociations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupPlanAssociations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackupPlans' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupPlans', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackupVaults' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupVaults', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataSources' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/backupVaults/*}/dataSources', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListManagementServers' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/managementServers', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RestoreBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}:restore', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'TriggerBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlanAssociations/*}:triggerBackup', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateBackup' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{backup.name=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}', - 'body' => 'backup', - 'placeholders' => [ - 'backup.name' => [ - 'getters' => [ - 'getBackup', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateBackupVault' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{backup_vault.name=projects/*/locations/*/backupVaults/*}', - 'body' => 'backup_vault', - 'placeholders' => [ - 'backup_vault.name' => [ - 'getters' => [ - 'getBackupVault', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataSource' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_source.name=projects/*/locations/*/backupVaults/*/dataSources/*}', - 'body' => 'data_source', - 'placeholders' => [ - 'data_source.name' => [ - 'getters' => [ - 'getDataSource', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/managementServers/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/managementServers/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/managementServers/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/BackupDr/v1/tests/Unit/V1/Client/BackupDRClientTest.php b/owl-bot-staging/BackupDr/v1/tests/Unit/V1/Client/BackupDRClientTest.php deleted file mode 100644 index 27d4a103280a..000000000000 --- a/owl-bot-staging/BackupDr/v1/tests/Unit/V1/Client/BackupDRClientTest.php +++ /dev/null @@ -1,3373 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BackupDRClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BackupDRClient($options); - } - - /** @test */ - public function createBackupPlanTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupPlanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $resourceType = 'resourceType979623115'; - $etag = 'etag3123477'; - $backupVault = 'backupVault353808757'; - $backupVaultServiceAccount = 'backupVaultServiceAccount-1170477095'; - $expectedResponse = new BackupPlan(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setResourceType($resourceType); - $expectedResponse->setEtag($etag); - $expectedResponse->setBackupVault($backupVault); - $expectedResponse->setBackupVaultServiceAccount($backupVaultServiceAccount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupPlanTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupPlanId = 'backupPlanId-25762700'; - $backupPlan = new BackupPlan(); - $backupPlanBackupRules = []; - $backupPlan->setBackupRules($backupPlanBackupRules); - $backupPlanResourceType = 'backupPlanResourceType1515155475'; - $backupPlan->setResourceType($backupPlanResourceType); - $backupPlanBackupVault = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $backupPlan->setBackupVault($backupPlanBackupVault); - $request = (new CreateBackupPlanRequest()) - ->setParent($formattedParent) - ->setBackupPlanId($backupPlanId) - ->setBackupPlan($backupPlan); - $response = $gapicClient->createBackupPlan($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/CreateBackupPlan', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupPlanId(); - $this->assertProtobufEquals($backupPlanId, $actualValue); - $actualValue = $actualApiRequestObject->getBackupPlan(); - $this->assertProtobufEquals($backupPlan, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupPlanTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupPlanExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupPlanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupPlanId = 'backupPlanId-25762700'; - $backupPlan = new BackupPlan(); - $backupPlanBackupRules = []; - $backupPlan->setBackupRules($backupPlanBackupRules); - $backupPlanResourceType = 'backupPlanResourceType1515155475'; - $backupPlan->setResourceType($backupPlanResourceType); - $backupPlanBackupVault = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $backupPlan->setBackupVault($backupPlanBackupVault); - $request = (new CreateBackupPlanRequest()) - ->setParent($formattedParent) - ->setBackupPlanId($backupPlanId) - ->setBackupPlan($backupPlan); - $response = $gapicClient->createBackupPlan($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupPlanTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupPlanAssociationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupPlanAssociationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $resourceType = 'resourceType979623115'; - $resource = 'resource-341064690'; - $backupPlan = 'backupPlan1119623046'; - $dataSource = 'dataSource-1333894576'; - $expectedResponse = new BackupPlanAssociation(); - $expectedResponse->setName($name); - $expectedResponse->setResourceType($resourceType); - $expectedResponse->setResource($resource); - $expectedResponse->setBackupPlan($backupPlan); - $expectedResponse->setDataSource($dataSource); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupPlanAssociationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupPlanAssociationId = 'backupPlanAssociationId133124978'; - $backupPlanAssociation = new BackupPlanAssociation(); - $backupPlanAssociationResource = 'backupPlanAssociationResource1527164324'; - $backupPlanAssociation->setResource($backupPlanAssociationResource); - $backupPlanAssociationBackupPlan = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - $backupPlanAssociation->setBackupPlan($backupPlanAssociationBackupPlan); - $request = (new CreateBackupPlanAssociationRequest()) - ->setParent($formattedParent) - ->setBackupPlanAssociationId($backupPlanAssociationId) - ->setBackupPlanAssociation($backupPlanAssociation); - $response = $gapicClient->createBackupPlanAssociation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/CreateBackupPlanAssociation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupPlanAssociationId(); - $this->assertProtobufEquals($backupPlanAssociationId, $actualValue); - $actualValue = $actualApiRequestObject->getBackupPlanAssociation(); - $this->assertProtobufEquals($backupPlanAssociation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupPlanAssociationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupPlanAssociationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupPlanAssociationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupPlanAssociationId = 'backupPlanAssociationId133124978'; - $backupPlanAssociation = new BackupPlanAssociation(); - $backupPlanAssociationResource = 'backupPlanAssociationResource1527164324'; - $backupPlanAssociation->setResource($backupPlanAssociationResource); - $backupPlanAssociationBackupPlan = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - $backupPlanAssociation->setBackupPlan($backupPlanAssociationBackupPlan); - $request = (new CreateBackupPlanAssociationRequest()) - ->setParent($formattedParent) - ->setBackupPlanAssociationId($backupPlanAssociationId) - ->setBackupPlanAssociation($backupPlanAssociation); - $response = $gapicClient->createBackupPlanAssociation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupPlanAssociationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupVaultTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupVaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $deletable = true; - $etag = 'etag3123477'; - $backupCount = 336678994; - $serviceAccount = 'serviceAccount-1948028253'; - $totalStoredBytes = 1181597162; - $uid = 'uid115792'; - $expectedResponse = new BackupVault(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setEtag($etag); - $expectedResponse->setBackupCount($backupCount); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setTotalStoredBytes($totalStoredBytes); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupVaultTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupVaultId = 'backupVaultId467030053'; - $backupVault = new BackupVault(); - $backupVaultBackupMinimumEnforcedRetentionDuration = new Duration(); - $backupVault->setBackupMinimumEnforcedRetentionDuration($backupVaultBackupMinimumEnforcedRetentionDuration); - $request = (new CreateBackupVaultRequest()) - ->setParent($formattedParent) - ->setBackupVaultId($backupVaultId) - ->setBackupVault($backupVault); - $response = $gapicClient->createBackupVault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/CreateBackupVault', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupVaultId(); - $this->assertProtobufEquals($backupVaultId, $actualValue); - $actualValue = $actualApiRequestObject->getBackupVault(); - $this->assertProtobufEquals($backupVault, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupVaultTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupVaultExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupVaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupVaultId = 'backupVaultId467030053'; - $backupVault = new BackupVault(); - $backupVaultBackupMinimumEnforcedRetentionDuration = new Duration(); - $backupVault->setBackupMinimumEnforcedRetentionDuration($backupVaultBackupMinimumEnforcedRetentionDuration); - $request = (new CreateBackupVaultRequest()) - ->setParent($formattedParent) - ->setBackupVaultId($backupVaultId) - ->setBackupVault($backupVault); - $response = $gapicClient->createBackupVault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupVaultTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createManagementServerTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createManagementServerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $oauth2ClientId = 'oauth2ClientId-1833466037'; - $satisfiesPzi = false; - $expectedResponse = new ManagementServer(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setOauth2ClientId($oauth2ClientId); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createManagementServerTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $managementServerId = 'managementServerId1884787355'; - $managementServer = new ManagementServer(); - $managementServerNetworks = []; - $managementServer->setNetworks($managementServerNetworks); - $request = (new CreateManagementServerRequest()) - ->setParent($formattedParent) - ->setManagementServerId($managementServerId) - ->setManagementServer($managementServer); - $response = $gapicClient->createManagementServer($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/CreateManagementServer', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getManagementServerId(); - $this->assertProtobufEquals($managementServerId, $actualValue); - $actualValue = $actualApiRequestObject->getManagementServer(); - $this->assertProtobufEquals($managementServer, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createManagementServerTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createManagementServerExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createManagementServerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $managementServerId = 'managementServerId1884787355'; - $managementServer = new ManagementServer(); - $managementServerNetworks = []; - $managementServer->setNetworks($managementServerNetworks); - $request = (new CreateManagementServerRequest()) - ->setParent($formattedParent) - ->setManagementServerId($managementServerId) - ->setManagementServer($managementServer); - $response = $gapicClient->createManagementServer($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createManagementServerTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $resourceSizeBytes = 275424386; - $expectedResponse = new Backup(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setResourceSizeBytes($resourceSizeBytes); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/DeleteBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupPlanTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupPlanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupPlanTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - $request = (new DeleteBackupPlanRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackupPlan($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/DeleteBackupPlan', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupPlanTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupPlanExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupPlanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - $request = (new DeleteBackupPlanRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackupPlan($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupPlanTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupPlanAssociationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupPlanAssociationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupPlanAssociationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupPlanAssociationName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN_ASSOCIATION]'); - $request = (new DeleteBackupPlanAssociationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackupPlanAssociation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/DeleteBackupPlanAssociation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupPlanAssociationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupPlanAssociationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupPlanAssociationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupPlanAssociationName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN_ASSOCIATION]'); - $request = (new DeleteBackupPlanAssociationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackupPlanAssociation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupPlanAssociationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupVaultTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupVaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupVaultTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $request = (new DeleteBackupVaultRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackupVault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/DeleteBackupVault', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupVaultTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupVaultExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupVaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $request = (new DeleteBackupVaultRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackupVault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupVaultTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteManagementServerTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteManagementServerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteManagementServerTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->managementServerName('[PROJECT]', '[LOCATION]', '[MANAGEMENTSERVER]'); - $request = (new DeleteManagementServerRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteManagementServer($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/DeleteManagementServer', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteManagementServerTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteManagementServerExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteManagementServerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->managementServerName('[PROJECT]', '[LOCATION]', '[MANAGEMENTSERVER]'); - $request = (new DeleteManagementServerRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteManagementServer($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteManagementServerTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function fetchUsableBackupVaultsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupVaultsElement = new BackupVault(); - $backupVaults = [ - $backupVaultsElement, - ]; - $expectedResponse = new FetchUsableBackupVaultsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackupVaults($backupVaults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new FetchUsableBackupVaultsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->fetchUsableBackupVaults($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackupVaults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/FetchUsableBackupVaults', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchUsableBackupVaultsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new FetchUsableBackupVaultsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->fetchUsableBackupVaults($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $resourceSizeBytes = 275424386; - $expectedResponse = new Backup(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setResourceSizeBytes($resourceSizeBytes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/GetBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupPlanTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $resourceType = 'resourceType979623115'; - $etag = 'etag3123477'; - $backupVault = 'backupVault353808757'; - $backupVaultServiceAccount = 'backupVaultServiceAccount-1170477095'; - $expectedResponse = new BackupPlan(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setResourceType($resourceType); - $expectedResponse->setEtag($etag); - $expectedResponse->setBackupVault($backupVault); - $expectedResponse->setBackupVaultServiceAccount($backupVaultServiceAccount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - $request = (new GetBackupPlanRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackupPlan($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/GetBackupPlan', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupPlanExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]'); - $request = (new GetBackupPlanRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackupPlan($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupPlanAssociationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resourceType = 'resourceType979623115'; - $resource = 'resource-341064690'; - $backupPlan = 'backupPlan1119623046'; - $dataSource = 'dataSource-1333894576'; - $expectedResponse = new BackupPlanAssociation(); - $expectedResponse->setName($name2); - $expectedResponse->setResourceType($resourceType); - $expectedResponse->setResource($resource); - $expectedResponse->setBackupPlan($backupPlan); - $expectedResponse->setDataSource($dataSource); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupPlanAssociationName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN_ASSOCIATION]'); - $request = (new GetBackupPlanAssociationRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackupPlanAssociation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/GetBackupPlanAssociation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupPlanAssociationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupPlanAssociationName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN_ASSOCIATION]'); - $request = (new GetBackupPlanAssociationRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackupPlanAssociation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupVaultTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $deletable = true; - $etag = 'etag3123477'; - $backupCount = 336678994; - $serviceAccount = 'serviceAccount-1948028253'; - $totalStoredBytes = 1181597162; - $uid = 'uid115792'; - $expectedResponse = new BackupVault(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setEtag($etag); - $expectedResponse->setBackupCount($backupCount); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setTotalStoredBytes($totalStoredBytes); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $request = (new GetBackupVaultRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackupVault($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/GetBackupVault', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupVaultExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $request = (new GetBackupVaultRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackupVault($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSourceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $backupCount = 336678994; - $etag = 'etag3123477'; - $totalStoredBytes = 1181597162; - $expectedResponse = new DataSource(); - $expectedResponse->setName($name2); - $expectedResponse->setBackupCount($backupCount); - $expectedResponse->setEtag($etag); - $expectedResponse->setTotalStoredBytes($totalStoredBytes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataSourceName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]'); - $request = (new GetDataSourceRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataSource($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/GetDataSource', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataSourceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataSourceName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]'); - $request = (new GetDataSourceRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataSource($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getManagementServerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $oauth2ClientId = 'oauth2ClientId-1833466037'; - $satisfiesPzi = false; - $expectedResponse = new ManagementServer(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setOauth2ClientId($oauth2ClientId); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->managementServerName('[PROJECT]', '[LOCATION]', '[MANAGEMENTSERVER]'); - $request = (new GetManagementServerRequest()) - ->setName($formattedName); - $response = $gapicClient->getManagementServer($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/GetManagementServer', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getManagementServerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->managementServerName('[PROJECT]', '[LOCATION]', '[MANAGEMENTSERVER]'); - $request = (new GetManagementServerRequest()) - ->setName($formattedName); - try { - $gapicClient->getManagementServer($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupPlanAssociationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupPlanAssociationsElement = new BackupPlanAssociation(); - $backupPlanAssociations = [ - $backupPlanAssociationsElement, - ]; - $expectedResponse = new ListBackupPlanAssociationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackupPlanAssociations($backupPlanAssociations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupPlanAssociationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackupPlanAssociations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackupPlanAssociations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/ListBackupPlanAssociations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupPlanAssociationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupPlanAssociationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackupPlanAssociations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupPlansTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupPlansElement = new BackupPlan(); - $backupPlans = [ - $backupPlansElement, - ]; - $expectedResponse = new ListBackupPlansResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackupPlans($backupPlans); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupPlansRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackupPlans($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackupPlans()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/ListBackupPlans', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupPlansExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupPlansRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackupPlans($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupVaultsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupVaultsElement = new BackupVault(); - $backupVaults = [ - $backupVaultsElement, - ]; - $expectedResponse = new ListBackupVaultsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackupVaults($backupVaults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupVaultsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackupVaults($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackupVaults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/ListBackupVaults', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupVaultsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListBackupVaultsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackupVaults($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupsElement = new Backup(); - $backups = [ - $backupsElement, - ]; - $expectedResponse = new ListBackupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackups($backups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataSourceName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/ListBackups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataSourceName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackups($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataSourcesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataSourcesElement = new DataSource(); - $dataSources = [ - $dataSourcesElement, - ]; - $expectedResponse = new ListDataSourcesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataSources($dataSources); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $request = (new ListDataSourcesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataSources($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataSources()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/ListDataSources', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataSourcesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $request = (new ListDataSourcesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataSources($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listManagementServersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $managementServersElement = new ManagementServer(); - $managementServers = [ - $managementServersElement, - ]; - $expectedResponse = new ListManagementServersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setManagementServers($managementServers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListManagementServersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listManagementServers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getManagementServers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/ListManagementServers', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listManagementServersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListManagementServersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listManagementServers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function restoreBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new RestoreBackupResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/restoreBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]', '[BACKUP]'); - $request = (new RestoreBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->restoreBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/RestoreBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function restoreBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]', '[DATASOURCE]', '[BACKUP]'); - $request = (new RestoreBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->restoreBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function triggerBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/triggerBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $resourceType = 'resourceType979623115'; - $resource = 'resource-341064690'; - $backupPlan = 'backupPlan1119623046'; - $dataSource = 'dataSource-1333894576'; - $expectedResponse = new BackupPlanAssociation(); - $expectedResponse->setName($name2); - $expectedResponse->setResourceType($resourceType); - $expectedResponse->setResource($resource); - $expectedResponse->setBackupPlan($backupPlan); - $expectedResponse->setDataSource($dataSource); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/triggerBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupPlanAssociationName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN_ASSOCIATION]'); - $ruleId = 'ruleId1548659006'; - $request = (new TriggerBackupRequest()) - ->setName($formattedName) - ->setRuleId($ruleId); - $response = $gapicClient->triggerBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/TriggerBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getRuleId(); - $this->assertProtobufEquals($ruleId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/triggerBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function triggerBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/triggerBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupPlanAssociationName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN_ASSOCIATION]'); - $ruleId = 'ruleId1548659006'; - $request = (new TriggerBackupRequest()) - ->setName($formattedName) - ->setRuleId($ruleId); - $response = $gapicClient->triggerBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/triggerBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $resourceSizeBytes = 275424386; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setResourceSizeBytes($resourceSizeBytes); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $backup = new Backup(); - $request = (new UpdateBackupRequest()) - ->setUpdateMask($updateMask) - ->setBackup($backup); - $response = $gapicClient->updateBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/UpdateBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $backup = new Backup(); - $request = (new UpdateBackupRequest()) - ->setUpdateMask($updateMask) - ->setBackup($backup); - $response = $gapicClient->updateBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateBackupVaultTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateBackupVaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $deletable = true; - $etag = 'etag3123477'; - $backupCount = 336678994; - $serviceAccount = 'serviceAccount-1948028253'; - $totalStoredBytes = 1181597162; - $uid = 'uid115792'; - $expectedResponse = new BackupVault(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setDeletable($deletable); - $expectedResponse->setEtag($etag); - $expectedResponse->setBackupCount($backupCount); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setTotalStoredBytes($totalStoredBytes); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateBackupVaultTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $backupVault = new BackupVault(); - $backupVaultBackupMinimumEnforcedRetentionDuration = new Duration(); - $backupVault->setBackupMinimumEnforcedRetentionDuration($backupVaultBackupMinimumEnforcedRetentionDuration); - $request = (new UpdateBackupVaultRequest()) - ->setUpdateMask($updateMask) - ->setBackupVault($backupVault); - $response = $gapicClient->updateBackupVault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/UpdateBackupVault', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getBackupVault(); - $this->assertProtobufEquals($backupVault, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateBackupVaultTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateBackupVaultExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateBackupVaultTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $backupVault = new BackupVault(); - $backupVaultBackupMinimumEnforcedRetentionDuration = new Duration(); - $backupVault->setBackupMinimumEnforcedRetentionDuration($backupVaultBackupMinimumEnforcedRetentionDuration); - $request = (new UpdateBackupVaultRequest()) - ->setUpdateMask($updateMask) - ->setBackupVault($backupVault); - $response = $gapicClient->updateBackupVault($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateBackupVaultTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDataSourceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDataSourceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $backupCount = 336678994; - $etag = 'etag3123477'; - $totalStoredBytes = 1181597162; - $expectedResponse = new DataSource(); - $expectedResponse->setName($name); - $expectedResponse->setBackupCount($backupCount); - $expectedResponse->setEtag($etag); - $expectedResponse->setTotalStoredBytes($totalStoredBytes); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataSourceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $dataSource = new DataSource(); - $request = (new UpdateDataSourceRequest()) - ->setUpdateMask($updateMask) - ->setDataSource($dataSource); - $response = $gapicClient->updateDataSource($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/UpdateDataSource', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getDataSource(); - $this->assertProtobufEquals($dataSource, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataSourceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDataSourceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDataSourceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $dataSource = new DataSource(); - $request = (new UpdateDataSourceRequest()) - ->setUpdateMask($updateMask) - ->setDataSource($dataSource); - $response = $gapicClient->updateDataSource($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataSourceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createBackupPlanAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupPlanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $resourceType = 'resourceType979623115'; - $etag = 'etag3123477'; - $backupVault = 'backupVault353808757'; - $backupVaultServiceAccount = 'backupVaultServiceAccount-1170477095'; - $expectedResponse = new BackupPlan(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setResourceType($resourceType); - $expectedResponse->setEtag($etag); - $expectedResponse->setBackupVault($backupVault); - $expectedResponse->setBackupVaultServiceAccount($backupVaultServiceAccount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupPlanTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $backupPlanId = 'backupPlanId-25762700'; - $backupPlan = new BackupPlan(); - $backupPlanBackupRules = []; - $backupPlan->setBackupRules($backupPlanBackupRules); - $backupPlanResourceType = 'backupPlanResourceType1515155475'; - $backupPlan->setResourceType($backupPlanResourceType); - $backupPlanBackupVault = $gapicClient->backupVaultName('[PROJECT]', '[LOCATION]', '[BACKUPVAULT]'); - $backupPlan->setBackupVault($backupPlanBackupVault); - $request = (new CreateBackupPlanRequest()) - ->setParent($formattedParent) - ->setBackupPlanId($backupPlanId) - ->setBackupPlan($backupPlan); - $response = $gapicClient->createBackupPlanAsync($request)->wait(); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.backupdr.v1.BackupDR/CreateBackupPlan', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupPlanId(); - $this->assertProtobufEquals($backupPlanId, $actualValue); - $actualValue = $actualApiRequestObject->getBackupPlan(); - $this->assertProtobufEquals($backupPlan, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupPlanTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } -}